@synthever/jrouter 1.0.0 → 1.0.3
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 +19 -19
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/react-loadable-manifest.json +4 -4
- 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/health/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- 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/playground/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/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 +1 -1
- 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 +5 -5
- 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 +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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/cli-tools/all-statuses/route.js +9 -9
- 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-settings/route.js +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 +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/codewhale-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +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 +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 +2 -2
- 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 +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 +1 -1
- 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/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- 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 +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/forge-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +5 -5
- 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-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/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 +2 -2
- 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 +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/omp-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +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 +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/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-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/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/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/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/[id]/secret/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/secret/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 +2 -2
- 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 +2 -2
- 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/model-health/check/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/check-all/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/check-all/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/config/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/config/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/history/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/model/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/model/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/models/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/run-scheduled/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/run-scheduled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/summary/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/summary/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/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/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/limits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/limits/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/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/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/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/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/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/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/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]/connections/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/connections/keys/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]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/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 +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 +2 -2
- 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/netlify-deploy/route.js +4 -4
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-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 +1 -1
- 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 +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 +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 +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 +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 +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 +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/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 +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 +1 -1
- 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 +2 -2
- 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/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/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 +1 -1
- 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 +1 -1
- 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 +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/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/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 +1 -1
- package/app/.next-cli-build/server/app/api/version/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 +1 -1
- 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 +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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/health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/health.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk/dashboard/health/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/health.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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/playground.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/playground.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +8 -8
- 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 +1 -1
- 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 +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- 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 +7 -7
- 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 +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- 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 +5 -5
- 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 +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +7 -7
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
- 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 +1 -1
- 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 +6 -6
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest.body +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 +19 -19
- package/app/.next-cli-build/server/chunks/1133.js +1 -1
- package/app/.next-cli-build/server/chunks/1757.js +2 -2
- package/app/.next-cli-build/server/chunks/2132.js +1 -1
- package/app/.next-cli-build/server/chunks/2318.js +1 -1
- package/app/.next-cli-build/server/chunks/2631.js +1 -1
- package/app/.next-cli-build/server/chunks/2732.js +1 -1
- package/app/.next-cli-build/server/chunks/2760.js +3 -3
- package/app/.next-cli-build/server/chunks/3192.js +4 -4
- package/app/.next-cli-build/server/chunks/3360.js +1 -1
- package/app/.next-cli-build/server/chunks/3449.js +1 -1
- package/app/.next-cli-build/server/chunks/3535.js +1 -1
- package/app/.next-cli-build/server/chunks/3966.js +6 -6
- package/app/.next-cli-build/server/chunks/412.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +3 -3
- package/app/.next-cli-build/server/chunks/4152.js +1 -1
- package/app/.next-cli-build/server/chunks/4190.js +1 -1
- package/app/.next-cli-build/server/chunks/436.js +1 -1
- package/app/.next-cli-build/server/chunks/4406.js +1 -0
- package/app/.next-cli-build/server/chunks/455.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4764.js +1 -1
- package/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/app/.next-cli-build/server/chunks/4864.js +6 -6
- package/app/.next-cli-build/server/chunks/5299.js +25 -25
- package/app/.next-cli-build/server/chunks/5330.js +1 -1
- package/app/.next-cli-build/server/chunks/5615.js +2 -2
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6296.js +10 -10
- package/app/.next-cli-build/server/chunks/6708.js +1 -1
- package/app/.next-cli-build/server/chunks/7066.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/735.js +1 -1
- package/app/.next-cli-build/server/chunks/7373.js +1 -1
- package/app/.next-cli-build/server/chunks/7525.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/8126.js +1 -1
- package/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/app/.next-cli-build/server/chunks/8432.js +1 -1
- package/app/.next-cli-build/server/chunks/{2524.js → 8451.js} +1 -1
- package/app/.next-cli-build/server/chunks/8749.js +1 -1
- package/app/.next-cli-build/server/chunks/9032.js +1 -1
- package/app/.next-cli-build/server/chunks/9046.js +1 -1
- package/app/.next-cli-build/server/chunks/9128.js +1 -1
- 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/9906.js +1 -0
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- 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-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +5 -5
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/{124.2812449f50e38c6c.js → 124.129f13ee23ff9b23.js} +1 -1
- package/app/.next-cli-build/static/chunks/1321-f3534bbafebb96c9.js +1 -0
- package/app/.next-cli-build/static/chunks/{2435.7dca2c9630249a05.js → 2435.683f65cfb8f79701.js} +2 -2
- package/app/.next-cli-build/static/chunks/{5462.75bfd156f9bc4e3b.js → 5462.79bf24eb0584ddda.js} +2 -2
- package/app/.next-cli-build/static/chunks/{5497-66e7c2a2b715a638.js → 5497-973a06c94a94aff7.js} +1 -1
- package/app/.next-cli-build/static/chunks/6808-10f960f3fc924a76.js +1 -0
- package/app/.next-cli-build/static/chunks/761-1bcb7334763d5645.js +132 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-9f4426c30039c7d5.js → page-3960bffd1fddbbad.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-0c7b45a45ba51753.js → page-61b17862582ff807.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0616e02f3ff06acd.js → page-0c2a1f2542917271.js} +12 -12
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-de6dfc43c2687bd8.js → page-1a560f2b5cdf2e31.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-eb6a5a055eded9f8.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-4c6b176d5c59d8a4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-e631d28dd402dc1e.js → page-d0031965cf7eff51.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/landing/{page-431f7e8093b8ca51.js → page-5bc39b166588b878.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/login/{page-80c4e229a5f38a6b.js → page-f2b166590b653d36.js} +1 -1
- package/app/.next-cli-build/static/chunks/webpack-6a79f0ded38135ba.js +1 -0
- package/app/.next-cli-build/static/css/{f0e9ffc68c4f886a.css → 3b896d96bcd3ef7a.css} +1 -1
- package/app/custom-server.js +2 -2
- package/app/package.json +1 -1
- package/app/public/providers/beatapi.png +0 -0
- package/app/src/lib/oauth/providers/xiaomi-mimo.js +2 -2
- package/app/src/lib/updater/updater.js +3 -3
- package/app/src/mitm/server.js +10 -10
- package/cli.js +6 -6
- package/hooks/postinstall.js +2 -2
- package/hooks/sqliteRuntime.js +2 -2
- package/hooks/trayRuntime.js +3 -3
- package/package.json +7 -3
- package/src/cli/api/client.js +3 -3
- package/src/cli/commands/connect.js +3 -3
- package/src/cli/commands/connectTools.js +12 -12
- package/src/cli/commands/xaiVideo.js +1 -1
- package/src/cli/menus/cliTools.js +18 -18
- package/src/cli/menus/settings.js +1 -1
- package/src/cli/tray/autostart.js +1 -1
- package/app/.next-cli-build/server/chunks/238.js +0 -1
- package/app/.next-cli-build/server/chunks/4642.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-b2785838003873e1.js +0 -1
- package/app/.next-cli-build/static/chunks/6808-ed8012b059559430.js +0 -1
- package/app/.next-cli-build/static/chunks/761-57ed45cdddcf32eb.js +0 -132
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-d2787f11613d3447.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-316b3186a841d862.js +0 -1
- package/app/.next-cli-build/static/chunks/webpack-e582fe7763255be4.js +0 -1
- /package/app/.next-cli-build/static/{fjLlI_-eBYMOp6J-a-q-6 → rJzsAZX3-_OjA05HFqaR_}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{fjLlI_-eBYMOp6J-a-q-6 → rJzsAZX3-_OjA05HFqaR_}/_ssgManifest.js +0 -0
package/cli.js
CHANGED
|
@@ -126,7 +126,7 @@ function getDisplayHost() {
|
|
|
126
126
|
const MAX_PORT_ATTEMPTS = 10;
|
|
127
127
|
// Identifiers for killAllAppProcesses - only kill 9router specifically
|
|
128
128
|
const PROCESS_IDENTIFIERS = [
|
|
129
|
-
'
|
|
129
|
+
'jrouter', '@synthever/jrouter', '9router' // package names (9router kept for legacy installs)
|
|
130
130
|
];
|
|
131
131
|
|
|
132
132
|
// Parse arguments
|
|
@@ -206,8 +206,8 @@ function compareVersions(a, b) {
|
|
|
206
206
|
// Get app data dir (matches app/src/lib/dataDir.js convention)
|
|
207
207
|
function getAppDataDir() {
|
|
208
208
|
return process.platform === "win32"
|
|
209
|
-
? path.join(process.env.APPDATA || "", "
|
|
210
|
-
: path.join(os.homedir(), ".
|
|
209
|
+
? path.join(process.env.APPDATA || "", "jrouter")
|
|
210
|
+
: path.join(os.homedir(), ".jrouter");
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
// Kill PID from file (best-effort, removes file after)
|
|
@@ -792,7 +792,7 @@ function startServer(updatePromise) {
|
|
|
792
792
|
process.on("SIGHUP", () => {});
|
|
793
793
|
|
|
794
794
|
console.log(`\n⏳ Switching to tray mode... (icon already visible in menu bar)`);
|
|
795
|
-
console.log(`🔔
|
|
795
|
+
console.log(`🔔 JRouter is running in tray (PID: ${process.pid})`);
|
|
796
796
|
console.log(` Server: http://${displayHost}:${port}`);
|
|
797
797
|
console.log(`\n💡 You can close this terminal. Right-click tray icon to quit.\n`);
|
|
798
798
|
|
|
@@ -811,7 +811,7 @@ function startServer(updatePromise) {
|
|
|
811
811
|
});
|
|
812
812
|
bgProcess.unref();
|
|
813
813
|
|
|
814
|
-
console.log(`🔔
|
|
814
|
+
console.log(`🔔 JRouter is now running in background (PID: ${bgProcess.pid})`);
|
|
815
815
|
console.log(` Server: http://${displayHost}:${port}`);
|
|
816
816
|
console.log(`\n💡 You can close this terminal. Right-click tray icon to quit.\n`);
|
|
817
817
|
|
|
@@ -856,7 +856,7 @@ function startServer(updatePromise) {
|
|
|
856
856
|
if (restartCount >= MAX_RESTARTS) {
|
|
857
857
|
console.error(`\n⚠️ Server crashed ${MAX_RESTARTS} times. Disabling MIT and restarting...`);
|
|
858
858
|
try {
|
|
859
|
-
const dbPath = path.join(os.homedir(), process.platform === "win32" ? path.join("AppData", "Roaming", "
|
|
859
|
+
const dbPath = path.join(os.homedir(), process.platform === "win32" ? path.join("AppData", "Roaming", "jrouter", "db.json") : path.join(".jrouter", "db.json"));
|
|
860
860
|
if (fs.existsSync(dbPath)) {
|
|
861
861
|
const db = JSON.parse(fs.readFileSync(dbPath, "utf-8"));
|
|
862
862
|
if (db.settings) db.settings.mitmEnabled = false;
|
package/hooks/postinstall.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// Postinstall: warm-up SQLite deps into ~/.
|
|
3
|
+
// Postinstall: warm-up SQLite deps into ~/.jrouter/runtime so the first
|
|
4
4
|
// `9router` start doesn't need network. Failure here is non-fatal —
|
|
5
5
|
// cli.js will retry at runtime if anything is missing.
|
|
6
|
-
// `npx
|
|
6
|
+
// `npx @synthever/jrouter …` (npm_command=exec) is typically a one-shot `connect` — skip
|
|
7
7
|
// the runtime warm-up; cli.js self-heals it if the server is started later.
|
|
8
8
|
if (process.env.npm_command === "exec") process.exit(0);
|
|
9
9
|
|
package/hooks/sqliteRuntime.js
CHANGED
|
@@ -19,7 +19,7 @@ function getDataDir() {
|
|
|
19
19
|
if (process.env.DATA_DIR) return process.env.DATA_DIR;
|
|
20
20
|
return process.platform === "win32"
|
|
21
21
|
? path.join(process.env.APPDATA || os.homedir(), "9router")
|
|
22
|
-
: path.join(os.homedir(), ".
|
|
22
|
+
: path.join(os.homedir(), ".jrouter");
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
function getRuntimeDir() {
|
|
@@ -38,7 +38,7 @@ function ensureRuntimeDir() {
|
|
|
38
38
|
const pkgPath = path.join(dir, "package.json");
|
|
39
39
|
if (!fs.existsSync(pkgPath)) {
|
|
40
40
|
fs.writeFileSync(pkgPath, JSON.stringify({
|
|
41
|
-
name: "
|
|
41
|
+
name: "jrouter-runtime",
|
|
42
42
|
version: "1.0.0",
|
|
43
43
|
private: true,
|
|
44
44
|
description: "User-writable runtime deps for 9router (better-sqlite3 native binary)",
|
package/hooks/trayRuntime.js
CHANGED
|
@@ -44,7 +44,7 @@ function hasSystray() {
|
|
|
44
44
|
// On Windows it was an AV false-positive risk; on macOS/Linux its bundled
|
|
45
45
|
// binary is broken on modern OS versions.
|
|
46
46
|
function cleanupLegacySystray({ silent = false } = {}) {
|
|
47
|
-
// 1) Runtime dir: ~/.
|
|
47
|
+
// 1) Runtime dir: ~/.jrouter/runtime/node_modules/systray (or %APPDATA% on Win)
|
|
48
48
|
// 2) npm global nested: <npm_prefix>/node_modules/9router/node_modules/systray
|
|
49
49
|
// __dirname here = <pkg root>/hooks → up 1 = pkg root
|
|
50
50
|
const targets = [
|
|
@@ -84,7 +84,7 @@ function ensureRuntimeDir() {
|
|
|
84
84
|
const pkgPath = path.join(dir, "package.json");
|
|
85
85
|
if (!fs.existsSync(pkgPath)) {
|
|
86
86
|
fs.writeFileSync(pkgPath, JSON.stringify({
|
|
87
|
-
name: "
|
|
87
|
+
name: "jrouter-runtime",
|
|
88
88
|
version: "1.0.0",
|
|
89
89
|
private: true
|
|
90
90
|
}, null, 2));
|
|
@@ -144,7 +144,7 @@ function markArm64Attempt() {
|
|
|
144
144
|
// Cleared on success so the cooldown only ever throttles *failures*. Without
|
|
145
145
|
// this, anything that restores systray2's x86_64 binary later — notably a
|
|
146
146
|
// globally installed 9router older than this change, which shares the same
|
|
147
|
-
// ~/.
|
|
147
|
+
// ~/.jrouter/runtime — would leave the user waiting out the cooldown.
|
|
148
148
|
function clearArm64Attempt() {
|
|
149
149
|
try { fs.rmSync(arm64AttemptMarker(), { force: true }); } catch {}
|
|
150
150
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synthever/jrouter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "JRouter CLI - Start and manage the JRouter server",
|
|
5
5
|
"bin": {
|
|
6
6
|
"jrouter": "./cli.js"
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
"build:tray-arm64": "node scripts/buildTrayArm64.js",
|
|
20
20
|
"pack:cli": "npm run build && npm pack --pack-destination ..",
|
|
21
21
|
"publish:cli": "npm run build && npm publish",
|
|
22
|
+
"release": "node scripts/release-cli.js patch",
|
|
23
|
+
"release:minor": "node scripts/release-cli.js minor",
|
|
24
|
+
"release:major": "node scripts/release-cli.js major",
|
|
25
|
+
"release:dry": "node scripts/release-cli.js patch --dry-run",
|
|
22
26
|
"postinstall": "node hooks/postinstall.js",
|
|
23
27
|
"prepublishOnly": "npm run build"
|
|
24
28
|
},
|
|
@@ -30,8 +34,8 @@
|
|
|
30
34
|
"react-dom": "19.2.1",
|
|
31
35
|
"confbox": "^0.2.4"
|
|
32
36
|
},
|
|
33
|
-
"comment_sqlite": "sql.js + better-sqlite3 are NOT bundled here. They are installed into ~/.
|
|
34
|
-
"comment_systray": "systray2 is NOT bundled here. It is lazy-installed into ~/.
|
|
37
|
+
"comment_sqlite": "sql.js + better-sqlite3 are NOT bundled here. They are installed into ~/.jrouter/runtime/node_modules by hooks/postinstall.js (and re-checked at runtime by cli.js). This avoids Windows EBUSY errors when updating the global CLI, since native .node files no longer live under the locked install dir.",
|
|
38
|
+
"comment_systray": "systray2 is NOT bundled here. It is lazy-installed into ~/.jrouter/runtime/node_modules by hooks/postinstall.js on macOS/Linux only. Windows uses PowerShell NotifyIcon (zero binary). This avoids shipping unsigned Go binaries that trigger antivirus false positives (Kaspersky). We use the systray2 fork because the legacy systray@1.0.5 ships a 2017 x86_64 binary that fails to load on modern macOS dyld. Neither package ships an arm64 macOS binary, so on Apple Silicon hooks/trayRuntime.js overlays our own arm64 build from the tray-binaries GitHub release; without it the tray requires Rosetta 2.",
|
|
35
39
|
"comment_tray_arm64": "tray_darwin_arm64 is built by scripts/buildTrayArm64.js (npm run build:tray-arm64) from felixhao28/systray-portable — the same source systray2's binary comes from — and uploaded to the pinned 'tray-binaries' GitHub release. Its sha256 is pinned as ARM64_TRAY_SHA256 in hooks/trayRuntime.js and verified after every download; rebuild and update both together. .github/workflows/tray-binaries.yml builds the same artifact in CI but refuses to publish when the sha diverges from the pin.",
|
|
36
40
|
"engines": {
|
|
37
41
|
"node": ">=18.0.0"
|
package/src/cli/api/client.js
CHANGED
|
@@ -13,8 +13,8 @@ const DEFAULT_CONFIG = {
|
|
|
13
13
|
protocol: "http:",
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const CLI_TOKEN_HEADER = "x-
|
|
17
|
-
const CLI_TOKEN_SALT = "
|
|
16
|
+
const CLI_TOKEN_HEADER = "x-jr-cli-token";
|
|
17
|
+
const CLI_TOKEN_SALT = "jr-cli-auth";
|
|
18
18
|
const APP_NAME = "9router";
|
|
19
19
|
|
|
20
20
|
function getDataDir() {
|
|
@@ -365,7 +365,7 @@ async function deleteCombo(id) {
|
|
|
365
365
|
* Get CLI tool settings
|
|
366
366
|
* @param {string} tool - Tool name: claude | codex | droid | openclaw
|
|
367
367
|
* @param {string} [profile] - Hermes profile name (defaults to the default profile)
|
|
368
|
-
* @returns {Promise<Object>} { success, data: { installed,
|
|
368
|
+
* @returns {Promise<Object>} { success, data: { installed, hasJRouter, ... } }
|
|
369
369
|
*/
|
|
370
370
|
async function getCliToolSettings(tool, profile) {
|
|
371
371
|
const qs = profile ? `?profile=${encodeURIComponent(profile)}` : "";
|
|
@@ -28,7 +28,7 @@ Options:
|
|
|
28
28
|
--password <pw> Dashboard password (or env NINE_ROUTER_PASSWORD;
|
|
29
29
|
prompted if omitted — preferred, keeps it out of shell history)
|
|
30
30
|
--save After a successful login, save the password for this server
|
|
31
|
-
to ~/.
|
|
31
|
+
to ~/.jrouter/connect.env (plain text, mode 600) so later
|
|
32
32
|
runs skip the prompt. Delete that file to forget it.
|
|
33
33
|
--key-name <name> API key name to reuse/create (default: cli-<hostname>)
|
|
34
34
|
--api-key <key> Use this API key, skip login + key lookup
|
|
@@ -97,8 +97,8 @@ function maskKey(key) {
|
|
|
97
97
|
function savedEnvPath() {
|
|
98
98
|
if (process.env.DATA_DIR) return path.join(process.env.DATA_DIR, "connect.env");
|
|
99
99
|
const base = process.platform === "win32"
|
|
100
|
-
? path.join(process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming"), "
|
|
101
|
-
: path.join(os.homedir(), ".
|
|
100
|
+
? path.join(process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming"), "jrouter")
|
|
101
|
+
: path.join(os.homedir(), ".jrouter");
|
|
102
102
|
return path.join(base, "connect.env");
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -39,10 +39,10 @@ function rewriteFile(file, content) {
|
|
|
39
39
|
fs.writeFileSync(file, content, { mode: SECRET_MODE });
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
// One-time backup of the user's pre-
|
|
42
|
+
// One-time backup of the user's pre-jrouter file, then write.
|
|
43
43
|
function writeFile(file, content) {
|
|
44
44
|
fs.mkdirSync(path.dirname(file), { recursive: true });
|
|
45
|
-
const backup = `${file}.bak-
|
|
45
|
+
const backup = `${file}.bak-jrouter`;
|
|
46
46
|
if (fs.existsSync(file) && !fs.existsSync(backup)) {
|
|
47
47
|
fs.copyFileSync(file, backup);
|
|
48
48
|
fs.chmodSync(backup, SECRET_MODE);
|
|
@@ -114,7 +114,7 @@ const codex = {
|
|
|
114
114
|
name: "OpenAI Codex CLI",
|
|
115
115
|
paths: () => [codexPath()],
|
|
116
116
|
route: "codex-settings",
|
|
117
|
-
// GET returns raw TOML text; only trust `model` when the provider is
|
|
117
|
+
// GET returns raw TOML text; only trust `model` when the provider is jrouter.
|
|
118
118
|
async serverModel(data) {
|
|
119
119
|
if (!isStr(data?.config)) return null;
|
|
120
120
|
const { parseTOML } = await toml();
|
|
@@ -131,7 +131,7 @@ const codex = {
|
|
|
131
131
|
cfg.model_providers = cfg.model_providers || {};
|
|
132
132
|
// Custom providers ignore auth.json — key must travel as a static header.
|
|
133
133
|
cfg.model_providers["jrouter"] = {
|
|
134
|
-
name: "
|
|
134
|
+
name: "JRouter",
|
|
135
135
|
base_url: v1(baseUrl),
|
|
136
136
|
wire_api: "responses",
|
|
137
137
|
http_headers: { Authorization: `Bearer ${apiKey}` },
|
|
@@ -160,7 +160,7 @@ const codex = {
|
|
|
160
160
|
...(isStr(cfg.model) ? { main: cfg.model } : {}),
|
|
161
161
|
...(isStr(cfg.agents?.default_subagent_model) ? { subagent: cfg.agents.default_subagent_model } : {}),
|
|
162
162
|
},
|
|
163
|
-
// Codex only routes through
|
|
163
|
+
// Codex only routes through jrouter when this provider is the active one.
|
|
164
164
|
active: cfg.model_provider === "jrouter",
|
|
165
165
|
};
|
|
166
166
|
},
|
|
@@ -170,7 +170,7 @@ const codex = {
|
|
|
170
170
|
let cfg;
|
|
171
171
|
try { cfg = parseTOML(fs.readFileSync(file, "utf8")) || {}; } catch (err) { if (err.code === "ENOENT") return []; throw err; }
|
|
172
172
|
if (cfg.model_provider === "9router" || cfg.model_provider === "jrouter") { delete cfg.model; delete cfg.model_provider; }
|
|
173
|
-
if (cfg.model_providers) { delete cfg.model_providers["
|
|
173
|
+
if (cfg.model_providers) { delete cfg.model_providers["jrouter"]; delete cfg.model_providers["jrouter"]; }
|
|
174
174
|
if (cfg.agents) { delete cfg.agents.default_subagent_model; delete cfg.agents.subagent; }
|
|
175
175
|
for (const k of ["model_providers", "agents"]) {
|
|
176
176
|
if (cfg[k] && Object.keys(cfg[k]).length === 0) delete cfg[k];
|
|
@@ -238,7 +238,7 @@ const opencode = {
|
|
|
238
238
|
|
|
239
239
|
// ── Factory Droid ───────────────────────────────────────────────────────────
|
|
240
240
|
const droidPath = () => path.join(home(), ".factory", "settings.json");
|
|
241
|
-
const
|
|
241
|
+
const isDroidJr = (m) => m.id?.startsWith("custom:JRouter") || m.id?.startsWith("custom:9Router");
|
|
242
242
|
|
|
243
243
|
const droid = {
|
|
244
244
|
id: "droid",
|
|
@@ -246,17 +246,17 @@ const droid = {
|
|
|
246
246
|
paths: () => [droidPath()],
|
|
247
247
|
route: "droid-settings",
|
|
248
248
|
serverModel(data) {
|
|
249
|
-
const m = (data?.settings?.customModels || []).find(
|
|
249
|
+
const m = (data?.settings?.customModels || []).find(isDroidJr)?.model;
|
|
250
250
|
return isStr(m) ? m : null;
|
|
251
251
|
},
|
|
252
252
|
async apply({ baseUrl, apiKey, model }) {
|
|
253
253
|
const file = droidPath();
|
|
254
254
|
const cfg = readJson(file) || {};
|
|
255
|
-
const others = (cfg.customModels || []).filter((m) => !
|
|
255
|
+
const others = (cfg.customModels || []).filter((m) => !isDroidJr(m));
|
|
256
256
|
cfg.customModels = [
|
|
257
257
|
{
|
|
258
258
|
model,
|
|
259
|
-
id: "custom:
|
|
259
|
+
id: "custom:JRouter-0",
|
|
260
260
|
index: 0,
|
|
261
261
|
baseUrl: v1(baseUrl),
|
|
262
262
|
apiKey,
|
|
@@ -272,7 +272,7 @@ const droid = {
|
|
|
272
272
|
return [file];
|
|
273
273
|
},
|
|
274
274
|
async show() {
|
|
275
|
-
const ours = (readJson(droidPath())?.customModels || []).filter(
|
|
275
|
+
const ours = (readJson(droidPath())?.customModels || []).filter(isDroidJr);
|
|
276
276
|
return {
|
|
277
277
|
baseUrl: ours[0]?.baseUrl,
|
|
278
278
|
apiKey: ours[0]?.apiKey,
|
|
@@ -284,7 +284,7 @@ const droid = {
|
|
|
284
284
|
const cfg = readJson(file);
|
|
285
285
|
if (!cfg) return [];
|
|
286
286
|
if (cfg.customModels) {
|
|
287
|
-
cfg.customModels = cfg.customModels.filter((m) => !
|
|
287
|
+
cfg.customModels = cfg.customModels.filter((m) => !isDroidJr(m));
|
|
288
288
|
if (cfg.customModels.length === 0) delete cfg.customModels;
|
|
289
289
|
}
|
|
290
290
|
rewriteFile(file, JSON.stringify(cfg, null, 2));
|
|
@@ -258,7 +258,7 @@ async function run(argv) {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
const requestId = create.body.request_id;
|
|
261
|
-
const connectionId = create.headers["x-
|
|
261
|
+
const connectionId = create.headers["x-jrouter-connection-id"] || null;
|
|
262
262
|
console.log(`📋 Job accepted: ${requestId}`);
|
|
263
263
|
|
|
264
264
|
let lastLine = "";
|
|
@@ -179,10 +179,10 @@ async function buildCodexHeader() {
|
|
|
179
179
|
const result = await api.getCliToolSettings("codex");
|
|
180
180
|
if (!result.success) return ` ${COLORS.red}Failed to load settings${COLORS.reset}`;
|
|
181
181
|
|
|
182
|
-
const { installed,
|
|
182
|
+
const { installed, hasJRouter, config } = result.data;
|
|
183
183
|
if (!installed) return `Status: ${COLORS.red}✗ Codex CLI not installed${COLORS.reset}`;
|
|
184
184
|
|
|
185
|
-
if (!
|
|
185
|
+
if (!hasJRouter) {
|
|
186
186
|
return [
|
|
187
187
|
`Status: ${COLORS.red}✗ Not configured${COLORS.reset}`,
|
|
188
188
|
`${COLORS.dim}Run "Quick Setup" to configure${COLORS.reset}`
|
|
@@ -267,18 +267,18 @@ async function buildDroidHeader() {
|
|
|
267
267
|
const result = await api.getCliToolSettings("droid");
|
|
268
268
|
if (!result.success) return ` ${COLORS.red}Failed to load settings${COLORS.reset}`;
|
|
269
269
|
|
|
270
|
-
const { installed,
|
|
270
|
+
const { installed, hasJRouter, settings } = result.data;
|
|
271
271
|
if (!installed) return `Status: ${COLORS.red}✗ Factory Droid not installed${COLORS.reset}`;
|
|
272
272
|
|
|
273
|
-
if (!
|
|
273
|
+
if (!hasJRouter) {
|
|
274
274
|
return [
|
|
275
275
|
`Status: ${COLORS.red}✗ Not configured${COLORS.reset}`,
|
|
276
276
|
`${COLORS.dim}Run "Quick Setup" to configure${COLORS.reset}`
|
|
277
277
|
].join("\n");
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
// Extract
|
|
281
|
-
const custom = settings?.customModels?.find(m => m.id === "custom:
|
|
280
|
+
// Extract JRouter custom model config
|
|
281
|
+
const custom = settings?.customModels?.find(m => m.id === "custom:JRouter-0");
|
|
282
282
|
const lines = [`Status: ${COLORS.green}✓ Configured${COLORS.reset}`];
|
|
283
283
|
if (custom?.baseUrl) lines.push(`Endpoint: ${COLORS.cyan}${custom.baseUrl}${COLORS.reset}`);
|
|
284
284
|
if (custom?.model) lines.push(`Model: ${COLORS.dim}${custom.model}${COLORS.reset}`);
|
|
@@ -350,20 +350,20 @@ async function buildOpenClawHeader() {
|
|
|
350
350
|
const result = await api.getCliToolSettings("openclaw");
|
|
351
351
|
if (!result.success) return ` ${COLORS.red}Failed to load settings${COLORS.reset}`;
|
|
352
352
|
|
|
353
|
-
const { installed,
|
|
353
|
+
const { installed, hasJRouter, settings } = result.data;
|
|
354
354
|
if (!installed) return `Status: ${COLORS.red}✗ Open Claw not installed${COLORS.reset}`;
|
|
355
355
|
|
|
356
|
-
if (!
|
|
356
|
+
if (!hasJRouter) {
|
|
357
357
|
return [
|
|
358
358
|
`Status: ${COLORS.red}✗ Not configured${COLORS.reset}`,
|
|
359
359
|
`${COLORS.dim}Run "Quick Setup" to configure${COLORS.reset}`
|
|
360
360
|
].join("\n");
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
// Extract
|
|
363
|
+
// Extract JRouter provider config
|
|
364
364
|
const provider = settings?.models?.providers?.["jrouter"];
|
|
365
365
|
const primary = settings?.agents?.defaults?.model?.primary || "";
|
|
366
|
-
const model = primary.startsWith("
|
|
366
|
+
const model = primary.startsWith("jrouter/") ? primary.replace("jrouter/", "") : (provider?.models?.[0]?.id || "");
|
|
367
367
|
const lines = [`Status: ${COLORS.green}✓ Configured${COLORS.reset}`];
|
|
368
368
|
if (provider?.baseUrl) lines.push(`Endpoint: ${COLORS.cyan}${provider.baseUrl}${COLORS.reset}`);
|
|
369
369
|
if (model) lines.push(`Model: ${COLORS.dim}${model}${COLORS.reset}`);
|
|
@@ -431,10 +431,10 @@ async function buildOpenCodeHeader() {
|
|
|
431
431
|
const result = await api.getCliToolSettings("opencode");
|
|
432
432
|
if (!result.success) return ` ${COLORS.red}Failed to load settings${COLORS.reset}`;
|
|
433
433
|
|
|
434
|
-
const { installed,
|
|
434
|
+
const { installed, hasJRouter, opencode } = result.data;
|
|
435
435
|
if (!installed) return `Status: ${COLORS.red}✗ OpenCode CLI not installed${COLORS.reset}`;
|
|
436
436
|
|
|
437
|
-
if (!
|
|
437
|
+
if (!hasJRouter) {
|
|
438
438
|
return [
|
|
439
439
|
`Status: ${COLORS.red}✗ Not configured${COLORS.reset}`,
|
|
440
440
|
`${COLORS.dim}Run "Quick Setup" to configure${COLORS.reset}`
|
|
@@ -527,7 +527,7 @@ async function fetchHermesProfiles() {
|
|
|
527
527
|
|
|
528
528
|
const hermesProfileLine = (p) => {
|
|
529
529
|
const name = p.displayName && !p.isDefault ? `${p.name} (${p.displayName})` : p.name;
|
|
530
|
-
const state = p.
|
|
530
|
+
const state = p.hasJRouter
|
|
531
531
|
? `${COLORS.green}✓ JRouter${COLORS.reset}`
|
|
532
532
|
: p.baseUrl
|
|
533
533
|
? `${COLORS.red}other: ${p.baseUrl}${COLORS.reset}`
|
|
@@ -541,12 +541,12 @@ async function buildHermesHeader(profiles) {
|
|
|
541
541
|
const result = await api.getCliToolSettings("hermes", hermesActiveProfile);
|
|
542
542
|
if (!result.success) return ` ${COLORS.red}Failed to load settings${COLORS.reset}`;
|
|
543
543
|
|
|
544
|
-
const { installed,
|
|
544
|
+
const { installed, hasJRouter, settings, profile } = result.data;
|
|
545
545
|
if (!installed) return `Status: ${COLORS.red}✗ Hermes Agent not installed${COLORS.reset}`;
|
|
546
546
|
|
|
547
547
|
const name = profile?.name || hermesActiveProfile;
|
|
548
548
|
const lines = [];
|
|
549
|
-
if (
|
|
549
|
+
if (hasJRouter) {
|
|
550
550
|
lines.push(`Status: ${COLORS.green}✓ Configured${COLORS.reset} (${name})`);
|
|
551
551
|
} else {
|
|
552
552
|
lines.push(`Status: ${COLORS.red}✗ Not configured${COLORS.reset} (${name})`);
|
|
@@ -559,7 +559,7 @@ async function buildHermesHeader(profiles) {
|
|
|
559
559
|
|
|
560
560
|
if (list.length > 1) {
|
|
561
561
|
const summary = list
|
|
562
|
-
.map((p) => `${p.name}${p.
|
|
562
|
+
.map((p) => `${p.name}${p.hasJRouter ? `${COLORS.green}✓` : `${COLORS.red}✗`}`)
|
|
563
563
|
.join(`${COLORS.reset} `);
|
|
564
564
|
lines.push(`Profiles: ${summary}${COLORS.reset}`);
|
|
565
565
|
}
|
|
@@ -607,7 +607,7 @@ async function hermesQuickSetup(port) {
|
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
// Endpoint + API key across every profile. Each profile keeps its own model — profiles
|
|
610
|
-
// already routed through
|
|
610
|
+
// already routed through jrouter are refreshed, anything else is reported as skipped.
|
|
611
611
|
async function hermesApplyAll(port) {
|
|
612
612
|
const { endpoint } = await getEndpoint(port);
|
|
613
613
|
const apiKey = await getFirstApiKey();
|
|
@@ -684,7 +684,7 @@ async function showCliToolsMenu(port, breadcrumb = []) {
|
|
|
684
684
|
await showMenuWithBack({
|
|
685
685
|
title: "🔧 CLI Tools",
|
|
686
686
|
breadcrumb,
|
|
687
|
-
headerContent: `Configure CLI tools to use
|
|
687
|
+
headerContent: `Configure CLI tools to use JRouter\nEndpoint: ${endpoint}`,
|
|
688
688
|
items: [
|
|
689
689
|
{
|
|
690
690
|
label: "Claude Code",
|
|
@@ -99,7 +99,7 @@ async function showSettingsMenu(breadcrumb = []) {
|
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* Reset authMode to "password" via API. Used when OIDC is misconfigured
|
|
102
|
-
* and user is locked out of dashboard. CLI bypasses auth via x-
|
|
102
|
+
* and user is locked out of dashboard. CLI bypasses auth via x-jr-cli-token.
|
|
103
103
|
*/
|
|
104
104
|
async function resetAuthMode() {
|
|
105
105
|
const ok = await confirm("Reset auth mode to PASSWORD (disable OIDC)?");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=238,exports.ids=[238,2557],exports.modules={12557:(a,b,c)=>{c.d(b,{Bl:()=>j,Qo:()=>f,S5:()=>l,hk:()=>e,kJ:()=>k});var d=c(3662);function e(a,b,c=0,f=null){let g=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";for(let b of d.t2)if((!b.provider||b.provider===f)&&(b.text&&g&&g.includes(b.text)||b.status&&b.status===a)){if(b.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:b.cooldownMs}}return a>=400&&a<500&&401!==a&&402!==a&&403!==a&&429!==a?{shouldFallback:!1,cooldownMs:0}:{shouldFallback:!0,cooldownMs:d.wf}}function f(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let g="modelLock_",h=`${g}__all`;function i(a){return a?`${g}${a}`:h}function j(a,b){let c=a[i(b)]||a[h];return!!c&&new Date(c).getTime()>Date.now()}function k(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(g)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function l(a,b){return{[i(a)]:new Date(Date.now()+b).toISOString()}}},45974:(a,b,c)=>{c.d(b,{CY:()=>m,XJ:()=>r,d0:()=>o,vO:()=>n});var d=c(39326),e=c(91211),f=c(7803);let g=new Map,h=new Map,i=new Map,j=new Map,k=new Map;function l(a){if(!a||"string"!=typeof a)return null;let b=(a.includes("/")?a.slice(a.indexOf("/")+1):a).toLowerCase();return b.startsWith("claude-")||b.startsWith("gpt-")||"claude"===b?"claude_gpt":b.startsWith("gemini-")&&!b.includes("image")||"gemini"===b?"gemini":null}function m(a,b){if(!a||"object"!=typeof a||!b)return null;let c="string"==typeof b?(b.includes("/")?b.slice(b.indexOf("/")+1):b).replace(/\([^()]+\)\s*$/,"").trim():"",d=l(c),e=[];if(a[c]&&e.push(a[c]),"claude-sonnet-5-5"===c&&a["claude-sonnet-5-5-high"]&&e.push(a["claude-sonnet-5-5-high"]),"claude-opus-5-5"===c&&a["claude-opus-5-5-high"]&&e.push(a["claude-opus-5-5-high"]),"gemini-3.8-flash"===c&&a["gemini-3.8-flash-medium"]&&e.push(a["gemini-3.8-flash-medium"]),"gemini-3.7-flash"===c&&a["gemini-3.7-flash-medium"]&&e.push(a["gemini-3.7-flash-medium"]),"gemini-3.6-flash"===c&&a["gemini-3.6-flash-medium"]&&e.push(a["gemini-3.6-flash-medium"]),"claude_gpt"===d?(a.claude_gpt_session&&e.push(a.claude_gpt_session),a.claude_gpt_weekly&&e.push(a.claude_gpt_weekly)):"gemini"===d&&(a.gemini_session&&e.push(a.gemini_session),a.gemini_weekly&&e.push(a.gemini_weekly)),0===e.length)return null;let f=Date.now(),g=[];for(let a of e)if(a&&"object"==typeof a&&"number"==typeof a.remainingPercentage&&a.remainingPercentage<=0)if(a.resetAt){let b=new Date(a.resetAt).getTime();b>f&&g.push({...a,resetMs:b})}else g.push({...a,resetMs:0});if(g.length>0){g.sort((a,b)=>b.resetMs-a.resetMs);let a=g[0];return{used:a.used??1e3,total:a.total??1e3,remainingPercentage:0,resetAt:a.resetAt,displayName:a.displayName||c}}let h=e.filter(a=>a&&"number"==typeof a.remainingPercentage&&!(a.remainingPercentage<=0&&a.resetAt&&new Date(a.resetAt).getTime()<=f));return 0===h.length?null:(h.sort((a,b)=>a.remainingPercentage-b.remainingPercentage),h[0])}function n(a,b){let c=`${a}|${b}`;j.delete(c);let d=k.get(c);if(void 0===d)return;k.delete(c);let e=g.get(a),f=new Date(d).toISOString();e?.[b]?.resetAt===f&&delete e[b];let h=l(b);"claude_gpt"===h&&e?.claude_gpt_session?.resetAt===f?delete e.claude_gpt_session:"gemini"===h&&e?.gemini_session?.resetAt===f&&delete e.gemini_session,g.set(a,e)}function o(){return g}async function p(a,b,c){let d=Date.now(),e=i.get(a);if(e)return e;let j=h.get(a)||0;if(d-j<3e4)return f.debug("AG_QUOTA",`${a.slice(0,8)} | skip refresh (${Math.round((d-j)/1e3)}s ago)`),g.get(a)||null;h.set(a,d);let k=q(a,b,c,d);i.set(a,k);try{return await k}finally{i.delete(a)}}async function q(a,b,c,h){try{let f=await (0,d.B)(c||{}),h={connectionProxyEnabled:!0===f.connectionProxyEnabled,connectionProxyUrl:f.connectionProxyUrl||"",connectionNoProxy:f.connectionNoProxy||"",vercelRelayUrl:f.vercelRelayUrl||"",strictProxy:!0===f.strictProxy},i=await (0,e.c)(b,c,h);if(!i?.quotas||i.message)return null;return g.set(a,function(a,b){let c=Date.now();for(let[d,e]of k)if(d.startsWith(`${a}|`)){if(e<=c){k.delete(d);continue}b[d.slice(a.length+1)]={remainingPercentage:0,resetAt:new Date(e).toISOString()}}return b}(a,i.quotas)),i.quotas}catch(b){return f.warn("AG_QUOTA",`${a.slice(0,8)} | refresh failed: ${b.message}`),null}}async function r(a,b,c,d,e){f.info("AG_QUOTA",`${a.slice(0,8)} | ${b} on ${c} — refreshing quota`);let h=m(await p(a,d,e),c);if(!h||h.remainingPercentage>0){let d=`${a}|${c}`,e=Date.now(),i=j.get(d),l=i&&e-i.windowStart<=6e4?i.windowStart:e,m=i&&l===i.windowStart?i.count+1:1;if(j.set(d,{count:m,windowStart:l}),m>=3){j.delete(d);let i=e+9e5,l=h?`${Math.round(h.remainingPercentage)}%`:"unknown";f.warn("AG_QUOTA",`${a.slice(0,8)} | STRIKE_${b} ${c} — ${m}x 429 (quota ${l}); CACHE_BLOCK 15m`);let n=g.get(a)||{};return n[c]={remainingPercentage:0,resetAt:new Date(i).toISOString()},g.set(a,n),k.set(d,i),i}return null}if(j.delete(`${a}|${c}`),!h.resetAt)return null;let i=new Date(h.resetAt).getTime();if(i<=Date.now())return null;let l=g.get(a)||{};return l[c]={remainingPercentage:0,resetAt:h.resetAt},g.set(a,l),f.warn("AG_QUOTA",`${a.slice(0,8)} | UPSTREAM_${b} ${c} — quota exhausted; CACHE_BLOCK until ${h.resetAt}`),i}},80238:(a,b,c)=>{c.d(b,{Pt:()=>n,Tr:()=>o,c1:()=>l,kI:()=>p,vk:()=>m});var d=c(89718),e=c(39326),f=c(12557),g=c(3662),h=c(40615),i=c(45974),j=c(7803);let k=Promise.resolve();async function l(a,b=null,c=null,g={}){let m,n=b instanceof Set?b:b?new Set([b]):new Set,o=g?.preferredConnectionId||null,p=g?.requestedModel||c,q=k;k=new Promise(a=>{m=a});try{let b;await q;let k=(0,h.rs)(a);if(h.IS[k]?.noAuth){let a=((await (0,d.mt)()).providerStrategies||{})[k]||{},b=a.rotateStrategy||"none",c=a.proxyPoolId||null;if("none"!==b){let a=(await (0,d.ui)({isActive:!0})).filter(a=>a.proxyUrl).map(a=>a.id);c=(0,e.p)(a,b,k)}let f=await (0,e.B)({proxyPoolId:c||""});return{id:"noauth",connectionName:"Public",isActive:!0,accessToken:"public",providerSpecificData:{connectionProxyEnabled:f.connectionProxyEnabled,connectionProxyUrl:f.connectionProxyUrl,connectionNoProxy:f.connectionNoProxy,connectionProxyPoolId:f.proxyPoolId||null,vercelRelayUrl:f.vercelRelayUrl||"",strictProxy:!0===f.strictProxy}}}let l=await (0,d.getProviderConnections)({provider:k,isActive:!0});if(j.debug("AUTH",`${a} | total connections: ${l.length}, excludeIds: ${n.size>0?[...n].join(","):"none"}, model: ${c||"any"}`),0===l.length)return j.warn("AUTH",`No credentials for ${a}`),null;let m="antigravity"===k,r=m&&c?(0,i.d0)():null,s=l.filter(a=>{if(n.has(a.id)||(0,f.Bl)(a,c))return!1;let b=a.providerSpecificData?.enabledModels;if("codex"===k&&Array.isArray(b)&&b.length&&p&&!b.includes(p))return!1;if(m&&c&&r){let b=r.get(a.id),d=(0,i.CY)(b,c)||b?.[c];if(d&&d.remainingPercentage<=0&&d.resetAt&&new Date(d.resetAt).getTime()>Date.now()){let b=a.id?.slice(0,8)||"unknown";return j.info("AG_QUOTA",`${b} | CACHE_BLOCK ${c} — skip upstream until ${d.resetAt}`),!1}}return!0});if(g.healthProbe){let a=s.filter(a=>"unavailable"!==a.testStatus);a.length&&(s=a)}if(j.debug("AUTH",`${a} | available: ${s.length}/${l.length}`),l.forEach(a=>{let b=n.has(a.id),d=(0,f.Bl)(a,c);if(b||d){let e=(0,f.kJ)(a);j.debug("AUTH",` → ${a.id?.slice(0,8)} | ${b?"excluded":""} ${d?`modelLocked(${c}) until ${e}`:""}`)}}),0===s.length){let b=l.filter(a=>(0,f.Bl)(a,c)),d=b.map(a=>(0,f.kJ)(a)).filter(Boolean);m&&c&&r&&l.forEach(a=>{let b=r.get(a.id),e=(0,i.CY)(b,c)||b?.[c],f=e?.resetAt;f&&new Date(f).getTime()>Date.now()&&d.push(f)});let e=d.sort()[0]||null;if(e){let d=b[0];return j.warn("AUTH",`${a} | all ${l.length} accounts locked for ${c||"all"} (${(0,f.Qo)(e)}) | lastError=${d?.lastError?.slice(0,50)}`),{allRateLimited:!0,retryAfter:e,retryAfterHuman:(0,f.Qo)(e),lastError:d?.lastError||null,lastErrorCode:d?.errorCode||null}}return j.warn("AUTH",`${a} | all ${l.length} accounts unavailable`),null}let t=await (0,d.mt)(),u=(t.providerStrategies||{})[k]||{},v=u.fallbackStrategy||t.fallbackStrategy||"fill-first";if(o&&(b=s.find(a=>a.id===o))&&j.info("AUTH",`${a} | pinned to ${b.id?.slice(0,8)} (${b.name||b.email||"unnamed"})`),b);else if("round-robin"===v){let a=u.stickyRoundRobinLimit||t.stickyRoundRobinLimit||3,c=[...s].sort((a,b)=>a.lastUsedAt||b.lastUsedAt?a.lastUsedAt?b.lastUsedAt?new Date(b.lastUsedAt)-new Date(a.lastUsedAt):-1:1:(a.priority||999)-(b.priority||999))[0],e=c?.consecutiveUseCount||0;c&&c.lastUsedAt&&e<a?(b=c,await (0,d.updateProviderConnection)(b.id,{lastUsedAt:new Date().toISOString(),consecutiveUseCount:(b.consecutiveUseCount||0)+1})):(b=[...s].sort((a,b)=>a.lastUsedAt||b.lastUsedAt?a.lastUsedAt?b.lastUsedAt?new Date(a.lastUsedAt)-new Date(b.lastUsedAt):1:-1:(a.priority||999)-(b.priority||999))[0],await (0,d.updateProviderConnection)(b.id,{lastUsedAt:new Date().toISOString(),consecutiveUseCount:1}))}else b=s[0];let w=await (0,e.B)(b.providerSpecificData||{});return{authType:b.authType,apiKey:b.apiKey,accessToken:b.accessToken,refreshToken:b.refreshToken,idToken:b.idToken,expiresAt:b.expiresAt,expiresIn:b.expiresIn,lastRefreshAt:b.lastRefreshAt,projectId:b.projectId,connectionName:b.displayName||b.name||b.email||b.id,copilotToken:b.providerSpecificData?.copilotToken,providerSpecificData:{...b.providerSpecificData||{},connectionProxyEnabled:w.connectionProxyEnabled,connectionProxyUrl:w.connectionProxyUrl,connectionNoProxy:w.connectionNoProxy,connectionProxyPoolId:w.proxyPoolId||null,vercelRelayUrl:w.vercelRelayUrl||"",strictProxy:!0===w.strictProxy},connectionId:b.id,testStatus:b.testStatus,lastError:b.lastError,_connection:b}}finally{m&&m()}}async function m(a,b,c,e=null,i=null,k=null){let l,n,o;if(!a||"noauth"===a)return{shouldFallback:!1,cooldownMs:0};let p=(await (0,d.getProviderConnections)({provider:e})).find(b=>b.id===a),q=p?.backoffLevel||0,r=function(a,b,c){if("github"!==(0,h.rs)(c)||402!==Number(a)||!String(b||"").toLowerCase().includes("you've reached your additional usage limit for your plan"))return null;let d=new Date;return Date.UTC(d.getUTCFullYear(),d.getUTCMonth()+1,1)}(b,c,e);if(r?(l=!0,n=r-Date.now(),o=0):k&&k>Date.now()?(l=!0,n="antigravity"===(0,h.rs)(e)?k-Date.now():Math.min(k-Date.now(),g.fh),o=0):{shouldFallback:l,cooldownMs:n,newBackoffLevel:o}=(0,f.hk)(b,c,q,(0,h.rs)(e)),!l)return{shouldFallback:!1,cooldownMs:0};let s="string"==typeof c?c.slice(0,200):"Provider error",t=(0,f.S5)(r?null:i,n);await (0,d.updateProviderConnection)(a,{...t,testStatus:"unavailable",lastError:s,errorCode:b,lastErrorAt:new Date().toISOString(),backoffLevel:o??q});let u=Object.keys(t)[0],v=p?.displayName||p?.name||p?.email||a.slice(0,8);return j.warn("AUTH",`${v} locked ${u} for ${Math.round(n/1e3)}s [${b}]`),e&&b&&s&&console.error(`❌ ${e} [${b}]: ${s}`),{shouldFallback:!0,cooldownMs:n}}async function n(a,b,c=null){if(!a||"noauth"===a)return;let e=b._connection||b,f=Date.now(),g=Object.keys(e).filter(a=>a.startsWith("modelLock_"));if(!e.testStatus&&!e.lastError&&0===g.length)return;let h=g.filter(a=>{if(c&&a===`modelLock_${c}`||c&&"modelLock___all"===a)return!0;let b=e[a];return b&&new Date(b).getTime()<=f});if(0===h.length&&"unavailable"!==e.testStatus&&!e.lastError)return;let i=g.filter(a=>{if(h.includes(a))return!1;let b=e[a];return b&&new Date(b).getTime()>f}),j=Object.fromEntries(h.map(a=>[a,null]));0===i.length&&Object.assign(j,{testStatus:"active",lastError:null,errorCode:null,lastErrorAt:null,backoffLevel:0}),await (0,d.updateProviderConnection)(a,j)}function o(a){let b=a.headers.get("Authorization");if(b?.startsWith("Bearer "))return b.slice(7);let c=a.headers.get("x-api-key");return c||a.headers.get("x-goog-api-key")||new URL(a.url).searchParams.get("key")}async function p(a){return!!a&&await (0,d.ek)(a)}}};
|