n9router 0.4.49 → 0.4.51
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 +89 -17
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +30 -24
- package/app/.next/build-manifest.json +3 -3
- package/app/.next/prerender-manifest.json +3 -3
- package/app/.next/react-loadable-manifest.json +2 -2
- package/app/.next/required-server-files.json +2 -1
- package/app/.next/routes-manifest.json +38 -0
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +24 -3
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +10 -10
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +7 -5
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error/page.js +2 -2
- package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error.html +1 -1
- package/app/.next/server/app/_global-error.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/_not-found/page.js +2 -2
- package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_not-found.html +1 -1
- package/app/.next/server/app/_not-found.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/api/antigravity-app/route.js +1 -1
- package/app/.next/server/app/api/antigravity-app-v2/route.js +1 -1
- package/app/.next/server/app/api/antigravity-ide/route.js +1 -1
- package/app/.next/server/app/api/antigravity-targets/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/login/route.js +1 -1
- package/app/.next/server/app/api/auth/logout/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next/server/app/api/auth/status/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js +17 -4
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/app/.next/server/app/api/cli-tools/devin-settings/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/devin-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js +15 -0
- package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/grok-build-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next/server/app/api/combos/route.js +1 -1
- package/app/.next/server/app/api/donate/route.js +1 -1
- package/app/.next/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next/server/app/api/headroom/start/route.js +1 -1
- package/app/.next/server/app/api/headroom/status/route.js +1 -1
- package/app/.next/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next/server/app/api/health/route.js +1 -1
- package/app/.next/server/app/api/init/route.js +1 -1
- package/app/.next/server/app/api/internal/account-health/route.js +1 -1
- package/app/.next/server/app/api/internal/request-detail/route.js +1 -1
- package/app/.next/server/app/api/internal/usage/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/reset-usage/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/usage/route.js +1 -1
- package/app/.next/server/app/api/keys/route.js +1 -1
- package/app/.next/server/app/api/locale/route.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/alias/route.js +1 -1
- package/app/.next/server/app/api/models/availability/route.js +1 -1
- package/app/.next/server/app/api/models/custom/route.js +1 -1
- package/app/.next/server/app/api/models/disabled/route.js +1 -1
- package/app/.next/server/app/api/models/route.js +1 -1
- package/app/.next/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/test/route.js +1 -1
- package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pricing/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/client/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/install/route.js +1 -1
- package/app/.next/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next/server/app/api/settings/database/route.js +1 -1
- package/app/.next/server/app/api/settings/database/selective/route.js +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next/server/app/api/settings/route.js +1 -1
- package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/shutdown/route.js +1 -1
- package/app/.next/server/app/api/tags/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/load/route.js +1 -1
- package/app/.next/server/app/api/translator/save/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/translate/route.js +1 -1
- package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js +3 -3
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/chart/route.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js +1 -1
- package/app/.next/server/app/api/usage/logs/route.js +1 -1
- package/app/.next/server/app/api/usage/providers/route.js +1 -1
- package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/report/route.js +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next/server/app/api/usage/stats/route.js +1 -1
- package/app/.next/server/app/api/usage/stream/route.js +2 -2
- package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/route.js +1 -1
- package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/search/route.js +1 -1
- package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/[id]/route.js +1 -0
- package/app/.next/server/app/api/v1/videos/[id]/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v1/videos/[id]/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/v1/videos/edits/route.js +1 -0
- package/app/.next/server/app/api/v1/videos/edits/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v1/videos/edits/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/v1/videos/extensions/route.js +1 -0
- package/app/.next/server/app/api/v1/videos/extensions/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v1/videos/extensions/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/v1/videos/generations/route.js +1 -0
- package/app/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v1/videos/generations/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/route.js +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/update/route.js +1 -1
- package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next/server/app/callback/page.js +2 -2
- package/app/.next/server/app/callback/page.js.nft.json +1 -1
- package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/callback.html +1 -1
- package/app/.next/server/app/callback.rsc +4 -4
- package/app/.next/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.html +1 -1
- package/app/.next/server/app/dashboard/combos.rsc +6 -6
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.html +1 -1
- package/app/.next/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.rsc +6 -6
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.html +1 -1
- package/app/.next/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.html +1 -1
- package/app/.next/server/app/dashboard/profile.rsc +6 -6
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.html +1 -1
- package/app/.next/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.html +1 -1
- package/app/.next/server/app/dashboard/providers.rsc +6 -6
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next/server/app/dashboard/pxpipe.rsc +6 -6
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.html +2 -2
- package/app/.next/server/app/dashboard/quota.rsc +7 -7
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.rsc +5 -5
- package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.html +1 -1
- package/app/.next/server/app/dashboard/skills.rsc +6 -6
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.html +1 -1
- package/app/.next/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.html +1 -1
- package/app/.next/server/app/dashboard/translator.rsc +6 -6
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.html +1 -1
- package/app/.next/server/app/dashboard/usage.rsc +6 -6
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.html +1 -1
- package/app/.next/server/app/dashboard.rsc +6 -6
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/favicon.ico/route.js +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +4 -4
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/landing/page.js +2 -2
- package/app/.next/server/app/landing/page.js.nft.json +1 -1
- package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/landing.html +1 -1
- package/app/.next/server/app/landing.rsc +5 -5
- package/app/.next/server/app/landing.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next/server/app/login/page.js +2 -2
- package/app/.next/server/app/login/page.js.nft.json +1 -1
- package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/login.html +1 -1
- package/app/.next/server/app/login.rsc +5 -5
- package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next/server/app/page.js +2 -2
- package/app/.next/server/app/page.js.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app-paths-manifest.json +30 -24
- package/app/.next/server/chunks/112.js +3 -0
- package/app/.next/server/chunks/1470.js +1 -1
- package/app/.next/server/chunks/2051.js +1 -0
- package/app/.next/server/chunks/2251.js +2 -2
- package/app/.next/server/chunks/318.js +75 -7
- package/app/.next/server/chunks/3225.js +10 -0
- package/app/.next/server/chunks/3481.js +71 -0
- package/app/.next/server/chunks/3535.js +1 -1
- package/app/.next/server/chunks/365.js +1 -0
- package/app/.next/server/chunks/3913.js +1 -0
- package/app/.next/server/chunks/3943.js +1 -0
- package/app/.next/server/chunks/3962.js +1 -0
- package/app/.next/server/chunks/4037.js +1 -0
- package/app/.next/server/chunks/412.js +5 -5
- package/app/.next/server/chunks/4123.js +7 -0
- package/app/.next/server/chunks/4125.js +1 -0
- package/app/.next/server/chunks/4443.js +1 -0
- package/app/.next/server/chunks/4676.js +45 -0
- package/app/.next/server/chunks/4705.js +1 -0
- package/app/.next/server/chunks/4963.js +1 -0
- package/app/.next/server/chunks/4975.js +1 -0
- package/app/.next/server/chunks/4989.js +1 -1
- package/app/.next/server/chunks/5612.js +1 -1
- package/app/.next/server/chunks/5615.js +3 -3
- package/app/.next/server/chunks/5619.js +1 -0
- package/app/.next/server/chunks/5699.js +1 -1
- package/app/.next/server/chunks/6070.js +1 -1
- package/app/.next/server/chunks/615.js +1 -1
- package/app/.next/server/chunks/63.js +3 -3
- package/app/.next/server/chunks/6306.js +1 -1
- package/app/.next/server/chunks/6457.js +1 -1
- package/app/.next/server/chunks/6671.js +1 -0
- package/app/.next/server/chunks/6763.js +1 -1
- package/app/.next/server/chunks/6777.js +1 -1
- package/app/.next/server/chunks/6818.js +1 -0
- package/app/.next/server/chunks/6877.js +1 -0
- package/app/.next/server/chunks/7137.js +1 -0
- package/app/.next/server/chunks/7211.js +1 -0
- package/app/.next/server/chunks/7828.js +1 -1
- package/app/.next/server/chunks/8145.js +1 -0
- package/app/.next/server/chunks/8301.js +91 -0
- package/app/.next/server/chunks/8499.js +71 -0
- package/app/.next/server/chunks/869.js +1 -0
- package/app/.next/server/chunks/8845.js +1 -0
- package/app/.next/server/chunks/8895.js +11 -55
- package/app/.next/server/chunks/8910.js +1 -1
- package/app/.next/server/chunks/8920.js +1 -1
- package/app/.next/server/instrumentation.js +1 -0
- package/app/.next/server/middleware-build-manifest.js +1 -1
- package/app/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/static/chunks/1321-fbaaa3c33f83ea85.js +1 -0
- package/app/.next/static/chunks/1a258343.e25ce4decd2c9ea4.js +1 -0
- package/app/.next/static/chunks/3521.a9e2daf685420cc7.js +1 -0
- package/app/.next/static/chunks/4028-33d2ebbce3016284.js +91 -0
- package/app/.next/static/chunks/5497-dd7adaddb5a1e51d.js +7 -0
- package/app/.next/static/chunks/705-10f93cd2550e6494.js +1 -0
- package/app/.next/static/chunks/8198-b19a16e6810e84a2.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-7fa7d21642523ca3.js → page-0fd819f7f5548f88.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-ddcb29448c366123.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-bc35ad34049d7ff5.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-d6943540c8897df0.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-818b1bc14711e0a7.js → page-308fc8a3b8a069fe.js} +10 -10
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-81c185a6977c1eb4.js +4 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-5c73d27e6379f748.js → page-a571e53340e18f91.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-2eaaf5721c2e8376.js +14 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-d6c97bcabadb38ca.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-6916d780a2d54b89.js +1 -0
- package/app/.next/static/chunks/app/_global-error/page-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-app/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-app-v2/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-ide/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-targets/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-tools/import/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/callback/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/start/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/test/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/auth/reset-password/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/devin-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/grok-build-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/donate/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/extras/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/restart/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/start/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/status/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/stop/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/init/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/internal/account-health/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/internal/request-detail/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/internal/usage/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/usage/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/health/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/install/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/start/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/status/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/selective/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/settings/require-login/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/disable/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/enable/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/status/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/report/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/landing/page-a438c82535cc676a.js +1 -0
- package/app/.next/static/chunks/app/login/page-7b85623bf9ba8d60.js +1 -0
- package/app/.next/static/chunks/app/manifest.webmanifest/route-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/app/page-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c74ff3c527010d28.js +1 -0
- package/app/.next/static/chunks/{webpack-121fdf903e7acc97.js → webpack-6b46812a5ae291a1.js} +1 -1
- package/app/.next/static/css/d16761d8d90e43ab.css +1 -0
- package/app/.next/static/zErBl-HUgBtz1iz9LeFt5/_buildManifest.js +1 -0
- package/app/open-sse/config/appConstants.js +58 -10
- package/app/open-sse/config/grokCli.js +10 -0
- package/app/open-sse/config/kiroConstants.js +123 -3
- package/app/open-sse/config/providerModels.js +7 -3
- package/app/open-sse/config/runtimeConfig.js +2 -0
- package/app/open-sse/config/ttsModels.js +23 -0
- package/app/open-sse/executors/antigravity.js +5 -1
- package/app/open-sse/executors/base.js +3 -2
- package/app/open-sse/executors/codebuddy-cn.js +29 -0
- package/app/open-sse/executors/codebuddy-intl.js +44 -0
- package/app/open-sse/executors/codex.js +9 -4
- package/app/open-sse/executors/cursor.js +427 -2
- package/app/open-sse/executors/default.js +21 -27
- package/app/open-sse/executors/devin-cli.js +847 -0
- package/app/open-sse/executors/grok-cli.js +194 -39
- package/app/open-sse/executors/index.js +15 -3
- package/app/open-sse/executors/qoder.js +82 -41
- package/app/open-sse/executors/trae.js +339 -0
- package/app/open-sse/executors/windsurf.js +588 -0
- package/app/open-sse/executors/zed.js +304 -0
- package/app/open-sse/handlers/chatCore/nonStreamingHandler.js +92 -6
- package/app/open-sse/handlers/chatCore/sseToJsonHandler.js +131 -11
- package/app/open-sse/handlers/chatCore/streamingHandler.js +6 -6
- package/app/open-sse/handlers/chatCore.js +84 -31
- package/app/open-sse/handlers/embeddingProviders/index.js +7 -0
- package/app/open-sse/handlers/embeddingProviders/selfhostedEmbedding.js +46 -0
- package/app/open-sse/handlers/embeddingsCore.js +23 -8
- package/app/open-sse/handlers/fetch/index.js +11 -5
- package/app/open-sse/handlers/search/callers.js +0 -1
- package/app/open-sse/handlers/search/normalizers.js +0 -1
- package/app/open-sse/handlers/sttCore.js +9 -1
- package/app/open-sse/handlers/ttsCore.js +3 -3
- package/app/open-sse/handlers/ttsProviders/index.js +4 -0
- package/app/open-sse/handlers/ttsProviders/selfhostedTts.js +69 -0
- package/app/open-sse/handlers/ttsProviders/xiaomi-mimo.js +65 -0
- package/app/open-sse/handlers/videoCore.js +166 -0
- package/app/open-sse/index.js +0 -1
- package/app/open-sse/providers/capabilities.js +67 -7
- package/app/open-sse/providers/pricing.js +132 -1
- package/app/open-sse/providers/registry/alicode-intl.js +3 -3
- package/app/open-sse/providers/registry/alims-intl.js +32 -0
- package/app/open-sse/providers/registry/anthropic.js +1 -3
- package/app/open-sse/providers/registry/antigravity.js +7 -3
- package/app/open-sse/providers/registry/api-airforce.js +36 -0
- package/app/open-sse/providers/registry/baidu.js +33 -0
- package/app/open-sse/providers/registry/bazaarlink.js +47 -0
- package/app/open-sse/providers/registry/bluesminds.js +38 -0
- package/app/open-sse/providers/registry/claude.js +1 -5
- package/app/open-sse/providers/registry/cloudflare-ai.js +2 -0
- package/app/open-sse/providers/registry/codebuddy-intl.js +77 -0
- package/app/open-sse/providers/registry/cursor.js +3 -3
- package/app/open-sse/providers/registry/deepseek.js +4 -0
- package/app/open-sse/providers/registry/devin-cli.js +63 -0
- package/app/open-sse/providers/registry/gemini-cli.js +17 -6
- package/app/open-sse/providers/registry/gemini.js +4 -0
- package/app/open-sse/providers/registry/grok-cli.js +28 -18
- package/app/open-sse/providers/registry/index.js +87 -49
- package/app/open-sse/providers/registry/kilo-gateway.js +34 -0
- package/app/open-sse/providers/registry/kimchi.js +1 -1
- package/app/open-sse/providers/registry/kimi.js +43 -7
- package/app/open-sse/providers/registry/kiro.js +16 -1
- package/app/open-sse/providers/registry/llm7.js +35 -0
- package/app/open-sse/providers/registry/mimo-free.js +3 -0
- package/app/open-sse/providers/registry/morph.js +29 -0
- package/app/open-sse/providers/registry/nvidia.js +2 -0
- package/app/open-sse/providers/registry/ollama.js +3 -0
- package/app/open-sse/providers/registry/openrouter.js +2 -0
- package/app/open-sse/providers/registry/poolside.js +30 -0
- package/app/open-sse/providers/registry/qoder.js +19 -15
- package/app/open-sse/providers/registry/sambanova.js +27 -0
- package/app/open-sse/providers/registry/selfhosted-embedding.js +73 -0
- package/app/open-sse/providers/registry/selfhosted-stt.js +48 -0
- package/app/open-sse/providers/registry/selfhosted-tts.js +44 -0
- package/app/open-sse/providers/registry/tencent.js +27 -0
- package/app/open-sse/providers/registry/tokenrouter.js +162 -0
- package/app/open-sse/providers/registry/trae.js +76 -0
- package/app/open-sse/providers/registry/windsurf.js +143 -0
- package/app/open-sse/providers/registry/xai.js +5 -1
- package/app/open-sse/providers/registry/xiaomi-mimo.js +9 -1
- package/app/open-sse/providers/registry/zed.js +71 -0
- package/app/open-sse/providers/shared.js +21 -1
- package/app/open-sse/providers/thinkingLevels.js +10 -3
- package/app/open-sse/rtk/headroom.js +12 -1
- package/app/open-sse/services/capacityAdapter.js +173 -0
- package/app/open-sse/services/combo.js +21 -4
- package/app/open-sse/services/cursorModels.js +187 -0
- package/app/open-sse/services/grokCliModels.js +127 -0
- package/app/open-sse/services/model.js +7 -1
- package/app/open-sse/services/projectId.js +13 -10
- package/app/open-sse/services/provider.js +14 -8
- package/app/open-sse/services/qoderModels.js +146 -7
- package/app/open-sse/services/tokenRefresh/providers.js +221 -185
- package/app/open-sse/services/tokenRefresh.js +21 -5
- package/app/open-sse/services/usage/codebuddy-cn.js +14 -6
- package/app/open-sse/services/usage/deepseek.js +112 -0
- package/app/open-sse/services/usage/google.js +22 -58
- package/app/open-sse/services/usage/grok-cli.js +157 -7
- package/app/open-sse/services/usage/grokCliQuotaFrame.js +191 -0
- package/app/open-sse/services/usage/kimi.js +211 -0
- package/app/open-sse/services/usage/misc.js +78 -32
- package/app/open-sse/services/usage.js +14 -5
- package/app/open-sse/shared/qoder/constants.js +8 -0
- package/app/open-sse/shared/zedAuth.js +415 -0
- package/app/open-sse/translator/concerns/kiroConversation.js +435 -0
- package/app/open-sse/translator/concerns/thinkingUnified.js +22 -4
- package/app/open-sse/translator/formats/claude.js +3 -1
- package/app/open-sse/translator/formats/gemini.js +20 -1
- package/app/open-sse/translator/index.js +19 -4
- package/app/open-sse/translator/request/claude-to-kiro.js +93 -232
- package/app/open-sse/translator/request/openai-responses.js +51 -7
- package/app/open-sse/translator/request/openai-to-kiro.js +77 -252
- package/app/open-sse/translator/response/openai-responses.js +57 -18
- package/app/open-sse/translator/schema/blocks.js +3 -0
- package/app/open-sse/utils/clientDetector.js +5 -2
- package/app/open-sse/utils/cursorChecksum.js +2 -1
- package/app/open-sse/utils/kiroSessionReplay.js +144 -0
- package/app/open-sse/utils/sessionManager.js +48 -12
- package/app/open-sse/utils/stream.js +6 -2
- package/app/package.json +1 -1
- package/app/public/i18n/literals/ar.json +2 -0
- package/app/public/i18n/literals/bn.json +2 -0
- package/app/public/i18n/literals/cs.json +2 -0
- package/app/public/i18n/literals/da.json +2 -0
- package/app/public/i18n/literals/de.json +2 -0
- package/app/public/i18n/literals/el.json +2 -0
- package/app/public/i18n/literals/es.json +2 -0
- package/app/public/i18n/literals/fa.json +1369 -171
- package/app/public/i18n/literals/fi.json +2 -0
- package/app/public/i18n/literals/fr.json +2 -0
- package/app/public/i18n/literals/he.json +2 -0
- package/app/public/i18n/literals/hi.json +2 -0
- package/app/public/i18n/literals/hu.json +2 -0
- package/app/public/i18n/literals/id.json +2 -0
- package/app/public/i18n/literals/it.json +2 -0
- package/app/public/i18n/literals/ja.json +2 -0
- package/app/public/i18n/literals/km.json +1398 -0
- package/app/public/i18n/literals/ko.json +2 -0
- package/app/public/i18n/literals/nl.json +2 -0
- package/app/public/i18n/literals/no.json +2 -0
- package/app/public/i18n/literals/pl.json +2 -0
- package/app/public/i18n/literals/pt-BR.json +958 -163
- package/app/public/i18n/literals/pt-PT.json +2 -0
- package/app/public/i18n/literals/ro.json +2 -0
- package/app/public/i18n/literals/ru.json +2 -0
- package/app/public/i18n/literals/sv.json +2 -0
- package/app/public/i18n/literals/th.json +1374 -176
- package/app/public/i18n/literals/tl.json +2 -0
- package/app/public/i18n/literals/tr.json +2 -0
- package/app/public/i18n/literals/uk.json +2 -0
- package/app/public/i18n/literals/ur.json +2 -0
- package/app/public/i18n/literals/vi.json +2 -0
- package/app/public/i18n/literals/zh-CN.json +2 -0
- package/app/public/i18n/literals/zh-TW.json +2 -0
- package/app/public/providers/agentrouter.png +0 -0
- package/app/public/providers/api-airforce.png +0 -0
- package/app/public/providers/baidu.png +0 -0
- package/app/public/providers/bazaarlink.png +0 -0
- package/app/public/providers/bluesminds.png +0 -0
- package/app/public/providers/codebuddy-cn.png +0 -0
- package/app/public/providers/codebuddy-intl.png +0 -0
- package/app/public/providers/commandcode.png +0 -0
- package/app/public/providers/devin-cli.png +0 -0
- package/app/public/providers/featherless.png +0 -0
- package/app/public/providers/gitlab.png +0 -0
- package/app/public/providers/kilo-gateway.png +0 -0
- package/app/public/providers/llm7.png +0 -0
- package/app/public/providers/longcat.png +0 -0
- package/app/public/providers/mmf.png +0 -0
- package/app/public/providers/morph.png +0 -0
- package/app/public/providers/novita.png +0 -0
- package/app/public/providers/opendesign.png +0 -0
- package/app/public/providers/perplexity-agent.png +0 -0
- package/app/public/providers/poolside.png +0 -0
- package/app/public/providers/qoder.png +0 -0
- package/app/public/providers/reka.png +0 -0
- package/app/public/providers/sambanova.png +0 -0
- package/app/public/providers/tencent.png +0 -0
- package/app/public/providers/tokenrouter.png +0 -0
- package/app/public/providers/trae.png +0 -0
- package/app/public/providers/venice.png +0 -0
- package/app/public/providers/vercel-ai-gateway.png +0 -0
- package/app/public/providers/vercel.png +0 -0
- package/app/public/providers/windsurf.png +0 -0
- package/app/public/providers/workbuddy.png +0 -0
- package/app/public/providers/zed.png +0 -0
- package/app/src/mitm/config.js +42 -1
- package/app/src/shared/constants/cliTools.js +99 -16
- package/app/src/shared/constants/locales.js +1 -0
- package/app/src/shared/constants/providers.js +1 -1
- package/app/src/shared/constants/ttsProviders.js +12 -0
- package/app/src/shared/services/quotaAutoPing.js +313 -0
- package/app/src/sse/services/backgroundTokenRefresh.js +196 -0
- package/package.json +1 -1
- package/app/.next/server/chunks/1051.js +0 -1
- package/app/.next/server/chunks/1350.js +0 -1
- package/app/.next/server/chunks/1719.js +0 -1
- package/app/.next/server/chunks/2701.js +0 -10
- package/app/.next/server/chunks/3621.js +0 -1
- package/app/.next/server/chunks/4177.js +0 -1
- package/app/.next/server/chunks/4632.js +0 -1
- package/app/.next/server/chunks/6182.js +0 -71
- package/app/.next/server/chunks/6675.js +0 -53
- package/app/.next/server/chunks/7181.js +0 -1
- package/app/.next/server/chunks/7444.js +0 -1
- package/app/.next/server/chunks/7886.js +0 -1
- package/app/.next/server/chunks/8056.js +0 -7
- package/app/.next/server/chunks/8238.js +0 -1
- package/app/.next/server/chunks/8271.js +0 -1
- package/app/.next/server/chunks/8794.js +0 -1
- package/app/.next/server/chunks/8833.js +0 -79
- package/app/.next/server/chunks/9489.js +0 -3
- package/app/.next/static/4eHcO0iL_6PDYZfGNLlqJ/_buildManifest.js +0 -1
- package/app/.next/static/chunks/1321-221797845867fc50.js +0 -1
- package/app/.next/static/chunks/1a258343.5938f676ed376386.js +0 -1
- package/app/.next/static/chunks/3521.8dce45f121472d5c.js +0 -1
- package/app/.next/static/chunks/5396-a003e096a6013f2e.js +0 -53
- package/app/.next/static/chunks/5497-fd6ad8ecc491258d.js +0 -7
- package/app/.next/static/chunks/705-979ff3eb195b9023.js +0 -1
- package/app/.next/static/chunks/8198-34a5f75f939a0642.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-199ad55a0a07b99e.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-891aa409aec4569e.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-064162ae8176ea08.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-6079eec94c4ca9a9.js +0 -4
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-64902d9374382b6c.js +0 -12
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-541efe7992c8e9d2.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-d5dd8461c18931fc.js +0 -1
- package/app/.next/static/chunks/app/_global-error/page-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-app/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-app-v2/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-ide/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-targets/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-tools/import/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/callback/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/start/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/test/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/auth/reset-password/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/donate/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/extras/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/restart/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/start/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/status/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/stop/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/init/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/internal/account-health/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/internal/request-detail/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/internal/usage/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/usage/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/health/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/install/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/start/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/status/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/selective/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/settings/require-login/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/disable/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/enable/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/status/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/report/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/version/shutdown/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/landing/page-cc37244748faf1e0.js +0 -1
- package/app/.next/static/chunks/app/login/page-8c5c8f2f058d5e2f.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/app/page-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-9ed8f7909a84e383.js +0 -1
- package/app/.next/static/css/79e49d401b07510e.css +0 -1
- package/app/open-sse/executors/qwen.js +0 -129
- package/app/open-sse/providers/registry/kimi-coding.js +0 -65
- package/app/open-sse/providers/registry/qwen.js +0 -33
- package/app/open-sse/utils/claudeHeaderCache.js +0 -70
- /package/app/.next/static/{4eHcO0iL_6PDYZfGNLlqJ → zErBl-HUgBtz1iz9LeFt5}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DevinCliExecutor — routes completions through the official Devin CLI binary
|
|
3
|
+
* via the Agent Client Protocol (ACP) JSON-RPC 2.0 over stdio.
|
|
4
|
+
*
|
|
5
|
+
* Protocol flow:
|
|
6
|
+
* 1. Spawn `devin acp` (default agent = full built-in tools: fs/shell/search).
|
|
7
|
+
* Set CLI_DEVIN_AGENT_TYPE=summarizer for a tool-less, text-only mode.
|
|
8
|
+
* 2. Send: initialize → session/new (with model + cwd + mcpServers) → session/prompt.
|
|
9
|
+
* 3. Receive: session/update notifications (agent_message_chunk = reply text,
|
|
10
|
+
* tool_call/tool_call_update = built-in tool invocations, surfaced as text).
|
|
11
|
+
* When devin calls a client-tool from the exposed MCP ("Calling mcp_X from
|
|
12
|
+
* clientTools"), it is bridged to an OpenAI tool_use and the turn ends.
|
|
13
|
+
* 4. Emit deltas as OpenAI-compatible SSE chunks.
|
|
14
|
+
* 5. Kill subprocess on _cognition.ai/agent_stopped or error.
|
|
15
|
+
*
|
|
16
|
+
* Auth: noAuth — the subprocess inherits the parent env and uses credentials
|
|
17
|
+
* stored by `devin auth login` (~/.local/share/devin/credentials.toml).
|
|
18
|
+
*
|
|
19
|
+
* Binary discovery: CLI_DEVIN_BIN env → PATH lookup → platform installer paths.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { spawn } from "node:child_process";
|
|
23
|
+
import path from "node:path";
|
|
24
|
+
import os from "node:os";
|
|
25
|
+
import fs from "node:fs";
|
|
26
|
+
import { BaseExecutor } from "./base.js";
|
|
27
|
+
|
|
28
|
+
// ─── Binary discovery ────────────────────────────────────────────────────────
|
|
29
|
+
|
|
30
|
+
function resolveDevinBin() {
|
|
31
|
+
// 1. Explicit override
|
|
32
|
+
const envBin = process.env.CLI_DEVIN_BIN?.trim();
|
|
33
|
+
if (envBin) return envBin;
|
|
34
|
+
|
|
35
|
+
const isWin = process.platform === "win32";
|
|
36
|
+
const home = os.homedir();
|
|
37
|
+
|
|
38
|
+
// 2. Known installer / package-manager locations. spawn uses shell:false on
|
|
39
|
+
// macOS/Linux, so process.env.PATH alone may miss ~/.local/bin, Homebrew,
|
|
40
|
+
// Scoop, etc. when the server runs detached (tray/daemon/launchd) without
|
|
41
|
+
// a login shell — probe these explicitly before falling back to PATH.
|
|
42
|
+
const candidates = isWin
|
|
43
|
+
? [
|
|
44
|
+
// Official installer: %LOCALAPPDATA%\devin\cli\bin\devin.exe
|
|
45
|
+
path.join(process.env.LOCALAPPDATA || path.join(home, "AppData", "Local"), "devin", "cli", "bin", "devin.exe"),
|
|
46
|
+
path.join(home, ".local", "bin", "devin.exe"),
|
|
47
|
+
path.join(home, "scoop", "shims", "devin.exe"),
|
|
48
|
+
path.join(process.env.LOCALAPPDATA || path.join(home, "AppData", "Local"), "Programs", "devin", "devin.exe"),
|
|
49
|
+
]
|
|
50
|
+
: [
|
|
51
|
+
path.join(home, ".local", "share", "devin", "bin", "devin"),
|
|
52
|
+
path.join(home, ".devin", "bin", "devin"),
|
|
53
|
+
path.join(home, ".local", "bin", "devin"), // pipx / user install
|
|
54
|
+
"/opt/homebrew/bin/devin", // Homebrew (Apple Silicon)
|
|
55
|
+
"/usr/local/bin/devin", // Homebrew (Intel) / manual
|
|
56
|
+
"/usr/bin/devin",
|
|
57
|
+
];
|
|
58
|
+
for (const candidate of candidates) {
|
|
59
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// 3. Fallback — rely on process.env.PATH
|
|
63
|
+
return isWin ? "devin.exe" : "devin";
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// ─── ACP JSON-RPC helper ────────────────────────────────────────────────────
|
|
67
|
+
|
|
68
|
+
function rpc(method, params, id) {
|
|
69
|
+
const msg = { jsonrpc: "2.0", method, params };
|
|
70
|
+
if (id !== undefined) msg.id = id;
|
|
71
|
+
return JSON.stringify(msg) + "\n";
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// ─── Client-tools → MCP bridge ───────────────────────────────────────────────
|
|
75
|
+
// devin only invokes built-in + MCP tools, not OpenAI function-calling schemas.
|
|
76
|
+
// body.tools are exposed as a stdio MCP server "clientTools" so devin can call
|
|
77
|
+
// them. When devin calls one, we emit OpenAI tool_use and end the turn; the
|
|
78
|
+
// client executes and returns tool_result on the next request. That next request
|
|
79
|
+
// re-spawns with the full history (including tool_calls + tool results) and
|
|
80
|
+
// seeds the MCP server with those results so a re-call gets the real data.
|
|
81
|
+
// Tool schemas via DEVIN_MCP_TOOLS; prior results via DEVIN_MCP_RESULTS.
|
|
82
|
+
|
|
83
|
+
const CLIENT_TOOLS_MCP_SCRIPT = `
|
|
84
|
+
import readline from "node:readline";
|
|
85
|
+
const TOOLS = JSON.parse(process.env.DEVIN_MCP_TOOLS || "[]");
|
|
86
|
+
const RESULTS = JSON.parse(process.env.DEVIN_MCP_RESULTS || "{}");
|
|
87
|
+
const rl = readline.createInterface({ input: process.stdin });
|
|
88
|
+
function send(o){ process.stdout.write(JSON.stringify(o) + "\\n"); }
|
|
89
|
+
rl.on("line", (line) => {
|
|
90
|
+
let m; try { m = JSON.parse(line); } catch { return; }
|
|
91
|
+
if (m.method === "initialize") {
|
|
92
|
+
send({ jsonrpc: "2.0", id: m.id, result: { protocolVersion: "2024-11-05", capabilities: { tools: {} }, serverInfo: { name: "clientTools", version: "1.0" } } });
|
|
93
|
+
} else if (m.method === "tools/list") {
|
|
94
|
+
send({ jsonrpc: "2.0", id: m.id, result: { tools: TOOLS } });
|
|
95
|
+
} else if (m.method === "tools/call") {
|
|
96
|
+
const name = m.params?.name || "";
|
|
97
|
+
const seeded = RESULTS[name];
|
|
98
|
+
const text = seeded !== undefined
|
|
99
|
+
? String(seeded)
|
|
100
|
+
: "(awaiting client tool_result)";
|
|
101
|
+
process.stderr.write("[client-tools] tool_call name=" + name + " seeded=" + (seeded !== undefined) + "\\n");
|
|
102
|
+
send({ jsonrpc: "2.0", id: m.id, result: { content: [{ type: "text", text }] } });
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
`.trimStart();
|
|
106
|
+
|
|
107
|
+
function ensureClientToolsScript() {
|
|
108
|
+
const scriptPath = path.join(os.tmpdir(), "9router-devin-client-tools.mjs");
|
|
109
|
+
// Always rewrite so script upgrades land without a process restart.
|
|
110
|
+
fs.writeFileSync(scriptPath, CLIENT_TOOLS_MCP_SCRIPT);
|
|
111
|
+
return scriptPath;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Map OpenAI tools ([{type:"function",function:{name,description,parameters}}])
|
|
115
|
+
// to MCP tool declarations ([{name,description,inputSchema}]).
|
|
116
|
+
// devin only discovers MCP tools whose name carries the `mcp_` prefix, so we
|
|
117
|
+
// add it here and strip it back when bridging the call to the client.
|
|
118
|
+
const MCP_TOOL_PREFIX = "mcp_";
|
|
119
|
+
function toMcpToolName(name) {
|
|
120
|
+
return name.startsWith(MCP_TOOL_PREFIX) ? name : MCP_TOOL_PREFIX + name;
|
|
121
|
+
}
|
|
122
|
+
function fromMcpToolName(name) {
|
|
123
|
+
return name.startsWith(MCP_TOOL_PREFIX) ? name.slice(MCP_TOOL_PREFIX.length) : name;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function buildClientToolsMcp(tools, resultMap) {
|
|
127
|
+
const mcpTools = [];
|
|
128
|
+
for (const t of tools) {
|
|
129
|
+
if (!t) continue;
|
|
130
|
+
const f = t.function || t;
|
|
131
|
+
if (!f?.name) continue;
|
|
132
|
+
mcpTools.push({
|
|
133
|
+
name: toMcpToolName(f.name),
|
|
134
|
+
description: f.description || "",
|
|
135
|
+
inputSchema: f.parameters || f.input_schema || { type: "object", properties: {} },
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
if (!mcpTools.length) return null;
|
|
139
|
+
const env = { DEVIN_MCP_TOOLS: JSON.stringify(mcpTools) };
|
|
140
|
+
if (resultMap && Object.keys(resultMap).length) {
|
|
141
|
+
env.DEVIN_MCP_RESULTS = JSON.stringify(resultMap);
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
command: process.execPath,
|
|
145
|
+
args: [ensureClientToolsScript()],
|
|
146
|
+
env,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Extract tool_result content keyed by MCP tool name (mcp_<original>).
|
|
151
|
+
// Walks messages: assistant.tool_calls id→name, role=tool tool_call_id→content.
|
|
152
|
+
function extractClientToolResults(messages) {
|
|
153
|
+
const idToMcpName = new Map();
|
|
154
|
+
const results = {};
|
|
155
|
+
for (const m of messages) {
|
|
156
|
+
if (m?.role === "assistant" && Array.isArray(m.tool_calls)) {
|
|
157
|
+
for (const tc of m.tool_calls) {
|
|
158
|
+
const name = tc?.function?.name || tc?.name;
|
|
159
|
+
if (tc?.id && name) idToMcpName.set(tc.id, toMcpToolName(name));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// Claude-style tool_use blocks in content
|
|
163
|
+
if (m?.role === "assistant" && Array.isArray(m.content)) {
|
|
164
|
+
for (const b of m.content) {
|
|
165
|
+
if (b?.type === "tool_use" && b.id && b.name) {
|
|
166
|
+
idToMcpName.set(b.id, toMcpToolName(b.name));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (m?.role === "tool" && m.tool_call_id) {
|
|
171
|
+
const mcpName = idToMcpName.get(m.tool_call_id);
|
|
172
|
+
if (mcpName) {
|
|
173
|
+
results[mcpName] =
|
|
174
|
+
typeof m.content === "string" ? m.content : JSON.stringify(m.content ?? "");
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
// Claude-style tool_result blocks in user content
|
|
178
|
+
if (m?.role === "user" && Array.isArray(m.content)) {
|
|
179
|
+
for (const b of m.content) {
|
|
180
|
+
if (b?.type === "tool_result" && b.tool_use_id) {
|
|
181
|
+
const mcpName = idToMcpName.get(b.tool_use_id);
|
|
182
|
+
if (mcpName) {
|
|
183
|
+
const c = b.content;
|
|
184
|
+
results[mcpName] =
|
|
185
|
+
typeof c === "string" ? c : JSON.stringify(c ?? "");
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return results;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// Resolve workspace cwd from client request (Codex/CLI env context, body fields).
|
|
195
|
+
// Prefer an absolute existing path so agent file tools hit the user's project
|
|
196
|
+
// instead of os.tmpdir() (which made relative create/delete inconsistent).
|
|
197
|
+
function resolveWorkspaceCwd(body) {
|
|
198
|
+
const candidates = [];
|
|
199
|
+
const push = (v) => {
|
|
200
|
+
if (typeof v === "string" && v.trim()) candidates.push(v.trim());
|
|
201
|
+
};
|
|
202
|
+
push(body?.cwd);
|
|
203
|
+
push(body?.working_directory);
|
|
204
|
+
push(body?.workdir);
|
|
205
|
+
push(body?.workspace);
|
|
206
|
+
push(body?.metadata?.cwd);
|
|
207
|
+
push(body?.metadata?.working_directory);
|
|
208
|
+
|
|
209
|
+
const scanText = (text) => {
|
|
210
|
+
if (typeof text !== "string") return;
|
|
211
|
+
for (const m of text.matchAll(/<cwd>\s*([^<]+?)\s*<\/cwd>/gi)) push(m[1]);
|
|
212
|
+
};
|
|
213
|
+
const scanMessages = (msgs) => {
|
|
214
|
+
if (!Array.isArray(msgs)) return;
|
|
215
|
+
for (const msg of msgs) {
|
|
216
|
+
if (!msg) continue;
|
|
217
|
+
if (typeof msg.content === "string") scanText(msg.content);
|
|
218
|
+
else if (Array.isArray(msg.content)) {
|
|
219
|
+
for (const p of msg.content) {
|
|
220
|
+
if (typeof p === "string") scanText(p);
|
|
221
|
+
else if (p && typeof p === "object") {
|
|
222
|
+
scanText(p.text);
|
|
223
|
+
scanText(p.input_text);
|
|
224
|
+
scanText(p.content);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
// Responses API input items
|
|
229
|
+
if (typeof msg === "string") scanText(msg);
|
|
230
|
+
if (msg.type === "message" && Array.isArray(msg.content)) {
|
|
231
|
+
for (const p of msg.content) scanText(p?.text || p?.input_text);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
scanMessages(body?.messages);
|
|
236
|
+
scanMessages(body?.input);
|
|
237
|
+
|
|
238
|
+
for (const c of candidates) {
|
|
239
|
+
try {
|
|
240
|
+
if (path.isAbsolute(c) && fs.existsSync(c) && fs.statSync(c).isDirectory()) {
|
|
241
|
+
return c;
|
|
242
|
+
}
|
|
243
|
+
} catch {
|
|
244
|
+
/* ignore */
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return os.tmpdir();
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// ─── Multi-turn message → single prompt builder ─────────────────────────────
|
|
251
|
+
|
|
252
|
+
function buildPromptText(messages) {
|
|
253
|
+
// Inline the whole conversation so the model has full context, including
|
|
254
|
+
// prior tool_calls / tool_results so it can continue after a client round-trip.
|
|
255
|
+
const lines = [];
|
|
256
|
+
for (const m of messages) {
|
|
257
|
+
const role = String(m.role || "user");
|
|
258
|
+
let text = "";
|
|
259
|
+
if (typeof m.content === "string") {
|
|
260
|
+
text = m.content;
|
|
261
|
+
} else if (Array.isArray(m.content)) {
|
|
262
|
+
for (const p of m.content) {
|
|
263
|
+
if (!p || typeof p !== "object") continue;
|
|
264
|
+
if (p.type === "text") text += String(p.text || "");
|
|
265
|
+
else if (p.type === "tool_use") {
|
|
266
|
+
text += `\n[Tool call ${p.name} id=${p.id}]\n${JSON.stringify(p.input ?? {})}\n`;
|
|
267
|
+
} else if (p.type === "tool_result") {
|
|
268
|
+
const c =
|
|
269
|
+
typeof p.content === "string" ? p.content : JSON.stringify(p.content ?? "");
|
|
270
|
+
text += `\n[Tool result id=${p.tool_use_id}]\n${c}\n`;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
// OpenAI tool_calls on assistant messages
|
|
275
|
+
if (role === "assistant" && Array.isArray(m.tool_calls) && m.tool_calls.length) {
|
|
276
|
+
const parts = m.tool_calls.map((tc) => {
|
|
277
|
+
const name = tc.function?.name || tc.name || "tool";
|
|
278
|
+
const args = tc.function?.arguments ?? tc.arguments ?? {};
|
|
279
|
+
const argStr = typeof args === "string" ? args : JSON.stringify(args);
|
|
280
|
+
return `[Tool call ${name} id=${tc.id}]\n${argStr}`;
|
|
281
|
+
});
|
|
282
|
+
text = [text, ...parts].filter(Boolean).join("\n\n");
|
|
283
|
+
}
|
|
284
|
+
// OpenAI role=tool messages
|
|
285
|
+
if (role === "tool") {
|
|
286
|
+
const c = typeof m.content === "string" ? m.content : JSON.stringify(m.content ?? "");
|
|
287
|
+
text = `[Tool result id=${m.tool_call_id || ""}]\n${c}`;
|
|
288
|
+
}
|
|
289
|
+
if (!text.trim()) continue;
|
|
290
|
+
if (role === "system") {
|
|
291
|
+
lines.push(`[System]\n${text}`);
|
|
292
|
+
} else if (role === "assistant") {
|
|
293
|
+
lines.push(`[Assistant]\n${text}`);
|
|
294
|
+
} else if (role === "tool") {
|
|
295
|
+
lines.push(`[Tool]\n${text}`);
|
|
296
|
+
} else {
|
|
297
|
+
lines.push(`[User]\n${text}`);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return lines.join("\n\n") || "(empty)";
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// ─── DevinCliExecutor ─────────────────────────────────────────────────────────
|
|
304
|
+
|
|
305
|
+
export class DevinCliExecutor extends BaseExecutor {
|
|
306
|
+
constructor() {
|
|
307
|
+
super("devin-cli", { id: "devin-cli", baseUrl: "devin://acp/stdio" });
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
buildUrl() {
|
|
311
|
+
return "devin://acp/stdio";
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
buildHeaders() {
|
|
315
|
+
return {};
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
transformRequest() {
|
|
319
|
+
return null;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
async execute({ model, body, credentials, signal, log }) {
|
|
323
|
+
const b = body ?? {};
|
|
324
|
+
const messages = Array.isArray(b.messages)
|
|
325
|
+
? b.messages
|
|
326
|
+
: Array.isArray(b.input)
|
|
327
|
+
? b.input
|
|
328
|
+
: [];
|
|
329
|
+
const promptText = buildPromptText(messages);
|
|
330
|
+
const workspaceCwd = resolveWorkspaceCwd(b);
|
|
331
|
+
const devinBin = resolveDevinBin();
|
|
332
|
+
|
|
333
|
+
log?.info?.(
|
|
334
|
+
"DEVIN",
|
|
335
|
+
`devin acp → model=${model}, bin=${devinBin}, cwd=${workspaceCwd}`
|
|
336
|
+
);
|
|
337
|
+
|
|
338
|
+
// Optional MCP servers via DEVIN_MCP_SERVERS (JSON object, devin config format):
|
|
339
|
+
// {"echo":{"command":"/abs/node","args":["/srv/echo.js"],"env":{"K":"V"}}}
|
|
340
|
+
// Plus body.tools (OpenAI schema) → exposed as a "clientTools" MCP
|
|
341
|
+
// server so devin can invoke client-defined tools (bridged back in Phase 2).
|
|
342
|
+
// When any are present, a throwaway XDG_CONFIG_HOME holds devin/config.json so
|
|
343
|
+
// the agent auto-connects them (session/new mcpServers alone doesn't spawn
|
|
344
|
+
// them — see ACP mcp/connect, still unstable). Cleaned up on finish.
|
|
345
|
+
// NOTE: this replaces the user's global devin MCP config for the subprocess.
|
|
346
|
+
let mcpConfigDir = null;
|
|
347
|
+
const mcpServers = {};
|
|
348
|
+
const mcpJson = process.env.DEVIN_MCP_SERVERS?.trim();
|
|
349
|
+
if (mcpJson) {
|
|
350
|
+
try {
|
|
351
|
+
Object.assign(mcpServers, JSON.parse(mcpJson));
|
|
352
|
+
} catch (e) {
|
|
353
|
+
log?.info?.("DEVIN", `DEVIN_MCP_SERVERS parse failed: ${e.message}`);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
const clientTools = Array.isArray(b.tools) ? b.tools.filter(Boolean) : [];
|
|
357
|
+
const clientToolResults = extractClientToolResults(messages);
|
|
358
|
+
const clientToolsMcp = buildClientToolsMcp(clientTools, clientToolResults);
|
|
359
|
+
const hasClientTools = !!clientToolsMcp;
|
|
360
|
+
if (clientToolsMcp) {
|
|
361
|
+
mcpServers["clientTools"] = clientToolsMcp;
|
|
362
|
+
const seeded = Object.keys(clientToolResults).length;
|
|
363
|
+
log?.info?.(
|
|
364
|
+
"DEVIN",
|
|
365
|
+
`exposing ${clientTools.length} client tool(s) as MCP` +
|
|
366
|
+
(seeded ? ` (seeded ${seeded} result(s))` : "")
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
if (Object.keys(mcpServers).length) {
|
|
370
|
+
try {
|
|
371
|
+
mcpConfigDir = fs.mkdtempSync(path.join(os.tmpdir(), "devin-mcp-"));
|
|
372
|
+
const cfgDev = path.join(mcpConfigDir, "devin");
|
|
373
|
+
fs.mkdirSync(cfgDev, { recursive: true });
|
|
374
|
+
fs.writeFileSync(
|
|
375
|
+
path.join(cfgDev, "config.json"),
|
|
376
|
+
JSON.stringify({ mcpServers })
|
|
377
|
+
);
|
|
378
|
+
log?.info?.("DEVIN", `mcp config written → ${mcpConfigDir}`);
|
|
379
|
+
} catch (e) {
|
|
380
|
+
log?.info?.("DEVIN", `mcp config write failed: ${e.message}`);
|
|
381
|
+
mcpConfigDir = null;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
const cleanupMcp = () => {
|
|
385
|
+
if (!mcpConfigDir) return;
|
|
386
|
+
try {
|
|
387
|
+
fs.rmSync(mcpConfigDir, { recursive: true, force: true });
|
|
388
|
+
} catch {
|
|
389
|
+
/* ignore */
|
|
390
|
+
}
|
|
391
|
+
mcpConfigDir = null;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
const sseStream = new ReadableStream({
|
|
395
|
+
start(controller) {
|
|
396
|
+
const enc = new TextEncoder();
|
|
397
|
+
const emit = (data) => controller.enqueue(enc.encode(data));
|
|
398
|
+
|
|
399
|
+
// Inherit the parent environment so devin resolves stored CLI credentials
|
|
400
|
+
// (~/.local/share/devin/credentials.toml from `devin auth login`). Do NOT
|
|
401
|
+
// inject WINDSURF_API_KEY: this provider is noAuth, and a bogus/leaked key
|
|
402
|
+
// overrides stored creds and makes devin return -32000 "invalid api key".
|
|
403
|
+
const env = { ...process.env };
|
|
404
|
+
// Auto-approve tool execution so the agent doesn't block waiting for a
|
|
405
|
+
// session/request_permission response we never send (default mode would
|
|
406
|
+
// hang the stream on the first shell/exec tool call). Override via env.
|
|
407
|
+
// WARNING: bypass lets the agent run shell/modify FS unattended — local only.
|
|
408
|
+
env.DEVIN_PERMISSION_MODE = process.env.DEVIN_PERMISSION_MODE || "bypass";
|
|
409
|
+
if (mcpConfigDir) env.XDG_CONFIG_HOME = mcpConfigDir;
|
|
410
|
+
|
|
411
|
+
// Agent type: default (omitted) = full agent with built-in tools
|
|
412
|
+
// (fs/shell/search) so the model can actually perform tasks. Override to
|
|
413
|
+
// `summarizer` (no tools, text-only) via CLI_DEVIN_AGENT_TYPE for a safer,
|
|
414
|
+
// tool-less mode. WARNING: the default agent can run shell commands and
|
|
415
|
+
// modify the filesystem on the host running 9router — only expose locally.
|
|
416
|
+
const agentType = process.env.CLI_DEVIN_AGENT_TYPE?.trim();
|
|
417
|
+
const acpArgs = ["acp"];
|
|
418
|
+
if (agentType) acpArgs.push("--agent-type", agentType);
|
|
419
|
+
|
|
420
|
+
// Spawn in the client workspace cwd (from <cwd> env context) so built-in
|
|
421
|
+
// file tools create/delete relative paths in the user's project.
|
|
422
|
+
// MCP config still comes from XDG_CONFIG_HOME (throwaway), not project .devin/.
|
|
423
|
+
const child = spawn(devinBin, acpArgs, {
|
|
424
|
+
env,
|
|
425
|
+
cwd: workspaceCwd,
|
|
426
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
427
|
+
// On Windows, devin.exe may need shell resolution
|
|
428
|
+
shell: process.platform === "win32",
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
let spawnError = null;
|
|
432
|
+
let stdinClosed = false;
|
|
433
|
+
|
|
434
|
+
child.on("error", (err) => {
|
|
435
|
+
spawnError = err;
|
|
436
|
+
const msg =
|
|
437
|
+
err.message.includes("ENOENT") || err.message.includes("not found")
|
|
438
|
+
? `Devin CLI not found: ${devinBin}. Install via https://cli.devin.ai or set CLI_DEVIN_BIN env var.`
|
|
439
|
+
: `Devin CLI spawn error: ${err.message}`;
|
|
440
|
+
emit(
|
|
441
|
+
`data: ${JSON.stringify({ error: { message: msg, type: "devin_cli_error", code: "spawn_failed" } })}\n\n`
|
|
442
|
+
);
|
|
443
|
+
emit("data: [DONE]\n\n");
|
|
444
|
+
controller.close();
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
if (signal) {
|
|
448
|
+
signal.addEventListener("abort", () => {
|
|
449
|
+
if (!child.killed) child.kill("SIGTERM");
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// ── JSON-RPC state machine ──────────────────────────────────────────
|
|
454
|
+
let idCounter = 1;
|
|
455
|
+
let sessionId = null;
|
|
456
|
+
let initDone = false;
|
|
457
|
+
let sessionCreated = false;
|
|
458
|
+
let promptSent = false;
|
|
459
|
+
const responseId = `chatcmpl-devin-${Date.now()}`;
|
|
460
|
+
const created = Math.floor(Date.now() / 1000);
|
|
461
|
+
let roleEmitted = false;
|
|
462
|
+
let totalText = "";
|
|
463
|
+
let finished = false;
|
|
464
|
+
|
|
465
|
+
const sendRpc = (method, params) => {
|
|
466
|
+
if (stdinClosed || child.stdin.destroyed) return;
|
|
467
|
+
const id = idCounter++;
|
|
468
|
+
try {
|
|
469
|
+
child.stdin.write(rpc(method, params, id));
|
|
470
|
+
} catch {
|
|
471
|
+
/* ignore write errors after close */
|
|
472
|
+
}
|
|
473
|
+
return id;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
// Emit a content delta as an OpenAI-compatible SSE chunk (handles the
|
|
477
|
+
// leading role chunk once).
|
|
478
|
+
const emitDelta = (delta) => {
|
|
479
|
+
if (!roleEmitted) {
|
|
480
|
+
emit(
|
|
481
|
+
`data: ${JSON.stringify({
|
|
482
|
+
id: responseId,
|
|
483
|
+
object: "chat.completion.chunk",
|
|
484
|
+
created,
|
|
485
|
+
model,
|
|
486
|
+
choices: [{ index: 0, delta: { role: "assistant", content: "" }, finish_reason: null }],
|
|
487
|
+
})}\n\n`
|
|
488
|
+
);
|
|
489
|
+
roleEmitted = true;
|
|
490
|
+
}
|
|
491
|
+
totalText += delta;
|
|
492
|
+
emit(
|
|
493
|
+
`data: ${JSON.stringify({
|
|
494
|
+
id: responseId,
|
|
495
|
+
object: "chat.completion.chunk",
|
|
496
|
+
created,
|
|
497
|
+
model,
|
|
498
|
+
choices: [{ index: 0, delta: { content: delta }, finish_reason: null }],
|
|
499
|
+
})}\n\n`
|
|
500
|
+
);
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
// Emit an OpenAI tool_call delta (function calling). Ends the turn with
|
|
504
|
+
// finish_reason "tool_calls" so the client executes and returns tool_result.
|
|
505
|
+
let toolUseEmitted = false;
|
|
506
|
+
// ACP tool_call is upsert-by-id: the first event has title, a later update
|
|
507
|
+
// may only carry rawInput (title omitted). Track pending client-tool calls.
|
|
508
|
+
const pendingClientTools = new Map(); // toolCallId → original tool name
|
|
509
|
+
const emitToolUse = (toolName, args, toolCallId) => {
|
|
510
|
+
const argsStr = typeof args === "string" ? args : JSON.stringify(args ?? {});
|
|
511
|
+
if (!roleEmitted) {
|
|
512
|
+
emit(
|
|
513
|
+
`data: ${JSON.stringify({
|
|
514
|
+
id: responseId,
|
|
515
|
+
object: "chat.completion.chunk",
|
|
516
|
+
created,
|
|
517
|
+
model,
|
|
518
|
+
choices: [{ index: 0, delta: { role: "assistant", content: null }, finish_reason: null }],
|
|
519
|
+
})}\n\n`
|
|
520
|
+
);
|
|
521
|
+
roleEmitted = true;
|
|
522
|
+
}
|
|
523
|
+
emit(
|
|
524
|
+
`data: ${JSON.stringify({
|
|
525
|
+
id: responseId,
|
|
526
|
+
object: "chat.completion.chunk",
|
|
527
|
+
created,
|
|
528
|
+
model,
|
|
529
|
+
choices: [
|
|
530
|
+
{
|
|
531
|
+
index: 0,
|
|
532
|
+
delta: {
|
|
533
|
+
tool_calls: [
|
|
534
|
+
{
|
|
535
|
+
index: 0,
|
|
536
|
+
id: toolCallId,
|
|
537
|
+
type: "function",
|
|
538
|
+
function: { name: toolName, arguments: argsStr },
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
},
|
|
542
|
+
finish_reason: null,
|
|
543
|
+
},
|
|
544
|
+
],
|
|
545
|
+
})}\n\n`
|
|
546
|
+
);
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
const finish = (error, finishReason = "stop") => {
|
|
550
|
+
if (finished) return;
|
|
551
|
+
finished = true;
|
|
552
|
+
|
|
553
|
+
if (error) {
|
|
554
|
+
emit(
|
|
555
|
+
`data: ${JSON.stringify({ error: { message: error, type: "devin_cli_error" } })}\n\n`
|
|
556
|
+
);
|
|
557
|
+
} else {
|
|
558
|
+
// Emit finish chunk
|
|
559
|
+
emit(
|
|
560
|
+
`data: ${JSON.stringify({
|
|
561
|
+
id: responseId,
|
|
562
|
+
object: "chat.completion.chunk",
|
|
563
|
+
created,
|
|
564
|
+
model,
|
|
565
|
+
choices: [{ index: 0, delta: {}, finish_reason: finishReason }],
|
|
566
|
+
usage: {
|
|
567
|
+
prompt_tokens: Math.ceil(promptText.length / 4),
|
|
568
|
+
completion_tokens: Math.ceil(totalText.length / 4),
|
|
569
|
+
total_tokens: Math.ceil((promptText.length + totalText.length) / 4),
|
|
570
|
+
estimated: true,
|
|
571
|
+
},
|
|
572
|
+
})}\n\n`
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
emit("data: [DONE]\n\n");
|
|
576
|
+
|
|
577
|
+
// Gracefully close stdin → devin will exit
|
|
578
|
+
try {
|
|
579
|
+
if (!stdinClosed) {
|
|
580
|
+
stdinClosed = true;
|
|
581
|
+
child.stdin.end();
|
|
582
|
+
}
|
|
583
|
+
} catch {
|
|
584
|
+
/* ignore */
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// Give it 2s to exit cleanly, then SIGKILL
|
|
588
|
+
const killTimer = setTimeout(() => {
|
|
589
|
+
if (!child.killed) child.kill("SIGKILL");
|
|
590
|
+
}, 2000);
|
|
591
|
+
killTimer.unref?.();
|
|
592
|
+
|
|
593
|
+
controller.close();
|
|
594
|
+
cleanupMcp();
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
// ── stdout reader (NDJSON) ──────────────────────────────────────────
|
|
598
|
+
let buffer = "";
|
|
599
|
+
|
|
600
|
+
child.stdout.on("data", (chunk) => {
|
|
601
|
+
buffer += chunk.toString("utf8");
|
|
602
|
+
let nl;
|
|
603
|
+
// Each ACP message is a newline-terminated JSON line
|
|
604
|
+
while ((nl = buffer.indexOf("\n")) !== -1) {
|
|
605
|
+
const line = buffer.slice(0, nl).trim();
|
|
606
|
+
buffer = buffer.slice(nl + 1);
|
|
607
|
+
if (!line) continue;
|
|
608
|
+
|
|
609
|
+
let msg;
|
|
610
|
+
try {
|
|
611
|
+
msg = JSON.parse(line);
|
|
612
|
+
} catch {
|
|
613
|
+
continue; // ignore non-JSON lines (banner text, etc.)
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// ── Initialize response ───────────────────────────────────────
|
|
617
|
+
if (!initDone && msg.result !== undefined && !msg.method) {
|
|
618
|
+
initDone = true;
|
|
619
|
+
// Create session with the client workspace cwd so agent file tools
|
|
620
|
+
// resolve relative paths against the project (not /tmp).
|
|
621
|
+
// `mcpServers` is required by devin 3000.2.x (must be a sequence);
|
|
622
|
+
// omitting it returns -32602 "Invalid params: missing field mcpServers".
|
|
623
|
+
sendRpc("session/new", {
|
|
624
|
+
cwd: workspaceCwd,
|
|
625
|
+
mcpServers: [],
|
|
626
|
+
model: model || undefined,
|
|
627
|
+
});
|
|
628
|
+
continue;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// ── session/new response → get sessionId ──────────────────────
|
|
632
|
+
if (initDone && !sessionCreated && msg.result !== undefined && !msg.method) {
|
|
633
|
+
const res = msg.result || {};
|
|
634
|
+
sessionId = res.sessionId || null;
|
|
635
|
+
if (!sessionId) {
|
|
636
|
+
finish("Devin ACP: session/new returned no sessionId");
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
sessionCreated = true;
|
|
640
|
+
// Send the prompt. devin 3000.2.x expects `prompt` (a sequence),
|
|
641
|
+
// not `content` — using `content` returns -32602 "missing field prompt".
|
|
642
|
+
promptSent = true;
|
|
643
|
+
sendRpc("session/prompt", {
|
|
644
|
+
sessionId,
|
|
645
|
+
prompt: [{ type: "text", text: promptText }],
|
|
646
|
+
});
|
|
647
|
+
continue;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
// ── session/prompt response (ack / final result) ────────────
|
|
651
|
+
if (sessionCreated && promptSent && msg.result !== undefined && !msg.method) {
|
|
652
|
+
// Devin 3000.2.x only resolves session/prompt with the final result
|
|
653
|
+
// (stopReason) after streaming completes. Streaming notifications are
|
|
654
|
+
// handled below; nothing to do here unless we never streamed.
|
|
655
|
+
if (!roleEmitted) {
|
|
656
|
+
const res = msg.result || undefined;
|
|
657
|
+
const content = extractResultText(res);
|
|
658
|
+
if (content) {
|
|
659
|
+
totalText = content;
|
|
660
|
+
emitDelta(content);
|
|
661
|
+
}
|
|
662
|
+
const stopReason = (res && res.stopReason) || "";
|
|
663
|
+
if (stopReason && stopReason !== "cancelled") {
|
|
664
|
+
finish();
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// ── Permission requests → auto-approve the first allow option ──
|
|
672
|
+
// Devi asks before running shell/exec tools; as a headless proxy we
|
|
673
|
+
// grant once. (DEVIN_PERMISSION_MODE=bypass usually prevents these,
|
|
674
|
+
// but some tool kinds still prompt, so handle them here too.)
|
|
675
|
+
if (msg.method === "session/request_permission" && msg.id !== undefined) {
|
|
676
|
+
const options = msg.params?.options || [];
|
|
677
|
+
const allow =
|
|
678
|
+
options.find((o) => /allow/i.test(String(o.kind || ""))) || options[0];
|
|
679
|
+
if (allow) {
|
|
680
|
+
child.stdin.write(
|
|
681
|
+
JSON.stringify({
|
|
682
|
+
jsonrpc: "2.0",
|
|
683
|
+
id: msg.id,
|
|
684
|
+
result: { outcome: { outcome: "selected", optionId: allow.optionId } },
|
|
685
|
+
}) + "\n"
|
|
686
|
+
);
|
|
687
|
+
}
|
|
688
|
+
continue;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// ── Agent stopped notification (devin 3000.2.x stop signal) ───
|
|
692
|
+
if (msg.method === "_cognition.ai/agent_stopped" || msg.method === "$/agent_stopped") {
|
|
693
|
+
const cause = msg.params?.cause;
|
|
694
|
+
if (cause === "error") {
|
|
695
|
+
// devin uses errorMessage on this notification (not message/error).
|
|
696
|
+
const errText =
|
|
697
|
+
msg.params?.errorMessage ||
|
|
698
|
+
msg.params?.message ||
|
|
699
|
+
msg.params?.error ||
|
|
700
|
+
"Devin agent error";
|
|
701
|
+
finish(String(errText));
|
|
702
|
+
} else {
|
|
703
|
+
finish();
|
|
704
|
+
}
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// ── Streaming notifications (session/update) ──────────────────
|
|
709
|
+
if (msg.method === "session/update" || msg.method === "$/update") {
|
|
710
|
+
const params = msg.params;
|
|
711
|
+
if (!params) continue;
|
|
712
|
+
|
|
713
|
+
// devin 3000.2.x nests the payload under params.update.sessionUpdate;
|
|
714
|
+
// older devin used a flat params.type.
|
|
715
|
+
const update = params.update || {};
|
|
716
|
+
const type = update.sessionUpdate || params.type;
|
|
717
|
+
const contentField = update.content !== undefined ? update.content : params.content;
|
|
718
|
+
const deltaText =
|
|
719
|
+
typeof contentField === "string"
|
|
720
|
+
? contentField
|
|
721
|
+
: contentField?.text ?? params.delta ?? params.text ?? "";
|
|
722
|
+
|
|
723
|
+
// ── Client-tool bridge: devin calling a tool from our exposed MCP ──
|
|
724
|
+
// ACP title shape: "Calling mcp_<name> from clientTools".
|
|
725
|
+
// tool_call is upsert-by-id: title may only appear on the first event,
|
|
726
|
+
// rawInput on a later tool_call_update. Track pending ids so we don't
|
|
727
|
+
// require both fields on the same notification.
|
|
728
|
+
if (
|
|
729
|
+
hasClientTools &&
|
|
730
|
+
!toolUseEmitted &&
|
|
731
|
+
(type === "tool_call" || type === "tool_call_update")
|
|
732
|
+
) {
|
|
733
|
+
const tcId = update.toolCallId;
|
|
734
|
+
if (typeof update.title === "string" && update.title.startsWith("Calling mcp_") && /from clientTools\b/.test(update.title)) {
|
|
735
|
+
const nameMatch = update.title.match(/^Calling (mcp_\S+)\b/);
|
|
736
|
+
const mcpName = nameMatch ? nameMatch[1] : "";
|
|
737
|
+
const origName = fromMcpToolName(mcpName);
|
|
738
|
+
if (tcId && origName) pendingClientTools.set(tcId, origName);
|
|
739
|
+
}
|
|
740
|
+
const origName = tcId ? pendingClientTools.get(tcId) : null;
|
|
741
|
+
if (origName && update.rawInput) {
|
|
742
|
+
toolUseEmitted = true;
|
|
743
|
+
pendingClientTools.delete(tcId);
|
|
744
|
+
emitToolUse(origName, update.rawInput, tcId || `call_${Date.now()}`);
|
|
745
|
+
finish(null, "tool_calls");
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
continue;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
if (type === "agent_message_chunk" || type === "message_delta" || type === "text_delta" || type === "content_delta") {
|
|
752
|
+
if (deltaText) emitDelta(deltaText);
|
|
753
|
+
} else if (type === "agent_thought_chunk") {
|
|
754
|
+
// Internal reasoning — not surfaced to the client.
|
|
755
|
+
} else if (type === "message_stop" || type === "stop" || type === "done") {
|
|
756
|
+
finish();
|
|
757
|
+
return;
|
|
758
|
+
} else if (type === "error") {
|
|
759
|
+
finish(String(params.message || params.error || "Devin ACP error"));
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
762
|
+
continue;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
// ── Error responses ───────────────────────────────────────────
|
|
766
|
+
if (msg.error) {
|
|
767
|
+
finish(`Devin ACP error ${msg.error.code}: ${msg.error.message}`);
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
|
|
773
|
+
child.stderr.on("data", (chunk) => {
|
|
774
|
+
log?.debug?.("DEVIN", `stderr: ${chunk.toString("utf8").slice(0, 200)}`);
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
child.on("close", (code) => {
|
|
778
|
+
if (!finished) {
|
|
779
|
+
if (code !== 0 && !spawnError) {
|
|
780
|
+
finish(roleEmitted ? undefined : `Devin CLI exited with code ${code}`);
|
|
781
|
+
} else {
|
|
782
|
+
finish();
|
|
783
|
+
}
|
|
784
|
+
} else {
|
|
785
|
+
cleanupMcp();
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
|
|
789
|
+
// ── Send initialize ───────────────────────────────────────────────
|
|
790
|
+
sendRpc("initialize", {
|
|
791
|
+
protocolVersion: "0.3",
|
|
792
|
+
clientInfo: { name: "9router", version: "1.0" },
|
|
793
|
+
capabilities: {},
|
|
794
|
+
});
|
|
795
|
+
},
|
|
796
|
+
});
|
|
797
|
+
|
|
798
|
+
return {
|
|
799
|
+
response: new Response(sseStream, {
|
|
800
|
+
status: 200,
|
|
801
|
+
headers: {
|
|
802
|
+
"Content-Type": "text/event-stream",
|
|
803
|
+
"Cache-Control": "no-cache",
|
|
804
|
+
Connection: "keep-alive",
|
|
805
|
+
},
|
|
806
|
+
}),
|
|
807
|
+
url: "devin://acp/stdio",
|
|
808
|
+
headers: {},
|
|
809
|
+
transformedBody: {
|
|
810
|
+
model,
|
|
811
|
+
cwd: workspaceCwd,
|
|
812
|
+
clientTools: clientTools.map((t) => t?.function?.name || t?.name).filter(Boolean),
|
|
813
|
+
clientToolResults: Object.keys(clientToolResults),
|
|
814
|
+
mcpServers: Object.keys(mcpServers),
|
|
815
|
+
promptLength: Array.isArray(body?.messages)
|
|
816
|
+
? body.messages.length
|
|
817
|
+
: Array.isArray(body?.input)
|
|
818
|
+
? body.input.length
|
|
819
|
+
: 0,
|
|
820
|
+
},
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
// ─── Helpers ─────────────────────────────────────────────────────────────────
|
|
826
|
+
|
|
827
|
+
// Extract text from a final ACP session/prompt result object across common shapes.
|
|
828
|
+
function extractResultText(result) {
|
|
829
|
+
// { message: { content: "..." } }
|
|
830
|
+
// { messages: [{ content: "..." }] }
|
|
831
|
+
// { content: "..." }
|
|
832
|
+
// { text: "..." }
|
|
833
|
+
if (typeof result.content === "string") return result.content;
|
|
834
|
+
if (typeof result.text === "string") return result.text;
|
|
835
|
+
const msg = result.message;
|
|
836
|
+
if (msg && typeof msg.content === "string") return msg.content;
|
|
837
|
+
const msgs = result.messages;
|
|
838
|
+
if (Array.isArray(msgs)) {
|
|
839
|
+
return msgs
|
|
840
|
+
.filter((m) => m.role === "assistant")
|
|
841
|
+
.map((m) => String(m.content || ""))
|
|
842
|
+
.join("\n");
|
|
843
|
+
}
|
|
844
|
+
return "";
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
export default DevinCliExecutor;
|