@rabbi696/ezrouter 0.6.13 → 0.6.15
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/README.md +18 -0
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +28 -27
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/react-loadable-manifest.json +1 -1
- package/app/.next-cli-build/routes-manifest.json +8 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +18 -18
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +8 -8
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +8 -8
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js +2 -2
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -0
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +3 -3
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +14 -14
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +2 -2
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +2 -2
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +2 -2
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +2 -2
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +28 -27
- package/app/.next-cli-build/server/chunks/1253.js +1 -1
- package/app/.next-cli-build/server/chunks/1522.js +1 -1
- package/app/.next-cli-build/server/chunks/1733.js +1 -1
- package/app/.next-cli-build/server/chunks/1847.js +1 -1
- package/app/.next-cli-build/server/chunks/2269.js +1 -1
- package/app/.next-cli-build/server/chunks/2348.js +1 -1
- package/app/.next-cli-build/server/chunks/2898.js +1 -1
- package/app/.next-cli-build/server/chunks/290.js +1 -0
- package/app/.next-cli-build/server/chunks/3216.js +1 -1
- package/app/.next-cli-build/server/chunks/3245.js +1 -1
- package/app/.next-cli-build/server/chunks/3252.js +1 -1
- package/app/.next-cli-build/server/chunks/3267.js +4 -4
- package/app/.next-cli-build/server/chunks/3275.js +1 -0
- package/app/.next-cli-build/server/chunks/3547.js +1 -1
- package/app/.next-cli-build/server/chunks/3583.js +2 -2
- package/app/.next-cli-build/server/chunks/369.js +12 -12
- package/app/.next-cli-build/server/chunks/3794.js +1 -1
- package/app/.next-cli-build/server/chunks/3886.js +1 -1
- package/app/.next-cli-build/server/chunks/3977.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +4 -4
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4378.js +3 -3
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/4704.js +4 -4
- package/app/.next-cli-build/server/chunks/4768.js +1 -0
- package/app/.next-cli-build/server/chunks/4807.js +1 -1
- package/app/.next-cli-build/server/chunks/4811.js +1 -1
- package/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/app/.next-cli-build/server/chunks/4878.js +1 -1
- package/app/.next-cli-build/server/chunks/4882.js +1 -1
- package/app/.next-cli-build/server/chunks/5130.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6420.js +1 -0
- package/app/.next-cli-build/server/chunks/6707.js +1 -1
- package/app/.next-cli-build/server/chunks/7218.js +1 -0
- package/app/.next-cli-build/server/chunks/73.js +1 -1
- package/app/.next-cli-build/server/chunks/7594.js +16 -16
- package/app/.next-cli-build/server/chunks/7663.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7775.js +1 -1
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/8129.js +1 -1
- package/app/.next-cli-build/server/chunks/823.js +1 -1
- package/app/.next-cli-build/server/chunks/8231.js +1 -1
- package/app/.next-cli-build/server/chunks/8243.js +4 -4
- package/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/app/.next-cli-build/server/chunks/8421.js +1 -1
- package/app/.next-cli-build/server/chunks/8450.js +254 -0
- package/app/.next-cli-build/server/chunks/8459.js +1 -1
- package/app/.next-cli-build/server/chunks/8644.js +1 -1
- package/app/.next-cli-build/server/chunks/8772.js +1 -0
- package/app/.next-cli-build/server/chunks/8976.js +1 -1
- package/app/.next-cli-build/server/chunks/9026.js +17 -17
- package/app/.next-cli-build/server/chunks/9143.js +1 -1
- package/app/.next-cli-build/server/chunks/9303.js +1 -1
- package/app/.next-cli-build/server/chunks/9485.js +1 -1
- package/app/.next-cli-build/server/chunks/9843.js +1 -1
- package/app/.next-cli-build/server/chunks/9865.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +5 -5
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/{1321-e4e8edf59a3efb3b.js → 1321-043afc56cba448b8.js} +1 -1
- package/app/.next-cli-build/static/chunks/5497-8766958582f95dc7.js +17 -0
- package/app/.next-cli-build/static/chunks/{6808-42c5cc62f0d2662b.js → 6808-93e2068e37a63896.js} +1 -1
- package/app/.next-cli-build/static/chunks/8105-9dfc2c5ffef6e778.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-fa195b4f7348e2d6.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-a31d9ca05cc3d528.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/{webpack-1f254f36f822e458.js → webpack-ac71f993743961ad.js} +1 -1
- package/app/.next-cli-build/static/css/76821f2171e21e80.css +1 -0
- package/app/CHANGELOG.md +50 -1
- package/app/package.json +1 -1
- package/app/public/CHANGELOG.md +97 -1
- package/app/public/providers/muse.png +0 -0
- package/app/public/providers/tinyfish.png +0 -0
- package/app/public/providers/v1m.png +0 -0
- package/cli.js +25 -14
- package/hooks/postinstall.js +4 -0
- package/node_modules/confbox/LICENSE +27 -0
- package/node_modules/confbox/README.md +191 -0
- package/node_modules/confbox/dist/THIRD-PARTY-LICENSES.md +171 -0
- package/node_modules/confbox/dist/_chunks/_format.d.mts +25 -0
- package/node_modules/confbox/dist/_chunks/_format.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/json.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/libs/detect-indent.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/libs/ini.mjs +3 -0
- package/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +33 -0
- package/node_modules/confbox/dist/_chunks/libs/json5.mjs +14 -0
- package/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +7 -0
- package/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +249 -0
- package/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +1 -0
- package/node_modules/confbox/dist/index.d.mts +34 -0
- package/node_modules/confbox/dist/index.mjs +1 -0
- package/node_modules/confbox/dist/ini.d.mts +62 -0
- package/node_modules/confbox/dist/ini.mjs +1 -0
- package/node_modules/confbox/dist/json5.d.mts +59 -0
- package/node_modules/confbox/dist/json5.mjs +1 -0
- package/node_modules/confbox/dist/jsonc.d.mts +41 -0
- package/node_modules/confbox/dist/jsonc.mjs +1 -0
- package/node_modules/confbox/dist/toml.d.mts +23 -0
- package/node_modules/confbox/dist/toml.mjs +1 -0
- package/node_modules/confbox/dist/yaml.d.mts +96 -0
- package/node_modules/confbox/dist/yaml.mjs +1 -0
- package/node_modules/confbox/package.json +67 -0
- package/package.json +5 -3
- package/src/cli/commands/connect.js +269 -0
- package/src/cli/commands/connectTools.js +338 -0
- package/src/cli/menus/providers.js +3 -2
- package/src/cli/tray/tray.js +11 -11
- package/src/cli/utils/modelSelector.js +1 -1
- package/app/.next-cli-build/server/chunks/2767.js +0 -1
- package/app/.next-cli-build/server/chunks/3960.js +0 -254
- package/app/.next-cli-build/server/chunks/4327.js +0 -1
- package/app/.next-cli-build/server/chunks/4722.js +0 -1
- package/app/.next-cli-build/server/chunks/7528.js +0 -1
- package/app/.next-cli-build/server/chunks/8670.js +0 -1
- package/app/.next-cli-build/server/chunks/8946.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-c231188e29c8168b.js +0 -17
- package/app/.next-cli-build/static/chunks/8105-1a9e02e4d5a17e44.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-cfa303b120846bf8.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-6affb06ce74675f4.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/css/14f3f7e420fa2785.css +0 -1
- /package/app/.next-cli-build/static/{iyE9-yOA2TKfxBG8WnbZ2 → zQapcWqcr7oLVi5jh7t01}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{iyE9-yOA2TKfxBG8WnbZ2 → zQapcWqcr7oLVi5jh7t01}/_ssgManifest.js +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=4761,a.ids=[4761],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1158:(a,b,c)=>{c.d(b,{c:()=>f});var d=c(79748),e=c.n(d);async function f(a,b){let c;try{c=await e().readFile(a,"utf-8")}catch(a){if(a?.code==="ENOENT")return null;throw a}try{return b(c)}catch(c){let b=c?.message||String(c);throw Error(`${a} exists but could not be parsed (${b}); refusing to overwrite it`)}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4126:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>y,GET:()=>v,POST:()=>x});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=a=>"string"==typeof a?a:a&&"object"==typeof a?a.primary??"":"",q=()=>k().join(m().homedir(),".openclaw"),r=()=>k().join(q(),"openclaw.json"),s=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where openclaw":"which openclaw",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(r()),!0}catch{return!1}}},t=async()=>{try{let a=r(),b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}},u=async a=>{try{let b=k().join(a,"models.json"),c=await i().readFile(b,"utf-8"),d=JSON.parse(c),e=d?.providers?.["9router"]?.models;return e?.[0]?.id||null}catch{return null}};async function v(){try{if(!await s())return e.NextResponse.json({installed:!1,settings:null,message:"Open Claw CLI is not installed"});let a=await t(),b=a?.agents?.list||[],c=await Promise.all(b.map(async a=>{let b=a.agentDir?await u(a.agentDir):null;return{...a,model:p(a.model),currentModel:b}}));return e.NextResponse.json({installed:!0,settings:a,agents:c,has9Router:!!a&&!!a.models&&!!a.models.providers&&!!a.models.providers["9router"],settingsPath:r()})}catch(a){return console.log("Error checking openclaw settings:",a),e.NextResponse.json({error:"Failed to check openclaw settings"},{status:500})}}let w=async(a,b,c,d)=>{await i().mkdir(a,{recursive:!0});let e=k().join(a,"models.json"),f={};try{let a=await i().readFile(e,"utf-8");f=JSON.parse(a)}catch{}f.providers||(f.providers={}),f.providers["9router"]={baseUrl:c,apiKey:d||"your_api_key",api:"openai-completions",models:[{id:b,name:b.split("/").pop()||b}]},await i().writeFile(e,JSON.stringify(f,null,2))};async function x(a){try{let{baseUrl:b,apiKey:c,model:d,agentModels:f={}}=await a.json();if(!b||!d)return e.NextResponse.json({error:"baseUrl and model are required"},{status:400});let g=q(),h=r();await i().mkdir(g,{recursive:!0});let j={};try{let a=await i().readFile(h,"utf-8");j=JSON.parse(a)}catch{}j.agents||(j.agents={}),j.agents.defaults||(j.agents.defaults={}),j.agents.defaults.model||(j.agents.defaults.model={}),j.agents.defaults.models||(j.agents.defaults.models={}),j.models||(j.models={}),j.models.providers||(j.models.providers={});let k=b.endsWith("/v1")?b:`${b}/v1`,l=`9router/${d}`;Object.keys(j.agents.defaults.models).filter(a=>a.startsWith("9router/")).forEach(a=>{delete j.agents.defaults.models[a]}),j.agents.defaults.model.primary=l;let m=new Set([d]);return Object.values(f).forEach(a=>{a&&m.add(a)}),m.forEach(a=>{j.agents.defaults.models[`9router/${a}`]={}}),j.agents.list&&(j.agents.list=j.agents.list.map(a=>{if(p(a.model).startsWith("9router/")){let{model:b,...c}=a;return c}return a})),j.models.providers["9router"]={baseUrl:k,apiKey:c||"your_api_key",api:"openai-completions",models:[...m].map(a=>({id:a,name:a.split("/").pop()||a}))},j.agents.list&&(j.agents.list=j.agents.list.map(a=>{let b=f[a.id];return b?{...a,model:`9router/${b}`}:a}),await Promise.all(j.agents.list.map(async a=>{if(!a.agentDir)return;let b=f[a.id];await w(a.agentDir,b||d,k,c)}))),await i().writeFile(h,JSON.stringify(j,null,2)),e.NextResponse.json({success:!0,message:"Open Claw settings applied successfully!",settingsPath:h})}catch(a){return console.log("Error updating openclaw settings:",a),e.NextResponse.json({error:"Failed to update openclaw settings"},{status:500})}}async function y(){try{let a=r(),b={};try{let c=await i().readFile(a,"utf-8");b=JSON.parse(c)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No settings file to reset"});throw a}if(b.models&&b.models.providers&&(delete b.models.providers["9router"],0===Object.keys(b.models.providers).length&&delete b.models.providers),b.agents?.defaults?.models){for(let a of Object.keys(b.agents.defaults.models).filter(a=>a.startsWith("9router/")))delete b.agents.defaults.models[a];0===Object.keys(b.agents.defaults.models).length&&delete b.agents.defaults.models}return b.agents?.defaults?.model?.primary?.startsWith("9router/")&&delete b.agents.defaults.model.primary,await i().writeFile(a,JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"9Router settings removed successfully"})}catch(a){return console.log("Error resetting openclaw settings:",a),e.NextResponse.json({error:"Failed to reset openclaw settings"},{status:500})}}(0,n.D)([v,x,y]),(0,d.A)(v,"0076f222ee425e5ebf0624ce0332926d1ca8a965fe",null),(0,d.A)(x,"40f101315b8616f4a5bd121490d0718d146b4deefa",null),(0,d.A)(y,"006edbb90b97a6dbb9971a91f1815c33bf2bcbeff6",null)},5205:(a,b,c)=>{c.d(b,{f:()=>g});var d=c(31421);let e=(0,c(57975).promisify)(d.execFile),f=null;async function g({forceRefresh:a=!1}={}){if(!a&&f)return f;try{let{stdout:a,stderr:b}=await e("codex",["--version"],{windowsHide:!0,timeout:5e3}),c=`${a||""} ${b||""}`.trim();f={installed:!0,raw:c,version:c&&String(c).match(/\b(\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?)\b/)?.[1]||null}}catch{f={installed:!1,raw:null,version:null}}return f}},5568:(a,b,c)=>{c.r(b),c.d(b,{"0004562b08639143d07486411ec8834512e85173fa":()=>i.GET,"0008167666dff0f8787e92cd158f21d5afd09ce008":()=>w.DELETE,"0011bd64b867fb9667bdf6d9724065cc50cfbc5ed4":()=>v.DELETE,"0011f99e8570bd05551b68cc12936fe0d34ed7fcbc":()=>o.DELETE,"0017bda527145ffbd8e8317cf71e7ce0224828f3b4":()=>t.GET,"002d960d8f8fd23572de9d2ccee8d08a69ddb19b1e":()=>u.GET,"003aaa1373105023708a591742971785b434613a12":()=>q.GET,"003c0b0348978a8d7981ed4a848edca63c6617638a":()=>d.GET,"003c3c0cd46298a3bd35e303c260fee8fdc1bc5ff2":()=>i.DELETE,"0040b3340151e19ee1338c08fc7d7b4ec90ea76be3":()=>s.DELETE,"0044256a64f394cab51f05a4d9cb95ab6fb0f71aae":()=>j.GET,"00444cd0091c753be93a0c9ae2fca0c5e6587380ae":()=>v.GET,"005d1230dd902bedbb23081f1ef9f786d10302f42e":()=>m.GET,"0069b433484e0172a4aee53c062b8cd5feba8ea56e":()=>o.GET,"006edbb90b97a6dbb9971a91f1815c33bf2bcbeff6":()=>p.DELETE,"0076f222ee425e5ebf0624ce0332926d1ca8a965fe":()=>p.GET,"00896c4f8c710fc5de117e5d6a052bd000d346831e":()=>r.GET,"008b1b89d49da319675c44300219e200f5481c4856":()=>f.DELETE,"00939953addc6b6cbb5ecd9628f18eb08f7e7c62a8":()=>k.GET,"009a691bac2204bef699580a9e1e74940863776eca":()=>r.DELETE,"009e52bdadefdd5c608d2c884b8caa321be881f9c1":()=>u.DELETE,"00a0dc3c515634f5a647937ba0b0348ba627c43aad":()=>n.GET,"00a4570d864f7441a5293386269ee210e898845463":()=>s.GET,"00b4f53e9746f8e82ac316fde5527f6e6811cf7bdb":()=>m.DELETE,"00b7f7cd48e66e320f4176b358d7a8dbf70b11c19d":()=>f.GET,"00bd0fe2a559dc13e7d477fb167f31daf5d2103218":()=>j.DELETE,"00c03593a538507afd3c824dc6cabe92ad607d3b9f":()=>l.GET,"00cce1a48fad83ad49b3e8285db0b16d94a06ec576":()=>g.GET,"00ce3b71e0533f0fd36e4f5ce3667cc450d837e889":()=>k.DELETE,"00e796c576497d374f46c448d21a1c52a1c5462cc7":()=>w.GET,"00e9f9280fa1bf459d8fc937822c803b0514f68ed9":()=>e.DELETE,"00ec90e49edd4529d82fddf05815c462461404955d":()=>n.DELETE,"00f43eede9f4c5edc0e844c3c093b2826f18a72005":()=>g.DELETE,"00f714c132daa0f1650e431653beb5b396b9543093":()=>e.GET,"00fbe5a9001fac64053c70c5502e2c960a09763c3d":()=>t.DELETE,"40038b87a3c99d7425337c9a6eb77a2c23cd3526d6":()=>h.DELETE,"4049827329dbf3f3616a806cee1dce5d3f6784768d":()=>h.GET,"4049e35fbe3ee66cd3a4216e4171c01f2e3c6fc360":()=>k.POST,"4059ffe240de8ab05daf006844f61e3722ce3ea5e4":()=>q.POST,"405a2935d7b6fe01eb58e072a9c17bf0bcdc395992":()=>v.POST,"405eca500bcc3b3efcace5d3726530d6f53aecab68":()=>e.POST,"4060c491258b6490d4b91edef64054255c95d642d0":()=>s.POST,"4068bcbb734aa185b98f7b12ee1416b3a423b6b68a":()=>u.POST,"40695df9f15e06cb2e585fa483209bcab033463db1":()=>q.DELETE,"406997bd62abfca8da1c3773657440b05551dc9f9d":()=>w.POST,"407b0fa7a8d7987d9c2953170bfe02b81408917f4e":()=>j.POST,"407dfb831970afbff47740804e71c5f3d1f25bcf7f":()=>h.POST,"409039d8ba3310f425593bf1850999833ed6a92ade":()=>m.POST,"4090db1b2520bee2098096380fc9f18af27d0b0608":()=>f.POST,"409a605ee56a43bf53064169d7b606fc4b4839687a":()=>t.POST,"40ae55913eb328feecf084fb7d2a44ec00ec3fa447":()=>o.POST,"40b57f73522e00a1e2b75447effbc84fee829951af":()=>g.POST,"40b854b350244d1ec6b2aef502a185562735f39e96":()=>q.PATCH,"40c799ddda49d6b4746d644fd91314cc290a599c47":()=>i.POST,"40c88b025f4fcafcd98814e5e4310ad607f82aecc1":()=>n.POST,"40edc82ac86e85dcee09717963afca5906c2828bb9":()=>r.POST,"40f101315b8616f4a5bd121490d0718d146b4deefa":()=>p.POST});var d=c(19593),e=c(14833),f=c(46298),g=c(20703),h=c(21350),i=c(67116),j=c(29657),k=c(37709),l=c(32504),m=c(21757),n=c(48074),o=c(8304),p=c(4126),q=c(72452),r=c(92770),s=c(18927),t=c(21190),u=c(91542),v=c(62306),w=c(41445)},8304:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>w,GET:()=>u,POST:()=>v});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".local","share","kilo"),q=()=>k().join(p(),"auth.json"),r=()=>k().join(m().homedir(),".config","Code","User","settings.json"),s=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where kilo":"which kilo",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(q()),!0}catch{return!1}}},t=async a=>{try{let b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}};async function u(){try{if(!await s())return e.NextResponse.json({installed:!1,settings:null,message:"Kilo Code CLI is not installed"});let a=await t(q());return e.NextResponse.json({installed:!0,settings:{auth:a?Object.keys(a):[]},has9Router:(a=>{if(!a)return!1;let b=a["openai-compatible"]||a["9router"];if(!b)return!1;let c=b.baseUrl||b.baseURL||"";return c.includes("localhost")||c.includes("127.0.0.1")||c.includes("9router")})(a),authPath:q()})}catch(a){return console.log("Error checking kilo settings:",a),e.NextResponse.json({error:"Failed to check kilo settings"},{status:500})}}async function v(a){try{let{baseUrl:b,apiKey:c,model:d}=await a.json();if(!b||!c||!d)return e.NextResponse.json({error:"baseUrl, apiKey and model are required"},{status:400});await i().mkdir(p(),{recursive:!0});let f=b.endsWith("/v1")?b:`${b}/v1`,g=await t(q())||{};g["openai-compatible"]={type:"api-key",apiKey:c,baseUrl:f,model:d},await i().writeFile(q(),JSON.stringify(g,null,2));try{let a=await t(r())||{};a["kilocode.customProvider"]={name:"9Router",baseURL:f,apiKey:c},a["kilocode.defaultModel"]=d,await i().writeFile(r(),JSON.stringify(a,null,2))}catch{}return e.NextResponse.json({success:!0,message:"Kilo Code settings applied successfully!",authPath:q()})}catch(a){return console.log("Error updating kilo settings:",a),e.NextResponse.json({error:"Failed to update kilo settings"},{status:500})}}async function w(){try{let a=await t(q());if(!a)return e.NextResponse.json({success:!0,message:"No settings file to reset"});delete a["openai-compatible"],delete a["9router"],await i().writeFile(q(),JSON.stringify(a,null,2));try{let a=await t(r());a&&(delete a["kilocode.customProvider"],delete a["kilocode.defaultModel"],await i().writeFile(r(),JSON.stringify(a,null,2)))}catch{}return e.NextResponse.json({success:!0,message:"9Router settings removed from Kilo Code"})}catch(a){return console.log("Error resetting kilo settings:",a),e.NextResponse.json({error:"Failed to reset kilo settings"},{status:500})}}(0,n.D)([u,v,w]),(0,d.A)(u,"0069b433484e0172a4aee53c062b8cd5feba8ea56e",null),(0,d.A)(v,"40ae55913eb328feecf084fb7d2a44ec00ec3fa447",null),(0,d.A)(w,"0011f99e8570bd05551b68cc12936fe0d34ed7fcbc",null)},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14833:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>A,GET:()=>x,POST:()=>y});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(28286),o=c(24424);let p=(0,g.promisify)(f.exec),q=n.DEFAULT_PLUGINS.find(a=>"exa"===a.name),r=()=>{let a=m().homedir();return k().join(a,".claude","settings.json")},s=()=>k().join(m().homedir(),".claude.json"),t=async()=>{try{let a=await i().readFile(s(),"utf-8");return JSON.parse(a.replace(/,(\s*[}\]])/g,"$1"))}catch{return null}},u=async a=>{let b=s(),c={};try{c=JSON.parse(await i().readFile(b,"utf-8"))}catch(a){if("ENOENT"!==a.code)throw a}a&&Object.keys(a).length>0?c.mcpServers={...c.mcpServers||{},...a}:c.mcpServers&&(delete c.mcpServers.exa,0===Object.keys(c.mcpServers).length&&delete c.mcpServers),await i().writeFile(b,JSON.stringify(c,null,2))},v=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await p(a?"where claude":"which claude",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(r()),!0}catch{return!1}}},w=async()=>{try{let a=r(),b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}};async function x(){try{if(!await v())return e.NextResponse.json({installed:!1,settings:null,message:"Claude CLI is not installed"});let a=await w(),b=!!a?.env?.ANTHROPIC_BASE_URL,c=await t();return e.NextResponse.json({installed:!0,settings:a,has9Router:b,exaMcpEnabled:!!c?.mcpServers?.exa,settingsPath:r()})}catch(a){return console.log("Error checking claude settings:",a),e.NextResponse.json({error:"Failed to check claude settings"},{status:500})}}async function y(a){try{let{env:b,exaMcpEnabled:c,autoCompactWindow:d}=await a.json();if(!b||"object"!=typeof b)return e.NextResponse.json({error:"Invalid env object"},{status:400});let f=r(),g=k().dirname(f);await i().mkdir(g,{recursive:!0});let h={};try{let a=await i().readFile(f,"utf-8");h=JSON.parse(a)}catch(a){if("ENOENT"!==a.code)throw a}b.ANTHROPIC_BASE_URL&&(b.ANTHROPIC_BASE_URL=b.ANTHROPIC_BASE_URL.endsWith("/v1")?b.ANTHROPIC_BASE_URL:`${b.ANTHROPIC_BASE_URL}/v1`),h.env?.ANTHROPIC_AUTH_TOKEN&&delete b.ANTHROPIC_AUTH_TOKEN;let j={...h,hasCompletedOnboarding:!0,env:{...h.env||{},...b}};return d?j.env.CLAUDE_CODE_AUTO_COMPACT_WINDOW=String(d):delete j.env.CLAUDE_CODE_AUTO_COMPACT_WINDOW,await i().writeFile(f,JSON.stringify(j,null,2)),q&&await u(c?{exa:{type:q.transport,url:q.url}}:null),e.NextResponse.json({success:!0,message:"Settings updated successfully"})}catch(a){return console.log("Error updating claude settings:",a),e.NextResponse.json({error:"Failed to update claude settings"},{status:500})}}let z=["ANTHROPIC_BASE_URL","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","API_TIMEOUT_MS","CLAUDE_CODE_AUTO_COMPACT_WINDOW"];async function A(){try{let a=r(),b={};try{let c=await i().readFile(a,"utf-8");b=JSON.parse(c)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No settings file to reset"});throw a}return b.env&&(z.forEach(a=>{delete b.env[a]}),0===Object.keys(b.env).length&&delete b.env),await u(null),await i().writeFile(a,JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"Settings reset successfully"})}catch(a){return console.log("Error resetting claude settings:",a),e.NextResponse.json({error:"Failed to reset claude settings"},{status:500})}}(0,o.D)([x,y,A]),(0,d.A)(x,"00f714c132daa0f1650e431653beb5b396b9543093",null),(0,d.A)(y,"405eca500bcc3b3efcace5d3726530d6f53aecab68",null),(0,d.A)(A,"00e9f9280fa1bf459d8fc937822c803b0514f68ed9",null)},18927:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>x,GET:()=>v,POST:()=>w});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(79646),m=c(28354),n=c(24424);let o=(0,m.promisify)(l.exec),p="9router",q=()=>i().join(k().homedir(),".omp","agent"),r=()=>i().join(q(),"agent.db"),s=()=>i().join(q(),"models.yml"),t=async()=>{let a="win32"===k().platform();try{return await o(a?"where omp":"which omp",{windowsHide:!0}),!0}catch{try{return await g().access(r()),!0}catch{try{return await g().access(s()),!0}catch{return!1}}}},u=async()=>{try{return await g().readFile(s(),"utf-8")}catch{return""}};async function v(){try{var a;if(!await t())return e.NextResponse.json({installed:!1,config:null,message:"Oh My Pi is not installed"});let b=!!(a=await u())&&(a.includes("ezrouter:")||a.includes("9router:")||a.includes("localhost:20126")||a.includes("localhost:20128"));return e.NextResponse.json({installed:!0,has9Router:b,configPath:s()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function w(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let a,{baseUrl:d,apiKey:f}=b||{};if(!d)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});await g().mkdir(q(),{recursive:!0});let h=await u(),i=(a=d.endsWith("/v1")?d:`${d}/v1`,` ${p}:
|
|
1
|
+
"use strict";(()=>{var a={};a.id=4761,a.ids=[4761],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1158:(a,b,c)=>{c.d(b,{c:()=>f});var d=c(79748),e=c.n(d);async function f(a,b){let c;try{c=await e().readFile(a,"utf-8")}catch(a){if(a?.code==="ENOENT")return null;throw a}try{return b(c)}catch(c){let b=c?.message||String(c);throw Error(`${a} exists but could not be parsed (${b}); refusing to overwrite it`)}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4126:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>y,GET:()=>v,POST:()=>x});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=a=>"string"==typeof a?a:a&&"object"==typeof a?a.primary??"":"",q=()=>k().join(m().homedir(),".openclaw"),r=()=>k().join(q(),"openclaw.json"),s=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where openclaw":"which openclaw",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(r()),!0}catch{return!1}}},t=async()=>{try{let a=r(),b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}},u=async a=>{try{let b=k().join(a,"models.json"),c=await i().readFile(b,"utf-8"),d=JSON.parse(c),e=d?.providers?.["9router"]?.models;return e?.[0]?.id||null}catch{return null}};async function v(){try{if(!await s())return e.NextResponse.json({installed:!1,settings:null,message:"Open Claw CLI is not installed"});let a=await t(),b=a?.agents?.list||[],c=await Promise.all(b.map(async a=>{let b=a.agentDir?await u(a.agentDir):null;return{...a,model:p(a.model),currentModel:b}}));return e.NextResponse.json({installed:!0,settings:a,agents:c,has9Router:!!a&&!!a.models&&!!a.models.providers&&!!a.models.providers["9router"],settingsPath:r()})}catch(a){return console.log("Error checking openclaw settings:",a),e.NextResponse.json({error:"Failed to check openclaw settings"},{status:500})}}let w=async(a,b,c,d)=>{await i().mkdir(a,{recursive:!0});let e=k().join(a,"models.json"),f={};try{let a=await i().readFile(e,"utf-8");f=JSON.parse(a)}catch{}f.providers||(f.providers={}),f.providers["9router"]={baseUrl:c,apiKey:d||"your_api_key",api:"openai-completions",models:[{id:b,name:b.split("/").pop()||b}]},await i().writeFile(e,JSON.stringify(f,null,2))};async function x(a){try{let{baseUrl:b,apiKey:c,model:d,agentModels:f={}}=await a.json();if(!b||!d)return e.NextResponse.json({error:"baseUrl and model are required"},{status:400});let g=q(),h=r();await i().mkdir(g,{recursive:!0});let j={};try{let a=await i().readFile(h,"utf-8");j=JSON.parse(a)}catch{}j.agents||(j.agents={}),j.agents.defaults||(j.agents.defaults={}),j.agents.defaults.model||(j.agents.defaults.model={}),j.agents.defaults.models||(j.agents.defaults.models={}),j.models||(j.models={}),j.models.providers||(j.models.providers={});let k=b.endsWith("/v1")?b:`${b}/v1`,l=`9router/${d}`;Object.keys(j.agents.defaults.models).filter(a=>a.startsWith("9router/")).forEach(a=>{delete j.agents.defaults.models[a]}),j.agents.defaults.model.primary=l;let m=new Set([d]);return Object.values(f).forEach(a=>{a&&m.add(a)}),m.forEach(a=>{j.agents.defaults.models[`9router/${a}`]={}}),j.agents.list&&(j.agents.list=j.agents.list.map(a=>{if(p(a.model).startsWith("9router/")){let{model:b,...c}=a;return c}return a})),j.models.providers["9router"]={baseUrl:k,apiKey:c||"your_api_key",api:"openai-completions",models:[...m].map(a=>({id:a,name:a.split("/").pop()||a}))},j.agents.list&&(j.agents.list=j.agents.list.map(a=>{let b=f[a.id];return b?{...a,model:`9router/${b}`}:a}),await Promise.all(j.agents.list.map(async a=>{if(!a.agentDir)return;let b=f[a.id];await w(a.agentDir,b||d,k,c)}))),await i().writeFile(h,JSON.stringify(j,null,2)),e.NextResponse.json({success:!0,message:"Open Claw settings applied successfully!",settingsPath:h})}catch(a){return console.log("Error updating openclaw settings:",a),e.NextResponse.json({error:"Failed to update openclaw settings"},{status:500})}}async function y(){try{let a=r(),b={};try{let c=await i().readFile(a,"utf-8");b=JSON.parse(c)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No settings file to reset"});throw a}if(b.models&&b.models.providers&&(delete b.models.providers["9router"],0===Object.keys(b.models.providers).length&&delete b.models.providers),b.agents?.defaults?.models){for(let a of Object.keys(b.agents.defaults.models).filter(a=>a.startsWith("9router/")))delete b.agents.defaults.models[a];0===Object.keys(b.agents.defaults.models).length&&delete b.agents.defaults.models}return b.agents?.defaults?.model?.primary?.startsWith("9router/")&&delete b.agents.defaults.model.primary,await i().writeFile(a,JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"9Router settings removed successfully"})}catch(a){return console.log("Error resetting openclaw settings:",a),e.NextResponse.json({error:"Failed to reset openclaw settings"},{status:500})}}(0,n.D)([v,x,y]),(0,d.A)(v,"0076f222ee425e5ebf0624ce0332926d1ca8a965fe",null),(0,d.A)(x,"40f101315b8616f4a5bd121490d0718d146b4deefa",null),(0,d.A)(y,"006edbb90b97a6dbb9971a91f1815c33bf2bcbeff6",null)},5205:(a,b,c)=>{c.d(b,{f:()=>g});var d=c(31421);let e=(0,c(57975).promisify)(d.execFile),f=null;async function g({forceRefresh:a=!1}={}){if(!a&&f)return f;try{let{stdout:a,stderr:b}=await e("codex",["--version"],{windowsHide:!0,timeout:5e3}),c=`${a||""} ${b||""}`.trim();f={installed:!0,raw:c,version:c&&String(c).match(/\b(\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?)\b/)?.[1]||null}}catch{f={installed:!1,raw:null,version:null}}return f}},5568:(a,b,c)=>{c.r(b),c.d(b,{"0004562b08639143d07486411ec8834512e85173fa":()=>i.GET,"0008167666dff0f8787e92cd158f21d5afd09ce008":()=>w.DELETE,"0011bd64b867fb9667bdf6d9724065cc50cfbc5ed4":()=>v.DELETE,"0011f99e8570bd05551b68cc12936fe0d34ed7fcbc":()=>o.DELETE,"0017bda527145ffbd8e8317cf71e7ce0224828f3b4":()=>t.GET,"002d960d8f8fd23572de9d2ccee8d08a69ddb19b1e":()=>u.GET,"003aaa1373105023708a591742971785b434613a12":()=>q.GET,"003c0b0348978a8d7981ed4a848edca63c6617638a":()=>d.GET,"003c3c0cd46298a3bd35e303c260fee8fdc1bc5ff2":()=>i.DELETE,"0040b3340151e19ee1338c08fc7d7b4ec90ea76be3":()=>s.DELETE,"0044256a64f394cab51f05a4d9cb95ab6fb0f71aae":()=>j.GET,"00444cd0091c753be93a0c9ae2fca0c5e6587380ae":()=>v.GET,"005d1230dd902bedbb23081f1ef9f786d10302f42e":()=>m.GET,"0069b433484e0172a4aee53c062b8cd5feba8ea56e":()=>o.GET,"006edbb90b97a6dbb9971a91f1815c33bf2bcbeff6":()=>p.DELETE,"0076f222ee425e5ebf0624ce0332926d1ca8a965fe":()=>p.GET,"00896c4f8c710fc5de117e5d6a052bd000d346831e":()=>r.GET,"008b1b89d49da319675c44300219e200f5481c4856":()=>f.DELETE,"00939953addc6b6cbb5ecd9628f18eb08f7e7c62a8":()=>k.GET,"009a691bac2204bef699580a9e1e74940863776eca":()=>r.DELETE,"009e52bdadefdd5c608d2c884b8caa321be881f9c1":()=>u.DELETE,"00a0dc3c515634f5a647937ba0b0348ba627c43aad":()=>n.GET,"00a4570d864f7441a5293386269ee210e898845463":()=>s.GET,"00b4f53e9746f8e82ac316fde5527f6e6811cf7bdb":()=>m.DELETE,"00b7f7cd48e66e320f4176b358d7a8dbf70b11c19d":()=>f.GET,"00bd0fe2a559dc13e7d477fb167f31daf5d2103218":()=>j.DELETE,"00c03593a538507afd3c824dc6cabe92ad607d3b9f":()=>l.GET,"00cce1a48fad83ad49b3e8285db0b16d94a06ec576":()=>g.GET,"00ce3b71e0533f0fd36e4f5ce3667cc450d837e889":()=>k.DELETE,"00e796c576497d374f46c448d21a1c52a1c5462cc7":()=>w.GET,"00e9f9280fa1bf459d8fc937822c803b0514f68ed9":()=>e.DELETE,"00ec90e49edd4529d82fddf05815c462461404955d":()=>n.DELETE,"00f43eede9f4c5edc0e844c3c093b2826f18a72005":()=>g.DELETE,"00f714c132daa0f1650e431653beb5b396b9543093":()=>e.GET,"00fbe5a9001fac64053c70c5502e2c960a09763c3d":()=>t.DELETE,"40038b87a3c99d7425337c9a6eb77a2c23cd3526d6":()=>h.DELETE,"4049827329dbf3f3616a806cee1dce5d3f6784768d":()=>h.GET,"4049e35fbe3ee66cd3a4216e4171c01f2e3c6fc360":()=>k.POST,"4059ffe240de8ab05daf006844f61e3722ce3ea5e4":()=>q.POST,"405a2935d7b6fe01eb58e072a9c17bf0bcdc395992":()=>v.POST,"405eca500bcc3b3efcace5d3726530d6f53aecab68":()=>e.POST,"4060c491258b6490d4b91edef64054255c95d642d0":()=>s.POST,"4068bcbb734aa185b98f7b12ee1416b3a423b6b68a":()=>u.POST,"40695df9f15e06cb2e585fa483209bcab033463db1":()=>q.DELETE,"406997bd62abfca8da1c3773657440b05551dc9f9d":()=>w.POST,"407b0fa7a8d7987d9c2953170bfe02b81408917f4e":()=>j.POST,"407dfb831970afbff47740804e71c5f3d1f25bcf7f":()=>h.POST,"409039d8ba3310f425593bf1850999833ed6a92ade":()=>m.POST,"4090db1b2520bee2098096380fc9f18af27d0b0608":()=>f.POST,"409a605ee56a43bf53064169d7b606fc4b4839687a":()=>t.POST,"40ae55913eb328feecf084fb7d2a44ec00ec3fa447":()=>o.POST,"40b57f73522e00a1e2b75447effbc84fee829951af":()=>g.POST,"40b854b350244d1ec6b2aef502a185562735f39e96":()=>q.PATCH,"40c799ddda49d6b4746d644fd91314cc290a599c47":()=>i.POST,"40c88b025f4fcafcd98814e5e4310ad607f82aecc1":()=>n.POST,"40edc82ac86e85dcee09717963afca5906c2828bb9":()=>r.POST,"40f101315b8616f4a5bd121490d0718d146b4deefa":()=>p.POST});var d=c(19593),e=c(14833),f=c(46298),g=c(20703),h=c(21350),i=c(67116),j=c(29657),k=c(37709),l=c(32504),m=c(21757),n=c(48074),o=c(8304),p=c(4126),q=c(72452),r=c(92770),s=c(18927),t=c(21190),u=c(91542),v=c(62306),w=c(41445)},8304:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>w,GET:()=>u,POST:()=>v});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".local","share","kilo"),q=()=>k().join(p(),"auth.json"),r=()=>k().join(m().homedir(),".config","Code","User","settings.json"),s=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where kilo":"which kilo",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(q()),!0}catch{return!1}}},t=async a=>{try{let b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}};async function u(){try{if(!await s())return e.NextResponse.json({installed:!1,settings:null,message:"Kilo Code CLI is not installed"});let a=await t(q());return e.NextResponse.json({installed:!0,settings:{auth:a?Object.keys(a):[]},has9Router:(a=>{if(!a)return!1;let b=a["openai-compatible"]||a["9router"];if(!b)return!1;let c=b.baseUrl||b.baseURL||"";return c.includes("localhost")||c.includes("127.0.0.1")||c.includes("9router")})(a),authPath:q()})}catch(a){return console.log("Error checking kilo settings:",a),e.NextResponse.json({error:"Failed to check kilo settings"},{status:500})}}async function v(a){try{let{baseUrl:b,apiKey:c,model:d}=await a.json();if(!b||!c||!d)return e.NextResponse.json({error:"baseUrl, apiKey and model are required"},{status:400});await i().mkdir(p(),{recursive:!0});let f=b.endsWith("/v1")?b:`${b}/v1`,g=await t(q())||{};g["openai-compatible"]={type:"api-key",apiKey:c,baseUrl:f,model:d},await i().writeFile(q(),JSON.stringify(g,null,2));try{let a=await t(r())||{};a["kilocode.customProvider"]={name:"9Router",baseURL:f,apiKey:c},a["kilocode.defaultModel"]=d,await i().writeFile(r(),JSON.stringify(a,null,2))}catch{}return e.NextResponse.json({success:!0,message:"Kilo Code settings applied successfully!",authPath:q()})}catch(a){return console.log("Error updating kilo settings:",a),e.NextResponse.json({error:"Failed to update kilo settings"},{status:500})}}async function w(){try{let a=await t(q());if(!a)return e.NextResponse.json({success:!0,message:"No settings file to reset"});delete a["openai-compatible"],delete a["9router"],await i().writeFile(q(),JSON.stringify(a,null,2));try{let a=await t(r());a&&(delete a["kilocode.customProvider"],delete a["kilocode.defaultModel"],await i().writeFile(r(),JSON.stringify(a,null,2)))}catch{}return e.NextResponse.json({success:!0,message:"9Router settings removed from Kilo Code"})}catch(a){return console.log("Error resetting kilo settings:",a),e.NextResponse.json({error:"Failed to reset kilo settings"},{status:500})}}(0,n.D)([u,v,w]),(0,d.A)(u,"0069b433484e0172a4aee53c062b8cd5feba8ea56e",null),(0,d.A)(v,"40ae55913eb328feecf084fb7d2a44ec00ec3fa447",null),(0,d.A)(w,"0011f99e8570bd05551b68cc12936fe0d34ed7fcbc",null)},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14833:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>A,GET:()=>x,POST:()=>y});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(28286),o=c(24424);let p=(0,g.promisify)(f.exec),q=n.DEFAULT_PLUGINS.find(a=>"exa"===a.name),r=()=>{let a=m().homedir();return k().join(a,".claude","settings.json")},s=()=>k().join(m().homedir(),".claude.json"),t=async()=>{try{let a=await i().readFile(s(),"utf-8");return JSON.parse(a.replace(/,(\s*[}\]])/g,"$1"))}catch{return null}},u=async a=>{let b=s(),c={};try{c=JSON.parse(await i().readFile(b,"utf-8"))}catch(a){if("ENOENT"!==a.code)throw a}a&&Object.keys(a).length>0?c.mcpServers={...c.mcpServers||{},...a}:c.mcpServers&&(delete c.mcpServers.exa,0===Object.keys(c.mcpServers).length&&delete c.mcpServers),await i().writeFile(b,JSON.stringify(c,null,2))},v=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await p(a?"where claude":"which claude",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(r()),!0}catch{return!1}}},w=async()=>{try{let a=r(),b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}};async function x(){try{if(!await v())return e.NextResponse.json({installed:!1,settings:null,message:"Claude CLI is not installed"});let a=await w(),b=!!a?.env?.ANTHROPIC_BASE_URL,c=await t();return e.NextResponse.json({installed:!0,settings:a,has9Router:b,exaMcpEnabled:!!c?.mcpServers?.exa,settingsPath:r()})}catch(a){return console.log("Error checking claude settings:",a),e.NextResponse.json({error:"Failed to check claude settings"},{status:500})}}async function y(a){try{let{env:b,exaMcpEnabled:c,autoCompactWindow:d}=await a.json();if(!b||"object"!=typeof b)return e.NextResponse.json({error:"Invalid env object"},{status:400});let f=r(),g=k().dirname(f);await i().mkdir(g,{recursive:!0});let h={};try{let a=await i().readFile(f,"utf-8");h=JSON.parse(a)}catch(a){if("ENOENT"!==a.code)throw a}b.ANTHROPIC_BASE_URL&&(b.ANTHROPIC_BASE_URL=b.ANTHROPIC_BASE_URL.endsWith("/v1")?b.ANTHROPIC_BASE_URL:`${b.ANTHROPIC_BASE_URL}/v1`),h.env?.ANTHROPIC_AUTH_TOKEN&&delete b.ANTHROPIC_AUTH_TOKEN;let j={...h,hasCompletedOnboarding:!0,env:{...h.env||{},...b}};return d?j.env.CLAUDE_CODE_AUTO_COMPACT_WINDOW=String(d):delete j.env.CLAUDE_CODE_AUTO_COMPACT_WINDOW,await i().writeFile(f,JSON.stringify(j,null,2)),q&&await u(c?{exa:{type:q.transport,url:q.url}}:null),e.NextResponse.json({success:!0,message:"Settings updated successfully"})}catch(a){return console.log("Error updating claude settings:",a),e.NextResponse.json({error:"Failed to update claude settings"},{status:500})}}let z=["ANTHROPIC_BASE_URL","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","API_TIMEOUT_MS","CLAUDE_CODE_AUTO_COMPACT_WINDOW"];async function A(){try{let a=r(),b={};try{let c=await i().readFile(a,"utf-8");b=JSON.parse(c)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No settings file to reset"});throw a}return b.env&&(z.forEach(a=>{delete b.env[a]}),0===Object.keys(b.env).length&&delete b.env),await u(null),await i().writeFile(a,JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"Settings reset successfully"})}catch(a){return console.log("Error resetting claude settings:",a),e.NextResponse.json({error:"Failed to reset claude settings"},{status:500})}}(0,o.D)([x,y,A]),(0,d.A)(x,"00f714c132daa0f1650e431653beb5b396b9543093",null),(0,d.A)(y,"405eca500bcc3b3efcace5d3726530d6f53aecab68",null),(0,d.A)(A,"00e9f9280fa1bf459d8fc937822c803b0514f68ed9",null)},18927:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>y,GET:()=>w,POST:()=>x});var d=c(49796),e=c(23211),f=c(79984),g=c(79748),h=c.n(g),i=c(33873),j=c.n(i),k=c(21820),l=c.n(k),m=c(79646),n=c(28354),o=c(24424);let p=(0,n.promisify)(m.exec),q="9router",r=()=>j().join(l().homedir(),".omp","agent"),s=()=>j().join(r(),"agent.db"),t=()=>j().join(r(),"models.yml"),u=async()=>{let a="win32"===l().platform();try{return await p(a?"where omp":"which omp",{windowsHide:!0}),!0}catch{try{return await h().access(s()),!0}catch{try{return await h().access(t()),!0}catch{return!1}}}},v=async()=>{try{return await h().readFile(t(),"utf-8")}catch{return""}};async function w(){try{var a;if(!await u())return e.NextResponse.json({installed:!1,config:null,message:"Oh My Pi is not installed"});let b=!!(a=await v())&&(a.includes("ezrouter:")||a.includes("9router:")||a.includes("localhost:20126")||a.includes("localhost:20128"));return e.NextResponse.json({installed:!0,has9Router:b,configPath:t()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function x(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let a,{baseUrl:d,apiKey:g}=b||{};if(!d)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let i=await (0,f.k)(g);await h().mkdir(r(),{recursive:!0});let j=await v(),k=(a=d.endsWith("/v1")?d:`${d}/v1`,` ${q}:
|
|
2
2
|
baseUrl: ${a}
|
|
3
|
-
apiKey: ${
|
|
3
|
+
apiKey: ${i||""}
|
|
4
4
|
api: openai-completions
|
|
5
5
|
authHeader: true
|
|
6
6
|
disableStrictTools: true
|
|
7
7
|
discovery:
|
|
8
|
-
type: proxy`),
|
|
9
|
-
${
|
|
8
|
+
type: proxy`),l=RegExp(`\\s*${q}:[\\s\\S]*?(?=\\n\\s*\\w+:|$)`,"g");j=(j=j.replace(l,"")).trim()?j.includes("providers:")?j.replace(/providers:/,`providers:
|
|
9
|
+
${k}`):`${j.trim()}
|
|
10
10
|
|
|
11
11
|
providers:
|
|
12
|
-
${
|
|
12
|
+
${k}
|
|
13
13
|
`:`providers:
|
|
14
|
-
${
|
|
15
|
-
`,await
|
|
14
|
+
${k}
|
|
15
|
+
`,await h().writeFile(t(),j,"utf-8");try{let a;try{let b=await Promise.resolve().then(c.t.bind(c,87550,23));a=b.default||b}catch{}if(a){let b=s(),c=new a(b);c.prepare("DELETE FROM auth_credentials WHERE provider = ?").run(q),c.prepare("INSERT INTO auth_credentials (provider, credential_type, data, disabled_cause, identity_key, created_at, updated_at) VALUES (?, ?, ?, NULL, NULL, ?, ?)").run(q,"api_key",JSON.stringify({apiKey:i,baseUrl:d}),Math.floor(Date.now()/1e3),Math.floor(Date.now()/1e3)),c.close()}}catch{}return e.NextResponse.json({success:!0,message:"Oh My Pi settings applied! Run 'omp' and all EzRouter models appear under 9router in /model.",configPath:t()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function y(){try{let a=await v(),b=RegExp(`\\s*${q}:[\\s\\S]*?(?=\\n\\s*\\w+:|$)`,"g");return a=a.replace(b,""),"providers:"===a.trim()?await h().rm(t(),{force:!0}):await h().writeFile(t(),a,"utf-8"),e.NextResponse.json({success:!0,message:"EzRouter removed from Oh My Pi"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,o.D)([w,x,y]),(0,d.A)(w,"00a4570d864f7441a5293386269ee210e898845463",null),(0,d.A)(x,"4060c491258b6490d4b91edef64054255c95d642d0",null),(0,d.A)(y,"0040b3340151e19ee1338c08fc7d7b4ec90ea76be3",null)},19593:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>D});var d=c(49796),e=c(23211),f=c(14833),g=c(46298),h=c(58750),i=c(20703),j=c(21350),k=c(67116),l=c(29657),m=c(37709),n=c(32504),o=c(21757),p=c(48074),q=c(8304),r=c(4126),s=c(72452),t=c(92770),u=c(18927),v=c(21190),w=c(91542),x=c(62306),y=c(41445),z=c(24424);let A={claude:f.GET,codex:h.GET,opencode:s.GET,droid:l.GET,openclaw:r.GET,hermes:o.GET,cowork:j.GET,copilot:i.GET,cline:g.GET,kilo:q.GET,"deepseek-tui":k.GET,jcode:p.GET,"grok-build":m.GET,devin:n.GET,pi:t.GET,omp:u.GET,crush:v.GET,forge:w.GET,smelt:x.GET,codewhale:y.GET},B=null,C=0;async function D(){let a=Date.now();if(B&&a-C<5e3)return e.NextResponse.json(B);let b=Object.fromEntries(await Promise.all(Object.entries(A).map(async([a,b])=>{try{let c=await b(),d=await c.json();return[a,d]}catch{return[a,null]}})));return B=b,C=a,e.NextResponse.json(b)}(0,z.D)([D]),(0,d.A)(D,"003c0b0348978a8d7981ed4a848edca63c6617638a",null)},20703:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>s,GET:()=>q,POST:()=>r});var d=c(49796),e=c(23211),f=c(1158),g=c(79984),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=()=>{let a=m().homedir(),b=m().platform();return"win32"===b?k().join(process.env.APPDATA||a,"Code","User","chatLanguageModels.json"):"darwin"===b?k().join(a,"Library","Application Support","Code","User","chatLanguageModels.json"):k().join(a,".config","Code","User","chatLanguageModels.json")},p=async()=>{try{let a=(await i().readFile(o(),"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(a)}catch(a){return null}};async function q(){try{let a=await p(),b=Array.isArray(a)&&a.find(a=>"9Router"===a.name)||null;return e.NextResponse.json({installed:!0,config:a,has9Router:!!Array.isArray(a)&&a.some(a=>"9Router"===a.name),configPath:o(),currentModel:b?.models?.[0]?.id||null,currentUrl:b?.models?.[0]?.url||null})}catch(a){return console.log("Error checking copilot settings:",a),e.NextResponse.json({error:"Failed to check copilot settings"},{status:500})}}async function r(a){try{let{baseUrl:b,apiKey:c,models:d}=await a.json();if(!b||!d?.length)return e.NextResponse.json({error:"baseUrl and models are required"},{status:400});let h=o();await i().mkdir(k().dirname(h),{recursive:!0});let j=await (0,f.c)(h,JSON.parse);if(null!==j&&!Array.isArray(j))throw Error(`${h} is not a provider array; refusing to overwrite it`);let l=j??[],m=`${b}/chat/completions#models.ai.azure.com`,n=await (0,g.k)(c),p={name:"9Router",vendor:"azure",apiKey:n,models:d.map(a=>({id:a,name:a,url:m,toolCalling:!0,vision:!1,maxInputTokens:128e3,maxOutputTokens:16e3}))},q=l.findIndex(a=>"9Router"===a.name);return q>=0?l[q]=p:l.push(p),await i().writeFile(h,JSON.stringify(l,null,2)),e.NextResponse.json({success:!0,message:"Copilot settings applied! Reload VS Code to take effect.",configPath:h})}catch(b){console.log("Error updating copilot settings:",b);let a=String(b?.message||"").includes("refusing to overwrite it");return e.NextResponse.json({error:a?b.message:"Failed to update copilot settings"},{status:500})}}async function s(){try{let a=o(),b=[];try{let c=await i().readFile(a,"utf-8"),d=JSON.parse(c);b=Array.isArray(d)?d:[]}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file to reset"});throw a}return b=b.filter(a=>"9Router"!==a.name),await i().writeFile(a,JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"9Router removed from Copilot config"})}catch(a){return console.log("Error resetting copilot settings:",a),e.NextResponse.json({error:"Failed to reset copilot settings"},{status:500})}}(0,n.D)([q,r,s]),(0,d.A)(q,"00cce1a48fad83ad49b3e8285db0b16d94a06ec576",null),(0,d.A)(r,"40b57f73522e00a1e2b75447effbc84fee829951af",null),(0,d.A)(s,"00f43eede9f4c5edc0e844c3c093b2826f18a72005",null)},21190:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>v,GET:()=>t,POST:()=>u});var d=c(49796),e=c(23211),f=c(79984),g=c(79748),h=c.n(g),i=c(33873),j=c.n(i),k=c(21820),l=c.n(k),m=c(79646),n=c(28354),o=c(24424);let p=(0,n.promisify)(m.exec),q=()=>{let a=process.env.XDG_CONFIG_HOME||j().join(l().homedir(),".config");return j().join(a,"crush","crush.json")},r=async()=>{let a="win32"===l().platform();try{return await p(a?"where crush":"which crush",{windowsHide:!0}),!0}catch{try{return await h().access(q()),!0}catch{return!1}}},s=async()=>{try{let a=await h().readFile(q(),"utf-8");return JSON.parse(a)}catch{return null}};async function t(){try{if(!await r())return e.NextResponse.json({installed:!1,config:null,message:"Crush CLI is not installed"});let a=await s();return e.NextResponse.json({installed:!0,config:a,has9Router:(a=>{if(!a||!a.providers)return!1;let b=a.providers.ezrouter||a.providers["9router"];if(b&&b.base_url)return!0;for(let b of Object.values(a.providers))if(b.base_url&&(b.base_url.includes("20126")||b.base_url.includes("20128")))return!0;return!1})(a),configPath:q()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function u(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:c,model:d}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let g=q();await h().mkdir(j().dirname(q()),{recursive:!0});let i={};try{let a=await h().readFile(g,"utf-8");i=JSON.parse(a)}catch{}i.providers||(i.providers={});let k=a.endsWith("/v1")?a:`${a}/v1`,l=d||"provider/model-id";return i.providers["9router"]={type:"openai-compat",base_url:k,api_key:await (0,f.k)(c),models:[{id:l,name:l,context_window:128e3}]},await h().writeFile(g,JSON.stringify(i,null,2),"utf-8"),e.NextResponse.json({success:!0,message:"Crush settings applied successfully!",configPath:g})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function v(){try{let a=q(),b={};try{let c=await h().readFile(a,"utf-8");b=JSON.parse(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return b.providers&&(b.providers["9router"]||b.providers.ezrouter)&&(delete b.providers["9router"],delete b.providers.ezrouter,0===Object.keys(b.providers).length&&delete b.providers,await h().writeFile(a,JSON.stringify(b,null,2),"utf-8")),e.NextResponse.json({success:!0,message:"EzRouter removed from Crush"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,o.D)([t,u,v]),(0,d.A)(t,"0017bda527145ffbd8e8317cf71e7ce0224828f3b4",null),(0,d.A)(u,"409a605ee56a43bf53064169d7b606fc4b4839687a",null),(0,d.A)(v,"00fbe5a9001fac64053c70c5502e2c960a09763c3d",null)},21757:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>K,GET:()=>I,POST:()=>J});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".hermes"),q=()=>k().join(p(),"config.yaml"),r=()=>k().join(p(),".env"),s=/^model:[ \t]*\r?\n((?:[ \t]+.*\r?\n?|[ \t]*\r?\n)*)/m,t=/^delegation:[ \t]*\r?\n((?:[ \t]+.*\r?\n?|[ \t]*\r?\n)*)/m,u=/^auxiliary:[ \t]*\r?\n((?:(?:[ \t]+.*\r?\n?)|(?:[ \t]*\r?\n))*)/m,v=a=>RegExp(`^ ${a}:[ \\t]*\\r?\\n(?:(?:[ \\t]{4,}.*\\r?\\n?)|(?:[ \\t]*\\r?\\n))*`,"m"),w=(a,b)=>`model:
|
|
16
16
|
default: "${a}"
|
|
17
17
|
provider: "custom"
|
|
18
18
|
base_url: "${b}"
|
|
@@ -36,26 +36,26 @@ ${f}`)},C=(a,b)=>{let c=a.match(u);if(!c)return a;let d=c[1].replace(v(b),"");re
|
|
|
36
36
|
${d}`)},D=a=>{let b,c=a.match(u);if(!c)return{};let d={},e=/^ ([A-Za-z0-9_]+):[ \t]*\r?\n((?:(?:[ \t]{4,}.*\r?\n?)|(?:[ \t]*\r?\n))*)/gm;for(;b=e.exec(c[1]);){let a=a=>{let c=b[2].match(RegExp(`^[ \\t]+${a}:[ \\t]*["']?([^"'\\r\\n]+)["']?`,"m"));return c?c[1].trim():null};d[b[1]]={model:a("model"),provider:a("provider"),base_url:a("base_url")}}return d},E=async()=>{try{let a="win32"===m().platform();return await o(a?"where hermes":"which hermes",{windowsHide:!0}),!0}catch{try{return await i().access(q()),!0}catch{return!1}}},F=async()=>{try{return await i().readFile(q(),"utf-8")}catch(a){if("ENOENT"===a.code)return"";throw a}},G=async()=>{try{return await i().readFile(r(),"utf-8")}catch(a){if("ENOENT"===a.code)return"";throw a}},H=a=>!!a?.base_url&&"custom"===a.provider&&/localhost|127\.0\.0\.1|0\.0\.0\.0/.test(a.base_url);async function I(){try{if(!await E())return e.NextResponse.json({installed:!1,settings:null,message:"Hermes Agent is not installed"});let a=await F(),b=(a=>{let b=a.match(s);if(!b)return null;let c=b[1]||"",d=a=>{let b=c.match(RegExp(`^[ \\t]+${a}:[ \\t]*["']?([^"'\\r\\n]+)["']?`,"m"));return b?b[1].trim():null};return{default:d("default"),provider:d("provider"),base_url:d("base_url"),api_key:d("api_key")}})(a),c=(a=>{let b=a.match(t);if(!b)return null;let c=b[1]||"",d=a=>{let b=c.match(RegExp(`^[ \\t]+${a}:[ \\t]*["']?([^"'\\r\\n]+)["']?`,"m"));return b?b[1].trim():null};return{model:d("model"),provider:d("provider"),base_url:d("base_url")}})(a),d=D(a);return e.NextResponse.json({installed:!0,settings:{model:b,delegation:c,auxiliary:d},has9Router:H(b)||H(c)||Object.values(d).some(H),configPath:q()})}catch(a){return console.log("Error checking hermes settings:",a),e.NextResponse.json({error:"Failed to check hermes settings"},{status:500})}}async function J(a){try{let{baseUrl:d,apiKey:f,model:g,selections:h}=await a.json(),j=Array.isArray(h)&&h.some(a=>a?.role&&a?.model)?h.filter(a=>a?.role&&a?.model):g?[{role:"default",model:g}]:[],k=j.find(a=>"default"===a.role);if(!d||!k)return e.NextResponse.json({error:"baseUrl and model are required"},{status:400});let l=p();await i().mkdir(l,{recursive:!0});let m=d.endsWith("/v1")?d:`${d}/v1`,n=await F();for(let{role:a,model:b}of j)n="default"===a?z(n,w(b,m)):"delegation"===a?A(n,x(b,m)):B(n,a,y(a,b,m));if(await i().writeFile(q(),n),f){var b,c;let a,d,e=(b=await G(),c="OPENAI_API_KEY",a=RegExp(`^${c}=.*$`,"m"),d=`${c}=${f}`,a.test(b)?b.replace(a,d):b.length>0&&!b.endsWith("\n")?`${b}
|
|
37
37
|
${d}
|
|
38
38
|
`:`${b}${d}
|
|
39
|
-
`);await i().writeFile(r(),e)}return e.NextResponse.json({success:!0,message:"Hermes settings applied successfully!",configPath:q()})}catch(a){return console.log("Error updating hermes settings:",a),e.NextResponse.json({error:"Failed to update hermes settings"},{status:500})}}async function K(){try{let a=q(),b="";try{b=await i().readFile(a,"utf-8")}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file to reset"});throw a}let c=b.replace(s,"").replace(/^\n+/,"");for(let[a,d]of(c=c.replace(t,""),Object.entries(D(b))))d?.provider==="custom"&&(c=C(c,a));return c=c.replace(/^\n+/,""),await i().writeFile(a,c),e.NextResponse.json({success:!0,message:"9router model blocks removed"})}catch(a){return console.log("Error resetting hermes settings:",a),e.NextResponse.json({error:"Failed to reset hermes settings"},{status:500})}}(0,n.D)([I,J,K]),(0,d.A)(I,"005d1230dd902bedbb23081f1ef9f786d10302f42e",null),(0,d.A)(J,"409039d8ba3310f425593bf1850999833ed6a92ade",null),(0,d.A)(K,"00b4f53e9746f8e82ac316fde5527f6e6811cf7bdb",null)},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29657:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>v,GET:()=>t,POST:()=>u});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".factory"),q=()=>k().join(p(),"settings.json"),r=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where droid":"which droid",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(q()),!0}catch{return!1}}},s=async()=>{try{let a=q(),b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}};async function t(){try{if(!await r())return e.NextResponse.json({installed:!1,settings:null,message:"Factory Droid CLI is not installed"});let a=await s();return e.NextResponse.json({installed:!0,settings:a,has9Router:!!a&&!!a.customModels&&a.customModels.some(a=>a.id?.startsWith("custom:9Router")),settingsPath:q()})}catch(a){return console.log("Error checking droid settings:",a),e.NextResponse.json({error:"Failed to check droid settings"},{status:500})}}async function u(a){try{let{baseUrl:b,apiKey:c,model:d,models:f,activeModel:g}=await a.json(),h=Array.isArray(f)?f.slice():"string"==typeof d?[d]:[];if(!b||0===h.length)return e.NextResponse.json({error:"baseUrl and at least one model are required"},{status:400});let j=p(),k=q();await i().mkdir(j,{recursive:!0});let l={};try{let a=await i().readFile(k,"utf-8");l=JSON.parse(a)}catch{}l.customModels||(l.customModels=[]),l.customModels=l.customModels.filter(a=>!a.id?.startsWith("custom:9Router"));let m=b.endsWith("/v1")?b:`${b}/v1`,n=c||"your_api_key",o=0;if("string"==typeof g)if(""===g)o=-1;else{let a=h.indexOf(g);o=a>=0?a:0}for(let a=0;a<h.length;a++){let b=h[a];b&&"string"==typeof b&&l.customModels.push({model:b,id:`custom:9Router-${a}`,index:a,baseUrl:m,apiKey:n,displayName:b,maxOutputTokens:131072,noImageSupport:!1,provider:"openai"})}if(o>=0&&l.customModels[o]){let[a]=l.customModels.splice(o,1);l.customModels.unshift({...a,index:0}),l.customModels.forEach((a,b)=>{a.index=b})}return await i().writeFile(k,JSON.stringify(l,null,2)),e.NextResponse.json({success:!0,message:"Factory Droid settings applied successfully!",settingsPath:k})}catch(a){return console.log("Error updating droid settings:",a),e.NextResponse.json({error:"Failed to update droid settings"},{status:500})}}async function v(){try{let a=q(),b={};try{let c=await i().readFile(a,"utf-8");b=JSON.parse(c)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No settings file to reset"});throw a}return b.customModels&&(b.customModels=b.customModels.filter(a=>!a.id?.startsWith("custom:9Router")),0===b.customModels.length&&delete b.customModels),await i().writeFile(a,JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"9Router settings removed successfully"})}catch(a){return console.log("Error resetting droid settings:",a),e.NextResponse.json({error:"Failed to reset droid settings"},{status:500})}}(0,n.D)([t,u,v]),(0,d.A)(t,"0044256a64f394cab51f05a4d9cb95ab6fb0f71aae",null),(0,d.A)(u,"407b0fa7a8d7987d9c2953170bfe02b81408917f4e",null),(0,d.A)(v,"00bd0fe2a559dc13e7d477fb167f31daf5d2103218",null)},30080:(a,b,c)=>{c.d(b,{DT:()=>d,Hp:()=>h,Js:()=>i,nB:()=>f,vr:()=>g,yp:()=>e});let d=Object.freeze({providerId:"codex",providerConfigId:"9router_codex",upstreamHttpBaseUrl:"https://chatgpt.com/backend-api/codex",upstreamWebSocketUrl:"wss://chatgpt.com/backend-api/codex/responses",catalogTtlMs:9e5,catalogStaleMs:6048e5,quotaTtlMs:6e4,affinityTtlMs:6048e5,affinityMaxEntries:5e4,leaseTtlMs:39e5,quotaThresholds:Object.freeze({drainRemainingPercent:15,criticalRemainingPercent:5,recoverRemainingPercent:20}),paths:Object.freeze({models:"models",responses:"responses",compact:"responses/compact",memories:"memories/trace_summarize",search:"alpha/search",imageGenerations:"images/generations",imageEdits:"images/edits"})}),e=Object.freeze(["authorization","chatgpt-account-id","cookie","host","connection","keep-alive","proxy-authenticate","proxy-authorization","proxy-connection","te","trailer","transfer-encoding","upgrade","forwarded","via","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-real-ip","x-9r-real-ip","x-9r-via-proxy","x-9r-cli-token","x-9r-internal-secret"]),f=Object.freeze(["accept","accept-encoding","accept-language","content-type","openai-beta","originator","session-id","thread-id","traceparent","tracestate","baggage","user-agent","x-client-request-id"]),g=Object.freeze(["x-codex-","x-openai-","x-stainless-"]),h=Object.freeze(["cache-control","content-encoding","content-type","etag","openai-model","retry-after","x-codex-turn-state","x-models-etag","x-reasoning-included","x-request-id"]),i=Object.freeze(["openai-","x-codex-","x-openai-","x-ratelimit-","x-request-","x-stainless-"])},31421:a=>{a.exports=require("node:child_process")},32504:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>r});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=async()=>{let a,b,c;try{let a="win32"===m().platform();return await o(a?"where devin":"which devin",{windowsHide:!0}),{installed:!0,source:"path"}}catch{}for(let d of(a=m().homedir(),b="win32"===m().platform(),c=process.env.LOCALAPPDATA||k().join(a,"AppData","Local"),b?[k().join(c,"devin","cli","bin","devin.exe"),k().join(a,".local","bin","devin.exe"),k().join(a,"scoop","shims","devin.exe"),k().join(c,"Programs","devin","devin.exe")]:[k().join(a,".local","share","devin","bin","devin"),k().join(a,".devin","bin","devin"),k().join(a,".local","bin","devin"),"/opt/homebrew/bin/devin","/usr/local/bin/devin","/usr/bin/devin"]))try{return await i().access(d),{installed:!0,source:d}}catch{}return{installed:!1,source:null}},q=async()=>{try{let{stdout:a}=await o("devin --version",{windowsHide:!0});return a.trim().split("\n")[0]||null}catch{return null}};async function r(){try{let{installed:a,source:b}=await p();if(!a)return e.NextResponse.json({installed:!1,message:"Devin CLI is not installed. Install it from https://cli.devin.ai and run `devin auth login`.",installUrl:"https://cli.devin.ai"});let c=await q();return e.NextResponse.json({installed:!0,source:b,version:c,message:"Devin CLI detected. Make sure `devin auth login` has been run."})}catch(a){return console.log("Error checking devin settings:",a),e.NextResponse.json({error:"Failed to check devin settings"},{status:500})}}(0,n.D)([r]),(0,d.A)(r,"00c03593a538507afd3c824dc6cabe92ad607d3b9f",null)},33873:a=>{a.exports=require("path")},37709:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>
|
|
39
|
+
`);await i().writeFile(r(),e)}return e.NextResponse.json({success:!0,message:"Hermes settings applied successfully!",configPath:q()})}catch(a){return console.log("Error updating hermes settings:",a),e.NextResponse.json({error:"Failed to update hermes settings"},{status:500})}}async function K(){try{let a=q(),b="";try{b=await i().readFile(a,"utf-8")}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file to reset"});throw a}let c=b.replace(s,"").replace(/^\n+/,"");for(let[a,d]of(c=c.replace(t,""),Object.entries(D(b))))d?.provider==="custom"&&(c=C(c,a));return c=c.replace(/^\n+/,""),await i().writeFile(a,c),e.NextResponse.json({success:!0,message:"9router model blocks removed"})}catch(a){return console.log("Error resetting hermes settings:",a),e.NextResponse.json({error:"Failed to reset hermes settings"},{status:500})}}(0,n.D)([I,J,K]),(0,d.A)(I,"005d1230dd902bedbb23081f1ef9f786d10302f42e",null),(0,d.A)(J,"409039d8ba3310f425593bf1850999833ed6a92ade",null),(0,d.A)(K,"00b4f53e9746f8e82ac316fde5527f6e6811cf7bdb",null)},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29657:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>v,GET:()=>t,POST:()=>u});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".factory"),q=()=>k().join(p(),"settings.json"),r=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where droid":"which droid",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(q()),!0}catch{return!1}}},s=async()=>{try{let a=q(),b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}};async function t(){try{if(!await r())return e.NextResponse.json({installed:!1,settings:null,message:"Factory Droid CLI is not installed"});let a=await s();return e.NextResponse.json({installed:!0,settings:a,has9Router:!!a&&!!a.customModels&&a.customModels.some(a=>a.id?.startsWith("custom:9Router")),settingsPath:q()})}catch(a){return console.log("Error checking droid settings:",a),e.NextResponse.json({error:"Failed to check droid settings"},{status:500})}}async function u(a){try{let{baseUrl:b,apiKey:c,model:d,models:f,activeModel:g}=await a.json(),h=Array.isArray(f)?f.slice():"string"==typeof d?[d]:[];if(!b||0===h.length)return e.NextResponse.json({error:"baseUrl and at least one model are required"},{status:400});let j=p(),k=q();await i().mkdir(j,{recursive:!0});let l={};try{let a=await i().readFile(k,"utf-8");l=JSON.parse(a)}catch{}l.customModels||(l.customModels=[]),l.customModels=l.customModels.filter(a=>!a.id?.startsWith("custom:9Router"));let m=b.endsWith("/v1")?b:`${b}/v1`,n=c||"your_api_key",o=0;if("string"==typeof g)if(""===g)o=-1;else{let a=h.indexOf(g);o=a>=0?a:0}for(let a=0;a<h.length;a++){let b=h[a];b&&"string"==typeof b&&l.customModels.push({model:b,id:`custom:9Router-${a}`,index:a,baseUrl:m,apiKey:n,displayName:b,maxOutputTokens:131072,noImageSupport:!1,provider:"openai"})}if(o>=0&&l.customModels[o]){let[a]=l.customModels.splice(o,1);l.customModels.unshift({...a,index:0}),l.customModels.forEach((a,b)=>{a.index=b})}return await i().writeFile(k,JSON.stringify(l,null,2)),e.NextResponse.json({success:!0,message:"Factory Droid settings applied successfully!",settingsPath:k})}catch(a){return console.log("Error updating droid settings:",a),e.NextResponse.json({error:"Failed to update droid settings"},{status:500})}}async function v(){try{let a=q(),b={};try{let c=await i().readFile(a,"utf-8");b=JSON.parse(c)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No settings file to reset"});throw a}return b.customModels&&(b.customModels=b.customModels.filter(a=>!a.id?.startsWith("custom:9Router")),0===b.customModels.length&&delete b.customModels),await i().writeFile(a,JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"9Router settings removed successfully"})}catch(a){return console.log("Error resetting droid settings:",a),e.NextResponse.json({error:"Failed to reset droid settings"},{status:500})}}(0,n.D)([t,u,v]),(0,d.A)(t,"0044256a64f394cab51f05a4d9cb95ab6fb0f71aae",null),(0,d.A)(u,"407b0fa7a8d7987d9c2953170bfe02b81408917f4e",null),(0,d.A)(v,"00bd0fe2a559dc13e7d477fb167f31daf5d2103218",null)},30080:(a,b,c)=>{c.d(b,{DT:()=>d,Hp:()=>h,Js:()=>i,nB:()=>f,vr:()=>g,yp:()=>e});let d=Object.freeze({providerId:"codex",providerConfigId:"9router_codex",upstreamHttpBaseUrl:"https://chatgpt.com/backend-api/codex",upstreamWebSocketUrl:"wss://chatgpt.com/backend-api/codex/responses",catalogTtlMs:9e5,catalogStaleMs:6048e5,quotaTtlMs:6e4,affinityTtlMs:6048e5,affinityMaxEntries:5e4,leaseTtlMs:39e5,quotaThresholds:Object.freeze({drainRemainingPercent:15,criticalRemainingPercent:5,recoverRemainingPercent:20}),paths:Object.freeze({models:"models",responses:"responses",compact:"responses/compact",memories:"memories/trace_summarize",search:"alpha/search",imageGenerations:"images/generations",imageEdits:"images/edits"})}),e=Object.freeze(["authorization","chatgpt-account-id","cookie","host","connection","keep-alive","proxy-authenticate","proxy-authorization","proxy-connection","te","trailer","transfer-encoding","upgrade","forwarded","via","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-real-ip","x-9r-real-ip","x-9r-via-proxy","x-9r-cli-token","x-9r-internal-secret"]),f=Object.freeze(["accept","accept-encoding","accept-language","content-type","openai-beta","originator","session-id","thread-id","traceparent","tracestate","baggage","user-agent","x-client-request-id"]),g=Object.freeze(["x-codex-","x-openai-","x-stainless-"]),h=Object.freeze(["cache-control","content-encoding","content-type","etag","openai-model","retry-after","x-codex-turn-state","x-models-etag","x-reasoning-included","x-request-id"]),i=Object.freeze(["openai-","x-codex-","x-openai-","x-ratelimit-","x-request-","x-stainless-"])},31421:a=>{a.exports=require("node:child_process")},32504:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>r});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=async()=>{let a,b,c;try{let a="win32"===m().platform();return await o(a?"where devin":"which devin",{windowsHide:!0}),{installed:!0,source:"path"}}catch{}for(let d of(a=m().homedir(),b="win32"===m().platform(),c=process.env.LOCALAPPDATA||k().join(a,"AppData","Local"),b?[k().join(c,"devin","cli","bin","devin.exe"),k().join(a,".local","bin","devin.exe"),k().join(a,"scoop","shims","devin.exe"),k().join(c,"Programs","devin","devin.exe")]:[k().join(a,".local","share","devin","bin","devin"),k().join(a,".devin","bin","devin"),k().join(a,".local","bin","devin"),"/opt/homebrew/bin/devin","/usr/local/bin/devin","/usr/bin/devin"]))try{return await i().access(d),{installed:!0,source:d}}catch{}return{installed:!1,source:null}},q=async()=>{try{let{stdout:a}=await o("devin --version",{windowsHide:!0});return a.trim().split("\n")[0]||null}catch{return null}};async function r(){try{let{installed:a,source:b}=await p();if(!a)return e.NextResponse.json({installed:!1,message:"Devin CLI is not installed. Install it from https://cli.devin.ai and run `devin auth login`.",installUrl:"https://cli.devin.ai"});let c=await q();return e.NextResponse.json({installed:!0,source:b,version:c,message:"Devin CLI detected. Make sure `devin auth login` has been run."})}catch(a){return console.log("Error checking devin settings:",a),e.NextResponse.json({error:"Failed to check devin settings"},{status:500})}}(0,n.D)([r]),(0,d.A)(r,"00c03593a538507afd3c824dc6cabe92ad607d3b9f",null)},33873:a=>{a.exports=require("path")},37709:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>P,GET:()=>N,POST:()=>O});var d=c(49796),e=c(23211),f=c(79984),g=c(79646),h=c(28354),i=c(79748),j=c.n(i),k=c(33873),l=c.n(k),m=c(21820),n=c.n(m),o=c(11847);let p="9router",q=["general-purpose","explore","plan"],r="__9router_unset__",s="models",t="subagents.models",u=a=>JSON.stringify(String(a)),v=a=>RegExp(`^\\[${a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\][ \\t]*\\r?\\n((?:(?!\\[)[^\\r\\n]*\\r?\\n?)*)`,"m"),w=a=>`${p}-${a}`,x=/^# 9router-prev-default = "([^"]*)"[ \t]*\r?\n?/m,y=a=>RegExp(`^# 9router-prev-subagent-${a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")} = "([^"]*)"[ \\t]*\\r?\\n?`,"m");function z(a,b,c){let d=a.match(v(b));if(!d)return null;let e=d[1].match(RegExp(`^[ \\t]*${c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[ \\t]*=[ \\t]*"([^"]*)"`,"m"));return e?e[1]:null}function A(a,b,c,d){let e=a.match(v(b)),f=`${c} = ${u(d)}`;if(!e){let c=a.length>0&&!a.endsWith("\n")?`${a}
|
|
40
40
|
`:a;return`${c}
|
|
41
41
|
[${b}]
|
|
42
42
|
${f}
|
|
43
43
|
`}let g=e[1]||"",h=RegExp(`^[ \\t]*${c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[ \\t]*=[ \\t]*"[^"]*"`,"m"),i=h.test(g)?g.replace(h,f):`${f}
|
|
44
44
|
${g}`;return a.replace(e[0],`[${b}]
|
|
45
|
-
${i}`)}function
|
|
45
|
+
${i}`)}function B(a,b){let c=a.match(v(`model.${b}`));if(!c)return null;let d=c[1]||"",e=function(a,b,c){let d=a.match(v(b));if(!d)return null;let e=d[1].match(RegExp(`^[ \\t]*${c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[ \\t]*=[ \\t]*([0-9]+(?:\\.[0-9]+)?)`,"m"));if(!e)return null;let f=Number(e[1]);return Number.isFinite(f)?f:null}(a,`model.${b}`,"context_window");return{model:z(a,`model.${b}`,"model"),base_url:z(a,`model.${b}`,"base_url"),name:z(a,`model.${b}`,"name"),api_key:z(a,`model.${b}`,"api_key"),api_backend:z(a,`model.${b}`,"api_backend"),context_window:Number.isFinite(e)&&e>0?e:null,raw:d}}function C(a,b){let c=v(`model.${b.slot}`),d=function({slot:a,model:b,baseUrl:c,apiKey:d,contextWindow:e,name:f}){let g=[`[model.${a}]`,`model = ${u(b)}`,`base_url = ${u(c)}`,`name = ${u(f)}`,`description = ${u("Routed via 9Router gateway")}`,'api_backend = "chat_completions"'];return d&&g.push(`api_key = ${u(d)}`),Number.isFinite(e)&&e>0&&g.push(`context_window = ${Math.floor(e)}`),`${g.join("\n")}
|
|
46
46
|
`}(b);if(c.test(a))return a.replace(c,d);let e=a.length>0&&!a.endsWith("\n")?`${a}
|
|
47
47
|
`:a;return`${e}
|
|
48
|
-
${d}`}function
|
|
49
|
-
`:a;return`${d}${b}`}function
|
|
50
|
-
${d}`):e.replace(a[0],"").replace(/\n{3,}/g,"\n\n")}return
|
|
51
|
-
`):a}(a);if(g=
|
|
52
|
-
`)}(g,a),{slot:e,model:d.model,baseUrl:b,apiKey:c,contextWindow:d.contextWindow,name:`9Router ${a}`}),s,a,e):C(g=E(g,a),e)}return g}(await K(),{baseUrl:j,apiKey:c||"sk_ezrouter",model:h,contextWindow:L(f,h),subagentModels:(a=>{if(void 0===a)return;if(!a||"object"!=typeof a||Array.isArray(a))return{};let b={};for(let c of p){let d=a[c],e="string"==typeof d?d.trim():d?.model?.trim();e&&(b[c]={model:e,contextWindow:L(d?.contextWindow,e)})}return b})(g)});return await i().writeFile(I(),k),e.NextResponse.json({success:!0,message:"Grok Build settings applied successfully!",configPath:I(),modelSlot:"9router"})}catch(a){return console.log("Error updating grok-build settings:",a),e.NextResponse.json({error:"Failed to update grok-build settings"},{status:500})}}async function O(){try{let a,b=I();try{a=await i().readFile(b,"utf-8")}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file to reset"});throw a}return await i().writeFile(b,function(a){var b;let c,d,e=a;for(let a of p)e=C(e=E(e,a),v(a));return b=e=C(e,o),c=b.match(w)?.[1]||"grok-build",y(d=b.replace(w,""),r,"default")===o&&(d=z(d,r,"default",c)),(e=d).replace(/\n{3,}/g,"\n\n")}(a)),e.NextResponse.json({success:!0,message:"9router model slots removed from Grok Build"})}catch(a){return console.log("Error resetting grok-build settings:",a),e.NextResponse.json({error:"Failed to reset grok-build settings"},{status:500})}}(0,F.D)([M,N,O]),(0,d.A)(M,"00939953addc6b6cbb5ecd9628f18eb08f7e7c62a8",null),(0,d.A)(N,"4049e35fbe3ee66cd3a4216e4171c01f2e3c6fc360",null),(0,d.A)(O,"00ce3b71e0533f0fd36e4f5ce3667cc450d837e889",null)},41445:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>w,GET:()=>u,POST:()=>v});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(79646),m=c(28354),n=c(52750),o=c(24424);let p=(0,m.promisify)(l.exec),q=()=>i().join(k().homedir(),".codewhale"),r=()=>i().join(q(),"config.toml"),s=async()=>{let a="win32"===k().platform();try{return await p(a?"where codewhale":"which codewhale",{windowsHide:!0}),!0}catch{try{return await g().access(r()),!0}catch{return!1}}},t=async()=>{try{return await g().readFile(r(),"utf-8")}catch{return null}};async function u(){try{if(!await s())return e.NextResponse.json({installed:!1,config:null,message:"CodeWhale CLI is not installed"});let a=await t(),b=null;try{a&&(b=(0,n.M)(a))}catch{}return e.NextResponse.json({installed:!0,config:b,has9Router:!!a&&(a.includes("managed by EzRouter")||a.includes("managed by 9Router")||a.includes("localhost:20126")||a.includes("localhost:20128")),configPath:r()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function v(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:c,model:d}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let f=r();await g().mkdir(q(),{recursive:!0});let h={};try{let a=await g().readFile(f,"utf-8");h=(0,n.M)(a)}catch{}let i=a.endsWith("/v1")?a:`${a}/v1`;h.openai={base_url:i,api_key:c||"sk_ezrouter",model:d||"provider/model-id"};let j="# CodeWhale config — managed by EzRouter\n\n"+(0,n.q)(h);return await g().writeFile(f,j,"utf-8"),e.NextResponse.json({success:!0,message:"CodeWhale settings applied successfully!",configPath:f})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function w(){try{let a=r(),b={};try{let c=await g().readFile(a,"utf-8");b=(0,n.M)(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return delete b.openai,0===Object.keys(b).length?await g().rm(a,{force:!0}):await g().writeFile(a,(0,n.q)(b),"utf-8"),e.NextResponse.json({success:!0,message:"EzRouter removed from CodeWhale"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,o.D)([u,v,w]),(0,d.A)(u,"00e796c576497d374f46c448d21a1c52a1c5462cc7",null),(0,d.A)(v,"406997bd62abfca8da1c3773657440b05551dc9f9d",null),(0,d.A)(w,"0008167666dff0f8787e92cd158f21d5afd09ce008",null)},42777:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527),u=c(19593);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/cli-tools/all-statuses/route",pathname:"/api/cli-tools/all-statuses",filename:"route",bundlePath:"app/api/cli-tools/all-statuses/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Volumes/Files/Projects/EzRouter/EzRouter/src/app/api/cli-tools/all-statuses/route.js",nextConfigOutput:"standalone",userland:u,...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/cli-tools/all-statuses/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||v.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===v.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:y.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>v.onRequestError(a,b,d,e,C)},sharedContext:{buildId:u,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b));try{let f,g=async a=>v.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route");if(e){let b=`${O} ${e}`;a.setAttributes({"next.route":e,"http.route":e,"next.span_name":b}),a.updateName(b),f&&f!==a&&(f.setAttribute("http.route",e),f.updateName(b))}else a.updateName(`${O} ${d}`)}),i=async f=>{var h,i;let j=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(f);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[r.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await v.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,p.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(r.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,q.getCacheControlHeader)(k.cacheControl)),await (0,o.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await i(Q):(f=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},i),void 0,!R))}catch(b){if(b instanceof s.NoFallbackError||await v.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,o.I)(V,W,new Response(null,{status:500})),null}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},46298:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>w,GET:()=>u,POST:()=>v});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".cline","data"),q=()=>k().join(p(),"globalState.json"),r=()=>k().join(p(),"secrets.json"),s=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where cline":"which cline",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(q()),!0}catch{return!1}}},t=async a=>{try{let b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}};async function u(){try{if(!await s())return e.NextResponse.json({installed:!1,settings:null,message:"Cline CLI is not installed"});let a=await t(q());return e.NextResponse.json({installed:!0,settings:{actModeApiProvider:a?.actModeApiProvider,planModeApiProvider:a?.planModeApiProvider,openAiBaseUrl:a?.openAiBaseUrl,openAiModelId:a?.openAiModelId},has9Router:(a=>{if(!a)return!1;let b="openai"===a.actModeApiProvider||"openai"===a.planModeApiProvider,c=a.openAiBaseUrl||"";return b&&(c.includes("localhost")||c.includes("127.0.0.1")||c.includes("9router"))})(a),globalStatePath:q()})}catch(a){return console.log("Error checking cline settings:",a),e.NextResponse.json({error:"Failed to check cline settings"},{status:500})}}async function v(a){try{let{baseUrl:b,apiKey:c,model:d}=await a.json();if(!b||!c||!d)return e.NextResponse.json({error:"baseUrl, apiKey and model are required"},{status:400});await i().mkdir(p(),{recursive:!0});let f=b.endsWith("/v1")?b.slice(0,-3):b,g=await t(q())||{};g.actModeApiProvider="openai",g.planModeApiProvider="openai",g.openAiBaseUrl=f,g.openAiModelId=d,g.planModeOpenAiModelId=d,await i().writeFile(q(),JSON.stringify(g,null,2));let h=await t(r())||{};return h.openAiApiKey=c,await i().writeFile(r(),JSON.stringify(h,null,2)),e.NextResponse.json({success:!0,message:"Cline settings applied successfully!",globalStatePath:q()})}catch(a){return console.log("Error updating cline settings:",a),e.NextResponse.json({error:"Failed to update cline settings"},{status:500})}}async function w(){try{let a=await t(q());if(!a)return e.NextResponse.json({success:!0,message:"No settings file to reset"});"openai"===a.actModeApiProvider&&(delete a.openAiBaseUrl,delete a.openAiModelId,delete a.planModeOpenAiModelId,a.actModeApiProvider="cline",a.planModeApiProvider="cline"),await i().writeFile(q(),JSON.stringify(a,null,2));let b=await t(r())||{};return delete b.openAiApiKey,await i().writeFile(r(),JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"9Router settings removed from Cline"})}catch(a){return console.log("Error resetting cline settings:",a),e.NextResponse.json({error:"Failed to reset cline settings"},{status:500})}}(0,n.D)([u,v,w]),(0,d.A)(u,"00b7f7cd48e66e320f4176b358d7a8dbf70b11c19d",null),(0,d.A)(v,"4090db1b2520bee2098096380fc9f18af27d0b0608",null),(0,d.A)(w,"008b1b89d49da319675c44300219e200f5481c4856",null)},48074:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>A,GET:()=>y,POST:()=>z});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(79646),m=c(28354),n=c(52750),o=c(24424);let p=(0,m.promisify)(l.exec),q=()=>i().join(k().homedir(),".jcode"),r=()=>i().join(q(),"config.toml"),s=()=>{let a=process.env.XDG_CONFIG_HOME||i().join(k().homedir(),".config");return i().join(a,"jcode","provider-9router.env")},t=async()=>{try{let a="win32"===k().platform();return await p(a?"where jcode":"which jcode",{windowsHide:!0}),!0}catch{try{return await g().access(q()),!0}catch{return!1}}},u=async()=>{try{let a=r(),b=await g().readFile(a,"utf-8");return(0,n.M)(b)}catch(a){return{providers:{}}}},v=async a=>{let b=r(),c=(0,n.q)(a);await g().writeFile(b,c,"utf-8")},w=async()=>{try{let a=s(),b=await g().readFile(a,"utf-8"),c={};for(let a of b.split("\n")){let b=a.trim();if(!b||b.startsWith("#"))continue;let d=b.indexOf("=");if(d>0){let a=b.slice(0,d).trim(),e=b.slice(d+1).trim();(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),c[a]=e}}return c}catch{return{}}},x=async a=>{let b=s(),c="# jcode provider environment variables\n";for(let[b,d]of Object.entries(a))c+=`${b}="${d}"
|
|
48
|
+
${d}`}function D(a,b){return a.replace(v(`model.${b}`),"").replace(/\n{3,}/g,"\n\n")}function E(a,b){let c=v(`model.${p}`);if(c.test(a))return a.replace(c,a=>`${b}${a}`);let d=a.length>0&&!a.endsWith("\n")?`${a}
|
|
49
|
+
`:a;return`${d}${b}`}function F(a,b){let c=y(b),d=a.match(c)?.[1]||r,e=a.replace(c,"");if(z(e,t,b)!==w(b))return e;if(d===r){let a=e.match(v(t));if(!a)return e;let c=RegExp(`^[ \\t]*${b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[ \\t]*=[^\\r\\n]*\\r?\\n?`,"m"),d=(a[1]||"").replace(c,"");return d.trim()?e.replace(a[0],`[${t}]
|
|
50
|
+
${d}`):e.replace(a[0],"").replace(/\n{3,}/g,"\n\n")}return A(e,t,b,d)}var G=c(24424);let H=(0,h.promisify)(g.exec),I=()=>l().join(n().homedir(),".grok"),J=()=>l().join(I(),"config.toml"),K=async()=>{try{let a="win32"===n().platform();return await H(a?"where grok":"which grok",{windowsHide:!0}),!0}catch{for(let a of[l().join(I(),"bin","grok"),J()])try{return await j().access(a),!0}catch{}return!1}},L=async()=>{try{return await j().readFile(J(),"utf-8")}catch(a){if("ENOENT"===a.code)return"";throw a}},M=(a,b)=>{let c=Number(a);if(Number.isFinite(c)&&c>0)return Math.floor(c);let d=b.indexOf("/"),e=d>0?b.slice(0,d):null,f=d>0?b.slice(d+1):b;return(0,o.getCapabilitiesForModel)(e,f).contextWindow};async function N(){try{if(!await K())return e.NextResponse.json({installed:!1,settings:null,message:"Grok Build is not installed"});let a=function(a){let b={},c={};for(let d of q){let e=z(a,t,d);c[d]=e,b[d]=e===w(d)?B(a,e):null}return{model:B(a,p),default:z(a,s,"default"),subagentModels:b,subagentMappings:c}}(await L());return e.NextResponse.json({installed:!0,settings:a,has9Router:!!a?.model?.base_url,configPath:J()})}catch(a){return console.log("Error checking grok-build settings:",a),e.NextResponse.json({error:"Failed to check grok-build settings"},{status:500})}}async function O(a){try{let{baseUrl:b,apiKey:c,model:d,contextWindow:g,subagentModels:h}=await a.json(),i="string"==typeof d?d.trim():"";if(!b||!i)return e.NextResponse.json({error:"baseUrl and model are required"},{status:400});await j().mkdir(I(),{recursive:!0});let k=b.endsWith("/v1")?b:`${b}/v1`,l=function(a,{baseUrl:b,apiKey:c,model:d,contextWindow:e,subagentModels:f}){let g=function(a){if(x.test(a))return a;let b=z(a,s,"default");return b&&b!==p?E(a,`# 9router-prev-default = ${u(b)}
|
|
51
|
+
`):a}(a);if(g=A(g=C(g,{slot:p,model:d,baseUrl:b,apiKey:c,contextWindow:e,name:"9Router"}),s,"default",p),f&&"object"==typeof f)for(let a of q){let d=f[a],e=w(a);g=d?.model?A(g=C(g=function(a,b){if(y(b).test(a))return a;let c=z(a,t,b);return E(a,`# 9router-prev-subagent-${b} = ${u(null==c?r:c)}
|
|
52
|
+
`)}(g,a),{slot:e,model:d.model,baseUrl:b,apiKey:c,contextWindow:d.contextWindow,name:`9Router ${a}`}),t,a,e):D(g=F(g,a),e)}return g}(await L(),{baseUrl:k,apiKey:await (0,f.k)(c),model:i,contextWindow:M(g,i),subagentModels:(a=>{if(void 0===a)return;if(!a||"object"!=typeof a||Array.isArray(a))return{};let b={};for(let c of q){let d=a[c],e="string"==typeof d?d.trim():d?.model?.trim();e&&(b[c]={model:e,contextWindow:M(d?.contextWindow,e)})}return b})(h)});return await j().writeFile(J(),l),e.NextResponse.json({success:!0,message:"Grok Build settings applied successfully!",configPath:J(),modelSlot:"9router"})}catch(a){return console.log("Error updating grok-build settings:",a),e.NextResponse.json({error:"Failed to update grok-build settings"},{status:500})}}async function P(){try{let a,b=J();try{a=await j().readFile(b,"utf-8")}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file to reset"});throw a}return await j().writeFile(b,function(a){var b;let c,d,e=a;for(let a of q)e=D(e=F(e,a),w(a));return b=e=D(e,p),c=b.match(x)?.[1]||"grok-build",z(d=b.replace(x,""),s,"default")===p&&(d=A(d,s,"default",c)),(e=d).replace(/\n{3,}/g,"\n\n")}(a)),e.NextResponse.json({success:!0,message:"9router model slots removed from Grok Build"})}catch(a){return console.log("Error resetting grok-build settings:",a),e.NextResponse.json({error:"Failed to reset grok-build settings"},{status:500})}}(0,G.D)([N,O,P]),(0,d.A)(N,"00939953addc6b6cbb5ecd9628f18eb08f7e7c62a8",null),(0,d.A)(O,"4049e35fbe3ee66cd3a4216e4171c01f2e3c6fc360",null),(0,d.A)(P,"00ce3b71e0533f0fd36e4f5ce3667cc450d837e889",null)},41445:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>x,GET:()=>v,POST:()=>w});var d=c(49796),e=c(23211),f=c(79984),g=c(79748),h=c.n(g),i=c(33873),j=c.n(i),k=c(21820),l=c.n(k),m=c(79646),n=c(28354),o=c(52750),p=c(24424);let q=(0,n.promisify)(m.exec),r=()=>j().join(l().homedir(),".codewhale"),s=()=>j().join(r(),"config.toml"),t=async()=>{let a="win32"===l().platform();try{return await q(a?"where codewhale":"which codewhale",{windowsHide:!0}),!0}catch{try{return await h().access(s()),!0}catch{return!1}}},u=async()=>{try{return await h().readFile(s(),"utf-8")}catch{return null}};async function v(){try{if(!await t())return e.NextResponse.json({installed:!1,config:null,message:"CodeWhale CLI is not installed"});let a=await u(),b=null;try{a&&(b=(0,o.M)(a))}catch{}return e.NextResponse.json({installed:!0,config:b,has9Router:!!a&&(a.includes("managed by EzRouter")||a.includes("managed by 9Router")||a.includes("localhost:20126")||a.includes("localhost:20128")),configPath:s()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function w(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:c,model:d}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let g=s();await h().mkdir(r(),{recursive:!0});let i={};try{let a=await h().readFile(g,"utf-8");i=(0,o.M)(a)}catch{}let j=a.endsWith("/v1")?a:`${a}/v1`;i.openai={base_url:j,api_key:await (0,f.k)(c),model:d||"provider/model-id"};let k="# CodeWhale config — managed by EzRouter\n\n"+(0,o.q)(i);return await h().writeFile(g,k,"utf-8"),e.NextResponse.json({success:!0,message:"CodeWhale settings applied successfully!",configPath:g})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function x(){try{let a=s(),b={};try{let c=await h().readFile(a,"utf-8");b=(0,o.M)(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return delete b.openai,0===Object.keys(b).length?await h().rm(a,{force:!0}):await h().writeFile(a,(0,o.q)(b),"utf-8"),e.NextResponse.json({success:!0,message:"EzRouter removed from CodeWhale"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,p.D)([v,w,x]),(0,d.A)(v,"00e796c576497d374f46c448d21a1c52a1c5462cc7",null),(0,d.A)(w,"406997bd62abfca8da1c3773657440b05551dc9f9d",null),(0,d.A)(x,"0008167666dff0f8787e92cd158f21d5afd09ce008",null)},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},46298:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>w,GET:()=>u,POST:()=>v});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".cline","data"),q=()=>k().join(p(),"globalState.json"),r=()=>k().join(p(),"secrets.json"),s=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where cline":"which cline",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(q()),!0}catch{return!1}}},t=async a=>{try{let b=(await i().readFile(a,"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(b)}catch(a){return null}};async function u(){try{if(!await s())return e.NextResponse.json({installed:!1,settings:null,message:"Cline CLI is not installed"});let a=await t(q());return e.NextResponse.json({installed:!0,settings:{actModeApiProvider:a?.actModeApiProvider,planModeApiProvider:a?.planModeApiProvider,openAiBaseUrl:a?.openAiBaseUrl,openAiModelId:a?.openAiModelId},has9Router:(a=>{if(!a)return!1;let b="openai"===a.actModeApiProvider||"openai"===a.planModeApiProvider,c=a.openAiBaseUrl||"";return b&&(c.includes("localhost")||c.includes("127.0.0.1")||c.includes("9router"))})(a),globalStatePath:q()})}catch(a){return console.log("Error checking cline settings:",a),e.NextResponse.json({error:"Failed to check cline settings"},{status:500})}}async function v(a){try{let{baseUrl:b,apiKey:c,model:d}=await a.json();if(!b||!c||!d)return e.NextResponse.json({error:"baseUrl, apiKey and model are required"},{status:400});await i().mkdir(p(),{recursive:!0});let f=b.endsWith("/v1")?b.slice(0,-3):b,g=await t(q())||{};g.actModeApiProvider="openai",g.planModeApiProvider="openai",g.openAiBaseUrl=f,g.openAiModelId=d,g.planModeOpenAiModelId=d,await i().writeFile(q(),JSON.stringify(g,null,2));let h=await t(r())||{};return h.openAiApiKey=c,await i().writeFile(r(),JSON.stringify(h,null,2)),e.NextResponse.json({success:!0,message:"Cline settings applied successfully!",globalStatePath:q()})}catch(a){return console.log("Error updating cline settings:",a),e.NextResponse.json({error:"Failed to update cline settings"},{status:500})}}async function w(){try{let a=await t(q());if(!a)return e.NextResponse.json({success:!0,message:"No settings file to reset"});"openai"===a.actModeApiProvider&&(delete a.openAiBaseUrl,delete a.openAiModelId,delete a.planModeOpenAiModelId,a.actModeApiProvider="cline",a.planModeApiProvider="cline"),await i().writeFile(q(),JSON.stringify(a,null,2));let b=await t(r())||{};return delete b.openAiApiKey,await i().writeFile(r(),JSON.stringify(b,null,2)),e.NextResponse.json({success:!0,message:"9Router settings removed from Cline"})}catch(a){return console.log("Error resetting cline settings:",a),e.NextResponse.json({error:"Failed to reset cline settings"},{status:500})}}(0,n.D)([u,v,w]),(0,d.A)(u,"00b7f7cd48e66e320f4176b358d7a8dbf70b11c19d",null),(0,d.A)(v,"4090db1b2520bee2098096380fc9f18af27d0b0608",null),(0,d.A)(w,"008b1b89d49da319675c44300219e200f5481c4856",null)},48074:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>A,GET:()=>y,POST:()=>z});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(79646),m=c(28354),n=c(52750),o=c(24424);let p=(0,m.promisify)(l.exec),q=()=>i().join(k().homedir(),".jcode"),r=()=>i().join(q(),"config.toml"),s=()=>{let a=process.env.XDG_CONFIG_HOME||i().join(k().homedir(),".config");return i().join(a,"jcode","provider-9router.env")},t=async()=>{try{let a="win32"===k().platform();return await p(a?"where jcode":"which jcode",{windowsHide:!0}),!0}catch{try{return await g().access(q()),!0}catch{return!1}}},u=async()=>{try{let a=r(),b=await g().readFile(a,"utf-8");return(0,n.M)(b)}catch(a){return{providers:{}}}},v=async a=>{let b=r(),c=(0,n.q)(a);await g().writeFile(b,c,"utf-8")},w=async()=>{try{let a=s(),b=await g().readFile(a,"utf-8"),c={};for(let a of b.split("\n")){let b=a.trim();if(!b||b.startsWith("#"))continue;let d=b.indexOf("=");if(d>0){let a=b.slice(0,d).trim(),e=b.slice(d+1).trim();(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),c[a]=e}}return c}catch{return{}}},x=async a=>{let b=s(),c="# jcode provider environment variables\n";for(let[b,d]of Object.entries(a))c+=`${b}="${d}"
|
|
53
53
|
`;await g().writeFile(b,c,"utf-8")};async function y(){if(!await t())return e.NextResponse.json({installed:!1,message:"jcode not installed. Install via: curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash"});let a=await u(),b=(a=>{if(!a||!a.providers)return!1;let b=a.providers;if(b["9router"])return!0;for(let[a,c]of Object.entries(b))if(c.base_url&&(c.base_url.includes("localhost:20126")||c.base_url.includes("localhost:20128")||c.base_url.includes("127.0.0.1:20126")||c.base_url.includes("127.0.0.1:20128")))return!0;return!1})(a);return e.NextResponse.json({installed:!0,config:a,has9Router:b,configPath:r()})}async function z(a){try{let{baseUrl:b,apiKey:c,models:d}=await a.json();if(!b||!c)return e.NextResponse.json({error:"baseUrl and apiKey are required"},{status:400});let f=b.endsWith("/v1")?b:`${b}/v1`,h=await u();h.providers||(h.providers={}),h.providers["9router"]={type:"openai-compatible",base_url:f,auth:"bearer",api_key_env:"JCODE_9ROUTER_API_KEY",env_file:"provider-9router.env",default_model:d&&d.length>0?d[0]:"cc/claude-opus-4-7",requires_api_key:!0};let j=q();await g().mkdir(j,{recursive:!0}),await v(h);let l=process.env.XDG_CONFIG_HOME||i().join(k().homedir(),".config"),m=i().join(l,"jcode");await g().mkdir(m,{recursive:!0});let n=await w();return n.JCODE_9ROUTER_API_KEY=c,await x(n),e.NextResponse.json({success:!0,message:"jcode configured successfully. Use: jcode --provider-profile 9router",configPath:r()})}catch(a){return console.error("Error configuring jcode:",a),e.NextResponse.json({error:a.message},{status:500})}}async function A(){try{let a=await u();if(!a.providers)return e.NextResponse.json({success:!0,message:"No configuration to remove"});delete a.providers["9router"],await v(a);let b=await w();return delete b.JCODE_9ROUTER_API_KEY,await x(b),e.NextResponse.json({success:!0,message:"9router configuration removed from jcode"})}catch(a){return console.error("Error removing jcode configuration:",a),e.NextResponse.json({error:a.message},{status:500})}}(0,o.D)([y,z,A]),(0,d.A)(y,"00a0dc3c515634f5a647937ba0b0348ba627c43aad",null),(0,d.A)(z,"40c88b025f4fcafcd98814e5e4310ad607f82aecc1",null),(0,d.A)(A,"00ec90e49edd4529d82fddf05815c462461404955d",null)},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58750:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>H,GET:()=>F,POST:()=>G,dynamic:()=>p});var d=c(23211),e=c(1158),f=c(51455),g=c.n(f),h=c(76760),i=c.n(h),j=c(48161),k=c.n(j),l=c(52750),m=c(49120),n=c(5205),o=c(30080);let p="force-dynamic",q=i().join(m.n,"secrets","codex-bridge-token"),r=i().join(m.n,"state","codex-bridge.json"),s=i().join(m.n,"codex-native","readiness.json"),t=()=>i().join(k().homedir(),".codex"),u=()=>i().join(t(),"config.toml"),v=a=>a??{},w=(a,b,c)=>{let d=b.split("."),e=a;for(let a=0;a<d.length-1;a++)(null==e[d[a]]||"object"!=typeof e[d[a]])&&(e[d[a]]={}),e=e[d[a]];e[d[d.length-1]]=c},x=(a,b)=>b.split(".").reduce((a,b)=>a?.[b],a),y=(a,b)=>{let c=b.split("."),d=a;for(let a=0;a<c.length-1;a++)if(null==(d=d?.[c[a]]))return;delete d[c[c.length-1]]};async function z(a,b,c=384){await g().mkdir(i().dirname(a),{recursive:!0});let d=`${a}.${process.pid}.tmp`;await g().writeFile(d,b,{mode:c}),await g().rename(d,a);try{await g().chmod(a,c)}catch{}}async function A(a){try{return JSON.parse(await g().readFile(a,"utf8"))}catch{return null}}async function B(){try{return await g().readFile(u(),"utf8")}catch(a){if("ENOENT"===a.code)return null;throw a}}function C(){return{command:"ezrouter",args:["codex","auth-token","--data-dir",m.n],refresh_interval_ms:0}}async function D(a,b){let c=await A(r),d=c?.previous||{model:a.model??null,modelProvider:a.model_provider??null,subagent:x(a,"agents.subagent")??null};await z(r,JSON.stringify({version:1,previous:d,managed:b,updatedAt:new Date().toISOString()},null,2))}async function E(a){let b=i().join(t(),"auth.json"),c=await A(b);return!!c&&c.OPENAI_API_KEY===a&&"apikey"===c.auth_mode&&(delete c.OPENAI_API_KEY,delete c.auth_mode,0===Object.keys(c).length?await g().unlink(b).catch(()=>{}):await z(b,JSON.stringify(c,null,2)),!0)}async function F(){try{let[a,b,c,e]=await Promise.all([(0,n.f)(),B(),g().access(q).then(()=>!0).catch(()=>!1),A(s)]),f=(b?v((0,l.M)(b)):{}).model_provider||null,h=f===o.DT.providerConfigId?"native":"9router"===f?"universal":null;return d.NextResponse.json({installed:a.installed||!!b,codexVersion:a.version,codexVersionRaw:a.raw,nativeSupported:e?.supportsWebSockets??null,nativeReadiness:e,config:b,mode:h,has9Router:!!b&&(b.includes('model_provider = "9router"')||b.includes('model_provider = "9router_codex"')||b.includes("[model_providers.9router]")||b.includes("[model_providers.9router_codex]")),secretConfigured:c,dataDir:m.n,configPath:u()})}catch(a){return console.log("Error checking codex settings:",a),d.NextResponse.json({error:"Failed to check codex settings"},{status:500})}}async function G(a){try{let b,{baseUrl:c,apiKey:f,model:h,subagentModel:i,mode:j="universal"}=await a.json();if(!c||!f||!h)return d.NextResponse.json({error:"baseUrl, apiKey and model are required"},{status:400});if(!["universal","native"].includes(j))return d.NextResponse.json({error:"mode must be universal or native"},{status:400});let k=u();await g().mkdir(t(),{recursive:!0});let m=await (0,e.c)(k,a=>v((0,l.M)(a)))??{},n=(b=String(c||"").trim().replace(/\/+$/,"")).endsWith("/v1")?b:`${b}/v1`,p=`${n}/codex`,r=await A(s),x=!/^(1|true|yes|on)$/i.test(process.env.CODEX_NATIVE_WS_DISABLED||"")&&r?.supportsWebSockets===!0&&r?.configuredBaseUrl===p,B=i||h,F="native"===j?o.DT.providerConfigId:"9router";await D(m,{model:h,modelProvider:F,subagent:{model:B}}),m.model=h,m.model_provider=F,w(m,"model_providers.9router",{name:"9Router Universal",base_url:n,wire_api:"responses",auth:C()}),w(m,`model_providers.${o.DT.providerConfigId}`,{name:"9Router Codex Native",base_url:p,wire_api:"responses",supports_websockets:x,auth:C()}),y(m,"agents.subagent"),w(m,"agents.default_subagent_model",B),await z(k,(0,l.q)(m)),await z(q,`${f.trim()}
|
|
54
|
-
`);let G=await E(f.trim());return d.NextResponse.json({success:!0,mode:j,migratedLegacyAuth:G,message:"native"===j?"Codex Native pool configured successfully":"Codex Universal bridge configured successfully",configPath:k})}catch(b){console.log("Error updating codex settings:",b);let a=String(b?.message||"").includes("refusing to overwrite it");return d.NextResponse.json({error:a?b.message:"Failed to update codex settings"},{status:500})}}async function H(){try{let a=u(),b={};try{b=v((0,l.M)(await g().readFile(a,"utf8")))}catch(a){if("ENOENT"!==a.code)throw a}let c=await A(r),e=c?.managed,f=c?.previous;e&&b.model===e.model&&b.model_provider===e.modelProvider?(f?.model==null?delete b.model:b.model=f.model,f?.modelProvider==null?delete b.model_provider:b.model_provider=f.modelProvider):("9router"===b.model_provider||b.model_provider===o.DT.providerConfigId)&&(delete b.model,delete b.model_provider);let h=x(b,"agents.subagent");return e&&JSON.stringify(h)===JSON.stringify(e.subagent)&&(f?.subagent==null?y(b,"agents.subagent"):w(b,"agents.subagent",f.subagent)),y(b,"model_providers.9router"),y(b,`model_providers.${o.DT.providerConfigId}`),y(b,"agents.default_subagent_model"),y(b,"agents.subagent"),await z(a,(0,l.q)(b)),await Promise.all([g().unlink(q).catch(()=>{}),g().unlink(r).catch(()=>{})]),d.NextResponse.json({success:!0,message:"9Router Codex providers removed; previous Codex defaults restored when unchanged"})}catch(a){return console.log("Error resetting codex settings:",a),d.NextResponse.json({error:"Failed to reset codex settings"},{status:500})}}},62306:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>u,GET:()=>s,POST:()=>t});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(79646),m=c(28354),n=c(24424);let o=(0,m.promisify)(l.exec),p=()=>i().join(k().homedir(),".smelt","config.json"),q=async()=>{let a="win32"===k().platform();try{return await o(a?"where smelt":"which smelt",{windowsHide:!0}),!0}catch{try{return await g().access(p()),!0}catch{return!1}}},r=async()=>{try{let a=await g().readFile(p(),"utf-8");return JSON.parse(a)}catch{return null}};async function s(){try{if(!await q())return e.NextResponse.json({installed:!1,config:null,message:"Smelt CLI is not installed"});let a=await r();return e.NextResponse.json({installed:!0,config:a,has9Router:!!a&&("ezrouter"===a._managedBy||"9router"===a._managedBy||"string"==typeof a.baseUrl&&a.baseUrl.length>0&&(a.baseUrl.includes("20126")||a.baseUrl.includes("20128"))),configPath:p()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function t(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:c,model:d}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let f=p();await g().mkdir(i().dirname(p()),{recursive:!0});let h={};try{let a=await g().readFile(f,"utf-8");h=JSON.parse(a)}catch{}let j=a.endsWith("/v1")?a:`${a}/v1`,k={...h,baseUrl:j,apiKey:c||"sk_ezrouter",model:d||h.model||"provider/model-id",_managedBy:"ezrouter"};return await g().writeFile(f,JSON.stringify(k,null,2),"utf-8"),e.NextResponse.json({success:!0,message:"Smelt settings applied successfully!",configPath:f})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function u(){try{let a=p(),b={};try{let c=await g().readFile(a,"utf-8");b=JSON.parse(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return delete b.baseUrl,delete b.apiKey,delete b.model,delete b._managedBy,0===Object.keys(b).length?await g().rm(a,{force:!0}):await g().writeFile(a,JSON.stringify(b,null,2),"utf-8"),e.NextResponse.json({success:!0,message:"Smelt EzRouter settings removed"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,n.D)([s,t,u]),(0,d.A)(s,"00444cd0091c753be93a0c9ae2fca0c5e6587380ae",null),(0,d.A)(t,"405a2935d7b6fe01eb58e072a9c17bf0bcdc395992",null),(0,d.A)(u,"0011bd64b867fb9667bdf6d9724065cc50cfbc5ed4",null)},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67116:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>w,GET:()=>u,POST:()=>v});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".deepseek"),q=()=>k().join(p(),"config.toml"),r=`provider = "deepseek"
|
|
55
|
-
`,
|
|
54
|
+
`);let G=await E(f.trim());return d.NextResponse.json({success:!0,mode:j,migratedLegacyAuth:G,message:"native"===j?"Codex Native pool configured successfully":"Codex Universal bridge configured successfully",configPath:k})}catch(b){console.log("Error updating codex settings:",b);let a=String(b?.message||"").includes("refusing to overwrite it");return d.NextResponse.json({error:a?b.message:"Failed to update codex settings"},{status:500})}}async function H(){try{let a=u(),b={};try{b=v((0,l.M)(await g().readFile(a,"utf8")))}catch(a){if("ENOENT"!==a.code)throw a}let c=await A(r),e=c?.managed,f=c?.previous;e&&b.model===e.model&&b.model_provider===e.modelProvider?(f?.model==null?delete b.model:b.model=f.model,f?.modelProvider==null?delete b.model_provider:b.model_provider=f.modelProvider):("9router"===b.model_provider||b.model_provider===o.DT.providerConfigId)&&(delete b.model,delete b.model_provider);let h=x(b,"agents.subagent");return e&&JSON.stringify(h)===JSON.stringify(e.subagent)&&(f?.subagent==null?y(b,"agents.subagent"):w(b,"agents.subagent",f.subagent)),y(b,"model_providers.9router"),y(b,`model_providers.${o.DT.providerConfigId}`),y(b,"agents.default_subagent_model"),y(b,"agents.subagent"),await z(a,(0,l.q)(b)),await Promise.all([g().unlink(q).catch(()=>{}),g().unlink(r).catch(()=>{})]),d.NextResponse.json({success:!0,message:"9Router Codex providers removed; previous Codex defaults restored when unchanged"})}catch(a){return console.log("Error resetting codex settings:",a),d.NextResponse.json({error:"Failed to reset codex settings"},{status:500})}}},61717:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527),u=c(19593);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/cli-tools/all-statuses/route",pathname:"/api/cli-tools/all-statuses",filename:"route",bundlePath:"app/api/cli-tools/all-statuses/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Volumes/Files/Projects/EzRouter/EzRouter/src/app/api/cli-tools/all-statuses/route.js",nextConfigOutput:"standalone",userland:u,...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/cli-tools/all-statuses/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||v.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===v.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:y.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>v.onRequestError(a,b,d,e,C)},sharedContext:{buildId:u,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b));try{let f,g=async a=>v.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route");if(e){let b=`${O} ${e}`;a.setAttributes({"next.route":e,"http.route":e,"next.span_name":b}),a.updateName(b),f&&f!==a&&(f.setAttribute("http.route",e),f.updateName(b))}else a.updateName(`${O} ${d}`)}),i=async f=>{var h,i;let j=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(f);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[r.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await v.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,p.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(r.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,q.getCacheControlHeader)(k.cacheControl)),await (0,o.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await i(Q):(f=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},i),void 0,!R))}catch(b){if(b instanceof s.NoFallbackError||await v.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,o.I)(V,W,new Response(null,{status:500})),null}}},62306:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>v,GET:()=>t,POST:()=>u});var d=c(49796),e=c(23211),f=c(79984),g=c(79748),h=c.n(g),i=c(33873),j=c.n(i),k=c(21820),l=c.n(k),m=c(79646),n=c(28354),o=c(24424);let p=(0,n.promisify)(m.exec),q=()=>j().join(l().homedir(),".smelt","config.json"),r=async()=>{let a="win32"===l().platform();try{return await p(a?"where smelt":"which smelt",{windowsHide:!0}),!0}catch{try{return await h().access(q()),!0}catch{return!1}}},s=async()=>{try{let a=await h().readFile(q(),"utf-8");return JSON.parse(a)}catch{return null}};async function t(){try{if(!await r())return e.NextResponse.json({installed:!1,config:null,message:"Smelt CLI is not installed"});let a=await s();return e.NextResponse.json({installed:!0,config:a,has9Router:!!a&&("ezrouter"===a._managedBy||"9router"===a._managedBy||"string"==typeof a.baseUrl&&a.baseUrl.length>0&&(a.baseUrl.includes("20126")||a.baseUrl.includes("20128"))),configPath:q()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function u(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:c,model:d}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let g=q();await h().mkdir(j().dirname(q()),{recursive:!0});let i={};try{let a=await h().readFile(g,"utf-8");i=JSON.parse(a)}catch{}let k=a.endsWith("/v1")?a:`${a}/v1`,l={...i,baseUrl:k,apiKey:await (0,f.k)(c),model:d||i.model||"provider/model-id",_managedBy:"ezrouter"};return await h().writeFile(g,JSON.stringify(l,null,2),"utf-8"),e.NextResponse.json({success:!0,message:"Smelt settings applied successfully!",configPath:g})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function v(){try{let a=q(),b={};try{let c=await h().readFile(a,"utf-8");b=JSON.parse(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return delete b.baseUrl,delete b.apiKey,delete b.model,delete b._managedBy,0===Object.keys(b).length?await h().rm(a,{force:!0}):await h().writeFile(a,JSON.stringify(b,null,2),"utf-8"),e.NextResponse.json({success:!0,message:"Smelt EzRouter settings removed"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,o.D)([t,u,v]),(0,d.A)(t,"00444cd0091c753be93a0c9ae2fca0c5e6587380ae",null),(0,d.A)(u,"405a2935d7b6fe01eb58e072a9c17bf0bcdc395992",null),(0,d.A)(v,"0011bd64b867fb9667bdf6d9724065cc50cfbc5ed4",null)},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67116:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>x,GET:()=>v,POST:()=>w});var d=c(49796),e=c(23211),f=c(79984),g=c(79646),h=c(28354),i=c(79748),j=c.n(i),k=c(33873),l=c.n(k),m=c(21820),n=c.n(m),o=c(24424);let p=(0,h.promisify)(g.exec),q=()=>l().join(n().homedir(),".deepseek"),r=()=>l().join(q(),"config.toml"),s=`provider = "deepseek"
|
|
55
|
+
`,t=async()=>{try{let a="win32"===n().platform();return await p(a?"where deepseek":"which deepseek",{windowsHide:!0}),!0}catch{try{return await j().access(r()),!0}catch{return!1}}},u=async()=>{try{return await j().readFile(r(),"utf-8")}catch(a){if("ENOENT"===a.code)return"";throw a}};async function v(){try{if(!await t())return e.NextResponse.json({installed:!1,settings:null,message:"DeepSeek TUI is not installed"});let a=await u(),b=(a=>{let b={},c=b;for(let d of a.split(/\r?\n/)){let a=d.trim();if(!a||a.startsWith("#"))continue;let e=a.match(/^\[([^\]]+)\]$/);if(e){let a=e[1];b[a]||(b[a]={}),c=b[a];continue}let f=a.match(/^(\w+)\s*=\s*"([^"]*)"$/);if(f){c[f[1]]=f[2];continue}let g=a.match(/^(\w+)\s*=\s*(.+)$/);g&&(c[g[1]]=g[2].trim())}return b})(a);return e.NextResponse.json({installed:!0,settings:b,has9Router:(a=>{if(!a||"openai"!==a.provider)return!1;let b=a["providers.openai"];return!!b?.base_url&&/localhost|127\.0\.0\.1|0\.0\.0\.0/.test(b.base_url)})(b),configPath:r()})}catch(a){return console.log("Error checking deepseek-tui settings:",a),e.NextResponse.json({error:"Failed to check deepseek-tui settings"},{status:500})}}async function w(a){try{var b;let c,{baseUrl:d,apiKey:g,model:h}=await a.json();if(!d||!h)return e.NextResponse.json({error:"baseUrl and model are required"},{status:400});let i=q();await j().mkdir(i,{recursive:!0});let k=(b=await (0,f.k)(g),c=d.endsWith("/v1")?d:`${d}/v1`,`provider = "openai"
|
|
56
56
|
|
|
57
57
|
[providers.openai]
|
|
58
58
|
base_url = "${c}"
|
|
59
59
|
api_key = "${b}"
|
|
60
|
-
model = "${
|
|
61
|
-
`);return await i().writeFile(q(),j),e.NextResponse.json({success:!0,message:"DeepSeek TUI settings applied successfully!",configPath:q()})}catch(a){return console.log("Error updating deepseek-tui settings:",a),e.NextResponse.json({error:"Failed to update deepseek-tui settings"},{status:500})}}async function w(){try{let a=q();try{await i().access(a)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return await i().writeFile(a,r),e.NextResponse.json({success:!0,message:"9router config reset to DeepSeek defaults"})}catch(a){return console.log("Error resetting deepseek-tui settings:",a),e.NextResponse.json({error:"Failed to reset deepseek-tui settings"},{status:500})}}(0,n.D)([u,v,w]),(0,d.A)(u,"0004562b08639143d07486411ec8834512e85173fa",null),(0,d.A)(v,"40c799ddda49d6b4746d644fd91314cc290a599c47",null),(0,d.A)(w,"003c3c0cd46298a3bd35e303c260fee8fdc1bc5ff2",null)},72452:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>w,GET:()=>t,PATCH:()=>v,POST:()=>u});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(33873),k=c.n(j),l=c(21820),m=c.n(l),n=c(24424);let o=(0,g.promisify)(f.exec),p=()=>k().join(m().homedir(),".config","opencode"),q=()=>k().join(p(),"opencode.json"),r=async()=>{try{let a="win32"===m().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await o(a?"where opencode":"which opencode",{windowsHide:!0,env:b}),!0}catch{try{return await i().access(q()),!0}catch{return!1}}},s=async()=>{try{let a=(await i().readFile(q(),"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(a)}catch(a){return a.code,null}};async function t(){try{if(!await r())return e.NextResponse.json({installed:!1,config:null,message:"OpenCode CLI is not installed"});let a=await s(),b=a?.provider?.["9router"],c=b?.models||{};return e.NextResponse.json({installed:!0,config:a,has9Router:!!a?.provider&&!!a.provider["9router"],configPath:q(),opencode:{models:Object.keys(c),activeModel:a?.model?.startsWith("9router/")?a.model.replace(/^9router\//,""):null,baseURL:b?.options?.baseURL||null}})}catch(a){return console.log("Error checking opencode settings:",a),e.NextResponse.json({error:"Failed to check opencode settings"},{status:500})}}async function u(a){try{let{baseUrl:b,apiKey:c,model:d,models:f,activeModel:g,subagentModel:h}=await a.json(),j=Array.isArray(f)?f.slice():"string"==typeof d?[d]:[];if(!b||0===j.length)return e.NextResponse.json({error:"baseUrl and at least one model are required"},{status:400});let k=p(),l=q();await i().mkdir(k,{recursive:!0});let m={};try{let a=await i().readFile(l,"utf-8");m=JSON.parse(a)}catch{}let n=b.endsWith("/v1")?b:`${b}/v1`,o=h||j[0];m.provider||(m.provider={});let r=m.provider["9router"]||{npm:"@ai-sdk/openai-compatible",options:{},models:{}};for(let a of(r.options={...r.options,baseURL:n,apiKey:c||"sk_ezrouter"},r.models=r.models||{},j))a&&"string"==typeof a&&(r.models[a]={name:a,modalities:{input:["text","image"],output:["text"]}});if(m.provider["9router"]=r,""===g)m.model="";else{let a=g||j[0];a&&(m.model=`9router/${a}`)}return m.agent||(m.agent={}),m.agent.explorer={description:"Fast explorer subagent for codebase exploration",mode:"subagent",model:`9router/${o}`},await i().writeFile(l,JSON.stringify(m,null,2)),e.NextResponse.json({success:!0,message:"OpenCode settings applied successfully!",configPath:l})}catch(a){return console.log("Error applying opencode settings:",a),e.NextResponse.json({error:"Failed to apply settings"},{status:500})}}async function v(a){try{let{clearActiveModel:b}=await a.json(),c=q(),d={};try{let a=await i().readFile(c,"utf-8");d=JSON.parse(a)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file found"});throw a}return!0===b&&d.model?.startsWith("9router/")&&(d.model=""),await i().writeFile(c,JSON.stringify(d,null,2)),e.NextResponse.json({success:!0,message:"Settings updated"})}catch(a){return console.log("Error patching opencode settings:",a),e.NextResponse.json({error:"Failed to patch settings"},{status:500})}}async function w(a){try{let{searchParams:b}=new URL(a.url),c=b.get("model"),d=q(),f={};try{let a=await i().readFile(d,"utf-8");f=JSON.parse(a)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file to reset"});throw a}if(c&&f.provider?.["9router"]?.models){if(delete f.provider["9router"].models[c],0===Object.keys(f.provider["9router"].models).length)delete f.provider["9router"],f.model?.startsWith("9router/")&&delete f.model;else if(f.model===`9router/${c}`){let a=Object.keys(f.provider["9router"].models);f.model=`9router/${a[0]}`}}else f.provider&&delete f.provider["9router"],f.model?.startsWith("9router/")&&delete f.model;return f.agent?.explorer?.model?.startsWith("9router/")&&(delete f.agent.explorer,0===Object.keys(f.agent).length&&delete f.agent),await i().writeFile(d,JSON.stringify(f,null,2)),e.NextResponse.json({success:!0,message:c?`Model "${c}" removed`:"9Router settings removed from OpenCode"})}catch(a){return console.log("Error resetting opencode settings:",a),e.NextResponse.json({error:"Failed to reset opencode settings"},{status:500})}}(0,n.D)([t,u,v,w]),(0,d.A)(t,"003aaa1373105023708a591742971785b434613a12",null),(0,d.A)(u,"4059ffe240de8ab05daf006844f61e3722ce3ea5e4",null),(0,d.A)(v,"40b854b350244d1ec6b2aef502a185562735f39e96",null),(0,d.A)(w,"40695df9f15e06cb2e585fa483209bcab033463db1",null)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91542:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>w,GET:()=>u,POST:()=>v});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(79646),m=c(28354),n=c(52750),o=c(24424);let p=(0,m.promisify)(l.exec),q=()=>i().join(k().homedir(),".forge"),r=()=>i().join(q(),"config.toml"),s=async()=>{let a="win32"===k().platform();try{return await p(a?"where forge":"which forge",{windowsHide:!0}),!0}catch{try{return await g().access(r()),!0}catch{return!1}}},t=async()=>{try{return await g().readFile(r(),"utf-8")}catch{return null}};async function u(){try{if(!await s())return e.NextResponse.json({installed:!1,config:null,message:"ForgeCode CLI is not installed"});let a=await t(),b=null;try{a&&(b=(0,n.M)(a))}catch{}return e.NextResponse.json({installed:!0,config:b,has9Router:!!a&&(a.includes("managed by EzRouter")||a.includes("managed by 9Router")||a.includes("localhost:20126")||a.includes("localhost:20128")),configPath:r()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function v(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:c,model:d}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let f=r();await g().mkdir(q(),{recursive:!0});let h={};try{let a=await g().readFile(f,"utf-8");h=(0,n.M)(a)}catch{}let i=a.endsWith("/v1")?a:`${a}/v1`;h.openai={api_key:c||"sk_ezrouter",base_url:i,model:d||"provider/model-id"};let j="# Forge config — managed by EzRouter\n\n"+(0,n.q)(h);return await g().writeFile(f,j,"utf-8"),e.NextResponse.json({success:!0,message:"ForgeCode settings applied successfully!",configPath:f})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function w(){try{let a=r(),b={};try{let c=await g().readFile(a,"utf-8");b=(0,n.M)(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return delete b.openai,0===Object.keys(b).length?await g().rm(a,{force:!0}):await g().writeFile(a,(0,n.q)(b),"utf-8"),e.NextResponse.json({success:!0,message:"EzRouter removed from ForgeCode"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,o.D)([u,v,w]),(0,d.A)(u,"002d960d8f8fd23572de9d2ccee8d08a69ddb19b1e",null),(0,d.A)(v,"4068bcbb734aa185b98f7b12ee1416b3a423b6b68a",null),(0,d.A)(w,"009e52bdadefdd5c608d2c884b8caa321be881f9c1",null)},92770:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>u,GET:()=>s,POST:()=>t});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(79646),m=c(28354),n=c(24424);let o=(0,m.promisify)(l.exec),p=async()=>{let a="win32"===k().platform();try{return await o(a?"where pi":"which pi",{windowsHide:!0}),!0}catch{try{return await g().access(i().join(k().homedir(),".pi","agent","models.json")),!0}catch{try{return await g().access(i().join(k().homedir(),".pi","models.json")),!0}catch{return!1}}}},q=async()=>{let a=i().join(k().homedir(),".pi","agent","models.json"),b=i().join(k().homedir(),".pi","models.json");try{return await g().access(a),a}catch{try{return await g().access(b),b}catch{return a}}},r=async()=>{try{let a=await q(),b=await g().readFile(a,"utf-8");return JSON.parse(b)}catch{return null}};async function s(){try{if(!await p())return e.NextResponse.json({installed:!1,config:null,message:"Pi CLI is not installed"});let a=await r(),b=await q();return e.NextResponse.json({installed:!0,config:a,has9Router:(a=>{if(!a||!a.providers)return!1;let b=a.providers.ezrouter||a.providers["9router"];if(b&&b.baseUrl)return!0;for(let b of Object.values(a.providers))if(b.baseUrl&&(b.baseUrl.includes("20126")||b.baseUrl.includes("20128")))return!0;return!1})(a),configPath:b})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function t(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:c,model:d}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let f=await q();await g().mkdir(i().dirname(f),{recursive:!0});let h={};try{let a=await g().readFile(f,"utf-8");h=JSON.parse(a)}catch{}h.providers||(h.providers={});let j=a.endsWith("/v1")?a:`${a}/v1`,k=[];if(Array.isArray(b.models)&&b.models.length>0)k=b.models.map(a=>"string"==typeof a?{id:a,name:a,contextWindow:128e3,maxTokens:16384}:{id:a.id||"provider/model-id",name:a.name||a.id||"provider/model-id",contextWindow:a.contextWindow||128e3,maxTokens:a.maxTokens||16384});else{let a=d||"provider/model-id";k=[{id:a,name:a,contextWindow:128e3,maxTokens:16384}]}return h.providers["9router"]={baseUrl:j,apiKey:c||"sk_ezrouter",api:"openai-completions",models:k},await g().writeFile(f,JSON.stringify(h,null,2),"utf-8"),e.NextResponse.json({success:!0,message:"Pi settings applied! Use /model in Pi to select the EzRouter model.",configPath:f})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function u(){try{let a=await q(),b={};try{let c=await g().readFile(a,"utf-8");b=JSON.parse(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return b.providers&&(b.providers["9router"]||b.providers.ezrouter)&&(delete b.providers["9router"],delete b.providers.ezrouter,0===Object.keys(b.providers).length&&delete b.providers,await g().writeFile(a,JSON.stringify(b,null,2),"utf-8")),e.NextResponse.json({success:!0,message:"EzRouter removed from Pi"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,n.D)([s,t,u]),(0,d.A)(s,"00896c4f8c710fc5de117e5d6a052bd000d346831e",null),(0,d.A)(t,"40edc82ac86e85dcee09717963afca5906c2828bb9",null),(0,d.A)(u,"009a691bac2204bef699580a9e1e74940863776eca",null)},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,595,4013,4433,2750,4722,3267,1522,4646,1847,8658,3977],()=>b(b.s=42777));module.exports=c})();
|
|
60
|
+
model = "${h}"
|
|
61
|
+
`);return await j().writeFile(r(),k),e.NextResponse.json({success:!0,message:"DeepSeek TUI settings applied successfully!",configPath:r()})}catch(a){return console.log("Error updating deepseek-tui settings:",a),e.NextResponse.json({error:"Failed to update deepseek-tui settings"},{status:500})}}async function x(){try{let a=r();try{await j().access(a)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return await j().writeFile(a,s),e.NextResponse.json({success:!0,message:"9router config reset to DeepSeek defaults"})}catch(a){return console.log("Error resetting deepseek-tui settings:",a),e.NextResponse.json({error:"Failed to reset deepseek-tui settings"},{status:500})}}(0,o.D)([v,w,x]),(0,d.A)(v,"0004562b08639143d07486411ec8834512e85173fa",null),(0,d.A)(w,"40c799ddda49d6b4746d644fd91314cc290a599c47",null),(0,d.A)(x,"003c3c0cd46298a3bd35e303c260fee8fdc1bc5ff2",null)},72452:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>x,GET:()=>u,PATCH:()=>w,POST:()=>v});var d=c(49796),e=c(23211),f=c(79984),g=c(79646),h=c(28354),i=c(79748),j=c.n(i),k=c(33873),l=c.n(k),m=c(21820),n=c.n(m),o=c(24424);let p=(0,h.promisify)(g.exec),q=()=>l().join(n().homedir(),".config","opencode"),r=()=>l().join(q(),"opencode.json"),s=async()=>{try{let a="win32"===n().platform(),b=a?{...process.env,PATH:`${process.env.APPDATA}\\npm;${process.env.PATH}`}:process.env;return await p(a?"where opencode":"which opencode",{windowsHide:!0,env:b}),!0}catch{try{return await j().access(r()),!0}catch{return!1}}},t=async()=>{try{let a=(await j().readFile(r(),"utf-8")).replace(/,(\s*[}\]])/g,"$1");return JSON.parse(a)}catch(a){return a.code,null}};async function u(){try{if(!await s())return e.NextResponse.json({installed:!1,config:null,message:"OpenCode CLI is not installed"});let a=await t(),b=a?.provider?.["9router"],c=b?.models||{};return e.NextResponse.json({installed:!0,config:a,has9Router:!!a?.provider&&!!a.provider["9router"],configPath:r(),opencode:{models:Object.keys(c),activeModel:a?.model?.startsWith("9router/")?a.model.replace(/^9router\//,""):null,baseURL:b?.options?.baseURL||null}})}catch(a){return console.log("Error checking opencode settings:",a),e.NextResponse.json({error:"Failed to check opencode settings"},{status:500})}}async function v(a){try{let{baseUrl:b,apiKey:c,model:d,models:g,activeModel:h,subagentModel:i}=await a.json(),k=Array.isArray(g)?g.slice():"string"==typeof d?[d]:[];if(!b||0===k.length)return e.NextResponse.json({error:"baseUrl and at least one model are required"},{status:400});let l=q(),m=r();await j().mkdir(l,{recursive:!0});let n={};try{let a=await j().readFile(m,"utf-8");n=JSON.parse(a)}catch{}let o=b.endsWith("/v1")?b:`${b}/v1`,p=await (0,f.k)(c),s=i||k[0];n.provider||(n.provider={});let t=n.provider["9router"]||{npm:"@ai-sdk/openai-compatible",options:{},models:{}};for(let a of(t.options={...t.options,baseURL:o,apiKey:p},t.models=t.models||{},k))a&&"string"==typeof a&&(t.models[a]={name:a,modalities:{input:["text","image"],output:["text"]}});if(n.provider["9router"]=t,""===h)n.model="";else{let a=h||k[0];a&&(n.model=`9router/${a}`)}return n.agent||(n.agent={}),n.agent.explorer={description:"Fast explorer subagent for codebase exploration",mode:"subagent",model:`9router/${s}`},await j().writeFile(m,JSON.stringify(n,null,2)),e.NextResponse.json({success:!0,message:"OpenCode settings applied successfully!",configPath:m})}catch(a){return console.log("Error applying opencode settings:",a),e.NextResponse.json({error:"Failed to apply settings"},{status:500})}}async function w(a){try{let{clearActiveModel:b}=await a.json(),c=r(),d={};try{let a=await j().readFile(c,"utf-8");d=JSON.parse(a)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file found"});throw a}return!0===b&&d.model?.startsWith("9router/")&&(d.model=""),await j().writeFile(c,JSON.stringify(d,null,2)),e.NextResponse.json({success:!0,message:"Settings updated"})}catch(a){return console.log("Error patching opencode settings:",a),e.NextResponse.json({error:"Failed to patch settings"},{status:500})}}async function x(a){try{let{searchParams:b}=new URL(a.url),c=b.get("model"),d=r(),f={};try{let a=await j().readFile(d,"utf-8");f=JSON.parse(a)}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,message:"No config file to reset"});throw a}if(c&&f.provider?.["9router"]?.models){if(delete f.provider["9router"].models[c],0===Object.keys(f.provider["9router"].models).length)delete f.provider["9router"],f.model?.startsWith("9router/")&&delete f.model;else if(f.model===`9router/${c}`){let a=Object.keys(f.provider["9router"].models);f.model=`9router/${a[0]}`}}else f.provider&&delete f.provider["9router"],f.model?.startsWith("9router/")&&delete f.model;return f.agent?.explorer?.model?.startsWith("9router/")&&(delete f.agent.explorer,0===Object.keys(f.agent).length&&delete f.agent),await j().writeFile(d,JSON.stringify(f,null,2)),e.NextResponse.json({success:!0,message:c?`Model "${c}" removed`:"9Router settings removed from OpenCode"})}catch(a){return console.log("Error resetting opencode settings:",a),e.NextResponse.json({error:"Failed to reset opencode settings"},{status:500})}}(0,o.D)([u,v,w,x]),(0,d.A)(u,"003aaa1373105023708a591742971785b434613a12",null),(0,d.A)(v,"4059ffe240de8ab05daf006844f61e3722ce3ea5e4",null),(0,d.A)(w,"40b854b350244d1ec6b2aef502a185562735f39e96",null),(0,d.A)(x,"40695df9f15e06cb2e585fa483209bcab033463db1",null)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},79868:a=>{a.exports=require("node:sqlite")},79984:(a,b,c)=>{c.d(b,{k:()=>e});var d=c(53267);async function e(a){if(a&&a.trim()&&"sk_9router"!==a.trim()&&"sk_ezrouter"!==a.trim())return a.trim();try{let a=(await (0,d.PX)()).find(a=>a.isActive);return a?.key||""}catch{return""}}},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91542:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>x,GET:()=>v,POST:()=>w});var d=c(49796),e=c(23211),f=c(79984),g=c(79748),h=c.n(g),i=c(33873),j=c.n(i),k=c(21820),l=c.n(k),m=c(79646),n=c(28354),o=c(52750),p=c(24424);let q=(0,n.promisify)(m.exec),r=()=>j().join(l().homedir(),".forge"),s=()=>j().join(r(),"config.toml"),t=async()=>{let a="win32"===l().platform();try{return await q(a?"where forge":"which forge",{windowsHide:!0}),!0}catch{try{return await h().access(s()),!0}catch{return!1}}},u=async()=>{try{return await h().readFile(s(),"utf-8")}catch{return null}};async function v(){try{if(!await t())return e.NextResponse.json({installed:!1,config:null,message:"ForgeCode CLI is not installed"});let a=await u(),b=null;try{a&&(b=(0,o.M)(a))}catch{}return e.NextResponse.json({installed:!0,config:b,has9Router:!!a&&(a.includes("managed by EzRouter")||a.includes("managed by 9Router")||a.includes("localhost:20126")||a.includes("localhost:20128")),configPath:s()})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function w(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:c,model:d}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let g=s();await h().mkdir(r(),{recursive:!0});let i={};try{let a=await h().readFile(g,"utf-8");i=(0,o.M)(a)}catch{}let j=a.endsWith("/v1")?a:`${a}/v1`;i.openai={api_key:await (0,f.k)(c),base_url:j,model:d||"provider/model-id"};let k="# Forge config — managed by EzRouter\n\n"+(0,o.q)(i);return await h().writeFile(g,k,"utf-8"),e.NextResponse.json({success:!0,message:"ForgeCode settings applied successfully!",configPath:g})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function x(){try{let a=s(),b={};try{let c=await h().readFile(a,"utf-8");b=(0,o.M)(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return delete b.openai,0===Object.keys(b).length?await h().rm(a,{force:!0}):await h().writeFile(a,(0,o.q)(b),"utf-8"),e.NextResponse.json({success:!0,message:"EzRouter removed from ForgeCode"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,p.D)([v,w,x]),(0,d.A)(v,"002d960d8f8fd23572de9d2ccee8d08a69ddb19b1e",null),(0,d.A)(w,"4068bcbb734aa185b98f7b12ee1416b3a423b6b68a",null),(0,d.A)(x,"009e52bdadefdd5c608d2c884b8caa321be881f9c1",null)},92770:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>v,GET:()=>t,POST:()=>u});var d=c(49796),e=c(23211),f=c(79984),g=c(79748),h=c.n(g),i=c(33873),j=c.n(i),k=c(21820),l=c.n(k),m=c(79646),n=c(28354),o=c(24424);let p=(0,n.promisify)(m.exec),q=async()=>{let a="win32"===l().platform();try{return await p(a?"where pi":"which pi",{windowsHide:!0}),!0}catch{try{return await h().access(j().join(l().homedir(),".pi","agent","models.json")),!0}catch{try{return await h().access(j().join(l().homedir(),".pi","models.json")),!0}catch{return!1}}}},r=async()=>{let a=j().join(l().homedir(),".pi","agent","models.json"),b=j().join(l().homedir(),".pi","models.json");try{return await h().access(a),a}catch{try{return await h().access(b),b}catch{return a}}},s=async()=>{try{let a=await r(),b=await h().readFile(a,"utf-8");return JSON.parse(b)}catch{return null}};async function t(){try{if(!await q())return e.NextResponse.json({installed:!1,config:null,message:"Pi CLI is not installed"});let a=await s(),b=await r();return e.NextResponse.json({installed:!0,config:a,has9Router:(a=>{if(!a||!a.providers)return!1;let b=a.providers.ezrouter||a.providers["9router"];if(b&&b.baseUrl)return!0;for(let b of Object.values(a.providers))if(b.baseUrl&&(b.baseUrl.includes("20126")||b.baseUrl.includes("20128")))return!0;return!1})(a),configPath:b})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function u(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:{message:"Invalid JSON body"}},{status:400})}try{let{baseUrl:a,apiKey:d,model:g}=b||{};if(!a)return e.NextResponse.json({error:{message:"baseUrl is required"}},{status:400});let i=await r();await h().mkdir(j().dirname(i),{recursive:!0});let k={};try{let a=await h().readFile(i,"utf-8");k=JSON.parse(a)}catch{}k.providers||(k.providers={});let l=a.endsWith("/v1")?a:`${a}/v1`,m=k.providers.ezrouter||k.providers["9router"]||{},n={};for(let a of m.models||[])a?.id&&(n[a.id]=a);function c(a){if("string"==typeof a){let b=n[a];return{...b||{},id:a,name:b?.name||a,contextWindow:b?.contextWindow||128e3,maxTokens:b?.maxTokens||16384}}let b=a.id||"provider/model-id",c=n[b]||{},d=a.contextWindow||a.context_window||c.contextWindow||128e3,e=a.maxTokens||a.max_tokens||c.maxTokens||16384;return{...c,id:b,name:a.name||a.id||c.name||b,contextWindow:d,maxTokens:e}}let o=[];o=Array.isArray(b.models)&&b.models.length>0?b.models.map(c):[c(g||"provider/model-id")];let p=new Set(o.map(a=>a.id)),q=[...(m.models||[]).filter(a=>a?.id&&!p.has(a.id)),...o],s={...m,baseUrl:l,apiKey:d||m.apiKey||await (0,f.k)(null),api:m.api||"openai-completions",models:q};return k.providers.ezrouter=s,k.providers["9router"]=s,await h().writeFile(i,JSON.stringify(k,null,2),"utf-8"),e.NextResponse.json({success:!0,message:"Pi settings applied! Use /model in Pi to select the EzRouter model.",configPath:i})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}async function v(){try{let a=await r(),b={};try{let c=await h().readFile(a,"utf-8");b=JSON.parse(c)}catch{return e.NextResponse.json({success:!0,message:"No config file to reset"})}return b.providers&&(b.providers["9router"]||b.providers.ezrouter)&&(delete b.providers["9router"],delete b.providers.ezrouter,0===Object.keys(b.providers).length&&delete b.providers,await h().writeFile(a,JSON.stringify(b,null,2),"utf-8")),e.NextResponse.json({success:!0,message:"EzRouter removed from Pi"})}catch(a){return e.NextResponse.json({error:{message:a.message}},{status:500})}}(0,o.D)([t,u,v]),(0,d.A)(t,"00896c4f8c710fc5de117e5d6a052bd000d346831e",null),(0,d.A)(u,"40edc82ac86e85dcee09717963afca5906c2828bb9",null),(0,d.A)(v,"009a691bac2204bef699580a9e1e74940863776eca",null)},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,595,4013,4433,2750,7218,3267,1522,4646,1847,8658,3977],()=>b(b.s=61717));module.exports=c})();
|