omniroute 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -76
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +74 -72
- package/app/.next/build-manifest.json +2 -2
- package/app/.next/routes-manifest.json +14 -0
- package/app/.next/server/app/(dashboard)/dashboard/a2a/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/a2a/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/a2a/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/agents/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/agents/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/agents/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/analytics/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/analytics/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/api-manager/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/api-manager/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/api-manager/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/audit-log/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/audit-log/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/audit-log/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/auto-combo/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/auto-combo/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/auto-combo/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 +1 -1
- 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/costs/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/costs/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/costs/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/health/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/limits/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/limits/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/limits/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/logs/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/logs/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/logs/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mcp/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mcp/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mcp/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/onboarding/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/onboarding/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/onboarding/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/playground/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- 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 +1 -1
- 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/settings/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/settings/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/settings/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- 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 +1 -1
- 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/.well-known/agent.json/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/400/page.js +1 -1
- package/app/.next/server/app/400/page.js.nft.json +1 -1
- package/app/.next/server/app/400/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/401/page.js +1 -1
- package/app/.next/server/app/401/page.js.nft.json +1 -1
- package/app/.next/server/app/401/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/403/page.js +1 -1
- package/app/.next/server/app/403/page.js.nft.json +1 -1
- package/app/.next/server/app/403/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/408/page.js +1 -1
- package/app/.next/server/app/408/page.js.nft.json +1 -1
- package/app/.next/server/app/408/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/429/page.js +1 -1
- package/app/.next/server/app/429/page.js.nft.json +1 -1
- package/app/.next/server/app/429/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/500/page.js +1 -1
- package/app/.next/server/app/500/page.js.nft.json +1 -1
- package/app/.next/server/app/500/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/502/page.js +1 -1
- package/app/.next/server/app/502/page.js.nft.json +1 -1
- package/app/.next/server/app/502/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/503/page.js +1 -1
- package/app/.next/server/app/503/page.js.nft.json +1 -1
- package/app/.next/server/app/503/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error.html +2 -2
- 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 +1 -1
- 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/a2a/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/a2a/status/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/a2a/tasks/[id]/cancel/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/a2a/tasks/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/a2a/tasks/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/acp/agents/route.js +1 -1
- package/app/.next/server/app/api/acp/agents/route.js.nft.json +1 -1
- package/app/.next/server/app/api/acp/agents/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/login/route.js +1 -1
- package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cache/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cache/stats/route_client-reference-manifest.js +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/alias/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/backups/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/guide-settings/[toolId]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/openclaw/auto-order/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/runtime/[toolId]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/status/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cloud/auth/route.js +1 -1
- package/app/.next/server/app/api/cloud/auth/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
- package/app/.next/server/app/api/cloud/credentials/update/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/credentials/update/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
- package/app/.next/server/app/api/cloud/model/resolve/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/model/resolve/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
- package/app/.next/server/app/api/cloud/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/models/alias/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/combos/auto/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/combos/metrics/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/combos/route.js +1 -1
- package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/combos/test/route.js +1 -1
- package/app/.next/server/app/api/combos/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/test/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/compliance/audit-log/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/db-backups/export/route.js +1 -1
- package/app/.next/server/app/api/db-backups/export/route.js.nft.json +1 -1
- package/app/.next/server/app/api/db-backups/export/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/db-backups/exportAll/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/db-backups/import/route.js +1 -1
- package/app/.next/server/app/api/db-backups/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/db-backups/import/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/db-backups/route.js +1 -1
- package/app/.next/server/app/api/db-backups/route.js.nft.json +1 -1
- package/app/.next/server/app/api/db-backups/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/evals/[suiteId]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/evals/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/fallback/chains/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/init/route.js +1 -1
- package/app/.next/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/keys/route.js +1 -1
- package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/logs/console/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/mcp/audit/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/mcp/audit/stats/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/mcp/sse/route.js +1 -1
- package/app/.next/server/app/api/mcp/sse/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/sse/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/mcp/status/route.js +1 -1
- package/app/.next/server/app/api/mcp/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/mcp/stream/route.js +1 -1
- package/app/.next/server/app/api/mcp/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/stream/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/availability/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/catalog/route.js +2 -2
- package/app/.next/server/app/api/models/catalog/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/catalog/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/openrouter-catalog/route.js +1 -1
- package/app/.next/server/app/api/models/openrouter-catalog/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/openrouter-catalog/route_client-reference-manifest.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/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/monitoring/health/route.js +1 -1
- package/app/.next/server/app/api/monitoring/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/monitoring/health/route_client-reference-manifest.js +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/[provider]/[action]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
- 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/cursor/import/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.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/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/policies/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/pricing/defaults/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/pricing/models/route.js +1 -1
- package/app/.next/server/app/api/pricing/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pricing/models/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/pricing/route.js +1 -1
- package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/provider-metrics/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/provider-models/route.js +1 -1
- package/app/.next/server/app/api/provider-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-models/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js +2 -2
- package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js +2 -2
- package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/providers/[id]/refresh/route.js +1 -0
- package/app/.next/server/app/api/providers/[id]/refresh/route.js.nft.json +1 -0
- package/app/.next/server/app/api/providers/[id]/refresh/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/route_client-reference-manifest.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/route_client-reference-manifest.js +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/client/route_client-reference-manifest.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/route_client-reference-manifest.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/test-batch/route_client-reference-manifest.js +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/providers/validate/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/rate-limit/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/rate-limits/route.js +1 -1
- package/app/.next/server/app/api/rate-limits/route.js.nft.json +1 -1
- package/app/.next/server/app/api/rate-limits/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/resilience/reset/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/resilience/route.js +1 -1
- package/app/.next/server/app/api/resilience/route.js.nft.json +1 -1
- package/app/.next/server/app/api/resilience/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/restart/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/background-degradation/route.js +1 -1
- package/app/.next/server/app/api/settings/background-degradation/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/background-degradation/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/combo-defaults/route.js +1 -1
- package/app/.next/server/app/api/settings/combo-defaults/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/combo-defaults/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/ip-filter/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/model-aliases/route.js +1 -1
- package/app/.next/server/app/api/settings/model-aliases/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/model-aliases/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/proxy/route.js +1 -1
- package/app/.next/server/app/api/settings/proxy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/proxy/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/proxy/test/route.js +1 -1
- package/app/.next/server/app/api/settings/proxy/test/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/require-login/route_client-reference-manifest.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/settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/system-prompt/route.js +1 -1
- package/app/.next/server/app/api/settings/system-prompt/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/system-prompt/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/task-routing/route.js +1 -0
- package/app/.next/server/app/api/settings/task-routing/route.js.nft.json +1 -0
- package/app/.next/server/app/api/settings/task-routing/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/settings/thinking-budget/route.js +1 -1
- package/app/.next/server/app/api/settings/thinking-budget/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/thinking-budget/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/storage/health/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/sync/cloud/route.js +1 -1
- package/app/.next/server/app/api/sync/cloud/route.js.nft.json +1 -1
- package/app/.next/server/app/api/sync/cloud/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/sync/initialize/route.js +1 -1
- package/app/.next/server/app/api/sync/initialize/route.js.nft.json +1 -1
- package/app/.next/server/app/api/sync/initialize/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/telemetry/summary/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/token-health/route.js +1 -1
- package/app/.next/server/app/api/token-health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/token-health/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/translator/detect/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/translator/history/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/translator/save/route_client-reference-manifest.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/send/route_client-reference-manifest.js +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/translator/translate/route_client-reference-manifest.js +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/[connectionId]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/analytics/route.js +1 -1
- package/app/.next/server/app/api/usage/analytics/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/analytics/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/budget/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/call-logs/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/call-logs/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/call-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/call-logs/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/logs/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/proxy-logs/route.js +1 -1
- package/app/.next/server/app/api/usage/proxy-logs/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/quota/route.js +1 -1
- package/app/.next/server/app/api/usage/quota/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/quota/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/api/chat/route_client-reference-manifest.js +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/speech/route_client-reference-manifest.js +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/transcriptions/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/completions/route_client-reference-manifest.js +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/embeddings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.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/messages/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/moderations/route.js +1 -1
- package/app/.next/server/app/api/v1/moderations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/moderations/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/music/generations/route.js +1 -1
- package/app/.next/server/app/api/v1/music/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/music/generations/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route.js +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/rerank/route.js +1 -1
- package/app/.next/server/app/api/v1/rerank/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/rerank/route_client-reference-manifest.js +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/responses/route_client-reference-manifest.js +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/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/generations/route_client-reference-manifest.js +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/[...path]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/callback/page.js +1 -1
- 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/docs/page.js +1 -1
- package/app/.next/server/app/docs/page.js.nft.json +1 -1
- package/app/.next/server/app/docs/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/forbidden/page.js +1 -1
- package/app/.next/server/app/forbidden/page.js.nft.json +1 -1
- package/app/.next/server/app/forbidden/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/forgot-password/page.js +1 -1
- package/app/.next/server/app/forgot-password/page.js.nft.json +1 -1
- package/app/.next/server/app/forgot-password/page_client-reference-manifest.js +1 -1
- 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/login/page.js +1 -1
- 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/maintenance/page.js +1 -1
- package/app/.next/server/app/maintenance/page.js.nft.json +1 -1
- package/app/.next/server/app/maintenance/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/offline/page.js +1 -1
- package/app/.next/server/app/offline/page.js.nft.json +1 -1
- package/app/.next/server/app/offline/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/page.js +1 -1
- 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/privacy/page.js +1 -1
- package/app/.next/server/app/privacy/page.js.nft.json +1 -1
- package/app/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/status/page.js +1 -1
- package/app/.next/server/app/status/page.js.nft.json +1 -1
- package/app/.next/server/app/status/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/terms/page.js +1 -1
- package/app/.next/server/app/terms/page.js.nft.json +1 -1
- package/app/.next/server/app/terms/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app-paths-manifest.json +74 -72
- package/app/.next/server/chunks/1308.js +1 -1
- package/app/.next/server/chunks/1714.js +135 -0
- package/app/.next/server/chunks/1909.js +1 -1
- package/app/.next/server/chunks/1960.js +1 -1
- package/app/.next/server/chunks/2391.js +1 -1
- package/app/.next/server/chunks/2476.js +1 -0
- package/app/.next/server/chunks/2767.js +3 -3
- package/app/.next/server/chunks/3061.js +2 -2
- package/app/.next/server/chunks/3596.js +1 -1
- package/app/.next/server/chunks/3648.js +5 -5
- package/app/.next/server/chunks/406.js +13 -13
- package/app/.next/server/chunks/4755.js +1 -1
- package/app/.next/server/chunks/5585.js +1 -0
- package/app/.next/server/chunks/595.js +1 -1
- package/app/.next/server/chunks/5979.js +1 -1
- package/app/.next/server/chunks/6094.js +1 -0
- package/app/.next/server/chunks/6197.js +46 -0
- package/app/.next/server/chunks/6440.js +1 -0
- package/app/.next/server/chunks/7109.js +2 -2
- package/app/.next/server/chunks/7136.js +1 -0
- package/app/.next/server/chunks/7327.js +1 -1
- package/app/.next/server/chunks/7544.js +1 -1
- package/app/.next/server/chunks/7669.js +1 -1
- package/app/.next/server/chunks/8369.js +1 -1
- package/app/.next/server/chunks/8907.js +1 -1
- package/app/.next/server/chunks/9631.js +1 -1
- package/app/.next/server/chunks/9704.js +2 -2
- package/app/.next/server/instrumentation.js +1 -1
- package/app/.next/server/middleware.js +4 -4
- package/app/.next/server/pages/500.html +2 -2
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/{server/chunks/3922.js → static/chunks/5846-dc138c1880db7dc4.js} +2 -1
- package/app/.next/static/chunks/647-bf8bc535ac3648d0.js +21 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/agents/page-576b27a05c09fba5.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-3c3f3b0b558e9302.js +15 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-81244e4816fac7ea.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/{page-08c2aa1b8887ab74.js → page-8b96e2f6d76d6f2d.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/logs/page-2d456b7ddbf3d41e.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media/page-5ed5bdc9e926936c.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/page-799001b6cea7d5bc.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/playground/page-0fff47edc56250ea.js +2 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-01465d13a7217fd4.js +1 -0
- package/app/.next/static/chunks/app/.well-known/agent.json/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/400/layout-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/401/layout-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/403/layout-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/408/layout-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/429/layout-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/500/layout-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/502/layout-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/503/layout-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/_global-error/page-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/_not-found/page-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/a2a/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/a2a/status/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/a2a/tasks/[id]/cancel/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/a2a/tasks/[id]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/a2a/tasks/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/acp/agents/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cache/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cache/stats/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/backups/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-profiles/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/guide-settings/[toolId]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw/auto-order/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/runtime/[toolId]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/status/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/auth/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/combos/auto/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/combos/metrics/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/combos/test/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/compliance/audit-log/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/db-backups/export/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/db-backups/exportAll/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/db-backups/import/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/db-backups/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/evals/[suiteId]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/evals/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/fallback/chains/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/init/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/logs/console/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/audit/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/audit/stats/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/sse/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/status/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/stream/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/tools/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/models/catalog/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/models/openrouter-catalog/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/monitoring/health/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/policies/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/defaults/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/models/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/provider-metrics/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/provider-models/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/refresh/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/rate-limit/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/rate-limits/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/resilience/reset/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/resilience/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/restart/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/sessions/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/background-degradation/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/combo-defaults/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/ip-filter/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/model-aliases/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy/test/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/require-login/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/system-prompt/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/task-routing/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/settings/thinking-budget/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/storage/health/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/sync/cloud/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/sync/initialize/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/telemetry/summary/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/token-health/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/translator/detect/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/translator/history/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/analytics/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/budget/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/call-logs/[id]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/call-logs/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/proxy-logs/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/quota/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/completions/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/moderations/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/music/generations/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/providers/[provider]/chat/completions/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/providers/[provider]/embeddings/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/providers/[provider]/images/generations/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/rerank/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/app/landing/{page-75b0c988db383cfc.js → page-8f652c1fbc33efd2.js} +1 -1
- package/app/.next/static/chunks/app/page-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-a4c3bff638878498.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-a4c3bff638878498.js +1 -0
- package/app/.next/static/css/0a5545f707228079.css +1 -0
- package/app/.next/static/vyty8kP9IuZktMt159X9L/_buildManifest.js +1 -0
- package/app/package.json +1 -1
- package/package.json +1 -1
- package/app/.next/server/chunks/2901.js +0 -46
- package/app/.next/server/chunks/786.js +0 -135
- package/app/.next/server/chunks/9679.js +0 -1
- package/app/.next/static/chunks/5846-995a9fadc90d26d3.js +0 -2
- package/app/.next/static/chunks/647-27f02a9e225826d5.js +0 -21
- package/app/.next/static/chunks/app/(dashboard)/dashboard/agents/page-4ec5a1458c077143.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-ad968920ad7029fd.js +0 -15
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-c92198822ec0da04.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/logs/page-95e4b5e0bf023d76.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media/page-07cbc45d62a20735.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/page-23797ed1fe047ef7.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/playground/page-4c93d045288f7d9e.js +0 -2
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-e3a0a2f5334efeed.js +0 -1
- package/app/.next/static/chunks/app/.well-known/agent.json/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/400/layout-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/401/layout-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/403/layout-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/408/layout-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/429/layout-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/500/layout-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/502/layout-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/503/layout-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/_global-error/page-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/_not-found/page-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/a2a/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/a2a/status/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/a2a/tasks/[id]/cancel/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/a2a/tasks/[id]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/a2a/tasks/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/acp/agents/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cache/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cache/stats/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/backups/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-profiles/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/guide-settings/[toolId]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw/auto-order/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/runtime/[toolId]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/status/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/auth/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/combos/auto/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/combos/metrics/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/combos/test/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/compliance/audit-log/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/db-backups/export/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/db-backups/exportAll/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/db-backups/import/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/db-backups/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/evals/[suiteId]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/evals/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/fallback/chains/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/init/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/logs/console/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/audit/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/audit/stats/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/sse/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/status/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/stream/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/tools/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/models/catalog/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/models/openrouter-catalog/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/monitoring/health/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/policies/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/defaults/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/models/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/provider-metrics/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/provider-models/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/rate-limit/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/rate-limits/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/resilience/reset/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/resilience/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/restart/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/sessions/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/background-degradation/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/combo-defaults/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/ip-filter/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/model-aliases/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy/test/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/require-login/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/system-prompt/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/thinking-budget/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/storage/health/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/sync/cloud/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/sync/initialize/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/telemetry/summary/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/token-health/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/detect/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/history/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/analytics/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/budget/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/call-logs/[id]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/call-logs/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/proxy-logs/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/quota/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/completions/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/moderations/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/music/generations/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/providers/[provider]/chat/completions/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/providers/[provider]/embeddings/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/providers/[provider]/images/generations/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/rerank/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/app/page-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-4fd91743f3ac831d.js +0 -1
- package/app/.next/static/css/f8997b4d505d4a63.css +0 -1
- package/app/.next/static/ig97FitGiiNqfOhrQUGzh/_buildManifest.js +0 -1
- /package/app/.next/static/{ig97FitGiiNqfOhrQUGzh → vyty8kP9IuZktMt159X9L}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var a={};a.id=2326,a.ids=[2326],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},6568:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Ah:()=>f.A,Pl:()=>l.A,Tk:()=>e.A,ZM:()=>g.A,a7:()=>k.A,aG:()=>i.A,c9:()=>j.A,h1:()=>m.A,yZ:()=>h.A});var e=c(10500),f=c(48541),g=c(7294),h=c(18571),i=c(34249),j=c(96877),k=c(25403),l=c(67106),m=c(82652),n=a([e,f,g,h,i,j,k,l,m]);[e,f,g,h,i,j,k,l,m]=n.then?(await n)():n,d()}catch(a){d(a)}})},7294:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);g=(k.then?(await k)():k)[0];let m="https://cloud.omniroute.online";function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,hasActiveProviders:k,apiKeys:l,activeProviders:n,cloudEnabled:o,batchStatus:p,lastConfiguredAt:q}){let r,s,t,u,v=(0,j.c)("cliTools"),[w,x]=(0,f.useState)(null),[y,z]=(0,f.useState)(!1),[A,B]=(0,f.useState)(!1),[C,D]=(0,f.useState)(!1),[E,F]=(0,f.useState)(null),[G,H]=(0,f.useState)(""),[I,J]=(0,f.useState)(""),[K,L]=(0,f.useState)(!1),[M,N]=(0,f.useState)({}),[O,P]=(0,f.useState)(!1),[Q,R]=(0,f.useState)("");(0,f.useRef)(!1);let[S,T]=(0,f.useState)([]),[U,V]=(0,f.useState)(!1),[W,X]=(0,f.useState)(null),Y=!!(w?.installed&&w?.runnable),Z=(()=>{if(!Y)return null;let a=w.settings?.customModels?.find(a=>"custom:OmniRoute-0"===a.id);if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1"),c=o&&m&&a.baseUrl?.startsWith(m);return b||c?"configured":"other"})()||p?.configStatus||null,$=async()=>{z(!0);try{let a=await fetch("/api/cli-tools/droid-settings"),b=await a.json();x(b)}catch(a){x({installed:!1,error:a.message})}finally{z(!1)}},_=()=>{let a=Q||d;return a.endsWith("/v1")?a:`${a}/v1`},aa=async()=>{B(!0),F(null);try{let a=G?.trim()||(l?.length>0?l[0].key:null)||(o?null:"sk_omniroute"),b=await fetch("/api/cli-tools/droid-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:_(),apiKey:a,model:I})}),c=await b.json();b.ok?(F({type:"success",text:v("settingsApplied")}),$()):F({type:"error",text:c.error||v("failedApplySettings")})}catch(a){F({type:"error",text:a.message})}finally{B(!1)}},ab=async()=>{D(!0),F(null);try{let a=await fetch("/api/cli-tools/droid-settings",{method:"DELETE"}),b=await a.json();a.ok?(F({type:"success",text:v("settingsReset")}),J(""),H(""),$()):F({type:"error",text:b.error||v("failedResetSettings")})}catch(a){F({type:"error",text:a.message})}finally{D(!1)}},ac=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=droid"),b=await a.json();a.ok&&T(b.backups||[])}catch(a){console.log("Error fetching backups:",a)}},ad=async a=>{X(a),F(null);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"droid",backupId:a})}),c=await b.json();b.ok?(F({type:"success",text:v("backupRestored")}),$(),ac()):F({type:"error",text:c.error||v("failedRestore")})}catch(a){F({type:"error",text:a.message})}finally{X(null)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/droid.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:Z,batchStatus:p,lastConfiguredAt:q})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:v("toolDescriptions.droid")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[y&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,e.jsx)("span",{children:v("checkingCli",{tool:"Factory Droid"})})]}),!y&&w&&!Y&&(0,e.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:w.installed?v("cliNotRunnable",{tool:"Factory Droid"}):v("cliNotInstalled",{tool:"Factory Droid"})}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:w.installed?v("cliFoundFailedHealthcheck",{tool:"Factory Droid",reason:w.reason?` (${w.reason})`:""}):v("installCliPrompt",{tool:"Factory Droid"})})]})]}),!y&&Y&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[w?.settings?.customModels?.find(a=>"custom:OmniRoute-0"===a.id)?.baseUrl&&(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:v("current")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:w.settings.customModels.find(a=>"custom:OmniRoute-0"===a.id).baseUrl})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:v("baseUrl")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:(r=Q||d).endsWith("/v1")?r:`${r}/v1`,onChange:a=>R(a.target.value),placeholder:v("baseUrlPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),Q&&Q!==d&&(0,e.jsx)("button",{onClick:()=>R(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:v("resetToDefault"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:v("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),l.length>0?(0,e.jsx)("select",{value:G,onChange:a=>H(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:o?v("noApiKeysCreateOne"):v("defaultOmnirouteKey")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:v("model")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:I,onChange:a=>J(a.target.value),placeholder:v("providerModelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>L(!0),disabled:!k,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${k?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:v("selectModel")}),I&&(0,e.jsx)("button",{onClick:()=>J(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:v("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),E&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===E.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===E.type?"check_circle":"error"}),(0,e.jsx)("span",{children:E.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:aa,disabled:!I,loading:A,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),v("apply")]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:ab,disabled:!w?.hasOmniRoute,loading:C,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),v("reset")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>P(!0),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),v("manualConfig")]}),(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{V(!U),U||ac()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"history"}),v("backups"),S.length>0&&` (${S.length})`]})]}),U&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"history"}),v("configBackups")]}),0===S.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:v("noBackupsYet")}):(0,e.jsx)("div",{className:"space-y-1.5",children:S.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"description"}),(0,e.jsx)("span",{className:"flex-1 truncate font-mono",title:a.id,children:a.id}),(0,e.jsx)("span",{className:"text-text-muted whitespace-nowrap",children:new Date(a.createdAt).toLocaleString()}),(0,e.jsx)("button",{onClick:()=>ad(a.id),disabled:W===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:W===a.id?"...":v("restore")})]},a.id))})]})]})]}),(0,e.jsx)(g.rq,{isOpen:K,onClose:()=>L(!1),onSelect:a=>{J(a.value),L(!1)},selectedModel:I,activeProviders:n,modelAliases:M,title:v("selectModelForTool",{tool:"Factory Droid"})}),(0,e.jsx)(g.uR,{isOpen:O,onClose:()=>P(!1),title:v("droidManualConfiguration"),configs:(s=G&&G.trim()?G:o?"<API_KEY_FROM_DASHBOARD>":"sk_omniroute",t={customModels:[{model:I||"provider/model-id",id:"custom:OmniRoute-0",index:0,baseUrl:_(),apiKey:s,displayName:I||"provider/model-id",maxOutputTokens:131072,noImageSupport:!1,provider:"openai"}]},u="u">typeof navigator&&navigator.platform,[{filename:u?.toLowerCase().includes("win")?"%USERPROFILE%\\.factory\\settings.json":"~/.factory/settings.json",content:JSON.stringify(t,null,2)}])})]})}d()}catch(a){d(a)}})},10500:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);g=(k.then?(await k)():k)[0];let m="https://cloud.omniroute.online";function l({tool:a,isExpanded:b,onToggle:c,activeProviders:d,modelMappings:k,onModelMappingChange:l,baseUrl:n,hasActiveProviders:o,apiKeys:p,cloudEnabled:q,batchStatus:r,lastConfiguredAt:s}){let t,u,v,w=(0,j.c)("cliTools"),[x,y]=(0,f.useState)(null),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(!1),[D,E]=(0,f.useState)(!1),[F,G]=(0,f.useState)(null),[H,I]=(0,f.useState)(!1),[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)(null),[N,O]=(0,f.useState)(""),[P,Q]=(0,f.useState)({}),[R,S]=(0,f.useState)(!1),[T,U]=(0,f.useState)("");(0,f.useRef)(!1);let[V,W]=(0,f.useState)([]),[X,Y]=(0,f.useState)(!1),[Z,$]=(0,f.useState)(null),_=!!(x?.installed&&x?.runnable),aa=(()=>{if(!_)return null;let a=x.settings?.env?.ANTHROPIC_BASE_URL;if(!a)return"not_configured";let b=a.includes("localhost")||a.includes("127.0.0.1"),c=q&&m&&a.startsWith(m);return b||c?"configured":"other"})()||r?.configStatus||null,ab=async()=>{A(!0);try{let a=await fetch("/api/cli-tools/claude-settings"),b=await a.json();y(b)}catch(a){y({installed:!1,error:a.message})}finally{A(!1)}},ac=()=>{let a=T||n;return a.endsWith("/v1")?a:`${a}/v1`},ad=async()=>{C(!0),G(null);try{let b={ANTHROPIC_BASE_URL:ac()},c=N?.trim()||(p?.length>0?p[0].key:null)||(q?null:"sk_omniroute");c&&(b.ANTHROPIC_AUTH_TOKEN=c),a.defaultModels.forEach(a=>{let c=k[a.alias];c&&a.envKey&&(b[a.envKey]=c)});let d=await fetch("/api/cli-tools/claude-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({env:b})}),e=await d.json();d.ok?(G({type:"success",text:w("settingsApplied")}),y(a=>({...a,hasBackup:!0,settings:{...a?.settings,env:b}}))):G({type:"error",text:e.error||w("failedApplySettings")})}catch(a){G({type:"error",text:a.message})}finally{C(!1)}},ae=async()=>{E(!0),G(null);try{let b=await fetch("/api/cli-tools/claude-settings",{method:"DELETE"}),c=await b.json();b.ok?(G({type:"success",text:w("settingsReset")}),a.defaultModels.forEach(a=>l(a.alias,a.defaultValue||"")),O("")):G({type:"error",text:c.error||w("failedResetSettings")})}catch(a){G({type:"error",text:a.message})}finally{E(!1)}},af=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=claude"),b=await a.json();a.ok&&W(b.backups||[])}catch(a){console.log("Error fetching backups:",a)}},ag=async a=>{$(a),G(null);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"claude",backupId:a})}),c=await b.json();b.ok?(G({type:"success",text:w("backupRestored")}),ab(),af()):G({type:"error",text:c.error||w("failedRestore")})}catch(a){G({type:"error",text:a.message})}finally{$(null)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/claude.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:aa,batchStatus:r,lastConfiguredAt:s})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:w("toolDescriptions.claude")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[z&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,e.jsx)("span",{children:w("checkingCli",{tool:"Claude"})})]}),!z&&x&&!_&&(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:x.installed?w("cliNotRunnable",{tool:"Claude"}):w("cliNotInstalled",{tool:"Claude"})}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:x.installed?w("cliFoundFailedHealthcheck",{tool:"Claude",reason:x.reason?` (${x.reason})`:""}):w("installCliPrompt",{tool:"Claude"})})]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:()=>I(!H),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px] mr-1",children:H?"expand_less":"help"}),H?w("hide"):w("howToInstall")]})]}),H&&(0,e.jsxs)("div",{className:"p-4 bg-surface border border-border rounded-lg",children:[(0,e.jsx)("h4",{className:"font-medium mb-3",children:w("installationGuide")}),(0,e.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-text-muted mb-1",children:w("platforms")}),(0,e.jsx)("code",{className:"block px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs",children:"npm install -g @anthropic-ai/claude-code"})]}),(0,e.jsxs)("p",{className:"text-text-muted",children:[w("afterInstallationRun")," ",(0,e.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"claude"})," ",w("toVerify")]})]})]})]}),!z&&_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[x?.settings?.env?.ANTHROPIC_BASE_URL&&(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:w("current")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:x.settings.env.ANTHROPIC_BASE_URL})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:w("baseUrl")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:(t=T||n).endsWith("/v1")?t:`${t}/v1`,onChange:a=>U(a.target.value),placeholder:w("baseUrlPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),T&&T!==n&&(0,e.jsx)("button",{onClick:()=>U(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:w("resetToDefault"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:w("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),p.length>0?(0,e.jsx)("select",{value:N,onChange:a=>O(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:p.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:q?w("noApiKeysCreateOne"):w("defaultOmnirouteKey")})]}),a.defaultModels.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:a.name}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:k[a.alias]||"",onChange:b=>l(a.alias,b.target.value),placeholder:w("providerModelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>{var b;return b=a.alias,void(M(b),K(!0))},disabled:!o,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${o?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:w("selectModel")}),k[a.alias]&&(0,e.jsx)("button",{onClick:()=>l(a.alias,""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:w("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias))]}),F&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===F.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===F.type?"check_circle":"error"}),(0,e.jsx)("span",{children:F.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:ad,disabled:!o,loading:B,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),w("apply")]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:ae,disabled:!x?.hasOmniRoute,loading:D,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),w("reset")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>S(!0),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),w("manualConfig")]}),(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{Y(!X),X||af()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"history"}),w("backups"),V.length>0&&` (${V.length})`]})]}),X&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"history"}),w("configBackups")]}),0===V.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:w("noBackupsYet")}):(0,e.jsx)("div",{className:"space-y-1.5",children:V.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"description"}),(0,e.jsx)("span",{className:"flex-1 truncate font-mono",title:a.id,children:a.id}),(0,e.jsx)("span",{className:"text-text-muted whitespace-nowrap",children:new Date(a.createdAt).toLocaleString()}),(0,e.jsx)("button",{onClick:()=>ag(a.id),disabled:Z===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:Z===a.id?"...":w("restore")})]},a.id))})]})]})]}),(0,e.jsx)(g.rq,{isOpen:J,onClose:()=>K(!1),onSelect:a=>{L&&l(L,a.value)},selectedModel:L?k[L]:null,activeProviders:d,modelAliases:P,title:w("selectModelForAlias",{alias:L||""})}),(0,e.jsx)(g.uR,{isOpen:R,onClose:()=>S(!1),title:w("claudeManualConfiguration"),configs:(u=N&&N.trim()?N:q?"<API_KEY_FROM_DASHBOARD>":"sk_omniroute",v={ANTHROPIC_BASE_URL:ac(),ANTHROPIC_AUTH_TOKEN:u},a.defaultModels.forEach(a=>{let b=k[a.alias];b&&a.envKey&&(v[a.envKey]=b)}),[{filename:"~/.claude/settings.json",content:JSON.stringify({env:v},null,2)}])})]})}d()}catch(a){d(a)}})},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18571:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);g=(k.then?(await k)():k)[0];let m="https://cloud.omniroute.online";function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,hasActiveProviders:k,apiKeys:l,activeProviders:n,cloudEnabled:o,batchStatus:p,lastConfiguredAt:q}){let r,s,t,u=(0,j.c)("cliTools"),[v,w]=(0,f.useState)(null),[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(!1),[D,E]=(0,f.useState)(null),[F,G]=(0,f.useState)(""),[H,I]=(0,f.useState)(""),[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)({}),[N,O]=(0,f.useState)(!1),[P,Q]=(0,f.useState)("");(0,f.useRef)(!1);let[R,S]=(0,f.useState)([]),[T,U]=(0,f.useState)(!1),[V,W]=(0,f.useState)(null),X=!!(v?.installed&&v?.runnable),Y=(()=>{if(!X)return null;let a=v.settings?.models?.providers?.omniroute;if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1"),c=o&&m&&a.baseUrl?.startsWith(m);return b||c?"configured":"other"})()||p?.configStatus||null,Z=async()=>{y(!0);try{let a=await fetch("/api/cli-tools/openclaw-settings"),b=await a.json();w(b)}catch(a){w({installed:!1,error:a.message})}finally{y(!1)}},$=()=>{let a=P||d;return a.endsWith("/v1")?a:`${a}/v1`},_=async()=>{A(!0),E(null);try{let a=F?.trim()||(l?.length>0?l[0].key:null)||(o?null:"sk_omniroute"),b=await fetch("/api/cli-tools/openclaw-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:$(),apiKey:a,model:H})}),c=await b.json();b.ok?(E({type:"success",text:u("settingsApplied")}),Z()):E({type:"error",text:c.error||u("failedApplySettings")})}catch(a){E({type:"error",text:a.message})}finally{A(!1)}},aa=async()=>{C(!0),E(null);try{let a=await fetch("/api/cli-tools/openclaw-settings",{method:"DELETE"}),b=await a.json();a.ok?(E({type:"success",text:u("settingsReset")}),I(""),G(""),Z()):E({type:"error",text:b.error||u("failedResetSettings")})}catch(a){E({type:"error",text:a.message})}finally{C(!1)}},ab=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=openclaw"),b=await a.json();a.ok&&S(b.backups||[])}catch(a){console.log("Error fetching backups:",a)}},ac=async a=>{W(a),E(null);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"openclaw",backupId:a})}),c=await b.json();b.ok?(E({type:"success",text:u("backupRestored")}),Z(),ab()):E({type:"error",text:c.error||u("failedRestore")})}catch(a){E({type:"error",text:a.message})}finally{W(null)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/openclaw.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:Y,batchStatus:p,lastConfiguredAt:q})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:u("toolDescriptions.openclaw")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[x&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,e.jsx)("span",{children:u("checkingCli",{tool:"Open Claw"})})]}),!x&&v&&!X&&(0,e.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:v.installed?u("cliNotRunnable",{tool:"Open Claw"}):u("cliNotInstalled",{tool:"Open Claw"})}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:v.installed?u("cliFoundFailedHealthcheck",{tool:"Open Claw",reason:v.reason?` (${v.reason})`:""}):u("installCliPrompt",{tool:"Open Claw"})})]})]}),!x&&X&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[v?.settings?.models?.providers?.omniroute?.baseUrl&&(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("current")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:v.settings.models.providers.omniroute.baseUrl})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("baseUrl")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:(r=P||d).endsWith("/v1")?r:`${r}/v1`,onChange:a=>Q(a.target.value),placeholder:u("baseUrlPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),P&&P!==d&&(0,e.jsx)("button",{onClick:()=>Q(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:u("resetToDefault"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),l.length>0?(0,e.jsx)("select",{value:F,onChange:a=>G(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:o?u("noApiKeysCreateOne"):u("defaultOmnirouteKey")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("model")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:H,onChange:a=>I(a.target.value),placeholder:u("providerModelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>K(!0),disabled:!k,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${k?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:u("selectModel")}),H&&(0,e.jsx)("button",{onClick:()=>I(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:u("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),D&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===D.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===D.type?"check_circle":"error"}),(0,e.jsx)("span",{children:D.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:_,disabled:!H,loading:z,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),u("apply")]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:aa,disabled:!v?.hasOmniRoute,loading:B,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),u("reset")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>O(!0),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),u("manualConfig")]}),(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{U(!T),T||ab()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"history"}),u("backups"),R.length>0&&` (${R.length})`]})]}),T&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"history"}),u("configBackups")]}),0===R.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:u("noBackupsYet")}):(0,e.jsx)("div",{className:"space-y-1.5",children:R.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"description"}),(0,e.jsx)("span",{className:"flex-1 truncate font-mono",title:a.id,children:a.id}),(0,e.jsx)("span",{className:"text-text-muted whitespace-nowrap",children:new Date(a.createdAt).toLocaleString()}),(0,e.jsx)("button",{onClick:()=>ac(a.id),disabled:V===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:V===a.id?"...":u("restore")})]},a.id))})]})]})]}),(0,e.jsx)(g.rq,{isOpen:J,onClose:()=>K(!1),onSelect:a=>{I(a.value),K(!1)},selectedModel:H,activeProviders:n,modelAliases:L,title:u("selectModelForTool",{tool:"Open Claw"})}),(0,e.jsx)(g.uR,{isOpen:N,onClose:()=>O(!1),title:u("openClawManualConfiguration"),configs:(s=F&&F.trim()?F:o?"<API_KEY_FROM_DASHBOARD>":"sk_omniroute",t={agents:{defaults:{model:{primary:`omniroute/${H||"provider/model-id"}`}}},models:{providers:{omniroute:{baseUrl:$(),apiKey:s,api:"openai-completions",models:[{id:H||"provider/model-id",name:(H||"provider/model-id").split("/").pop()}]}}}},[{filename:"~/.openclaw/openclaw.json",content:JSON.stringify(t,null,2)}])})]})}d()}catch(a){d(a)}})},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19694:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{$n:()=>e.default,Ex:()=>k.default,G9:()=>z.default,Iz:()=>A.default,KN:()=>w.default,LF:()=>r.default,Lo:()=>x.default,Mh:()=>y.default,Qn:()=>C.default,Qv:()=>j.CardSkeleton,Zp:()=>h.default,aF:()=>i.default,bQ:()=>D.default,cn:()=>u.default,l6:()=>g.default,lM:()=>l.default,pd:()=>f.default,pp:()=>B.default,rq:()=>s.default,uR:()=>t.default,y7:()=>v.default});var e=c(53156),f=c(29518),g=c(59256),h=c(2490),i=c(65953),j=c(22746);c(45567);var k=c(4355),l=c(65472),m=c(59869),n=c(75146),o=c(51490),p=c(74771),q=c(22245),r=c(8744),s=c(29494),t=c(1237);c(82054);var u=c(62688),v=c(46230),w=c(56589),x=c(73979);c(98004);var y=c(41371);c(53140);var z=c(27309),A=c(86059);c(77088);var B=c(85974);c(18732);var C=c(67083);c(52198);var D=c(50818),E=c(35858),F=a([m,n,o,p,q,s,E]);[m,n,o,p,q,s,E]=F.then?(await F)():F,d()}catch(a){d(a)}})},25403:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>k});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(77360),j=a([g]);function k({toolId:a,tool:b,isExpanded:c,onToggle:d,baseUrl:j,apiKeys:k,activeProviders:l=[],cloudEnabled:m=!1,batchStatus:n}){let o,p,q,r=(0,i.c)("cliTools"),s=(0,f.useCallback)((a,b,c)=>{try{return r(a,c)}catch{return b}},[r]),[t,u]=(0,f.useState)(null),[v,w]=(0,f.useState)(!1),[x,y]=(0,f.useState)(""),[z,A]=(0,f.useState)(null),[B,C]=(0,f.useState)(null),[D,E]=(0,f.useState)(!1);(0,f.useRef)(!1);let[F,G]=(0,f.useState)(()=>k?.length>0?k[0].key:""),H=(0,f.useCallback)(b=>{y(b),b?localStorage.setItem(`omniroute-cli-model-${a}`,b):localStorage.removeItem(`omniroute-cli-model-${a}`)},[a]),I=(0,f.useCallback)(b=>{G(b),b&&localStorage.setItem(`omniroute-cli-key-${a}`,b)},[a]),J=a=>{let b=F&&F.trim()?F:m?r("yourApiKeyPlaceholder"):"sk_omniroute",c=j||"http://localhost:20128",d=c.endsWith("/v1")?c:`${c}/v1`;return a.replace(/\{\{baseUrl\}\}/g,d).replace(/\{\{apiKey\}\}/g,b).replace(/\{\{model\}\}/g,x||r("modelPlaceholder"))},K=async(a,b)=>{await navigator.clipboard.writeText(J(a)),u(b),setTimeout(()=>u(null),2e3)},L=l.length>0,M=c&&null===z,N=async()=>{E(!0),C(null);try{let b=F&&F.trim()?F:m?"":"sk_omniroute",c=j||"http://localhost:20128",d=c.endsWith("/v1")?c:`${c}/v1`,e=await fetch(`/api/cli-tools/guide-settings/${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:d,apiKey:b,model:x})}),f=await e.json();e.ok?C({type:"success",text:f.message||r("configurationSaved")}):C({type:"error",text:f.error||r("failedToSave")})}catch(a){C({type:"error",text:a.message})}finally{E(!1)}},O=["continue"].includes(a),P=()=>!b.requiresCloud||!!m;return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:d,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:b.image?(0,e.jsx)(h.default,{src:b.image,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}}):b.icon?(0,e.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:b.color},children:b.icon}):(0,e.jsx)(h.default,{src:`/providers/${a}.png`,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:b.name}),(o=z?.reason==="not_required"||"guide"===b.configType,p=z?z.installed&&z.runnable:n?.installed&&n?.runnable,q=z?z.installed:n?.installed,o?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-blue-500/10 text-blue-600 dark:text-blue-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-blue-500"}),r("guide")]}):p?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-green-500/10 text-green-600 dark:text-green-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-green-500"}),r("detected")]}):!1===q&&(z||n)?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-zinc-500/10 text-zinc-500 dark:text-zinc-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-zinc-400 dark:bg-zinc-500"}),r("notInstalled")]}):q&&!p&&(z||n)?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-yellow-500"}),r("notReady")]}):null)]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:s(`toolDescriptions.${a}`,b.description)})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${c?"rotate-180":""}`,children:"expand_more"})]}),c&&(0,e.jsx)("div",{className:"mt-6 pt-6 border-t border-border",children:b.guideSteps?(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[M&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-sm",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-base",children:"progress_activity"}),(0,e.jsx)("span",{children:r("checkingRuntime")})]}),!M&&z&&!z.error&&(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-blue-500/10 border border-blue-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-blue-500 text-lg",children:"not_required"===z.reason?"info":z.installed&&z.runnable?"check_circle":"warning"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm text-blue-700 dark:text-blue-300",children:"not_required"===z.reason?r("guideOnlyIntegration"):z.installed&&z.runnable?r("cliRuntimeDetected"):z.installed?r("cliFoundNotRunnable",{reason:z.reason?`: ${z.reason}`:""}):r("cliRuntimeNotDetected")}),z.commandPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[r("binary"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:z.commandPath})]}),z.configPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[r("configPath"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:z.configPath})]})]})]}),!M&&z?.error&&(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-red-500/10 border border-red-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-red-500 text-lg",children:"error"}),(0,e.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:r("failedCheckRuntimeStatus")})]}),b.notes&&0!==b.notes.length?(0,e.jsx)("div",{className:"flex flex-col gap-2 mb-4",children:b.notes.map((b,c)=>{if("cloudCheck"===b.type&&m)return null;let d="warning"===b.type,f="cloudCheck"===b.type&&!m,g="bg-blue-500/10 border-blue-500/30",h="text-blue-600 dark:text-blue-400",i="text-blue-500",j="info";return d?(g="bg-yellow-500/10 border-yellow-500/30",h="text-yellow-600 dark:text-yellow-400",i="text-yellow-500",j="warning"):f&&(g="bg-red-500/10 border-red-500/30",h="text-red-600 dark:text-red-400",i="text-red-500",j="error"),(0,e.jsxs)("div",{className:`flex items-start gap-3 p-3 rounded-lg border ${g}`,children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-lg ${i}`,children:j}),(0,e.jsx)("p",{className:`text-sm ${h}`,children:s(`guides.${a}.notes.${c}`,b.text)})]},c)})}):null,P()&&b.guideSteps.map(c=>(0,e.jsxs)("div",{className:"flex items-start gap-4",children:[(0,e.jsx)("div",{className:"size-8 rounded-full flex items-center justify-center shrink-0 text-sm font-semibold text-white",style:{backgroundColor:b.color},children:c.step}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"font-medium text-text",children:s(`guides.${a}.steps.${c.step}.title`,c.title)}),c.desc&&(0,e.jsx)("p",{className:"text-sm text-text-muted mt-0.5",children:s(`guides.${a}.steps.${c.step}.desc`,c.desc)}),"apiKeySelector"===c.type&&(0,e.jsx)("div",{className:"mt-2 flex items-center gap-2",children:k&&k.length>0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("select",{value:F,onChange:a=>I(a.target.value),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:k.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}),(0,e.jsx)("button",{onClick:()=>K(F,"apiKey"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:"apiKey"===t?"check":"content_copy"})})]}):(0,e.jsx)("span",{className:"text-sm text-text-muted",children:m?r("noApiKeysCreateOne"):"sk_omniroute"})}),"modelSelector"===c.type&&(0,e.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",value:x,onChange:a=>H(a.target.value),placeholder:r("modelPlaceholder"),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>w(!0),disabled:!L,className:`shrink-0 px-3 py-2 rounded-lg border text-sm transition-colors ${L?"bg-bg-secondary border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:r("selectModel")}),x&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{onClick:()=>K(x,"model"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:"model"===t?"check":"content_copy"})}),(0,e.jsx)("button",{onClick:()=>H(""),className:"p-2 text-text-muted hover:text-red-500 rounded transition-colors",title:r("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]})]}),c.value&&(0,e.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,e.jsx)("code",{className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm font-mono border border-border truncate",children:J(c.value)}),c.copyable&&(0,e.jsx)("button",{onClick:()=>K(c.value,`${c.step}-${c.title}`),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:t===`${c.step}-${c.title}`?"check":"content_copy"})})]})]})]},c.step)),P()&&b.codeBlock&&(0,e.jsxs)("div",{className:"mt-2",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wide",children:b.codeBlock.language}),(0,e.jsxs)("button",{onClick:()=>K(b.codeBlock.code,"codeblock"),className:"flex items-center gap-1 px-2 py-1 text-xs bg-bg-secondary hover:bg-bg-tertiary rounded border border-border transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"codeblock"===t?"check":"content_copy"}),"codeblock"===t?r("copied"):r("copy")]})]}),(0,e.jsx)("pre",{className:"p-4 bg-bg-secondary rounded-lg border border-border overflow-x-auto",children:(0,e.jsx)("code",{className:"text-sm font-mono whitespace-pre",children:J(b.codeBlock.code)})})]}),P()&&(0,e.jsxs)("div",{className:"mt-2",children:[B&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs mb-2 ${"success"===B.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===B.type?"check_circle":"error"}),(0,e.jsx)("span",{children:B.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[O&&(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:N,disabled:!x,loading:D,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),r("saveConfig")]}),b.codeBlock&&(0,e.jsxs)(g.$n,{variant:O?"outline":"primary",size:"sm",onClick:()=>K(b.codeBlock.code,"codeblock"),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"codeblock"===t?"check":"content_copy"}),"codeblock"===t?r("copied"):r("copyConfig")]}),x&&(0,e.jsxs)("span",{className:"text-xs text-text-muted flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-green-500",children:"check_circle"}),r("selectionSaved")]})]})]})]}):(0,e.jsx)("p",{className:"text-text-muted text-sm",children:r("comingSoon")})}),(0,e.jsx)(g.rq,{isOpen:v,onClose:()=>w(!1),onSelect:a=>{H(a.value)},selectedModel:x,activeProviders:l,title:r("selectModel")})]})}g=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34249:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);g=(k.then?(await k)():k)[0];let m="https://cloud.omniroute.online";function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,hasActiveProviders:k,apiKeys:l,activeProviders:n,cloudEnabled:o,batchStatus:p,lastConfiguredAt:q}){let r=(0,j.c)("cliTools"),[s,t]=(0,f.useState)(null),[u,v]=(0,f.useState)(!1),[w,x]=(0,f.useState)(!1),[y,z]=(0,f.useState)(!1),[A,B]=(0,f.useState)(null),[C,D]=(0,f.useState)(""),[E,F]=(0,f.useState)(""),[G,H]=(0,f.useState)(!1),[I,J]=(0,f.useState)({}),[K,L]=(0,f.useState)(!1),[M,N]=(0,f.useState)(""),O=(0,f.useRef)(!1),[P,Q]=(0,f.useState)([]),[R,S]=(0,f.useState)(!1),[T,U]=(0,f.useState)(null),V=!!(s?.installed&&s?.runnable),W=(()=>{if(!V)return null;if(!s.hasOmniRoute)return"not_configured";let a=s.settings?.openAiBaseUrl||"",b=a.includes("localhost")||a.includes("127.0.0.1"),c=o&&m&&a.startsWith(m);return b||c?"configured":"other"})(),X=W||p?.configStatus||null,Y=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=cline");if(a.ok){let b=await a.json();Q(b.backups||[])}}catch{}},Z=async a=>{U(a);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"cline",backupId:a})});if(b.ok)B({type:"success",text:r("backupRestoredReloading")}),await $(),await Y();else{let a=await b.json();B({type:"error",text:a.error||r("failedRestoreBackup")})}}catch(a){B({type:"error",text:a.message})}finally{U(null)}},$=async()=>{v(!0);try{let a=await fetch("/api/cli-tools/cline-settings"),b=await a.json();t(b)}catch(a){t({error:a.message})}finally{v(!1)}},_=async()=>{x(!0),B(null);try{let a=M||d||"http://localhost:20128",b=a.endsWith("/v1")?a:`${a}/v1`,c=await fetch("/api/cli-tools/cline-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:b,apiKey:C||"sk_omniroute",model:E})}),e=await c.json();c.ok?(B({type:"success",text:e.message||r("applied")}),await $(),await Y()):B({type:"error",text:e.error||r("failed")})}catch(a){B({type:"error",text:a.message})}finally{x(!1)}},aa=async()=>{z(!0),B(null);try{let a=await fetch("/api/cli-tools/cline-settings",{method:"DELETE"}),b=await a.json();a.ok?(B({type:"success",text:b.message||r("resetDone")}),F(""),O.current=!1,await $(),await Y()):B({type:"error",text:b.error||r("failed")})}catch(a){B({type:"error",text:a.message})}finally{z(!1)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:a.image?(0,e.jsx)(h.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}}):(0,e.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:a.color},children:"terminal"})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:X,batchStatus:p,lastConfiguredAt:q})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:r("toolDescriptions.cline")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-6 pt-6 border-t border-border",children:[u&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-sm",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-base",children:"progress_activity"}),(0,e.jsx)("span",{children:r("checkingCli",{tool:"Cline"})})]}),s&&!u&&(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg border bg-bg-secondary/50 border-border",children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-lg ${V?"text-green-500":"text-yellow-500"}`,children:V?"check_circle":"warning"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm font-medium",children:V?r("cliDetectedReady",{tool:"Cline"}):s.installed?r("cliNotRunnable",{tool:"Cline"}):r("cliNotDetected",{tool:"Cline"})}),s.commandPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[r("binary"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:s.commandPath})]}),s.globalStatePath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[r("configPathShort"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:s.globalStatePath})]})]})]}),V&&(0,e.jsxs)(e.Fragment,{children:["configured"===W&&(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-green-500/10 border border-green-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-green-500 text-lg",children:"check_circle"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm text-green-700 dark:text-green-300",children:r("omnirouteConfiguredOpenAiCompatible")}),(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[r("provider"),": ",(0,e.jsx)("strong",{children:"openai"})," • ",r("model"),":"," ",(0,e.jsx)("strong",{children:s.settings?.openAiModelId||"—"})]})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("label",{className:"text-sm text-text-muted",children:r("model")}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",value:E,onChange:a=>F(a.target.value),placeholder:r("providerModelPlaceholder"),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)(g.$n,{variant:"outline",size:"sm",onClick:()=>H(!0),disabled:!k,children:r("select")}),(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>L(!0),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"edit"})})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("label",{className:"text-sm text-text-muted",children:r("apiKey")}),l&&l.length>0?(0,e.jsx)("select",{value:C,onChange:a=>D(a.target.value),className:"px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("p",{className:"text-sm text-text-muted",children:o?r("noApiKeysAvailable"):r("usingDefaultOmniroute")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:_,disabled:!E,loading:w,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"configured"===W?r("updateConfig"):r("applyConfig")]}),"configured"===W&&(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:aa,loading:y,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restart_alt"}),r("reset")]})]}),A&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm ${"success"===A.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"success"===A.type?"check_circle":"error"}),(0,e.jsx)("span",{children:A.text})]}),(0,e.jsxs)("div",{className:"border-t border-border pt-3 mt-1",children:[(0,e.jsxs)("button",{onClick:()=>S(!R),className:"flex items-center gap-2 text-sm text-text-muted hover:text-text transition-colors",children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-[16px] transition-transform ${R?"rotate-90":""}`,children:"chevron_right"}),(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"backup"}),r("backups")," ",P.length>0&&`(${P.length})`]}),R&&P.length>0&&(0,e.jsx)("div",{className:"mt-2 flex flex-col gap-1.5 pl-6",children:P.map(a=>(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2 p-2 rounded bg-bg-secondary/50 text-xs",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("span",{className:"font-medium",children:a.originalFile}),(0,e.jsx)("span",{className:"text-text-muted",children:new Date(a.createdAt).toLocaleString()})]}),(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>Z(a.id),loading:T===a.id,children:r("restore")})]},a.id))}),R&&0===P.length&&(0,e.jsx)("p",{className:"mt-2 pl-6 text-xs text-text-muted",children:r("noBackupsAvailable")})]})]})]})]}),(0,e.jsx)(g.rq,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{F(a.value),H(!1)},selectedModel:E,activeProviders:n,title:r("selectModelForTool",{tool:"Cline"})}),K&&(0,e.jsx)(g.uR,{isOpen:K,onClose:()=>L(!1),title:r("clineManualConfiguration"),...{onApply:a=>{a.model&&F(a.model),a.apiKey&&D(a.apiKey),a.baseUrl&&N(a.baseUrl),L(!1)},currentConfig:{model:E,apiKey:C,baseUrl:M||d}}})]})}d()}catch(a){d(a)}})},35858:(a,b,c)=>{"use strict";c.a(a,async(a,b)=>{try{var d=c(53280),e=c(16116),f=a([d,e]);[d,e]=f.then?(await f)():f,b()}catch(a){b(a)}})},35987:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(48249),e=c(77360),f=c(89400);function g({effectiveConfigStatus:a,batchStatus:b,lastConfiguredAt:c=null}){let g=(0,e.c)("cliTools"),h=(0,f.Ym)(),i=a||b?.configStatus||null,j={configured:{dotClass:"bg-green-500",badgeClass:"bg-green-500/10 text-green-600 dark:text-green-400",text:g("configured")},not_configured:{dotClass:"bg-yellow-500",badgeClass:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",text:g("notConfigured")},not_installed:{dotClass:"bg-zinc-400 dark:bg-zinc-500",badgeClass:"bg-zinc-500/10 text-zinc-500 dark:text-zinc-400",text:g("notInstalled")},other:{dotClass:"bg-blue-500",badgeClass:"bg-blue-500/10 text-blue-600 dark:text-blue-400",text:g("custom")},unknown:{dotClass:"bg-zinc-400 dark:bg-zinc-500",badgeClass:"bg-zinc-500/10 text-zinc-500 dark:text-zinc-400",text:g("unknown")}},k=i?j[i]||j.unknown:null;return(0,d.jsxs)(d.Fragment,{children:[k&&(0,d.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full ${k.badgeClass}`,children:[(0,d.jsx)("span",{className:`size-1.5 rounded-full ${k.dotClass}`}),k.text]}),c?(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 text-[10px] text-text-muted",title:g("lastSavedAt",{date:new Date(c).toLocaleString(h)}),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"schedule"}),function(a,b){let c=Date.now()-new Date(a).getTime();if(c<0)return b("justNow");let d=Math.floor(c/1e3);if(d<60)return b("justNow");let e=Math.floor(d/60);if(e<60)return b("minutesAgoShort",{count:e});let f=Math.floor(e/60);if(f<24)return b("hoursAgoShort",{count:f});let g=Math.floor(f/24);if(g<30)return b("daysAgoShort",{count:g});let h=Math.floor(g/30);return h<12?b("monthsAgoShort",{count:h}):b("yearsAgoShort",{count:Math.floor(h/12)})}(c,g)]}):i&&"not_installed"!==i?(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 text-[10px] text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"schedule"}),g("never")]}):null]})}},37308:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/diegosouzapw/dev/proxys/9router/src/app/(dashboard)/dashboard/cli-tools/CLIToolsPageClient.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/diegosouzapw/dev/proxys/9router/src/app/(dashboard)/dashboard/cli-tools/CLIToolsPageClient.tsx","default")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},42971:a=>{"use strict";a.exports=import("zod")},43482:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(5735),e=c(53048),f=c(37308);async function g(){let a=await (0,e.D1)();return(0,d.jsx)(f.default,{machineId:a})}},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},46846:(a,b,c)=>{Promise.resolve().then(c.bind(c,68690))},48161:a=>{"use strict";a.exports=require("node:os")},48541:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,apiKeys:k,activeProviders:l,cloudEnabled:m,batchStatus:n,lastConfiguredAt:o}){let p,q,r,s,t,u=(0,j.c)("cliTools"),[v,w]=(0,f.useState)(null),[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(!1),[D,E]=(0,f.useState)(null),[F,G]=(0,f.useState)(!1),[H,I]=(0,f.useState)(""),[J,K]=(0,f.useState)(""),[L,M]=(0,f.useState)(!1),[N,O]=(0,f.useState)({}),[P,Q]=(0,f.useState)(!1),[R,S]=(0,f.useState)(""),[T,U]=(0,f.useState)([]),[V,W]=(0,f.useState)(!1),[X,Y]=(0,f.useState)(""),[Z,$]=(0,f.useState)(!1),[_,aa]=(0,f.useState)(null),[ab,ac]=(0,f.useState)([]),[ad,ae]=(0,f.useState)(!1),[af,ag]=(0,f.useState)(null),ah=!!(v?.installed&&v?.runnable),ai=(ah?v.config?v.config.includes(d)||v.config.includes("localhost")||v.config.includes("127.0.0.1")?"configured":"other":"not_configured":null)||n?.configStatus||null,aj=()=>{let a=R||`${d}/v1`;return a.endsWith("/v1")?a:`${a}/v1`},ak=async()=>{y(!0);try{let a=await fetch("/api/cli-tools/codex-settings"),b=await a.json();w(b)}catch(a){w({installed:!1,error:a.message})}finally{y(!1)}},al=async()=>{A(!0),E(null);try{let a=H&&H.trim()||m?H:"sk_omniroute",b=await fetch("/api/cli-tools/codex-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:aj(),apiKey:a,model:J})}),c=await b.json();b.ok?(E({type:"success",text:u("settingsApplied")}),ak()):E({type:"error",text:c.error||u("failedApplySettings")})}catch(a){E({type:"error",text:a.message})}finally{A(!1)}},am=async()=>{C(!0),E(null);try{let a=await fetch("/api/cli-tools/codex-settings",{method:"DELETE"}),b=await a.json();a.ok?(E({type:"success",text:u("settingsReset")}),K(""),ak()):E({type:"error",text:b.error||u("failedResetSettings")})}catch(a){E({type:"error",text:a.message})}finally{C(!1)}},an=async()=>{try{let a=await fetch("/api/cli-tools/codex-profiles"),b=await a.json();a.ok&&U(b.profiles||[])}catch(a){console.log("Error fetching profiles:",a)}},ao=async()=>{if(X.trim()){$(!0),E(null);try{let a=await fetch("/api/cli-tools/codex-profiles",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:X.trim()})}),b=await a.json();a.ok?(E({type:"success",text:u("profileSaved",{name:X})}),Y(""),an()):E({type:"error",text:b.error||u("failedSaveProfile")})}catch(a){E({type:"error",text:a.message})}finally{$(!1)}}},ap=async a=>{aa(a),E(null);try{let b=await fetch("/api/cli-tools/codex-profiles",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({profileId:a})}),c=await b.json();b.ok?(E({type:"success",text:c.message||u("profileActivated")}),ak(),ar()):E({type:"error",text:c.error||u("failedActivateProfile")})}catch(a){E({type:"error",text:a.message})}finally{aa(null)}},aq=async a=>{try{(await fetch("/api/cli-tools/codex-profiles",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({profileId:a})})).ok&&an()}catch(a){console.log("Error deleting profile:",a)}},ar=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=codex"),b=await a.json();a.ok&&ac(b.backups||[])}catch(a){console.log("Error fetching backups:",a)}},as=async a=>{ag(a),E(null);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"codex",backupId:a})}),c=await b.json();b.ok?(E({type:"success",text:u("backupRestored")}),ak(),ar()):E({type:"error",text:c.error||u("failedRestore")})}catch(a){E({type:"error",text:a.message})}finally{ag(null)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/codex.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:ai,batchStatus:n,lastConfiguredAt:o})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:u("toolDescriptions.codex")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[x&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,e.jsx)("span",{children:u("checkingCli",{tool:"Codex"})})]}),!x&&v&&!ah&&(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:v.installed?u("cliNotRunnable",{tool:"Codex"}):u("cliNotInstalled",{tool:"Codex"})}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:v.installed?u("cliFoundFailedHealthcheck",{tool:"Codex",reason:v.reason?` (${v.reason})`:""}):u("installCodexPrompt")})]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:()=>G(!F),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px] mr-1",children:F?"expand_less":"help"}),F?u("hide"):u("howToInstall")]})]}),F&&(0,e.jsxs)("div",{className:"p-4 bg-surface border border-border rounded-lg",children:[(0,e.jsx)("h4",{className:"font-medium mb-3",children:u("installationGuide")}),(0,e.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-text-muted mb-1",children:u("platforms")}),(0,e.jsx)("code",{className:"block px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs",children:"npm install -g @openai/codex"})]}),(0,e.jsxs)("p",{className:"text-text-muted",children:[u("afterInstallationRun")," ",(0,e.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"codex"})," ",u("toVerify")]}),(0,e.jsx)("div",{className:"pt-2 border-t border-border",children:(0,e.jsxs)("p",{className:"text-text-muted text-xs",children:[u("codexAuthNotePrefix")," ",(0,e.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"~/.codex/auth.json"})," ",u("codexAuthNoteMiddle")," ",(0,e.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"OPENAI_API_KEY"}),". ",u("codexAuthNoteSuffix")]})})]})]})]}),!x&&ah&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[v?.config&&((q=(p=v.config.match(/base_url\s*=\s*"([^"]+)"/))?p[1]:null)?(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("current")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:q})]}):null),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("baseUrl")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:R||`${d}/v1`,onChange:a=>S(a.target.value),placeholder:u("baseUrlPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),R&&R!==`${d}/v1`&&(0,e.jsx)("button",{onClick:()=>S(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:u("resetToDefault"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),k.length>0?(0,e.jsx)("select",{value:H,onChange:a=>I(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:k.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:m?u("noApiKeysCreateOne"):u("defaultOmnirouteKey")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("model")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:J,onChange:a=>K(a.target.value),placeholder:u("providerModelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>M(!0),disabled:!l?.length,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${l?.length?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:u("selectModel")}),J&&(0,e.jsx)("button",{onClick:()=>K(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:u("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),D&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===D.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===D.type?"check_circle":"error"}),(0,e.jsx)("span",{children:D.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:al,disabled:!H||!J,loading:z,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),u("apply")]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:am,disabled:!v.hasOmniRoute,loading:B,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),u("reset")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>Q(!0),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),u("manualConfig")]}),(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{W(!V),V||an()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"manage_accounts"}),u("profiles")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{ae(!ad),ad||ar()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"history"}),u("backups"),ab.length>0&&` (${ab.length})`]})]}),V&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"manage_accounts"}),u("savedProfiles")]}),0===T.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:u("noProfilesYet")}):(0,e.jsx)("div",{className:"space-y-1.5 mb-3",children:T.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"person"}),(0,e.jsx)("span",{className:"font-medium flex-1 truncate",children:a.name}),(0,e.jsx)("span",{className:"text-text-muted truncate max-w-[140px]",title:a.authLabel,children:a.authLabel}),(0,e.jsx)("button",{onClick:()=>ap(a.id),disabled:_===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:_===a.id?"...":u("activate")}),(0,e.jsx)("button",{onClick:()=>aq(a.id),className:"p-0.5 text-text-muted hover:text-red-500 transition-colors",title:u("deleteProfile"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"delete"})})]},a.id))}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",value:X,onChange:a=>Y(a.target.value),placeholder:u("profileNamePlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50",onKeyDown:a=>"Enter"===a.key&&ao()}),(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:ao,disabled:!X.trim(),loading:Z,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),u("saveCurrent")]})]})]}),ad&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"history"}),u("configBackups")]}),0===ab.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:u("noBackupsYet")}):(0,e.jsx)("div",{className:"space-y-1.5",children:ab.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"description"}),(0,e.jsx)("span",{className:"flex-1 truncate font-mono",title:a.id,children:a.id}),(0,e.jsx)("span",{className:"text-text-muted whitespace-nowrap",children:new Date(a.createdAt).toLocaleString()}),(0,e.jsx)("button",{onClick:()=>as(a.id),disabled:af===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:af===a.id?"...":u("restore")})]},a.id))})]})]})]}),(0,e.jsx)(g.rq,{isOpen:L,onClose:()=>M(!1),onSelect:a=>{K(a.value),M(!1)},selectedModel:J,activeProviders:l,modelAliases:N,title:u("selectModelForTool",{tool:"Codex"})}),(0,e.jsx)(g.uR,{isOpen:P,onClose:()=>Q(!1),title:u("codexManualConfiguration"),configs:(r=H&&H.trim()?H:m?"<API_KEY_FROM_DASHBOARD>":"sk_omniroute",s=`# OmniRoute Configuration for Codex CLI
|
|
1
|
+
(()=>{var a={};a.id=2326,a.ids=[2326],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},6568:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Ah:()=>f.A,Pl:()=>l.A,Tk:()=>e.A,ZM:()=>g.A,a7:()=>k.A,aG:()=>i.A,c9:()=>j.A,h1:()=>m.A,yZ:()=>h.A});var e=c(10500),f=c(48541),g=c(7294),h=c(18571),i=c(34249),j=c(96877),k=c(25403),l=c(67106),m=c(82652),n=a([e,f,g,h,i,j,k,l,m]);[e,f,g,h,i,j,k,l,m]=n.then?(await n)():n,d()}catch(a){d(a)}})},7294:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);g=(k.then?(await k)():k)[0];let m="https://cloud.omniroute.online";function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,hasActiveProviders:k,apiKeys:l,activeProviders:n,cloudEnabled:o,batchStatus:p,lastConfiguredAt:q}){let r,s,t,u,v=(0,j.c)("cliTools"),[w,x]=(0,f.useState)(null),[y,z]=(0,f.useState)(!1),[A,B]=(0,f.useState)(!1),[C,D]=(0,f.useState)(!1),[E,F]=(0,f.useState)(null),[G,H]=(0,f.useState)(""),[I,J]=(0,f.useState)(""),[K,L]=(0,f.useState)(!1),[M,N]=(0,f.useState)({}),[O,P]=(0,f.useState)(!1),[Q,R]=(0,f.useState)("");(0,f.useRef)(!1);let[S,T]=(0,f.useState)([]),[U,V]=(0,f.useState)(!1),[W,X]=(0,f.useState)(null),Y=!!(w?.installed&&w?.runnable),Z=(()=>{if(!Y)return null;let a=w.settings?.customModels?.find(a=>"custom:OmniRoute-0"===a.id);if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1"),c=o&&m&&a.baseUrl?.startsWith(m);return b||c?"configured":"other"})()||p?.configStatus||null,$=async()=>{z(!0);try{let a=await fetch("/api/cli-tools/droid-settings"),b=await a.json();x(b)}catch(a){x({installed:!1,error:a.message})}finally{z(!1)}},_=()=>{let a=Q||d;return a.endsWith("/v1")?a:`${a}/v1`},aa=async()=>{B(!0),F(null);try{let a=G?.trim()||(l?.length>0?l[0].key:null)||(o?null:"sk_omniroute"),b=await fetch("/api/cli-tools/droid-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:_(),apiKey:a,model:I})}),c=await b.json();b.ok?(F({type:"success",text:v("settingsApplied")}),$()):F({type:"error",text:c.error||v("failedApplySettings")})}catch(a){F({type:"error",text:a.message})}finally{B(!1)}},ab=async()=>{D(!0),F(null);try{let a=await fetch("/api/cli-tools/droid-settings",{method:"DELETE"}),b=await a.json();a.ok?(F({type:"success",text:v("settingsReset")}),J(""),H(""),$()):F({type:"error",text:b.error||v("failedResetSettings")})}catch(a){F({type:"error",text:a.message})}finally{D(!1)}},ac=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=droid"),b=await a.json();a.ok&&T(b.backups||[])}catch(a){console.log("Error fetching backups:",a)}},ad=async a=>{X(a),F(null);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"droid",backupId:a})}),c=await b.json();b.ok?(F({type:"success",text:v("backupRestored")}),$(),ac()):F({type:"error",text:c.error||v("failedRestore")})}catch(a){F({type:"error",text:a.message})}finally{X(null)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/droid.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:Z,batchStatus:p,lastConfiguredAt:q})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:v("toolDescriptions.droid")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[y&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,e.jsx)("span",{children:v("checkingCli",{tool:"Factory Droid"})})]}),!y&&w&&!Y&&(0,e.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:w.installed?v("cliNotRunnable",{tool:"Factory Droid"}):v("cliNotInstalled",{tool:"Factory Droid"})}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:w.installed?v("cliFoundFailedHealthcheck",{tool:"Factory Droid",reason:w.reason?` (${w.reason})`:""}):v("installCliPrompt",{tool:"Factory Droid"})})]})]}),!y&&Y&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[w?.settings?.customModels?.find(a=>"custom:OmniRoute-0"===a.id)?.baseUrl&&(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:v("current")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:w.settings.customModels.find(a=>"custom:OmniRoute-0"===a.id).baseUrl})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:v("baseUrl")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:(r=Q||d).endsWith("/v1")?r:`${r}/v1`,onChange:a=>R(a.target.value),placeholder:v("baseUrlPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),Q&&Q!==d&&(0,e.jsx)("button",{onClick:()=>R(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:v("resetToDefault"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:v("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),l.length>0?(0,e.jsx)("select",{value:G,onChange:a=>H(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:o?v("noApiKeysCreateOne"):v("defaultOmnirouteKey")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:v("model")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:I,onChange:a=>J(a.target.value),placeholder:v("providerModelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>L(!0),disabled:!k,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${k?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:v("selectModel")}),I&&(0,e.jsx)("button",{onClick:()=>J(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:v("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),E&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===E.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===E.type?"check_circle":"error"}),(0,e.jsx)("span",{children:E.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:aa,disabled:!I,loading:A,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),v("apply")]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:ab,disabled:!w?.hasOmniRoute,loading:C,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),v("reset")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>P(!0),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),v("manualConfig")]}),(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{V(!U),U||ac()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"history"}),v("backups"),S.length>0&&` (${S.length})`]})]}),U&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"history"}),v("configBackups")]}),0===S.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:v("noBackupsYet")}):(0,e.jsx)("div",{className:"space-y-1.5",children:S.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"description"}),(0,e.jsx)("span",{className:"flex-1 truncate font-mono",title:a.id,children:a.id}),(0,e.jsx)("span",{className:"text-text-muted whitespace-nowrap",children:new Date(a.createdAt).toLocaleString()}),(0,e.jsx)("button",{onClick:()=>ad(a.id),disabled:W===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:W===a.id?"...":v("restore")})]},a.id))})]})]})]}),(0,e.jsx)(g.rq,{isOpen:K,onClose:()=>L(!1),onSelect:a=>{J(a.value),L(!1)},selectedModel:I,activeProviders:n,modelAliases:M,title:v("selectModelForTool",{tool:"Factory Droid"})}),(0,e.jsx)(g.uR,{isOpen:O,onClose:()=>P(!1),title:v("droidManualConfiguration"),configs:(s=G&&G.trim()?G:o?"<API_KEY_FROM_DASHBOARD>":"sk_omniroute",t={customModels:[{model:I||"provider/model-id",id:"custom:OmniRoute-0",index:0,baseUrl:_(),apiKey:s,displayName:I||"provider/model-id",maxOutputTokens:131072,noImageSupport:!1,provider:"openai"}]},u="u">typeof navigator&&navigator.platform,[{filename:u?.toLowerCase().includes("win")?"%USERPROFILE%\\.factory\\settings.json":"~/.factory/settings.json",content:JSON.stringify(t,null,2)}])})]})}d()}catch(a){d(a)}})},10500:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);g=(k.then?(await k)():k)[0];let m="https://cloud.omniroute.online";function l({tool:a,isExpanded:b,onToggle:c,activeProviders:d,modelMappings:k,onModelMappingChange:l,baseUrl:n,hasActiveProviders:o,apiKeys:p,cloudEnabled:q,batchStatus:r,lastConfiguredAt:s}){let t,u,v,w=(0,j.c)("cliTools"),[x,y]=(0,f.useState)(null),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(!1),[D,E]=(0,f.useState)(!1),[F,G]=(0,f.useState)(null),[H,I]=(0,f.useState)(!1),[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)(null),[N,O]=(0,f.useState)(""),[P,Q]=(0,f.useState)({}),[R,S]=(0,f.useState)(!1),[T,U]=(0,f.useState)("");(0,f.useRef)(!1);let[V,W]=(0,f.useState)([]),[X,Y]=(0,f.useState)(!1),[Z,$]=(0,f.useState)(null),_=!!(x?.installed&&x?.runnable),aa=(()=>{if(!_)return null;let a=x.settings?.env?.ANTHROPIC_BASE_URL;if(!a)return"not_configured";let b=a.includes("localhost")||a.includes("127.0.0.1"),c=q&&m&&a.startsWith(m);return b||c?"configured":"other"})()||r?.configStatus||null,ab=async()=>{A(!0);try{let a=await fetch("/api/cli-tools/claude-settings"),b=await a.json();y(b)}catch(a){y({installed:!1,error:a.message})}finally{A(!1)}},ac=()=>{let a=T||n;return a.endsWith("/v1")?a:`${a}/v1`},ad=async()=>{C(!0),G(null);try{let b={ANTHROPIC_BASE_URL:ac()},c=N?.trim()||(p?.length>0?p[0].key:null)||(q?null:"sk_omniroute");c&&(b.ANTHROPIC_AUTH_TOKEN=c),a.defaultModels.forEach(a=>{let c=k[a.alias];c&&a.envKey&&(b[a.envKey]=c)});let d=await fetch("/api/cli-tools/claude-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({env:b})}),e=await d.json();d.ok?(G({type:"success",text:w("settingsApplied")}),y(a=>({...a,hasBackup:!0,settings:{...a?.settings,env:b}}))):G({type:"error",text:e.error||w("failedApplySettings")})}catch(a){G({type:"error",text:a.message})}finally{C(!1)}},ae=async()=>{E(!0),G(null);try{let b=await fetch("/api/cli-tools/claude-settings",{method:"DELETE"}),c=await b.json();b.ok?(G({type:"success",text:w("settingsReset")}),a.defaultModels.forEach(a=>l(a.alias,a.defaultValue||"")),O("")):G({type:"error",text:c.error||w("failedResetSettings")})}catch(a){G({type:"error",text:a.message})}finally{E(!1)}},af=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=claude"),b=await a.json();a.ok&&W(b.backups||[])}catch(a){console.log("Error fetching backups:",a)}},ag=async a=>{$(a),G(null);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"claude",backupId:a})}),c=await b.json();b.ok?(G({type:"success",text:w("backupRestored")}),ab(),af()):G({type:"error",text:c.error||w("failedRestore")})}catch(a){G({type:"error",text:a.message})}finally{$(null)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/claude.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:aa,batchStatus:r,lastConfiguredAt:s})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:w("toolDescriptions.claude")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[z&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,e.jsx)("span",{children:w("checkingCli",{tool:"Claude"})})]}),!z&&x&&!_&&(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:x.installed?w("cliNotRunnable",{tool:"Claude"}):w("cliNotInstalled",{tool:"Claude"})}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:x.installed?w("cliFoundFailedHealthcheck",{tool:"Claude",reason:x.reason?` (${x.reason})`:""}):w("installCliPrompt",{tool:"Claude"})})]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:()=>I(!H),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px] mr-1",children:H?"expand_less":"help"}),H?w("hide"):w("howToInstall")]})]}),H&&(0,e.jsxs)("div",{className:"p-4 bg-surface border border-border rounded-lg",children:[(0,e.jsx)("h4",{className:"font-medium mb-3",children:w("installationGuide")}),(0,e.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-text-muted mb-1",children:w("platforms")}),(0,e.jsx)("code",{className:"block px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs",children:"npm install -g @anthropic-ai/claude-code"})]}),(0,e.jsxs)("p",{className:"text-text-muted",children:[w("afterInstallationRun")," ",(0,e.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"claude"})," ",w("toVerify")]})]})]})]}),!z&&_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[x?.settings?.env?.ANTHROPIC_BASE_URL&&(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:w("current")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:x.settings.env.ANTHROPIC_BASE_URL})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:w("baseUrl")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:(t=T||n).endsWith("/v1")?t:`${t}/v1`,onChange:a=>U(a.target.value),placeholder:w("baseUrlPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),T&&T!==n&&(0,e.jsx)("button",{onClick:()=>U(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:w("resetToDefault"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:w("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),p.length>0?(0,e.jsx)("select",{value:N,onChange:a=>O(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:p.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:q?w("noApiKeysCreateOne"):w("defaultOmnirouteKey")})]}),a.defaultModels.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:a.name}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:k[a.alias]||"",onChange:b=>l(a.alias,b.target.value),placeholder:w("providerModelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>{var b;return b=a.alias,void(M(b),K(!0))},disabled:!o,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${o?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:w("selectModel")}),k[a.alias]&&(0,e.jsx)("button",{onClick:()=>l(a.alias,""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:w("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias))]}),F&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===F.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===F.type?"check_circle":"error"}),(0,e.jsx)("span",{children:F.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:ad,disabled:!o,loading:B,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),w("apply")]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:ae,disabled:!x?.hasOmniRoute,loading:D,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),w("reset")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>S(!0),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),w("manualConfig")]}),(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{Y(!X),X||af()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"history"}),w("backups"),V.length>0&&` (${V.length})`]})]}),X&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"history"}),w("configBackups")]}),0===V.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:w("noBackupsYet")}):(0,e.jsx)("div",{className:"space-y-1.5",children:V.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"description"}),(0,e.jsx)("span",{className:"flex-1 truncate font-mono",title:a.id,children:a.id}),(0,e.jsx)("span",{className:"text-text-muted whitespace-nowrap",children:new Date(a.createdAt).toLocaleString()}),(0,e.jsx)("button",{onClick:()=>ag(a.id),disabled:Z===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:Z===a.id?"...":w("restore")})]},a.id))})]})]})]}),(0,e.jsx)(g.rq,{isOpen:J,onClose:()=>K(!1),onSelect:a=>{L&&l(L,a.value)},selectedModel:L?k[L]:null,activeProviders:d,modelAliases:P,title:w("selectModelForAlias",{alias:L||""})}),(0,e.jsx)(g.uR,{isOpen:R,onClose:()=>S(!1),title:w("claudeManualConfiguration"),configs:(u=N&&N.trim()?N:q?"<API_KEY_FROM_DASHBOARD>":"sk_omniroute",v={ANTHROPIC_BASE_URL:ac(),ANTHROPIC_AUTH_TOKEN:u},a.defaultModels.forEach(a=>{let b=k[a.alias];b&&a.envKey&&(v[a.envKey]=b)}),[{filename:"~/.claude/settings.json",content:JSON.stringify({env:v},null,2)}])})]})}d()}catch(a){d(a)}})},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18571:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);g=(k.then?(await k)():k)[0];let m="https://cloud.omniroute.online";function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,hasActiveProviders:k,apiKeys:l,activeProviders:n,cloudEnabled:o,batchStatus:p,lastConfiguredAt:q}){let r,s,t,u=(0,j.c)("cliTools"),[v,w]=(0,f.useState)(null),[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(!1),[D,E]=(0,f.useState)(null),[F,G]=(0,f.useState)(""),[H,I]=(0,f.useState)(""),[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)({}),[N,O]=(0,f.useState)(!1),[P,Q]=(0,f.useState)("");(0,f.useRef)(!1);let[R,S]=(0,f.useState)([]),[T,U]=(0,f.useState)(!1),[V,W]=(0,f.useState)(null),X=!!(v?.installed&&v?.runnable),Y=(()=>{if(!X)return null;let a=v.settings?.models?.providers?.omniroute;if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1"),c=o&&m&&a.baseUrl?.startsWith(m);return b||c?"configured":"other"})()||p?.configStatus||null,Z=async()=>{y(!0);try{let a=await fetch("/api/cli-tools/openclaw-settings"),b=await a.json();w(b)}catch(a){w({installed:!1,error:a.message})}finally{y(!1)}},$=()=>{let a=P||d;return a.endsWith("/v1")?a:`${a}/v1`},_=async()=>{A(!0),E(null);try{let a=F?.trim()||(l?.length>0?l[0].key:null)||(o?null:"sk_omniroute"),b=await fetch("/api/cli-tools/openclaw-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:$(),apiKey:a,model:H})}),c=await b.json();b.ok?(E({type:"success",text:u("settingsApplied")}),Z()):E({type:"error",text:c.error||u("failedApplySettings")})}catch(a){E({type:"error",text:a.message})}finally{A(!1)}},aa=async()=>{C(!0),E(null);try{let a=await fetch("/api/cli-tools/openclaw-settings",{method:"DELETE"}),b=await a.json();a.ok?(E({type:"success",text:u("settingsReset")}),I(""),G(""),Z()):E({type:"error",text:b.error||u("failedResetSettings")})}catch(a){E({type:"error",text:a.message})}finally{C(!1)}},ab=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=openclaw"),b=await a.json();a.ok&&S(b.backups||[])}catch(a){console.log("Error fetching backups:",a)}},ac=async a=>{W(a),E(null);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"openclaw",backupId:a})}),c=await b.json();b.ok?(E({type:"success",text:u("backupRestored")}),Z(),ab()):E({type:"error",text:c.error||u("failedRestore")})}catch(a){E({type:"error",text:a.message})}finally{W(null)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/openclaw.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:Y,batchStatus:p,lastConfiguredAt:q})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:u("toolDescriptions.openclaw")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[x&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,e.jsx)("span",{children:u("checkingCli",{tool:"Open Claw"})})]}),!x&&v&&!X&&(0,e.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:v.installed?u("cliNotRunnable",{tool:"Open Claw"}):u("cliNotInstalled",{tool:"Open Claw"})}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:v.installed?u("cliFoundFailedHealthcheck",{tool:"Open Claw",reason:v.reason?` (${v.reason})`:""}):u("installCliPrompt",{tool:"Open Claw"})})]})]}),!x&&X&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[v?.settings?.models?.providers?.omniroute?.baseUrl&&(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("current")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:v.settings.models.providers.omniroute.baseUrl})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("baseUrl")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:(r=P||d).endsWith("/v1")?r:`${r}/v1`,onChange:a=>Q(a.target.value),placeholder:u("baseUrlPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),P&&P!==d&&(0,e.jsx)("button",{onClick:()=>Q(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:u("resetToDefault"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),l.length>0?(0,e.jsx)("select",{value:F,onChange:a=>G(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:o?u("noApiKeysCreateOne"):u("defaultOmnirouteKey")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("model")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:H,onChange:a=>I(a.target.value),placeholder:u("providerModelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>K(!0),disabled:!k,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${k?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:u("selectModel")}),H&&(0,e.jsx)("button",{onClick:()=>I(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:u("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),D&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===D.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===D.type?"check_circle":"error"}),(0,e.jsx)("span",{children:D.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:_,disabled:!H,loading:z,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),u("apply")]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:aa,disabled:!v?.hasOmniRoute,loading:B,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),u("reset")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>O(!0),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),u("manualConfig")]}),(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{U(!T),T||ab()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"history"}),u("backups"),R.length>0&&` (${R.length})`]})]}),T&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"history"}),u("configBackups")]}),0===R.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:u("noBackupsYet")}):(0,e.jsx)("div",{className:"space-y-1.5",children:R.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"description"}),(0,e.jsx)("span",{className:"flex-1 truncate font-mono",title:a.id,children:a.id}),(0,e.jsx)("span",{className:"text-text-muted whitespace-nowrap",children:new Date(a.createdAt).toLocaleString()}),(0,e.jsx)("button",{onClick:()=>ac(a.id),disabled:V===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:V===a.id?"...":u("restore")})]},a.id))})]})]})]}),(0,e.jsx)(g.rq,{isOpen:J,onClose:()=>K(!1),onSelect:a=>{I(a.value),K(!1)},selectedModel:H,activeProviders:n,modelAliases:L,title:u("selectModelForTool",{tool:"Open Claw"})}),(0,e.jsx)(g.uR,{isOpen:N,onClose:()=>O(!1),title:u("openClawManualConfiguration"),configs:(s=F&&F.trim()?F:o?"<API_KEY_FROM_DASHBOARD>":"sk_omniroute",t={agents:{defaults:{model:{primary:`omniroute/${H||"provider/model-id"}`}}},models:{providers:{omniroute:{baseUrl:$(),apiKey:s,api:"openai-completions",models:[{id:H||"provider/model-id",name:(H||"provider/model-id").split("/").pop()}]}}}},[{filename:"~/.openclaw/openclaw.json",content:JSON.stringify(t,null,2)}])})]})}d()}catch(a){d(a)}})},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19694:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{$n:()=>e.default,Ex:()=>k.default,G9:()=>z.default,Iz:()=>A.default,KN:()=>w.default,LF:()=>r.default,Lo:()=>x.default,Mh:()=>y.default,Qn:()=>C.default,Qv:()=>j.CardSkeleton,Zp:()=>h.default,aF:()=>i.default,bQ:()=>D.default,cn:()=>u.default,l6:()=>g.default,lM:()=>l.default,pd:()=>f.default,pp:()=>B.default,rq:()=>s.default,uR:()=>t.default,y7:()=>v.default});var e=c(53156),f=c(29518),g=c(59256),h=c(2490),i=c(65953),j=c(22746);c(45567);var k=c(4355),l=c(65472),m=c(59869),n=c(75146),o=c(51490),p=c(74771),q=c(22245),r=c(8744),s=c(29494),t=c(1237);c(82054);var u=c(62688),v=c(46230),w=c(56589),x=c(73979);c(98004);var y=c(41371);c(53140);var z=c(27309),A=c(86059);c(77088);var B=c(85974);c(18732);var C=c(67083);c(52198);var D=c(50818),E=c(35858),F=a([m,n,o,p,q,s,E]);[m,n,o,p,q,s,E]=F.then?(await F)():F,d()}catch(a){d(a)}})},25403:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(77360),j=c(2665),k=a([g]);function l({toolId:a,tool:b,isExpanded:c,onToggle:d,baseUrl:k,apiKeys:l,activeProviders:m=[],cloudEnabled:n=!1,batchStatus:o}){let p,q,r,s=(0,i.c)("cliTools"),t=(0,f.useCallback)((a,b,c)=>{try{return s(a,c)}catch{return b}},[s]),[u,v]=(0,f.useState)(null),[w,x]=(0,f.useState)(!1),[y,z]=(0,f.useState)(""),[A,B]=(0,f.useState)(null),[C,D]=(0,f.useState)(null),[E,F]=(0,f.useState)(!1);(0,f.useRef)(!1);let[G,H]=(0,f.useState)(()=>l?.length>0?l[0].key:""),I=(0,f.useCallback)(b=>{z(b),b?localStorage.setItem(`omniroute-cli-model-${a}`,b):localStorage.removeItem(`omniroute-cli-model-${a}`)},[a]),J=(0,f.useCallback)(b=>{H(b),b&&localStorage.setItem(`omniroute-cli-key-${a}`,b)},[a]),K=a=>{let b=G&&G.trim()?G:n?s("yourApiKeyPlaceholder"):"sk_omniroute",c=k||"http://localhost:20128",d=c.endsWith("/v1")?c:`${c}/v1`;return a.replace(/\{\{baseUrl\}\}/g,d).replace(/\{\{apiKey\}\}/g,b).replace(/\{\{model\}\}/g,y||s("modelPlaceholder"))},L=async(a,b)=>{await (0,j.l)(K(a)),v(b),setTimeout(()=>v(null),2e3)},M=m.length>0,N=c&&null===A,O=async()=>{F(!0),D(null);try{let b=G&&G.trim()?G:n?"":"sk_omniroute",c=k||"http://localhost:20128",d=c.endsWith("/v1")?c:`${c}/v1`,e=await fetch(`/api/cli-tools/guide-settings/${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:d,apiKey:b,model:y})}),f=await e.json();e.ok?D({type:"success",text:f.message||s("configurationSaved")}):D({type:"error",text:f.error||s("failedToSave")})}catch(a){D({type:"error",text:a.message})}finally{F(!1)}},P=["continue"].includes(a),Q=()=>!b.requiresCloud||!!n;return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:d,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:b.image?(0,e.jsx)(h.default,{src:b.image,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}}):b.icon?(0,e.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:b.color},children:b.icon}):(0,e.jsx)(h.default,{src:`/providers/${a}.png`,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:b.name}),(p=A?.reason==="not_required"||"guide"===b.configType,q=A?A.installed&&A.runnable:o?.installed&&o?.runnable,r=A?A.installed:o?.installed,p?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-blue-500/10 text-blue-600 dark:text-blue-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-blue-500"}),s("guide")]}):q?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-green-500/10 text-green-600 dark:text-green-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-green-500"}),s("detected")]}):!1===r&&(A||o)?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-zinc-500/10 text-zinc-500 dark:text-zinc-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-zinc-400 dark:bg-zinc-500"}),s("notInstalled")]}):r&&!q&&(A||o)?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-yellow-500"}),s("notReady")]}):null)]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:t(`toolDescriptions.${a}`,b.description)})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${c?"rotate-180":""}`,children:"expand_more"})]}),c&&(0,e.jsx)("div",{className:"mt-6 pt-6 border-t border-border",children:b.guideSteps?(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[N&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-sm",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-base",children:"progress_activity"}),(0,e.jsx)("span",{children:s("checkingRuntime")})]}),!N&&A&&!A.error&&(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-blue-500/10 border border-blue-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-blue-500 text-lg",children:"not_required"===A.reason?"info":A.installed&&A.runnable?"check_circle":"warning"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm text-blue-700 dark:text-blue-300",children:"not_required"===A.reason?s("guideOnlyIntegration"):A.installed&&A.runnable?s("cliRuntimeDetected"):A.installed?s("cliFoundNotRunnable",{reason:A.reason?`: ${A.reason}`:""}):s("cliRuntimeNotDetected")}),A.commandPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[s("binary"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:A.commandPath})]}),A.configPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[s("configPath"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:A.configPath})]})]})]}),!N&&A?.error&&(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-red-500/10 border border-red-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-red-500 text-lg",children:"error"}),(0,e.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:s("failedCheckRuntimeStatus")})]}),b.notes&&0!==b.notes.length?(0,e.jsx)("div",{className:"flex flex-col gap-2 mb-4",children:b.notes.map((b,c)=>{if("cloudCheck"===b.type&&n)return null;let d="warning"===b.type,f="cloudCheck"===b.type&&!n,g="bg-blue-500/10 border-blue-500/30",h="text-blue-600 dark:text-blue-400",i="text-blue-500",j="info";return d?(g="bg-yellow-500/10 border-yellow-500/30",h="text-yellow-600 dark:text-yellow-400",i="text-yellow-500",j="warning"):f&&(g="bg-red-500/10 border-red-500/30",h="text-red-600 dark:text-red-400",i="text-red-500",j="error"),(0,e.jsxs)("div",{className:`flex items-start gap-3 p-3 rounded-lg border ${g}`,children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-lg ${i}`,children:j}),(0,e.jsx)("p",{className:`text-sm ${h}`,children:t(`guides.${a}.notes.${c}`,b.text)})]},c)})}):null,Q()&&b.guideSteps.map(c=>(0,e.jsxs)("div",{className:"flex items-start gap-4",children:[(0,e.jsx)("div",{className:"size-8 rounded-full flex items-center justify-center shrink-0 text-sm font-semibold text-white",style:{backgroundColor:b.color},children:c.step}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"font-medium text-text",children:t(`guides.${a}.steps.${c.step}.title`,c.title)}),c.desc&&(0,e.jsx)("p",{className:"text-sm text-text-muted mt-0.5",children:t(`guides.${a}.steps.${c.step}.desc`,c.desc)}),"apiKeySelector"===c.type&&(0,e.jsx)("div",{className:"mt-2 flex items-center gap-2",children:l&&l.length>0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("select",{value:G,onChange:a=>J(a.target.value),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}),(0,e.jsx)("button",{onClick:()=>L(G,"apiKey"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:"apiKey"===u?"check":"content_copy"})})]}):(0,e.jsx)("span",{className:"text-sm text-text-muted",children:n?s("noApiKeysCreateOne"):"sk_omniroute"})}),"modelSelector"===c.type&&(0,e.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",value:y,onChange:a=>I(a.target.value),placeholder:s("modelPlaceholder"),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>x(!0),disabled:!M,className:`shrink-0 px-3 py-2 rounded-lg border text-sm transition-colors ${M?"bg-bg-secondary border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:s("selectModel")}),y&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{onClick:()=>L(y,"model"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:"model"===u?"check":"content_copy"})}),(0,e.jsx)("button",{onClick:()=>I(""),className:"p-2 text-text-muted hover:text-red-500 rounded transition-colors",title:s("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]})]}),c.value&&(0,e.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,e.jsx)("code",{className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm font-mono border border-border truncate",children:K(c.value)}),c.copyable&&(0,e.jsx)("button",{onClick:()=>L(c.value,`${c.step}-${c.title}`),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:u===`${c.step}-${c.title}`?"check":"content_copy"})})]})]})]},c.step)),Q()&&b.codeBlock&&(0,e.jsxs)("div",{className:"mt-2",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wide",children:b.codeBlock.language}),(0,e.jsxs)("button",{onClick:()=>L(b.codeBlock.code,"codeblock"),className:"flex items-center gap-1 px-2 py-1 text-xs bg-bg-secondary hover:bg-bg-tertiary rounded border border-border transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"codeblock"===u?"check":"content_copy"}),"codeblock"===u?s("copied"):s("copy")]})]}),(0,e.jsx)("pre",{className:"p-4 bg-bg-secondary rounded-lg border border-border overflow-x-auto",children:(0,e.jsx)("code",{className:"text-sm font-mono whitespace-pre",children:K(b.codeBlock.code)})})]}),Q()&&(0,e.jsxs)("div",{className:"mt-2",children:[C&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs mb-2 ${"success"===C.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===C.type?"check_circle":"error"}),(0,e.jsx)("span",{children:C.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[P&&(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:O,disabled:!y,loading:E,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),s("saveConfig")]}),b.codeBlock&&(0,e.jsxs)(g.$n,{variant:P?"outline":"primary",size:"sm",onClick:()=>L(b.codeBlock.code,"codeblock"),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"codeblock"===u?"check":"content_copy"}),"codeblock"===u?s("copied"):s("copyConfig")]}),y&&(0,e.jsxs)("span",{className:"text-xs text-text-muted flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-green-500",children:"check_circle"}),s("selectionSaved")]})]})]})]}):(0,e.jsx)("p",{className:"text-text-muted text-sm",children:s("comingSoon")})}),(0,e.jsx)(g.rq,{isOpen:w,onClose:()=>x(!1),onSelect:a=>{I(a.value)},selectedModel:y,activeProviders:m,title:s("selectModel")})]})}g=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34249:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);g=(k.then?(await k)():k)[0];let m="https://cloud.omniroute.online";function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,hasActiveProviders:k,apiKeys:l,activeProviders:n,cloudEnabled:o,batchStatus:p,lastConfiguredAt:q}){let r=(0,j.c)("cliTools"),[s,t]=(0,f.useState)(null),[u,v]=(0,f.useState)(!1),[w,x]=(0,f.useState)(!1),[y,z]=(0,f.useState)(!1),[A,B]=(0,f.useState)(null),[C,D]=(0,f.useState)(""),[E,F]=(0,f.useState)(""),[G,H]=(0,f.useState)(!1),[I,J]=(0,f.useState)({}),[K,L]=(0,f.useState)(!1),[M,N]=(0,f.useState)(""),O=(0,f.useRef)(!1),[P,Q]=(0,f.useState)([]),[R,S]=(0,f.useState)(!1),[T,U]=(0,f.useState)(null),V=!!(s?.installed&&s?.runnable),W=(()=>{if(!V)return null;if(!s.hasOmniRoute)return"not_configured";let a=s.settings?.openAiBaseUrl||"",b=a.includes("localhost")||a.includes("127.0.0.1"),c=o&&m&&a.startsWith(m);return b||c?"configured":"other"})(),X=W||p?.configStatus||null,Y=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=cline");if(a.ok){let b=await a.json();Q(b.backups||[])}}catch{}},Z=async a=>{U(a);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"cline",backupId:a})});if(b.ok)B({type:"success",text:r("backupRestoredReloading")}),await $(),await Y();else{let a=await b.json();B({type:"error",text:a.error||r("failedRestoreBackup")})}}catch(a){B({type:"error",text:a.message})}finally{U(null)}},$=async()=>{v(!0);try{let a=await fetch("/api/cli-tools/cline-settings"),b=await a.json();t(b)}catch(a){t({error:a.message})}finally{v(!1)}},_=async()=>{x(!0),B(null);try{let a=M||d||"http://localhost:20128",b=a.endsWith("/v1")?a:`${a}/v1`,c=await fetch("/api/cli-tools/cline-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:b,apiKey:C||"sk_omniroute",model:E})}),e=await c.json();c.ok?(B({type:"success",text:e.message||r("applied")}),await $(),await Y()):B({type:"error",text:e.error||r("failed")})}catch(a){B({type:"error",text:a.message})}finally{x(!1)}},aa=async()=>{z(!0),B(null);try{let a=await fetch("/api/cli-tools/cline-settings",{method:"DELETE"}),b=await a.json();a.ok?(B({type:"success",text:b.message||r("resetDone")}),F(""),O.current=!1,await $(),await Y()):B({type:"error",text:b.error||r("failed")})}catch(a){B({type:"error",text:a.message})}finally{z(!1)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:a.image?(0,e.jsx)(h.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}}):(0,e.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:a.color},children:"terminal"})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:X,batchStatus:p,lastConfiguredAt:q})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:r("toolDescriptions.cline")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-6 pt-6 border-t border-border",children:[u&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-sm",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-base",children:"progress_activity"}),(0,e.jsx)("span",{children:r("checkingCli",{tool:"Cline"})})]}),s&&!u&&(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg border bg-bg-secondary/50 border-border",children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-lg ${V?"text-green-500":"text-yellow-500"}`,children:V?"check_circle":"warning"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm font-medium",children:V?r("cliDetectedReady",{tool:"Cline"}):s.installed?r("cliNotRunnable",{tool:"Cline"}):r("cliNotDetected",{tool:"Cline"})}),s.commandPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[r("binary"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:s.commandPath})]}),s.globalStatePath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[r("configPathShort"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:s.globalStatePath})]})]})]}),V&&(0,e.jsxs)(e.Fragment,{children:["configured"===W&&(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-green-500/10 border border-green-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-green-500 text-lg",children:"check_circle"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm text-green-700 dark:text-green-300",children:r("omnirouteConfiguredOpenAiCompatible")}),(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[r("provider"),": ",(0,e.jsx)("strong",{children:"openai"})," • ",r("model"),":"," ",(0,e.jsx)("strong",{children:s.settings?.openAiModelId||"—"})]})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("label",{className:"text-sm text-text-muted",children:r("model")}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",value:E,onChange:a=>F(a.target.value),placeholder:r("providerModelPlaceholder"),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)(g.$n,{variant:"outline",size:"sm",onClick:()=>H(!0),disabled:!k,children:r("select")}),(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>L(!0),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"edit"})})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("label",{className:"text-sm text-text-muted",children:r("apiKey")}),l&&l.length>0?(0,e.jsx)("select",{value:C,onChange:a=>D(a.target.value),className:"px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("p",{className:"text-sm text-text-muted",children:o?r("noApiKeysAvailable"):r("usingDefaultOmniroute")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:_,disabled:!E,loading:w,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"configured"===W?r("updateConfig"):r("applyConfig")]}),"configured"===W&&(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:aa,loading:y,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restart_alt"}),r("reset")]})]}),A&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm ${"success"===A.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"success"===A.type?"check_circle":"error"}),(0,e.jsx)("span",{children:A.text})]}),(0,e.jsxs)("div",{className:"border-t border-border pt-3 mt-1",children:[(0,e.jsxs)("button",{onClick:()=>S(!R),className:"flex items-center gap-2 text-sm text-text-muted hover:text-text transition-colors",children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-[16px] transition-transform ${R?"rotate-90":""}`,children:"chevron_right"}),(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"backup"}),r("backups")," ",P.length>0&&`(${P.length})`]}),R&&P.length>0&&(0,e.jsx)("div",{className:"mt-2 flex flex-col gap-1.5 pl-6",children:P.map(a=>(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2 p-2 rounded bg-bg-secondary/50 text-xs",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("span",{className:"font-medium",children:a.originalFile}),(0,e.jsx)("span",{className:"text-text-muted",children:new Date(a.createdAt).toLocaleString()})]}),(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>Z(a.id),loading:T===a.id,children:r("restore")})]},a.id))}),R&&0===P.length&&(0,e.jsx)("p",{className:"mt-2 pl-6 text-xs text-text-muted",children:r("noBackupsAvailable")})]})]})]})]}),(0,e.jsx)(g.rq,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{F(a.value),H(!1)},selectedModel:E,activeProviders:n,title:r("selectModelForTool",{tool:"Cline"})}),K&&(0,e.jsx)(g.uR,{isOpen:K,onClose:()=>L(!1),title:r("clineManualConfiguration"),...{onApply:a=>{a.model&&F(a.model),a.apiKey&&D(a.apiKey),a.baseUrl&&N(a.baseUrl),L(!1)},currentConfig:{model:E,apiKey:C,baseUrl:M||d}}})]})}d()}catch(a){d(a)}})},35858:(a,b,c)=>{"use strict";c.a(a,async(a,b)=>{try{var d=c(53280),e=c(16116),f=a([d,e]);[d,e]=f.then?(await f)():f,b()}catch(a){b(a)}})},35987:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(48249),e=c(77360),f=c(89400);function g({effectiveConfigStatus:a,batchStatus:b,lastConfiguredAt:c=null}){let g=(0,e.c)("cliTools"),h=(0,f.Ym)(),i=a||b?.configStatus||null,j={configured:{dotClass:"bg-green-500",badgeClass:"bg-green-500/10 text-green-600 dark:text-green-400",text:g("configured")},not_configured:{dotClass:"bg-yellow-500",badgeClass:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",text:g("notConfigured")},not_installed:{dotClass:"bg-zinc-400 dark:bg-zinc-500",badgeClass:"bg-zinc-500/10 text-zinc-500 dark:text-zinc-400",text:g("notInstalled")},other:{dotClass:"bg-blue-500",badgeClass:"bg-blue-500/10 text-blue-600 dark:text-blue-400",text:g("custom")},unknown:{dotClass:"bg-zinc-400 dark:bg-zinc-500",badgeClass:"bg-zinc-500/10 text-zinc-500 dark:text-zinc-400",text:g("unknown")}},k=i?j[i]||j.unknown:null;return(0,d.jsxs)(d.Fragment,{children:[k&&(0,d.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full ${k.badgeClass}`,children:[(0,d.jsx)("span",{className:`size-1.5 rounded-full ${k.dotClass}`}),k.text]}),c?(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 text-[10px] text-text-muted",title:g("lastSavedAt",{date:new Date(c).toLocaleString(h)}),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"schedule"}),function(a,b){let c=Date.now()-new Date(a).getTime();if(c<0)return b("justNow");let d=Math.floor(c/1e3);if(d<60)return b("justNow");let e=Math.floor(d/60);if(e<60)return b("minutesAgoShort",{count:e});let f=Math.floor(e/60);if(f<24)return b("hoursAgoShort",{count:f});let g=Math.floor(f/24);if(g<30)return b("daysAgoShort",{count:g});let h=Math.floor(g/30);return h<12?b("monthsAgoShort",{count:h}):b("yearsAgoShort",{count:Math.floor(h/12)})}(c,g)]}):i&&"not_installed"!==i?(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 text-[10px] text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"schedule"}),g("never")]}):null]})}},37308:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/diegosouzapw/dev/proxys/9router/src/app/(dashboard)/dashboard/cli-tools/CLIToolsPageClient.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/diegosouzapw/dev/proxys/9router/src/app/(dashboard)/dashboard/cli-tools/CLIToolsPageClient.tsx","default")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},42971:a=>{"use strict";a.exports=import("zod")},43482:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(5735),e=c(53048),f=c(37308);async function g(){let a=await (0,e.D1)();return(0,d.jsx)(f.default,{machineId:a})}},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},46846:(a,b,c)=>{Promise.resolve().then(c.bind(c,68690))},48161:a=>{"use strict";a.exports=require("node:os")},48541:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,apiKeys:k,activeProviders:l,cloudEnabled:m,batchStatus:n,lastConfiguredAt:o}){let p,q,r,s,t,u=(0,j.c)("cliTools"),[v,w]=(0,f.useState)(null),[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(!1),[D,E]=(0,f.useState)(null),[F,G]=(0,f.useState)(!1),[H,I]=(0,f.useState)(""),[J,K]=(0,f.useState)(""),[L,M]=(0,f.useState)(!1),[N,O]=(0,f.useState)({}),[P,Q]=(0,f.useState)(!1),[R,S]=(0,f.useState)(""),[T,U]=(0,f.useState)([]),[V,W]=(0,f.useState)(!1),[X,Y]=(0,f.useState)(""),[Z,$]=(0,f.useState)(!1),[_,aa]=(0,f.useState)(null),[ab,ac]=(0,f.useState)([]),[ad,ae]=(0,f.useState)(!1),[af,ag]=(0,f.useState)(null),ah=!!(v?.installed&&v?.runnable),ai=(ah?v.config?v.config.includes(d)||v.config.includes("localhost")||v.config.includes("127.0.0.1")?"configured":"other":"not_configured":null)||n?.configStatus||null,aj=()=>{let a=R||`${d}/v1`;return a.endsWith("/v1")?a:`${a}/v1`},ak=async()=>{y(!0);try{let a=await fetch("/api/cli-tools/codex-settings"),b=await a.json();w(b)}catch(a){w({installed:!1,error:a.message})}finally{y(!1)}},al=async()=>{A(!0),E(null);try{let a=H&&H.trim()||m?H:"sk_omniroute",b=await fetch("/api/cli-tools/codex-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:aj(),apiKey:a,model:J})}),c=await b.json();b.ok?(E({type:"success",text:u("settingsApplied")}),ak()):E({type:"error",text:c.error||u("failedApplySettings")})}catch(a){E({type:"error",text:a.message})}finally{A(!1)}},am=async()=>{C(!0),E(null);try{let a=await fetch("/api/cli-tools/codex-settings",{method:"DELETE"}),b=await a.json();a.ok?(E({type:"success",text:u("settingsReset")}),K(""),ak()):E({type:"error",text:b.error||u("failedResetSettings")})}catch(a){E({type:"error",text:a.message})}finally{C(!1)}},an=async()=>{try{let a=await fetch("/api/cli-tools/codex-profiles"),b=await a.json();a.ok&&U(b.profiles||[])}catch(a){console.log("Error fetching profiles:",a)}},ao=async()=>{if(X.trim()){$(!0),E(null);try{let a=await fetch("/api/cli-tools/codex-profiles",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:X.trim()})}),b=await a.json();a.ok?(E({type:"success",text:u("profileSaved",{name:X})}),Y(""),an()):E({type:"error",text:b.error||u("failedSaveProfile")})}catch(a){E({type:"error",text:a.message})}finally{$(!1)}}},ap=async a=>{aa(a),E(null);try{let b=await fetch("/api/cli-tools/codex-profiles",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({profileId:a})}),c=await b.json();b.ok?(E({type:"success",text:c.message||u("profileActivated")}),ak(),ar()):E({type:"error",text:c.error||u("failedActivateProfile")})}catch(a){E({type:"error",text:a.message})}finally{aa(null)}},aq=async a=>{try{(await fetch("/api/cli-tools/codex-profiles",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({profileId:a})})).ok&&an()}catch(a){console.log("Error deleting profile:",a)}},ar=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=codex"),b=await a.json();a.ok&&ac(b.backups||[])}catch(a){console.log("Error fetching backups:",a)}},as=async a=>{ag(a),E(null);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"codex",backupId:a})}),c=await b.json();b.ok?(E({type:"success",text:u("backupRestored")}),ak(),ar()):E({type:"error",text:c.error||u("failedRestore")})}catch(a){E({type:"error",text:a.message})}finally{ag(null)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/codex.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:ai,batchStatus:n,lastConfiguredAt:o})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:u("toolDescriptions.codex")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[x&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,e.jsx)("span",{children:u("checkingCli",{tool:"Codex"})})]}),!x&&v&&!ah&&(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:v.installed?u("cliNotRunnable",{tool:"Codex"}):u("cliNotInstalled",{tool:"Codex"})}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:v.installed?u("cliFoundFailedHealthcheck",{tool:"Codex",reason:v.reason?` (${v.reason})`:""}):u("installCodexPrompt")})]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:()=>G(!F),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px] mr-1",children:F?"expand_less":"help"}),F?u("hide"):u("howToInstall")]})]}),F&&(0,e.jsxs)("div",{className:"p-4 bg-surface border border-border rounded-lg",children:[(0,e.jsx)("h4",{className:"font-medium mb-3",children:u("installationGuide")}),(0,e.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-text-muted mb-1",children:u("platforms")}),(0,e.jsx)("code",{className:"block px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs",children:"npm install -g @openai/codex"})]}),(0,e.jsxs)("p",{className:"text-text-muted",children:[u("afterInstallationRun")," ",(0,e.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"codex"})," ",u("toVerify")]}),(0,e.jsx)("div",{className:"pt-2 border-t border-border",children:(0,e.jsxs)("p",{className:"text-text-muted text-xs",children:[u("codexAuthNotePrefix")," ",(0,e.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"~/.codex/auth.json"})," ",u("codexAuthNoteMiddle")," ",(0,e.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"OPENAI_API_KEY"}),". ",u("codexAuthNoteSuffix")]})})]})]})]}),!x&&ah&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[v?.config&&((q=(p=v.config.match(/base_url\s*=\s*"([^"]+)"/))?p[1]:null)?(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("current")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:q})]}):null),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("baseUrl")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:R||`${d}/v1`,onChange:a=>S(a.target.value),placeholder:u("baseUrlPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),R&&R!==`${d}/v1`&&(0,e.jsx)("button",{onClick:()=>S(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:u("resetToDefault"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),k.length>0?(0,e.jsx)("select",{value:H,onChange:a=>I(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:k.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:m?u("noApiKeysCreateOne"):u("defaultOmnirouteKey")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:u("model")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:J,onChange:a=>K(a.target.value),placeholder:u("providerModelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>M(!0),disabled:!l?.length,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${l?.length?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:u("selectModel")}),J&&(0,e.jsx)("button",{onClick:()=>K(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:u("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),D&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===D.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===D.type?"check_circle":"error"}),(0,e.jsx)("span",{children:D.text})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:al,disabled:!H||!J,loading:z,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),u("apply")]}),(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:am,disabled:!v.hasOmniRoute,loading:B,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),u("reset")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>Q(!0),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),u("manualConfig")]}),(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{W(!V),V||an()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"manage_accounts"}),u("profiles")]}),(0,e.jsxs)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{ae(!ad),ad||ar()},children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"history"}),u("backups"),ab.length>0&&` (${ab.length})`]})]}),V&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"manage_accounts"}),u("savedProfiles")]}),0===T.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:u("noProfilesYet")}):(0,e.jsx)("div",{className:"space-y-1.5 mb-3",children:T.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"person"}),(0,e.jsx)("span",{className:"font-medium flex-1 truncate",children:a.name}),(0,e.jsx)("span",{className:"text-text-muted truncate max-w-[140px]",title:a.authLabel,children:a.authLabel}),(0,e.jsx)("button",{onClick:()=>ap(a.id),disabled:_===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:_===a.id?"...":u("activate")}),(0,e.jsx)("button",{onClick:()=>aq(a.id),className:"p-0.5 text-text-muted hover:text-red-500 transition-colors",title:u("deleteProfile"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"delete"})})]},a.id))}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",value:X,onChange:a=>Y(a.target.value),placeholder:u("profileNamePlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50",onKeyDown:a=>"Enter"===a.key&&ao()}),(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:ao,disabled:!X.trim(),loading:Z,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),u("saveCurrent")]})]})]}),ad&&(0,e.jsxs)("div",{className:"mt-2 p-3 bg-surface border border-border rounded-lg",children:[(0,e.jsxs)("h4",{className:"text-xs font-semibold text-text-main mb-2 flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"history"}),u("configBackups")]}),0===ab.length?(0,e.jsx)("p",{className:"text-xs text-text-muted",children:u("noBackupsYet")}):(0,e.jsx)("div",{className:"space-y-1.5",children:ab.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 bg-black/5 dark:bg-white/5 rounded text-xs",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"description"}),(0,e.jsx)("span",{className:"flex-1 truncate font-mono",title:a.id,children:a.id}),(0,e.jsx)("span",{className:"text-text-muted whitespace-nowrap",children:new Date(a.createdAt).toLocaleString()}),(0,e.jsx)("button",{onClick:()=>as(a.id),disabled:af===a.id,className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-[10px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:af===a.id?"...":u("restore")})]},a.id))})]})]})]}),(0,e.jsx)(g.rq,{isOpen:L,onClose:()=>M(!1),onSelect:a=>{K(a.value),M(!1)},selectedModel:J,activeProviders:l,modelAliases:N,title:u("selectModelForTool",{tool:"Codex"})}),(0,e.jsx)(g.uR,{isOpen:P,onClose:()=>Q(!1),title:u("codexManualConfiguration"),configs:(r=H&&H.trim()?H:m?"<API_KEY_FROM_DASHBOARD>":"sk_omniroute",s=`# OmniRoute Configuration for Codex CLI
|
|
2
2
|
model = "${J}"
|
|
3
3
|
model_provider = "omniroute"
|
|
4
4
|
|
|
@@ -13,4 +13,4 @@ wire_api = "responses"
|
|
|
13
13
|
"provider": "openai",
|
|
14
14
|
"apiKey": "{{apiKey}}"
|
|
15
15
|
}`}},antigravity:{id:"antigravity",name:"Antigravity",image:"/providers/antigravity.png",color:"#4285F4",description:"Google Antigravity IDE with MITM",configType:"mitm",modelAliases:["claude-opus-4-6-thinking","claude-sonnet-4-6","gemini-3-flash","gpt-oss-120b-medium","gemini-3.1-pro-high","gemini-3.1-pro-low"],defaultModels:[{id:"gemini-3.1-pro-high",name:"Gemini 3.1 Pro High",alias:"gemini-3.1-pro-high"},{id:"gemini-3.1-pro-low",name:"Gemini 3.1 Pro Low",alias:"gemini-3.1-pro-low"},{id:"gemini-3-flash",name:"Gemini 3 Flash",alias:"gemini-3-flash"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",alias:"claude-sonnet-4-6"},{id:"claude-opus-4-6-thinking",name:"Claude Opus 4.6 Thinking",alias:"claude-opus-4-6-thinking"},{id:"gpt-oss-120b-medium",name:"GPT OSS 120B Medium",alias:"gpt-oss-120b-medium"}]},copilot:{id:"copilot",name:"GitHub Copilot",image:"/providers/copilot.png",color:"#1F6FEB",description:"GitHub Copilot Chat — VS Code Extension",configType:"custom"},opencode:{id:"opencode",name:"OpenCode",image:"/providers/opencode.png",icon:"terminal",color:"#FF6B35",description:"OpenCode AI coding agent (Terminal)",configType:"guide",guideSteps:[{step:1,title:"Install OpenCode",desc:"Install via npm: npm install -g opencode-ai"},{step:2,title:"API Key",type:"apiKeySelector"},{step:3,title:"Set Base URL",desc:"opencode config set baseUrl {{baseUrl}}"},{step:4,title:"Select Model",type:"modelSelector"}]},kiro:{id:"kiro",name:"Kiro AI",image:"/providers/kiro.png",icon:"psychology_alt",color:"#FF6B35",description:"Amazon Kiro — AI-powered IDE",configType:"guide",guideSteps:[{step:1,title:"Open Kiro Settings",desc:"Go to Settings → AI Provider"},{step:2,title:"Base URL",value:"{{baseUrl}}",copyable:!0},{step:3,title:"API Key",type:"apiKeySelector"},{step:4,title:"Select Model",type:"modelSelector"}]}}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67106:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>k});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(77360),j=a([g]);function k({tool:a,isExpanded:b,onToggle:c,baseUrl:d,apiKeys:j,activeProviders:k,hasActiveProviders:l,cloudEnabled:m}){let n=(0,i.c)("cliTools"),[o,p]=(0,f.useState)(null),[q,r]=(0,f.useState)(!1),[s,t]=(0,f.useState)(!1),[u,v]=(0,f.useState)(""),[w,x]=(0,f.useState)(""),[y,z]=(0,f.useState)(null),[A,B]=(0,f.useState)({}),[C,D]=(0,f.useState)(!1),[E,F]=(0,f.useState)(null),G=async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();p(b)}}catch(a){console.log("Error fetching status:",a),p({running:!1})}},H="u">typeof navigator&&navigator.userAgent?.includes("Windows"),I=async a=>{r(!0),z(null);try{let b=w?.trim()||(j?.length>0?j[0].key:null)||(m?null:"sk_omniroute"),c=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:b,sudoPassword:a})}),d=await c.json();c.ok?(z({type:"success",text:n("mitmStarted")}),t(!1),v(""),G()):z({type:"error",text:d.error||n("failedStart")})}catch(a){z({type:"error",text:a.message})}finally{r(!1)}},J=async a=>{r(!0),z(null);try{let b=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:a})}),c=await b.json();b.ok?(z({type:"success",text:n("mitmStopped")}),t(!1),v(""),G()):z({type:"error",text:c.error||n("failedStop")})}catch(a){z({type:"error",text:a.message})}finally{r(!1)}},K=()=>{u.trim()?o?.running?J(u):I(u):z({type:"error",text:n("sudoPasswordRequiredError")})},L=(a,b)=>{B(c=>({...c,[a]:b}))},M=async()=>{r(!0),z(null);try{let a=await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"antigravity",mappings:A})});if(!a.ok){let b=await a.json();throw Error(b.error||n("failedSaveMappings"))}z({type:"success",text:n("mappingsSaved")})}catch(a){z({type:"error",text:a.message})}finally{r(!1)}},N=o?.running;return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:"/providers/antigravity.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),N?(0,e.jsx)(g.Ex,{variant:"success",size:"sm",children:n("active")}):(0,e.jsx)(g.Ex,{variant:"default",size:"sm",children:n("inactive")})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:n("toolDescriptions.antigravity")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[(0,e.jsx)("div",{className:"flex items-center gap-2",children:N?(0,e.jsxs)("button",{onClick:()=>{H||o?.hasCachedPassword?J(""):(t(!0),z(null))},disabled:q,className:"px-4 py-2 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-sm flex items-center gap-2 hover:bg-red-500/20 transition-colors disabled:opacity-50",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"stop_circle"}),n("stopMitm")]}):(0,e.jsxs)("button",{onClick:()=>{H||o?.hasCachedPassword?I(""):(t(!0),z(null))},disabled:q||!l,className:"px-4 py-2 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-sm flex items-center gap-2 hover:bg-primary/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"play_circle"}),n("startMitm")]})}),y?.type==="error"&&(0,e.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,e.jsx)("span",{children:y.text})]}),N&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:n("apiKey")}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),j.length>0?(0,e.jsx)("select",{value:w,onChange:a=>x(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:j.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:m?n("noApiKeysCreateOne"):n("defaultOmnirouteKey")})]}),a.defaultModels.map(a=>(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:a.name}),(0,e.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,e.jsx)("input",{type:"text",value:A[a.alias]||"",onChange:b=>L(a.alias,b.target.value),placeholder:n("modelPlaceholder"),className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)("button",{onClick:()=>{var b;return b=a.alias,void(F(b),D(!0))},disabled:!l,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${l?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:n("select")}),A[a.alias]&&(0,e.jsx)("button",{onClick:()=>L(a.alias,""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:n("clear"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias)),(0,e.jsx)("div",{className:"flex items-center gap-2",children:(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:M,disabled:q||0===Object.keys(A).length,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),n("saveMappings")]})})]}),!N&&(0,e.jsxs)("div",{className:"flex flex-col gap-1.5 px-1",children:[(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,e.jsx)("span",{className:"font-medium text-text-main",children:n("howItWorks")})," ",n("antigravityHowWorksDesc")]}),(0,e.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted",children:[(0,e.jsx)("span",{children:n("antigravityStep1")}),(0,e.jsxs)("span",{children:[n("antigravityStep2Prefix")," ",(0,e.jsx)("code",{className:"text-[10px] bg-surface px-1 rounded",children:"daily-cloudcode-pa.googleapis.com"})," ",n("antigravityStep2Suffix")]}),(0,e.jsx)("span",{children:n("antigravityStep3")})]})]})]}),(0,e.jsx)(g.aF,{isOpen:s,onClose:()=>{t(!1),v(""),z(null)},title:n("sudoPasswordRequiredTitle"),size:"sm",children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,e.jsx)("p",{className:"text-xs text-text-muted",children:n("sudoPasswordHint")})]}),(0,e.jsx)(g.pd,{type:"password",placeholder:n("enterSudoPassword"),value:u,onChange:a=>v(a.target.value),onKeyDown:a=>{"Enter"!==a.key||q||K()}}),y&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===y.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===y.type?"check_circle":"error"}),(0,e.jsx)("span",{children:y.text})]}),(0,e.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>{t(!1),v(""),z(null)},disabled:q,children:n("cancel")}),(0,e.jsx)(g.$n,{variant:"primary",size:"sm",onClick:K,loading:q,children:n("confirm")})]})]})}),(0,e.jsx)(g.rq,{isOpen:C,onClose:()=>D(!1),onSelect:a=>{E&&B(b=>({...b,[E]:a.value}))},selectedModel:E?A[E]:null,activeProviders:k,title:n("selectModelForAlias",{alias:E||""})})]})}g=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},68690:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{default:()=>m});var e=c(48249),f=c(67484),g=c(19694),h=c(54630),i=c(47825),j=c(6568),k=c(77360),l=a([g,i,j]);[g,i,j]=l.then?(await l)():l;let n="https://cloud.omniroute.online";function m({machineId:a}){let b,c,d,l=(0,k.c)("cliTools"),[m,o]=(0,f.useState)([]),[p,q]=(0,f.useState)(!0),[r,s]=(0,f.useState)(null),[t,u]=(0,f.useState)({}),[v,w]=(0,f.useState)(!1),[x,y]=(0,f.useState)([]),[z,A]=(0,f.useState)({}),[B,C]=(0,f.useState)(!1),D=()=>m.filter(a=>!1!==a.isActive),E=(0,f.useCallback)((a,b,c)=>{u(d=>d[a]?.[b]===c?d:{...d,[a]:{...d[a],[b]:c}})},[]);if(p||!B)return(0,e.jsx)("div",{className:"flex flex-col gap-6",children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsx)(g.Qv,{}),(0,e.jsx)(g.Qv,{}),(0,e.jsx)(g.Qv,{})]})});let F=(b=D(),c=[],d=new Set,b.forEach(a=>{let b=i.Xg[a.provider]||a.provider;(0,i.KC)(a.provider).forEach(e=>{let f=`${b}/${e.id}`;d.has(f)||(d.add(f),c.push({value:f,label:`${b}/${e.id}`,provider:a.provider,alias:b,connectionName:a.name,modelId:e.id}))})}),c).length>0;return(0,e.jsxs)("div",{className:"flex flex-col gap-6",children:[!F&&(0,e.jsx)(g.Zp,{className:"border-yellow-500/50 bg-yellow-500/5",children:(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:l("noActiveProviders")}),(0,e.jsx)("p",{className:"text-sm text-text-muted",children:l("noActiveProvidersDesc")})]})]})}),(0,e.jsx)("div",{className:"flex flex-col gap-4",children:Object.entries(h.d).map(([a,b])=>((a,b)=>{let c={tool:b,isExpanded:r===a,onToggle:()=>s(r===a?null:a),baseUrl:v&&n?n:"http://localhost:20128",apiKeys:x,batchStatus:z[a]||null,lastConfiguredAt:z[a]?.lastConfiguredAt||null};switch(a){case"claude":return(0,e.jsx)(j.Tk,{...c,activeProviders:D(),modelMappings:t[a]||{},onModelMappingChange:(b,c)=>E(a,b,c),hasActiveProviders:F,cloudEnabled:v},a);case"codex":return(0,e.jsx)(j.Ah,{...c,activeProviders:D(),cloudEnabled:v},a);case"droid":return(0,e.jsx)(j.ZM,{...c,activeProviders:D(),hasActiveProviders:F,cloudEnabled:v},a);case"openclaw":return(0,e.jsx)(j.yZ,{...c,activeProviders:D(),hasActiveProviders:F,cloudEnabled:v},a);case"antigravity":return(0,e.jsx)(j.Pl,{...c,activeProviders:D(),hasActiveProviders:F,cloudEnabled:v},a);case"cline":return(0,e.jsx)(j.aG,{...c,activeProviders:D(),hasActiveProviders:F,cloudEnabled:v},a);case"kilo":return(0,e.jsx)(j.c9,{...c,activeProviders:D(),hasActiveProviders:F,cloudEnabled:v},a);case"copilot":return(0,e.jsx)(j.h1,{...c,activeProviders:D(),hasActiveProviders:F,cloudEnabled:v},a);default:return(0,e.jsx)(j.a7,{toolId:a,...c,activeProviders:D(),cloudEnabled:v},a)}})(a,b))})]})}d()}catch(a){d(a)}})},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},77598:a=>{"use strict";a.exports=require("node:crypto")},79646:a=>{"use strict";a.exports=require("child_process")},82652:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>k});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(77360),j=a([g]);function k({tool:a,isExpanded:b,onToggle:c,baseUrl:d,apiKeys:j,activeProviders:k=[],hasActiveProviders:l=!1,cloudEnabled:m=!1,batchStatus:n}){let o=(0,i.c)("cliTools"),[p,q]=(0,f.useState)(null),[r,s]=(0,f.useState)(()=>new Set),[t,u]=(0,f.useState)(()=>j?.length>0?j[0].key:""),[v,w]=(0,f.useState)(128e3),[x,y]=(0,f.useState)(16e3),[z,A]=(0,f.useState)(!0),[B,C]=(0,f.useState)(!1),[D,E]=(0,f.useState)([]),[F,G]=(0,f.useState)(!1),[H,I]=(0,f.useState)(""),J=H?D.filter(a=>a.label.toLowerCase().includes(H.toLowerCase())):D,K=()=>{let a=[...r].map(a=>({id:a,name:a,url:`${d}/v1/chat/completions#models.ai.azure.com`,toolCalling:z,vision:B,maxInputTokens:v,maxOutputTokens:x}));return JSON.stringify({name:"OmniRoute",vendor:"azure",apiKey:"${input:chat.lm.secret.omniroute}",models:a},null,2)},L=async(a,b)=>{await navigator.clipboard.writeText(a),q(b),setTimeout(()=>q(null),2e3)};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:(0,e.jsx)(h.default,{src:a.image||"/providers/copilot.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-[11px] font-medium rounded-full bg-blue-500/10 text-blue-600 dark:text-blue-400",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-blue-500"}),o("guide")]})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsx)("div",{className:"mt-6 pt-6 border-t border-border",children:(0,e.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-blue-500/10 border border-blue-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-blue-500 text-lg",children:"info"}),(0,e.jsxs)("div",{className:"text-sm text-blue-700 dark:text-blue-300",children:[(0,e.jsx)("p",{className:"font-medium",children:"GitHub Copilot Config Generator"}),(0,e.jsxs)("p",{className:"mt-1 text-xs opacity-80",children:["Generates the"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:"chatLanguageModels.json"})," ","block for VS Code GitHub Copilot using the Azure vendor pattern. Select the models you want, then copy the JSON into your config file."]})]})]}),(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-lg",children:"warning"}),(0,e.jsxs)("p",{className:"text-xs text-yellow-600 dark:text-yellow-400",children:["This configuration uses the Azure vendor workaround for custom model lists. Tested with ",(0,e.jsx)("strong",{children:"VS Code ≥ 1.109"})," and"," ",(0,e.jsx)("strong",{children:"GitHub Copilot Chat ≥ v0.37"}),". Future extension updates may change this behavior."]})]}),m&&j?.length>0&&(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,e.jsx)("div",{className:"size-6 rounded-full flex items-center justify-center text-xs font-semibold text-white",style:{backgroundColor:a.color},children:"1"}),(0,e.jsx)("span",{className:"font-medium text-sm",children:"API Key"})]}),(0,e.jsx)("select",{value:t,onChange:a=>{var b;return b=a.target.value,void(u(b),b&&localStorage.setItem("omniroute-cli-key-copilot",b))},className:"w-full px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:j.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))})]}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("div",{className:"size-6 rounded-full flex items-center justify-center text-xs font-semibold text-white",style:{backgroundColor:a.color},children:m&&j?.length>0?"2":"1"}),(0,e.jsxs)("span",{className:"font-medium text-sm",children:["Select Models (",r.size,"/",J.length,")"]})]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)("button",{onClick:()=>{s(new Set(D.map(a=>a.value)))},className:"px-2 py-1 text-xs bg-bg-secondary hover:bg-bg-tertiary rounded border border-border transition-colors",children:"Select All"}),(0,e.jsx)("button",{onClick:()=>{s(new Set)},className:"px-2 py-1 text-xs bg-bg-secondary hover:bg-bg-tertiary rounded border border-border transition-colors",children:"Clear"})]})]}),(0,e.jsx)("div",{className:"mb-2",children:(0,e.jsx)("input",{type:"text",value:H,onChange:a=>I(a.target.value),placeholder:"Filter models...",className:"w-full px-3 py-1.5 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"})}),F||0!==D.length?0===J.length&&0===D.length?(0,e.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-lg",children:"warning"}),(0,e.jsx)("p",{className:"text-sm text-yellow-600 dark:text-yellow-400",children:o("noActiveProviders")})]}):(0,e.jsx)("div",{className:"max-h-64 overflow-y-auto rounded-lg border border-border bg-bg-secondary",children:J.map(a=>(0,e.jsxs)("label",{className:"flex items-center gap-3 px-3 py-2 hover:bg-bg-tertiary cursor-pointer border-b border-border last:border-0 transition-colors",children:[(0,e.jsx)("input",{type:"checkbox",checked:r.has(a.value),onChange:()=>{var b;return b=a.value,void s(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"rounded border-border text-primary accent-[#1F6FEB]"}),(0,e.jsx)("span",{className:"text-sm font-mono truncate",children:a.label})]},a.value))}):(0,e.jsxs)("div",{className:"flex items-center gap-2 p-3 text-text-muted text-sm",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-base",children:"progress_activity"}),(0,e.jsx)("span",{children:"Loading models..."})]})]}),(0,e.jsxs)("details",{className:"group",children:[(0,e.jsxs)("summary",{className:"flex items-center gap-2 cursor-pointer text-sm text-text-muted hover:text-text-main transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-base group-open:rotate-90 transition-transform",children:"chevron_right"}),"Advanced Options"]}),(0,e.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-3 pl-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-xs text-text-muted block mb-1",children:"Max Input Tokens"}),(0,e.jsx)("input",{type:"number",value:v,onChange:a=>w(Number(a.target.value)||128e3),className:"w-full px-3 py-1.5 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-xs text-text-muted block mb-1",children:"Max Output Tokens"}),(0,e.jsx)("input",{type:"number",value:x,onChange:a=>y(Number(a.target.value)||16e3),className:"w-full px-3 py-1.5 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"})]}),(0,e.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:z,onChange:a=>A(a.target.checked),className:"rounded border-border accent-[#1F6FEB]"}),(0,e.jsx)("span",{className:"text-sm",children:"Tool Calling"})]}),(0,e.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:B,onChange:a=>C(a.target.checked),className:"rounded border-border accent-[#1F6FEB]"}),(0,e.jsx)("span",{className:"text-sm",children:"Vision"})]})]})]}),r.size>0&&(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("div",{className:"size-6 rounded-full flex items-center justify-center text-xs font-semibold text-white",style:{backgroundColor:a.color},children:m&&j?.length>0?"3":"2"}),(0,e.jsxs)("span",{className:"font-medium text-sm",children:["Copy Config (",r.size," model",1!==r.size?"s":"",")"]})]}),(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:()=>L(K(),"config"),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"config"===p?"check":"content_copy"}),o("config"===p?"copied":"copyConfig")]})]}),(0,e.jsx)("pre",{className:"p-4 bg-bg-secondary rounded-lg border border-border overflow-x-auto max-h-80",children:(0,e.jsx)("code",{className:"text-xs font-mono whitespace-pre text-text-main",children:K()})}),(0,e.jsxs)("div",{className:"mt-3 p-3 bg-bg-secondary rounded-lg border border-border",children:[(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,e.jsx)("span",{className:"font-medium text-text-main",children:"Paste into: "}),(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:"~/.config/Code/User/chatLanguageModels.json"})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Then reload VS Code and set the API key in the input prompt."})]})]})]})})]})}g=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94638:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>C.default,__next_app__:()=>K,handler:()=>M,routeModule:()=>L});var d=c(7553),e=c(84006),f=c(67798),g=c(34775),h=c(99373),i=c(73461),j=c(1020),k=c(26349),l=c(54365),m=c(16023),n=c(63747),o=c(24235),p=c(23938),q=c(261),r=c(66758),s=c(77243),t=c(26713),u=c(37527),v=c(22820),w=c(88216),x=c(47929),y=c(79551),z=c(89125),A=c(86439),B=c(77068),C=c(81227),D=c(61287),E=c(81494),F=c(70722),G=c(70753),H=c(43954),I={};for(let a in D)0>["default","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(I[a]=()=>D[a]);c.d(b,I);let J={children:["",{children:["(dashboard)",{children:["dashboard",{children:["cli-tools",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,43482)),"/home/diegosouzapw/dev/proxys/9router/src/app/(dashboard)/dashboard/cli-tools/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,6676)),"/home/diegosouzapw/dev/proxys/9router/src/app/(dashboard)/layout.tsx"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,76537)),"/home/diegosouzapw/dev/proxys/9router/src/app/layout.tsx"],error:[()=>Promise.resolve().then(c.bind(c,64385)),"/home/diegosouzapw/dev/proxys/9router/src/app/error.tsx"],loading:[()=>Promise.resolve().then(c.bind(c,95127)),"/home/diegosouzapw/dev/proxys/9router/src/app/loading.tsx"],"global-error":[()=>Promise.resolve().then(c.bind(c,81227)),"/home/diegosouzapw/dev/proxys/9router/src/app/global-error.tsx"],"not-found":[()=>Promise.resolve().then(c.bind(c,8979)),"/home/diegosouzapw/dev/proxys/9router/src/app/not-found.tsx"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,K={require:c,loadChunk:()=>Promise.resolve()},L=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(dashboard)/dashboard/cli-tools/page",pathname:"/dashboard/cli-tools",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:J},distDir:".next",relativeProjectDir:""});async function M(a,b,d){var I;L.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let N=!!(0,h.getRequestMeta)(a,"minimalMode"),O="/(dashboard)/dashboard/cli-tools/page";"/index"===O&&(O="/");let P=await L.prepare(a,b,{srcPage:O,multiZoneDraftMode:!1});if(!P)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Q,query:R,params:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,parsedUrl:ae,interceptionRoutePatterns:af,deploymentId:ag}=P,ah=(0,q.normalizeAppPath)(O),{isOnDemandRevalidate:ai}=P,aj=ad.experimental.ppr&&!ad.cacheComponents&&(0,H.isInterceptionRouteAppPath)(aa)?null:L.match(aa,$),ak=!!$.routes[aa],al=a.headers["user-agent"]||"",am=(0,t.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],aq=(0,r.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr);if(!(0,h.getRequestMeta)(a,"postponed")&&ar&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let b=[];for await(let c of a)b.push(c);let c=Buffer.concat(b).toString("utf8");(0,h.addRequestMeta)(a,"postponed",c)}let as=ar&&(null==(I=$.routes[ah]??$.dynamicRoutes[ah])?void 0:I.renderingMode)==="PARTIALLY_STATIC",at=!1,au=!1,av=as?(0,h.getRequestMeta)(a,"postponed"):void 0,aw=as&&ap&&!ao;N&&(aw=aw&&!!av);let ax=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ay=(!an||!as)&&(!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots)),az=!!((aj||ak||$.routes[ah])&&!(an&&as)),aA=as&&!0===ad.cacheComponents,aB=!0===L.isDev||!az||"string"==typeof av||(aA&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aw&&!N:aw),aC=an&&as,aD=null;_||!az||aB||aq||av||aw||(aD=aa);let aE=aD;!aE&&L.isDev&&(aE=aa),L.isDev||_||!az||!ap||aw||(0,k.d)(a.headers);let aF={...D,tree:J,GlobalError:C.default,handler:M,routeModule:L,__next_app__:K};X&&Y&&(0,o.setManifestsSingleton)({page:O,clientReferenceManifest:Y,serverActionsManifest:X});let aG=a.method||"GET",aH=(0,g.getTracer)(),aI=aH.getActiveScopeSpan(),aJ=async()=>((null==ac?void 0:ac.render404)?await ac.render404(a,b,ae,!1):b.end("This page could not be found"),null);try{let f=L.getVaryHeader(aa,af);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return L.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aH.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aG} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aG} ${O}`)})},m=(0,h.getRequestMeta)(a,"incrementalCache"),o=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let l={query:R,params:S,page:ah,sharedContext:{buildId:Q},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aF,Component:(0,j.T)(aF),params:S,routeModule:L,page:O,postponed:f,shouldWaitOnAllReady:aC,serveStreamingMetadata:ay,supportsDynamicResponse:"string"==typeof f||aB,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,setCacheStatus:null==ac?void 0:ac.setCacheStatus,setIsrStatus:null==ac?void 0:ac.setIsrStatus,setReactDebugChannel:null==ac?void 0:ac.setReactDebugChannel,sendErrorsToBrowser:null==ac?void 0:ac.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),L.relativeProjectDir),isDraftMode:_,botType:am,isOnDemandRevalidate:ai,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,images:ad.images,previewProps:$.preview,deploymentId:ag,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:m,cacheLifeProfiles:ad.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...at||au?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:at}:{},cacheComponents:!!ad.cacheComponents,experimental:{isRoutePPREnabled:as,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[],clientParamParsingOrigins:ad.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,B.parseMaxPostponedStateSize)(ad.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>L.onRequestError(a,b,d,e,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:L.isDev}};at&&(l.renderOpts.nextExport=!0,l.renderOpts.supportsDynamicResponse=!1,l.renderOpts.isDebugDynamicAccesses=at),i&&(l.renderOpts.supportsDynamicResponse=!1);let n=await k(e,l),{metadata:o}=n,{cacheControl:p,headers:q={},fetchTags:r,fetchMetrics:s}=o;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,az&&(null==p?void 0:p.revalidate)===0&&!L.isDev&&!as){let a=o.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
16
|
-
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===L.isDev,q=c||b.writableEnded;if(ai&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(k=(0,v.parseFallbackField)(aj.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(al)&&(!as||an)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!N&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aE&&!q&&!_&&T&&(l||!ak)){if((l||aj)&&k===v.FallbackMode.NOT_FOUND){if(ad.experimental.adapterPath)return await aJ();throw new A.NoFallbackError}if(as&&(ad.cacheComponents?!aw:!ap)){let b=l&&"string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:ah,c=l&&(null==aj?void 0:aj.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,L):null,f=await L.handleResponse({cacheKey:b,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:as,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:N});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ai||g||!av?void 0:av;if(aA&&!N&&m&&aw&&!j){let b=await m.get(aa,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,G.scheduleOnNextTick)(async()=>{let b=L.getResponseCache(a);try{await b.revalidate(aa,m,as,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(at&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==aj?void 0:aj.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,L):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await L.handleResponse({cacheKey:aD,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil,isMinimalMode:N});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aD)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;az&&!aw&&(!n||ao)&&(N||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(av)l={revalidate:0,expire:void 0};else if(aw)l={revalidate:0,expire:void 0};else if(!L.isDev)if(_)l={revalidate:0,expire:void 0};else if(az){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];N&&az&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=aA?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(N&&az||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(N&&az&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ap&&as||(b.statusCode=q.status),!N&&q.status&&E.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),n&&!aw&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ad.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new F.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||N||ap)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:m.cacheControl});if(at)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aI)return await aH.withPropagatedContext(a.headers,()=>aH.trace(i.BaseServerSpan.handleRequest,{spanName:`${aG} ${O}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aG,"http.target":a.url}},q));await q(aI)}catch(b){throw b instanceof A.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:O,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:az,isOnDemandRevalidate:ai})},!1,ac),b}}},96877:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,hasActiveProviders:k,apiKeys:l,activeProviders:m,cloudEnabled:n,batchStatus:o,lastConfiguredAt:p}){let q=(0,j.c)("cliTools"),[r,s]=(0,f.useState)(null),[t,u]=(0,f.useState)(!1),[v,w]=(0,f.useState)(!1),[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(null),[B,C]=(0,f.useState)(""),[D,E]=(0,f.useState)(""),[F,G]=(0,f.useState)(!1),[H,I]=(0,f.useState)({}),[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)(""),N=(0,f.useRef)(!1),[O,P]=(0,f.useState)([]),[Q,R]=(0,f.useState)(!1),[S,T]=(0,f.useState)(null),U=!!(r?.installed&&r?.runnable),V=U?r.hasOmniRoute?"configured":"not_configured":null,W=V||o?.configStatus||null,X=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=kilo");if(a.ok){let b=await a.json();P(b.backups||[])}}catch{}},Y=async a=>{T(a);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"kilo",backupId:a})});if(b.ok)A({type:"success",text:q("backupRestoredReloading")}),await Z(),await X();else{let a=await b.json();A({type:"error",text:a.error||q("failedRestoreBackup")})}}catch(a){A({type:"error",text:a.message})}finally{T(null)}},Z=async()=>{u(!0);try{let a=await fetch("/api/cli-tools/kilo-settings"),b=await a.json();s(b)}catch(a){s({error:a.message})}finally{u(!1)}},$=async()=>{w(!0),A(null);try{let a=L||d||"http://localhost:20128",b=a.endsWith("/v1")?a:`${a}/v1`,c=await fetch("/api/cli-tools/kilo-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:b,apiKey:B||"sk_omniroute",model:D})}),e=await c.json();c.ok?(A({type:"success",text:e.message||q("applied")}),await Z(),await X()):A({type:"error",text:e.error||q("failed")})}catch(a){A({type:"error",text:a.message})}finally{w(!1)}},_=async()=>{y(!0),A(null);try{let a=await fetch("/api/cli-tools/kilo-settings",{method:"DELETE"}),b=await a.json();a.ok?(A({type:"success",text:b.message||q("resetDone")}),E(""),N.current=!1,await Z(),await X()):A({type:"error",text:b.error||q("failed")})}catch(a){A({type:"error",text:a.message})}finally{y(!1)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:a.image?(0,e.jsx)(h.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}}):(0,e.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:a.color},children:"terminal"})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:W,batchStatus:o,lastConfiguredAt:p})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:q("toolDescriptions.kilo")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-6 pt-6 border-t border-border",children:[t&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-sm",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-base",children:"progress_activity"}),(0,e.jsx)("span",{children:q("checkingCli",{tool:"Kilo Code"})})]}),r&&!t&&(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg border bg-bg-secondary/50 border-border",children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-lg ${U?"text-green-500":"text-yellow-500"}`,children:U?"check_circle":"warning"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm font-medium",children:U?q("cliDetectedReady",{tool:"Kilo Code"}):r.installed?q("cliNotRunnable",{tool:"Kilo Code"}):q("cliNotDetected",{tool:"Kilo Code"})}),r.commandPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[q("binary"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:r.commandPath})]}),r.authPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[q("auth"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:r.authPath})]})]})]}),U&&(0,e.jsxs)(e.Fragment,{children:["configured"===V&&(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-green-500/10 border border-green-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-green-500 text-lg",children:"check_circle"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm text-green-700 dark:text-green-300",children:q("omnirouteConfiguredOpenAiCompatible")}),(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[q("providers"),":"," ",(0,e.jsx)("strong",{children:r.settings?.auth?.join(", ")||"—"})]})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("label",{className:"text-sm text-text-muted",children:q("model")}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",value:D,onChange:a=>E(a.target.value),placeholder:q("providerModelPlaceholder"),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)(g.$n,{variant:"outline",size:"sm",onClick:()=>G(!0),disabled:!k,children:q("select")}),(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>K(!0),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"edit"})})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("label",{className:"text-sm text-text-muted",children:q("apiKey")}),l&&l.length>0?(0,e.jsx)("select",{value:B,onChange:a=>C(a.target.value),className:"px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("p",{className:"text-sm text-text-muted",children:n?q("noApiKeysAvailable"):q("usingDefaultOmniroute")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:$,disabled:!D,loading:v,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"configured"===V?q("updateConfig"):q("applyConfig")]}),"configured"===V&&(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:_,loading:x,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restart_alt"}),q("reset")]})]}),z&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm ${"success"===z.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"success"===z.type?"check_circle":"error"}),(0,e.jsx)("span",{children:z.text})]}),(0,e.jsxs)("div",{className:"border-t border-border pt-3 mt-1",children:[(0,e.jsxs)("button",{onClick:()=>R(!Q),className:"flex items-center gap-2 text-sm text-text-muted hover:text-text transition-colors",children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-[16px] transition-transform ${Q?"rotate-90":""}`,children:"chevron_right"}),(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"backup"}),q("backups")," ",O.length>0&&`(${O.length})`]}),Q&&O.length>0&&(0,e.jsx)("div",{className:"mt-2 flex flex-col gap-1.5 pl-6",children:O.map(a=>(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2 p-2 rounded bg-bg-secondary/50 text-xs",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("span",{className:"font-medium",children:a.originalFile}),(0,e.jsx)("span",{className:"text-text-muted",children:new Date(a.createdAt).toLocaleString()})]}),(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>Y(a.id),loading:S===a.id,children:q("restore")})]},a.id))}),Q&&0===O.length&&(0,e.jsx)("p",{className:"mt-2 pl-6 text-xs text-text-muted",children:q("noBackupsAvailable")})]})]})]})]}),(0,e.jsx)(g.rq,{isOpen:F,onClose:()=>G(!1),onSelect:a=>{E(a.value),G(!1)},selectedModel:D,activeProviders:m,title:q("selectModelForTool",{tool:"Kilo Code"})}),J&&(0,e.jsx)(g.uR,{isOpen:J,onClose:()=>K(!1),title:q("kiloManualConfiguration"),...{onApply:a=>{a.model&&E(a.model),a.apiKey&&C(a.apiKey),a.baseUrl&&M(a.baseUrl),K(!1)},currentConfig:{model:D,apiKey:B,baseUrl:L||d}}})]})}g=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})},99990:(a,b,c)=>{Promise.resolve().then(c.bind(c,37308))}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,595,5573,8020,6743,1465,438,2910,3596,9679,2901,2050,1909,3648,9548],()=>b(b.s=94638));module.exports=c})();
|
|
16
|
+
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===L.isDev,q=c||b.writableEnded;if(ai&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(k=(0,v.parseFallbackField)(aj.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(al)&&(!as||an)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!N&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aE&&!q&&!_&&T&&(l||!ak)){if((l||aj)&&k===v.FallbackMode.NOT_FOUND){if(ad.experimental.adapterPath)return await aJ();throw new A.NoFallbackError}if(as&&(ad.cacheComponents?!aw:!ap)){let b=l&&"string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:ah,c=l&&(null==aj?void 0:aj.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,L):null,f=await L.handleResponse({cacheKey:b,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:as,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:N});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ai||g||!av?void 0:av;if(aA&&!N&&m&&aw&&!j){let b=await m.get(aa,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,G.scheduleOnNextTick)(async()=>{let b=L.getResponseCache(a);try{await b.revalidate(aa,m,as,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(at&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==aj?void 0:aj.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,L):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await L.handleResponse({cacheKey:aD,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil,isMinimalMode:N});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aD)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;az&&!aw&&(!n||ao)&&(N||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(av)l={revalidate:0,expire:void 0};else if(aw)l={revalidate:0,expire:void 0};else if(!L.isDev)if(_)l={revalidate:0,expire:void 0};else if(az){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];N&&az&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=aA?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(N&&az||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(N&&az&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ap&&as||(b.statusCode=q.status),!N&&q.status&&E.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),n&&!aw&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ad.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new F.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||N||ap)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:m.cacheControl});if(at)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aI)return await aH.withPropagatedContext(a.headers,()=>aH.trace(i.BaseServerSpan.handleRequest,{spanName:`${aG} ${O}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aG,"http.target":a.url}},q));await q(aI)}catch(b){throw b instanceof A.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:O,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:az,isOnDemandRevalidate:ai})},!1,ac),b}}},96877:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>l});var e=c(48249),f=c(67484),g=c(19694),h=c(81220),i=c(35987),j=c(77360),k=a([g]);function l({tool:a,isExpanded:b,onToggle:c,baseUrl:d,hasActiveProviders:k,apiKeys:l,activeProviders:m,cloudEnabled:n,batchStatus:o,lastConfiguredAt:p}){let q=(0,j.c)("cliTools"),[r,s]=(0,f.useState)(null),[t,u]=(0,f.useState)(!1),[v,w]=(0,f.useState)(!1),[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(null),[B,C]=(0,f.useState)(""),[D,E]=(0,f.useState)(""),[F,G]=(0,f.useState)(!1),[H,I]=(0,f.useState)({}),[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)(""),N=(0,f.useRef)(!1),[O,P]=(0,f.useState)([]),[Q,R]=(0,f.useState)(!1),[S,T]=(0,f.useState)(null),U=!!(r?.installed&&r?.runnable),V=U?r.hasOmniRoute?"configured":"not_configured":null,W=V||o?.configStatus||null,X=async()=>{try{let a=await fetch("/api/cli-tools/backups?tool=kilo");if(a.ok){let b=await a.json();P(b.backups||[])}}catch{}},Y=async a=>{T(a);try{let b=await fetch("/api/cli-tools/backups",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"kilo",backupId:a})});if(b.ok)A({type:"success",text:q("backupRestoredReloading")}),await Z(),await X();else{let a=await b.json();A({type:"error",text:a.error||q("failedRestoreBackup")})}}catch(a){A({type:"error",text:a.message})}finally{T(null)}},Z=async()=>{u(!0);try{let a=await fetch("/api/cli-tools/kilo-settings"),b=await a.json();s(b)}catch(a){s({error:a.message})}finally{u(!1)}},$=async()=>{w(!0),A(null);try{let a=L||d||"http://localhost:20128",b=a.endsWith("/v1")?a:`${a}/v1`,c=await fetch("/api/cli-tools/kilo-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:b,apiKey:B||"sk_omniroute",model:D})}),e=await c.json();c.ok?(A({type:"success",text:e.message||q("applied")}),await Z(),await X()):A({type:"error",text:e.error||q("failed")})}catch(a){A({type:"error",text:a.message})}finally{w(!1)}},_=async()=>{y(!0),A(null);try{let a=await fetch("/api/cli-tools/kilo-settings",{method:"DELETE"}),b=await a.json();a.ok?(A({type:"success",text:b.message||q("resetDone")}),E(""),N.current=!1,await Z(),await X()):A({type:"error",text:b.error||q("failed")})}catch(a){A({type:"error",text:a.message})}finally{y(!1)}};return(0,e.jsxs)(g.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:a.image?(0,e.jsx)(h.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.currentTarget.style.display="none"}}):(0,e.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:a.color},children:"terminal"})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,e.jsx)(i.A,{effectiveConfigStatus:W,batchStatus:o,lastConfiguredAt:p})]}),(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:q("toolDescriptions.kilo")})]})]}),(0,e.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,e.jsxs)("div",{className:"mt-6 pt-6 border-t border-border",children:[t&&(0,e.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-sm",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-base",children:"progress_activity"}),(0,e.jsx)("span",{children:q("checkingCli",{tool:"Kilo Code"})})]}),r&&!t&&(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg border bg-bg-secondary/50 border-border",children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-lg ${U?"text-green-500":"text-yellow-500"}`,children:U?"check_circle":"warning"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm font-medium",children:U?q("cliDetectedReady",{tool:"Kilo Code"}):r.installed?q("cliNotRunnable",{tool:"Kilo Code"}):q("cliNotDetected",{tool:"Kilo Code"})}),r.commandPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[q("binary"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:r.commandPath})]}),r.authPath&&(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[q("auth"),":"," ",(0,e.jsx)("code",{className:"px-1 py-0.5 rounded bg-black/5 dark:bg-white/10",children:r.authPath})]})]})]}),U&&(0,e.jsxs)(e.Fragment,{children:["configured"===V&&(0,e.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-green-500/10 border border-green-500/30 rounded-lg",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-green-500 text-lg",children:"check_circle"}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("p",{className:"text-sm text-green-700 dark:text-green-300",children:q("omnirouteConfiguredOpenAiCompatible")}),(0,e.jsxs)("p",{className:"text-xs text-text-muted",children:[q("providers"),":"," ",(0,e.jsx)("strong",{children:r.settings?.auth?.join(", ")||"—"})]})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("label",{className:"text-sm text-text-muted",children:q("model")}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("input",{type:"text",value:D,onChange:a=>E(a.target.value),placeholder:q("providerModelPlaceholder"),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,e.jsx)(g.$n,{variant:"outline",size:"sm",onClick:()=>G(!0),disabled:!k,children:q("select")}),(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>K(!0),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"edit"})})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("label",{className:"text-sm text-text-muted",children:q("apiKey")}),l&&l.length>0?(0,e.jsx)("select",{value:B,onChange:a=>C(a.target.value),className:"px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,e.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,e.jsx)("p",{className:"text-sm text-text-muted",children:n?q("noApiKeysAvailable"):q("usingDefaultOmniroute")})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,e.jsxs)(g.$n,{variant:"primary",size:"sm",onClick:$,disabled:!D,loading:v,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"configured"===V?q("updateConfig"):q("applyConfig")]}),"configured"===V&&(0,e.jsxs)(g.$n,{variant:"outline",size:"sm",onClick:_,loading:x,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restart_alt"}),q("reset")]})]}),z&&(0,e.jsxs)("div",{className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm ${"success"===z.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"success"===z.type?"check_circle":"error"}),(0,e.jsx)("span",{children:z.text})]}),(0,e.jsxs)("div",{className:"border-t border-border pt-3 mt-1",children:[(0,e.jsxs)("button",{onClick:()=>R(!Q),className:"flex items-center gap-2 text-sm text-text-muted hover:text-text transition-colors",children:[(0,e.jsx)("span",{className:`material-symbols-outlined text-[16px] transition-transform ${Q?"rotate-90":""}`,children:"chevron_right"}),(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"backup"}),q("backups")," ",O.length>0&&`(${O.length})`]}),Q&&O.length>0&&(0,e.jsx)("div",{className:"mt-2 flex flex-col gap-1.5 pl-6",children:O.map(a=>(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2 p-2 rounded bg-bg-secondary/50 text-xs",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("span",{className:"font-medium",children:a.originalFile}),(0,e.jsx)("span",{className:"text-text-muted",children:new Date(a.createdAt).toLocaleString()})]}),(0,e.jsx)(g.$n,{variant:"ghost",size:"sm",onClick:()=>Y(a.id),loading:S===a.id,children:q("restore")})]},a.id))}),Q&&0===O.length&&(0,e.jsx)("p",{className:"mt-2 pl-6 text-xs text-text-muted",children:q("noBackupsAvailable")})]})]})]})]}),(0,e.jsx)(g.rq,{isOpen:F,onClose:()=>G(!1),onSelect:a=>{E(a.value),G(!1)},selectedModel:D,activeProviders:m,title:q("selectModelForTool",{tool:"Kilo Code"})}),J&&(0,e.jsx)(g.uR,{isOpen:J,onClose:()=>K(!1),title:q("kiloManualConfiguration"),...{onApply:a=>{a.model&&E(a.model),a.apiKey&&C(a.apiKey),a.baseUrl&&M(a.baseUrl),K(!1)},currentConfig:{model:D,apiKey:B,baseUrl:L||d}}})]})}g=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})},99990:(a,b,c)=>{Promise.resolve().then(c.bind(c,37308))}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,595,5573,8020,6743,1465,438,2910,3596,6440,6197,5585,2050,1909,3648,9548],()=>b(b.s=94638));module.exports=c})();
|