switchboard-router 0.9.61 → 0.9.63

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 (411) hide show
  1. package/app/.next/static/chunks/1321-e00fa4ad9a905a7b.js +1 -0
  2. package/app/.next/static/chunks/4601-44deee06e6597c34.js +1 -0
  3. package/app/.next/static/chunks/app/(dashboard)/dashboard/agent-library/{page-fa24110e606e19b6.js → page-5099a8abbc816db2.js} +1 -1
  4. package/app/{.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-7b00fb83303d1d11.js → .next/static/chunks/app/(dashboard)/dashboard/basic-chat/page-f19524e912fe1985.js} +1 -1
  5. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-e59f3822e2167ab7.js → page-5ffac5b1a7f569eb.js} +1 -1
  6. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-d994adf3e0ce78c1.js → page-e88926cdf34f51b4.js} +1 -1
  7. package/app/{.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-99d3be5c7da63d57.js → .next/static/chunks/app/(dashboard)/dashboard/combos/page-f18e04dca95f62e1.js} +1 -1
  8. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/routing/{page-650dc0927f999aaf.js → page-0fbb282f4f13b383.js} +1 -1
  9. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/{page-eefda4a8f32e649e.js → page-a6d96961aa96c6f6.js} +1 -1
  10. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/{page-adba2750c4fbf61e.js → page-57222cb64d90dbc5.js} +1 -1
  11. package/app/{.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e6fc3a5c25ce1247.js → .next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-b538f94596e78384.js} +1 -1
  12. package/app/{.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-078eb5d8bfc3f4d1.js → .next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-e5f3c1f8be627058.js} +1 -1
  13. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-7dfde081613f35f3.js → page-3b278b46c2e9b047.js} +1 -1
  14. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/{page-1d63cfd88010b65f.js → page-768e0fe3ec5c50cb.js} +1 -1
  15. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-281c93713fd1e960.js → page-932db86bb9b65c82.js} +1 -1
  16. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-f44e14a7efc8f81a.js → page-77d678509c4b9807.js} +1 -1
  17. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/{page-0e0047609d5634c9.js → page-be26ebe2eb5fe86f.js} +1 -1
  18. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-7650a3a5ee2467f7.js +10 -0
  19. package/app/{.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-604dae851964c441.js → .next/static/chunks/app/(dashboard)/dashboard/providers/new/page-40b58bbd9ed53384.js} +1 -1
  20. package/app/{.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-e1c9f4ce8466e3ad.js → .next/static/chunks/app/(dashboard)/dashboard/providers/page-62fb355a1fda21fb.js} +1 -1
  21. package/app/.next/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-6ca234b58c5e9feb.js → page-da3416bfce941d67.js} +1 -1
  22. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/{page-cf70f587dc7ab205.js → page-c9a257b85e05472a.js} +1 -1
  23. package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/[id]/{page-ea262b6192d5a92c.js → page-2141fe25b428c1a8.js} +1 -1
  24. package/app/{.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-36d107b083ad3a43.js → .next/static/chunks/app/(dashboard)/dashboard/skills/page-459447066f6cd1d5.js} +1 -1
  25. package/app/.next/static/chunks/app/(dashboard)/dashboard/token-saver/{page-14e5599c720c645b.js → page-93ce8e180c126dcc.js} +1 -1
  26. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/{page-687e09f904b04cea.js → page-b6c5cc339e7a5ef3.js} +1 -1
  27. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/{page-195bdcbea10136e1.js → page-492962969724f559.js} +1 -1
  28. package/app/.next/static/chunks/app/(dashboard)/{layout-6dfa9d7deb27d461.js → layout-c0725f0b6b7f0bea.js} +1 -1
  29. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-e08a7bfc3255b9c7.js +1 -0
  30. package/app/.next/static/chunks/app/layout-5fa07c6e20da16ba.js +1 -0
  31. package/app/.next/static/chunks/app/login/{page-f326e6c17a8b0e04.js → page-df9fdce0e38e5f58.js} +1 -1
  32. package/app/.next/static/media/catalog.b2c6512a.json +38874 -0
  33. package/app/.next-cli-build/BUILD_ID +1 -1
  34. package/app/.next-cli-build/app-path-routes-manifest.json +12 -12
  35. package/app/.next-cli-build/build-manifest.json +2 -2
  36. package/app/.next-cli-build/prerender-manifest.json +3 -3
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page_client-reference-manifest.js +1 -1
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  88. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  90. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  92. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  93. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  94. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  95. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  96. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  97. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  99. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  100. package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  101. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  102. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  103. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  104. package/app/.next-cli-build/server/app/api/agent-library/catalog/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/agent-library/doctor/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/agent-library/export/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/agent-library/mcp/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/agent-library/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/agent-library/skills/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/agent-library/sync/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/agent-library/updates/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/aider-settings/route.js +2 -2
  116. package/app/.next-cli-build/server/app/api/cli-tools/aider-settings/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
  118. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/claude-full-catalog/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/claude-picker-labels/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  126. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  130. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/fx-settings/manual-configs/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/fx-settings/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/fx-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js +2 -2
  143. package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js +2 -2
  145. package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  147. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  149. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  151. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  153. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/manual-configs/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  158. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/picker-labels/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/health/live/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/strategy/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/mgmt/v1/health/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/mgmt/v1/metrics/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/mgmt/v1/providers/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/mgmt/v1/routing/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/mgmt/v1/usage/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/mgmt/v1/version/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/models/routable/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/pricing/defaults/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/batch/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/cache/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/prepare/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/remove-unavailable/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/cancel/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/start/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/status/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/providers/validate/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.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/routing/feedback/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/routing/insights/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/routing/learn/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/routing/stats/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/routing/versions/promote/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/routing/versions/rollback/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/skills/[id]/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/token-saver/vault-stats/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  300. package/app/.next-cli-build/server/app/callback.html +1 -1
  301. package/app/.next-cli-build/server/app/callback.rsc +3 -3
  302. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  303. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  304. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  305. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  307. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  308. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  309. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  310. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  311. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
  312. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/index.html +1 -1
  314. package/app/.next-cli-build/server/app/index.rsc +3 -3
  315. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  316. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  317. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  318. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  320. package/app/.next-cli-build/server/app/landing.html +1 -1
  321. package/app/.next-cli-build/server/app/landing.rsc +3 -3
  322. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  323. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  324. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  325. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  327. package/app/.next-cli-build/server/app/login.html +1 -1
  328. package/app/.next-cli-build/server/app/login.rsc +4 -4
  329. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  330. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  331. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  332. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  335. package/app/.next-cli-build/server/app-paths-manifest.json +12 -12
  336. package/app/.next-cli-build/server/chunks/1350.js +1 -1
  337. package/app/.next-cli-build/server/chunks/2847.js +1 -1
  338. package/app/.next-cli-build/server/chunks/3464.js +1 -1
  339. package/app/.next-cli-build/server/chunks/3904.js +1 -1
  340. package/app/.next-cli-build/server/chunks/4454.js +1 -1
  341. package/app/.next-cli-build/server/chunks/4646.js +1 -1
  342. package/app/.next-cli-build/server/chunks/5139.js +1 -1
  343. package/app/.next-cli-build/server/chunks/7662.js +1 -1
  344. package/app/.next-cli-build/server/chunks/7757.js +1 -1
  345. package/app/.next-cli-build/server/chunks/869.js +1 -1
  346. package/app/.next-cli-build/server/chunks/8998.js +7 -7
  347. package/app/.next-cli-build/server/chunks/static/media/catalog.b2c6512a.json +38874 -0
  348. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  349. package/app/.next-cli-build/server/middleware.js +4 -4
  350. package/app/.next-cli-build/server/pages/404.html +1 -1
  351. package/app/.next-cli-build/server/pages/500.html +1 -1
  352. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  353. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  354. package/app/.next-cli-build/static/chunks/1321-e00fa4ad9a905a7b.js +1 -0
  355. package/app/.next-cli-build/static/chunks/4601-44deee06e6597c34.js +1 -0
  356. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/agent-library/{page-fa24110e606e19b6.js → page-5099a8abbc816db2.js} +1 -1
  357. package/app/{.next/static/chunks/app/(dashboard)/dashboard/basic-chat/page-7b00fb83303d1d11.js → .next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-f19524e912fe1985.js} +1 -1
  358. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-e59f3822e2167ab7.js → page-5ffac5b1a7f569eb.js} +1 -1
  359. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-d994adf3e0ce78c1.js → page-e88926cdf34f51b4.js} +1 -1
  360. package/app/{.next/static/chunks/app/(dashboard)/dashboard/combos/page-99d3be5c7da63d57.js → .next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-f18e04dca95f62e1.js} +1 -1
  361. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/routing/{page-650dc0927f999aaf.js → page-0fbb282f4f13b383.js} +1 -1
  362. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-eefda4a8f32e649e.js → page-a6d96961aa96c6f6.js} +1 -1
  363. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-adba2750c4fbf61e.js → page-57222cb64d90dbc5.js} +1 -1
  364. package/app/{.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e6fc3a5c25ce1247.js → .next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-b538f94596e78384.js} +1 -1
  365. package/app/{.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-078eb5d8bfc3f4d1.js → .next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-e5f3c1f8be627058.js} +1 -1
  366. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-7dfde081613f35f3.js → page-3b278b46c2e9b047.js} +1 -1
  367. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/{page-1d63cfd88010b65f.js → page-768e0fe3ec5c50cb.js} +1 -1
  368. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-281c93713fd1e960.js → page-932db86bb9b65c82.js} +1 -1
  369. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-f44e14a7efc8f81a.js → page-77d678509c4b9807.js} +1 -1
  370. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-0e0047609d5634c9.js → page-be26ebe2eb5fe86f.js} +1 -1
  371. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-7650a3a5ee2467f7.js +10 -0
  372. package/app/{.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-604dae851964c441.js → .next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-40b58bbd9ed53384.js} +1 -1
  373. package/app/{.next/static/chunks/app/(dashboard)/dashboard/providers/page-e1c9f4ce8466e3ad.js → .next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-62fb355a1fda21fb.js} +1 -1
  374. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-6ca234b58c5e9feb.js → page-da3416bfce941d67.js} +1 -1
  375. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-cf70f587dc7ab205.js → page-c9a257b85e05472a.js} +1 -1
  376. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/[id]/{page-ea262b6192d5a92c.js → page-2141fe25b428c1a8.js} +1 -1
  377. package/app/{.next/static/chunks/app/(dashboard)/dashboard/skills/page-36d107b083ad3a43.js → .next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-459447066f6cd1d5.js} +1 -1
  378. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-14e5599c720c645b.js → page-93ce8e180c126dcc.js} +1 -1
  379. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-687e09f904b04cea.js → page-b6c5cc339e7a5ef3.js} +1 -1
  380. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-195bdcbea10136e1.js → page-492962969724f559.js} +1 -1
  381. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-6dfa9d7deb27d461.js → layout-c0725f0b6b7f0bea.js} +1 -1
  382. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-e08a7bfc3255b9c7.js +1 -0
  383. package/app/.next-cli-build/static/chunks/app/layout-5fa07c6e20da16ba.js +1 -0
  384. package/app/.next-cli-build/static/chunks/app/login/{page-f326e6c17a8b0e04.js → page-df9fdce0e38e5f58.js} +1 -1
  385. package/app/.next-cli-build/static/media/catalog.b2c6512a.json +38874 -0
  386. package/app/open-sse/identity/tls/bin/darwin/arm64/switchboard-claude-tls +0 -0
  387. package/app/open-sse/identity/tls/bin/darwin/x64/switchboard-claude-tls +0 -0
  388. package/app/open-sse/identity/tls/bin/linux/arm64/switchboard-claude-tls +0 -0
  389. package/app/open-sse/identity/tls/bin/linux/x64/switchboard-claude-tls +0 -0
  390. package/app/open-sse/identity/tls/bin/win32/arm64/switchboard-claude-tls.exe +0 -0
  391. package/app/open-sse/identity/tls/bin/win32/x64/switchboard-claude-tls.exe +0 -0
  392. package/app/open-sse/providers/generated/catalog.json +37152 -0
  393. package/app/package.json +3 -2
  394. package/package.json +1 -1
  395. package/app/.next/static/chunks/1321-8f2bc21e3e1510f8.js +0 -1
  396. package/app/.next/static/chunks/4707-8ea6ba647d0a40c9.js +0 -1
  397. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-9bc17a08bc8f466c.js +0 -10
  398. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-423a4c1e078872dd.js +0 -1
  399. package/app/.next/static/chunks/app/layout-26e1615874db4cd7.js +0 -1
  400. package/app/.next/static/media/catalog.fb7b1b70.json +0 -1722
  401. package/app/.next-cli-build/server/chunks/static/media/catalog.fb7b1b70.json +0 -1722
  402. package/app/.next-cli-build/static/chunks/1321-8f2bc21e3e1510f8.js +0 -1
  403. package/app/.next-cli-build/static/chunks/4707-8ea6ba647d0a40c9.js +0 -1
  404. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-9bc17a08bc8f466c.js +0 -10
  405. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-423a4c1e078872dd.js +0 -1
  406. package/app/.next-cli-build/static/chunks/app/layout-26e1615874db4cd7.js +0 -1
  407. package/app/.next-cli-build/static/media/catalog.fb7b1b70.json +0 -1722
  408. /package/app/.next/static/{buFm6Q9XY8OxLsQzoorjq → 5c3eUqHnZ4XIBUMPRDLdh}/_buildManifest.js +0 -0
  409. /package/app/.next/static/{buFm6Q9XY8OxLsQzoorjq → 5c3eUqHnZ4XIBUMPRDLdh}/_ssgManifest.js +0 -0
  410. /package/app/.next-cli-build/static/{buFm6Q9XY8OxLsQzoorjq → 5c3eUqHnZ4XIBUMPRDLdh}/_buildManifest.js +0 -0
  411. /package/app/.next-cli-build/static/{buFm6Q9XY8OxLsQzoorjq → 5c3eUqHnZ4XIBUMPRDLdh}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6620],{16144:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>j});var a=s(95155),r=s(73321),d=s(98500),i=s.n(d),n=s(12115),o=s(35497),l=s(11059),c=s(57250),m=s(88105),x=s(54026),p=s(78559);let h=new Set([]),u={image:"image-combo",tts:"tts-combo"};function f(e){let t=Object.entries(e).some(([e,t])=>e.startsWith("modelLock_")&&t&&new Date(t).getTime()>Date.now());return"unavailable"!==e.testStatus||t?e.testStatus:"active"}function b({provider:e,kind:t,connections:s,isCustom:r,onToggle:d}){let n=m.Q2[e.id],l=!!n?.noAuth,x=s.filter(t=>t.provider===e.id),p=x.filter(e=>{let t=f(e);return"active"===t||"success"===t}).length,h=x.filter(e=>{let t=f(e);return"error"===t||"expired"===t||"unavailable"===t}).length,u=x.length,v=u>0&&x.every(e=>!1===e.isActive);return(0,a.jsx)(i(),{href:`/dashboard/media-providers/${t}/${e.id}`,className:"group",children:(0,a.jsx)(o.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${v?"opacity-50":""}`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,a.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,a.jsx)(c.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:[r&&(0,a.jsx)(o.Ex,{variant:"default",size:"sm",children:"Custom"}),l?(0,a.jsx)(o.Ex,{variant:"success",size:"sm",children:"Ready"}):v?(0,a.jsx)(o.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===u?(0,a.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,a.jsxs)(a.Fragment,{children:[p>0&&(0,a.jsxs)(o.Ex,{variant:"success",size:"sm",dot:!0,children:[p," Connected"]}),h>0&&(0,a.jsxs)(o.Ex,{variant:"error",size:"sm",dot:!0,children:[h," Error"]}),0===p&&0===h&&(0,a.jsxs)(o.Ex,{variant:"default",size:"sm",children:[u," Added"]})]})]})]})]}),u>0&&(0,a.jsx)("span",{className:"shrink-0 opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,a.jsx)(o.lM,{size:"sm",checked:!v,onChange:t=>{d&&d(e.id,t)},title:v?"Enable provider":"Disable provider"})})]})})})}function v({combos:e}){return 0===e.length?null:(0,a.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,a.jsx)(i(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,a.jsx)(o.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,a.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,t)=>{let s="string"==typeof e?e.split("/")[0]:"",r=m.Q2[s];return(0,a.jsx)("div",{title:r?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${r?.color??"#888"}15`},children:(0,a.jsx)(c.A,{src:`/providers/${s}.png`,alt:r?.name||s,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:r?.textIcon||s.slice(0,2).toUpperCase(),fallbackColor:r?.color})},`${e}-${t}`)}),e.models.length>6&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,a.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}let g={image:{method:"POST",path:"/v1/images/generations",desc:"OpenAI-compatible text-to-image synthesis endpoint",payloadExample:'{ "model": "...", "prompt": "..." }'},video:{method:"POST",path:"/v1/videos/generations",desc:"Video generation and edit endpoint",payloadExample:'{ "model": "...", "prompt": "..." }'},tts:{method:"POST",path:"/v1/audio/speech",desc:"OpenAI-compatible text-to-speech audio synthesis",payloadExample:'{ "model": "...", "input": "...", "voice": "alloy" }'},stt:{method:"POST",path:"/v1/audio/transcriptions",desc:"OpenAI-compatible multipart speech-to-text audio transcription",payloadExample:"multipart/form-data with 'file' and 'model'"},embedding:{method:"POST",path:"/v1/embeddings",desc:"OpenAI-compatible vector embeddings endpoint",payloadExample:'{ "model": "...", "input": "..." }'}};function j(){let{kind:e}=(0,r.useParams)(),t=(0,r.useRouter)(),[s,d]=(0,n.useState)([]),[i,c]=(0,n.useState)([]),[f,j]=(0,n.useState)([]),[y,N]=(0,n.useState)(!1),[w,k]=(0,n.useState)("http://127.0.0.1:20128"),{copied:C,copy:E}=(0,l.C)(),[$,S]=(0,n.useState)(!1);(0,n.useEffect)(()=>{k(window.location.origin)},[]),(0,n.useEffect)(()=>{("webSearch"===e||"webFetch"===e)&&t.replace("/dashboard/media-providers/web")},[e,t]);let T=m.rj.find(t=>t.id===e),A="embedding"===e,O=h.has(e),z=g[e];if((0,n.useEffect)(()=>{T&&(fetch("/api/providers",{cache:"no-store"}).then(async e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);d((await e.json()).connections||[]),S(!1)}).catch(()=>S(!0)),A&&fetch("/api/provider-nodes",{cache:"no-store"}).then(e=>e.json()).then(e=>c((e.nodes||[]).filter(e=>"custom-embedding"===e.type))).catch(()=>{}),O&&fetch("/api/combos",{cache:"no-store"}).then(e=>e.json()).then(e=>j(e.combos||[])).catch(()=>{}))},[A,O,T]),!T)return(0,r.notFound)();let P=(0,m.o5)(e),I=f.filter(t=>t.kind===e),_=i.map(e=>({id:e.id,name:e.name||"Custom Embedding",color:"#6366F1",textIcon:"CE"})),F=[...P,..._],R=async(e,t)=>{let a=s.filter(t=>t.provider===e),r=new Map(a.map(e=>[e.id,e.isActive]));d(s=>s.map(s=>s.provider===e?{...s,isActive:t}:s));let i=(await Promise.allSettled(a.map(e=>fetch(`/api/providers/${encodeURIComponent(e.id)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})))).filter(e=>"rejected"===e.status||!e.value.ok).length;i>0&&(d(e=>e.map(e=>r.has(e.id)?{...e,isActive:r.get(e.id)}:e)),(0,p.s)(`Failed to ${t?"enable":"disable"} provider (${i}/${a.length} connections rejected). Reverted.`))},M=async()=>{let s=u[e]||`${e}-combo`,a=s,r=1,d=new Set(f.map(e=>e.name));for(;d.has(a);)a=`${s}-${r++}`;let i=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a,models:[],kind:e})});if(i.ok){let e=await i.json();t.push(`/dashboard/media-providers/combo/${e.id}`)}else{let e=await i.json();(0,p.s)(e.error||"Failed to create combo")}},U=z?`${w.replace(/\/+$/,"")}${z.path}`:"";return(0,a.jsx)("div",{className:"flex flex-col gap-6",children:$?(0,a.jsxs)("div",{role:"alert",className:"flex flex-col gap-3 border border-red-300 bg-red-500/10 rounded-xl p-4",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:"Couldn't load provider connections. Check the server and try again."}),(0,a.jsx)("div",{children:(0,a.jsx)(o.$n,{size:"sm",variant:"outline",onClick:()=>{S(!1),fetch("/api/providers",{cache:"no-store"}).then(async e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);d((await e.json()).connections||[])}).catch(()=>S(!0))},children:"Retry"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h1",{className:"text-[17px] font-semibold text-text-main",children:T.label}),(0,a.jsx)("p",{className:"text-xs font-mono text-text-subtle",children:"Media providers \xb7 not agent Skills"})]}),(0,a.jsx)(x.A,{activeKind:e}),z&&(0,a.jsx)(o.Zp,{padding:"xs",className:"border border-border/80 bg-surface-2/60",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)("span",{className:"text-[11px] font-mono font-semibold px-2 py-0.5 rounded bg-teal-500/10 text-teal-600 dark:text-teal-400 border border-teal-500/20 shrink-0",children:z.method}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-text-main truncate",children:[T.label," API Endpoint"]})]}),(0,a.jsx)("span",{className:"text-[11px] font-mono text-text-muted hidden sm:inline truncate",children:z.payloadExample})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(o.pd,{value:U,readOnly:!0,className:"flex-1 min-w-0",inputClassName:"font-mono text-xs bg-surface"}),(0,a.jsx)("button",{type:"button",onClick:()=>E(U,"media_endpoint"),className:"p-2 hover:bg-surface rounded text-text-muted hover:text-primary transition-colors shrink-0 border border-border/60",title:"Copy Endpoint URL","aria-label":`Copy ${T.label} Endpoint URL`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] leading-none",children:"media_endpoint"===C?"check":"content_copy"})})]}),(0,a.jsx)("p",{className:"text-[11px] text-text-muted",children:z.desc})]})}),(A||O)&&(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[O&&(0,a.jsx)(o.$n,{size:"sm",icon:"add",onClick:M,children:"Create Combo"}),A&&(0,a.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>N(!0),children:"Add Custom Embedding"})]}),O&&I.length>0&&(0,a.jsx)(v,{combos:I}),0===F.length?(0,a.jsxs)("div",{className:"text-center py-12 border border-dashed border-border rounded-xl text-text-muted text-sm",children:["No providers support ",(0,a.jsx)("strong",{children:T.label})," yet."]}):(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:[P.map(t=>(0,a.jsx)(b,{provider:t,kind:e,connections:s,onToggle:R},t.id)),_.map(t=>(0,a.jsx)(b,{provider:t,kind:e,connections:s,isCustom:!0,onToggle:R},t.id))]}),A&&(0,a.jsx)(o.x0,{isOpen:y,onClose:()=>N(!1),onCreated:e=>{c(t=>[...t,e]),N(!1)}})]})})}},35497:(e,t,s)=>{"use strict";s.d(t,{x0:()=>w.default,Ex:()=>l.default,$n:()=>a.default,nh:()=>S.default,Zp:()=>i.default,Qv:()=>o.CardSkeleton,CK:()=>h.default,uo:()=>n.ConfirmModal,G9:()=>g.default,wI:()=>N.default,vj:()=>y.default,vE:()=>j.default,pd:()=>r.default,Mh:()=>v.default,uR:()=>p.default,Nf:()=>u.default,aF:()=>n.default,rq:()=>x.default,gw:()=>k.default,LF:()=>m.default,Wx:()=>$.default,gM:()=>b.default,Iz:()=>C.default,l6:()=>d.default,lM:()=>c.default,m_:()=>E.default,jK:()=>f.default});var a=s(92542),r=s(11910),d=s(98),i=s(84588),n=s(81127),o=s(25086);s(56319);var l=s(56061),c=s(98542);s(61929),s(21110),s(92622),s(8823),s(92173);var m=s(90882),x=s(72908),p=s(28815),h=s(45455),u=s(28058),f=s(4809);s(21931),s(80752),s(40197);var b=s(23615);s(44736);var v=s(62899);s(94230);var g=s(30815),j=s(23936),y=s(95088),N=s(73579),w=s(96748),k=s(4823),C=s(28067),E=s(97677),$=s(51825),S=s(29366);s(76361),s(91450)},54026:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var a=s(95155),r=s(98500),d=s.n(r),i=s(73321),n=s(31474);let o=[{id:"image",label:"Image",href:"/dashboard/media-providers/image"},{id:"tts",label:"TTS",href:"/dashboard/media-providers/tts"},{id:"stt",label:"STT",href:"/dashboard/media-providers/stt"},{id:"embedding",label:"Embedding",href:"/dashboard/media-providers/embedding"},{id:"video",label:"Video",href:"/dashboard/media-providers/video"},{id:"web",label:"Web",href:"/dashboard/media-providers/web"}];function l({activeKind:e}){let t=(0,i.usePathname)(),s=e||o.find(e=>t===e.href||t.startsWith(`${e.href}/`))?.id||"";return(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 mb-5",children:[(0,a.jsx)(d(),{href:"/dashboard/media-providers",className:(0,n.cn)("px-2.5 py-1 rounded-[7px] text-xs font-medium border transition-colors","/dashboard/media-providers"===t?"bg-brand-500/15 text-primary border-brand-500/40":"bg-transparent text-text-muted border-border hover:text-text-main hover:border-brand-500/30"),children:"All"}),o.map(e=>{let t=s===e.id;return(0,a.jsx)(d(),{href:e.href,className:(0,n.cn)("px-2.5 py-1 rounded-[7px] text-xs font-medium border transition-colors",t?"bg-brand-500/15 text-primary border-brand-500/40":"bg-transparent text-text-muted border-border hover:text-text-main hover:border-brand-500/30"),children:e.label},e.id)})]})}},61493:(e,t,s)=>{Promise.resolve().then(s.bind(s,16144))}},e=>{e.O(0,[2574,3862,782,8500,594,1321,4707,1330,8441,3794,7358],()=>e(e.s=61493)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6620],{16144:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>j});var a=s(95155),r=s(73321),d=s(98500),i=s.n(d),n=s(12115),o=s(35497),l=s(11059),c=s(57250),m=s(88105),x=s(54026),p=s(78559);let h=new Set([]),u={image:"image-combo",tts:"tts-combo"};function f(e){let t=Object.entries(e).some(([e,t])=>e.startsWith("modelLock_")&&t&&new Date(t).getTime()>Date.now());return"unavailable"!==e.testStatus||t?e.testStatus:"active"}function b({provider:e,kind:t,connections:s,isCustom:r,onToggle:d}){let n=m.Q2[e.id],l=!!n?.noAuth,x=s.filter(t=>t.provider===e.id),p=x.filter(e=>{let t=f(e);return"active"===t||"success"===t}).length,h=x.filter(e=>{let t=f(e);return"error"===t||"expired"===t||"unavailable"===t}).length,u=x.length,v=u>0&&x.every(e=>!1===e.isActive);return(0,a.jsx)(i(),{href:`/dashboard/media-providers/${t}/${e.id}`,className:"group",children:(0,a.jsx)(o.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${v?"opacity-50":""}`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,a.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,a.jsx)(c.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:[r&&(0,a.jsx)(o.Ex,{variant:"default",size:"sm",children:"Custom"}),l?(0,a.jsx)(o.Ex,{variant:"success",size:"sm",children:"Ready"}):v?(0,a.jsx)(o.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===u?(0,a.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,a.jsxs)(a.Fragment,{children:[p>0&&(0,a.jsxs)(o.Ex,{variant:"success",size:"sm",dot:!0,children:[p," Connected"]}),h>0&&(0,a.jsxs)(o.Ex,{variant:"error",size:"sm",dot:!0,children:[h," Error"]}),0===p&&0===h&&(0,a.jsxs)(o.Ex,{variant:"default",size:"sm",children:[u," Added"]})]})]})]})]}),u>0&&(0,a.jsx)("span",{className:"shrink-0 opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,a.jsx)(o.lM,{size:"sm",checked:!v,onChange:t=>{d&&d(e.id,t)},title:v?"Enable provider":"Disable provider"})})]})})})}function v({combos:e}){return 0===e.length?null:(0,a.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,a.jsx)(i(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,a.jsx)(o.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,a.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,t)=>{let s="string"==typeof e?e.split("/")[0]:"",r=m.Q2[s];return(0,a.jsx)("div",{title:r?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${r?.color??"#888"}15`},children:(0,a.jsx)(c.A,{src:`/providers/${s}.png`,alt:r?.name||s,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:r?.textIcon||s.slice(0,2).toUpperCase(),fallbackColor:r?.color})},`${e}-${t}`)}),e.models.length>6&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,a.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}let g={image:{method:"POST",path:"/v1/images/generations",desc:"OpenAI-compatible text-to-image synthesis endpoint",payloadExample:'{ "model": "...", "prompt": "..." }'},video:{method:"POST",path:"/v1/videos/generations",desc:"Video generation and edit endpoint",payloadExample:'{ "model": "...", "prompt": "..." }'},tts:{method:"POST",path:"/v1/audio/speech",desc:"OpenAI-compatible text-to-speech audio synthesis",payloadExample:'{ "model": "...", "input": "...", "voice": "alloy" }'},stt:{method:"POST",path:"/v1/audio/transcriptions",desc:"OpenAI-compatible multipart speech-to-text audio transcription",payloadExample:"multipart/form-data with 'file' and 'model'"},embedding:{method:"POST",path:"/v1/embeddings",desc:"OpenAI-compatible vector embeddings endpoint",payloadExample:'{ "model": "...", "input": "..." }'}};function j(){let{kind:e}=(0,r.useParams)(),t=(0,r.useRouter)(),[s,d]=(0,n.useState)([]),[i,c]=(0,n.useState)([]),[f,j]=(0,n.useState)([]),[y,N]=(0,n.useState)(!1),[w,k]=(0,n.useState)("http://127.0.0.1:20128"),{copied:C,copy:E}=(0,l.C)(),[$,S]=(0,n.useState)(!1);(0,n.useEffect)(()=>{k(window.location.origin)},[]),(0,n.useEffect)(()=>{("webSearch"===e||"webFetch"===e)&&t.replace("/dashboard/media-providers/web")},[e,t]);let T=m.rj.find(t=>t.id===e),A="embedding"===e,O=h.has(e),z=g[e];if((0,n.useEffect)(()=>{T&&(fetch("/api/providers",{cache:"no-store"}).then(async e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);d((await e.json()).connections||[]),S(!1)}).catch(()=>S(!0)),A&&fetch("/api/provider-nodes",{cache:"no-store"}).then(e=>e.json()).then(e=>c((e.nodes||[]).filter(e=>"custom-embedding"===e.type))).catch(()=>{}),O&&fetch("/api/combos",{cache:"no-store"}).then(e=>e.json()).then(e=>j(e.combos||[])).catch(()=>{}))},[A,O,T]),!T)return(0,r.notFound)();let P=(0,m.o5)(e),I=f.filter(t=>t.kind===e),_=i.map(e=>({id:e.id,name:e.name||"Custom Embedding",color:"#6366F1",textIcon:"CE"})),F=[...P,..._],R=async(e,t)=>{let a=s.filter(t=>t.provider===e),r=new Map(a.map(e=>[e.id,e.isActive]));d(s=>s.map(s=>s.provider===e?{...s,isActive:t}:s));let i=(await Promise.allSettled(a.map(e=>fetch(`/api/providers/${encodeURIComponent(e.id)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})))).filter(e=>"rejected"===e.status||!e.value.ok).length;i>0&&(d(e=>e.map(e=>r.has(e.id)?{...e,isActive:r.get(e.id)}:e)),(0,p.s)(`Failed to ${t?"enable":"disable"} provider (${i}/${a.length} connections rejected). Reverted.`))},M=async()=>{let s=u[e]||`${e}-combo`,a=s,r=1,d=new Set(f.map(e=>e.name));for(;d.has(a);)a=`${s}-${r++}`;let i=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a,models:[],kind:e})});if(i.ok){let e=await i.json();t.push(`/dashboard/media-providers/combo/${e.id}`)}else{let e=await i.json();(0,p.s)(e.error||"Failed to create combo")}},U=z?`${w.replace(/\/+$/,"")}${z.path}`:"";return(0,a.jsx)("div",{className:"flex flex-col gap-6",children:$?(0,a.jsxs)("div",{role:"alert",className:"flex flex-col gap-3 border border-red-300 bg-red-500/10 rounded-xl p-4",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:"Couldn't load provider connections. Check the server and try again."}),(0,a.jsx)("div",{children:(0,a.jsx)(o.$n,{size:"sm",variant:"outline",onClick:()=>{S(!1),fetch("/api/providers",{cache:"no-store"}).then(async e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);d((await e.json()).connections||[])}).catch(()=>S(!0))},children:"Retry"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h1",{className:"text-[17px] font-semibold text-text-main",children:T.label}),(0,a.jsx)("p",{className:"text-xs font-mono text-text-subtle",children:"Media providers \xb7 not agent Skills"})]}),(0,a.jsx)(x.A,{activeKind:e}),z&&(0,a.jsx)(o.Zp,{padding:"xs",className:"border border-border/80 bg-surface-2/60",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)("span",{className:"text-[11px] font-mono font-semibold px-2 py-0.5 rounded bg-teal-500/10 text-teal-600 dark:text-teal-400 border border-teal-500/20 shrink-0",children:z.method}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-text-main truncate",children:[T.label," API Endpoint"]})]}),(0,a.jsx)("span",{className:"text-[11px] font-mono text-text-muted hidden sm:inline truncate",children:z.payloadExample})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(o.pd,{value:U,readOnly:!0,className:"flex-1 min-w-0",inputClassName:"font-mono text-xs bg-surface"}),(0,a.jsx)("button",{type:"button",onClick:()=>E(U,"media_endpoint"),className:"p-2 hover:bg-surface rounded text-text-muted hover:text-primary transition-colors shrink-0 border border-border/60",title:"Copy Endpoint URL","aria-label":`Copy ${T.label} Endpoint URL`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] leading-none",children:"media_endpoint"===C?"check":"content_copy"})})]}),(0,a.jsx)("p",{className:"text-[11px] text-text-muted",children:z.desc})]})}),(A||O)&&(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[O&&(0,a.jsx)(o.$n,{size:"sm",icon:"add",onClick:M,children:"Create Combo"}),A&&(0,a.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>N(!0),children:"Add Custom Embedding"})]}),O&&I.length>0&&(0,a.jsx)(v,{combos:I}),0===F.length?(0,a.jsxs)("div",{className:"text-center py-12 border border-dashed border-border rounded-xl text-text-muted text-sm",children:["No providers support ",(0,a.jsx)("strong",{children:T.label})," yet."]}):(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:[P.map(t=>(0,a.jsx)(b,{provider:t,kind:e,connections:s,onToggle:R},t.id)),_.map(t=>(0,a.jsx)(b,{provider:t,kind:e,connections:s,isCustom:!0,onToggle:R},t.id))]}),A&&(0,a.jsx)(o.x0,{isOpen:y,onClose:()=>N(!1),onCreated:e=>{c(t=>[...t,e]),N(!1)}})]})})}},35497:(e,t,s)=>{"use strict";s.d(t,{x0:()=>w.default,Ex:()=>l.default,$n:()=>a.default,nh:()=>S.default,Zp:()=>i.default,Qv:()=>o.CardSkeleton,CK:()=>h.default,uo:()=>n.ConfirmModal,G9:()=>g.default,wI:()=>N.default,vj:()=>y.default,vE:()=>j.default,pd:()=>r.default,Mh:()=>v.default,uR:()=>p.default,Nf:()=>u.default,aF:()=>n.default,rq:()=>x.default,gw:()=>k.default,LF:()=>m.default,Wx:()=>$.default,gM:()=>b.default,Iz:()=>C.default,l6:()=>d.default,lM:()=>c.default,m_:()=>E.default,jK:()=>f.default});var a=s(92542),r=s(11910),d=s(98),i=s(84588),n=s(81127),o=s(25086);s(56319);var l=s(56061),c=s(98542);s(61929),s(21110),s(92622),s(8823),s(92173);var m=s(90882),x=s(72908),p=s(28815),h=s(45455),u=s(28058),f=s(4809);s(21931),s(80752),s(40197);var b=s(23615);s(44736);var v=s(62899);s(94230);var g=s(30815),j=s(23936),y=s(95088),N=s(73579),w=s(96748),k=s(4823),C=s(28067),E=s(97677),$=s(51825),S=s(29366);s(76361),s(91450)},54026:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var a=s(95155),r=s(98500),d=s.n(r),i=s(73321),n=s(31474);let o=[{id:"image",label:"Image",href:"/dashboard/media-providers/image"},{id:"tts",label:"TTS",href:"/dashboard/media-providers/tts"},{id:"stt",label:"STT",href:"/dashboard/media-providers/stt"},{id:"embedding",label:"Embedding",href:"/dashboard/media-providers/embedding"},{id:"video",label:"Video",href:"/dashboard/media-providers/video"},{id:"web",label:"Web",href:"/dashboard/media-providers/web"}];function l({activeKind:e}){let t=(0,i.usePathname)(),s=e||o.find(e=>t===e.href||t.startsWith(`${e.href}/`))?.id||"";return(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 mb-5",children:[(0,a.jsx)(d(),{href:"/dashboard/media-providers",className:(0,n.cn)("px-2.5 py-1 rounded-[7px] text-xs font-medium border transition-colors","/dashboard/media-providers"===t?"bg-brand-500/15 text-primary border-brand-500/40":"bg-transparent text-text-muted border-border hover:text-text-main hover:border-brand-500/30"),children:"All"}),o.map(e=>{let t=s===e.id;return(0,a.jsx)(d(),{href:e.href,className:(0,n.cn)("px-2.5 py-1 rounded-[7px] text-xs font-medium border transition-colors",t?"bg-brand-500/15 text-primary border-brand-500/40":"bg-transparent text-text-muted border-border hover:text-text-main hover:border-brand-500/30"),children:e.label},e.id)})]})}},61493:(e,t,s)=>{Promise.resolve().then(s.bind(s,16144))}},e=>{e.O(0,[2574,3862,782,8500,594,4601,1321,1330,8441,3794,7358],()=>e(e.s=61493)),_N_E=e.O()}]);
@@ -1,4 +1,4 @@
1
1
  (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8334],{22662:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>y});var s=a(95155),r=a(73321),l=a(12115),i=a(98500),n=a.n(i),o=a(35497),d=a(57250),c=a(88105),m=a(78559),u=a(48874),x=a(77251),h=a(5772);function p(e){if("string"!=typeof e)return{providerId:"",model:""};let t=e.indexOf("/");return t<0?{providerId:e,model:""}:{providerId:e.slice(0,t),model:e.slice(t+1)}}let f=/^[a-zA-Z0-9_.\-]+$/,b={webSearch:"Web Search",webFetch:"Web Fetch",image:"Text to Image",tts:"Text To Speech"},g={webSearch:"/v1/search",webFetch:"/v1/web/fetch",image:"/v1/images/generations",tts:"/v1/audio/speech"},j={webSearch:e=>({model:e,query:"What is the latest news about AI?",search_type:"web",max_results:5}),webFetch:e=>({model:e,url:"https://example.com",format:"markdown"}),image:e=>({model:e,prompt:"A cute cat playing piano",n:1,size:"1024x1024"}),tts:e=>({model:e,input:"Hello, this is a test.",voice:"alloy"})};function w(e){return"webSearch"===e||"webFetch"===e?"/dashboard/media-providers/web":`/dashboard/media-providers/${e}`}function y(){let{id:e}=(0,r.useParams)(),t=(0,r.useRouter)(),[a,i]=(0,l.useState)(null),[y,v]=(0,l.useState)(!0),[N,k]=(0,l.useState)(""),[S,C]=(0,l.useState)(""),[$,T]=(0,l.useState)([]),[U,R]=(0,l.useState)(!1),[O,_]=(0,l.useState)(!1),[E,P]=(0,l.useState)([]),[A,L]=(0,l.useState)(!1),[F,M]=(0,l.useState)(null),[z,I]=(0,l.useState)(""),[H,D]=(0,l.useState)(""),[q,J]=(0,l.useState)([]),[W,Z]=(0,l.useState)({}),K=async()=>{try{let[t,a,s,r,l]=await Promise.all([fetch(`/api/combos/${e}`,{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"}),fetch("/api/usage/logs",{cache:"no-store"}),fetch("/api/providers",{cache:"no-store"}),fetch("/api/models/alias",{cache:"no-store"})]);if(l.ok&&Z((await l.json()).aliases||{}),r.ok&&J((await r.json()).connections||[]),!t.ok){i(null),v(!1);return}let n=await t.json();i(n),k(n.name),T(n.models||[]);let o=a.ok?await a.json():{};R(o.comboStrategies?.[n.name]?.fallbackStrategy==="round-robin");let d=s.ok?await s.json():[],c=new Set([n.name,...(n.models||[]).map(e=>{let{model:t}=p(e);return t||e})].map(e=>"string"==typeof e?e.toLowerCase():e));P(d.filter(e=>{let t;return"string"==typeof e&&c.has((t=e.split(" | ")).length>=2?t[1].trim().toLowerCase():"")}).slice(0,50))}catch{}v(!1)};(0,l.useEffect)(()=>{v(!0),i(null)},[e]),(0,l.useEffect)(()=>{K()},[e]);let B=e=>e.trim()?f.test(e)?(C(""),!0):(C("Only letters, numbers, -, _ and ."),!1):(C("Name is required"),!1),G=async t=>{try{let a=await fetch(`/api/combos/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok){let e=await a.json().catch(()=>({}));return(0,m.s)(e.error||"Failed to save combo"),!1}return!0}catch(e){return(0,m.s)("Failed to save combo:",e?.message||e),!1}},Q=async()=>{if(!B(N)||N===a.name)return;let e=a.name;if(await G({name:N})){try{let t=await fetch("/api/settings",{cache:"no-store"});if(t.ok){let a=(await t.json()).comboStrategies||{};if(a[e]){let t={...a};t[N]=t[e],delete t[e];let s=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategies:t})});if(!s.ok)throw Error(`HTTP ${s.status}`)}}}catch(e){(0,m.s)("Failed to migrate round-robin setting:",e?.message||e)}await K()}},Y=async e=>{T(e),await G({models:e})||T($)},V=async e=>{let t=e?.value||e;!t||$.includes(t)||await Y([...$,t])},X=async e=>{let t=e?.value||e;t&&$.includes(t)&&await Y($.filter(e=>e!==t))},ee=async e=>{await Y($.filter((t,a)=>a!==e))},et=async(e,t)=>{let a=[...$],s=e+t;s<0||s>=a.length||([a[e],a[s]]=[a[s],a[e]],await Y(a))},ea=async e=>{R(e);try{let t=await fetch("/api/settings",{cache:"no-store"});if(!t.ok)throw Error(`HTTP ${t.status}`);let s={...(await t.json()).comboStrategies||{}};e?s[a.name]={fallbackStrategy:"round-robin"}:delete s[a.name];let r=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategies:s})});if(!r.ok)throw Error(`HTTP ${r.status}`)}catch(t){R(!e),(0,m.s)("Failed to save round-robin setting:",t?.message||t)}},es=async()=>{if(await (0,x.l)({message:`Delete combo "${a.name?.trim()||e}"?`,confirmText:"Continue"}))try{await (0,u.x)(`/api/combos/${encodeURIComponent(e)}`,{method:"DELETE"}),t.push(w(a.kind))}catch(e){(0,m.s)("Error deleting combo:",e)}},er=async()=>{if(!H.trim())return void I("Paste a client key secret before running this example.");if(L(!0),M(null),I(""),F?.audioUrl)try{URL.revokeObjectURL(F.audioUrl)}catch{}if(F?.imageUrl?.startsWith("blob:"))try{URL.revokeObjectURL(F.imageUrl)}catch{}let e=Date.now();try{let t=g[a.kind],s=j[a.kind](a.name),r={"Content-Type":"application/json"};H&&(r.Authorization=`Bearer ${H}`);let l=await fetch(`/api${t}`,{method:"POST",headers:r,body:JSON.stringify(s)}),i=Date.now()-e;if(!l.ok){let e=await l.json().catch(()=>({})),t=e?.error?.message||e?.error;I("string"==typeof t&&t?t:`HTTP ${l.status}`),M({json:JSON.stringify(e,null,2),latencyMs:i});return}let n=l.headers.get("content-type")||"";if(n.startsWith("image/")){let e=await l.blob();M({imageUrl:URL.createObjectURL(e),latencyMs:i});return}if(n.startsWith("audio/")||"application/octet-stream"===n){let e=await l.blob();M({audioUrl:URL.createObjectURL(e),latencyMs:i});return}let o=await l.json(),d=o?.data?.[0],c=d?.b64_json?`data:image/png;base64,${d.b64_json}`:d?.url||"";M({json:JSON.stringify(function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);let a={};for(let[s,r]of Object.entries(t))a[s]="b64_json"===s&&"string"==typeof r&&r.length>100?`<${r.length} chars base64>`:e(r);return a}(o),null,2),imageUrl:c,latencyMs:i})}catch(e){I(e.message||"Network error")}finally{L(!1)}};if(y)return(0,s.jsx)("div",{className:"text-text-muted text-sm",children:"Loading..."});if(!a)return(0,r.notFound)();let el=b[a.kind]||c.rj.find(e=>e.id===a.kind)?.label||"Combo",ei=g[a.kind],en=a.kind&&j[a.kind]?j[a.kind](a.name):null,eo=ei?`curl -X POST http://localhost:20128${ei} \\
2
2
  -H "Content-Type: application/json" \\
3
3
  -H "Authorization: Bearer ${H||"YOUR_KEY"}" \\
4
- -d '${JSON.stringify(en)}'`:"",ed=w(a.kind);return(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,s.jsx)(n(),{href:ed,className:"text-text-muted hover:text-primary",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"arrow_back"})}),(0,s.jsx)("div",{className:"size-10 rounded-lg bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:"layers"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[el," Combo"]}),(0,s.jsx)("code",{className:"text-lg font-semibold font-mono",children:a.name})]})]}),(0,s.jsx)(o.$n,{variant:"outline",icon:"delete",onClick:es,className:"text-red-500 border-red-200 hover:bg-red-50",children:"Delete"})]}),(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-3",children:"Settings"}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(o.pd,{label:"Combo Name",value:N,onChange:e=>{k(e.target.value),B(e.target.value)},onBlur:Q,error:S}),(0,s.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and ."})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Round Robin"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Rotate providers across requests instead of strict fallback order."})]}),(0,s.jsx)(o.lM,{checked:U,onChange:ea})]})]})]}),(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Providers"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Tried in order (top-down) or rotated when round-robin is on."})]}),(0,s.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>_(!0),children:"Add Provider"})]}),0===$.length?(0,s.jsx)("div",{className:"text-center py-6 border border-dashed border-border rounded-lg text-text-muted text-sm",children:"No providers yet."}):(0,s.jsx)("div",{className:"flex flex-col gap-2",children:$.map((e,t)=>{let{providerId:a,model:r}=p(e),l=c.Q2[a];return(0,s.jsxs)("div",{className:"flex items-center gap-3 p-2 rounded-lg bg-black/[0.02] dark:bg-white/[0.02]",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted w-5 text-center",children:t+1}),(0,s.jsx)(d.A,{src:`/providers/${a}.png`,alt:l?.name||a,size:24,className:"object-contain rounded shrink-0",fallbackText:l?.textIcon||a.slice(0,2).toUpperCase(),fallbackColor:l?.color}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"text-sm font-medium truncate",children:l?.name||a}),r&&(0,s.jsx)("code",{className:"text-[10px] text-text-muted font-mono truncate block",children:r})]}),(0,s.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,s.jsx)("button",{onClick:()=>et(t,-1),disabled:0===t,className:`p-1 rounded ${0===t?"text-text-muted/20":"text-text-muted hover:text-primary hover:bg-black/5"}`,"aria-label":`Move ${l?.name||a} up`,title:"Move up",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"arrow_upward"})}),(0,s.jsx)("button",{onClick:()=>et(t,1),disabled:t===$.length-1,className:`p-1 rounded ${t===$.length-1?"text-text-muted/20":"text-text-muted hover:text-primary hover:bg-black/5"}`,"aria-label":`Move ${l?.name||a} down`,title:"Move down",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"arrow_downward"})}),(0,s.jsx)("button",{onClick:()=>ee(t),className:"p-1 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10","aria-label":`Remove ${l?.name||a}`,title:"Remove",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"close"})})]})]},`${e}-${t}`)})})]}),a.kind&&ei&&(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Test Example"}),(0,s.jsx)(o.$n,{size:"sm",icon:"play_arrow",onClick:er,disabled:A||0===$.length||!H.trim(),children:A?"Running...":"Run"})]}),(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)(o.pd,{id:"combo-example-key",label:"Client Key Secret",type:"password",autoComplete:"off",placeholder:"Paste a Switchboard client key secret (sk-...)",value:H,onChange:e=>D(e.target.value),hint:"Run uses this key as the Authorization bearer for the local gateway endpoint."})}),(0,s.jsx)("pre",{className:"text-xs font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-x-auto whitespace-pre-wrap break-all",children:eo}),z&&(0,s.jsx)("p",{role:"alert",className:"mt-3 text-xs text-red-500 break-words",children:z}),F&&(0,s.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[null!=F.latencyMs&&(0,s.jsxs)("span",{className:"text-[11px] text-text-muted",children:["⚡ ",F.latencyMs,"ms"]}),F.imageUrl&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,s.jsxs)("a",{href:F.imageUrl,download:"image.png",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,s.jsx)(h.default,{src:F.imageUrl,alt:"Generated",width:1024,height:1024,unoptimized:!0,className:"max-w-full rounded-lg border border-border"})]}),F.audioUrl&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,s.jsxs)("a",{href:F.audioUrl,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,s.jsx)("audio",{controls:!0,src:F.audioUrl,className:"w-full"})]}),F.json&&(0,s.jsx)("pre",{className:"text-xs font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-auto max-h-[300px] whitespace-pre-wrap break-all",children:F.json})]})]}),(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-3",children:"Usage Logs"}),0===E.length?(0,s.jsx)("p",{className:"text-xs text-text-muted italic",children:"No usage yet."}):(0,s.jsx)("pre",{className:"text-[11px] font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-auto max-h-[400px] whitespace-pre-wrap",children:E.join("\n")})]}),(0,s.jsx)(o.rq,{isOpen:O,onClose:()=>_(!1),onSelect:V,onDeselect:X,activeProviders:q,modelAliases:W,title:`Add ${el} Model`,kindFilter:a.kind,addedModelValues:$,closeOnSelect:!1})]})}},35497:(e,t,a)=>{"use strict";a.d(t,{x0:()=>N.default,Ex:()=>d.default,$n:()=>s.default,nh:()=>T.default,Zp:()=>i.default,Qv:()=>o.CardSkeleton,CK:()=>h.default,uo:()=>n.ConfirmModal,G9:()=>j.default,wI:()=>v.default,vj:()=>y.default,vE:()=>w.default,pd:()=>r.default,Mh:()=>g.default,uR:()=>x.default,Nf:()=>p.default,aF:()=>n.default,rq:()=>u.default,gw:()=>k.default,LF:()=>m.default,Wx:()=>$.default,gM:()=>b.default,Iz:()=>S.default,l6:()=>l.default,lM:()=>c.default,m_:()=>C.default,jK:()=>f.default});var s=a(92542),r=a(11910),l=a(98),i=a(84588),n=a(81127),o=a(25086);a(56319);var d=a(56061),c=a(98542);a(61929),a(21110),a(92622),a(8823),a(92173);var m=a(90882),u=a(72908),x=a(28815),h=a(45455),p=a(28058),f=a(4809);a(21931),a(80752),a(40197);var b=a(23615);a(44736);var g=a(62899);a(94230);var j=a(30815),w=a(23936),y=a(95088),v=a(73579),N=a(96748),k=a(4823),S=a(28067),C=a(97677),$=a(51825),T=a(29366);a(76361),a(91450)},48874:(e,t,a)=>{"use strict";async function s(e,t){let a=await fetch(e,{...t,headers:{"Content-Type":"application/json",...t?.headers||{}},credentials:"same-origin"}),s=null;try{s=await a.json()}catch{s=null}if(!a.ok){let e=s&&(s.error||s.message)||`Request failed (${a.status})`,t=Error("string"==typeof e?e:"Request failed");throw t.status=a.status,t.data=s,t}return s}a.d(t,{x:()=>s})},69701:(e,t,a)=>{Promise.resolve().then(a.bind(a,22662))}},e=>{e.O(0,[2574,3862,782,8500,594,1321,4707,1330,8441,3794,7358],()=>e(e.s=69701)),_N_E=e.O()}]);
4
+ -d '${JSON.stringify(en)}'`:"",ed=w(a.kind);return(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,s.jsx)(n(),{href:ed,className:"text-text-muted hover:text-primary",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"arrow_back"})}),(0,s.jsx)("div",{className:"size-10 rounded-lg bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:"layers"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[el," Combo"]}),(0,s.jsx)("code",{className:"text-lg font-semibold font-mono",children:a.name})]})]}),(0,s.jsx)(o.$n,{variant:"outline",icon:"delete",onClick:es,className:"text-red-500 border-red-200 hover:bg-red-50",children:"Delete"})]}),(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-3",children:"Settings"}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(o.pd,{label:"Combo Name",value:N,onChange:e=>{k(e.target.value),B(e.target.value)},onBlur:Q,error:S}),(0,s.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and ."})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Round Robin"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Rotate providers across requests instead of strict fallback order."})]}),(0,s.jsx)(o.lM,{checked:U,onChange:ea})]})]})]}),(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Providers"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Tried in order (top-down) or rotated when round-robin is on."})]}),(0,s.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>_(!0),children:"Add Provider"})]}),0===$.length?(0,s.jsx)("div",{className:"text-center py-6 border border-dashed border-border rounded-lg text-text-muted text-sm",children:"No providers yet."}):(0,s.jsx)("div",{className:"flex flex-col gap-2",children:$.map((e,t)=>{let{providerId:a,model:r}=p(e),l=c.Q2[a];return(0,s.jsxs)("div",{className:"flex items-center gap-3 p-2 rounded-lg bg-black/[0.02] dark:bg-white/[0.02]",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted w-5 text-center",children:t+1}),(0,s.jsx)(d.A,{src:`/providers/${a}.png`,alt:l?.name||a,size:24,className:"object-contain rounded shrink-0",fallbackText:l?.textIcon||a.slice(0,2).toUpperCase(),fallbackColor:l?.color}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"text-sm font-medium truncate",children:l?.name||a}),r&&(0,s.jsx)("code",{className:"text-[10px] text-text-muted font-mono truncate block",children:r})]}),(0,s.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,s.jsx)("button",{onClick:()=>et(t,-1),disabled:0===t,className:`p-1 rounded ${0===t?"text-text-muted/20":"text-text-muted hover:text-primary hover:bg-black/5"}`,"aria-label":`Move ${l?.name||a} up`,title:"Move up",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"arrow_upward"})}),(0,s.jsx)("button",{onClick:()=>et(t,1),disabled:t===$.length-1,className:`p-1 rounded ${t===$.length-1?"text-text-muted/20":"text-text-muted hover:text-primary hover:bg-black/5"}`,"aria-label":`Move ${l?.name||a} down`,title:"Move down",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"arrow_downward"})}),(0,s.jsx)("button",{onClick:()=>ee(t),className:"p-1 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10","aria-label":`Remove ${l?.name||a}`,title:"Remove",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"close"})})]})]},`${e}-${t}`)})})]}),a.kind&&ei&&(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Test Example"}),(0,s.jsx)(o.$n,{size:"sm",icon:"play_arrow",onClick:er,disabled:A||0===$.length||!H.trim(),children:A?"Running...":"Run"})]}),(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)(o.pd,{id:"combo-example-key",label:"Client Key Secret",type:"password",autoComplete:"off",placeholder:"Paste a Switchboard client key secret (sk-...)",value:H,onChange:e=>D(e.target.value),hint:"Run uses this key as the Authorization bearer for the local gateway endpoint."})}),(0,s.jsx)("pre",{className:"text-xs font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-x-auto whitespace-pre-wrap break-all",children:eo}),z&&(0,s.jsx)("p",{role:"alert",className:"mt-3 text-xs text-red-500 break-words",children:z}),F&&(0,s.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[null!=F.latencyMs&&(0,s.jsxs)("span",{className:"text-[11px] text-text-muted",children:["⚡ ",F.latencyMs,"ms"]}),F.imageUrl&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,s.jsxs)("a",{href:F.imageUrl,download:"image.png",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,s.jsx)(h.default,{src:F.imageUrl,alt:"Generated",width:1024,height:1024,unoptimized:!0,className:"max-w-full rounded-lg border border-border"})]}),F.audioUrl&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,s.jsxs)("a",{href:F.audioUrl,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,s.jsx)("audio",{controls:!0,src:F.audioUrl,className:"w-full"})]}),F.json&&(0,s.jsx)("pre",{className:"text-xs font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-auto max-h-[300px] whitespace-pre-wrap break-all",children:F.json})]})]}),(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-3",children:"Usage Logs"}),0===E.length?(0,s.jsx)("p",{className:"text-xs text-text-muted italic",children:"No usage yet."}):(0,s.jsx)("pre",{className:"text-[11px] font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-auto max-h-[400px] whitespace-pre-wrap",children:E.join("\n")})]}),(0,s.jsx)(o.rq,{isOpen:O,onClose:()=>_(!1),onSelect:V,onDeselect:X,activeProviders:q,modelAliases:W,title:`Add ${el} Model`,kindFilter:a.kind,addedModelValues:$,closeOnSelect:!1})]})}},35497:(e,t,a)=>{"use strict";a.d(t,{x0:()=>N.default,Ex:()=>d.default,$n:()=>s.default,nh:()=>T.default,Zp:()=>i.default,Qv:()=>o.CardSkeleton,CK:()=>h.default,uo:()=>n.ConfirmModal,G9:()=>j.default,wI:()=>v.default,vj:()=>y.default,vE:()=>w.default,pd:()=>r.default,Mh:()=>g.default,uR:()=>x.default,Nf:()=>p.default,aF:()=>n.default,rq:()=>u.default,gw:()=>k.default,LF:()=>m.default,Wx:()=>$.default,gM:()=>b.default,Iz:()=>S.default,l6:()=>l.default,lM:()=>c.default,m_:()=>C.default,jK:()=>f.default});var s=a(92542),r=a(11910),l=a(98),i=a(84588),n=a(81127),o=a(25086);a(56319);var d=a(56061),c=a(98542);a(61929),a(21110),a(92622),a(8823),a(92173);var m=a(90882),u=a(72908),x=a(28815),h=a(45455),p=a(28058),f=a(4809);a(21931),a(80752),a(40197);var b=a(23615);a(44736);var g=a(62899);a(94230);var j=a(30815),w=a(23936),y=a(95088),v=a(73579),N=a(96748),k=a(4823),S=a(28067),C=a(97677),$=a(51825),T=a(29366);a(76361),a(91450)},48874:(e,t,a)=>{"use strict";async function s(e,t){let a=await fetch(e,{...t,headers:{"Content-Type":"application/json",...t?.headers||{}},credentials:"same-origin"}),s=null;try{s=await a.json()}catch{s=null}if(!a.ok){let e=s&&(s.error||s.message)||`Request failed (${a.status})`,t=Error("string"==typeof e?e:"Request failed");throw t.status=a.status,t.data=s,t}return s}a.d(t,{x:()=>s})},69701:(e,t,a)=>{Promise.resolve().then(a.bind(a,22662))}},e=>{e.O(0,[2574,3862,782,8500,594,4601,1321,1330,8441,3794,7358],()=>e(e.s=69701)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9749],{35497:(e,a,l)=>{"use strict";l.d(a,{x0:()=>w.default,Ex:()=>o.default,$n:()=>t.default,nh:()=>E.default,Zp:()=>r.default,Qv:()=>n.CardSkeleton,CK:()=>f.default,uo:()=>i.ConfirmModal,G9:()=>g.default,wI:()=>_.default,vj:()=>N.default,vE:()=>j.default,pd:()=>d.default,Mh:()=>v.default,uR:()=>m.default,Nf:()=>b.default,aF:()=>i.default,rq:()=>x.default,gw:()=>S.default,LF:()=>u.default,Wx:()=>k.default,gM:()=>p.default,Iz:()=>y.default,l6:()=>s.default,lM:()=>c.default,m_:()=>T.default,jK:()=>h.default});var t=l(92542),d=l(11910),s=l(98),r=l(84588),i=l(81127),n=l(25086);l(56319);var o=l(56061),c=l(98542);l(61929),l(21110),l(92622),l(8823),l(92173);var u=l(90882),x=l(72908),m=l(28815),f=l(45455),b=l(28058),h=l(4809);l(21931),l(80752),l(40197);var p=l(23615);l(44736);var v=l(62899);l(94230);var g=l(30815),j=l(23936),N=l(95088),_=l(73579),w=l(96748),S=l(4823),y=l(28067),T=l(97677),k=l(51825),E=l(29366);l(76361),l(91450)},57767:(e,a,l)=>{"use strict";l.r(a),l.d(a,{default:()=>o});var t=l(95155),d=l(98500),s=l.n(d),r=l(35497),i=l(88105);let n=[{id:"image",label:"Text to Image",icon:"brush",blurb:"Image generation providers"},{id:"video",label:"Video",icon:"movie",blurb:"Video generation providers"},{id:"tts",label:"Text to Speech",icon:"record_voice_over",blurb:"Speech synthesis providers"},{id:"stt",label:"Speech to Text",icon:"mic",blurb:"Transcription providers"},{id:"embedding",label:"Embedding",icon:"data_array",blurb:"Vector embedding providers"},{id:"web",label:"Web Fetch & Search",icon:"travel_explore",blurb:"Search + page fetch providers"}];function o(){return(0,t.jsxs)("div",{className:"flex flex-col gap-5 max-w-3xl",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h1",{className:"text-[17px] font-semibold text-text-main",children:"Media"}),(0,t.jsx)("p",{className:"text-xs font-mono text-text-subtle",children:"image \xb7 TTS \xb7 STT \xb7 embeddings \xb7 web — separate from agent Skills"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:n.map(e=>{let a=i.rj.find(a=>a.id===e.id);return(0,t.jsx)(s(),{href:`/dashboard/media-providers/${e.id}`,className:"group",children:(0,t.jsx)(r.Zp,{padding:"sm",className:"h-full transition-colors group-hover:border-brand-500/40",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"size-9 rounded-lg bg-brand-500/10 text-primary flex items-center justify-center shrink-0",children:(0,t.jsx)("span",{className:"material-symbols-outlined text-[20px] leading-none",children:e.icon||a?.icon||"perm_media"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:e.label||a?.label||e.id}),(0,t.jsx)("span",{className:"material-symbols-outlined text-text-subtle text-[16px] group-hover:text-primary transition-colors",children:"chevron_right"})]}),(0,t.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:e.blurb})]})]})})},e.id)})})]})}},96434:(e,a,l)=>{Promise.resolve().then(l.bind(l,57767))}},e=>{e.O(0,[2574,3862,782,8500,594,1321,4707,1330,8441,3794,7358],()=>e(e.s=96434)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9749],{35497:(e,a,l)=>{"use strict";l.d(a,{x0:()=>w.default,Ex:()=>o.default,$n:()=>t.default,nh:()=>E.default,Zp:()=>r.default,Qv:()=>n.CardSkeleton,CK:()=>f.default,uo:()=>i.ConfirmModal,G9:()=>g.default,wI:()=>_.default,vj:()=>N.default,vE:()=>j.default,pd:()=>d.default,Mh:()=>v.default,uR:()=>m.default,Nf:()=>b.default,aF:()=>i.default,rq:()=>x.default,gw:()=>S.default,LF:()=>u.default,Wx:()=>k.default,gM:()=>p.default,Iz:()=>y.default,l6:()=>s.default,lM:()=>c.default,m_:()=>T.default,jK:()=>h.default});var t=l(92542),d=l(11910),s=l(98),r=l(84588),i=l(81127),n=l(25086);l(56319);var o=l(56061),c=l(98542);l(61929),l(21110),l(92622),l(8823),l(92173);var u=l(90882),x=l(72908),m=l(28815),f=l(45455),b=l(28058),h=l(4809);l(21931),l(80752),l(40197);var p=l(23615);l(44736);var v=l(62899);l(94230);var g=l(30815),j=l(23936),N=l(95088),_=l(73579),w=l(96748),S=l(4823),y=l(28067),T=l(97677),k=l(51825),E=l(29366);l(76361),l(91450)},57767:(e,a,l)=>{"use strict";l.r(a),l.d(a,{default:()=>o});var t=l(95155),d=l(98500),s=l.n(d),r=l(35497),i=l(88105);let n=[{id:"image",label:"Text to Image",icon:"brush",blurb:"Image generation providers"},{id:"video",label:"Video",icon:"movie",blurb:"Video generation providers"},{id:"tts",label:"Text to Speech",icon:"record_voice_over",blurb:"Speech synthesis providers"},{id:"stt",label:"Speech to Text",icon:"mic",blurb:"Transcription providers"},{id:"embedding",label:"Embedding",icon:"data_array",blurb:"Vector embedding providers"},{id:"web",label:"Web Fetch & Search",icon:"travel_explore",blurb:"Search + page fetch providers"}];function o(){return(0,t.jsxs)("div",{className:"flex flex-col gap-5 max-w-3xl",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h1",{className:"text-[17px] font-semibold text-text-main",children:"Media"}),(0,t.jsx)("p",{className:"text-xs font-mono text-text-subtle",children:"image \xb7 TTS \xb7 STT \xb7 embeddings \xb7 web — separate from agent Skills"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:n.map(e=>{let a=i.rj.find(a=>a.id===e.id);return(0,t.jsx)(s(),{href:`/dashboard/media-providers/${e.id}`,className:"group",children:(0,t.jsx)(r.Zp,{padding:"sm",className:"h-full transition-colors group-hover:border-brand-500/40",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"size-9 rounded-lg bg-brand-500/10 text-primary flex items-center justify-center shrink-0",children:(0,t.jsx)("span",{className:"material-symbols-outlined text-[20px] leading-none",children:e.icon||a?.icon||"perm_media"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:e.label||a?.label||e.id}),(0,t.jsx)("span",{className:"material-symbols-outlined text-text-subtle text-[16px] group-hover:text-primary transition-colors",children:"chevron_right"})]}),(0,t.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:e.blurb})]})]})})},e.id)})})]})}},96434:(e,a,l)=>{Promise.resolve().then(l.bind(l,57767))}},e=>{e.O(0,[2574,3862,782,8500,594,4601,1321,1330,8441,3794,7358],()=>e(e.s=96434)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9260],{22637:(e,t,s)=>{Promise.resolve().then(s.bind(s,71088))},35497:(e,t,s)=>{"use strict";s.d(t,{x0:()=>y.default,Ex:()=>n.default,$n:()=>r.default,nh:()=>E.default,Zp:()=>l.default,Qv:()=>o.CardSkeleton,CK:()=>p.default,uo:()=>i.ConfirmModal,G9:()=>j.default,wI:()=>w.default,vj:()=>N.default,vE:()=>g.default,pd:()=>a.default,Mh:()=>v.default,uR:()=>h.default,Nf:()=>b.default,aF:()=>i.default,rq:()=>m.default,gw:()=>k.default,LF:()=>x.default,Wx:()=>$.default,gM:()=>u.default,Iz:()=>C.default,l6:()=>d.default,lM:()=>c.default,m_:()=>S.default,jK:()=>f.default});var r=s(92542),a=s(11910),d=s(98),l=s(84588),i=s(81127),o=s(25086);s(56319);var n=s(56061),c=s(98542);s(61929),s(21110),s(92622),s(8823),s(92173);var x=s(90882),m=s(72908),h=s(28815),p=s(45455),b=s(28058),f=s(4809);s(21931),s(80752),s(40197);var u=s(23615);s(44736);var v=s(62899);s(94230);var j=s(30815),g=s(23936),N=s(95088),w=s(73579),y=s(96748),k=s(4823),C=s(28067),S=s(97677),$=s(51825),E=s(29366);s(76361),s(91450)},54026:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(95155),a=s(98500),d=s.n(a),l=s(73321),i=s(31474);let o=[{id:"image",label:"Image",href:"/dashboard/media-providers/image"},{id:"tts",label:"TTS",href:"/dashboard/media-providers/tts"},{id:"stt",label:"STT",href:"/dashboard/media-providers/stt"},{id:"embedding",label:"Embedding",href:"/dashboard/media-providers/embedding"},{id:"video",label:"Video",href:"/dashboard/media-providers/video"},{id:"web",label:"Web",href:"/dashboard/media-providers/web"}];function n({activeKind:e}){let t=(0,l.usePathname)(),s=e||o.find(e=>t===e.href||t.startsWith(`${e.href}/`))?.id||"";return(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 mb-5",children:[(0,r.jsx)(d(),{href:"/dashboard/media-providers",className:(0,i.cn)("px-2.5 py-1 rounded-[7px] text-xs font-medium border transition-colors","/dashboard/media-providers"===t?"bg-brand-500/15 text-primary border-brand-500/40":"bg-transparent text-text-muted border-border hover:text-text-main hover:border-brand-500/30"),children:"All"}),o.map(e=>{let t=s===e.id;return(0,r.jsx)(d(),{href:e.href,className:(0,i.cn)("px-2.5 py-1 rounded-[7px] text-xs font-medium border transition-colors",t?"bg-brand-500/15 text-primary border-brand-500/40":"bg-transparent text-text-muted border-border hover:text-text-main hover:border-brand-500/30"),children:e.label},e.id)})]})}},71088:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>v});var r=s(95155),a=s(98500),d=s.n(a),l=s(12115),i=s(73321),o=s(35497),n=s(11059),c=s(57250),x=s(88105),m=s(54026),h=s(78559);function p(e){let t=Object.entries(e).some(([e,t])=>e.startsWith("modelLock_")&&t&&new Date(t).getTime()>Date.now());return"unavailable"!==e.testStatus||t?e.testStatus:"active"}function b({provider:e,kind:t,connections:s}){let a=x.Q2[e.id],l=!!a?.noAuth,i=s.filter(t=>t.provider===e.id),n=i.filter(e=>{let t=p(e);return"active"===t||"success"===t}).length,m=i.filter(e=>{let t=p(e);return"error"===t||"expired"===t||"unavailable"===t}).length,h=i.length,f=h>0&&i.every(e=>!1===e.isActive);return(0,r.jsx)(d(),{href:`/dashboard/media-providers/${t}/${e.id}`,className:"group",children:(0,r.jsx)(o.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${f?"opacity-50":""}`,children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,r.jsx)(c.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,r.jsx)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:l?(0,r.jsx)(o.Ex,{variant:"success",size:"sm",children:"Ready"}):f?(0,r.jsx)(o.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===h?(0,r.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,r.jsxs)(r.Fragment,{children:[n>0&&(0,r.jsxs)(o.Ex,{variant:"success",size:"sm",dot:!0,children:[n," Connected"]}),m>0&&(0,r.jsxs)(o.Ex,{variant:"error",size:"sm",dot:!0,children:[m," Error"]}),0===n&&0===m&&(0,r.jsxs)(o.Ex,{variant:"default",size:"sm",children:[h," Added"]})]})})]})]})})})}function f({combos:e}){return 0===e.length?(0,r.jsx)("p",{className:"text-xs text-text-muted italic",children:"No combos yet."}):(0,r.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,r.jsx)(d(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,r.jsx)(o.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,r.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,t)=>{let s="string"==typeof e?e.split("/")[0]:"",a=x.Q2[s];return(0,r.jsx)("div",{title:a?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${a?.color??"#888"}15`},children:(0,r.jsx)(c.A,{src:`/providers/${s}.png`,alt:a?.name||s,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:a?.textIcon||s.slice(0,2).toUpperCase(),fallbackColor:a?.color})},`${e}-${t}`)}),e.models.length>6&&(0,r.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,r.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,r.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}function u({title:e,icon:t,kind:s,providers:a,connections:d,combos:l,onCreateCombo:i,origin:n,copied:c,onCopy:x}){let m="webSearch"===s?{method:"POST",path:"/v1/search",desc:"Web search query endpoint across connected search providers & combos",payloadExample:'{ "query": "..." }'}:{method:"POST",path:"/v1/web/fetch",desc:"Direct web page markdown and content fetcher endpoint",payloadExample:'{ "url": "https://..." }'},h=`${n.replace(/\/+$/,"")}${m.path}`;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-primary",children:t}),(0,r.jsx)("h2",{className:"text-base font-semibold",children:e}),(0,r.jsxs)("span",{className:"text-xs text-text-muted",children:["(",a.length," providers \xb7 ",l.length," combos)"]})]}),(0,r.jsx)(o.$n,{size:"sm",icon:"add",onClick:i,children:"Create Combo"})]}),(0,r.jsx)(o.Zp,{padding:"xs",className:"mb-4 border border-border/80 bg-surface-2/60",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)("span",{className:"text-[11px] font-mono font-semibold px-2 py-0.5 rounded bg-teal-500/10 text-teal-600 dark:text-teal-400 border border-teal-500/20 shrink-0",children:m.method}),(0,r.jsxs)("span",{className:"text-xs font-semibold text-text-main truncate",children:[e," Endpoint"]})]}),(0,r.jsx)("span",{className:"text-[11px] font-mono text-text-muted hidden sm:inline truncate",children:m.payloadExample})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)(o.pd,{value:h,readOnly:!0,className:"flex-1 min-w-0",inputClassName:"font-mono text-xs bg-surface"}),(0,r.jsx)("button",{type:"button",onClick:()=>x(h,`endpoint_${s}`),className:"p-2 hover:bg-surface rounded text-text-muted hover:text-primary transition-colors shrink-0 border border-border/60",title:"Copy Endpoint URL","aria-label":`Copy ${e} Endpoint URL`,children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px] leading-none",children:c===`endpoint_${s}`?"check":"content_copy"})})]}),(0,r.jsx)("p",{className:"text-[11px] text-text-muted",children:m.desc})]})}),l.length>0&&(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(f,{combos:l})}),0===a.length?(0,r.jsx)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl text-text-muted text-sm",children:"No providers."}):(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:a.map(e=>(0,r.jsx)(b,{provider:e,kind:s,connections:d},e.id))})]})}function v(){let e=(0,i.useRouter)(),[t,s]=(0,l.useState)([]),[a,d]=(0,l.useState)([]),[c,p]=(0,l.useState)(!1),[b,f]=(0,l.useState)("http://127.0.0.1:20128"),{copied:v,copy:j}=(0,n.C)();(0,l.useEffect)(()=>{f(window.location.origin)},[]);let g=async()=>{try{let[e,t]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"})]);if(!e.ok||!t.ok)throw Error("load failed");s((await e.json()).connections||[]),d((await t.json()).combos||[]),p(!1)}catch{p(!0)}};(0,l.useEffect)(()=>{g()},[]);let N=(0,x.o5)("webSearch"),w=(0,x.o5)("webFetch"),y=a.filter(e=>"webSearch"===e.kind),k=a.filter(e=>"webFetch"===e.kind),C=async t=>{let s="webSearch"===t?"search-combo":"fetch-combo",r=s,d=1,l=new Set(a.map(e=>e.name));for(;l.has(r);)r=`${s}-${d++}`;let i=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r,models:[],kind:t})});if(i.ok){let t=await i.json();e.push(`/dashboard/media-providers/combo/${t.id}`)}else{let e=await i.json().catch(()=>({}));(0,h.s)(e.error||"Failed to create combo")}};return(0,r.jsx)("div",{className:"flex flex-col gap-8",children:c?(0,r.jsxs)("div",{role:"alert",className:"flex flex-col gap-3 border border-red-300 bg-red-500/10 rounded-xl p-4",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:"Couldn't load providers or combos. Check the server and try again."}),(0,r.jsx)("div",{children:(0,r.jsx)(o.$n,{size:"sm",variant:"outline",onClick:g,children:"Retry"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("h1",{className:"text-[17px] font-semibold text-text-main",children:"Web Fetch & Search"}),(0,r.jsx)("p",{className:"text-xs font-mono text-text-subtle",children:"Media providers \xb7 not agent Skills"})]}),(0,r.jsx)(m.A,{activeKind:"web"}),(0,r.jsx)(u,{title:"Web Search",icon:"search",kind:"webSearch",providers:N,connections:t,combos:y,onCreateCombo:()=>C("webSearch"),origin:b,copied:v,onCopy:j}),(0,r.jsx)("div",{className:"border-t border-border"}),(0,r.jsx)(u,{title:"Web Fetch",icon:"travel_explore",kind:"webFetch",providers:w,connections:t,combos:k,onCreateCombo:()=>C("webFetch"),origin:b,copied:v,onCopy:j})]})})}}},e=>{e.O(0,[2574,3862,782,8500,594,1321,4707,1330,8441,3794,7358],()=>e(e.s=22637)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9260],{22637:(e,t,s)=>{Promise.resolve().then(s.bind(s,71088))},35497:(e,t,s)=>{"use strict";s.d(t,{x0:()=>y.default,Ex:()=>n.default,$n:()=>r.default,nh:()=>E.default,Zp:()=>l.default,Qv:()=>o.CardSkeleton,CK:()=>p.default,uo:()=>i.ConfirmModal,G9:()=>j.default,wI:()=>w.default,vj:()=>N.default,vE:()=>g.default,pd:()=>a.default,Mh:()=>v.default,uR:()=>h.default,Nf:()=>b.default,aF:()=>i.default,rq:()=>m.default,gw:()=>k.default,LF:()=>x.default,Wx:()=>$.default,gM:()=>u.default,Iz:()=>C.default,l6:()=>d.default,lM:()=>c.default,m_:()=>S.default,jK:()=>f.default});var r=s(92542),a=s(11910),d=s(98),l=s(84588),i=s(81127),o=s(25086);s(56319);var n=s(56061),c=s(98542);s(61929),s(21110),s(92622),s(8823),s(92173);var x=s(90882),m=s(72908),h=s(28815),p=s(45455),b=s(28058),f=s(4809);s(21931),s(80752),s(40197);var u=s(23615);s(44736);var v=s(62899);s(94230);var j=s(30815),g=s(23936),N=s(95088),w=s(73579),y=s(96748),k=s(4823),C=s(28067),S=s(97677),$=s(51825),E=s(29366);s(76361),s(91450)},54026:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(95155),a=s(98500),d=s.n(a),l=s(73321),i=s(31474);let o=[{id:"image",label:"Image",href:"/dashboard/media-providers/image"},{id:"tts",label:"TTS",href:"/dashboard/media-providers/tts"},{id:"stt",label:"STT",href:"/dashboard/media-providers/stt"},{id:"embedding",label:"Embedding",href:"/dashboard/media-providers/embedding"},{id:"video",label:"Video",href:"/dashboard/media-providers/video"},{id:"web",label:"Web",href:"/dashboard/media-providers/web"}];function n({activeKind:e}){let t=(0,l.usePathname)(),s=e||o.find(e=>t===e.href||t.startsWith(`${e.href}/`))?.id||"";return(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 mb-5",children:[(0,r.jsx)(d(),{href:"/dashboard/media-providers",className:(0,i.cn)("px-2.5 py-1 rounded-[7px] text-xs font-medium border transition-colors","/dashboard/media-providers"===t?"bg-brand-500/15 text-primary border-brand-500/40":"bg-transparent text-text-muted border-border hover:text-text-main hover:border-brand-500/30"),children:"All"}),o.map(e=>{let t=s===e.id;return(0,r.jsx)(d(),{href:e.href,className:(0,i.cn)("px-2.5 py-1 rounded-[7px] text-xs font-medium border transition-colors",t?"bg-brand-500/15 text-primary border-brand-500/40":"bg-transparent text-text-muted border-border hover:text-text-main hover:border-brand-500/30"),children:e.label},e.id)})]})}},71088:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>v});var r=s(95155),a=s(98500),d=s.n(a),l=s(12115),i=s(73321),o=s(35497),n=s(11059),c=s(57250),x=s(88105),m=s(54026),h=s(78559);function p(e){let t=Object.entries(e).some(([e,t])=>e.startsWith("modelLock_")&&t&&new Date(t).getTime()>Date.now());return"unavailable"!==e.testStatus||t?e.testStatus:"active"}function b({provider:e,kind:t,connections:s}){let a=x.Q2[e.id],l=!!a?.noAuth,i=s.filter(t=>t.provider===e.id),n=i.filter(e=>{let t=p(e);return"active"===t||"success"===t}).length,m=i.filter(e=>{let t=p(e);return"error"===t||"expired"===t||"unavailable"===t}).length,h=i.length,f=h>0&&i.every(e=>!1===e.isActive);return(0,r.jsx)(d(),{href:`/dashboard/media-providers/${t}/${e.id}`,className:"group",children:(0,r.jsx)(o.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${f?"opacity-50":""}`,children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,r.jsx)(c.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,r.jsx)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:l?(0,r.jsx)(o.Ex,{variant:"success",size:"sm",children:"Ready"}):f?(0,r.jsx)(o.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===h?(0,r.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,r.jsxs)(r.Fragment,{children:[n>0&&(0,r.jsxs)(o.Ex,{variant:"success",size:"sm",dot:!0,children:[n," Connected"]}),m>0&&(0,r.jsxs)(o.Ex,{variant:"error",size:"sm",dot:!0,children:[m," Error"]}),0===n&&0===m&&(0,r.jsxs)(o.Ex,{variant:"default",size:"sm",children:[h," Added"]})]})})]})]})})})}function f({combos:e}){return 0===e.length?(0,r.jsx)("p",{className:"text-xs text-text-muted italic",children:"No combos yet."}):(0,r.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,r.jsx)(d(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,r.jsx)(o.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,r.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,t)=>{let s="string"==typeof e?e.split("/")[0]:"",a=x.Q2[s];return(0,r.jsx)("div",{title:a?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${a?.color??"#888"}15`},children:(0,r.jsx)(c.A,{src:`/providers/${s}.png`,alt:a?.name||s,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:a?.textIcon||s.slice(0,2).toUpperCase(),fallbackColor:a?.color})},`${e}-${t}`)}),e.models.length>6&&(0,r.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,r.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,r.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}function u({title:e,icon:t,kind:s,providers:a,connections:d,combos:l,onCreateCombo:i,origin:n,copied:c,onCopy:x}){let m="webSearch"===s?{method:"POST",path:"/v1/search",desc:"Web search query endpoint across connected search providers & combos",payloadExample:'{ "query": "..." }'}:{method:"POST",path:"/v1/web/fetch",desc:"Direct web page markdown and content fetcher endpoint",payloadExample:'{ "url": "https://..." }'},h=`${n.replace(/\/+$/,"")}${m.path}`;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-primary",children:t}),(0,r.jsx)("h2",{className:"text-base font-semibold",children:e}),(0,r.jsxs)("span",{className:"text-xs text-text-muted",children:["(",a.length," providers \xb7 ",l.length," combos)"]})]}),(0,r.jsx)(o.$n,{size:"sm",icon:"add",onClick:i,children:"Create Combo"})]}),(0,r.jsx)(o.Zp,{padding:"xs",className:"mb-4 border border-border/80 bg-surface-2/60",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)("span",{className:"text-[11px] font-mono font-semibold px-2 py-0.5 rounded bg-teal-500/10 text-teal-600 dark:text-teal-400 border border-teal-500/20 shrink-0",children:m.method}),(0,r.jsxs)("span",{className:"text-xs font-semibold text-text-main truncate",children:[e," Endpoint"]})]}),(0,r.jsx)("span",{className:"text-[11px] font-mono text-text-muted hidden sm:inline truncate",children:m.payloadExample})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)(o.pd,{value:h,readOnly:!0,className:"flex-1 min-w-0",inputClassName:"font-mono text-xs bg-surface"}),(0,r.jsx)("button",{type:"button",onClick:()=>x(h,`endpoint_${s}`),className:"p-2 hover:bg-surface rounded text-text-muted hover:text-primary transition-colors shrink-0 border border-border/60",title:"Copy Endpoint URL","aria-label":`Copy ${e} Endpoint URL`,children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px] leading-none",children:c===`endpoint_${s}`?"check":"content_copy"})})]}),(0,r.jsx)("p",{className:"text-[11px] text-text-muted",children:m.desc})]})}),l.length>0&&(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(f,{combos:l})}),0===a.length?(0,r.jsx)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl text-text-muted text-sm",children:"No providers."}):(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:a.map(e=>(0,r.jsx)(b,{provider:e,kind:s,connections:d},e.id))})]})}function v(){let e=(0,i.useRouter)(),[t,s]=(0,l.useState)([]),[a,d]=(0,l.useState)([]),[c,p]=(0,l.useState)(!1),[b,f]=(0,l.useState)("http://127.0.0.1:20128"),{copied:v,copy:j}=(0,n.C)();(0,l.useEffect)(()=>{f(window.location.origin)},[]);let g=async()=>{try{let[e,t]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"})]);if(!e.ok||!t.ok)throw Error("load failed");s((await e.json()).connections||[]),d((await t.json()).combos||[]),p(!1)}catch{p(!0)}};(0,l.useEffect)(()=>{g()},[]);let N=(0,x.o5)("webSearch"),w=(0,x.o5)("webFetch"),y=a.filter(e=>"webSearch"===e.kind),k=a.filter(e=>"webFetch"===e.kind),C=async t=>{let s="webSearch"===t?"search-combo":"fetch-combo",r=s,d=1,l=new Set(a.map(e=>e.name));for(;l.has(r);)r=`${s}-${d++}`;let i=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r,models:[],kind:t})});if(i.ok){let t=await i.json();e.push(`/dashboard/media-providers/combo/${t.id}`)}else{let e=await i.json().catch(()=>({}));(0,h.s)(e.error||"Failed to create combo")}};return(0,r.jsx)("div",{className:"flex flex-col gap-8",children:c?(0,r.jsxs)("div",{role:"alert",className:"flex flex-col gap-3 border border-red-300 bg-red-500/10 rounded-xl p-4",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:"Couldn't load providers or combos. Check the server and try again."}),(0,r.jsx)("div",{children:(0,r.jsx)(o.$n,{size:"sm",variant:"outline",onClick:g,children:"Retry"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("h1",{className:"text-[17px] font-semibold text-text-main",children:"Web Fetch & Search"}),(0,r.jsx)("p",{className:"text-xs font-mono text-text-subtle",children:"Media providers \xb7 not agent Skills"})]}),(0,r.jsx)(m.A,{activeKind:"web"}),(0,r.jsx)(u,{title:"Web Search",icon:"search",kind:"webSearch",providers:N,connections:t,combos:y,onCreateCombo:()=>C("webSearch"),origin:b,copied:v,onCopy:j}),(0,r.jsx)("div",{className:"border-t border-border"}),(0,r.jsx)(u,{title:"Web Fetch",icon:"travel_explore",kind:"webFetch",providers:w,connections:t,combos:k,onCreateCombo:()=>C("webFetch"),origin:b,copied:v,onCopy:j})]})})}}},e=>{e.O(0,[2574,3862,782,8500,594,4601,1321,1330,8441,3794,7358],()=>e(e.s=22637)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6607],{23879:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var a=s(95155),r=s(12115),o=s(3534),i=s(28777),n=s(88105),d=s(9056);function l(){let[e,t]=(0,r.useState)([]),[s,l]=(0,r.useState)([]),[c,u]=(0,r.useState)({}),[p,h]=(0,r.useState)(!1),[x,m]=(0,r.useState)(null),[y,w]=(0,r.useState)(!1),[f,b]=(0,r.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1}),g=()=>{w(!1),v(),k(),S(),j()};(0,r.useEffect)(()=>{g()},[]);let v=async()=>{try{let e=await fetch("/api/providers");if(!e.ok)throw Error(`HTTP ${e.status}`);let s=await e.json();t(s.connections||[])}catch{w(!0)}},k=async()=>{try{let e=await fetch("/api/keys");if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();l(t.keys||[])}catch{w(!0)}},S=async()=>{try{let e=await fetch("/api/models/alias");if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();u(t.aliases||{})}catch{w(!0)}},j=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();h(t.cloudEnabled||!1)}catch{w(!0)}},E=()=>e.filter(e=>!1!==e.isActive),P=Object.entries(o.wn);return(0,a.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[y&&(0,a.jsxs)("div",{role:"alert",className:"flex items-center justify-between gap-3 border border-red-300 bg-red-500/10 rounded-lg px-3 py-2",children:[(0,a.jsx)("p",{className:"text-xs font-medium text-red-600 dark:text-red-400",children:"Couldn't load provider data — model mapping pickers may be incomplete. Retry once the server responds."}),(0,a.jsx)("button",{type:"button",onClick:g,className:"shrink-0 rounded-md border border-border px-2.5 py-1 text-xs font-medium text-text-main hover:bg-surface",children:"Retry"})]}),(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,a.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:"⚠️ MITM intercepts HTTPS traffic of IDE tools (Antigravity, GitHub Copilot, Kiro) via local CA to redirect requests to your providers. May violate ToS → account ban. Use at your own risk."})]}),(0,a.jsx)(d.tA,{apiKeys:s,cloudEnabled:p,onStatusChange:b}),(0,a.jsx)("div",{className:"grid gap-3 sm:gap-4",children:P.map(([e,t])=>(0,a.jsx)(d.kn,{tool:t,isExpanded:x===e,onToggle:()=>m(x===e?null:e),serverRunning:f.running,dnsActive:f.dnsStatus?.[e]||!1,hasCachedPassword:f.hasCachedPassword||!1,needsSudoPassword:!1!==f.needsSudoPassword,isWin:!0===f.isWin,apiKeys:s,activeProviders:E(),hasActiveProviders:E().some(e=>(0,i.KC)(e.provider).length>0||(0,n.mq)(e.provider)||(0,n.gb)(e.provider)),modelAliases:c,cloudEnabled:p,onDnsChange:e=>b(t=>({...t,dnsStatus:e.dnsStatus??t.dnsStatus}))},e))})]})}},82831:(e,t,s)=>{Promise.resolve().then(s.bind(s,23879))}},e=>{e.O(0,[2574,3862,782,8500,594,1321,4707,1330,6683,8441,3794,7358],()=>e(e.s=82831)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6607],{23879:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var a=s(95155),r=s(12115),o=s(3534),i=s(28777),n=s(88105),d=s(9056);function l(){let[e,t]=(0,r.useState)([]),[s,l]=(0,r.useState)([]),[c,u]=(0,r.useState)({}),[p,h]=(0,r.useState)(!1),[x,m]=(0,r.useState)(null),[y,w]=(0,r.useState)(!1),[f,b]=(0,r.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1}),g=()=>{w(!1),v(),k(),S(),j()};(0,r.useEffect)(()=>{g()},[]);let v=async()=>{try{let e=await fetch("/api/providers");if(!e.ok)throw Error(`HTTP ${e.status}`);let s=await e.json();t(s.connections||[])}catch{w(!0)}},k=async()=>{try{let e=await fetch("/api/keys");if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();l(t.keys||[])}catch{w(!0)}},S=async()=>{try{let e=await fetch("/api/models/alias");if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();u(t.aliases||{})}catch{w(!0)}},j=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();h(t.cloudEnabled||!1)}catch{w(!0)}},E=()=>e.filter(e=>!1!==e.isActive),P=Object.entries(o.wn);return(0,a.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[y&&(0,a.jsxs)("div",{role:"alert",className:"flex items-center justify-between gap-3 border border-red-300 bg-red-500/10 rounded-lg px-3 py-2",children:[(0,a.jsx)("p",{className:"text-xs font-medium text-red-600 dark:text-red-400",children:"Couldn't load provider data — model mapping pickers may be incomplete. Retry once the server responds."}),(0,a.jsx)("button",{type:"button",onClick:g,className:"shrink-0 rounded-md border border-border px-2.5 py-1 text-xs font-medium text-text-main hover:bg-surface",children:"Retry"})]}),(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,a.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:"⚠️ MITM intercepts HTTPS traffic of IDE tools (Antigravity, GitHub Copilot, Kiro) via local CA to redirect requests to your providers. May violate ToS → account ban. Use at your own risk."})]}),(0,a.jsx)(d.tA,{apiKeys:s,cloudEnabled:p,onStatusChange:b}),(0,a.jsx)("div",{className:"grid gap-3 sm:gap-4",children:P.map(([e,t])=>(0,a.jsx)(d.kn,{tool:t,isExpanded:x===e,onToggle:()=>m(x===e?null:e),serverRunning:f.running,dnsActive:f.dnsStatus?.[e]||!1,hasCachedPassword:f.hasCachedPassword||!1,needsSudoPassword:!1!==f.needsSudoPassword,isWin:!0===f.isWin,apiKeys:s,activeProviders:E(),hasActiveProviders:E().some(e=>(0,i.KC)(e.provider).length>0||(0,n.mq)(e.provider)||(0,n.gb)(e.provider)),modelAliases:c,cloudEnabled:p,onDnsChange:e=>b(t=>({...t,dnsStatus:e.dnsStatus??t.dnsStatus}))},e))})]})}},82831:(e,t,s)=>{Promise.resolve().then(s.bind(s,23879))}},e=>{e.O(0,[2574,3862,782,8500,594,4601,1321,1330,6683,8441,3794,7358],()=>e(e.s=82831)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{12151:(e,t,s)=>{"use strict";s.d(t,{default:()=>x});var a=s(95155),r=s(12115),o=s(35497),i=s(81127),l=s(21931),n=s(90620),d=s(93308),c=s(38202),m=s(65921);function x({initialData:e}){let t=(0,m.i)(e=>e.error),[s,u]=(0,r.useState)("en"),[b,p]=(0,r.useState)(!1),[y,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),[j,N]=(0,r.useState)(e?.settings||{fallbackStrategy:"fill-first"}),[v,w]=(0,r.useState)(!e?.settings),[k,S]=(0,r.useState)(!1),[C,P]=(0,r.useState)({type:"",message:""}),R=(0,r.useRef)(null),[T,E]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:""}),[L,O]=(0,r.useState)({type:"",message:""}),[$,M]=(0,r.useState)(!1),[U,F]=(0,r.useState)(!1),[A,H]=(0,r.useState)(String(e?.settings?.stickyRoundRobinLimit??3)),[J,D]=(0,r.useState)(String(e?.settings?.comboStickyRoundRobinLimit??1));(0,r.useEffect)(()=>{H(String(j.stickyRoundRobinLimit??3))},[j.stickyRoundRobinLimit]),(0,r.useEffect)(()=>{D(String(j.comboStickyRoundRobinLimit??1))},[j.comboStickyRoundRobinLimit]),(0,r.useEffect)(()=>{u(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${d.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,d.QC)(t)}())},[b]);let _=e=>{E({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:e?.outboundProxyUrl||"",outboundNoProxy:e?.outboundNoProxy||""})};(0,r.useEffect)(()=>{_(e?.settings||j),w(!1)},[e]);let I=async e=>{if(e.preventDefault(),!0===j.outboundProxyEnabled){M(!0),O({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:T.outboundProxyUrl,outboundNoProxy:T.outboundNoProxy})}),t=await e.json();e.ok?(N(e=>({...e,...t})),O({type:"success",message:"Proxy settings applied"})):O({type:"error",message:t.error||"Failed to update proxy settings"})}catch(e){O({type:"error",message:"An error occurred"})}finally{M(!1)}}},Z=async()=>{if(!0!==j.outboundProxyEnabled)return;let e=(T.outboundProxyUrl||"").trim();if(!e)return void O({type:"error",message:"Please enter a Proxy URL to test"});F(!0),O({type:"",message:""});try{let t=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:e})}),s=await t.json();t.ok&&s?.ok?O({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):O({type:"error",message:s?.error||"Proxy test failed"})}catch(e){O({type:"error",message:"An error occurred"})}finally{F(!1)}},q=async e=>{M(!0),O({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(N(e=>({...e,...s})),E(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),O({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):O({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){O({type:"error",message:"An error occurred"})}finally{M(!1)}},B=async e=>{try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})});if(t.ok)N(t=>({...t,fallbackStrategy:e}));else throw Error(`HTTP ${t.status}`)}catch(e){t("Failed to update settings")}},K=async e=>{try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})});if(t.ok)N(t=>({...t,comboStrategy:e}));else throw Error(`HTTP ${t.status}`)}catch(e){t("Failed to update combo strategy")}},z=async e=>{let s=parseInt(e);if(isNaN(s))return;let a=Math.min(32,Math.max(1,s));if(H(String(a)),a!==(j.stickyRoundRobinLimit??3))try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:a})});if(e.ok)N(e=>({...e,stickyRoundRobinLimit:a}));else throw Error(`HTTP ${e.status}`)}catch(e){t("Failed to update sticky limit")}},Q=async e=>{let s=parseInt(e);if(isNaN(s))return;let a=Math.min(100,Math.max(1,s));if(D(String(a)),a!==(j.comboStickyRoundRobinLimit??1))try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:a})});if(e.ok)N(e=>({...e,comboStickyRoundRobinLimit:a}));else throw Error(`HTTP ${e.status}`)}catch(e){t("Failed to update combo sticky limit")}},W=async e=>{try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})});if(t.ok)N(t=>({...t,enableObservability:e}));else throw Error(`HTTP ${t.status}`)}catch(e){t("Failed to update observability setting")}},G=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();N(t),_(t)}catch(e){t("Failed to reload settings")}},V=async()=>{S(!0),P({type:"",message:""});try{let e=await fetch("/api/settings/database");if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(t.error||"Failed to export database")}let t=await e.json(),s=JSON.stringify(t,null,2),a=new Blob([s],{type:"application/json"}),r=URL.createObjectURL(a),o=document.createElement("a"),i=new Date().toISOString().replace(/[.:]/g,"-");o.href=r,o.download=`switchboard-backup-${i}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),P({type:"success",message:"Database backup downloaded"})}catch(e){P({type:"error",message:e.message||"Failed to export database"})}finally{S(!1)}},X=async e=>{let t=e.target.files?.[0];if(R.current&&(R.current.value=""),t){S(!0),P({type:"",message:""});try{let e=await t.text(),s=JSON.parse(e),a=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),r=await a.json().catch(()=>({}));if(!a.ok)throw Error(r.error||"Failed to import database");await G(),P({type:"success",message:"Database imported successfully"})}catch(e){P({type:"error",message:e.message||"Invalid backup file"})}finally{S(!1)}}},Y=!0===j.enableObservability,ee=async()=>{g(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}g(!1),h(!1)};return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4 mb-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:"~/.switchboard/db/data.sqlite"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(o.$n,{variant:"secondary",icon:"download",onClick:()=>V(),loading:k,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(o.$n,{variant:"outline",icon:"upload",onClick:()=>R.current?.click(),disabled:k,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)("input",{ref:R,type:"file",accept:"application/json,.json",className:"hidden",onChange:X})]}),C.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===C.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:C.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg bg-blue-500/10 text-blue-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Language"})]}),(0,a.jsxs)("button",{onClick:()=>p(!0),className:"flex items-center justify-between w-full p-3 rounded-lg bg-bg border border-border hover:border-primary/50 transition-colors","data-i18n-skip":"true",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:"Display language"}),(0,a.jsx)("span",{className:"text-2xl",children:c.h[s]||"\uD83C\uDF10"})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===j.fallbackStrategy,onChange:()=>B("round-robin"===j.fallbackStrategy?"fill-first":"round-robin"),disabled:v,"aria-label":"Round Robin"})]}),"round-robin"===j.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(o.pd,{type:"number","aria-label":"Sticky Limit",min:"1",max:"32",value:A,onChange:e=>H(e.target.value),onBlur:e=>z(e.target.value),onKeyDown:e=>{"Enter"===e.key&&z(e.currentTarget.value)},disabled:v,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===j.comboStrategy,onChange:()=>K("round-robin"===j.comboStrategy?"fallback":"round-robin"),disabled:v,"aria-label":"Combo Round Robin"})]}),"round-robin"===j.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(o.pd,{type:"number","aria-label":"Combo Sticky Limit",min:"1",max:"100",value:J,onChange:e=>D(e.target.value),onBlur:e=>Q(e.target.value),onKeyDown:e=>{"Enter"===e.key&&Q(e.currentTarget.value)},disabled:v,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===j.fallbackStrategy?`Currently distributing requests across all available accounts with ${j.stickyRoundRobinLimit||3} calls per account.`:"Currently using accounts in priority order (Fill First).","round-robin"===j.comboStrategy?` Combos rotate after ${j.comboStickyRoundRobinLimit||1} call${1===(j.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Network"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(o.lM,{checked:!0===j.outboundProxyEnabled,onChange:()=>q(!0!==j.outboundProxyEnabled),disabled:v||$,"aria-label":"Outbound Proxy"})]}),!0===j.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:I,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(o.pd,{placeholder:"http://127.0.0.1:7897",value:T.outboundProxyUrl,onChange:e=>E(t=>({...t,outboundProxyUrl:e.target.value})),disabled:v||$}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Leave empty to inherit existing env proxy (if any)."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"No Proxy"}),(0,a.jsx)(o.pd,{placeholder:"localhost,127.0.0.1",value:T.outboundNoProxy,onChange:e=>E(t=>({...t,outboundNoProxy:e.target.value})),disabled:v||$}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Comma-separated hostnames/domains to bypass the proxy."})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(o.$n,{type:"button",variant:"secondary",loading:U,disabled:v||$,onClick:Z,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(o.$n,{type:"submit",variant:"primary",loading:$,className:"w-full sm:w-auto",children:"Apply"})]})]}),L.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===L.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:L.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Observability"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(o.lM,{checked:Y,onChange:W,disabled:v,"aria-label":"Enable Observability"})]})]}),(0,a.jsx)("div",{className:"flex flex-col sm:flex-row gap-2",children:(0,a.jsx)(o.$n,{variant:"outline",fullWidth:!0,icon:"power_settings_new",onClick:()=>h(!0),className:"text-red-500 border-red-200 hover:bg-red-50 hover:border-red-300",children:"Shutdown"})}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[n.vQ.name," v",n.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:"Local Mode - All data stored on your machine"})]})]}),(0,a.jsx)(l.default,{hideTrigger:!0,isOpen:b,onClose:e=>{p(!1),u(e)}}),(0,a.jsx)(i.ConfirmModal,{isOpen:y,onClose:()=>h(!1),onConfirm:ee,title:"Shutdown",message:"Are you sure you want to close the proxy server?",confirmText:"Shutdown",cancelText:"Cancel",variant:"danger",loading:f})]})}},34743:(e,t,s)=>{Promise.resolve().then(s.bind(s,12151))},35497:(e,t,s)=>{"use strict";s.d(t,{x0:()=>w.default,Ex:()=>d.default,$n:()=>a.default,nh:()=>R.default,Zp:()=>i.default,Qv:()=>n.CardSkeleton,CK:()=>b.default,uo:()=>l.ConfirmModal,G9:()=>g.default,wI:()=>v.default,vj:()=>N.default,vE:()=>j.default,pd:()=>r.default,Mh:()=>f.default,uR:()=>u.default,Nf:()=>p.default,aF:()=>l.default,rq:()=>x.default,gw:()=>k.default,LF:()=>m.default,Wx:()=>P.default,gM:()=>h.default,Iz:()=>S.default,l6:()=>o.default,lM:()=>c.default,m_:()=>C.default,jK:()=>y.default});var a=s(92542),r=s(11910),o=s(98),i=s(84588),l=s(81127),n=s(25086);s(56319);var d=s(56061),c=s(98542);s(61929),s(21110),s(92622),s(8823),s(92173);var m=s(90882),x=s(72908),u=s(28815),b=s(45455),p=s(28058),y=s(4809);s(21931),s(80752),s(40197);var h=s(23615);s(44736);var f=s(62899);s(94230);var g=s(30815),j=s(23936),N=s(95088),v=s(73579),w=s(96748),k=s(4823),S=s(28067),C=s(97677),P=s(51825),R=s(29366);s(76361),s(91450)}},e=>{e.O(0,[2574,3862,782,8500,594,1321,4707,1330,8441,3794,7358],()=>e(e.s=34743)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{12151:(e,t,s)=>{"use strict";s.d(t,{default:()=>x});var a=s(95155),r=s(12115),o=s(35497),i=s(81127),l=s(21931),n=s(90620),d=s(93308),c=s(38202),m=s(65921);function x({initialData:e}){let t=(0,m.i)(e=>e.error),[s,u]=(0,r.useState)("en"),[b,p]=(0,r.useState)(!1),[y,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),[j,N]=(0,r.useState)(e?.settings||{fallbackStrategy:"fill-first"}),[v,w]=(0,r.useState)(!e?.settings),[k,S]=(0,r.useState)(!1),[C,P]=(0,r.useState)({type:"",message:""}),R=(0,r.useRef)(null),[T,E]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:""}),[L,O]=(0,r.useState)({type:"",message:""}),[$,M]=(0,r.useState)(!1),[U,F]=(0,r.useState)(!1),[A,H]=(0,r.useState)(String(e?.settings?.stickyRoundRobinLimit??3)),[J,D]=(0,r.useState)(String(e?.settings?.comboStickyRoundRobinLimit??1));(0,r.useEffect)(()=>{H(String(j.stickyRoundRobinLimit??3))},[j.stickyRoundRobinLimit]),(0,r.useEffect)(()=>{D(String(j.comboStickyRoundRobinLimit??1))},[j.comboStickyRoundRobinLimit]),(0,r.useEffect)(()=>{u(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${d.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,d.QC)(t)}())},[b]);let _=e=>{E({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:e?.outboundProxyUrl||"",outboundNoProxy:e?.outboundNoProxy||""})};(0,r.useEffect)(()=>{_(e?.settings||j),w(!1)},[e]);let I=async e=>{if(e.preventDefault(),!0===j.outboundProxyEnabled){M(!0),O({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:T.outboundProxyUrl,outboundNoProxy:T.outboundNoProxy})}),t=await e.json();e.ok?(N(e=>({...e,...t})),O({type:"success",message:"Proxy settings applied"})):O({type:"error",message:t.error||"Failed to update proxy settings"})}catch(e){O({type:"error",message:"An error occurred"})}finally{M(!1)}}},Z=async()=>{if(!0!==j.outboundProxyEnabled)return;let e=(T.outboundProxyUrl||"").trim();if(!e)return void O({type:"error",message:"Please enter a Proxy URL to test"});F(!0),O({type:"",message:""});try{let t=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:e})}),s=await t.json();t.ok&&s?.ok?O({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):O({type:"error",message:s?.error||"Proxy test failed"})}catch(e){O({type:"error",message:"An error occurred"})}finally{F(!1)}},q=async e=>{M(!0),O({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(N(e=>({...e,...s})),E(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),O({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):O({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){O({type:"error",message:"An error occurred"})}finally{M(!1)}},B=async e=>{try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})});if(t.ok)N(t=>({...t,fallbackStrategy:e}));else throw Error(`HTTP ${t.status}`)}catch(e){t("Failed to update settings")}},K=async e=>{try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})});if(t.ok)N(t=>({...t,comboStrategy:e}));else throw Error(`HTTP ${t.status}`)}catch(e){t("Failed to update combo strategy")}},z=async e=>{let s=parseInt(e);if(isNaN(s))return;let a=Math.min(32,Math.max(1,s));if(H(String(a)),a!==(j.stickyRoundRobinLimit??3))try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:a})});if(e.ok)N(e=>({...e,stickyRoundRobinLimit:a}));else throw Error(`HTTP ${e.status}`)}catch(e){t("Failed to update sticky limit")}},Q=async e=>{let s=parseInt(e);if(isNaN(s))return;let a=Math.min(100,Math.max(1,s));if(D(String(a)),a!==(j.comboStickyRoundRobinLimit??1))try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:a})});if(e.ok)N(e=>({...e,comboStickyRoundRobinLimit:a}));else throw Error(`HTTP ${e.status}`)}catch(e){t("Failed to update combo sticky limit")}},W=async e=>{try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})});if(t.ok)N(t=>({...t,enableObservability:e}));else throw Error(`HTTP ${t.status}`)}catch(e){t("Failed to update observability setting")}},G=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();N(t),_(t)}catch(e){t("Failed to reload settings")}},V=async()=>{S(!0),P({type:"",message:""});try{let e=await fetch("/api/settings/database");if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(t.error||"Failed to export database")}let t=await e.json(),s=JSON.stringify(t,null,2),a=new Blob([s],{type:"application/json"}),r=URL.createObjectURL(a),o=document.createElement("a"),i=new Date().toISOString().replace(/[.:]/g,"-");o.href=r,o.download=`switchboard-backup-${i}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),P({type:"success",message:"Database backup downloaded"})}catch(e){P({type:"error",message:e.message||"Failed to export database"})}finally{S(!1)}},X=async e=>{let t=e.target.files?.[0];if(R.current&&(R.current.value=""),t){S(!0),P({type:"",message:""});try{let e=await t.text(),s=JSON.parse(e),a=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),r=await a.json().catch(()=>({}));if(!a.ok)throw Error(r.error||"Failed to import database");await G(),P({type:"success",message:"Database imported successfully"})}catch(e){P({type:"error",message:e.message||"Invalid backup file"})}finally{S(!1)}}},Y=!0===j.enableObservability,ee=async()=>{g(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}g(!1),h(!1)};return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4 mb-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:"~/.switchboard/db/data.sqlite"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(o.$n,{variant:"secondary",icon:"download",onClick:()=>V(),loading:k,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(o.$n,{variant:"outline",icon:"upload",onClick:()=>R.current?.click(),disabled:k,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)("input",{ref:R,type:"file",accept:"application/json,.json",className:"hidden",onChange:X})]}),C.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===C.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:C.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg bg-blue-500/10 text-blue-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Language"})]}),(0,a.jsxs)("button",{onClick:()=>p(!0),className:"flex items-center justify-between w-full p-3 rounded-lg bg-bg border border-border hover:border-primary/50 transition-colors","data-i18n-skip":"true",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:"Display language"}),(0,a.jsx)("span",{className:"text-2xl",children:c.h[s]||"\uD83C\uDF10"})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===j.fallbackStrategy,onChange:()=>B("round-robin"===j.fallbackStrategy?"fill-first":"round-robin"),disabled:v,"aria-label":"Round Robin"})]}),"round-robin"===j.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(o.pd,{type:"number","aria-label":"Sticky Limit",min:"1",max:"32",value:A,onChange:e=>H(e.target.value),onBlur:e=>z(e.target.value),onKeyDown:e=>{"Enter"===e.key&&z(e.currentTarget.value)},disabled:v,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===j.comboStrategy,onChange:()=>K("round-robin"===j.comboStrategy?"fallback":"round-robin"),disabled:v,"aria-label":"Combo Round Robin"})]}),"round-robin"===j.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(o.pd,{type:"number","aria-label":"Combo Sticky Limit",min:"1",max:"100",value:J,onChange:e=>D(e.target.value),onBlur:e=>Q(e.target.value),onKeyDown:e=>{"Enter"===e.key&&Q(e.currentTarget.value)},disabled:v,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===j.fallbackStrategy?`Currently distributing requests across all available accounts with ${j.stickyRoundRobinLimit||3} calls per account.`:"Currently using accounts in priority order (Fill First).","round-robin"===j.comboStrategy?` Combos rotate after ${j.comboStickyRoundRobinLimit||1} call${1===(j.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Network"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(o.lM,{checked:!0===j.outboundProxyEnabled,onChange:()=>q(!0!==j.outboundProxyEnabled),disabled:v||$,"aria-label":"Outbound Proxy"})]}),!0===j.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:I,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(o.pd,{placeholder:"http://127.0.0.1:7897",value:T.outboundProxyUrl,onChange:e=>E(t=>({...t,outboundProxyUrl:e.target.value})),disabled:v||$}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Leave empty to inherit existing env proxy (if any)."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"No Proxy"}),(0,a.jsx)(o.pd,{placeholder:"localhost,127.0.0.1",value:T.outboundNoProxy,onChange:e=>E(t=>({...t,outboundNoProxy:e.target.value})),disabled:v||$}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Comma-separated hostnames/domains to bypass the proxy."})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(o.$n,{type:"button",variant:"secondary",loading:U,disabled:v||$,onClick:Z,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(o.$n,{type:"submit",variant:"primary",loading:$,className:"w-full sm:w-auto",children:"Apply"})]})]}),L.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===L.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:L.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Observability"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(o.lM,{checked:Y,onChange:W,disabled:v,"aria-label":"Enable Observability"})]})]}),(0,a.jsx)("div",{className:"flex flex-col sm:flex-row gap-2",children:(0,a.jsx)(o.$n,{variant:"outline",fullWidth:!0,icon:"power_settings_new",onClick:()=>h(!0),className:"text-red-500 border-red-200 hover:bg-red-50 hover:border-red-300",children:"Shutdown"})}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[n.vQ.name," v",n.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:"Local Mode - All data stored on your machine"})]})]}),(0,a.jsx)(l.default,{hideTrigger:!0,isOpen:b,onClose:e=>{p(!1),u(e)}}),(0,a.jsx)(i.ConfirmModal,{isOpen:y,onClose:()=>h(!1),onConfirm:ee,title:"Shutdown",message:"Are you sure you want to close the proxy server?",confirmText:"Shutdown",cancelText:"Cancel",variant:"danger",loading:f})]})}},34743:(e,t,s)=>{Promise.resolve().then(s.bind(s,12151))},35497:(e,t,s)=>{"use strict";s.d(t,{x0:()=>w.default,Ex:()=>d.default,$n:()=>a.default,nh:()=>R.default,Zp:()=>i.default,Qv:()=>n.CardSkeleton,CK:()=>b.default,uo:()=>l.ConfirmModal,G9:()=>g.default,wI:()=>v.default,vj:()=>N.default,vE:()=>j.default,pd:()=>r.default,Mh:()=>f.default,uR:()=>u.default,Nf:()=>p.default,aF:()=>l.default,rq:()=>x.default,gw:()=>k.default,LF:()=>m.default,Wx:()=>P.default,gM:()=>h.default,Iz:()=>S.default,l6:()=>o.default,lM:()=>c.default,m_:()=>C.default,jK:()=>y.default});var a=s(92542),r=s(11910),o=s(98),i=s(84588),l=s(81127),n=s(25086);s(56319);var d=s(56061),c=s(98542);s(61929),s(21110),s(92622),s(8823),s(92173);var m=s(90882),x=s(72908),u=s(28815),b=s(45455),p=s(28058),y=s(4809);s(21931),s(80752),s(40197);var h=s(23615);s(44736);var f=s(62899);s(94230);var g=s(30815),j=s(23936),N=s(95088),v=s(73579),w=s(96748),k=s(4823),S=s(28067),C=s(97677),P=s(51825),R=s(29366);s(76361),s(91450)}},e=>{e.O(0,[2574,3862,782,8500,594,4601,1321,1330,8441,3794,7358],()=>e(e.s=34743)),_N_E=e.O()}]);