9router 0.4.25 → 0.4.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +9 -8
- package/app/.next/build-manifest.json +2 -2
- package/app/.next/routes-manifest.json +6 -0
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error/page.js +2 -2
- package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error.html +1 -1
- package/app/.next/server/app/_global-error.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/_not-found/page.js +2 -2
- package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_not-found.html +1 -1
- package/app/.next/server/app/_not-found.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/api/auth/login/route.js +1 -1
- package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/logout/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next/server/app/api/cloud/auth/route.js +1 -1
- package/app/.next/server/app/api/cloud/auth/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
- package/app/.next/server/app/api/cloud/credentials/update/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
- package/app/.next/server/app/api/cloud/model/resolve/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
- package/app/.next/server/app/api/cloud/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/route.js +1 -1
- package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next/server/app/api/health/route.js +1 -1
- package/app/.next/server/app/api/init/route.js +1 -1
- package/app/.next/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/route.js +1 -1
- package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next/server/app/api/locale/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/availability/route.js +1 -1
- package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/custom/route.js +1 -1
- package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/disabled/route.js +1 -1
- package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/route.js +1 -1
- package/app/.next/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/test/route.js +1 -1
- package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +2 -2
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pricing/route.js +1 -1
- package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/client/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/database/route.js +1 -1
- package/app/.next/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/route.js +1 -1
- package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/shutdown/route.js +1 -1
- package/app/.next/server/app/api/tags/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next/server/app/api/translator/load/route.js +1 -1
- package/app/.next/server/app/api/translator/save/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/translate/route.js +1 -1
- package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-login/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/chart/route.js +1 -1
- package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/history/route.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/providers/route.js +1 -1
- package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stats/route.js +1 -1
- package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stream/route.js +2 -2
- package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/route.js +1 -1
- package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/search/route.js +1 -1
- package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next/server/app/api/version/route.js +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js +1 -0
- package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -0
- package/app/.next/server/app/api/version/shutdown/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/version/update/route.js +1 -1
- package/app/.next/server/app/callback/page.js +2 -2
- package/app/.next/server/app/callback/page.js.nft.json +1 -1
- package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/callback.html +1 -1
- package/app/.next/server/app/callback.rsc +4 -4
- package/app/.next/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.html +1 -1
- package/app/.next/server/app/dashboard/combos.rsc +6 -6
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.html +1 -1
- package/app/.next/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.rsc +6 -6
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.html +1 -1
- package/app/.next/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.html +1 -1
- package/app/.next/server/app/dashboard/profile.rsc +6 -6
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.html +1 -1
- package/app/.next/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.html +1 -1
- package/app/.next/server/app/dashboard/providers.rsc +6 -6
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.html +2 -2
- package/app/.next/server/app/dashboard/quota.rsc +7 -7
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.html +1 -1
- package/app/.next/server/app/dashboard/skills.rsc +6 -6
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.html +1 -1
- package/app/.next/server/app/dashboard/translator.rsc +6 -6
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.html +1 -1
- package/app/.next/server/app/dashboard/usage.rsc +6 -6
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.html +1 -1
- package/app/.next/server/app/dashboard.rsc +6 -6
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/favicon.ico/route.js +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +4 -4
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/landing/page.js +2 -2
- package/app/.next/server/app/landing/page.js.nft.json +1 -1
- package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/landing.html +1 -1
- package/app/.next/server/app/landing.rsc +5 -5
- package/app/.next/server/app/landing.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next/server/app/login/page.js +2 -2
- package/app/.next/server/app/login/page.js.nft.json +1 -1
- package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/login.html +1 -1
- package/app/.next/server/app/login.rsc +5 -5
- package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next/server/app/page.js +2 -2
- package/app/.next/server/app/page.js.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app-paths-manifest.json +9 -8
- package/app/.next/server/chunks/1574.js +1 -1
- package/app/.next/server/chunks/2049.js +1 -1
- package/app/.next/server/chunks/3774.js +2 -2
- package/app/.next/server/chunks/450.js +1 -1
- package/app/.next/server/chunks/4892.js +2 -2
- package/app/.next/server/chunks/499.js +9 -0
- package/app/.next/server/chunks/6263.js +1 -1
- package/app/.next/server/chunks/6283.js +1 -1
- package/app/.next/server/chunks/6890.js +1 -1
- package/app/.next/server/chunks/7292.js +9 -0
- package/app/.next/server/chunks/7810.js +1 -1
- package/app/.next/server/chunks/8035.js +1 -1
- package/app/.next/server/chunks/8367.js +2 -2
- package/app/.next/server/middleware-build-manifest.js +1 -1
- package/app/.next/server/middleware.js +3 -3
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/static/chunks/{1939-5f1c000b260c0698.js → 1939-d9b80a9e484ae21d.js} +1 -1
- package/app/.next/static/chunks/{4156-773921135dfe2c75.js → 4156-3a7b60c65001de9a.js} +3 -3
- package/app/.next/static/chunks/505-618f19b62fafd836.js +1 -0
- package/app/.next/static/chunks/8035-ecd24cc76e55f5ba.js +3 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-7890b74e481f9d92.js → page-29ce6662637d64e4.js} +1 -1
- package/app/.next/static/chunks/app/_global-error/page-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/auth/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/init/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/settings/require-login/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/disable/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/enable/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/status/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/landing/{page-34e119eac6b7e1a4.js → page-0084367666bd9046.js} +1 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/app/page-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-5ea305bd1a1dc348.js +1 -0
- package/app/.next/static/css/180855a9ef4ea7f9.css +1 -0
- package/app/.next/static/eJ_F0cODdJRrmD-63IF09/_buildManifest.js +1 -0
- package/app/node_modules/sql.js/.devcontainer/Dockerfile +76 -0
- package/app/node_modules/sql.js/.devcontainer/devcontainer.json +20 -0
- package/app/node_modules/sql.js/.eslintrc.js +68 -0
- package/app/node_modules/sql.js/.jsdoc.config.json +38 -0
- package/app/node_modules/sql.js/.nojekyll +0 -0
- package/app/node_modules/sql.js/AUTHORS +8 -0
- package/app/node_modules/sql.js/CONTRIBUTING.md +66 -0
- package/app/node_modules/sql.js/LICENSE +44 -0
- package/app/node_modules/sql.js/README.md +357 -0
- package/app/node_modules/sql.js/dist/sql-asm-debug.js +140890 -0
- package/app/node_modules/sql.js/dist/sql-asm-memory-growth.js +204 -0
- package/app/node_modules/sql.js/dist/sql-asm.js +202 -0
- package/app/node_modules/sql.js/dist/sql-wasm-browser-debug.js +7157 -0
- package/app/node_modules/sql.js/dist/sql-wasm-browser-debug.wasm +0 -0
- package/app/node_modules/sql.js/dist/sql-wasm-browser.js +183 -0
- package/app/node_modules/sql.js/dist/sql-wasm-browser.wasm +0 -0
- package/app/node_modules/sql.js/dist/sql-wasm-debug.js +7265 -0
- package/app/node_modules/sql.js/dist/sql-wasm-debug.wasm +0 -0
- package/app/node_modules/sql.js/dist/sql-wasm.js +185 -0
- package/app/node_modules/sql.js/dist/sql-wasm.wasm +0 -0
- package/app/node_modules/sql.js/dist/worker.sql-asm-debug.js +141011 -0
- package/app/node_modules/sql.js/dist/worker.sql-asm.js +323 -0
- package/app/node_modules/sql.js/dist/worker.sql-wasm-debug.js +7386 -0
- package/app/node_modules/sql.js/dist/worker.sql-wasm.js +306 -0
- package/app/node_modules/sql.js/documentation_index.md +26 -0
- package/app/node_modules/sql.js/eslint.config.cjs +57 -0
- package/app/node_modules/sql.js/logo.svg +13 -0
- package/app/node_modules/sql.js/package.json +58 -0
- package/app/package.json +2 -2
- package/app/src/lib/db/adapters/nodeSqliteAdapter.js +83 -0
- package/app/src/lib/updater/updater.js +25 -0
- package/app/src/mitm/server.js +1 -1
- package/cli.js +22 -14
- package/hooks/postinstall.js +10 -68
- package/hooks/sqliteRuntime.js +115 -0
- package/package.json +2 -1
- package/app/.next/static/chunks/505-cb7fd622c7ae02af.js +0 -1
- package/app/.next/static/chunks/8035-c87b74c7e1a7cf78.js +0 -3
- package/app/.next/static/chunks/app/_global-error/page-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/auth/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/init/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/settings/require-login/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/disable/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/enable/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/status/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/app/page-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-20fa0affdf8859be.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-20fa0affdf8859be.js +0 -1
- package/app/.next/static/css/5d8cd780e73c8876.css +0 -1
- package/app/.next/static/kiS7vH5c59DJK3b2ti1jN/_buildManifest.js +0 -1
- package/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/app/node_modules/better-sqlite3/lib/database.js +0 -90
- package/app/node_modules/better-sqlite3/lib/index.js +0 -3
- package/app/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
- package/app/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
- package/app/node_modules/better-sqlite3/lib/methods/function.js +0 -31
- package/app/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
- package/app/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
- package/app/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
- package/app/node_modules/better-sqlite3/lib/methods/table.js +0 -189
- package/app/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
- package/app/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
- package/app/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
- package/app/node_modules/better-sqlite3/lib/util.js +0 -12
- package/app/node_modules/better-sqlite3/package.json +0 -59
- /package/app/.next/static/{kiS7vH5c59DJK3b2ti1jN → eJ_F0cODdJRrmD-63IF09}/_ssgManifest.js +0 -0
|
@@ -172,6 +172,29 @@ function runInstall() {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
function openBrowser(url) {
|
|
176
|
+
const platform = process.platform;
|
|
177
|
+
const cmd = platform === "darwin" ? `open "${url}"`
|
|
178
|
+
: platform === "win32" ? `start "" "${url}"`
|
|
179
|
+
: `xdg-open "${url}"`;
|
|
180
|
+
try { spawn(cmd, { shell: true, detached: true, stdio: "ignore" }).unref(); } catch { /* ignore */ }
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Wait until app port is listening (server alive again), then open dashboard
|
|
184
|
+
async function waitForAppAndOpenBrowser() {
|
|
185
|
+
const deadline = Date.now() + 30000;
|
|
186
|
+
while (Date.now() < deadline) {
|
|
187
|
+
const busy = await isAppPortBusy();
|
|
188
|
+
if (busy) {
|
|
189
|
+
openBrowser(`http://localhost:${appPort}/dashboard`);
|
|
190
|
+
pushLog(`[updater] app ready, opened dashboard`);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
await sleep(1000);
|
|
194
|
+
}
|
|
195
|
+
pushLog(`[updater] app not responding within 30s, skip browser open`);
|
|
196
|
+
}
|
|
197
|
+
|
|
175
198
|
function relaunchApp() {
|
|
176
199
|
if (process.env.UPDATER_RELAUNCH !== "1") return;
|
|
177
200
|
const cmd = process.env.UPDATER_RELAUNCH_CMD;
|
|
@@ -189,6 +212,8 @@ function relaunchApp() {
|
|
|
189
212
|
});
|
|
190
213
|
child.unref();
|
|
191
214
|
pushLog(`[updater] relaunched: ${cmd} ${args.join(" ")} (pid=${child.pid})`);
|
|
215
|
+
// Wait for new app to come up, then auto-open browser so user sees the result
|
|
216
|
+
waitForAppAndOpenBrowser();
|
|
192
217
|
} catch (e) {
|
|
193
218
|
pushLog(`[updater] relaunch failed: ${e.message}`);
|
|
194
219
|
}
|
package/app/src/mitm/server.js
CHANGED
|
@@ -24,7 +24,7 @@ Private-Lines: `+u+`\r
|
|
|
24
24
|
Private-MAC: `+b.digest().toHex()+`\r
|
|
25
25
|
`,i};Ia.publicKeyToOpenSSH=function(e,t){var a="ssh-rsa";t=t||"";var r=Ce.util.createBuffer();return Er(r,a),xt(r,e.e),xt(r,e.n),a+" "+Ce.util.encode64(r.bytes())+" "+t};Ia.privateKeyToOpenSSH=function(e,t){return t?Ce.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Ce.pki.privateKeyToPem(e)};Ia.getPublicKeyFingerprint=function(e,t){t=t||{};var a=t.md||Ce.md.md5.create(),r="ssh-rsa",n=Ce.util.createBuffer();Er(n,r),xt(n,e.e),xt(n,e.n),a.start(),a.update(n.getBytes());var i=a.digest();if(t.encoding==="hex"){var s=i.toHex();return t.delimiter?s.match(/.{2}/g).join(t.delimiter):s}else{if(t.encoding==="binary")return i.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return i};function xt(e,t){var a=t.toString(16);a[0]>="8"&&(a="00"+a);var r=Ce.util.hexToBytes(a);e.putInt32(r.length),e.putBytes(r)}function Er(e,t){e.putInt32(t.length),e.putString(t)}function Ta(){for(var e=Ce.md.sha1.create(),t=arguments.length,a=0;a<t;++a)e.update(arguments[a]);return e.digest()}});var wo=V((Rh,Bo)=>{Bo.exports=$();Lt();Qs();lt();$r();wr();co();ur();yo();Co();xo();gn();ia();jt();cn();Cn();Io();xn();dn();tn();da();rt();nn();bo();Bn();ne()});var Lo=V((Lh,Ro)=>{var _o=require("path"),Ze=require("fs"),et=wo(),{MITM_DIR:Aa}=ir(),qt=_o.join(Aa,"rootCA.key"),Bt=_o.join(Aa,"rootCA.crt");function No(e){try{let t=et.pki.certificateFromPem(Ze.readFileSync(e,"utf8")),a=new Date(Date.now()+720*60*60*1e3);return t.validity.notAfter<a}catch{return!0}}async function id(){let e=Ze.existsSync(qt)&&Ze.existsSync(Bt);if(e&&!No(Bt))return console.log("\u2705 Root CA already exists"),{key:qt,cert:Bt};if(e){console.log("\u{1F510} Root CA expired or expiring soon \u2014 regenerating...");try{Ze.unlinkSync(qt)}catch{}try{Ze.unlinkSync(Bt)}catch{}}Ze.existsSync(Aa)||Ze.mkdirSync(Aa,{recursive:!0}),console.log("\u{1F510} Generating Root CA certificate...");let t=et.pki.rsa.generateKeyPair(2048),a=et.pki.createCertificate();a.publicKey=t.publicKey,a.serialNumber="01",a.validity.notBefore=new Date,a.validity.notAfter=new Date,a.validity.notAfter.setFullYear(a.validity.notBefore.getFullYear()+10);let r=[{name:"commonName",value:"9Router MITM Root CA"},{name:"organizationName",value:"9Router"},{name:"countryName",value:"US"}];a.setSubject(r),a.setIssuer(r),a.setExtensions([{name:"basicConstraints",cA:!0,critical:!0},{name:"keyUsage",keyCertSign:!0,cRLSign:!0,critical:!0},{name:"subjectKeyIdentifier"}]),a.sign(t.privateKey,et.md.sha256.create());let n=et.pki.privateKeyToPem(t.privateKey),i=et.pki.certificateToPem(a);return Ze.writeFileSync(qt,n),Ze.writeFileSync(Bt,i),console.log("\u2705 Root CA generated successfully"),{key:qt,cert:Bt}}function sd(){if(!Ze.existsSync(qt)||!Ze.existsSync(Bt))throw new Error("Root CA not found. Generate it first.");let e=Ze.readFileSync(qt,"utf8"),t=Ze.readFileSync(Bt,"utf8");return{key:et.pki.privateKeyFromPem(e),cert:et.pki.certificateFromPem(t)}}function od(e,t){let a=et.pki.rsa.generateKeyPair(2048),r=et.pki.createCertificate();return r.publicKey=a.publicKey,r.serialNumber=Math.floor(Math.random()*1e6).toString(),r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1),r.setSubject([{name:"commonName",value:e}]),r.setIssuer(t.cert.subject.attributes),r.setExtensions([{name:"basicConstraints",cA:!1},{name:"keyUsage",digitalSignature:!0,keyEncipherment:!0},{name:"extKeyUsage",serverAuth:!0,clientAuth:!0},{name:"subjectAltName",altNames:[{type:2,value:e},{type:2,value:`*.${e}`}]}]),r.sign(t.key,et.md.sha256.create()),{key:et.pki.privateKeyToPem(a.privateKey),cert:et.pki.certificateToPem(r)}}Ro.exports={generateRootCA:id,loadRootCA:sd,generateLeafCert:od,isCertExpired:No,ROOT_CA_CERT_PATH:Bt,ROOT_CA_KEY_PATH:qt}});var ko=V((Ph,Do)=>{var Dh=require("path"),kh=require("fs"),{MITM_DIR:Uh}=ir(),{generateRootCA:ud,loadRootCA:ld,generateLeafCert:cd}=Lo();async function fd(){return await ud()}function dd(e){try{let t=ld(),a=cd(e,t);return{key:a.key,cert:a.cert}}catch(t){return console.error(`Failed to generate cert for ${e}:`,t.message),null}}Do.exports={generateCert:fd,getCertForDomain:dd}});var St=V(ba=>{"use strict";ba.getBooleanOption=(e,t)=>{let a=!1;if(t in e&&typeof(a=e[t])!="boolean")throw new TypeError(`Expected the "${t}" option to be a boolean`);return a};ba.cppdb=Symbol();ba.inspect=Symbol.for("nodejs.util.inspect.custom")});var zn=V((Vh,Uo)=>{"use strict";var Gn={value:"SqliteError",writable:!0,enumerable:!1,configurable:!0};function tr(e,t){if(new.target!==tr)return new tr(e,t);if(typeof t!="string")throw new TypeError("Expected second argument to be a string");Error.call(this,e),Gn.value=""+e,Object.defineProperty(this,"message",Gn),Error.captureStackTrace(this,tr),this.code=t}Object.setPrototypeOf(tr,Error);Object.setPrototypeOf(tr.prototype,Error.prototype);Object.defineProperty(tr.prototype,"name",Gn);Uo.exports=tr});var Oo=V((Fh,Po)=>{var Ba=require("path").sep||"/";Po.exports=pd;function pd(e){if(typeof e!="string"||e.length<=7||e.substring(0,7)!="file://")throw new TypeError("must pass in a file:// URI to convert to a file path");var t=decodeURI(e.substring(7)),a=t.indexOf("/"),r=t.substring(0,a),n=t.substring(a+1);return r=="localhost"&&(r=""),r&&(r=Ba+Ba+r),n=n.replace(/^(.+)\|/,"$1:"),Ba=="\\"&&(n=n.replace(/\//g,"\\")),/^.+\:/.test(n)||(n=Ba+n),r+n}});var qo=V((xr,Ko)=>{var Qn=require("fs"),_a=require("path"),hd=Oo(),wa=_a.join,yd=_a.dirname,Vo=Qn.accessSync&&function(e){try{Qn.accessSync(e)}catch{return!1}return!0}||Qn.existsSync||_a.existsSync,Fo={arrow:process.env.NODE_BINDINGS_ARROW||" \u2192 ",compiled:process.env.NODE_BINDINGS_COMPILED_DIR||"compiled",platform:process.platform,arch:process.arch,nodePreGyp:"node-v"+process.versions.modules+"-"+process.platform+"-"+process.arch,version:process.versions.node,bindings:"bindings.node",try:[["module_root","build","bindings"],["module_root","build","Debug","bindings"],["module_root","build","Release","bindings"],["module_root","out","Debug","bindings"],["module_root","Debug","bindings"],["module_root","out","Release","bindings"],["module_root","Release","bindings"],["module_root","build","default","bindings"],["module_root","compiled","version","platform","arch","bindings"],["module_root","addon-build","release","install-root","bindings"],["module_root","addon-build","debug","install-root","bindings"],["module_root","addon-build","default","install-root","bindings"],["module_root","lib","binding","nodePreGyp","bindings"]]};function gd(e){typeof e=="string"?e={bindings:e}:e||(e={}),Object.keys(Fo).map(function(u){u in e||(e[u]=Fo[u])}),e.module_root||(e.module_root=xr.getRoot(xr.getFileName())),_a.extname(e.bindings)!=".node"&&(e.bindings+=".node");for(var t=typeof __webpack_require__=="function"?__non_webpack_require__:require,a=[],r=0,n=e.try.length,i,s,o;r<n;r++){i=wa.apply(null,e.try[r].map(function(u){return e[u]||u})),a.push(i);try{return s=e.path?t.resolve(i):t(i),e.path||(s.path=i),s}catch(u){if(u.code!=="MODULE_NOT_FOUND"&&u.code!=="QUALIFIED_PATH_RESOLUTION_FAILED"&&!/not find/i.test(u.message))throw u}}throw o=new Error(`Could not locate the bindings file. Tried:
|
|
26
26
|
`+a.map(function(u){return e.arrow+u}).join(`
|
|
27
|
-
`)),o.tries=a,o}Ko.exports=xr=gd;xr.getFileName=function(t){var a=Error.prepareStackTrace,r=Error.stackTraceLimit,n={},i;Error.stackTraceLimit=10,Error.prepareStackTrace=function(o,u){for(var l=0,c=u.length;l<c;l++)if(i=u[l].getFileName(),i!==__filename)if(t){if(i!==t)return}else return},Error.captureStackTrace(n),n.stack,Error.prepareStackTrace=a,Error.stackTraceLimit=r;var s="file://";return i.indexOf(s)===0&&(i=hd(i)),i};xr.getRoot=function(t){for(var a=yd(t),r;;){if(a==="."&&(a=process.cwd()),Vo(wa(a,"package.json"))||Vo(wa(a,"node_modules")))return a;if(r===a)throw new Error('Could not find module root given file: "'+t+'". Do you have a `package.json` file? ');r=a,a=wa(a,"..")}}});var Mo=V(Mt=>{"use strict";var{cppdb:ft}=St();Mt.prepare=function(t){return this[ft].prepare(t,this,!1)};Mt.exec=function(t){return this[ft].exec(t),this};Mt.close=function(){return this[ft].close(),this};Mt.loadExtension=function(...t){return this[ft].loadExtension(...t),this};Mt.defaultSafeIntegers=function(...t){return this[ft].defaultSafeIntegers(...t),this};Mt.unsafeMode=function(...t){return this[ft].unsafeMode(...t),this};Mt.getters={name:{get:function(){return this[ft].name},enumerable:!0},open:{get:function(){return this[ft].open},enumerable:!0},inTransaction:{get:function(){return this[ft].inTransaction},enumerable:!0},readonly:{get:function(){return this[ft].readonly},enumerable:!0},memory:{get:function(){return this[ft].memory},enumerable:!0}}});var zo=V((qh,Go)=>{"use strict";var{cppdb:vd}=St(),Ho=new WeakMap;Go.exports=function(t){if(typeof t!="function")throw new TypeError("Expected first argument to be a function");let a=this[vd],r=md(a,this),{apply:n}=Function.prototype,i={default:{value:Na(n,t,a,r.default)},deferred:{value:Na(n,t,a,r.deferred)},immediate:{value:Na(n,t,a,r.immediate)},exclusive:{value:Na(n,t,a,r.exclusive)},database:{value:this,enumerable:!0}};return Object.defineProperties(i.default.value,i),Object.defineProperties(i.deferred.value,i),Object.defineProperties(i.immediate.value,i),Object.defineProperties(i.exclusive.value,i),i.default.value};var md=(e,t)=>{let a=Ho.get(e);if(!a){let r={commit:e.prepare("COMMIT",t,!1),rollback:e.prepare("ROLLBACK",t,!1),savepoint:e.prepare("SAVEPOINT ` _bs3. `",t,!1),release:e.prepare("RELEASE ` _bs3. `",t,!1),rollbackTo:e.prepare("ROLLBACK TO ` _bs3. `",t,!1)};Ho.set(e,a={default:Object.assign({begin:e.prepare("BEGIN",t,!1)},r),deferred:Object.assign({begin:e.prepare("BEGIN DEFERRED",t,!1)},r),immediate:Object.assign({begin:e.prepare("BEGIN IMMEDIATE",t,!1)},r),exclusive:Object.assign({begin:e.prepare("BEGIN EXCLUSIVE",t,!1)},r)})}return a},Na=(e,t,a,{begin:r,commit:n,rollback:i,savepoint:s,release:o,rollbackTo:u})=>function(){let c,f,y;a.inTransaction?(c=s,f=o,y=u):(c=r,f=n,y=i),c.run();try{let v=e.call(t,this,arguments);if(v&&typeof v.then=="function")throw new TypeError("Transaction function cannot return a promise");return f.run(),v}catch(v){throw a.inTransaction&&(y.run(),y!==i&&f.run()),v}}});var jo=V((Mh,Qo)=>{"use strict";var{getBooleanOption:Cd,cppdb:Ed}=St();Qo.exports=function(t,a){if(a==null&&(a={}),typeof t!="string")throw new TypeError("Expected first argument to be a string");if(typeof a!="object")throw new TypeError("Expected second argument to be an options object");let r=Cd(a,"simple"),n=this[Ed].prepare(`PRAGMA ${t}`,this,!0);return r?n.pluck().get():n.all()}});var Wo=V((Hh,Yo)=>{"use strict";var xd=require("fs"),Sd=require("path"),{promisify:Td}=require("util"),{cppdb:Id}=St(),$o=Td(xd.access);Yo.exports=async function(t,a){if(a==null&&(a={}),typeof t!="string")throw new TypeError("Expected first argument to be a string");if(typeof a!="object")throw new TypeError("Expected second argument to be an options object");t=t.trim();let r="attached"in a?a.attached:"main",n="progress"in a?a.progress:null;if(!t)throw new TypeError("Backup filename cannot be an empty string");if(t===":memory:")throw new TypeError('Invalid backup filename ":memory:"');if(typeof r!="string")throw new TypeError('Expected the "attached" option to be a string');if(!r)throw new TypeError('The "attached" option cannot be an empty string');if(n!=null&&typeof n!="function")throw new TypeError('Expected the "progress" option to be a function');await $o(Sd.dirname(t)).catch(()=>{throw new TypeError("Cannot save backup because the directory does not exist")});let i=await $o(t).then(()=>!1,()=>!0);return Ad(this[Id].backup(this,r,t,i),n||null)};var Ad=(e,t)=>{let a=0,r=!0;return new Promise((n,i)=>{setImmediate(function s(){try{let o=e.transfer(a);if(!o.remainingPages){e.close(),n(o);return}if(r&&(r=!1,a=100),t){let u=t(o);if(u!==void 0)if(typeof u=="number"&&u===u)a=Math.max(0,Math.min(2147483647,Math.round(u)));else throw new TypeError("Expected progress callback to return a number or undefined")}setImmediate(s)}catch(o){e.close(),i(o)}})})}});var Jo=V((Gh,Xo)=>{"use strict";var{cppdb:bd}=St();Xo.exports=function(t){if(t==null&&(t={}),typeof t!="object")throw new TypeError("Expected first argument to be an options object");let a="attached"in t?t.attached:"main";if(typeof a!="string")throw new TypeError('Expected the "attached" option to be a string');if(!a)throw new TypeError('The "attached" option cannot be an empty string');return this[bd].serialize(a)}});var eu=V((zh,Zo)=>{"use strict";var{getBooleanOption:Ra,cppdb:Bd}=St();Zo.exports=function(t,a,r){if(a==null&&(a={}),typeof a=="function"&&(r=a,a={}),typeof t!="string")throw new TypeError("Expected first argument to be a string");if(typeof r!="function")throw new TypeError("Expected last argument to be a function");if(typeof a!="object")throw new TypeError("Expected second argument to be an options object");if(!t)throw new TypeError("User-defined function name cannot be an empty string");let n="safeIntegers"in a?+Ra(a,"safeIntegers"):2,i=Ra(a,"deterministic"),s=Ra(a,"directOnly"),o=Ra(a,"varargs"),u=-1;if(!o){if(u=r.length,!Number.isInteger(u)||u<0)throw new TypeError("Expected function.length to be a positive integer");if(u>100)throw new RangeError("User-defined functions cannot have more than 100 arguments")}return this[Bd].function(r,t,u,n,i,s),this}});var au=V((Qh,ru)=>{"use strict";var{getBooleanOption:La,cppdb:wd}=St();ru.exports=function(t,a){if(typeof t!="string")throw new TypeError("Expected first argument to be a string");if(typeof a!="object"||a===null)throw new TypeError("Expected second argument to be an options object");if(!t)throw new TypeError("User-defined function name cannot be an empty string");let r="start"in a?a.start:null,n=jn(a,"step",!0),i=jn(a,"inverse",!1),s=jn(a,"result",!1),o="safeIntegers"in a?+La(a,"safeIntegers"):2,u=La(a,"deterministic"),l=La(a,"directOnly"),c=La(a,"varargs"),f=-1;if(!c&&(f=Math.max(tu(n),i?tu(i):0),f>0&&(f-=1),f>100))throw new RangeError("User-defined functions cannot have more than 100 arguments");return this[wd].aggregate(r,n,i,s,t,f,o,u,l),this};var jn=(e,t,a)=>{let r=t in e?e[t]:null;if(typeof r=="function")return r;if(r!=null)throw new TypeError(`Expected the "${t}" option to be a function`);if(a)throw new TypeError(`Missing required option "${t}"`);return null},tu=({length:e})=>{if(Number.isInteger(e)&&e>=0)return e;throw new TypeError("Expected function.length to be a positive integer")}});var ou=V((jh,su)=>{"use strict";var{cppdb:_d}=St();su.exports=function(t,a){if(typeof t!="string")throw new TypeError("Expected first argument to be a string");if(!t)throw new TypeError("Virtual table module name cannot be an empty string");let r=!1;if(typeof a=="object"&&a!==null)r=!0,a=Od(iu(a,"used",t));else{if(typeof a!="function")throw new TypeError("Expected second argument to be a function or a table definition object");a=Nd(a)}return this[_d].table(a,t,r),this};function Nd(e){return function(a,r,n,...i){let s={module:a,database:r,table:n},o=Ud.call(e,s,i);if(typeof o!="object"||o===null)throw new TypeError(`Virtual table module "${a}" did not return a table definition object`);return iu(o,"returned",a)}}function iu(e,t,a){if(!Kr.call(e,"rows"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition without a "rows" property`);if(!Kr.call(e,"columns"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition without a "columns" property`);let r=e.rows;if(typeof r!="function"||Object.getPrototypeOf(r)!==Pd)throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "rows" property (should be a generator function)`);let n=e.columns;if(!Array.isArray(n)||!(n=[...n]).every(l=>typeof l=="string"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "columns" property (should be an array of strings)`);if(n.length!==new Set(n).size)throw new TypeError(`Virtual table module "${a}" ${t} a table definition with duplicate column names`);if(!n.length)throw new RangeError(`Virtual table module "${a}" ${t} a table definition with zero columns`);let i;if(Kr.call(e,"parameters")){if(i=e.parameters,!Array.isArray(i)||!(i=[...i]).every(l=>typeof l=="string"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "parameters" property (should be an array of strings)`)}else i=kd(r);if(i.length!==new Set(i).size)throw new TypeError(`Virtual table module "${a}" ${t} a table definition with duplicate parameter names`);if(i.length>32)throw new RangeError(`Virtual table module "${a}" ${t} a table definition with more than the maximum number of 32 parameters`);for(let l of i)if(n.includes(l))throw new TypeError(`Virtual table module "${a}" ${t} a table definition with column "${l}" which was ambiguously defined as both a column and parameter`);let s=2;if(Kr.call(e,"safeIntegers")){let l=e.safeIntegers;if(typeof l!="boolean")throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "safeIntegers" property (should be a boolean)`);s=+l}let o=!1;if(Kr.call(e,"directOnly")&&(o=e.directOnly,typeof o!="boolean"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "directOnly" property (should be a boolean)`);return[`CREATE TABLE x(${[...i.map(nu).map(l=>`${l} HIDDEN`),...n.map(nu)].join(", ")});`,Rd(r,new Map(n.map((l,c)=>[l,i.length+c])),a),i,s,o]}function Rd(e,t,a){return function*(...n){let i=n.map(s=>Buffer.isBuffer(s)?Buffer.from(s):s);for(let s=0;s<t.size;++s)i.push(null);for(let s of e(...n))if(Array.isArray(s))Ld(s,i,t.size,a),yield i;else if(typeof s=="object"&&s!==null)Dd(s,i,t,a),yield i;else throw new TypeError(`Virtual table module "${a}" yielded something that isn't a valid row object`)}}function Ld(e,t,a,r){if(e.length!==a)throw new TypeError(`Virtual table module "${r}" yielded a row with an incorrect number of columns`);let n=t.length-a;for(let i=0;i<a;++i)t[i+n]=e[i]}function Dd(e,t,a,r){let n=0;for(let i of Object.keys(e)){let s=a.get(i);if(s===void 0)throw new TypeError(`Virtual table module "${r}" yielded a row with an undeclared column "${i}"`);t[s]=e[i],n+=1}if(n!==a.size)throw new TypeError(`Virtual table module "${r}" yielded a row with missing columns`)}function kd({length:e}){if(!Number.isInteger(e)||e<0)throw new TypeError("Expected function.length to be a positive integer");let t=[];for(let a=0;a<e;++a)t.push(`$${a+1}`);return t}var{hasOwnProperty:Kr}=Object.prototype,{apply:Ud}=Function.prototype,Pd=Object.getPrototypeOf(function*(){}),nu=e=>`"${e.replace(/"/g,'""')}"`,Od=e=>()=>e});var lu=V(($h,uu)=>{"use strict";var Vd=function(){};uu.exports=function(t,a){return Object.assign(new Vd,this)}});var pu=V((Yh,du)=>{"use strict";var Fd=require("fs"),cu=require("path"),Da=St(),Kd=zn(),fu;function He(e,t){if(new.target==null)return new He(e,t);let a;if(Buffer.isBuffer(e)&&(a=e,e=":memory:"),e==null&&(e=""),t==null&&(t={}),typeof e!="string")throw new TypeError("Expected first argument to be a string");if(typeof t!="object")throw new TypeError("Expected second argument to be an options object");if("readOnly"in t)throw new TypeError('Misspelled option "readOnly" should be "readonly"');if("memory"in t)throw new TypeError('Option "memory" was removed in v7.0.0 (use ":memory:" filename instead)');let r=e.trim(),n=r===""||r===":memory:",i=Da.getBooleanOption(t,"readonly"),s=Da.getBooleanOption(t,"fileMustExist"),o="timeout"in t?t.timeout:5e3,u="verbose"in t?t.verbose:null,l="nativeBinding"in t?t.nativeBinding:null;if(i&&n&&!a)throw new TypeError("In-memory/temporary databases cannot be readonly");if(!Number.isInteger(o)||o<0)throw new TypeError('Expected the "timeout" option to be a positive integer');if(o>2147483647)throw new RangeError('Option "timeout" cannot be greater than 2147483647');if(u!=null&&typeof u!="function")throw new TypeError('Expected the "verbose" option to be a function');if(l!=null&&typeof l!="string"&&typeof l!="object")throw new TypeError('Expected the "nativeBinding" option to be a string or addon object');let c;if(l==null?c=fu||(fu=qo()("better_sqlite3.node")):typeof l=="string"?c=(typeof __non_webpack_require__=="function"?__non_webpack_require__:require)(cu.resolve(l).replace(/(\.node)?$/,".node")):c=l,c.isInitialized||(c.setErrorConstructor(Kd),c.isInitialized=!0),!n&&!r.startsWith("file:")&&!Fd.existsSync(cu.dirname(r)))throw new TypeError("Cannot open database because the directory does not exist");Object.defineProperties(this,{[Da.cppdb]:{value:new c.Database(r,e,n,i,s,o,u||null,a||null)},...rr.getters})}var rr=Mo();He.prototype.prepare=rr.prepare;He.prototype.transaction=zo();He.prototype.pragma=jo();He.prototype.backup=Wo();He.prototype.serialize=Jo();He.prototype.function=eu();He.prototype.aggregate=au();He.prototype.table=ou();He.prototype.loadExtension=rr.loadExtension;He.prototype.exec=rr.exec;He.prototype.close=rr.close;He.prototype.defaultSafeIntegers=rr.defaultSafeIntegers;He.prototype.unsafeMode=rr.unsafeMode;He.prototype[Da.inspect]=lu();du.exports=He});var hu=V((Wh,$n)=>{"use strict";$n.exports=pu();$n.exports.SqliteError=zn()});var mu=V((Xh,vu)=>{var Yn=require("fs"),Wn=require("path"),{DATA_DIR:Xn}=ir(),yu=Wn.join(Xn,"db","data.sqlite"),qd=Wn.join(Xn,"db.json"),Md=Wn.join(Xn,"db.json.migrated"),ka=null,gu=!1;function Hd(){if(ka)return ka;if(gu)return null;try{if(!Yn.existsSync(yu))return null;let e=hu();return ka=new e(yu,{readonly:!0,fileMustExist:!0}),ka}catch{return gu=!0,null}}function Gd(){for(let e of[qd,Md])if(Yn.existsSync(e))try{return JSON.parse(Yn.readFileSync(e,"utf-8"))}catch{}return null}function zd(e){let t=Hd();if(t)try{let r=t.prepare("SELECT value FROM kv WHERE scope = 'mitmAlias' AND key = ?").get(e);if(r)return JSON.parse(r.value)}catch{}return Gd()?.mitmAlias?.[e]||null}vu.exports={getMitmAlias:zd}});var Ua=V((ey,xu)=>{var{log:Jh,err:Zh}=zt(),Cu="http://127.0.0.1:20128",Qd=String(process.env.MITM_ROUTER_BASE||Cu).trim().replace(/\/+$/,"")||Cu,Eu=process.env.ROUTER_API_KEY,jd=new Set(["host","content-length","connection","transfer-encoding","content-type","authorization"]);async function $d(e,t="/v1/chat/completions",a={}){let r={};for(let[i,s]of Object.entries(a))jd.has(i.toLowerCase())||(r[i]=s);return await fetch(`${Qd}${t}`,{method:"POST",headers:{...r,"Content-Type":"application/json",...Eu&&{Authorization:`Bearer ${Eu}`}},body:JSON.stringify(e)})}async function Yd(e,t,a){let r=e.headers.get("content-type")||"application/json",n=e.status||200,i={"Content-Type":r,"Cache-Control":"no-cache",Connection:"keep-alive"};if(r.includes("text/event-stream")&&(i["X-Accel-Buffering"]="no"),t.writeHead(n,i),a&&a.writeHeader(e.status,Object.fromEntries(e.headers)),!e.body){let u=await e.text().catch(()=>"");a&&(a.writeChunk(u),a.end()),t.end(u);return}let s=e.body.getReader(),o=new TextDecoder;for(;;){let{done:u,value:l}=await s.read();if(u){a&&a.end(),t.end();break}a&&a.writeChunk(l),t.write(o.decode(l,{stream:!0}))}}xu.exports={fetchRouter:$d,pipeSSE:Yd}});var Tu=V((ty,Su)=>{var{err:Wd,createResponseDumper:Xd}=zt(),{fetchRouter:Jd,pipeSSE:Zd}=Ua();async function ep(e,t,a,r){let n=Xd(e,"intercept-antigravity"),i=e.url.includes(":streamGenerateContent");try{let s=JSON.parse(a.toString());s.model&&(s.model=r);let o=await Jd(s,"/v1/chat/completions",e.headers);await Zd(o,t,n)}catch(s){Wd(`[antigravity] ${s.message}`),n&&(n.writeChunk(`
|
|
27
|
+
`)),o.tries=a,o}Ko.exports=xr=gd;xr.getFileName=function(t){var a=Error.prepareStackTrace,r=Error.stackTraceLimit,n={},i;Error.stackTraceLimit=10,Error.prepareStackTrace=function(o,u){for(var l=0,c=u.length;l<c;l++)if(i=u[l].getFileName(),i!==__filename)if(t){if(i!==t)return}else return},Error.captureStackTrace(n),n.stack,Error.prepareStackTrace=a,Error.stackTraceLimit=r;var s="file://";return i.indexOf(s)===0&&(i=hd(i)),i};xr.getRoot=function(t){for(var a=yd(t),r;;){if(a==="."&&(a=process.cwd()),Vo(wa(a,"package.json"))||Vo(wa(a,"node_modules")))return a;if(r===a)throw new Error('Could not find module root given file: "'+t+'". Do you have a `package.json` file? ');r=a,a=wa(a,"..")}}});var Mo=V(Mt=>{"use strict";var{cppdb:ft}=St();Mt.prepare=function(t){return this[ft].prepare(t,this,!1)};Mt.exec=function(t){return this[ft].exec(t),this};Mt.close=function(){return this[ft].close(),this};Mt.loadExtension=function(...t){return this[ft].loadExtension(...t),this};Mt.defaultSafeIntegers=function(...t){return this[ft].defaultSafeIntegers(...t),this};Mt.unsafeMode=function(...t){return this[ft].unsafeMode(...t),this};Mt.getters={name:{get:function(){return this[ft].name},enumerable:!0},open:{get:function(){return this[ft].open},enumerable:!0},inTransaction:{get:function(){return this[ft].inTransaction},enumerable:!0},readonly:{get:function(){return this[ft].readonly},enumerable:!0},memory:{get:function(){return this[ft].memory},enumerable:!0}}});var zo=V((qh,Go)=>{"use strict";var{cppdb:vd}=St(),Ho=new WeakMap;Go.exports=function(t){if(typeof t!="function")throw new TypeError("Expected first argument to be a function");let a=this[vd],r=md(a,this),{apply:n}=Function.prototype,i={default:{value:Na(n,t,a,r.default)},deferred:{value:Na(n,t,a,r.deferred)},immediate:{value:Na(n,t,a,r.immediate)},exclusive:{value:Na(n,t,a,r.exclusive)},database:{value:this,enumerable:!0}};return Object.defineProperties(i.default.value,i),Object.defineProperties(i.deferred.value,i),Object.defineProperties(i.immediate.value,i),Object.defineProperties(i.exclusive.value,i),i.default.value};var md=(e,t)=>{let a=Ho.get(e);if(!a){let r={commit:e.prepare("COMMIT",t,!1),rollback:e.prepare("ROLLBACK",t,!1),savepoint:e.prepare("SAVEPOINT ` _bs3. `",t,!1),release:e.prepare("RELEASE ` _bs3. `",t,!1),rollbackTo:e.prepare("ROLLBACK TO ` _bs3. `",t,!1)};Ho.set(e,a={default:Object.assign({begin:e.prepare("BEGIN",t,!1)},r),deferred:Object.assign({begin:e.prepare("BEGIN DEFERRED",t,!1)},r),immediate:Object.assign({begin:e.prepare("BEGIN IMMEDIATE",t,!1)},r),exclusive:Object.assign({begin:e.prepare("BEGIN EXCLUSIVE",t,!1)},r)})}return a},Na=(e,t,a,{begin:r,commit:n,rollback:i,savepoint:s,release:o,rollbackTo:u})=>function(){let c,f,y;a.inTransaction?(c=s,f=o,y=u):(c=r,f=n,y=i),c.run();try{let v=e.call(t,this,arguments);if(v&&typeof v.then=="function")throw new TypeError("Transaction function cannot return a promise");return f.run(),v}catch(v){throw a.inTransaction&&(y.run(),y!==i&&f.run()),v}}});var jo=V((Mh,Qo)=>{"use strict";var{getBooleanOption:Cd,cppdb:Ed}=St();Qo.exports=function(t,a){if(a==null&&(a={}),typeof t!="string")throw new TypeError("Expected first argument to be a string");if(typeof a!="object")throw new TypeError("Expected second argument to be an options object");let r=Cd(a,"simple"),n=this[Ed].prepare(`PRAGMA ${t}`,this,!0);return r?n.pluck().get():n.all()}});var Wo=V((Hh,Yo)=>{"use strict";var xd=require("fs"),Sd=require("path"),{promisify:Td}=require("util"),{cppdb:Id}=St(),$o=Td(xd.access);Yo.exports=async function(t,a){if(a==null&&(a={}),typeof t!="string")throw new TypeError("Expected first argument to be a string");if(typeof a!="object")throw new TypeError("Expected second argument to be an options object");t=t.trim();let r="attached"in a?a.attached:"main",n="progress"in a?a.progress:null;if(!t)throw new TypeError("Backup filename cannot be an empty string");if(t===":memory:")throw new TypeError('Invalid backup filename ":memory:"');if(typeof r!="string")throw new TypeError('Expected the "attached" option to be a string');if(!r)throw new TypeError('The "attached" option cannot be an empty string');if(n!=null&&typeof n!="function")throw new TypeError('Expected the "progress" option to be a function');await $o(Sd.dirname(t)).catch(()=>{throw new TypeError("Cannot save backup because the directory does not exist")});let i=await $o(t).then(()=>!1,()=>!0);return Ad(this[Id].backup(this,r,t,i),n||null)};var Ad=(e,t)=>{let a=0,r=!0;return new Promise((n,i)=>{setImmediate(function s(){try{let o=e.transfer(a);if(!o.remainingPages){e.close(),n(o);return}if(r&&(r=!1,a=100),t){let u=t(o);if(u!==void 0)if(typeof u=="number"&&u===u)a=Math.max(0,Math.min(2147483647,Math.round(u)));else throw new TypeError("Expected progress callback to return a number or undefined")}setImmediate(s)}catch(o){e.close(),i(o)}})})}});var Jo=V((Gh,Xo)=>{"use strict";var{cppdb:bd}=St();Xo.exports=function(t){if(t==null&&(t={}),typeof t!="object")throw new TypeError("Expected first argument to be an options object");let a="attached"in t?t.attached:"main";if(typeof a!="string")throw new TypeError('Expected the "attached" option to be a string');if(!a)throw new TypeError('The "attached" option cannot be an empty string');return this[bd].serialize(a)}});var eu=V((zh,Zo)=>{"use strict";var{getBooleanOption:Ra,cppdb:Bd}=St();Zo.exports=function(t,a,r){if(a==null&&(a={}),typeof a=="function"&&(r=a,a={}),typeof t!="string")throw new TypeError("Expected first argument to be a string");if(typeof r!="function")throw new TypeError("Expected last argument to be a function");if(typeof a!="object")throw new TypeError("Expected second argument to be an options object");if(!t)throw new TypeError("User-defined function name cannot be an empty string");let n="safeIntegers"in a?+Ra(a,"safeIntegers"):2,i=Ra(a,"deterministic"),s=Ra(a,"directOnly"),o=Ra(a,"varargs"),u=-1;if(!o){if(u=r.length,!Number.isInteger(u)||u<0)throw new TypeError("Expected function.length to be a positive integer");if(u>100)throw new RangeError("User-defined functions cannot have more than 100 arguments")}return this[Bd].function(r,t,u,n,i,s),this}});var au=V((Qh,ru)=>{"use strict";var{getBooleanOption:La,cppdb:wd}=St();ru.exports=function(t,a){if(typeof t!="string")throw new TypeError("Expected first argument to be a string");if(typeof a!="object"||a===null)throw new TypeError("Expected second argument to be an options object");if(!t)throw new TypeError("User-defined function name cannot be an empty string");let r="start"in a?a.start:null,n=jn(a,"step",!0),i=jn(a,"inverse",!1),s=jn(a,"result",!1),o="safeIntegers"in a?+La(a,"safeIntegers"):2,u=La(a,"deterministic"),l=La(a,"directOnly"),c=La(a,"varargs"),f=-1;if(!c&&(f=Math.max(tu(n),i?tu(i):0),f>0&&(f-=1),f>100))throw new RangeError("User-defined functions cannot have more than 100 arguments");return this[wd].aggregate(r,n,i,s,t,f,o,u,l),this};var jn=(e,t,a)=>{let r=t in e?e[t]:null;if(typeof r=="function")return r;if(r!=null)throw new TypeError(`Expected the "${t}" option to be a function`);if(a)throw new TypeError(`Missing required option "${t}"`);return null},tu=({length:e})=>{if(Number.isInteger(e)&&e>=0)return e;throw new TypeError("Expected function.length to be a positive integer")}});var ou=V((jh,su)=>{"use strict";var{cppdb:_d}=St();su.exports=function(t,a){if(typeof t!="string")throw new TypeError("Expected first argument to be a string");if(!t)throw new TypeError("Virtual table module name cannot be an empty string");let r=!1;if(typeof a=="object"&&a!==null)r=!0,a=Od(iu(a,"used",t));else{if(typeof a!="function")throw new TypeError("Expected second argument to be a function or a table definition object");a=Nd(a)}return this[_d].table(a,t,r),this};function Nd(e){return function(a,r,n,...i){let s={module:a,database:r,table:n},o=Ud.call(e,s,i);if(typeof o!="object"||o===null)throw new TypeError(`Virtual table module "${a}" did not return a table definition object`);return iu(o,"returned",a)}}function iu(e,t,a){if(!Kr.call(e,"rows"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition without a "rows" property`);if(!Kr.call(e,"columns"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition without a "columns" property`);let r=e.rows;if(typeof r!="function"||Object.getPrototypeOf(r)!==Pd)throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "rows" property (should be a generator function)`);let n=e.columns;if(!Array.isArray(n)||!(n=[...n]).every(l=>typeof l=="string"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "columns" property (should be an array of strings)`);if(n.length!==new Set(n).size)throw new TypeError(`Virtual table module "${a}" ${t} a table definition with duplicate column names`);if(!n.length)throw new RangeError(`Virtual table module "${a}" ${t} a table definition with zero columns`);let i;if(Kr.call(e,"parameters")){if(i=e.parameters,!Array.isArray(i)||!(i=[...i]).every(l=>typeof l=="string"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "parameters" property (should be an array of strings)`)}else i=kd(r);if(i.length!==new Set(i).size)throw new TypeError(`Virtual table module "${a}" ${t} a table definition with duplicate parameter names`);if(i.length>32)throw new RangeError(`Virtual table module "${a}" ${t} a table definition with more than the maximum number of 32 parameters`);for(let l of i)if(n.includes(l))throw new TypeError(`Virtual table module "${a}" ${t} a table definition with column "${l}" which was ambiguously defined as both a column and parameter`);let s=2;if(Kr.call(e,"safeIntegers")){let l=e.safeIntegers;if(typeof l!="boolean")throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "safeIntegers" property (should be a boolean)`);s=+l}let o=!1;if(Kr.call(e,"directOnly")&&(o=e.directOnly,typeof o!="boolean"))throw new TypeError(`Virtual table module "${a}" ${t} a table definition with an invalid "directOnly" property (should be a boolean)`);return[`CREATE TABLE x(${[...i.map(nu).map(l=>`${l} HIDDEN`),...n.map(nu)].join(", ")});`,Rd(r,new Map(n.map((l,c)=>[l,i.length+c])),a),i,s,o]}function Rd(e,t,a){return function*(...n){let i=n.map(s=>Buffer.isBuffer(s)?Buffer.from(s):s);for(let s=0;s<t.size;++s)i.push(null);for(let s of e(...n))if(Array.isArray(s))Ld(s,i,t.size,a),yield i;else if(typeof s=="object"&&s!==null)Dd(s,i,t,a),yield i;else throw new TypeError(`Virtual table module "${a}" yielded something that isn't a valid row object`)}}function Ld(e,t,a,r){if(e.length!==a)throw new TypeError(`Virtual table module "${r}" yielded a row with an incorrect number of columns`);let n=t.length-a;for(let i=0;i<a;++i)t[i+n]=e[i]}function Dd(e,t,a,r){let n=0;for(let i of Object.keys(e)){let s=a.get(i);if(s===void 0)throw new TypeError(`Virtual table module "${r}" yielded a row with an undeclared column "${i}"`);t[s]=e[i],n+=1}if(n!==a.size)throw new TypeError(`Virtual table module "${r}" yielded a row with missing columns`)}function kd({length:e}){if(!Number.isInteger(e)||e<0)throw new TypeError("Expected function.length to be a positive integer");let t=[];for(let a=0;a<e;++a)t.push(`$${a+1}`);return t}var{hasOwnProperty:Kr}=Object.prototype,{apply:Ud}=Function.prototype,Pd=Object.getPrototypeOf(function*(){}),nu=e=>`"${e.replace(/"/g,'""')}"`,Od=e=>()=>e});var lu=V(($h,uu)=>{"use strict";var Vd=function(){};uu.exports=function(t,a){return Object.assign(new Vd,this)}});var pu=V((Yh,du)=>{"use strict";var Fd=require("fs"),cu=require("path"),Da=St(),Kd=zn(),fu;function He(e,t){if(new.target==null)return new He(e,t);let a;if(Buffer.isBuffer(e)&&(a=e,e=":memory:"),e==null&&(e=""),t==null&&(t={}),typeof e!="string")throw new TypeError("Expected first argument to be a string");if(typeof t!="object")throw new TypeError("Expected second argument to be an options object");if("readOnly"in t)throw new TypeError('Misspelled option "readOnly" should be "readonly"');if("memory"in t)throw new TypeError('Option "memory" was removed in v7.0.0 (use ":memory:" filename instead)');let r=e.trim(),n=r===""||r===":memory:",i=Da.getBooleanOption(t,"readonly"),s=Da.getBooleanOption(t,"fileMustExist"),o="timeout"in t?t.timeout:5e3,u="verbose"in t?t.verbose:null,l="nativeBinding"in t?t.nativeBinding:null;if(i&&n&&!a)throw new TypeError("In-memory/temporary databases cannot be readonly");if(!Number.isInteger(o)||o<0)throw new TypeError('Expected the "timeout" option to be a positive integer');if(o>2147483647)throw new RangeError('Option "timeout" cannot be greater than 2147483647');if(u!=null&&typeof u!="function")throw new TypeError('Expected the "verbose" option to be a function');if(l!=null&&typeof l!="string"&&typeof l!="object")throw new TypeError('Expected the "nativeBinding" option to be a string or addon object');let c;if(l==null?c=fu||(fu=qo()("better_sqlite3.node")):typeof l=="string"?c=(typeof __non_webpack_require__=="function"?__non_webpack_require__:require)(cu.resolve(l).replace(/(\.node)?$/,".node")):c=l,c.isInitialized||(c.setErrorConstructor(Kd),c.isInitialized=!0),!n&&!r.startsWith("file:")&&!Fd.existsSync(cu.dirname(r)))throw new TypeError("Cannot open database because the directory does not exist");Object.defineProperties(this,{[Da.cppdb]:{value:new c.Database(r,e,n,i,s,o,u||null,a||null)},...rr.getters})}var rr=Mo();He.prototype.prepare=rr.prepare;He.prototype.transaction=zo();He.prototype.pragma=jo();He.prototype.backup=Wo();He.prototype.serialize=Jo();He.prototype.function=eu();He.prototype.aggregate=au();He.prototype.table=ou();He.prototype.loadExtension=rr.loadExtension;He.prototype.exec=rr.exec;He.prototype.close=rr.close;He.prototype.defaultSafeIntegers=rr.defaultSafeIntegers;He.prototype.unsafeMode=rr.unsafeMode;He.prototype[Da.inspect]=lu();du.exports=He});var hu=V((Wh,$n)=>{"use strict";$n.exports=pu();$n.exports.SqliteError=zn()});var mu=V((Xh,vu)=>{var Yn=require("fs"),Wn=require("path"),{DATA_DIR:Xn}=ir(),yu=Wn.join(Xn,"db","data.sqlite"),qd=Wn.join(Xn,"db.json"),Md=Wn.join(Xn,"db.json.migrated"),ka=null,gu=!1;function Hd(){if(ka)return ka;if(gu)return null;try{if(!Yn.existsSync(yu))return null;let e=hu();return ka=new e(yu,{readonly:!0,fileMustExist:!0}),ka}catch{return gu=!0,null}}function Gd(){for(let e of[qd,Md])if(Yn.existsSync(e))try{return JSON.parse(Yn.readFileSync(e,"utf-8"))}catch{}return null}function zd(e){let t=Hd();if(t)try{let r=t.prepare("SELECT value FROM kv WHERE scope = 'mitmAlias' AND key = ?").get(e);if(r)return JSON.parse(r.value)}catch{}return Gd()?.mitmAlias?.[e]||null}vu.exports={getMitmAlias:zd}});var Ua=V((ey,xu)=>{var{log:Jh,err:Zh}=zt(),Cu="http://localhost:20128",Qd=String(process.env.MITM_ROUTER_BASE||Cu).trim().replace(/\/+$/,"")||Cu,Eu=process.env.ROUTER_API_KEY,jd=new Set(["host","content-length","connection","transfer-encoding","content-type","authorization"]);async function $d(e,t="/v1/chat/completions",a={}){let r={};for(let[i,s]of Object.entries(a))jd.has(i.toLowerCase())||(r[i]=s);return await fetch(`${Qd}${t}`,{method:"POST",headers:{...r,"Content-Type":"application/json",...Eu&&{Authorization:`Bearer ${Eu}`}},body:JSON.stringify(e)})}async function Yd(e,t,a){let r=e.headers.get("content-type")||"application/json",n=e.status||200,i={"Content-Type":r,"Cache-Control":"no-cache",Connection:"keep-alive"};if(r.includes("text/event-stream")&&(i["X-Accel-Buffering"]="no"),t.writeHead(n,i),a&&a.writeHeader(e.status,Object.fromEntries(e.headers)),!e.body){let u=await e.text().catch(()=>"");a&&(a.writeChunk(u),a.end()),t.end(u);return}let s=e.body.getReader(),o=new TextDecoder;for(;;){let{done:u,value:l}=await s.read();if(u){a&&a.end(),t.end();break}a&&a.writeChunk(l),t.write(o.decode(l,{stream:!0}))}}xu.exports={fetchRouter:$d,pipeSSE:Yd}});var Tu=V((ty,Su)=>{var{err:Wd,createResponseDumper:Xd}=zt(),{fetchRouter:Jd,pipeSSE:Zd}=Ua();async function ep(e,t,a,r){let n=Xd(e,"intercept-antigravity"),i=e.url.includes(":streamGenerateContent");try{let s=JSON.parse(a.toString());s.model&&(s.model=r);let o=await Jd(s,"/v1/chat/completions",e.headers);await Zd(o,t,n)}catch(s){Wd(`[antigravity] ${s.message}`),n&&(n.writeChunk(`
|
|
28
28
|
[ERROR] ${s.message}
|
|
29
29
|
`),n.end()),i?(t.headersSent||t.writeHead(200,{"Content-Type":"text/event-stream"}),t.end(`data: ${JSON.stringify({error:{message:s.message}})}\r
|
|
30
30
|
\r
|
package/cli.js
CHANGED
|
@@ -43,11 +43,18 @@ function createSpinner(text) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
const pkg = require("./package.json");
|
|
46
|
+
const { ensureSqliteRuntime, buildEnvWithRuntime } = require("./hooks/sqliteRuntime");
|
|
46
47
|
const args = process.argv.slice(2);
|
|
47
48
|
|
|
49
|
+
// Self-heal SQLite runtime deps (sql.js + better-sqlite3) into ~/.9router/runtime
|
|
50
|
+
// so the server can resolve them via NODE_PATH. Best-effort — sql.js is required,
|
|
51
|
+
// better-sqlite3 is optional. Logs to stderr only on failure.
|
|
52
|
+
try { ensureSqliteRuntime({ silent: true }); } catch {}
|
|
53
|
+
|
|
48
54
|
// Configuration constants
|
|
49
55
|
const APP_NAME = pkg.name; // Use from package.json
|
|
50
|
-
const
|
|
56
|
+
const INSTALL_CMD_LATEST = `npm i -g ${APP_NAME}@latest --prefer-online`;
|
|
57
|
+
|
|
51
58
|
const DEFAULT_PORT = 20128;
|
|
52
59
|
const DEFAULT_HOST = "0.0.0.0";
|
|
53
60
|
const MAX_PORT_ATTEMPTS = 10;
|
|
@@ -300,6 +307,10 @@ function killMitmByPidFile() {
|
|
|
300
307
|
if (!waitForExit(pid, 1500)) {
|
|
301
308
|
try { execSync(`taskkill /F /T /PID ${pid}`, { stdio: "ignore", windowsHide: true, timeout: 3000 }); } catch { }
|
|
302
309
|
}
|
|
310
|
+
// Last-resort: PowerShell Stop-Process (sometimes succeeds where taskkill fails on admin processes)
|
|
311
|
+
if (!waitForExit(pid, 500)) {
|
|
312
|
+
try { execSync(`powershell -NonInteractive -WindowStyle Hidden -Command "Stop-Process -Id ${pid} -Force"`, { stdio: "ignore", windowsHide: true, timeout: 3000 }); } catch { }
|
|
313
|
+
}
|
|
303
314
|
} else {
|
|
304
315
|
// SIGTERM via cached sudo token first
|
|
305
316
|
try { execSync(`sudo -n kill -TERM ${pid} 2>/dev/null`, { stdio: "ignore", timeout: 2000 }); }
|
|
@@ -473,7 +484,7 @@ async function showInterfaceMenu(latestVersion) {
|
|
|
473
484
|
|
|
474
485
|
clearScreen();
|
|
475
486
|
|
|
476
|
-
const displayHost = host === DEFAULT_HOST ? "
|
|
487
|
+
const displayHost = host === DEFAULT_HOST ? "localhost" : host;
|
|
477
488
|
|
|
478
489
|
// Detect tunnel/local mode for server URL display
|
|
479
490
|
let serverUrl;
|
|
@@ -514,7 +525,7 @@ const MAX_RESTARTS = 2;
|
|
|
514
525
|
const RESTART_RESET_MS = 30000; // Reset counter if alive > 30s
|
|
515
526
|
|
|
516
527
|
function startServer(latestVersion) {
|
|
517
|
-
const displayHost = host === DEFAULT_HOST ? "
|
|
528
|
+
const displayHost = host === DEFAULT_HOST ? "localhost" : host;
|
|
518
529
|
const url = `http://${displayHost}:${port}/dashboard`;
|
|
519
530
|
|
|
520
531
|
let restartCount = 0;
|
|
@@ -532,7 +543,7 @@ function startServer(latestVersion) {
|
|
|
532
543
|
detached: true,
|
|
533
544
|
windowsHide: true,
|
|
534
545
|
env: {
|
|
535
|
-
...process.env,
|
|
546
|
+
...buildEnvWithRuntime(process.env),
|
|
536
547
|
PORT: port.toString(),
|
|
537
548
|
HOSTNAME: host
|
|
538
549
|
}
|
|
@@ -645,19 +656,16 @@ function startServer(latestVersion) {
|
|
|
645
656
|
|
|
646
657
|
if (choice === "update") {
|
|
647
658
|
isShuttingDown = true;
|
|
659
|
+
const { clearScreen } = require("./src/cli/utils/display");
|
|
660
|
+
clearScreen();
|
|
661
|
+
console.log(`\n⬆ Update v${pkg.version} → v${latestVersion}\n`);
|
|
662
|
+
console.log(`Run this after exit:\n`);
|
|
663
|
+
console.log(` \x1b[33m${INSTALL_CMD_LATEST}\x1b[0m\n`);
|
|
648
664
|
cleanup();
|
|
649
|
-
// Kill ALL lingering processes (server/next-server/cloudflared/tray) to release file locks on Windows
|
|
650
665
|
await killAllAppProcesses(port);
|
|
651
666
|
await killProcessOnPort(port);
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
clearScreen();
|
|
655
|
-
console.log(`\n⬆ New version: v${latestVersion} · you are on v${pkg.version}\n`);
|
|
656
|
-
console.log("Run this command to update (9Router is stopped so file locks are released):\n");
|
|
657
|
-
console.log(` ${GLOBAL_INSTALL_CMD}\n`);
|
|
658
|
-
console.log("After npm finishes, start 9Router again with:\n");
|
|
659
|
-
console.log(` ${APP_NAME}\n`);
|
|
660
|
-
process.exit(0);
|
|
667
|
+
setTimeout(() => process.exit(0), 200);
|
|
668
|
+
return;
|
|
661
669
|
} else if (choice === "web") {
|
|
662
670
|
openBrowser(url);
|
|
663
671
|
// Wait for user to come back
|
package/hooks/postinstall.js
CHANGED
|
@@ -1,73 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const { execSync } = require("child_process");
|
|
9
|
-
const fs = require("fs");
|
|
10
|
-
const path = require("path");
|
|
11
|
-
|
|
12
|
-
const appDir = path.join(__dirname, "..", "app");
|
|
13
|
-
const betterSqlitePath = path.join(appDir, "node_modules", "better-sqlite3");
|
|
14
|
-
|
|
15
|
-
// Check if better-sqlite3 exists
|
|
16
|
-
if (!fs.existsSync(betterSqlitePath)) {
|
|
17
|
-
console.log("better-sqlite3 not found, skipping rebuild");
|
|
18
|
-
process.exit(0);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Check if native binary is valid for current platform
|
|
22
|
-
function isValidBinary() {
|
|
23
|
-
const buildDir = path.join(betterSqlitePath, "build", "Release");
|
|
24
|
-
const binaryPath = path.join(buildDir, "better_sqlite3.node");
|
|
25
|
-
|
|
26
|
-
if (!fs.existsSync(binaryPath)) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const fd = fs.openSync(binaryPath, "r");
|
|
31
|
-
const buffer = Buffer.alloc(4);
|
|
32
|
-
fs.readSync(fd, buffer, 0, 4, 0);
|
|
33
|
-
fs.closeSync(fd);
|
|
34
|
-
|
|
35
|
-
const magic = buffer.toString("hex");
|
|
36
|
-
|
|
37
|
-
// ELF (Linux): 7f454c46
|
|
38
|
-
// Mach-O (macOS): cffaedfe or cefaedfe (little/big endian)
|
|
39
|
-
// PE (Windows): 4d5a (MZ)
|
|
40
|
-
const isLinux = magic.startsWith("7f454c46");
|
|
41
|
-
const isMacOS = magic.startsWith("cffaedfe") || magic.startsWith("cefaedfe");
|
|
42
|
-
const isWindows = magic.startsWith("4d5a");
|
|
43
|
-
|
|
44
|
-
const platform = process.platform;
|
|
45
|
-
const expectedLinux = platform === "linux" && isLinux;
|
|
46
|
-
const expectedMacOS = platform === "darwin" && isMacOS;
|
|
47
|
-
const expectedWindows = platform === "win32" && isWindows;
|
|
48
|
-
|
|
49
|
-
return expectedLinux || expectedMacOS || expectedWindows;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Skip rebuild if binary is already valid
|
|
53
|
-
if (isValidBinary()) {
|
|
54
|
-
console.log("better-sqlite3 binary is valid for this platform, skipping rebuild");
|
|
55
|
-
process.exit(0);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
console.log("Rebuilding better-sqlite3 for current platform...");
|
|
3
|
+
// Postinstall: warm-up SQLite deps into ~/.9router/runtime so the first
|
|
4
|
+
// `9router` start doesn't need network. Failure here is non-fatal —
|
|
5
|
+
// cli.js will retry at runtime if anything is missing.
|
|
6
|
+
const { ensureSqliteRuntime } = require("./sqliteRuntime");
|
|
59
7
|
|
|
60
8
|
try {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
-
console.log("better-sqlite3 rebuilt successfully");
|
|
67
|
-
} catch (error) {
|
|
68
|
-
console.warn("Failed to rebuild better-sqlite3. The app may not work correctly.");
|
|
69
|
-
console.warn("Make sure you have build tools installed (python, make, gcc/node-gyp)");
|
|
70
|
-
console.warn("Error:", error.message);
|
|
71
|
-
// Don't exit with error code - allow install to complete
|
|
72
|
-
process.exit(0);
|
|
9
|
+
ensureSqliteRuntime({ silent: false });
|
|
10
|
+
console.log("[9router] runtime SQLite deps ready");
|
|
11
|
+
} catch (e) {
|
|
12
|
+
console.warn(`[9router] runtime warm-up skipped: ${e.message}`);
|
|
73
13
|
}
|
|
14
|
+
|
|
15
|
+
process.exit(0);
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// Shared logic: ensure sql.js + better-sqlite3 are installed in
|
|
2
|
+
// USER_DATA_DIR/runtime/node_modules so they can be hot-replaced
|
|
3
|
+
// without touching the (possibly Windows-locked) global install dir.
|
|
4
|
+
const { execSync, spawnSync } = require("child_process");
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
const os = require("os");
|
|
7
|
+
const path = require("path");
|
|
8
|
+
|
|
9
|
+
const SQL_JS_VERSION = "1.14.1";
|
|
10
|
+
const BETTER_SQLITE3_VERSION = "12.6.2";
|
|
11
|
+
|
|
12
|
+
function getDataDir() {
|
|
13
|
+
if (process.env.DATA_DIR) return process.env.DATA_DIR;
|
|
14
|
+
return process.platform === "win32"
|
|
15
|
+
? path.join(process.env.APPDATA || os.homedir(), "9router")
|
|
16
|
+
: path.join(os.homedir(), ".9router");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function getRuntimeDir() {
|
|
20
|
+
return path.join(getDataDir(), "runtime");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function getRuntimeNodeModules() {
|
|
24
|
+
return path.join(getRuntimeDir(), "node_modules");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function ensureRuntimeDir() {
|
|
28
|
+
const dir = getRuntimeDir();
|
|
29
|
+
if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
|
|
30
|
+
|
|
31
|
+
// Minimal package.json so npm treats it as a project root
|
|
32
|
+
const pkgPath = path.join(dir, "package.json");
|
|
33
|
+
if (!fs.existsSync(pkgPath)) {
|
|
34
|
+
fs.writeFileSync(pkgPath, JSON.stringify({
|
|
35
|
+
name: "9router-runtime",
|
|
36
|
+
version: "1.0.0",
|
|
37
|
+
private: true,
|
|
38
|
+
description: "User-writable runtime deps for 9router (sql.js + better-sqlite3)",
|
|
39
|
+
}, null, 2));
|
|
40
|
+
}
|
|
41
|
+
return dir;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function hasModule(name) {
|
|
45
|
+
return fs.existsSync(path.join(getRuntimeNodeModules(), name, "package.json"));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function isBetterSqliteBinaryValid() {
|
|
49
|
+
const binary = path.join(getRuntimeNodeModules(), "better-sqlite3", "build", "Release", "better_sqlite3.node");
|
|
50
|
+
if (!fs.existsSync(binary)) return false;
|
|
51
|
+
try {
|
|
52
|
+
const fd = fs.openSync(binary, "r");
|
|
53
|
+
const buf = Buffer.alloc(4);
|
|
54
|
+
fs.readSync(fd, buf, 0, 4, 0);
|
|
55
|
+
fs.closeSync(fd);
|
|
56
|
+
const magic = buf.toString("hex");
|
|
57
|
+
if (process.platform === "linux") return magic.startsWith("7f454c46");
|
|
58
|
+
if (process.platform === "darwin") return magic.startsWith("cffaedfe") || magic.startsWith("cefaedfe");
|
|
59
|
+
if (process.platform === "win32") return magic.startsWith("4d5a");
|
|
60
|
+
return true;
|
|
61
|
+
} catch { return false; }
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function npmInstall(pkgs, opts = {}) {
|
|
65
|
+
const cwd = ensureRuntimeDir();
|
|
66
|
+
const args = ["install", ...pkgs, "--no-audit", "--no-fund", "--prefer-online"];
|
|
67
|
+
if (opts.optional) args.push("--no-save");
|
|
68
|
+
const npmCmd = process.platform === "win32" ? "npm.cmd" : "npm";
|
|
69
|
+
console.log(`[9router][runtime] ${npmCmd} ${args.join(" ")} (cwd: ${cwd})`);
|
|
70
|
+
const res = spawnSync(npmCmd, args, {
|
|
71
|
+
cwd,
|
|
72
|
+
stdio: opts.silent ? "ignore" : "inherit",
|
|
73
|
+
timeout: opts.timeout || 180000,
|
|
74
|
+
shell: process.platform === "win32",
|
|
75
|
+
});
|
|
76
|
+
return res.status === 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Public: ensure better-sqlite3 native module is installed in user-writable
|
|
80
|
+
// runtime dir. sql.js is bundled in bin/app already; node:sqlite is built-in.
|
|
81
|
+
// This is purely a *speed optimization* — app works without it via fallbacks.
|
|
82
|
+
function ensureSqliteRuntime({ silent = false } = {}) {
|
|
83
|
+
ensureRuntimeDir();
|
|
84
|
+
|
|
85
|
+
const needBetterSqlite = !hasModule("better-sqlite3") || !isBetterSqliteBinaryValid();
|
|
86
|
+
if (!needBetterSqlite) {
|
|
87
|
+
if (!silent) console.log("[9router][runtime] better-sqlite3 OK");
|
|
88
|
+
return { betterSqlite: true };
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const ok = npmInstall([`better-sqlite3@${BETTER_SQLITE3_VERSION}`], { optional: true, silent });
|
|
92
|
+
if (!ok && !silent) {
|
|
93
|
+
console.warn("[9router][runtime] better-sqlite3 install failed (will use node:sqlite or sql.js fallback)");
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
betterSqlite: ok && hasModule("better-sqlite3") && isBetterSqliteBinaryValid(),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Inject runtime node_modules into NODE_PATH so child Node processes resolve them.
|
|
101
|
+
function buildEnvWithRuntime(baseEnv = process.env) {
|
|
102
|
+
const runtimeNm = getRuntimeNodeModules();
|
|
103
|
+
const existing = baseEnv.NODE_PATH || "";
|
|
104
|
+
const NODE_PATH = existing
|
|
105
|
+
? `${runtimeNm}${path.delimiter}${existing}`
|
|
106
|
+
: runtimeNm;
|
|
107
|
+
return { ...baseEnv, NODE_PATH };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
module.exports = {
|
|
111
|
+
ensureSqliteRuntime,
|
|
112
|
+
buildEnvWithRuntime,
|
|
113
|
+
getRuntimeDir,
|
|
114
|
+
getRuntimeNodeModules,
|
|
115
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "9router",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.27",
|
|
4
4
|
"description": "9Router CLI - Start and manage 9Router server",
|
|
5
5
|
"bin": {
|
|
6
6
|
"9router": "./cli.js"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"react-dom": "19.2.1",
|
|
25
25
|
"systray": "^1.0.5"
|
|
26
26
|
},
|
|
27
|
+
"comment_sqlite": "sql.js + better-sqlite3 are NOT bundled here. They are installed into ~/.9router/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.",
|
|
27
28
|
"engines": {
|
|
28
29
|
"node": ">=18.0.0"
|
|
29
30
|
},
|