n9router 0.4.63 → 0.4.64
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.
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +25 -25
- package/app/.next/build-manifest.json +2 -2
- package/app/.next/prerender-manifest.json +27 -27
- package/app/.next/required-server-files.json +5 -1
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error.html +1 -1
- package/app/.next/server/app/_global-error.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/_not-found/page.js +1 -1
- package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_not-found.html +1 -1
- package/app/.next/server/app/_not-found.rsc +2 -2
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/api/antigravity-app/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-app-v2/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-ide/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-targets/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-tools/import/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/devin-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/forge-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/omp-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/pi-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/smelt-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next/server/app/api/donate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/account-health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/request-detail/route.js +1 -1
- package/app/.next/server/app/api/internal/request-detail/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/usage/route.js +1 -1
- package/app/.next/server/app/api/internal/usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/reset-usage/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/reset-usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/usage/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/commandcode/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/client/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/web-login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/database/selective/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/route.js +1 -1
- package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/send/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/translate/route.js +1 -1
- package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/chart/route.js +1 -1
- package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/history/route.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/logs/route.js +1 -1
- package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/report/route.js +1 -1
- package/app/.next/server/app/api/usage/report/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stats/route.js +1 -1
- package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stream/route.js +1 -1
- package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/route.js +1 -1
- package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/search/route.js +1 -1
- package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/route.js +1 -1
- package/app/.next/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next/server/app/callback/page.js +1 -1
- package/app/.next/server/app/callback/page.js.nft.json +1 -1
- package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/callback.html +1 -1
- package/app/.next/server/app/callback.rsc +2 -2
- package/app/.next/server/app/callback.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next/server/app/dashboard/basic-chat.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next/server/app/dashboard/cli-tools.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.html +1 -1
- package/app/.next/server/app/dashboard/combos.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.html +1 -1
- package/app/.next/server/app/dashboard/endpoint.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.html +1 -1
- package/app/.next/server/app/dashboard/mitm.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.html +1 -1
- package/app/.next/server/app/dashboard/profile.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.html +1 -1
- package/app/.next/server/app/dashboard/providers/new.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.html +1 -1
- package/app/.next/server/app/dashboard/providers.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next/server/app/dashboard/pxpipe.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.html +1 -1
- package/app/.next/server/app/dashboard/quota.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.html +1 -1
- package/app/.next/server/app/dashboard/skills.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/token-saver.html +1 -1
- package/app/.next/server/app/dashboard/token-saver.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.html +1 -1
- package/app/.next/server/app/dashboard/translator.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.html +1 -1
- package/app/.next/server/app/dashboard/usage.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.html +1 -1
- package/app/.next/server/app/dashboard.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +2 -2
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/landing/page.js +1 -1
- package/app/.next/server/app/landing/page.js.nft.json +1 -1
- package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/landing.html +1 -1
- package/app/.next/server/app/landing.rsc +2 -2
- package/app/.next/server/app/landing.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/login/page.js +1 -1
- package/app/.next/server/app/login/page.js.nft.json +1 -1
- package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/login.html +1 -1
- package/app/.next/server/app/login.rsc +2 -2
- package/app/.next/server/app/login.segments/_full.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next/server/app/page.js +1 -1
- package/app/.next/server/app/page.js.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app-paths-manifest.json +25 -25
- package/app/.next/server/chunks/1051.js +1 -1
- package/app/.next/server/chunks/1350.js +1 -1
- package/app/.next/server/chunks/1505.js +1 -1
- package/app/.next/server/chunks/4334.js +1 -1
- package/app/.next/server/chunks/5330.js +1 -1
- package/app/.next/server/chunks/5520.js +1 -1
- package/app/.next/server/chunks/574.js +1 -1
- package/app/.next/server/chunks/6297.js +1 -1
- package/app/.next/server/chunks/7373.js +1 -1
- package/app/.next/server/chunks/7525.js +1 -1
- package/app/.next/server/chunks/7774.js +2 -2
- package/app/.next/server/chunks/7995.js +2 -2
- package/app/.next/server/chunks/8467.js +1 -1
- package/app/.next/server/chunks/869.js +1 -1
- package/app/.next/server/chunks/9889.js +1 -1
- package/app/.next/server/middleware-build-manifest.js +1 -1
- package/app/.next/server/middleware.js +1 -1
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/server/preview-props.json +3 -3
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/static/chunks/{1321-59ad1a50ce10d9fa.js → 1321-069b648d8a5aed07.js} +1 -1
- package/app/package.json +1 -1
- package/app/server.js +1 -1
- package/app/src/shared/constants/cliTools.js +637 -0
- package/app/src/shared/constants/colors.js +77 -0
- package/app/src/shared/constants/config.js +109 -0
- package/app/src/shared/constants/coworkPlugins.js +72 -0
- package/app/src/shared/constants/index.js +4 -0
- package/app/src/shared/constants/keyAccess.js +24 -0
- package/app/src/shared/constants/locales.js +38 -0
- package/app/src/shared/constants/mitmToolHosts.js +12 -0
- package/app/src/shared/constants/models.js +67 -0
- package/app/src/shared/constants/monaco.js +7 -0
- package/app/src/shared/constants/providers.js +168 -0
- package/app/src/shared/constants/providersDisplay.js +12 -0
- package/app/src/shared/constants/skills.js +85 -0
- package/app/src/shared/constants/ttsProviders.js +172 -0
- package/package.json +1 -1
- /package/app/.next/static/{csQnh_24N6xB5-kHxlTYo → XH_XuO6k-mrc3KL4kNuIo}/_buildManifest.js +0 -0
- /package/app/.next/static/{csQnh_24N6xB5-kHxlTYo → XH_XuO6k-mrc3KL4kNuIo}/_ssgManifest.js +0 -0
- /package/app/{lib → src/lib}/dbFileSafety.js +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Claude-inspired color palette for Endpoint Proxy
|
|
2
|
+
// Light theme: Warm beige/cream tones
|
|
3
|
+
// Dark theme: Deep charcoal/brown tones
|
|
4
|
+
|
|
5
|
+
export const COLORS = {
|
|
6
|
+
// Primary - Warm Coral/Terracotta (Claude-like)
|
|
7
|
+
primary: {
|
|
8
|
+
DEFAULT: "#D97757",
|
|
9
|
+
hover: "#C56243",
|
|
10
|
+
light: "#E8A58C",
|
|
11
|
+
dark: "#B0664D",
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
// Light theme backgrounds
|
|
15
|
+
light: {
|
|
16
|
+
bg: "#FBF9F6",
|
|
17
|
+
bgAlt: "#F5F1ED",
|
|
18
|
+
surface: "#FFFFFF",
|
|
19
|
+
sidebar: "rgba(246, 246, 246, 0.8)",
|
|
20
|
+
border: "rgba(0, 0, 0, 0.1)",
|
|
21
|
+
textMain: "#383733",
|
|
22
|
+
textMuted: "#75736E",
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
// Dark theme backgrounds
|
|
26
|
+
dark: {
|
|
27
|
+
bg: "#191918",
|
|
28
|
+
bgAlt: "#1F1F1E",
|
|
29
|
+
surface: "#242423",
|
|
30
|
+
sidebar: "rgba(30, 30, 30, 0.8)",
|
|
31
|
+
border: "rgba(255, 255, 255, 0.1)",
|
|
32
|
+
textMain: "#ECEBE8",
|
|
33
|
+
textMuted: "#9E9D99",
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
// Status colors
|
|
37
|
+
status: {
|
|
38
|
+
success: "#22C55E",
|
|
39
|
+
successLight: "#DCFCE7",
|
|
40
|
+
successDark: "#166534",
|
|
41
|
+
warning: "#F59E0B",
|
|
42
|
+
warningLight: "#FEF3C7",
|
|
43
|
+
warningDark: "#92400E",
|
|
44
|
+
error: "#EF4444",
|
|
45
|
+
errorLight: "#FEE2E2",
|
|
46
|
+
errorDark: "#991B1B",
|
|
47
|
+
info: "#3B82F6",
|
|
48
|
+
infoLight: "#DBEAFE",
|
|
49
|
+
infoDark: "#1E40AF",
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// CSS Variables mapping for Tailwind
|
|
54
|
+
export const CSS_VARIABLES = {
|
|
55
|
+
light: {
|
|
56
|
+
"--color-primary": COLORS.primary.DEFAULT,
|
|
57
|
+
"--color-primary-hover": COLORS.primary.hover,
|
|
58
|
+
"--color-bg": COLORS.light.bg,
|
|
59
|
+
"--color-bg-alt": COLORS.light.bgAlt,
|
|
60
|
+
"--color-surface": COLORS.light.surface,
|
|
61
|
+
"--color-sidebar": COLORS.light.sidebar,
|
|
62
|
+
"--color-border": COLORS.light.border,
|
|
63
|
+
"--color-text-main": COLORS.light.textMain,
|
|
64
|
+
"--color-text-muted": COLORS.light.textMuted,
|
|
65
|
+
},
|
|
66
|
+
dark: {
|
|
67
|
+
"--color-primary": COLORS.primary.DEFAULT,
|
|
68
|
+
"--color-primary-hover": COLORS.primary.hover,
|
|
69
|
+
"--color-bg": COLORS.dark.bg,
|
|
70
|
+
"--color-bg-alt": COLORS.dark.bgAlt,
|
|
71
|
+
"--color-surface": COLORS.dark.surface,
|
|
72
|
+
"--color-sidebar": COLORS.dark.sidebar,
|
|
73
|
+
"--color-border": COLORS.dark.border,
|
|
74
|
+
"--color-text-main": COLORS.dark.textMain,
|
|
75
|
+
"--color-text-muted": COLORS.dark.textMuted,
|
|
76
|
+
},
|
|
77
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import pkg from "../../../package.json" with { type: "json" };
|
|
2
|
+
|
|
3
|
+
// App configuration
|
|
4
|
+
export const APP_CONFIG = {
|
|
5
|
+
name: "n9Router proxy",
|
|
6
|
+
description: "AI Infrastructure Management",
|
|
7
|
+
version: pkg.version,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
// GitHub configuration
|
|
11
|
+
export const GITHUB_CONFIG = {
|
|
12
|
+
changelogUrl: "https://raw.githubusercontent.com/nightwalker89/n9router/refs/heads/master/CHANGELOG.md",
|
|
13
|
+
donateUrl: "/api/donate",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// Updater configuration
|
|
17
|
+
export const UPDATER_CONFIG = {
|
|
18
|
+
npmPackageName: "n9router",
|
|
19
|
+
installCmd: "npm i -g n9router",
|
|
20
|
+
installCmdLatest: "npm i -g n9router@latest --prefer-online",
|
|
21
|
+
shutdownCountdownSec: 3,
|
|
22
|
+
exitDelayMs: 500,
|
|
23
|
+
statusPort: 20129,
|
|
24
|
+
statusPollIntervalMs: 1000,
|
|
25
|
+
statusLogTailLines: 8,
|
|
26
|
+
installRetries: 3,
|
|
27
|
+
installRetryDelayMs: 5000,
|
|
28
|
+
lingerAfterDoneMs: 30000,
|
|
29
|
+
waitForExitMinMs: 5000,
|
|
30
|
+
waitForExitMaxMs: 20000,
|
|
31
|
+
waitForExitCheckMs: 500,
|
|
32
|
+
appPort: 20128,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// Theme configuration
|
|
36
|
+
export const THEME_CONFIG = {
|
|
37
|
+
storageKey: "theme",
|
|
38
|
+
defaultTheme: "system", // "light" | "dark" | "system"
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Subscription
|
|
42
|
+
export const SUBSCRIPTION_CONFIG = {
|
|
43
|
+
price: 1.0,
|
|
44
|
+
currency: "USD",
|
|
45
|
+
interval: "month",
|
|
46
|
+
planName: "Pro Plan",
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// API endpoints
|
|
50
|
+
export const API_ENDPOINTS = {
|
|
51
|
+
users: "/api/users",
|
|
52
|
+
providers: "/api/providers",
|
|
53
|
+
payments: "/api/payments",
|
|
54
|
+
auth: "/api/auth",
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const CONSOLE_LOG_CONFIG = {
|
|
58
|
+
maxLines: 200,
|
|
59
|
+
pollIntervalMs: 1000,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// Client-side store TTL: how long fetched data stays fresh before re-fetching
|
|
63
|
+
export const CLIENT_STORE_TTL_MS = 60000;
|
|
64
|
+
|
|
65
|
+
// Quota auto-ping: keep 5h windows warm by sending a tiny request right after reset.
|
|
66
|
+
export const QUOTA_AUTOPING_CONFIG = {
|
|
67
|
+
tickIntervalMs: 60000, // scheduler tick
|
|
68
|
+
pingLeadMs: 5000, // fire once reset passes (within tolerance)
|
|
69
|
+
refreshAheadMs: 300000, // refetch usage when within 5min of reset
|
|
70
|
+
failureCooldownMs: 900000, // avoid failed ping spam while upstream/auth is unhealthy
|
|
71
|
+
providers: {
|
|
72
|
+
claude: {
|
|
73
|
+
settingsKey: "claudeAutoPing", // preserve existing settings contract
|
|
74
|
+
quotaKey: "session (5h)", // quota key returned by usage handler
|
|
75
|
+
pingModel: "claude-haiku-4-5-20251001",
|
|
76
|
+
pingText: "hi",
|
|
77
|
+
pingMaxTokens: 1,
|
|
78
|
+
},
|
|
79
|
+
codex: {
|
|
80
|
+
settingsKey: "codexAutoPing",
|
|
81
|
+
quotaKey: "session",
|
|
82
|
+
pingWhenResetAtSlides: true,
|
|
83
|
+
resetAtDriftMs: 30000,
|
|
84
|
+
minPingIntervalMs: 600000,
|
|
85
|
+
skipWhenBlockingQuotaExhausted: true,
|
|
86
|
+
// gpt-5.6-terra is the lightweight model for auto-pinging Codex 5h reset window.
|
|
87
|
+
pingModel: "gpt-5.6-terra",
|
|
88
|
+
pingText: "hi",
|
|
89
|
+
pingInstructions: "Reply with OK.",
|
|
90
|
+
pingReasoningEffort: "none",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// Re-export from providers.js for backward compatibility
|
|
96
|
+
export {
|
|
97
|
+
FREE_PROVIDERS,
|
|
98
|
+
OAUTH_PROVIDERS,
|
|
99
|
+
APIKEY_PROVIDERS,
|
|
100
|
+
WEB_COOKIE_PROVIDERS,
|
|
101
|
+
AI_PROVIDERS,
|
|
102
|
+
AUTH_METHODS,
|
|
103
|
+
} from "./providers.js";
|
|
104
|
+
|
|
105
|
+
// Re-export from models.js for backward compatibility
|
|
106
|
+
export {
|
|
107
|
+
PROVIDER_MODELS,
|
|
108
|
+
AI_MODELS,
|
|
109
|
+
} from "./models.js";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Default remote plugins for Claude Cowork (3p managedMcpServers, HTTPS only).
|
|
2
|
+
const DEFAULT_PLUGINS = [
|
|
3
|
+
{
|
|
4
|
+
name: "exa",
|
|
5
|
+
title: "Exa",
|
|
6
|
+
description: "Real-time web search and code documentation",
|
|
7
|
+
url: "https://mcp.exa.ai/mcp",
|
|
8
|
+
transport: "http",
|
|
9
|
+
oauth: false,
|
|
10
|
+
toolNames: ["web_search_exa", "web_fetch_exa"],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "tavily",
|
|
14
|
+
title: "Tavily",
|
|
15
|
+
description: "Real-time web search optimized for LLM agents",
|
|
16
|
+
url: "https://mcp.tavily.com/mcp",
|
|
17
|
+
transport: "http",
|
|
18
|
+
oauth: true,
|
|
19
|
+
toolNames: ["tavily_search", "tavily_extract", "tavily_crawl", "tavily_map"],
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
// Local stdio plugins bridged via inline SSE endpoint on the app's port.
|
|
24
|
+
const LOCAL_STDIO_PLUGINS = [
|
|
25
|
+
{
|
|
26
|
+
name: "browsermcp",
|
|
27
|
+
title: "Browser MCP",
|
|
28
|
+
description: "Control your running Chrome (requires Chrome extension)",
|
|
29
|
+
extensionUrl: "https://chromewebstore.google.com/detail/browser-mcp-automate-your/bjfgambnhccakkhmkepdoekmckoijdlc",
|
|
30
|
+
command: "npx",
|
|
31
|
+
args: ["-y", "@browsermcp/mcp@latest"],
|
|
32
|
+
toolNames: ["browser_navigate", "browser_snapshot", "browser_click", "browser_type", "browser_screenshot", "browser_get_console_logs", "browser_wait", "browser_press_key", "browser_go_back", "browser_go_forward"],
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
function buildManagedMcpServers(plugins) {
|
|
37
|
+
const list = Array.isArray(plugins) ? plugins : [];
|
|
38
|
+
const out = [];
|
|
39
|
+
const seen = new Set();
|
|
40
|
+
for (const p of list) {
|
|
41
|
+
if (!p?.name || !p?.url || seen.has(p.name)) continue;
|
|
42
|
+
seen.add(p.name);
|
|
43
|
+
const entry = {
|
|
44
|
+
name: p.name,
|
|
45
|
+
url: p.url,
|
|
46
|
+
transport: p.transport || (/\/sse(\b|\/)/i.test(p.url) ? "sse" : "http"),
|
|
47
|
+
};
|
|
48
|
+
if (p.oauth) entry.oauth = true;
|
|
49
|
+
if (Array.isArray(p.toolNames) && p.toolNames.length > 0) {
|
|
50
|
+
// Strip any pre-existing "{name}-" prefixes (idempotent across re-applies),
|
|
51
|
+
// then emit both bare + single-prefixed variants to match runtime tool naming.
|
|
52
|
+
const prefix = `${p.name}-`;
|
|
53
|
+
const bare = new Set();
|
|
54
|
+
for (const raw of p.toolNames) {
|
|
55
|
+
if (typeof raw !== "string" || !raw) continue;
|
|
56
|
+
let t = raw;
|
|
57
|
+
while (t.startsWith(prefix)) t = t.slice(prefix.length);
|
|
58
|
+
bare.add(t);
|
|
59
|
+
}
|
|
60
|
+
const policy = {};
|
|
61
|
+
for (const t of bare) {
|
|
62
|
+
policy[t] = "allow";
|
|
63
|
+
policy[`${prefix}${t}`] = "allow";
|
|
64
|
+
}
|
|
65
|
+
entry.toolPolicy = policy;
|
|
66
|
+
}
|
|
67
|
+
out.push(entry);
|
|
68
|
+
}
|
|
69
|
+
return out;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
module.exports = { DEFAULT_PLUGINS, LOCAL_STDIO_PLUGINS, buildManagedMcpServers };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Per-API-key access control: shared constants. Used by the engine
|
|
2
|
+
// (src/sse/services/keyAccess.js), the DB repo, the /api/keys routes and the
|
|
3
|
+
// Endpoint page.
|
|
4
|
+
|
|
5
|
+
// Upper bounds for one key's allow list. The API rejects input beyond these
|
|
6
|
+
// (400) rather than truncating it, so a declared list is never silently cut.
|
|
7
|
+
export const KEY_ACCESS_MAX_ENTRIES = 200;
|
|
8
|
+
export const KEY_ACCESS_MAX_ENTRY_LENGTH = 256;
|
|
9
|
+
|
|
10
|
+
// Every key — new, migrated, or restored from a backup without the field — is
|
|
11
|
+
// unrestricted unless explicitly switched to restricted.
|
|
12
|
+
export const KEY_ACCESS_UNRESTRICTED = Object.freeze({ restricted: false, allow: Object.freeze([]) });
|
|
13
|
+
|
|
14
|
+
// /v1/models entry kinds whose "model" is the provider itself (search/fetch).
|
|
15
|
+
export const KEY_ACCESS_PROVIDER_AS_MODEL_KINDS = Object.freeze(["webSearch", "webFetch"]);
|
|
16
|
+
|
|
17
|
+
// /v1/models owner tag for combo entries.
|
|
18
|
+
export const KEY_ACCESS_COMBO_OWNER = "combo";
|
|
19
|
+
|
|
20
|
+
// Client-facing 403 message. Names only what the client itself sent: never the
|
|
21
|
+
// key name or the key's allow list.
|
|
22
|
+
export function keyAccessDeniedMessage(requested) {
|
|
23
|
+
return `This API key is not allowed to use model "${requested}"`;
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Centralized locale display flags (shared across UI components)
|
|
2
|
+
export const LOCALE_FLAGS = {
|
|
3
|
+
"en": "🇺🇸",
|
|
4
|
+
"vi": "🇻🇳",
|
|
5
|
+
"zh-CN": "🇨🇳",
|
|
6
|
+
"zh-TW": "🇹🇼",
|
|
7
|
+
"ja": "🇯🇵",
|
|
8
|
+
"pt-BR": "🇧🇷",
|
|
9
|
+
"pt-PT": "🇵🇹",
|
|
10
|
+
"ko": "🇰🇷",
|
|
11
|
+
"es": "🇪🇸",
|
|
12
|
+
"de": "🇩🇪",
|
|
13
|
+
"fr": "🇫🇷",
|
|
14
|
+
"he": "🇮🇱",
|
|
15
|
+
"ar": "🇸🇦",
|
|
16
|
+
"ru": "🇷🇺",
|
|
17
|
+
"pl": "🇵🇱",
|
|
18
|
+
"cs": "🇨🇿",
|
|
19
|
+
"nl": "🇳🇱",
|
|
20
|
+
"tr": "🇹🇷",
|
|
21
|
+
"uk": "🇺🇦",
|
|
22
|
+
"tl": "🇵🇭",
|
|
23
|
+
"id": "🇮🇩",
|
|
24
|
+
"th": "🇹🇭",
|
|
25
|
+
"km": "🇰🇭",
|
|
26
|
+
"hi": "🇮🇳",
|
|
27
|
+
"bn": "🇧🇩",
|
|
28
|
+
"ur": "🇵🇰",
|
|
29
|
+
"ro": "🇷🇴",
|
|
30
|
+
"sv": "🇸🇪",
|
|
31
|
+
"it": "🇮🇹",
|
|
32
|
+
"el": "🇬🇷",
|
|
33
|
+
"hu": "🇭🇺",
|
|
34
|
+
"fi": "🇫🇮",
|
|
35
|
+
"da": "🇩🇰",
|
|
36
|
+
"no": "🇳🇴",
|
|
37
|
+
"fa": "🇮🇷",
|
|
38
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-tool DNS hosts — written to hosts file as 127.0.0.1 when MITM DNS is enabled.
|
|
3
|
+
* Kept in sync with MITM routing; shared by Node (dnsConfig) and dashboard UI.
|
|
4
|
+
*/
|
|
5
|
+
const TOOL_HOSTS = {
|
|
6
|
+
antigravity: ["daily-cloudcode-pa.googleapis.com", "cloudcode-pa.googleapis.com"],
|
|
7
|
+
copilot: ["api.individual.githubcopilot.com"],
|
|
8
|
+
kiro: ["runtime.us-east-1.kiro.dev", "q.us-east-1.amazonaws.com", "codewhisperer.us-east-1.amazonaws.com"],
|
|
9
|
+
cursor: ["api2.cursor.sh"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
module.exports = { TOOL_HOSTS };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Import directly from file to avoid pulling in server-side dependencies via index.js
|
|
2
|
+
export {
|
|
3
|
+
PROVIDER_MODELS,
|
|
4
|
+
getProviderModels,
|
|
5
|
+
getDefaultModel,
|
|
6
|
+
isValidModel as isValidModelCore,
|
|
7
|
+
findModelName,
|
|
8
|
+
getModelTargetFormat,
|
|
9
|
+
getModelStrip,
|
|
10
|
+
PROVIDER_ID_TO_ALIAS,
|
|
11
|
+
getModelsByProviderId,
|
|
12
|
+
getModelUpstreamId,
|
|
13
|
+
getModelQuotaFamily
|
|
14
|
+
} from "open-sse/config/providerModels.js";
|
|
15
|
+
|
|
16
|
+
import { AI_PROVIDERS, isOpenAICompatibleProvider } from "./providers.js";
|
|
17
|
+
import { PROVIDER_MODELS as MODELS } from "open-sse/config/providerModels.js";
|
|
18
|
+
|
|
19
|
+
// Providers that accept any model (passthrough)
|
|
20
|
+
const PASSTHROUGH_PROVIDERS = new Set(
|
|
21
|
+
Object.entries(AI_PROVIDERS)
|
|
22
|
+
.filter(([, p]) => p.passthroughModels)
|
|
23
|
+
.map(([key]) => key)
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
// Wrap isValidModel with passthrough providers
|
|
27
|
+
export function isValidModel(aliasOrId, modelId) {
|
|
28
|
+
if (isOpenAICompatibleProvider(aliasOrId)) return true;
|
|
29
|
+
if (PASSTHROUGH_PROVIDERS.has(aliasOrId)) return true;
|
|
30
|
+
const models = MODELS[aliasOrId];
|
|
31
|
+
if (!models) return false;
|
|
32
|
+
return models.some(m => m.id === modelId);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Legacy AI_MODELS for backward compatibility
|
|
36
|
+
export const AI_MODELS = Object.entries(MODELS).flatMap(([alias, models]) =>
|
|
37
|
+
models.map(m => ({ provider: alias, model: m.id, name: m.name }))
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
export const getModelKind = (m, fallback = null) => m?.kind || m?.type || fallback;
|
|
41
|
+
|
|
42
|
+
// Capacity metadata for UI badges — icon + label + color per capability.
|
|
43
|
+
export const CAPACITY_META = {
|
|
44
|
+
vision: { icon: "visibility", label: "Vision", desc: "Supports image input", color: "text-blue-500" },
|
|
45
|
+
// search: temporarily hidden (feature not wired yet)
|
|
46
|
+
reasoning: { icon: "neurology", label: "Reasoning", desc: "Supports reasoning / thinking", color: "text-amber-500" },
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// Realtime STT transport markers accepted on custom models — single source of
|
|
50
|
+
// truth across layers: the API whitelist (src/app/api/models/custom/route.js
|
|
51
|
+
// sanitizeTransport) and the dashboard transport select
|
|
52
|
+
// (providers/[id]/AddCustomModelModal) both import this map, so one new row
|
|
53
|
+
// here makes a realtime engine dispatch case (open-sse/handlers/sttCore.js)
|
|
54
|
+
// selectable and validated end-to-end. Keys must mirror a sttCore case.
|
|
55
|
+
export const STT_TRANSPORT_META = {
|
|
56
|
+
"gemini-live": {
|
|
57
|
+
label: "Gemini Live (realtime WebSocket)",
|
|
58
|
+
desc: "Streams audio over bidiGenerateContent and returns incremental transcription segments",
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const STT_TRANSPORTS = Object.freeze(Object.keys(STT_TRANSPORT_META));
|
|
63
|
+
|
|
64
|
+
export function isSttTransport(transport) {
|
|
65
|
+
if (typeof transport !== "string") return false;
|
|
66
|
+
return Object.prototype.hasOwnProperty.call(STT_TRANSPORT_META, transport.trim());
|
|
67
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// @monaco-editor/react does not use the monaco-editor package from node_modules: its
|
|
2
|
+
// loader fetches Monaco from jsdelivr at a version hardcoded in @monaco-editor/loader.
|
|
3
|
+
// Pin that copy to the version in package.json, so a Monaco upgrade (and the DOMPurify
|
|
4
|
+
// fixes bundled in it) actually reaches the browser. tests/unit/monaco-version.test.js
|
|
5
|
+
// fails if this drifts from the installed package.
|
|
6
|
+
export const MONACO_VERSION = "0.57.0";
|
|
7
|
+
export const MONACO_VS_PATH = `https://cdn.jsdelivr.net/npm/monaco-editor@${MONACO_VERSION}/min/vs`;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
// Provider definitions
|
|
2
|
+
import REGISTRY from "open-sse/providers/registry/index.js";
|
|
3
|
+
import { RISK_NOTICE } from "@/shared/constants/providersDisplay.js";
|
|
4
|
+
|
|
5
|
+
const MEDIA_ENTRY_KEYS = [
|
|
6
|
+
"serviceKinds", "ttsConfig", "sttConfig", "embeddingConfig",
|
|
7
|
+
"imageConfig", "imageToTextConfig", "videoConfig", "musicConfig",
|
|
8
|
+
"searchViaChat", "searchConfig", "fetchConfig", "credentialFallback", "systemoneConfig",
|
|
9
|
+
"modelsFetcher", "mediaPriority", "hiddenKinds",
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
// Build provider UI object from registry entry
|
|
13
|
+
function buildProviderEntry(r) {
|
|
14
|
+
const mediaFields = {};
|
|
15
|
+
if (r.media) Object.assign(mediaFields, r.media);
|
|
16
|
+
for (const k of MEDIA_ENTRY_KEYS) {
|
|
17
|
+
if (r[k] !== undefined) mediaFields[k] = r[k];
|
|
18
|
+
}
|
|
19
|
+
const display = { ...(r.display || {}) };
|
|
20
|
+
if (display.deprecationNotice === "RISK_NOTICE") display.deprecationNotice = RISK_NOTICE;
|
|
21
|
+
return {
|
|
22
|
+
...display,
|
|
23
|
+
id: r.id,
|
|
24
|
+
alias: r.uiAlias || r.alias,
|
|
25
|
+
...(r.hidden ? { hidden: true } : {}),
|
|
26
|
+
...mediaFields,
|
|
27
|
+
...(r.priority !== undefined ? { priority: r.priority } : {}),
|
|
28
|
+
...(r.hasFree ? { hasFree: true } : {}),
|
|
29
|
+
...(r.thinkingConfig ? { thinkingConfig: r.thinkingConfig } : {}),
|
|
30
|
+
...(r.regions ? { regions: r.regions, defaultRegion: r.defaultRegion } : {}),
|
|
31
|
+
...(r.hasProviderSpecificData ? { hasProviderSpecificData: true } : {}),
|
|
32
|
+
...(r.noAuth ? { noAuth: true } : {}),
|
|
33
|
+
...(r.passthroughModels ? { passthroughModels: true } : {}),
|
|
34
|
+
...(r.hasOAuth ? { hasOAuth: true } : {}),
|
|
35
|
+
...(r.authModes ? { authModes: r.authModes } : {}),
|
|
36
|
+
...(r.authType ? { authType: r.authType } : {}),
|
|
37
|
+
...(r.authHint ? { authHint: r.authHint } : {}),
|
|
38
|
+
...(r.apiKeyOptionalWith ? { apiKeyOptionalWith: r.apiKeyOptionalWith } : {}),
|
|
39
|
+
...(r.credentialForm ? { credentialForm: r.credentialForm } : {}),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const byCategory = (cat) => Object.fromEntries(
|
|
44
|
+
REGISTRY.filter(r => r.category === cat).map(r => [r.id, buildProviderEntry(r)])
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
export const FREE_PROVIDERS = byCategory("free");
|
|
48
|
+
export const FREE_TIER_PROVIDERS = byCategory("freeTier");
|
|
49
|
+
|
|
50
|
+
// Thinking config definitions
|
|
51
|
+
// options: list of selectable modes ("auto" = no override from server)
|
|
52
|
+
// defaultMode: fallback when user hasn't configured
|
|
53
|
+
// extended: claude-style thinking (thinking.type + budget_tokens) — used by most providers
|
|
54
|
+
// effort: openai-style reasoning_effort — only openai + codex
|
|
55
|
+
export const THINKING_CONFIG = {
|
|
56
|
+
extended: {
|
|
57
|
+
options: ["auto", "on", "off"],
|
|
58
|
+
defaultMode: "auto",
|
|
59
|
+
defaultBudgetTokens: 10000
|
|
60
|
+
},
|
|
61
|
+
effort: {
|
|
62
|
+
options: ["auto", "none", "low", "medium", "high"],
|
|
63
|
+
defaultMode: "auto"
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const OAUTH_PROVIDERS = byCategory("oauth");
|
|
68
|
+
export const APIKEY_PROVIDERS = byCategory("apikey");
|
|
69
|
+
|
|
70
|
+
// Web Cookie Providers (use browser session cookie instead of API key)
|
|
71
|
+
export const WEB_COOKIE_PROVIDERS = byCategory("webCookie");
|
|
72
|
+
|
|
73
|
+
// Media provider kinds — each kind maps to a route and endpoint config
|
|
74
|
+
export const MEDIA_PROVIDER_KINDS = [
|
|
75
|
+
{ id: "embedding", label: "Embedding", icon: "data_array", endpoint: { method: "POST", path: "/v1/embeddings" } },
|
|
76
|
+
{ id: "image", label: "Text to Image", icon: "brush", endpoint: { method: "POST", path: "/v1/images/generations" } },
|
|
77
|
+
{ id: "imageToText", label: "Image to Text", icon: "image_search", endpoint: { method: "POST", path: "/v1/images/understanding" } },
|
|
78
|
+
{ id: "tts", label: "Text To Speech", icon: "record_voice_over", endpoint: { method: "POST", path: "/v1/audio/speech" } },
|
|
79
|
+
{ id: "stt", label: "Speech To Text", icon: "mic", endpoint: { method: "POST", path: "/v1/audio/transcriptions" } },
|
|
80
|
+
{ id: "webSearch", label: "Web Search", icon: "travel_explore", endpoint: { method: "POST", path: "/v1/search" } },
|
|
81
|
+
{ id: "webFetch", label: "Web Fetch", icon: "language", endpoint: { method: "POST", path: "/v1/web/fetch" } },
|
|
82
|
+
{ id: "video", label: "Video", icon: "movie", endpoint: { method: "POST", path: "/v1/videos/generations" } },
|
|
83
|
+
{ id: "music", label: "Music", icon: "music_note", endpoint: { method: "POST", path: "/v1/audio/music" } },
|
|
84
|
+
{ id: "systemone", label: "System One", icon: "psychology", endpoint: { method: "POST", path: "/v1/systemone" }, isNew: true },
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
export const OPENAI_COMPATIBLE_PREFIX = "openai-compatible-";
|
|
88
|
+
export const ANTHROPIC_COMPATIBLE_PREFIX = "anthropic-compatible-";
|
|
89
|
+
export const CUSTOM_EMBEDDING_PREFIX = "custom-embedding-";
|
|
90
|
+
|
|
91
|
+
export function isOpenAICompatibleProvider(providerId) {
|
|
92
|
+
return typeof providerId === "string" && providerId.startsWith(OPENAI_COMPATIBLE_PREFIX);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function isAnthropicCompatibleProvider(providerId) {
|
|
96
|
+
return typeof providerId === "string" && providerId.startsWith(ANTHROPIC_COMPATIBLE_PREFIX);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function isCustomEmbeddingProvider(providerId) {
|
|
100
|
+
return typeof providerId === "string" && providerId.startsWith(CUSTOM_EMBEDDING_PREFIX);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// All providers (combined)
|
|
104
|
+
export const AI_PROVIDERS = { ...FREE_PROVIDERS, ...FREE_TIER_PROVIDERS, ...OAUTH_PROVIDERS, ...APIKEY_PROVIDERS, ...WEB_COOKIE_PROVIDERS };
|
|
105
|
+
|
|
106
|
+
// Auth methods
|
|
107
|
+
export const AUTH_METHODS = {
|
|
108
|
+
oauth: { id: "oauth" },
|
|
109
|
+
apikey: { id: "apikey" },
|
|
110
|
+
cookie: { id: "cookie" },
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// Helper: Get provider by alias
|
|
114
|
+
export function getProviderByAlias(alias) {
|
|
115
|
+
for (const provider of Object.values(AI_PROVIDERS)) {
|
|
116
|
+
if (provider.alias === alias || provider.id === alias) {
|
|
117
|
+
return provider;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Helper: Get provider ID from alias
|
|
124
|
+
export function resolveProviderId(aliasOrId) {
|
|
125
|
+
const provider = getProviderByAlias(aliasOrId);
|
|
126
|
+
return provider?.id || aliasOrId;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Helper: Get alias from provider ID
|
|
130
|
+
export function getProviderAlias(providerId) {
|
|
131
|
+
const provider = AI_PROVIDERS[providerId];
|
|
132
|
+
return provider?.alias || providerId;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Alias to ID mapping (for quick lookup)
|
|
136
|
+
export const ALIAS_TO_ID = Object.values(AI_PROVIDERS).reduce((acc, p) => {
|
|
137
|
+
acc[p.alias] = p.id;
|
|
138
|
+
return acc;
|
|
139
|
+
}, {});
|
|
140
|
+
|
|
141
|
+
// ID to Alias mapping
|
|
142
|
+
export const ID_TO_ALIAS = Object.values(AI_PROVIDERS).reduce((acc, p) => {
|
|
143
|
+
acc[p.id] = p.alias;
|
|
144
|
+
return acc;
|
|
145
|
+
}, {});
|
|
146
|
+
|
|
147
|
+
// Helper: Get providers by service kind (e.g. "tts", "embedding", "image")
|
|
148
|
+
// Providers without serviceKinds default to ["llm"]
|
|
149
|
+
export function getProvidersByKind(kind) {
|
|
150
|
+
return Object.values(AI_PROVIDERS)
|
|
151
|
+
.filter((p) => {
|
|
152
|
+
const kinds = p.serviceKinds ?? ["llm"];
|
|
153
|
+
if (!kinds.includes(kind)) return false;
|
|
154
|
+
if (p.hidden) return false;
|
|
155
|
+
if (p.hiddenKinds?.includes(kind)) return false;
|
|
156
|
+
return true;
|
|
157
|
+
})
|
|
158
|
+
.sort((a, b) => (a.priority ?? a.mediaPriority ?? 999) - (b.priority ?? b.mediaPriority ?? 999));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// Derive từ registry features flags
|
|
162
|
+
export const USAGE_SUPPORTED_PROVIDERS = REGISTRY
|
|
163
|
+
.filter(r => r.features?.usage)
|
|
164
|
+
.map(r => r.id);
|
|
165
|
+
|
|
166
|
+
export const USAGE_APIKEY_PROVIDERS = REGISTRY
|
|
167
|
+
.filter(r => r.features?.usageApikey)
|
|
168
|
+
.map(r => r.id);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// UI display config — all providers derive from registry.display.
|
|
2
|
+
import REGISTRY from "open-sse/providers/registry/index.js";
|
|
3
|
+
|
|
4
|
+
export const RISK_NOTICE = "⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";
|
|
5
|
+
|
|
6
|
+
// Resolve "RISK_NOTICE" token → real notice text (registry stores token to avoid import cycle)
|
|
7
|
+
const resolveDisplay = (d) =>
|
|
8
|
+
d.deprecationNotice === "RISK_NOTICE" ? { ...d, deprecationNotice: RISK_NOTICE } : d;
|
|
9
|
+
|
|
10
|
+
export const PROVIDER_DISPLAY = Object.fromEntries(
|
|
11
|
+
REGISTRY.filter((r) => r.display).map((r) => [r.id, resolveDisplay(r.display)]),
|
|
12
|
+
);
|