@techysy/10router 1.3.6 → 1.4.0
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-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +5 -5
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +4 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +2 -2
- package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/gateway-probe/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/network/egress-region/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +2 -2
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shell-update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +2 -2
- package/app/.next-cli-build/server/app/callback.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +2 -2
- package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +2 -2
- package/app/.next-cli-build/server/app/landing.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +2 -2
- package/app/.next-cli-build/server/app/login.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +5 -5
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/1345.js +1 -0
- package/app/.next-cli-build/server/chunks/1386.js +2 -2
- package/app/.next-cli-build/server/chunks/1806.js +1 -0
- package/app/.next-cli-build/server/chunks/2112.js +1 -1
- package/app/.next-cli-build/server/chunks/2557.js +9 -0
- package/app/.next-cli-build/server/chunks/2752.js +1 -0
- package/app/.next-cli-build/server/chunks/2926.js +1 -1
- package/app/.next-cli-build/server/chunks/2978.js +1 -0
- package/app/.next-cli-build/server/chunks/3256.js +1 -1
- package/app/.next-cli-build/server/chunks/3593.js +2 -2
- package/app/.next-cli-build/server/chunks/3659.js +1 -0
- package/app/.next-cli-build/server/chunks/3662.js +1 -0
- package/app/.next-cli-build/server/chunks/3792.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/3962.js +1 -0
- package/app/.next-cli-build/server/chunks/4008.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4293.js +1 -1
- package/app/.next-cli-build/server/chunks/4692.js +6 -0
- package/app/.next-cli-build/server/chunks/4739.js +2 -2
- package/app/.next-cli-build/server/chunks/4780.js +2 -2
- package/app/.next-cli-build/server/chunks/4803.js +2 -2
- package/app/.next-cli-build/server/chunks/4927.js +3 -3
- package/app/.next-cli-build/server/chunks/507.js +2 -2
- package/app/.next-cli-build/server/chunks/5182.js +1 -1
- package/app/.next-cli-build/server/chunks/5210.js +3 -3
- package/app/.next-cli-build/server/chunks/5258.js +2 -2
- package/app/.next-cli-build/server/chunks/5433.js +1 -1
- package/app/.next-cli-build/server/chunks/5527.js +1 -0
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/5781.js +1 -1
- package/app/.next-cli-build/server/chunks/595.js +1 -1
- package/app/.next-cli-build/server/chunks/6252.js +2 -2
- package/app/.next-cli-build/server/chunks/6306.js +1 -1
- package/app/.next-cli-build/server/chunks/6326.js +1 -1
- package/app/.next-cli-build/server/chunks/6457.js +1 -1
- package/app/.next-cli-build/server/chunks/6756.js +1 -1
- package/app/.next-cli-build/server/chunks/682.js +1 -1
- package/app/.next-cli-build/server/chunks/6947.js +1 -1
- package/app/.next-cli-build/server/chunks/6960.js +1 -1
- package/app/.next-cli-build/server/chunks/698.js +2 -2
- package/app/.next-cli-build/server/chunks/7067.js +1 -1
- package/app/.next-cli-build/server/chunks/7122.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7274.js +6 -3
- package/app/.next-cli-build/server/chunks/7322.js +2 -2
- package/app/.next-cli-build/server/chunks/75.js +1 -0
- package/app/.next-cli-build/server/chunks/7568.js +1 -1
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/7965.js +2 -2
- package/app/.next-cli-build/server/chunks/8062.js +2 -2
- package/app/.next-cli-build/server/chunks/8145.js +1 -0
- package/app/.next-cli-build/server/chunks/8172.js +2 -2
- package/app/.next-cli-build/server/chunks/{7239.js → 8318.js} +2 -2
- package/app/.next-cli-build/server/chunks/8439.js +1 -0
- package/app/.next-cli-build/server/chunks/8469.js +2 -2
- package/app/.next-cli-build/server/chunks/8520.js +2 -2
- package/app/.next-cli-build/server/chunks/8595.js +1 -1
- package/app/.next-cli-build/server/chunks/8672.js +1 -1
- package/app/.next-cli-build/server/chunks/8675.js +1 -0
- package/app/.next-cli-build/server/chunks/8689.js +1 -1
- package/app/.next-cli-build/server/chunks/8838.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +9 -9
- package/app/.next-cli-build/server/chunks/9055.js +1 -1
- package/app/.next-cli-build/server/chunks/939.js +1 -1
- package/app/.next-cli-build/server/chunks/9417.js +6 -0
- package/app/.next-cli-build/server/chunks/9451.js +2 -2
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/chunks/9628.js +1 -1
- package/app/.next-cli-build/server/chunks/9713.js +1 -0
- package/app/.next-cli-build/server/chunks/976.js +2 -2
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +4 -4
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +2 -2
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/1243-64d16638d3aac467.js +3 -0
- package/app/.next-cli-build/static/chunks/1321-1ad989ddb9bd4822.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-a519f837339f7d19.js +7 -0
- package/app/.next-cli-build/static/chunks/6109-7d8788b228fed22f.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-2df49dc3be3c6b7d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-2a679f53191d77f7.js → page-de760afb83419302.js} +9 -9
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-7a5d36237ec6b40e.js +14 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-e0183e527ccc2c9b.js +1 -0
- package/app/.next-cli-build/static/css/66cb1d1c16ed3a27.css +1 -0
- package/app/package.json +71 -71
- package/app/public/i18n/changelog/en.md +21 -3
- package/app/public/i18n/changelog/zh-CN.md +21 -3
- package/app/public/i18n/changelog/zh-TW.md +21 -3
- package/app/public/i18n/literals/zh-CN.json +22 -0
- package/app/public/i18n/literals/zh-TW.json +21 -0
- package/app/src/lib/db/adapters/sqljsAdapter.js +42 -9
- package/app/src/sse/services/backgroundTokenRefresh.js +7 -0
- package/app/src/sse/services/codebuddyCheckin.js +6 -0
- package/package.json +61 -61
- package/app/.next-cli-build/server/chunks/1159.js +0 -7
- package/app/.next-cli-build/server/chunks/1710.js +0 -6
- package/app/.next-cli-build/server/chunks/3245.js +0 -1
- package/app/.next-cli-build/server/chunks/3885.js +0 -1
- package/app/.next-cli-build/server/chunks/4177.js +0 -1
- package/app/.next-cli-build/server/chunks/4282.js +0 -1
- package/app/.next-cli-build/server/chunks/436.js +0 -1
- package/app/.next-cli-build/server/chunks/4746.js +0 -1
- package/app/.next-cli-build/server/chunks/480.js +0 -6
- package/app/.next-cli-build/server/chunks/5485.js +0 -1
- package/app/.next-cli-build/server/chunks/653.js +0 -1
- package/app/.next-cli-build/server/chunks/6982.js +0 -1
- package/app/.next-cli-build/static/chunks/1243-25be5a7b0193949d.js +0 -3
- package/app/.next-cli-build/static/chunks/1321-7d951e8069135f2f.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-dce0ac54d3e8f165.js +0 -7
- package/app/.next-cli-build/static/chunks/6109-c3fa41c974584a96.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-5ec2e868aa2ff281.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-21ddfd8a9e7d781f.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-ec96de061407f126.js +0 -1
- package/app/.next-cli-build/static/css/b80ae6e58b63fd53.css +0 -1
- /package/app/.next-cli-build/static/{eqWYkzNeaSBj4mkYsjYbh → MH4bXJmhiPfMG7orS09FV}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{eqWYkzNeaSBj4mkYsjYbh → MH4bXJmhiPfMG7orS09FV}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
exports.id=7322,exports.ids=[7322],exports.modules={3341:(a,b,c)=>{"use strict";c.d(b,{Y:()=>f,Z:()=>e});var d=c(67960);async function e(a){if(!a)return!1;try{return(await fetch(`${a}/api/health`,{mode:"cors",cache:"no-store",signal:AbortSignal.timeout(d.Iv)})).ok}catch{return!1}}async function f(...a){let b=a.filter(Boolean).map(e);return!!b.length&&new Promise(a=>{let c=b.length;b.forEach(b=>b.then(b=>{b?a(!0):0==--c&&a(!1)}))})}},3633:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(48249);function e({message:a,action:b}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-xs flex-1",children:a}),b&&(0,d.jsx)("a",{href:b.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:b.href.startsWith("#")?a=>{a.preventDefault(),document.getElementById(b.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:b.label})]})}},8127:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(48249);function e({status:a,className:b=""}){return(0,d.jsx)("div",{className:`p-2 rounded text-sm ${b} ${"success"===a.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===a.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:a.message.split(/(https?:\/\/[^\s]+)/g).map((a,b)=>/^https?:\/\//.test(a)?(0,d.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:a},b):a)})}},43173:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{default:()=>s});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(50377),k=c(67960);c(3341);var l=c(91937),m=c(80392),n=c(8127),o=c(78420),p=c(3633),q=c(99258),r=a([i,m]);function s({machineId:a}){let[b,c]=(0,f.useState)([]),[d,g]=(0,f.useState)(!0),[h,r]=(0,f.useState)(!1),[t,u]=(0,f.useState)(""),[v,w]=(0,f.useState)(null),[x,y]=(0,f.useState)(null),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(!1),[D,E]=(0,f.useState)(!1),F=(0,f.useRef)(!1),[G,H]=(0,f.useState)(null),[I,J]=(0,f.useState)(!0),[K,L]=(0,f.useState)(!0),[M,N]=(0,f.useState)(!1),[O,P]=(0,f.useState)(!0),[Q,R]=(0,f.useState)(!1),[S,T]=(0,f.useState)(!1),[U,V]=(0,f.useState)(""),[W,X]=(0,f.useState)(""),[Y,Z]=(0,f.useState)(!1),[$,_]=(0,f.useState)(""),[aa,ab]=(0,f.useState)(null),[ac,ad]=(0,f.useState)(!1),[ae,af]=(0,f.useState)(!1),[ag,ah]=(0,f.useState)(!1),[ai,aj]=(0,f.useState)(!1),[ak,al]=(0,f.useState)(""),[am,an]=(0,f.useState)(!1),[ao,ap]=(0,f.useState)(""),[aq,ar]=(0,f.useState)(null),[as,at]=(0,f.useState)(""),[au,av]=(0,f.useState)(""),[aw,ax]=(0,f.useState)(null),[ay,az]=(0,f.useState)(!1),[aA,aB]=(0,f.useState)([]),[aC,aD]=(0,f.useState)(""),[aE,aF]=(0,f.useState)(!1),[aG,aH]=(0,f.useState)(!1),[aI,aJ]=(0,f.useState)(!1),aK=(0,f.useRef)(null);(0,f.useRef)(0),(0,f.useRef)(0),(0,f.useRef)(!1),(0,f.useRef)(!1),(0,f.useRef)(!1),(0,f.useRef)(!1);let[aL,aM]=(0,f.useState)(!1),[aN,aO]=(0,f.useState)(!1),[aP,aQ]=(0,f.useState)(new Set),[aR,aS]=(0,f.useState)(!1),{copied:aT,copy:aU}=(0,j.C)(),aV=!I||!K,aW=I?"Set a dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,f.useCallback)((a,b,c,d,e,f)=>{b.current?(c.current=0,d(!0),e.current||(e.current=!0,f(!0))):(c.current+=1,c.current>=k.t6&&d(!1))},[]);let aX=async a=>{try{await l.A.getState().patchSettings({tunnelDashboardAccess:a})&&N(a)}catch(a){console.log("Error updating tunnelDashboardAccess:",a)}},aY=async a=>{try{await l.A.getState().patchSettings({requireApiKey:a})&&A(a)}catch(a){console.log("Error updating requireApiKey:",a)}},aZ=async a=>{try{let b=await l.A.getState().patchSettings({apiKeyRotation:a});return b&&C(a),!!b}catch(a){return console.log("Error updating apiKeyRotation:",a),!1}},a$=async()=>{if(!F.current){F.current=!0,y(null),E(!0);try{let a=await fetch("/api/keys/rotate",{method:"POST"});if(a.ok){let b=await a.json(),d=await fetch("/api/keys");if(d.ok){let a=await d.json();c(a.keys||[])}H(b)}}catch(a){console.log("Error rotating keys:",a)}finally{E(!1),F.current=!1}}},a_=async()=>{try{let a=async()=>{let a=await fetch("/api/keys");return a.ok&&(await a.json()).keys||[]},b=await a();if(0===b.length)try{(await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"Default Key"})})).ok&&(b=await a())}catch{}c(b)}catch(a){console.log("Error fetching data:",a)}finally{g(!1)}},a0=async(...a)=>{Z(!0),_("Waiting for tunnel ready...");let b=a.filter(Boolean).map(a=>`${a}/api/health`),c=Date.now();for(;Date.now()-c<k.Cp;){if(await new Promise(a=>setTimeout(a,k.Hx)),await Promise.any(b.map(async a=>{if((await fetch(a,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return R(!0),Z(!1),_(""),!0;if((Date.now()-c)%1e4<k.Hx)try{let a=await fetch("/api/tunnel/status");if(a.ok){let b=await a.json();if(!b.tunnel?.enabled)return ab({type:"error",message:(0,q.Tl)("Tunnel process stopped unexpectedly.")}),Z(!1),_(""),!1}}catch{}}return ab({type:"error",message:(0,q.Tl)("Tunnel created but not reachable. Please try again.")}),Z(!1),_(""),!1},a1=async()=>{ad(!1),Z(!0),ab(null),_("Creating tunnel...");let a=!0;(async()=>{for(;a;){try{let b=await fetch("/api/tunnel/status");if(b.ok){let c=await b.json();c.download?.downloading?_(`Downloading cloudflared... ${c.download.progress}%`):a&&_("Creating tunnel...")}}catch{}await new Promise(a=>setTimeout(a,1e3))}})();try{let b=await fetch("/api/tunnel/enable",{method:"POST"});a=!1;let c=await b.json();if(!b.ok)return void ab({type:"error",message:c.error||"Failed to enable tunnel"});let d=c.tunnelUrl;if(!d)return void ab({type:"error",message:(0,q.Tl)("No tunnel URL returned")});V(d),X(c.publicUrl||""),await a0(c.publicUrl,d)}catch(a){ab({type:"error",message:a.message})}finally{a=!1,Z(!1),_("")}},a2=async()=>{Z(!0),ab(null);try{let a=await fetch("/api/tunnel/disable",{method:"POST"}),b=await a.json();a.ok?(R(!1),V(""),af(!1),ab({type:"success",message:(0,q.Tl)("Tunnel disabled")})):ab({type:"error",message:b.error||(0,q.Tl)("Failed to disable tunnel")})}catch(a){ab({type:"error",message:a.message})}finally{Z(!1)}},a3=async()=>{ax(null);try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok){let b=await a.json();return ax(b.installed),b}}catch{}return ax(!1),{installed:!1}},a4=async()=>{az(!0),ar(null),aB([]);try{let a=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:aC})});aD("");let b=a.body.getReader(),c=new TextDecoder,d="";for(;;){let{done:a,value:e}=await b.read();if(a)break;let f=(d+=c.decode(e,{stream:!0})).split("\n\n");for(let a of(d=f.pop()||"",f)){let b=a.split("\n"),c="progress",d=null;for(let a of b)if(a.startsWith("event: ")&&(c=a.slice(7).trim()),a.startsWith("data: "))try{d=JSON.parse(a.slice(6))}catch{}if(d)if("progress"===c)aB(a=>[...a.slice(-50),d.message]);else if("done"===c){ax(!0),az(!1),aH(!1),a8();return}else"error"===c&&ar({type:"error",message:d.error||(0,q.Tl)("Install failed")})}}}catch(a){ar({type:"error",message:a.message})}finally{az(!1)}},a5=async a=>{ap((0,q.Tl)("Waiting for Tailscale ready..."));let b=`${a}/api/health`,c=Date.now();for(;Date.now()-c<k.Cp;){await new Promise(a=>setTimeout(a,k.Hx));try{let a=await fetch(b,{mode:"no-cors",cache:"no-store"});if(a.ok||"opaque"===a.type)return!0}catch{}}return!1},a6=(a,b)=>{at(a),av(b)},a7=()=>{at(""),av("")},a8=async()=>{aH(!1),aF(!0),an(!0),ar(null),ap("Connecting..."),a7();try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){al(b.tunnelUrl||"");let a=await a5(b.tunnelUrl);ah(!0),ar(a?null:{type:"warning",message:(0,q.Tl)("Connected but not reachable yet.")});return}if(b.needsLogin&&b.authUrl){a6(b.authUrl,(0,q.Tl)("Open Login Page")),ap((0,q.Tl)('Login required — click "Open Login Page" to continue'));for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok&&(await a.json()).loggedIn){a7(),ap((0,q.Tl)("Starting funnel..."));let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){al(b.tunnelUrl||"");let a=await a5(b.tunnelUrl);ah(!0),ar(a?null:{type:"warning",message:(0,q.Tl)("Connected but not reachable yet.")})}else b.funnelNotEnabled&&b.enableUrl?await a9(b.enableUrl):ar({type:"error",message:b.error||(0,q.Tl)("Failed to start funnel")});return}}catch{}}a7(),ar({type:"error",message:(0,q.Tl)("Login timed out. Please try again.")});return}if(b.funnelNotEnabled&&b.enableUrl)return void await a9(b.enableUrl);ar({type:"error",message:b.error||(0,q.Tl)("Failed to connect")})}catch(a){ar({type:"error",message:a.message})}finally{an(!1),aF(!1),ap(""),a7()}},a9=async a=>{a6(a,(0,q.Tl)("Open Funnel Settings")),ap((0,q.Tl)('Click "Open Funnel Settings" to enable Funnel...'));for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){a7(),al(b.tunnelUrl||"");let a=await a5(b.tunnelUrl);ah(!0),ar(a?null:{type:"warning",message:(0,q.Tl)("Connected but not reachable yet.")});return}if(b.funnelNotEnabled)continue;if(b.error){a7(),ar({type:"error",message:b.error});return}}catch{}}a7(),ar({type:"error",message:(0,q.Tl)("Timed out waiting for Funnel to be enabled.")})},ba=async()=>{an(!0),ar(null);try{let a=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),b=await a.json();a.ok?(ah(!1),al(""),aJ(!1),ar({type:"success",message:(0,q.Tl)("Tailscale disabled")})):ar({type:"error",message:b.error||(0,q.Tl)("Failed to disable Tailscale")})}catch(a){ar({type:"error",message:a.message})}finally{an(!1)}},bb=async()=>{ar(null),aB([]);let a=await a3();a?.installed&&a?.hasCachedPassword?a8():aH(!0)},bc=async()=>{if(t.trim())try{let a=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t})}),b=await a.json();a.ok&&(w(b.key),await a_(),u(""),r(!1))}catch(a){console.log("Error creating key:",a)}},bd=async a=>{y({title:(0,q.Tl)("Delete API Key"),message:(0,q.Tl)("Delete this API key?"),onConfirm:async()=>{y(null);try{(await fetch(`/api/keys/${a}`,{method:"DELETE"})).ok&&(c(b.filter(b=>b.id!==a)),aQ(b=>{let c=new Set(b);return c.delete(a),c}))}catch(a){console.log("Error deleting key:",a)}}})},be=async(a,b)=>{try{(await fetch(`/api/keys/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&c(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error toggling key:",a)}},[bf,bg]=(0,f.useState)("/v1");return d?(0,e.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,e.jsx)(i.Qv,{}),(0,e.jsx)(i.Qv,{})]}):(0,e.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,e.jsxs)(i.Zp,{children:[(0,e.jsxs)("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-primary",children:"api"}),(0,q.Tl)("API Endpoint")]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(m.A,{label:(0,q.Tl)("Local"),url:bf,copyId:"local_url",copied:aT,onCopy:aU}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${Q?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),Q&&!Y&&S?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.pd,{value:`${W||U}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,e.jsx)("button",{onClick:()=>aU(`${W||U}/v1`,"tunnel_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===aT?"check":"content_copy"})}),(0,e.jsx)("button",{onClick:()=>af(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Disable Tunnel"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!Q||Y||S?Y?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-surface text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),$||(0,q.Tl)("Creating tunnel...")]}),(0,e.jsx)("button",{onClick:()=>{Z(!1),_("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Stop"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):aa?.type==="error"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),aa.message]}),(0,e.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>ad(!0),children:(0,q.Tl)("Enable")})]}):O?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-surface text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,e.jsx)("button",{onClick:()=>P(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Stop"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,e.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>{aV?ab({type:"error",message:`${(0,q.Tl)("Security required")}: ${aW}`}):z?ad(!0):ab({type:"error",message:(0,q.Tl)('Security required: Enable "Require API key" before activating the tunnel.')})},children:(0,q.Tl)("Enable")}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aL?(0,q.Tl)("Tunnel reconnecting..."):(0,q.Tl)("Tunnel checking...")]}),(0,e.jsx)("button",{onClick:()=>af(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Disable Tunnel"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${ag?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),ag&&!am&&ai?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.pd,{value:`${ak}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,e.jsx)("button",{onClick:()=>aU(`${ak}/v1`,"ts_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===aT?"check":"content_copy"})}),(0,e.jsx)("button",{onClick:()=>aJ(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Disable Tailscale"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!ag||am||ai?am||aE?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-surface text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),ao||(0,q.Tl)("Connecting...")]}),as&&(0,e.jsx)(i.$n,{size:"sm",icon:"open_in_new",onClick:()=>window.open(as,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:au||(0,q.Tl)("Open")}),(0,e.jsx)("button",{onClick:()=>{an(!1),aF(!1),ap(""),a7()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Stop"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):aq?.type==="error"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),aq.message]}),(0,e.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:bb,children:(0,q.Tl)("Enable")})]}):(0,e.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:()=>{aV?ar({type:"error",message:`${(0,q.Tl)("Security required")}: ${aW}`}):bb()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:(0,q.Tl)("Enable")}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aN?(0,q.Tl)("Tailscale reconnecting..."):(0,q.Tl)("Tailscale checking...")]}),(0,e.jsx)("button",{onClick:()=>aJ(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Disable Tailscale"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),aV&&!Q&&!ag&&(0,e.jsx)("div",{className:"mt-4",children:(0,e.jsx)(p.A,{message:aW,action:{label:(0,q.Tl)("Open settings"),href:"/dashboard/profile"}})}),(Q||ag)&&(0,e.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!z&&(0,e.jsx)(p.A,{message:(0,q.Tl)("Require API key is disabled — your endpoint is publicly accessible without authentication."),action:{label:(0,q.Tl)("Enable"),href:"#require-api-key"}}),(!I||!K)&&(0,e.jsx)(p.A,{message:I?(0,q.Tl)("No dashboard password is set — set one on the Settings page."):(0,q.Tl)("Require login is disabled — anyone can access your dashboard via tunnel."),action:{label:I?(0,q.Tl)("Change password"):(0,q.Tl)("Enable"),href:"/dashboard/profile"}})]}),(Q||ag)&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,e.jsx)(i.lM,{checked:M,onChange:()=>aX(!M)}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("p",{className:"font-medium text-sm",children:(0,q.Tl)("Allow dashboard access via tunnel")}),(0,e.jsx)(o.A,{text:(0,q.Tl)("When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked.")})]})]})]}),(0,e.jsxs)(i.Zp,{id:"require-api-key",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,e.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-primary",children:"vpn_key"}),(0,q.Tl)("API Keys")]}),(0,e.jsx)(i.$n,{icon:"add",onClick:()=>r(!0),children:(0,q.Tl)("Create Key")})]}),(0,e.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-medium",children:(0,q.Tl)("Require API key")}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:(0,q.Tl)("Requests without a valid key will be rejected")})]}),(0,e.jsx)(i.lM,{checked:z,onChange:a=>{a?aY(!0):y({title:(0,q.Tl)("Disable API key requirement?"),message:(0,q.Tl)("Requests without a valid key will be accepted while this is off. You can re-enable it at any time."),onConfirm:()=>aY(!1)})}})]}),aR&&!z&&(0,e.jsx)("div",{className:"mb-4 -mt-2",children:(0,e.jsx)(p.A,{message:(0,q.Tl)("Endpoint is exposed without an API key.")})}),(0,e.jsxs)("div",{className:"flex items-center justify-between py-4 mb-4 border-b border-border gap-3",children:[(0,e.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("p",{className:"font-medium flex items-center gap-2",children:[(0,q.Tl)("Key secret rotation"),(0,e.jsx)("span",{className:"text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded bg-amber-500/10 text-amber-600 dark:text-amber-400",children:(0,q.Tl)("Experimental")})]}),(0,e.jsx)("p",{className:"text-sm text-text-muted truncate",children:(0,q.Tl)("Sign new keys with an auto-generated secret instead of the built-in one")})]}),(0,e.jsx)(o.A,{text:(0,q.Tl)("When enabled, the HMAC secret used for API key CRC is auto-generated to the data directory (api-key-secret, mode 0600) — or set API_KEY_SECRET to pin your own (env always wins). Existing keys keep working only if they were issued under the same secret; enabling invalidates previously issued keys, and Re-issue all keys re-creates every stored key under the current secret so clients can be updated in one step.")})]}),(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[B&&(0,e.jsx)(i.$n,{size:"xs",onClick:()=>y({title:(0,q.Tl)("Re-issue all API keys?"),message:(0,q.Tl)("Every existing key will be replaced with a new one signed under the current secret. All clients using old keys will stop working until updated. This cannot be undone."),onConfirm:a$}),disabled:D,children:D?(0,q.Tl)("Rotating…"):(0,q.Tl)("Rotate all")}),(0,e.jsx)(i.lM,{checked:B,onChange:a=>{a?y({title:(0,q.Tl)("Enable key secret rotation?"),message:(0,q.Tl)("New keys will be signed with an auto-generated secret. Keys issued BEFORE enabling will stop validating and cannot be restored — re-create them and update every client. This cannot be undone silently."),onConfirm:()=>aZ(!0)}):y({title:(0,q.Tl)("Disable key secret rotation?"),message:(0,q.Tl)("New keys will be signed with the built-in secret again. Keys issued while rotation was enabled will stop validating — re-create them and update every client."),onConfirm:()=>aZ(!1)})}})]})]}),0===b.length?(0,e.jsxs)("div",{className:"text-center py-12",children:[(0,e.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,e.jsx)("p",{className:"text-text-main font-medium mb-1",children:(0,q.Tl)("No API keys yet")}),(0,e.jsx)("p",{className:"text-sm text-text-muted mb-4",children:(0,q.Tl)("Create your first API key to get started")}),(0,e.jsx)(i.$n,{icon:"add",onClick:()=>r(!0),children:(0,q.Tl)("Create Key")})]}):(0,e.jsx)("div",{className:"flex flex-col",children:b.map(a=>{var b;return(0,e.jsxs)("div",{className:`group flex items-center justify-between py-3 border-b border-black/[0.03] dark:border-white/[0.03] last:border-b-0 ${!1===a.isActive?"opacity-60":""}`,children:[(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm font-medium",children:a.name}),(0,e.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,e.jsx)("code",{className:"text-xs text-text-muted font-mono",children:aP.has(a.id)?a.key:(b=a.key)&&!(b.length<=10)?b.slice(0,6)+"•".repeat(b.length-10)+b.slice(-4):b||""}),(0,e.jsx)("button",{onClick:()=>{var b;return b=a.id,void aQ(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-all",title:aP.has(a.id)?(0,q.Tl)("Hide key"):(0,q.Tl)("Show key"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aP.has(a.id)?"visibility_off":"visibility"})}),(0,e.jsx)("button",{onClick:()=>aU(a.key,a.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-all",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aT===a.id?"check":"content_copy"})})]}),(0,e.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:[(0,q.Tl)("Created")," ",new Date(a.createdAt).toLocaleDateString()]}),!1===a.isActive&&(0,e.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:(0,q.Tl)("Paused")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)(i.lM,{size:"sm",checked:a.isActive??!0,onChange:b=>{a.isActive&&!b?y({title:(0,q.Tl)("Pause API Key"),message:`${(0,q.Tl)("Pause API key")} "${a.name}"?
|
|
1
|
+
exports.id=7322,exports.ids=[7322],exports.modules={3341:(a,b,c)=>{"use strict";c.d(b,{Y:()=>f,Z:()=>e});var d=c(67960);async function e(a){if(!a)return!1;try{return(await fetch(`${a}/api/health`,{mode:"cors",cache:"no-store",signal:AbortSignal.timeout(d.Iv)})).ok}catch{return!1}}async function f(...a){let b=a.filter(Boolean).map(e);return!!b.length&&new Promise(a=>{let c=b.length;b.forEach(b=>b.then(b=>{b?a(!0):0==--c&&a(!1)}))})}},3633:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(48249);function e({message:a,action:b}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-xs flex-1",children:a}),b&&(0,d.jsx)("a",{href:b.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:b.href.startsWith("#")?a=>{a.preventDefault(),document.getElementById(b.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:b.label})]})}},8127:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(48249);function e({status:a,className:b=""}){return(0,d.jsx)("div",{className:`p-2 rounded text-sm ${b} ${"success"===a.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===a.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:a.message.split(/(https?:\/\/[^\s]+)/g).map((a,b)=>/^https?:\/\//.test(a)?(0,d.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:a},b):a)})}},43173:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{default:()=>u});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(94579),j=c(50377),k=c(67960);c(3341);var l=c(91937),m=c(80392),n=c(8127),o=c(78420),p=c(3633),q=c(99258),r=a([i,m]);function s(a){return a>=1e9?`${(a/1e9).toFixed(1)}B`:a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(1)}K`:String(a)}function t(a){if(!a||"string"!=typeof a)return a;let b=/^(.*?)((?:\s*\(rotated\))*)$/.exec(a),c=(0,q.Tl)(b[1]),d=(b[2].match(/\(rotated\)/g)||[]).length;return d?`${c} ${Array.from({length:d},()=>(0,q.Tl)("(rotated)")).join(" ")}`:c}function u({machineId:a}){let[b,c]=(0,f.useState)([]),[d,g]=(0,f.useState)(!0),[h,r]=(0,f.useState)(!1),[v,w]=(0,f.useState)(""),[x,y]=(0,f.useState)(""),[z,A]=(0,f.useState)(null),[B,C]=(0,f.useState)(""),[D,E]=(0,f.useState)(!1),[F,G]=(0,f.useState)(null),[H,I]=(0,f.useState)(null),[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)(!0),[N,O]=(0,f.useState)(!1),[P,Q]=(0,f.useState)(!1),R=(0,f.useRef)(!1),[S,T]=(0,f.useState)(null),[U,V]=(0,f.useState)(!0),[W,X]=(0,f.useState)(!0),[Y,Z]=(0,f.useState)(!1),[$,_]=(0,f.useState)(!0),[aa,ab]=(0,f.useState)(!1),[ac,ad]=(0,f.useState)(!1),[ae,af]=(0,f.useState)(""),[ag,ah]=(0,f.useState)(""),[ai,aj]=(0,f.useState)(!1),[ak,al]=(0,f.useState)(""),[am,an]=(0,f.useState)(null),[ao,ap]=(0,f.useState)(!1),[aq,ar]=(0,f.useState)(!1),[as,at]=(0,f.useState)(!1),[au,av]=(0,f.useState)(!1),[aw,ax]=(0,f.useState)(""),[ay,az]=(0,f.useState)(!1),[aA,aB]=(0,f.useState)(""),[aC,aD]=(0,f.useState)(null),[aE,aF]=(0,f.useState)(""),[aG,aH]=(0,f.useState)(""),[aI,aJ]=(0,f.useState)(null),[aK,aL]=(0,f.useState)(!1),[aM,aN]=(0,f.useState)([]),[aO,aP]=(0,f.useState)(""),[aQ,aR]=(0,f.useState)(!1),[aS,aT]=(0,f.useState)(!1),[aU,aV]=(0,f.useState)(!1),aW=(0,f.useRef)(null);(0,f.useRef)(0),(0,f.useRef)(0),(0,f.useRef)(!1),(0,f.useRef)(!1),(0,f.useRef)(!1),(0,f.useRef)(!1);let[aX,aY]=(0,f.useState)(!1),[aZ,a$]=(0,f.useState)(!1),[a_,a0]=(0,f.useState)(new Set),[a1,a2]=(0,f.useState)(!1),{copied:a3,copy:a4}=(0,j.C)(),a5=!U||!W,a6=U?"Set a dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,f.useCallback)((a,b,c,d,e,f)=>{b.current?(c.current=0,d(!0),e.current||(e.current=!0,f(!0))):(c.current+=1,c.current>=k.t6&&d(!1))},[]);let a7=async a=>{try{await l.A.getState().patchSettings({tunnelDashboardAccess:a})&&Z(a)}catch(a){console.log("Error updating tunnelDashboardAccess:",a)}},a8=async a=>{try{await l.A.getState().patchSettings({requireApiKey:a})&&K(a)}catch(a){console.log("Error updating requireApiKey:",a)}},a9=async a=>{try{await l.A.getState().patchSettings({dailyTokenLimitEnabled:a})&&M(a)}catch(a){console.log("Error updating dailyTokenLimitEnabled:",a)}},ba=async a=>{try{let b=await l.A.getState().patchSettings({apiKeyRotation:a});return b&&O(a),!!b}catch(a){return console.log("Error updating apiKeyRotation:",a),!1}},bb=async()=>{if(!R.current){R.current=!0,I(null),Q(!0);try{let a=await fetch("/api/keys/rotate",{method:"POST"});if(a.ok){let b=await a.json(),d=await fetch("/api/keys");if(d.ok){let a=await d.json();c(a.keys||[])}T(b)}}catch(a){console.log("Error rotating keys:",a)}finally{Q(!1),R.current=!1}}},bc=async()=>{try{let a=async()=>{let a=await fetch("/api/keys");return a.ok&&(await a.json()).keys||[]},b=await a();if(0===b.length)try{(await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"Default Key"})})).ok&&(b=await a())}catch{}c(b)}catch(a){console.log("Error fetching data:",a)}finally{g(!1)}},bd=async(...a)=>{aj(!0),al("Waiting for tunnel ready...");let b=a.filter(Boolean).map(a=>`${a}/api/health`),c=Date.now();for(;Date.now()-c<k.Cp;){if(await new Promise(a=>setTimeout(a,k.Hx)),await Promise.any(b.map(async a=>{if((await fetch(a,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return ab(!0),aj(!1),al(""),!0;if((Date.now()-c)%1e4<k.Hx)try{let a=await fetch("/api/tunnel/status");if(a.ok){let b=await a.json();if(!b.tunnel?.enabled)return an({type:"error",message:(0,q.Tl)("Tunnel process stopped unexpectedly.")}),aj(!1),al(""),!1}}catch{}}return an({type:"error",message:(0,q.Tl)("Tunnel created but not reachable. Please try again.")}),aj(!1),al(""),!1},be=async()=>{ap(!1),aj(!0),an(null),al("Creating tunnel...");let a=!0;(async()=>{for(;a;){try{let b=await fetch("/api/tunnel/status");if(b.ok){let c=await b.json();c.download?.downloading?al(`Downloading cloudflared... ${c.download.progress}%`):a&&al("Creating tunnel...")}}catch{}await new Promise(a=>setTimeout(a,1e3))}})();try{let b=await fetch("/api/tunnel/enable",{method:"POST"});a=!1;let c=await b.json();if(!b.ok)return void an({type:"error",message:c.error||"Failed to enable tunnel"});let d=c.tunnelUrl;if(!d)return void an({type:"error",message:(0,q.Tl)("No tunnel URL returned")});af(d),ah(c.publicUrl||""),await bd(c.publicUrl,d)}catch(a){an({type:"error",message:a.message})}finally{a=!1,aj(!1),al("")}},bf=async()=>{aj(!0),an(null);try{let a=await fetch("/api/tunnel/disable",{method:"POST"}),b=await a.json();a.ok?(ab(!1),af(""),ar(!1),an({type:"success",message:(0,q.Tl)("Tunnel disabled")})):an({type:"error",message:b.error||(0,q.Tl)("Failed to disable tunnel")})}catch(a){an({type:"error",message:a.message})}finally{aj(!1)}},bg=async()=>{aJ(null);try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok){let b=await a.json();return aJ(b.installed),b}}catch{}return aJ(!1),{installed:!1}},bh=async()=>{aL(!0),aD(null),aN([]);try{let a=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:aO})});aP("");let b=a.body.getReader(),c=new TextDecoder,d="";for(;;){let{done:a,value:e}=await b.read();if(a)break;let f=(d+=c.decode(e,{stream:!0})).split("\n\n");for(let a of(d=f.pop()||"",f)){let b=a.split("\n"),c="progress",d=null;for(let a of b)if(a.startsWith("event: ")&&(c=a.slice(7).trim()),a.startsWith("data: "))try{d=JSON.parse(a.slice(6))}catch{}if(d)if("progress"===c)aN(a=>[...a.slice(-50),d.message]);else if("done"===c){aJ(!0),aL(!1),aT(!1),bl();return}else"error"===c&&aD({type:"error",message:d.error||(0,q.Tl)("Install failed")})}}}catch(a){aD({type:"error",message:a.message})}finally{aL(!1)}},bi=async a=>{aB((0,q.Tl)("Waiting for Tailscale ready..."));let b=`${a}/api/health`,c=Date.now();for(;Date.now()-c<k.Cp;){await new Promise(a=>setTimeout(a,k.Hx));try{let a=await fetch(b,{mode:"no-cors",cache:"no-store"});if(a.ok||"opaque"===a.type)return!0}catch{}}return!1},bj=(a,b)=>{aF(a),aH(b)},bk=()=>{aF(""),aH("")},bl=async()=>{aT(!1),aR(!0),az(!0),aD(null),aB("Connecting..."),bk();try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){ax(b.tunnelUrl||"");let a=await bi(b.tunnelUrl);at(!0),aD(a?null:{type:"warning",message:(0,q.Tl)("Connected but not reachable yet.")});return}if(b.needsLogin&&b.authUrl){bj(b.authUrl,(0,q.Tl)("Open Login Page")),aB((0,q.Tl)('Login required — click "Open Login Page" to continue'));for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok&&(await a.json()).loggedIn){bk(),aB((0,q.Tl)("Starting funnel..."));let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){ax(b.tunnelUrl||"");let a=await bi(b.tunnelUrl);at(!0),aD(a?null:{type:"warning",message:(0,q.Tl)("Connected but not reachable yet.")})}else b.funnelNotEnabled&&b.enableUrl?await bm(b.enableUrl):aD({type:"error",message:b.error||(0,q.Tl)("Failed to start funnel")});return}}catch{}}bk(),aD({type:"error",message:(0,q.Tl)("Login timed out. Please try again.")});return}if(b.funnelNotEnabled&&b.enableUrl)return void await bm(b.enableUrl);aD({type:"error",message:b.error||(0,q.Tl)("Failed to connect")})}catch(a){aD({type:"error",message:a.message})}finally{az(!1),aR(!1),aB(""),bk()}},bm=async a=>{bj(a,(0,q.Tl)("Open Funnel Settings")),aB((0,q.Tl)('Click "Open Funnel Settings" to enable Funnel...'));for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){bk(),ax(b.tunnelUrl||"");let a=await bi(b.tunnelUrl);at(!0),aD(a?null:{type:"warning",message:(0,q.Tl)("Connected but not reachable yet.")});return}if(b.funnelNotEnabled)continue;if(b.error){bk(),aD({type:"error",message:b.error});return}}catch{}}bk(),aD({type:"error",message:(0,q.Tl)("Timed out waiting for Funnel to be enabled.")})},bn=async()=>{az(!0),aD(null);try{let a=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),b=await a.json();a.ok?(at(!1),ax(""),aV(!1),aD({type:"success",message:(0,q.Tl)("Tailscale disabled")})):aD({type:"error",message:b.error||(0,q.Tl)("Failed to disable Tailscale")})}catch(a){aD({type:"error",message:a.message})}finally{az(!1)}},bo=async()=>{aD(null),aN([]);let a=await bg();a?.installed&&a?.hasCachedPassword?bl():aT(!0)},bp=async()=>{if(v.trim())try{let a=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:v.trim(),dailyTokenLimit:x.trim()?Number(x.trim()):void 0})}),b=await a.json();a.ok&&(G(b.key),await bc(),w(""),y(""),r(!1))}catch(a){console.log("Error creating key:",a)}},bq=async()=>{if(z){E(!0);try{(await fetch(`/api/keys/${z.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({dailyTokenLimit:B.trim()?Number(B.trim()):null})})).ok&&(A(null),await bc())}catch(a){console.log("Error saving daily limit:",a)}finally{E(!1)}}},br=async a=>{I({title:(0,q.Tl)("Delete API Key"),message:(0,q.Tl)("Delete this API key?"),onConfirm:async()=>{I(null);try{(await fetch(`/api/keys/${a}`,{method:"DELETE"})).ok&&(c(b.filter(b=>b.id!==a)),a0(b=>{let c=new Set(b);return c.delete(a),c}))}catch(a){console.log("Error deleting key:",a)}}})},bs=async(a,b)=>{try{(await fetch(`/api/keys/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&c(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error toggling key:",a)}},[bt,bu]=(0,f.useState)("/v1");return d?(0,e.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,e.jsx)(i.Qv,{}),(0,e.jsx)(i.Qv,{})]}):(0,e.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,e.jsxs)(i.Zp,{children:[(0,e.jsxs)("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-primary",children:"api"}),(0,q.Tl)("API Endpoint")]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(m.A,{label:(0,q.Tl)("Local"),url:bt,copyId:"local_url",copied:a3,onCopy:a4}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${aa?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),aa&&!ai&&ac?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.pd,{value:`${ag||ae}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,e.jsx)("button",{onClick:()=>a4(`${ag||ae}/v1`,"tunnel_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===a3?"check":"content_copy"})}),(0,e.jsx)("button",{onClick:()=>ar(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Disable Tunnel"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!aa||ai||ac?ai?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-surface text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),ak||(0,q.Tl)("Creating tunnel...")]}),(0,e.jsx)("button",{onClick:()=>{aj(!1),al("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Stop"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):am?.type==="error"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),am.message]}),(0,e.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>ap(!0),children:(0,q.Tl)("Enable")})]}):$?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-surface text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,e.jsx)("button",{onClick:()=>_(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Stop"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,e.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>{a5?an({type:"error",message:`${(0,q.Tl)("Security required")}: ${a6}`}):J?ap(!0):an({type:"error",message:(0,q.Tl)('Security required: Enable "Require API key" before activating the tunnel.')})},children:(0,q.Tl)("Enable")}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aX?(0,q.Tl)("Tunnel reconnecting..."):(0,q.Tl)("Tunnel checking...")]}),(0,e.jsx)("button",{onClick:()=>ar(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Disable Tunnel"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${as?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),as&&!ay&&au?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.pd,{value:`${aw}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,e.jsx)("button",{onClick:()=>a4(`${aw}/v1`,"ts_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===a3?"check":"content_copy"})}),(0,e.jsx)("button",{onClick:()=>aV(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Disable Tailscale"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!as||ay||au?ay||aQ?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-surface text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aA||(0,q.Tl)("Connecting...")]}),aE&&(0,e.jsx)(i.$n,{size:"sm",icon:"open_in_new",onClick:()=>window.open(aE,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:aG||(0,q.Tl)("Open")}),(0,e.jsx)("button",{onClick:()=>{az(!1),aR(!1),aB(""),bk()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Stop"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):aC?.type==="error"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),aC.message]}),(0,e.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:bo,children:(0,q.Tl)("Enable")})]}):(0,e.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:()=>{a5?aD({type:"error",message:`${(0,q.Tl)("Security required")}: ${a6}`}):bo()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:(0,q.Tl)("Enable")}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aZ?(0,q.Tl)("Tailscale reconnecting..."):(0,q.Tl)("Tailscale checking...")]}),(0,e.jsx)("button",{onClick:()=>aV(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:(0,q.Tl)("Disable Tailscale"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),a5&&!aa&&!as&&(0,e.jsx)("div",{className:"mt-4",children:(0,e.jsx)(p.A,{message:a6,action:{label:(0,q.Tl)("Open settings"),href:"/dashboard/profile"}})}),(aa||as)&&(0,e.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!J&&(0,e.jsx)(p.A,{message:(0,q.Tl)("Require API key is disabled — your endpoint is publicly accessible without authentication."),action:{label:(0,q.Tl)("Enable"),href:"#require-api-key"}}),(!U||!W)&&(0,e.jsx)(p.A,{message:U?(0,q.Tl)("No dashboard password is set — set one on the Settings page."):(0,q.Tl)("Require login is disabled — anyone can access your dashboard via tunnel."),action:{label:U?(0,q.Tl)("Change password"):(0,q.Tl)("Enable"),href:"/dashboard/profile"}})]}),(aa||as)&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,e.jsx)(i.lM,{checked:Y,onChange:()=>a7(!Y)}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("p",{className:"font-medium text-sm",children:(0,q.Tl)("Allow dashboard access via tunnel")}),(0,e.jsx)(o.A,{text:(0,q.Tl)("When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked.")})]})]})]}),(0,e.jsxs)(i.Zp,{id:"require-api-key",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,e.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-primary",children:"vpn_key"}),(0,q.Tl)("API Keys")]}),(0,e.jsx)(i.$n,{icon:"add",onClick:()=>r(!0),children:(0,q.Tl)("Create Key")})]}),(0,e.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-medium",children:(0,q.Tl)("Require API key")}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:(0,q.Tl)("Requests without a valid key will be rejected")})]}),(0,e.jsx)(i.lM,{checked:J,onChange:a=>{a?a8(!0):I({title:(0,q.Tl)("Disable API key requirement?"),message:(0,q.Tl)("Requests without a valid key will be accepted while this is off. You can re-enable it at any time."),onConfirm:()=>a8(!1)})}})]}),a1&&!J&&(0,e.jsx)("div",{className:"mb-4 -mt-2",children:(0,e.jsx)(p.A,{message:(0,q.Tl)("Endpoint is exposed without an API key.")})}),(0,e.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-medium",children:(0,q.Tl)("Daily token limits")}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:(0,q.Tl)("Master switch for the per-key daily token caps. Turning this off stops enforcement but keeps every key's configured limit.")})]}),(0,e.jsx)(i.lM,{checked:L,onChange:a9})]}),(0,e.jsxs)("div",{className:"flex items-center justify-between py-4 mb-4 border-b border-border gap-3",children:[(0,e.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("p",{className:"font-medium flex items-center gap-2",children:[(0,q.Tl)("Key secret rotation"),(0,e.jsx)("span",{className:"text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded bg-amber-500/10 text-amber-600 dark:text-amber-400",children:(0,q.Tl)("Experimental")})]}),(0,e.jsx)("p",{className:"text-sm text-text-muted truncate",children:(0,q.Tl)("Sign new keys with an auto-generated secret instead of the built-in one")})]}),(0,e.jsx)(o.A,{text:(0,q.Tl)("When enabled, the HMAC secret used for API key CRC is auto-generated to the data directory (api-key-secret, mode 0600) — or set API_KEY_SECRET to pin your own (env always wins). Existing keys keep working only if they were issued under the same secret; enabling invalidates previously issued keys, and Re-issue all keys re-creates every stored key under the current secret so clients can be updated in one step.")})]}),(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[N&&(0,e.jsx)(i.$n,{size:"xs",onClick:()=>I({title:(0,q.Tl)("Re-issue all API keys?"),message:(0,q.Tl)("Every existing key will be replaced with a new one signed under the current secret. All clients using old keys will stop working until updated. This cannot be undone."),onConfirm:bb}),disabled:P,children:P?(0,q.Tl)("Rotating…"):(0,q.Tl)("Rotate all")}),(0,e.jsx)(i.lM,{checked:N,onChange:a=>{a?I({title:(0,q.Tl)("Enable key secret rotation?"),message:(0,q.Tl)("New keys will be signed with an auto-generated secret. Keys issued BEFORE enabling will stop validating and cannot be restored — re-create them and update every client. This cannot be undone silently."),onConfirm:()=>ba(!0)}):I({title:(0,q.Tl)("Disable key secret rotation?"),message:(0,q.Tl)("New keys will be signed with the built-in secret again. Keys issued while rotation was enabled will stop validating — re-create them and update every client."),onConfirm:()=>ba(!1)})}})]})]}),0===b.length?(0,e.jsxs)("div",{className:"text-center py-12",children:[(0,e.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,e.jsx)("p",{className:"text-text-main font-medium mb-1",children:(0,q.Tl)("No API keys yet")}),(0,e.jsx)("p",{className:"text-sm text-text-muted mb-4",children:(0,q.Tl)("Create your first API key to get started")}),(0,e.jsx)(i.$n,{icon:"add",onClick:()=>r(!0),children:(0,q.Tl)("Create Key")})]}):(0,e.jsx)("div",{className:"flex flex-col",children:b.map(a=>{var b;return(0,e.jsxs)("div",{className:`group flex items-center justify-between py-3 border-b border-black/[0.03] dark:border-white/[0.03] last:border-b-0 ${!1===a.isActive?"opacity-60":""}`,children:[(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm font-medium",children:t(a.name)}),(0,e.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,e.jsx)("code",{className:"text-xs text-text-muted font-mono",children:a_.has(a.id)?a.key:(b=a.key)&&!(b.length<=10)?b.slice(0,6)+"•".repeat(b.length-10)+b.slice(-4):b||""}),(0,e.jsx)("button",{onClick:()=>{var b;return b=a.id,void a0(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-all",title:a_.has(a.id)?(0,q.Tl)("Hide key"):(0,q.Tl)("Show key"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:a_.has(a.id)?"visibility_off":"visibility"})}),(0,e.jsx)("button",{onClick:()=>a4(a.key,a.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-all",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:a3===a.id?"check":"content_copy"})})]}),(0,e.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:[(0,q.Tl)("Created")," ",new Date(a.createdAt).toLocaleDateString()]}),a.dailyTokenLimit?(0,e.jsxs)("p",{className:`text-xs mt-1 ${(a.todayTokens||0)>=a.dailyTokenLimit?"text-red-500":"text-text-muted"}`,children:[(0,q.Tl)("Today"),": ",s(a.todayTokens||0)," / ",s(a.dailyTokenLimit)," ",(0,q.Tl)("tokens"),(a.todayTokens||0)>=a.dailyTokenLimit?` — ${(0,q.Tl)("Limit reached")}`:""]}):null,!1===a.isActive&&(0,e.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:(0,q.Tl)("Paused")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("button",{onClick:()=>{A(a),C(a.dailyTokenLimit?String(a.dailyTokenLimit):"")},className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-all",title:(0,q.Tl)("Edit Daily Token Limit"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:a.dailyTokenLimit?"edit_calendar":"calendar_month"})}),(0,e.jsx)(i.lM,{size:"sm",checked:a.isActive??!0,onChange:b=>{a.isActive&&!b?I({title:(0,q.Tl)("Pause API Key"),message:`${(0,q.Tl)("Pause API key")} "${a.name}"?
|
|
2
2
|
|
|
3
|
-
${(0,q.Tl)("This key will stop working immediately but can be resumed later.")}`,onConfirm:async()=>{y(null),be(a.id,b)}}):be(a.id,b)},title:a.isActive?(0,q.Tl)("Pause key"):(0,q.Tl)("Resume key")}),(0,e.jsx)("button",{onClick:()=>bd(a.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},a.id)})})]}),(0,e.jsx)(i.aF,{isOpen:h,title:(0,q.Tl)("Create API Key"),onClose:()=>{r(!1),u("")},children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)(i.pd,{label:(0,q.Tl)("Key Name"),value:t,onChange:a=>u(a.target.value),placeholder:(0,q.Tl)("Production Key")}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:bc,fullWidth:!0,disabled:!t.trim(),children:(0,q.Tl)("Create")}),(0,e.jsx)(i.$n,{onClick:()=>{r(!1),u("")},variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.aF,{isOpen:!!G,title:(0,q.Tl)("Keys Re-issued"),onClose:()=>H(null),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,e.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:(0,q.Tl)("Save these keys now — shown only once")}),(0,e.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:(0,q.Tl)("Old keys no longer work. Update every client with the new values below.")})]}),(0,e.jsx)("div",{className:"flex flex-col gap-2 max-h-72 overflow-y-auto",children:(G?.rotated||[]).map(a=>(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-xs font-medium text-text-muted",children:a.name}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{value:a.key,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,e.jsx)(i.$n,{variant:"secondary",icon:aT===`rot_${a.id}`?"check":"content_copy",onClick:()=>aU(a.key,`rot_${a.id}`),children:aT===`rot_${a.id}`?"Copied!":"Copy"})]})]},a.id))}),(0,e.jsx)(i.$n,{onClick:()=>H(null),fullWidth:!0,children:(0,q.Tl)("Done")})]})}),(0,e.jsx)(i.aF,{isOpen:!!v,title:(0,q.Tl)("API Key Created"),onClose:()=>w(null),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,e.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:(0,q.Tl)("Save this key now!")}),(0,e.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:(0,q.Tl)("This is the only time you will see this key. Store it securely.")})]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{value:v||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,e.jsx)(i.$n,{variant:"secondary",icon:"created_key"===aT?"check":"content_copy",onClick:()=>aU(v,"created_key"),children:"created_key"===aT?(0,q.Tl)("Copied!"):(0,q.Tl)("Copy")})]}),(0,e.jsx)(i.$n,{onClick:()=>w(null),fullWidth:!0,children:(0,q.Tl)("Done")})]})}),(0,e.jsx)(i.aF,{isOpen:ac,title:(0,q.Tl)("Enable Tunnel"),onClose:()=>ad(!1),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,e.jsxs)("div",{className:"flex items-start gap-3",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:(0,q.Tl)("Cloudflare Tunnel")}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:(0,q.Tl)("Expose your local 10Router to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere.")})]})]})}),(0,e.jsx)("div",{className:"grid grid-cols-2 gap-3",children:k.oX.map(a=>(0,e.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:a.icon}),(0,e.jsx)("p",{className:"text-xs font-semibold",children:a.title}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:a.desc})]},a.title))}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:(0,q.Tl)("Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s.")}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:a1,fullWidth:!0,children:(0,q.Tl)("Start Tunnel")}),(0,e.jsx)(i.$n,{onClick:()=>ad(!1),variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.aF,{isOpen:ae,title:(0,q.Tl)("Disable Tunnel"),onClose:()=>!Y&&af(!1),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)("p",{className:"text-sm text-text-muted",children:(0,q.Tl)("The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working.")}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:a2,fullWidth:!0,disabled:Y,variant:"danger",children:Y?"Disabling...":"Disable"}),(0,e.jsx)(i.$n,{onClick:()=>af(!1),variant:"ghost",fullWidth:!0,disabled:Y,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.aF,{isOpen:aG,title:(0,q.Tl)("Tailscale Funnel"),onClose:()=>{ay||(aH(!1),aD(""),ar(null))},children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[null===aw&&(0,e.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),(0,q.Tl)("Checking...")]}),!1===aw&&!ay&&(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:a4,fullWidth:!0,children:(0,q.Tl)("Install Tailscale")}),(0,e.jsx)(i.$n,{onClick:()=>aH(!1),variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]}),ay&&(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),aA.length>0&&(0,e.jsx)("div",{ref:aK,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:aA.map((a,b)=>(0,e.jsx)("div",{children:a},b))})]}),!0===aw&&!ay&&(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:()=>a8(),fullWidth:!0,children:(0,q.Tl)("Connect")}),(0,e.jsx)(i.$n,{onClick:()=>aH(!1),variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]}),aq&&(0,e.jsx)(n.A,{status:aq})]})}),(0,e.jsx)(i.aF,{isOpen:aI,title:(0,q.Tl)("Disable Tailscale"),onClose:()=>!am&&aJ(!1),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:ba,fullWidth:!0,disabled:am,variant:"danger",children:am?"Disabling...":"Disable"}),(0,e.jsx)(i.$n,{onClick:()=>aJ(!1),variant:"ghost",fullWidth:!0,disabled:am,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.uo,{isOpen:!!x,onClose:()=>y(null),onConfirm:()=>{let a=x?.onConfirm;y(null),a?.()},title:x?.title||"Confirm",message:x?.message,variant:"danger"})]})}[i,m]=r.then?(await r)():r,s.propTypes={machineId:h().string.isRequired},d()}catch(a){d(a)}})},51747:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\endpoint\\\\EndpointPageClient.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\endpoint\\EndpointPageClient.js","default")},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.nJ,"machine-id"),m=h().join(k.nJ,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.nJ,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},61389:(a,b,c)=>{Promise.resolve().then(c.bind(c,51747))},67960:(a,b,c)=>{"use strict";c.d(b,{Cp:()=>g,Hx:()=>f,Iv:()=>k,Nv:()=>m,RL:()=>j,ev:()=>l,fl:()=>h,hT:()=>d,oX:()=>e,t6:()=>i});let d=["zh-CN","zh-TW"],e=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],f=2e3,g=3e5,h=5e3,i=5,j=1e4,k=5e3,l=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],m=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},78420:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(48249);function e({text:a}){return(0,d.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,d.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:a})]})}},80392:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>h});var e=c(48249),f=c(94579),g=a([f]);function h({label:a,url:b,copyId:c,copied:d,onCopy:g,badge:i,actions:j}){return(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===i||"TS"===i?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:a}),(0,e.jsx)(f.pd,{value:b,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,e.jsx)("button",{onClick:()=>g(b,c),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:d===c?"check":"content_copy"})}),j]})}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},85357:(a,b,c)=>{Promise.resolve().then(c.bind(c,43173))},87250:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(54603);async function e(){return await (0,d.Xj)()}}};
|
|
3
|
+
${(0,q.Tl)("This key will stop working immediately but can be resumed later.")}`,onConfirm:async()=>{I(null),bs(a.id,b)}}):bs(a.id,b)},title:a.isActive?(0,q.Tl)("Pause key"):(0,q.Tl)("Resume key")}),(0,e.jsx)("button",{onClick:()=>br(a.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},a.id)})})]}),(0,e.jsx)(i.aF,{isOpen:h,title:(0,q.Tl)("Create API Key"),onClose:()=>{r(!1),w(""),y("")},children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)(i.pd,{label:(0,q.Tl)("Key Name"),value:v,onChange:a=>w(a.target.value),placeholder:(0,q.Tl)("Production Key")}),(0,e.jsx)(i.pd,{label:(0,q.Tl)("Daily Token Limit"),type:"number",min:"0",value:x,onChange:a=>y(a.target.value),placeholder:(0,q.Tl)("e.g. 100000000 — empty means unlimited")}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:bp,fullWidth:!0,disabled:!v.trim(),children:(0,q.Tl)("Create")}),(0,e.jsx)(i.$n,{onClick:()=>{r(!1),w(""),y("")},variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.aF,{isOpen:!!z,title:`${(0,q.Tl)("Edit Daily Token Limit")}${z?` — ${t(z.name)}`:""}`,onClose:()=>A(null),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)(i.pd,{label:(0,q.Tl)("Daily Token Limit"),type:"number",min:"0",value:B,onChange:a=>C(a.target.value),placeholder:(0,q.Tl)("e.g. 100000000 — empty means unlimited"),hint:(0,q.Tl)("Leave empty to remove the limit.")}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:bq,fullWidth:!0,disabled:D,children:(0,q.Tl)("Save")}),(0,e.jsx)(i.$n,{onClick:()=>A(null),variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.aF,{isOpen:!!S,title:(0,q.Tl)("Keys Re-issued"),onClose:()=>T(null),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,e.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:(0,q.Tl)("Save these keys now — shown only once")}),(0,e.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:(0,q.Tl)("Old keys no longer work. Update every client with the new values below.")})]}),(0,e.jsx)("div",{className:"flex flex-col gap-2 max-h-72 overflow-y-auto",children:(S?.rotated||[]).map(a=>(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-xs font-medium text-text-muted",children:t(a.name)}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{value:a.key,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,e.jsx)(i.$n,{variant:"secondary",icon:a3===`rot_${a.id}`?"check":"content_copy",onClick:()=>a4(a.key,`rot_${a.id}`),children:a3===`rot_${a.id}`?"Copied!":"Copy"})]})]},a.id))}),(0,e.jsx)(i.$n,{onClick:()=>T(null),fullWidth:!0,children:(0,q.Tl)("Done")})]})}),(0,e.jsx)(i.aF,{isOpen:!!F,title:(0,q.Tl)("API Key Created"),onClose:()=>G(null),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,e.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:(0,q.Tl)("Save this key now!")}),(0,e.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:(0,q.Tl)("This is the only time you will see this key. Store it securely.")})]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.pd,{value:F||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,e.jsx)(i.$n,{variant:"secondary",icon:"created_key"===a3?"check":"content_copy",onClick:()=>a4(F,"created_key"),children:"created_key"===a3?(0,q.Tl)("Copied!"):(0,q.Tl)("Copy")})]}),(0,e.jsx)(i.$n,{onClick:()=>G(null),fullWidth:!0,children:(0,q.Tl)("Done")})]})}),(0,e.jsx)(i.aF,{isOpen:ao,title:(0,q.Tl)("Enable Tunnel"),onClose:()=>ap(!1),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,e.jsxs)("div",{className:"flex items-start gap-3",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:(0,q.Tl)("Cloudflare Tunnel")}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:(0,q.Tl)("Expose your local 10Router to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere.")})]})]})}),(0,e.jsx)("div",{className:"grid grid-cols-2 gap-3",children:k.oX.map(a=>(0,e.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:a.icon}),(0,e.jsx)("p",{className:"text-xs font-semibold",children:a.title}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:a.desc})]},a.title))}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:(0,q.Tl)("Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s.")}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:be,fullWidth:!0,children:(0,q.Tl)("Start Tunnel")}),(0,e.jsx)(i.$n,{onClick:()=>ap(!1),variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.aF,{isOpen:aq,title:(0,q.Tl)("Disable Tunnel"),onClose:()=>!ai&&ar(!1),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)("p",{className:"text-sm text-text-muted",children:(0,q.Tl)("The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working.")}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:bf,fullWidth:!0,disabled:ai,variant:"danger",children:ai?"Disabling...":"Disable"}),(0,e.jsx)(i.$n,{onClick:()=>ar(!1),variant:"ghost",fullWidth:!0,disabled:ai,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.aF,{isOpen:aS,title:(0,q.Tl)("Tailscale Funnel"),onClose:()=>{aK||(aT(!1),aP(""),aD(null))},children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[null===aI&&(0,e.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),(0,q.Tl)("Checking...")]}),!1===aI&&!aK&&(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:bh,fullWidth:!0,children:(0,q.Tl)("Install Tailscale")}),(0,e.jsx)(i.$n,{onClick:()=>aT(!1),variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]}),aK&&(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),aM.length>0&&(0,e.jsx)("div",{ref:aW,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:aM.map((a,b)=>(0,e.jsx)("div",{children:a},b))})]}),!0===aI&&!aK&&(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:()=>bl(),fullWidth:!0,children:(0,q.Tl)("Connect")}),(0,e.jsx)(i.$n,{onClick:()=>aT(!1),variant:"ghost",fullWidth:!0,children:(0,q.Tl)("Cancel")})]})]}),aC&&(0,e.jsx)(n.A,{status:aC})]})}),(0,e.jsx)(i.aF,{isOpen:aU,title:(0,q.Tl)("Disable Tailscale"),onClose:()=>!ay&&aV(!1),children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(i.$n,{onClick:bn,fullWidth:!0,disabled:ay,variant:"danger",children:ay?"Disabling...":"Disable"}),(0,e.jsx)(i.$n,{onClick:()=>aV(!1),variant:"ghost",fullWidth:!0,disabled:ay,children:(0,q.Tl)("Cancel")})]})]})}),(0,e.jsx)(i.uo,{isOpen:!!H,onClose:()=>I(null),onConfirm:()=>{let a=H?.onConfirm;I(null),a?.()},title:H?.title||"Confirm",message:H?.message,variant:"danger"})]})}[i,m]=r.then?(await r)():r,u.propTypes={machineId:h().string.isRequired},d()}catch(a){d(a)}})},51747:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\endpoint\\\\EndpointPageClient.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\endpoint\\EndpointPageClient.js","default")},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.nJ,"machine-id"),m=h().join(k.nJ,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.nJ,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},61389:(a,b,c)=>{Promise.resolve().then(c.bind(c,51747))},67960:(a,b,c)=>{"use strict";c.d(b,{Cp:()=>g,Hx:()=>f,Iv:()=>k,Nv:()=>m,RL:()=>j,ev:()=>l,fl:()=>h,hT:()=>d,oX:()=>e,t6:()=>i});let d=["zh-CN","zh-TW"],e=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],f=2e3,g=3e5,h=5e3,i=5,j=1e4,k=5e3,l=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],m=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},78420:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(48249);function e({text:a}){return(0,d.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,d.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:a})]})}},80392:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>h});var e=c(48249),f=c(94579),g=a([f]);function h({label:a,url:b,copyId:c,copied:d,onCopy:g,badge:i,actions:j}){return(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===i||"TS"===i?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:a}),(0,e.jsx)(f.pd,{value:b,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,e.jsx)("button",{onClick:()=>g(b,c),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:d===c?"check":"content_copy"})}),j]})}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},85357:(a,b,c)=>{Promise.resolve().then(c.bind(c,43173))},87250:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(54603);async function e(){return await (0,d.Xj)()}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=75,exports.ids=[75,3662],exports.modules={2186:(a,b,c)=>{"use strict";c.d(b,{e3:()=>f,e5:()=>e,nF:()=>d});let d="x-10r-cli-token";function e(a){return a.headers.get(d)||a.headers.get("x-9r-cli-token")||null}function f(a){return a.headers.get("x-10r-password")||a.headers.get("x-9r-password")||null}},3662:(a,b,c)=>{"use strict";c.d(b,{$e:()=>i,AZ:()=>m,Dt:()=>k,EQ:()=>f,LY:()=>d,O:()=>e,X8:()=>j,fh:()=>h,qS:()=>o,t2:()=>l,wf:()=>g,yD:()=>n});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"insufficient_quota"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"You exceeded your current quota",404:"Not found (wrong endpoint path, or the model does not exist)",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=18e5,i=864e5,j={short:6e4,long:6e5},k=3e5,l=[{provider:"codex",text:"model is not supported when using codex with a chatgpt account",cooldownMs:18e5},{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"unapproved channel",channelScope:!0,cooldownMs:j.short},{text:"illegal api invocation",channelScope:!0,cooldownMs:j.short},{text:"improperly formed request",cooldownMs:12e4},{text:"mimo desktop account",cooldownMs:0},{text:"real-name verification",cooldownMs:0},{text:"realname verification",cooldownMs:0},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:429,backoff:!0}],m=/real-name verification|realname|\bface verification\b|实名认证/i,n={"stepfun-plan-cn":"StepFun CN 的 Step Plan 免费套餐要求账号先完成实名(人脸)核验,未完成时上游一律拒绝,与本机额度、与 10Router 都无关。出路:1. 打开 https://account.stepfun.com/security?action=realname 完成人脸核验后重试(推荐);2. 或改用按量计费的 stepfun-cn 渠道(扣现金/代金券,无实名要求)。该账号不会被锁定,但在实名完成前每次调用都会得到这条提示。"},o="上游要求该账号先完成实名认证(real-name verification),未完成前所有调用都会被拒绝;请按上游提示的地址完成核验后重试。"},38238:(a,b,c)=>{"use strict";c.d(b,{P:()=>i});var d=c(89718),e=c(30869),f=c(54603),g=c(2186);async function h(){let a=null;try{let b=await (0,d.PX)();a=b.find(a=>!1!==a.isActive)?.key||null}catch{}let b={"Content-Type":"application/json"};return a&&(b.Authorization=`Bearer ${a}`),b[g.nF]=await (0,f.Xj)("9r-cli-auth"),b}async function i(a,b,c=`http://127.0.0.1:${process.env.PORT||e.h0.appPort}`){let d=await h(),f=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:d,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(h?.data)&&h.data.length>0&&Array.isArray(h.data[0]?.embedding)?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no embedding data"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:d,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.msg||h?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return h?.answers&&"object"==typeof h.answers&&Object.keys(h.answers).length>0?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no answers for this model"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:d,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-f,g=await b.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{}if(!b.ok){let a=h?.error?.message||h?.msg||h?.message||h?.error||g;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(h?.data)&&h.data.length>0?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,e,g,h,i=new FormData,j=(g=new DataView(e=new ArrayBuffer(44+(b=2*Math.max(1,Math.floor(4e3))))),(h=(a,b)=>{for(let c=0;c<b.length;c+=1)g.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),g.setUint32(4,36+b,!0),h(8,"WAVE"),h(12,"fmt "),g.setUint32(16,16,!0),g.setUint16(20,1,!0),g.setUint16(22,1,!0),g.setUint32(24,16e3,!0),g.setUint32(28,32e3,!0),g.setUint16(32,2,!0),g.setUint16(34,16,!0),h(36,"data"),g.setUint32(40,b,!0),new Blob([e],{type:"audio/wav"}));i.append("file",j,"test.wav"),i.append("model",a);let k=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(d).filter(([a])=>"content-type"!==a.toLowerCase())),body:i,signal:AbortSignal.timeout(15e3)}),l=Date.now()-f,m=await k.text().catch(()=>""),n=null;try{n=m?JSON.parse(m):null}catch{}if(!k.ok){let a=n?.error?.message||n?.msg||n?.message||n?.error||m;return{ok:!1,latencyMs:l,error:`HTTP ${k.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:k.status}}return("string"==typeof n?.text?n.text:"").trim()?{ok:!0,latencyMs:l,error:null,status:k.status}:{ok:!1,latencyMs:l,status:k.status,error:"Provider returned no transcription text for this model"}}let g=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:d,body:JSON.stringify({model:a,max_tokens:1024,stream:!1,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(15e3)}),j=Date.now()-f,k=await g.text().catch(()=>""),l=null;try{l=k?JSON.parse(k):null}catch{}if(!g.ok){let a=l?.error?.message||l?.msg||l?.message||l?.error||k;return{ok:!1,latencyMs:j,error:`HTTP ${g.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:g.status}}let m=l?.status,n=l?.msg||l?.message;if(null!=m&&"200"!==String(m)&&"0"!==String(m)&&n)return{ok:!1,latencyMs:j,status:g.status,error:`Provider status ${m}: ${String(n).slice(0,240)}`};if(l?.error){let a=l?.error?.message||l?.error||"Provider returned an error";return{ok:!1,latencyMs:j,status:g.status,error:String(a).slice(0,240)}}let o=Array.isArray(l?.choices)&&l.choices.length>0,p=l?.choices?.[0]||{},q=p.message?.reasoning||p.message?.reasoning_content||p.message?.thinking||p.message?.thinking_content,r=!String(p.message?.content||"").trim();return o&&"length"===p.finish_reason&&r&&q?{ok:!0,latencyMs:j,error:null,status:g.status,note:"reasoning-only response (length-limited)"}:o?{ok:!0,latencyMs:j,error:null,status:g.status}:{ok:!1,latencyMs:j,status:g.status,error:"Provider returned no completion choices for this model"}}},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.nJ,"machine-id"),m=h().join(k.nJ,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.nJ,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},78335:()=>{},89718:(a,b,c)=>{"use strict";c.d(b,{Bf:()=>d.Bf,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Um:()=>d.Um,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getApiKeyByKey:()=>d.mY,getProviderConnections:()=>d.P,getSettings:()=>d.mt,h1:()=>d.h1,hj:()=>d.hj,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,localStartOfDayIso:()=>d.Yq,lr:()=>d.lr,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,sV:()=>d.sV,sumApiKeyTokensSince:()=>d.ZQ,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,updateSettings:()=>d.Xx,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(27274)},96487:()=>{}};
|