@synthever/jrouter 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +14 -14
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +2 -2
- 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_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_client-reference-manifest.js +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_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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_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_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_client-reference-manifest.js +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_client-reference-manifest.js +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_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 +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +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/oidc/callback/route.js +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/test/route.js +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/saml/acs/route.js +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/start/route.js +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/status/route.js +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/antigravity-mitm/alias/route.js +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/claude-settings/route.js +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/codewhale-settings/route.js +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-settings/route.js +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/cowork-mcp-registry/route.js +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/crush-settings/route.js +2 -2
- 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/droid-settings/route.js +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/grok-build-settings/route.js +5 -5
- 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/jcode-settings/route.js +2 -2
- 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/omp-settings/route.js +3 -3
- 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/opencode-settings/route.js +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/smelt-settings/route.js +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/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +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/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +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]/secret/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +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]/sse/route.js +2 -2
- 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/elevenlabs/voices/route.js +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/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/check-all/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/config/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/model/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/run-scheduled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/model-health/summary/route.js +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/availability/route.js +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/custom/route.js +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/limits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +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/codex/bulk-import/route.js +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/cursor/import/route.js +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/grok-cli/bulk-import/route.js +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/kiro/api-key/route.js +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-cli-proxy/route.js +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/xiaomi-mimo/api-key/route.js +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/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +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/route.js +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/providers/[id]/connections/keys/route.js +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]/overrides/route.js +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/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +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]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- 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/route.js +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/pxpipe/health/route.js +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/logs/route.js +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/start/route.js +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/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +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/proxy-test/route.js +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/route.js +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/stream/route.js +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/translate/route.js +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]/codex-reset-credits/route.js +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/chart/route.js +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/logs/route.js +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/request-details/route.js +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/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +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/messages/count_tokens/route.js +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/version/route.js +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 +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/health.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk/dashboard/health/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/health.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/health.segments/_tree.segment.rsc +1 -1
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/playground.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +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 +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page.js +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 +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login/page.js +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 +6 -6
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest.body +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 +14 -14
- 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/2524.js +1 -1
- package/app/.next-cli-build/server/chunks/2732.js +1 -1
- package/app/.next-cli-build/server/chunks/2760.js +1 -1
- package/app/.next-cli-build/server/chunks/3192.js +1 -1
- package/app/.next-cli-build/server/chunks/3360.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/436.js +1 -1
- package/app/.next-cli-build/server/chunks/455.js +1 -1
- package/app/.next-cli-build/server/chunks/4642.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/6296.js +5 -5
- 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/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/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/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +2 -2
- 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/{1321-b2785838003873e1.js → 1321-9eb7d54c5b900efb.js} +1 -1
- package/app/.next-cli-build/static/chunks/{5497-66e7c2a2b715a638.js → 5497-973a06c94a94aff7.js} +1 -1
- 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/profile/{page-de6dfc43c2687bd8.js → page-1a560f2b5cdf2e31.js} +1 -1
- 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/custom-server.js +2 -2
- package/app/package.json +1 -1
- 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/static/chunks/761-57ed45cdddcf32eb.js +0 -132
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-316b3186a841d862.js +0 -1
- /package/app/.next-cli-build/static/{fjLlI_-eBYMOp6J-a-q-6 → MDZXE-9g1sq006f6JNky9}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{fjLlI_-eBYMOp6J-a-q-6 → MDZXE-9g1sq006f6JNky9}/_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.2",
|
|
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)?");
|