omniroute 2.7.4 → 2.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/build-manifest.json +2 -2
- package/app/.next/prerender-manifest.json +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/a2a/page_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/search-tools/page_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/400/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/401/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/403/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/408/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/429/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/500/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/502/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/503/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/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/docs/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/forbidden/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/forgot-password/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/maintenance/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/offline/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/status/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/terms/page_client-reference-manifest.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__09c944b3._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__12e1b68b._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__134baf4c._.js +4 -4
- package/app/.next/server/chunks/[root-of-the-server]__167585da._.js +2 -2
- package/app/.next/server/chunks/[root-of-the-server]__7d9b23e7._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__80e3bfc3._.js +2 -2
- package/app/.next/server/chunks/[root-of-the-server]__84e445b2._.js +2 -2
- package/app/.next/server/chunks/[root-of-the-server]__87186578._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__92cb0def._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__db2f9fe0._.js +1 -1
- package/app/.next/server/chunks/[root-of-the-server]__dc47ee64._.js +2 -2
- package/app/.next/server/chunks/[root-of-the-server]__f31b4656._.js +2 -2
- package/app/.next/server/chunks/[root-of-the-server]__fb5eab8e._.js +1 -1
- package/app/.next/server/chunks/_05c48915._.js +1 -1
- package/app/.next/server/chunks/_2115d8de._.js +1 -1
- package/app/.next/server/chunks/_3ac953eb._.js +1 -1
- package/app/.next/server/chunks/_4b8fd853._.js +1 -1
- package/app/.next/server/chunks/_68683848._.js +1 -1
- package/app/.next/server/chunks/_ee9b677b._.js +1 -1
- package/app/.next/server/chunks/ssr/[root-of-the-server]__8d4a4da8._.js +1 -1
- package/app/.next/server/chunks/ssr/[root-of-the-server]__9affb65e._.js +1 -1
- package/app/.next/server/chunks/ssr/[root-of-the-server]__a6942102._.js +1 -1
- package/app/.next/server/chunks/ssr/src_i18n_messages_en_json_c3d5c412._.js +1 -1
- 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/static/chunks/{4eac29888657dde8.css → 194dbd564ba7150b.css} +1 -1
- package/app/.next/static/chunks/{840a6d1e104f97ba.js → 2e988c0457b1a25f.js} +1 -1
- package/app/.next/static/chunks/{3f1871e2a825ff98.js → e28c38bcf2e8ef5f.js} +1 -1
- package/app/CHANGELOG.md +26 -0
- package/app/Dockerfile +4 -0
- package/app/docs/openapi.yaml +1 -1
- package/app/package-lock.json +2 -2
- package/app/package.json +1 -1
- package/app/src/app/api/v1/responses/route.ts +9 -12
- package/app/src/app/login/page.tsx +1 -0
- package/app/src/i18n/messages/en.json +2 -1
- package/app/src/shared/services/cliRuntime.ts +8 -1
- package/package.json +1 -1
- /package/app/.next/static/{hm_opvSDhYD2AkdUG_zpy → 0jU8vYxZrKFHgyr318QmU}/_buildManifest.js +0 -0
- /package/app/.next/static/{hm_opvSDhYD2AkdUG_zpy → 0jU8vYxZrKFHgyr318QmU}/_clientMiddlewareManifest.json +0 -0
- /package/app/.next/static/{hm_opvSDhYD2AkdUG_zpy → 0jU8vYxZrKFHgyr318QmU}/_ssgManifest.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/terms/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":339756,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":339756,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":837457,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":837457,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":347257,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":347257,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":768017,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":768017,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":897367,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":897367,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/src/app/global-error.tsx <module evaluation>":{"id":563491,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/src/app/global-error.tsx":{"id":563491,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/src/shared/components/ThemeProvider.tsx <module evaluation>":{"id":450222,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js"],"async":true},"[project]/src/shared/components/ThemeProvider.tsx":{"id":450222,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js"],"async":true},"[project]/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js <module evaluation>":{"id":175696,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js"],"async":false},"[project]/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js":{"id":175696,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js"],"async":false},"[project]/src/app/error.tsx <module evaluation>":{"id":758298,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/beeffe5f5394be33.js"],"async":false},"[project]/src/app/error.tsx":{"id":758298,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/beeffe5f5394be33.js"],"async":false},"[project]/src/app/loading.tsx <module evaluation>":{"id":790392,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/f79cbcb7ca904f94.js"],"async":false},"[project]/src/app/loading.tsx":{"id":790392,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/f79cbcb7ca904f94.js"],"async":false},"[project]/src/app/not-found.tsx <module evaluation>":{"id":329306,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/f51538785d2d89a5.js"],"async":false},"[project]/src/app/not-found.tsx":{"id":329306,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/f51538785d2d89a5.js"],"async":false},"[project]/node_modules/next/dist/client/app-dir/link.js <module evaluation>":{"id":522016,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/a53ec3f73e2e9d76.js"],"async":false},"[project]/node_modules/next/dist/client/app-dir/link.js":{"id":522016,"name":"*","chunks":["/_next/static/chunks/3f1871e2a825ff98.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/a53ec3f73e2e9d76.js"],"async":false}},"ssrModuleMapping":{"339756":{"*":{"id":802420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"837457":{"*":{"id":324017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"347257":{"*":{"id":877682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"92825":{"*":{"id":697296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"768017":{"*":{"id":861660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"27201":{"*":{"id":660704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"897367":{"*":{"id":990574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"563491":{"*":{"id":537006,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"450222":{"*":{"id":561487,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js"],"async":true}},"175696":{"*":{"id":588788,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js"],"async":false}},"758298":{"*":{"id":123953,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js","server/chunks/ssr/src_app_error_tsx_22278d09._.js"],"async":false}},"790392":{"*":{"id":42816,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js","server/chunks/ssr/src_9607843e._.js"],"async":false}},"329306":{"*":{"id":336394,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js","server/chunks/ssr/_8cfab48b._.js","server/chunks/ssr/node_modules_next_dist_c2965c68._.js"],"async":false}},"522016":{"*":{"id":238246,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js","server/chunks/ssr/node_modules_next_becc837c._.js","server/chunks/ssr/node_modules_next_dist_c2965c68._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"339756":{"*":{"id":926768,"name":"*","chunks":[],"async":false}},"837457":{"*":{"id":517910,"name":"*","chunks":[],"async":false}},"347257":{"*":{"id":292977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":348552,"name":"*","chunks":[],"async":false}},"768017":{"*":{"id":683919,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":340771,"name":"*","chunks":[],"async":false}},"897367":{"*":{"id":724150,"name":"*","chunks":[],"async":false}},"563491":{"*":{"id":530269,"name":"*","chunks":[],"async":false}},"450222":{"*":{"id":898658,"name":"*","chunks":[],"async":false}},"175696":{"*":{"id":152265,"name":"*","chunks":[],"async":false}},"758298":{"*":{"id":780257,"name":"*","chunks":[],"async":false}},"790392":{"*":{"id":562386,"name":"*","chunks":[],"async":false}},"329306":{"*":{"id":204145,"name":"*","chunks":[],"async":false}},"522016":{"*":{"id":784707,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/global-error":[],"[project]/src/app/layout":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/4eac29888657dde8.css","inlined":false}],"[project]/src/app/error":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/4eac29888657dde8.css","inlined":false}],"[project]/src/app/loading":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/4eac29888657dde8.css","inlined":false}],"[project]/src/app/not-found":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/4eac29888657dde8.css","inlined":false}],"[project]/src/app/terms/page":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/4eac29888657dde8.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/global-error":["static/chunks/d245df73b72378fb.js","static/chunks/16ea27c3b926bc31.js"],"[project]/src/app/layout":["static/chunks/3f1871e2a825ff98.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js"],"[project]/src/app/error":["static/chunks/3f1871e2a825ff98.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js","static/chunks/beeffe5f5394be33.js"],"[project]/src/app/loading":["static/chunks/3f1871e2a825ff98.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js","static/chunks/f79cbcb7ca904f94.js"],"[project]/src/app/not-found":["static/chunks/3f1871e2a825ff98.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js","static/chunks/f51538785d2d89a5.js"],"[project]/src/app/terms/page":["static/chunks/3f1871e2a825ff98.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js","static/chunks/a53ec3f73e2e9d76.js"]}}
|
|
2
|
+
globalThis.__RSC_MANIFEST["/terms/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":339756,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":339756,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":837457,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":837457,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":347257,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":347257,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":768017,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":768017,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":897367,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":897367,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/src/app/global-error.tsx <module evaluation>":{"id":563491,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/src/app/global-error.tsx":{"id":563491,"name":"*","chunks":["/_next/static/chunks/d245df73b72378fb.js","/_next/static/chunks/16ea27c3b926bc31.js"],"async":false},"[project]/src/shared/components/ThemeProvider.tsx <module evaluation>":{"id":450222,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js"],"async":true},"[project]/src/shared/components/ThemeProvider.tsx":{"id":450222,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js"],"async":true},"[project]/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js <module evaluation>":{"id":175696,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js"],"async":false},"[project]/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js":{"id":175696,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js"],"async":false},"[project]/src/app/error.tsx <module evaluation>":{"id":758298,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/beeffe5f5394be33.js"],"async":false},"[project]/src/app/error.tsx":{"id":758298,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/beeffe5f5394be33.js"],"async":false},"[project]/src/app/loading.tsx <module evaluation>":{"id":790392,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/f79cbcb7ca904f94.js"],"async":false},"[project]/src/app/loading.tsx":{"id":790392,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/f79cbcb7ca904f94.js"],"async":false},"[project]/src/app/not-found.tsx <module evaluation>":{"id":329306,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/f51538785d2d89a5.js"],"async":false},"[project]/src/app/not-found.tsx":{"id":329306,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/f51538785d2d89a5.js"],"async":false},"[project]/node_modules/next/dist/client/app-dir/link.js <module evaluation>":{"id":522016,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/a53ec3f73e2e9d76.js"],"async":false},"[project]/node_modules/next/dist/client/app-dir/link.js":{"id":522016,"name":"*","chunks":["/_next/static/chunks/e28c38bcf2e8ef5f.js","/_next/static/chunks/accd0bcf88c30a90.js","/_next/static/chunks/3073ed4e47d4d993.js","/_next/static/chunks/a53ec3f73e2e9d76.js"],"async":false}},"ssrModuleMapping":{"339756":{"*":{"id":802420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"837457":{"*":{"id":324017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"347257":{"*":{"id":877682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"92825":{"*":{"id":697296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"768017":{"*":{"id":861660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"27201":{"*":{"id":660704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"897367":{"*":{"id":990574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"563491":{"*":{"id":537006,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9a0bc6cc._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"450222":{"*":{"id":561487,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js"],"async":true}},"175696":{"*":{"id":588788,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js"],"async":false}},"758298":{"*":{"id":123953,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js","server/chunks/ssr/src_app_error_tsx_22278d09._.js"],"async":false}},"790392":{"*":{"id":42816,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js","server/chunks/ssr/src_9607843e._.js"],"async":false}},"329306":{"*":{"id":336394,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js","server/chunks/ssr/_8cfab48b._.js","server/chunks/ssr/node_modules_next_dist_c2965c68._.js"],"async":false}},"522016":{"*":{"id":238246,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__9affb65e._.js","server/chunks/ssr/node_modules_use-intl_dist_esm_production_react_ca139740.js","server/chunks/ssr/_19b3d5b1._.js","server/chunks/ssr/node_modules_next_becc837c._.js","server/chunks/ssr/node_modules_next_dist_c2965c68._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"339756":{"*":{"id":926768,"name":"*","chunks":[],"async":false}},"837457":{"*":{"id":517910,"name":"*","chunks":[],"async":false}},"347257":{"*":{"id":292977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":348552,"name":"*","chunks":[],"async":false}},"768017":{"*":{"id":683919,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":340771,"name":"*","chunks":[],"async":false}},"897367":{"*":{"id":724150,"name":"*","chunks":[],"async":false}},"563491":{"*":{"id":530269,"name":"*","chunks":[],"async":false}},"450222":{"*":{"id":898658,"name":"*","chunks":[],"async":false}},"175696":{"*":{"id":152265,"name":"*","chunks":[],"async":false}},"758298":{"*":{"id":780257,"name":"*","chunks":[],"async":false}},"790392":{"*":{"id":562386,"name":"*","chunks":[],"async":false}},"329306":{"*":{"id":204145,"name":"*","chunks":[],"async":false}},"522016":{"*":{"id":784707,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/global-error":[],"[project]/src/app/layout":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/194dbd564ba7150b.css","inlined":false}],"[project]/src/app/error":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/194dbd564ba7150b.css","inlined":false}],"[project]/src/app/loading":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/194dbd564ba7150b.css","inlined":false}],"[project]/src/app/not-found":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/194dbd564ba7150b.css","inlined":false}],"[project]/src/app/terms/page":[{"path":"static/chunks/665dc3aa4aa2d85c.css","inlined":false},{"path":"static/chunks/194dbd564ba7150b.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/global-error":["static/chunks/d245df73b72378fb.js","static/chunks/16ea27c3b926bc31.js"],"[project]/src/app/layout":["static/chunks/e28c38bcf2e8ef5f.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js"],"[project]/src/app/error":["static/chunks/e28c38bcf2e8ef5f.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js","static/chunks/beeffe5f5394be33.js"],"[project]/src/app/loading":["static/chunks/e28c38bcf2e8ef5f.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js","static/chunks/f79cbcb7ca904f94.js"],"[project]/src/app/not-found":["static/chunks/e28c38bcf2e8ef5f.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js","static/chunks/f51538785d2d89a5.js"],"[project]/src/app/terms/page":["static/chunks/e28c38bcf2e8ef5f.js","static/chunks/accd0bcf88c30a90.js","static/chunks/3073ed4e47d4d993.js","static/chunks/a53ec3f73e2e9d76.js"]}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[918622,(e,t,i)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,i)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,i)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,i)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,i)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,i)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,i)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,i)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,i)=>{"use strict";var r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,n={},c={RequestCookies:()=>y,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>u,stringifyCookie:()=>p};for(var l in c)r(n,l,{get:c[l],enumerable:!0});function p(e){var t;let i=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),r=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===i.length?r:`${r}; ${i.join("; ")}`}function d(e){let t=new Map;for(let i of e.split(/; */)){if(!i)continue;let e=i.indexOf("=");if(-1===e){t.set(i,"true");continue}let[r,s]=[i.slice(0,e),i.slice(e+1)];try{t.set(r,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function u(e){if(!e)return;let[[t,i],...r]=d(e),{domain:s,expires:o,httponly:a,maxage:n,path:c,samesite:l,secure:p,partitioned:u,priority:y}=Object.fromEntries(r.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,x,b={name:t,value:decodeURIComponent(i),domain:s,...o&&{expires:new Date(o)},...a&&{httpOnly:!0},..."string"==typeof n&&{maxAge:Number(n)},path:c,...l&&{sameSite:m.includes(g=(g=l).toLowerCase())?g:void 0},...p&&{secure:!0},...y&&{priority:h.includes(x=(x=y).toLowerCase())?x:void 0},...u&&{partitioned:!0}};let e={};for(let t in b)b[t]&&(e[t]=b[t]);return e}}t.exports=((e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of o(t))a.call(e,i)||void 0===i||r(e,i,{get:()=>t[i],enumerable:!(n=s(t,i))||n.enumerable});return e})(r({},"__esModule",{value:!0}),n);var m=["strict","lax","none"],h=["low","medium","high"],y=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,i]of d(t))this._parsed.set(e,{name:e,value:i})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed);if(!e.length)return i.map(([e,t])=>t);let r="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(([e])=>e===r).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,i]=1===e.length?[e[0].name,e[0].value]:e,r=this._parsed;return r.set(t,{name:t,value:i}),this._headers.set("cookie",Array.from(r).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,i=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),i}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,i,r;this._parsed=new Map,this._headers=e;const s=null!=(r=null!=(i=null==(t=e.getSetCookie)?void 0:t.call(e))?i:e.get("set-cookie"))?r:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,i,r,s,o,a=[],n=0;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}for(;n<e.length;){for(t=n,o=!1;c();)if(","===(i=e.charAt(n))){for(r=n,n+=1,c(),s=n;n<e.length&&"="!==(i=e.charAt(n))&&";"!==i&&","!==i;)n+=1;n<e.length&&"="===e.charAt(n)?(o=!0,n=s,a.push(e.substring(t,r)),t=n):n=r+1}else n+=1;(!o||n>=e.length)&&a.push(e.substring(t,e.length))}return a}(s)){const t=u(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed.values());if(!e.length)return i;let r="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(e=>e.name===r)}has(e){return this._parsed.has(e)}set(...e){let[t,i,r]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:i,...r})),function(e,t){for(let[,i]of(t.delete("set-cookie"),e)){let e=p(i);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,i]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...i,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},677850,e=>e.a(async(t,i)=>{try{let t=await e.y("zod");e.n(t),i()}catch(e){i(e)}},!0),804730,e=>{e.v({name:"omniroute",version:"2.7.4",description:"Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.",type:"module",bin:{omniroute:"bin/omniroute.mjs","omniroute-reset-password":"bin/reset-password.mjs"},files:["bin/","app/","open-sse/mcp-server/","src/shared/contracts/","scripts/postinstall.mjs","scripts/native-binary-compat.mjs","README.md","LICENSE"],workspaces:["open-sse"],engines:{node:">=18.0.0 <24.0.0"},keywords:["ai","router","proxy","openai","claude","anthropic","gemini","fallback","cursor","cline","codex","llm","auto-fallback"],license:"MIT",author:"diegosouzapw",repository:{type:"git",url:"https://github.com/diegosouzapw/OmniRoute"},homepage:"https://omniroute.online",scripts:{dev:"node scripts/run-next.mjs dev",build:"next build","build:cli":"node scripts/prepublish.mjs",start:"node scripts/run-next.mjs start",lint:"eslint .","electron:dev":'concurrently "npm run dev" "wait-on http://localhost:20128 && cd electron && npm run dev"',"electron:build":"npm run build && cd electron && npm run build","electron:build:win":"npm run build && cd electron && npm run build:win","electron:build:mac":"npm run build && cd electron && npm run build:mac","electron:build:linux":"npm run build && cd electron && npm run build:linux",test:"node --import tsx/esm --test tests/unit/*.test.mjs","test:unit":"node --import tsx/esm --test tests/unit/*.test.mjs","test:plan3":"node --import tsx/esm --test tests/unit/plan3-p0.test.mjs","test:fixes":"node --import tsx/esm --test tests/unit/fixes-p1.test.mjs","test:security":"node --import tsx/esm --test tests/unit/security-fase01.test.mjs","check:cycles":"node scripts/check-cycles.mjs","check:route-validation:t06":"node scripts/check-route-validation.mjs","check:any-budget:t11":"node scripts/check-t11-any-budget.mjs","check:docs-sync":"node scripts/check-docs-sync.mjs","typecheck:core":"tsc --pretty false -p tsconfig.typecheck-core.json","typecheck:noimplicit:core":"tsc --pretty false -p tsconfig.typecheck-noimplicit-core.json","test:integration":"node --import tsx/esm --test tests/integration/*.test.mjs","test:e2e":"node scripts/run-playwright-tests.mjs test tests/e2e/*.spec.ts","test:protocols:e2e":"node scripts/run-protocol-clients-tests.mjs","test:vitest":"vitest run open-sse/mcp-server/__tests__/*.test.ts open-sse/services/autoCombo/__tests__/*.test.ts","test:ecosystem":"node scripts/run-ecosystem-tests.mjs","test:coverage":"npx c8 --exclude=open-sse --check-coverage --lines 50 --functions 50 --branches 50 node --import tsx/esm --test tests/unit/*.test.mjs","test:all":"npm run test:unit && npm run test:vitest && npm run test:ecosystem && npm run test:e2e",check:"npm run lint && npm run test",prepublishOnly:"npm run build:cli",postinstall:"node scripts/postinstall.mjs",prepare:"husky","system-info":"node scripts/system-info.mjs"},dependencies:{"@modelcontextprotocol/sdk":"^1.27.1","@monaco-editor/react":"^4.7.0",bcryptjs:"^3.0.3","better-sqlite3":"^12.6.2",bottleneck:"^2.19.5",dompurify:"^3.3.2",express:"^5.2.1","fetch-socks":"^1.3.2","http-proxy-middleware":"^3.0.5","https-proxy-agent":"^8.0.0",jose:"^6.1.3",lowdb:"^7.0.1","monaco-editor":"^0.55.1",next:"^16.1.6","next-intl":"^4.8.3","node-machine-id":"^1.1.12",open:"^11.0.0",ora:"^9.1.0",pino:"^10.3.1","pino-pretty":"^13.1.3",react:"19.2.4","react-dom":"19.2.4",recharts:"^3.7.0",selfsigned:"^5.5.0",tsx:"^4.21.0",undici:"^7.19.2",uuid:"^13.0.0","wreq-js":"^2.0.1",zod:"^4.3.6",zustand:"^5.0.10","@swc/helpers":"0.5.19"},devDependencies:{"@playwright/test":"^1.58.2","@tailwindcss/postcss":"^4.1.18","@types/bcryptjs":"^3.0.0","@types/better-sqlite3":"^7.6.13","@types/node":"^25.2.3","@types/react":"^19.2.14","@types/react-dom":"^19.2.3",concurrently:"^9.2.1","cross-env":"^10.1.0",eslint:"^9.39.2","eslint-config-next":"16.1.6",husky:"^9.1.7","lint-staged":"^16.2.7",prettier:"^3.8.1",tailwindcss:"^4",typescript:"^5.9.3","typescript-eslint":"^8.56.0",vitest:"^4.0.18","wait-on":"^9.0.4"},"lint-staged":{"*.{js,jsx,ts,tsx,mjs}":["prettier --write","eslint --fix --no-error-on-unmatched-pattern"],"*.{json,md,yml,yaml,css}":["prettier --write"]},pnpm:{onlyBuiltDependencies:["@parcel/watcher","@swc/core","better-sqlite3","esbuild","omniroute","sharp"]}})},102835,e=>e.a(async(t,i)=>{try{var r=e.i(677850),s=t([r]);[r]=s.then?(await s)():s;let a=r.z.object({id:r.z.string().min(1),alias:r.z.string().min(1),name:r.z.string().min(1),icon:r.z.string().min(1),color:r.z.string().regex(/^#[0-9A-Fa-f]{6}$/,"Must be a valid hex color (#RRGGBB)"),textIcon:r.z.string().optional(),website:r.z.string().url().optional(),passthroughModels:r.z.boolean().optional()}),n=r.z.record(r.z.string(),a);function o(e,t){let i=n.safeParse(e);if(!i.success){let e=i.error.issues.map(e=>` ${e.path.join(".")}: ${e.message}`).join("\n");throw console.error(`[PROVIDER VALIDATION] ${t} has invalid entries:
|
|
1
|
+
module.exports=[918622,(e,t,i)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,i)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,i)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,i)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,i)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,i)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,i)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,i)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,i)=>{"use strict";var r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,n={},c={RequestCookies:()=>y,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>u,stringifyCookie:()=>p};for(var l in c)r(n,l,{get:c[l],enumerable:!0});function p(e){var t;let i=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),r=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===i.length?r:`${r}; ${i.join("; ")}`}function d(e){let t=new Map;for(let i of e.split(/; */)){if(!i)continue;let e=i.indexOf("=");if(-1===e){t.set(i,"true");continue}let[r,s]=[i.slice(0,e),i.slice(e+1)];try{t.set(r,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function u(e){if(!e)return;let[[t,i],...r]=d(e),{domain:s,expires:o,httponly:a,maxage:n,path:c,samesite:l,secure:p,partitioned:u,priority:y}=Object.fromEntries(r.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,x,b={name:t,value:decodeURIComponent(i),domain:s,...o&&{expires:new Date(o)},...a&&{httpOnly:!0},..."string"==typeof n&&{maxAge:Number(n)},path:c,...l&&{sameSite:m.includes(g=(g=l).toLowerCase())?g:void 0},...p&&{secure:!0},...y&&{priority:h.includes(x=(x=y).toLowerCase())?x:void 0},...u&&{partitioned:!0}};let e={};for(let t in b)b[t]&&(e[t]=b[t]);return e}}t.exports=((e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of o(t))a.call(e,i)||void 0===i||r(e,i,{get:()=>t[i],enumerable:!(n=s(t,i))||n.enumerable});return e})(r({},"__esModule",{value:!0}),n);var m=["strict","lax","none"],h=["low","medium","high"],y=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,i]of d(t))this._parsed.set(e,{name:e,value:i})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed);if(!e.length)return i.map(([e,t])=>t);let r="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(([e])=>e===r).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,i]=1===e.length?[e[0].name,e[0].value]:e,r=this._parsed;return r.set(t,{name:t,value:i}),this._headers.set("cookie",Array.from(r).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,i=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),i}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,i,r;this._parsed=new Map,this._headers=e;const s=null!=(r=null!=(i=null==(t=e.getSetCookie)?void 0:t.call(e))?i:e.get("set-cookie"))?r:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,i,r,s,o,a=[],n=0;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}for(;n<e.length;){for(t=n,o=!1;c();)if(","===(i=e.charAt(n))){for(r=n,n+=1,c(),s=n;n<e.length&&"="!==(i=e.charAt(n))&&";"!==i&&","!==i;)n+=1;n<e.length&&"="===e.charAt(n)?(o=!0,n=s,a.push(e.substring(t,r)),t=n):n=r+1}else n+=1;(!o||n>=e.length)&&a.push(e.substring(t,e.length))}return a}(s)){const t=u(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed.values());if(!e.length)return i;let r="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(e=>e.name===r)}has(e){return this._parsed.has(e)}set(...e){let[t,i,r]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:i,...r})),function(e,t){for(let[,i]of(t.delete("set-cookie"),e)){let e=p(i);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,i]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...i,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},677850,e=>e.a(async(t,i)=>{try{let t=await e.y("zod");e.n(t),i()}catch(e){i(e)}},!0),804730,e=>{e.v({name:"omniroute",version:"2.7.7",description:"Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.",type:"module",bin:{omniroute:"bin/omniroute.mjs","omniroute-reset-password":"bin/reset-password.mjs"},files:["bin/","app/","open-sse/mcp-server/","src/shared/contracts/","scripts/postinstall.mjs","scripts/native-binary-compat.mjs","README.md","LICENSE"],workspaces:["open-sse"],engines:{node:">=18.0.0 <24.0.0"},keywords:["ai","router","proxy","openai","claude","anthropic","gemini","fallback","cursor","cline","codex","llm","auto-fallback"],license:"MIT",author:"diegosouzapw",repository:{type:"git",url:"https://github.com/diegosouzapw/OmniRoute"},homepage:"https://omniroute.online",scripts:{dev:"node scripts/run-next.mjs dev",build:"next build","build:cli":"node scripts/prepublish.mjs",start:"node scripts/run-next.mjs start",lint:"eslint .","electron:dev":'concurrently "npm run dev" "wait-on http://localhost:20128 && cd electron && npm run dev"',"electron:build":"npm run build && cd electron && npm run build","electron:build:win":"npm run build && cd electron && npm run build:win","electron:build:mac":"npm run build && cd electron && npm run build:mac","electron:build:linux":"npm run build && cd electron && npm run build:linux",test:"node --import tsx/esm --test tests/unit/*.test.mjs","test:unit":"node --import tsx/esm --test tests/unit/*.test.mjs","test:plan3":"node --import tsx/esm --test tests/unit/plan3-p0.test.mjs","test:fixes":"node --import tsx/esm --test tests/unit/fixes-p1.test.mjs","test:security":"node --import tsx/esm --test tests/unit/security-fase01.test.mjs","check:cycles":"node scripts/check-cycles.mjs","check:route-validation:t06":"node scripts/check-route-validation.mjs","check:any-budget:t11":"node scripts/check-t11-any-budget.mjs","check:docs-sync":"node scripts/check-docs-sync.mjs","typecheck:core":"tsc --pretty false -p tsconfig.typecheck-core.json","typecheck:noimplicit:core":"tsc --pretty false -p tsconfig.typecheck-noimplicit-core.json","test:integration":"node --import tsx/esm --test tests/integration/*.test.mjs","test:e2e":"node scripts/run-playwright-tests.mjs test tests/e2e/*.spec.ts","test:protocols:e2e":"node scripts/run-protocol-clients-tests.mjs","test:vitest":"vitest run open-sse/mcp-server/__tests__/*.test.ts open-sse/services/autoCombo/__tests__/*.test.ts","test:ecosystem":"node scripts/run-ecosystem-tests.mjs","test:coverage":"npx c8 --exclude=open-sse --check-coverage --lines 50 --functions 50 --branches 50 node --import tsx/esm --test tests/unit/*.test.mjs","test:all":"npm run test:unit && npm run test:vitest && npm run test:ecosystem && npm run test:e2e",check:"npm run lint && npm run test",prepublishOnly:"npm run build:cli",postinstall:"node scripts/postinstall.mjs",prepare:"husky","system-info":"node scripts/system-info.mjs"},dependencies:{"@modelcontextprotocol/sdk":"^1.27.1","@monaco-editor/react":"^4.7.0",bcryptjs:"^3.0.3","better-sqlite3":"^12.6.2",bottleneck:"^2.19.5",dompurify:"^3.3.2",express:"^5.2.1","fetch-socks":"^1.3.2","http-proxy-middleware":"^3.0.5","https-proxy-agent":"^8.0.0",jose:"^6.1.3",lowdb:"^7.0.1","monaco-editor":"^0.55.1",next:"^16.1.6","next-intl":"^4.8.3","node-machine-id":"^1.1.12",open:"^11.0.0",ora:"^9.1.0",pino:"^10.3.1","pino-pretty":"^13.1.3",react:"19.2.4","react-dom":"19.2.4",recharts:"^3.7.0",selfsigned:"^5.5.0",tsx:"^4.21.0",undici:"^7.19.2",uuid:"^13.0.0","wreq-js":"^2.0.1",zod:"^4.3.6",zustand:"^5.0.10","@swc/helpers":"0.5.19"},devDependencies:{"@playwright/test":"^1.58.2","@tailwindcss/postcss":"^4.1.18","@types/bcryptjs":"^3.0.0","@types/better-sqlite3":"^7.6.13","@types/node":"^25.2.3","@types/react":"^19.2.14","@types/react-dom":"^19.2.3",concurrently:"^9.2.1","cross-env":"^10.1.0",eslint:"^9.39.2","eslint-config-next":"16.1.6",husky:"^9.1.7","lint-staged":"^16.2.7",prettier:"^3.8.1",tailwindcss:"^4",typescript:"^5.9.3","typescript-eslint":"^8.56.0",vitest:"^4.0.18","wait-on":"^9.0.4"},"lint-staged":{"*.{js,jsx,ts,tsx,mjs}":["prettier --write","eslint --fix --no-error-on-unmatched-pattern"],"*.{json,md,yml,yaml,css}":["prettier --write"]},pnpm:{onlyBuiltDependencies:["@parcel/watcher","@swc/core","better-sqlite3","esbuild","omniroute","sharp"]}})},102835,e=>e.a(async(t,i)=>{try{var r=e.i(677850),s=t([r]);[r]=s.then?(await s)():s;let a=r.z.object({id:r.z.string().min(1),alias:r.z.string().min(1),name:r.z.string().min(1),icon:r.z.string().min(1),color:r.z.string().regex(/^#[0-9A-Fa-f]{6}$/,"Must be a valid hex color (#RRGGBB)"),textIcon:r.z.string().optional(),website:r.z.string().url().optional(),passthroughModels:r.z.boolean().optional()}),n=r.z.record(r.z.string(),a);function o(e,t){let i=n.safeParse(e);if(!i.success){let e=i.error.issues.map(e=>` ${e.path.join(".")}: ${e.message}`).join("\n");throw console.error(`[PROVIDER VALIDATION] ${t} has invalid entries:
|
|
2
2
|
${e}`),Error(`Provider validation failed for ${t}`)}}e.s(["validateProviders",()=>o]),i()}catch(e){i(e)}},!1),963219,e=>e.a(async(t,i)=>{try{var r=e.i(102835),s=t([r]);[r]=s.then?(await s)():s;let n={iflow:{id:"iflow",alias:"if",name:"iFlow AI",icon:"water_drop",color:"#6366F1"},qwen:{id:"qwen",alias:"qw",name:"Qwen Code",icon:"psychology",color:"#10B981"},"gemini-cli":{id:"gemini-cli",alias:"gc",name:"Gemini CLI",icon:"terminal",color:"#4285F4"},kiro:{id:"kiro",alias:"kr",name:"Kiro AI",icon:"psychology_alt",color:"#FF6B35"}},c={claude:{id:"claude",alias:"cc",name:"Claude Code",icon:"smart_toy",color:"#D97757"},antigravity:{id:"antigravity",alias:"ag",name:"Antigravity",icon:"rocket_launch",color:"#F59E0B"},codex:{id:"codex",alias:"cx",name:"OpenAI Codex",icon:"code",color:"#3B82F6"},github:{id:"github",alias:"gh",name:"GitHub Copilot",icon:"code",color:"#333333"},cursor:{id:"cursor",alias:"cu",name:"Cursor IDE",icon:"edit_note",color:"#00D4AA"},"kimi-coding":{id:"kimi-coding",alias:"kmc",name:"Kimi Coding",icon:"psychology",color:"#1E40AF",textIcon:"KC"},kilocode:{id:"kilocode",alias:"kc",name:"Kilo Code",icon:"code",color:"#FF6B35",textIcon:"KC"},cline:{id:"cline",alias:"cl",name:"Cline",icon:"smart_toy",color:"#5B9BD5",textIcon:"CL"}},l={openrouter:{id:"openrouter",alias:"openrouter",name:"OpenRouter",icon:"router",color:"#F97316",textIcon:"OR",passthroughModels:!0,website:"https://openrouter.ai"},glm:{id:"glm",alias:"glm",name:"GLM Coding",icon:"code",color:"#2563EB",textIcon:"GL",website:"https://open.bigmodel.cn"},kimi:{id:"kimi",alias:"kimi",name:"Kimi",icon:"psychology",color:"#1E3A8A",textIcon:"KM",website:"https://kimi.moonshot.cn"},minimax:{id:"minimax",alias:"minimax",name:"Minimax Coding",icon:"memory",color:"#7C3AED",textIcon:"MM",website:"https://www.minimaxi.com"},"minimax-cn":{id:"minimax-cn",alias:"minimax-cn",name:"Minimax (China)",icon:"memory",color:"#DC2626",textIcon:"MC",website:"https://www.minimaxi.com"},openai:{id:"openai",alias:"openai",name:"OpenAI",icon:"auto_awesome",color:"#10A37F",textIcon:"OA",website:"https://platform.openai.com"},anthropic:{id:"anthropic",alias:"anthropic",name:"Anthropic",icon:"smart_toy",color:"#D97757",textIcon:"AN",website:"https://console.anthropic.com"},gemini:{id:"gemini",alias:"gemini",name:"Gemini",icon:"diamond",color:"#4285F4",textIcon:"GE",website:"https://ai.google.dev"},deepseek:{id:"deepseek",alias:"ds",name:"DeepSeek",icon:"bolt",color:"#4D6BFE",textIcon:"DS",website:"https://deepseek.com"},groq:{id:"groq",alias:"groq",name:"Groq",icon:"speed",color:"#F55036",textIcon:"GQ",website:"https://groq.com",hasFree:!0,freeNote:"Free tier: 30 RPM / 14.4K RPD — no credit card"},blackbox:{id:"blackbox",alias:"bb",name:"Blackbox AI",icon:"view_in_ar",color:"#1A1A2E",textIcon:"BB",website:"https://blackbox.ai"},xai:{id:"xai",alias:"xai",name:"xAI (Grok)",icon:"auto_awesome",color:"#1DA1F2",textIcon:"XA",website:"https://x.ai"},mistral:{id:"mistral",alias:"mistral",name:"Mistral",icon:"air",color:"#FF7000",textIcon:"MI",website:"https://mistral.ai"},perplexity:{id:"perplexity",alias:"pplx",name:"Perplexity",icon:"search",color:"#20808D",textIcon:"PP",website:"https://www.perplexity.ai"},together:{id:"together",alias:"together",name:"Together AI",icon:"group_work",color:"#0F6FFF",textIcon:"TG",website:"https://www.together.ai"},fireworks:{id:"fireworks",alias:"fireworks",name:"Fireworks AI",icon:"local_fire_department",color:"#7B2EF2",textIcon:"FW",website:"https://fireworks.ai"},cerebras:{id:"cerebras",alias:"cerebras",name:"Cerebras",icon:"memory",color:"#FF4F00",textIcon:"CB",website:"https://inference.cerebras.ai",hasFree:!0,freeNote:"Free: 1M tokens/day, 60K TPM — world's fastest inference"},cohere:{id:"cohere",alias:"cohere",name:"Cohere",icon:"hub",color:"#39594D",textIcon:"CO",website:"https://cohere.com"},nvidia:{id:"nvidia",alias:"nvidia",name:"NVIDIA NIM",icon:"developer_board",color:"#76B900",textIcon:"NV",website:"https://build.nvidia.com",hasFree:!0,freeNote:"Free dev access: ~40 RPM, 70+ models (Kimi K2.5, GLM 4.7, DeepSeek V3.2...)"},nebius:{id:"nebius",alias:"nebius",name:"Nebius AI",icon:"cloud",color:"#6C5CE7",textIcon:"NB",website:"https://nebius.com"},siliconflow:{id:"siliconflow",alias:"siliconflow",name:"SiliconFlow",icon:"cloud_queue",color:"#5B6EF5",textIcon:"SF",website:"https://cloud.siliconflow.com"},hyperbolic:{id:"hyperbolic",alias:"hyp",name:"Hyperbolic",icon:"bolt",color:"#00D4FF",textIcon:"HY",website:"https://hyperbolic.xyz"},deepgram:{id:"deepgram",alias:"dg",name:"Deepgram",icon:"mic",color:"#13EF93",textIcon:"DG",website:"https://deepgram.com"},assemblyai:{id:"assemblyai",alias:"aai",name:"AssemblyAI",icon:"record_voice_over",color:"#0062FF",textIcon:"AA",website:"https://assemblyai.com"},nanobanana:{id:"nanobanana",alias:"nb",name:"NanoBanana",icon:"image",color:"#FFD700",textIcon:"NB",website:"https://nanobananaapi.ai"},"ollama-cloud":{id:"ollama-cloud",alias:"ollamacloud",name:"Ollama Cloud",icon:"cloud",color:"#58A6FF",textIcon:"OC",website:"https://ollama.com/settings/api-keys"},elevenlabs:{id:"elevenlabs",alias:"el",name:"ElevenLabs",icon:"record_voice_over",color:"#6C47FF",textIcon:"EL",website:"https://elevenlabs.io"},cartesia:{id:"cartesia",alias:"cartesia",name:"Cartesia",icon:"spatial_audio",color:"#FF4F8B",textIcon:"CA",website:"https://cartesia.ai"},playht:{id:"playht",alias:"playht",name:"PlayHT",icon:"play_circle",color:"#00B4D8",textIcon:"PH",website:"https://play.ht"},inworld:{id:"inworld",alias:"inworld",name:"Inworld",icon:"voice_chat",color:"#7B2EF2",textIcon:"IW",website:"https://inworld.ai"},sdwebui:{id:"sdwebui",alias:"sdwebui",name:"SD WebUI",icon:"brush",color:"#FF7043",textIcon:"SD",website:"https://github.com/AUTOMATIC1111/stable-diffusion-webui"},comfyui:{id:"comfyui",alias:"comfyui",name:"ComfyUI",icon:"account_tree",color:"#4CAF50",textIcon:"CF",website:"https://github.com/comfyanonymous/ComfyUI"},huggingface:{id:"huggingface",alias:"hf",name:"HuggingFace",icon:"face",color:"#FFD21E",textIcon:"HF",website:"https://huggingface.co",hasFree:!0,freeNote:"Free Inference API for thousands of models (Whisper, VITS, SDXL…)"},synthetic:{id:"synthetic",alias:"synthetic",name:"Synthetic",icon:"verified_user",color:"#6366F1",textIcon:"SY",website:"https://synthetic.new",passthroughModels:!0},"kilo-gateway":{id:"kilo-gateway",alias:"kg",name:"Kilo Gateway",icon:"hub",color:"#617A91",textIcon:"KG",website:"https://kilo.ai",passthroughModels:!0},vertex:{id:"vertex",alias:"vertex",name:"Vertex AI",icon:"cloud",color:"#4285F4",textIcon:"VA",website:"https://cloud.google.com/vertex-ai",authHint:"Provide Service Account JSON or OAuth access_token"},zai:{id:"zai",alias:"zai",name:"Z.AI (GLM-5)",icon:"psychology",color:"#2563EB",textIcon:"ZA",website:"https://open.bigmodel.cn",apiHint:"API key from https://open.bigmodel.cn/usercenter/apikeys"},"perplexity-search":{id:"perplexity-search",alias:"pplx-search",name:"Perplexity Search",icon:"search",color:"#20808D",textIcon:"PS",website:"https://docs.perplexity.ai/guides/search-quickstart",authHint:"Same API key as Perplexity (pplx-...)"},"serper-search":{id:"serper-search",alias:"serper-search",name:"Serper Search",icon:"search",color:"#4285F4",textIcon:"SP",website:"https://serper.dev",authHint:"API key from serper.dev dashboard"},"brave-search":{id:"brave-search",alias:"brave-search",name:"Brave Search",icon:"travel_explore",color:"#FB542B",textIcon:"BR",website:"https://brave.com/search/api",authHint:"Subscription token from Brave Search API dashboard"},"exa-search":{id:"exa-search",alias:"exa-search",name:"Exa Search",icon:"neurology",color:"#1E40AF",textIcon:"EX",website:"https://exa.ai",authHint:"API key from dashboard.exa.ai"},"tavily-search":{id:"tavily-search",alias:"tavily-search",name:"Tavily Search",icon:"manage_search",color:"#5B4FDB",textIcon:"TV",website:"https://tavily.com",authHint:"API key from app.tavily.com (format: tvly-...)"}},p="openai-compatible-",d="anthropic-compatible-";function o(e){return"string"==typeof e&&e.startsWith(p)}function a(e){return"string"==typeof e&&e.startsWith(d)}let u={...n,...c,...l},m=Object.values(u).reduce((e,t)=>(e[t.alias]=t.id,e),{});Object.values(u).reduce((e,t)=>(e[t.id]=t.alias,e),{}),(0,r.validateProviders)(n,"FREE_PROVIDERS"),(0,r.validateProviders)(c,"OAUTH_PROVIDERS"),(0,r.validateProviders)(l,"APIKEY_PROVIDERS"),e.s(["AI_PROVIDERS",0,u,"ALIAS_TO_ID",0,m,"ANTHROPIC_COMPATIBLE_PREFIX",0,d,"APIKEY_PROVIDERS",0,l,"FREE_PROVIDERS",0,n,"OAUTH_PROVIDERS",0,c,"OPENAI_COMPATIBLE_PREFIX",0,p,"isAnthropicCompatibleProvider",()=>a,"isOpenAICompatibleProvider",()=>o]),i()}catch(e){i(e)}},!1),617325,e=>e.a(async(t,i)=>{try{var r=e.i(878947),s=e.i(963219),o=t([s]);[s]=o.then?(await o)():o,Object.entries(s.AI_PROVIDERS).filter(([,e])=>e.passthroughModels).map(([e])=>e);let a=Object.entries(r.PROVIDER_MODELS).flatMap(([e,t])=>t.map(t=>({provider:e,model:t.id,name:t.name})));e.s(["AI_MODELS",0,a]),i()}catch(e){i(e)}},!1),651948,e=>e.a(async(t,i)=>{try{var r=e.i(804730),s=e.i(963219),o=e.i(617325),a=t([s,o]);[s,o]=a.then?(await a)():a;let n={name:"OmniRoute",description:"AI Gateway for Multi-Provider LLMs",version:r.default.version};e.s(["APP_CONFIG",0,n]),i()}catch(e){i(e)}},!1),949423,e=>e.a(async(t,i)=>{try{var r=e.i(89171);e.i(245272);var s=e.i(548941),o=e.i(651948),a=t([o]);async function n(){try{let{getAllCircuitBreakerStatuses:t}=await e.A(970016),{getAllRateLimitStatus:i}=await e.A(134636),{getAllModelLockouts:a}=await e.A(730711),{getInflightCount:n}=await e.A(38026),c=await (0,s.getSettings)(),l=t(),p=i(),d=a(),{getAllHealthStatuses:u}=await e.A(338694),m={version:o.APP_CONFIG.version,nodeVersion:process.version,uptime:process.uptime(),memoryUsage:process.memoryUsage(),pid:process.pid,platform:process.platform},h={};for(let e of l)e.name.startsWith("test-")||e.name.startsWith("test_")||(h[e.name]={state:e.state,failures:e.failureCount||0,lastFailure:e.lastFailureTime});return r.NextResponse.json({status:"healthy",timestamp:new Date().toISOString(),system:m,providerHealth:h,localProviders:u(),rateLimitStatus:p,lockouts:d,dedup:{inflightRequests:n()},setupComplete:c?.setupComplete||!1})}catch(e){return console.error("[API] GET /api/monitoring/health error:",e),r.NextResponse.json({status:"error",error:"Health check failed"},{status:500})}}async function c(){try{let{resetAllCircuitBreakers:t,getAllCircuitBreakerStatuses:i}=await e.A(970016),s=i().length;return t(),console.log(`[API] DELETE /api/monitoring/health — Reset ${s} circuit breakers`),r.NextResponse.json({success:!0,message:`Reset ${s} circuit breaker(s) to healthy state`,resetCount:s})}catch(e){return console.error("[API] DELETE /api/monitoring/health error:",e),r.NextResponse.json({error:"Failed to reset circuit breakers"},{status:500})}}[o]=a.then?(await a)():a,e.s(["DELETE",()=>c,"GET",()=>n]),i()}catch(e){i(e)}},!1),984654,e=>e.a(async(t,i)=>{try{var r=e.i(747909),s=e.i(174017),o=e.i(996250),a=e.i(759756),n=e.i(561916),c=e.i(174677),l=e.i(869741),p=e.i(316795),d=e.i(487718),u=e.i(995169),m=e.i(47587),h=e.i(666012),y=e.i(570101),g=e.i(626937),x=e.i(10372),b=e.i(193695);e.i(52474);var f=e.i(600220),v=e.i(949423),w=t([v]);[v]=w.then?(await w)():w;let A=new r.AppRouteRouteModule({definition:{kind:s.RouteKind.APP_ROUTE,page:"/api/monitoring/health/route",pathname:"/api/monitoring/health",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/monitoring/health/route.ts",nextConfigOutput:"standalone",userland:v}),{workAsyncStorage:k,workUnitAsyncStorage:R,serverHooks:E}=A;function _(){return(0,o.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:R})}async function I(e,t,i){A.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let r="/api/monitoring/health/route";r=r.replace(/\/index$/,"")||"/";let o=await A.prepare(e,t,{srcPage:r,multiZoneDraftMode:!1});if(!o)return t.statusCode=400,t.end("Bad Request"),null==i.waitUntil||i.waitUntil.call(i,Promise.resolve()),null;let{buildId:v,params:w,nextConfig:_,parsedUrl:I,isDraftMode:k,prerenderManifest:R,routerServerContext:E,isOnDemandRevalidate:C,revalidateOnlyGenerated:P,resolvedPathname:F,clientReferenceManifest:j,serverActionsManifest:O}=o,S=(0,l.normalizeAppPath)(r),D=!!(R.dynamicRoutes[S]||R.routes[F]),N=async()=>((null==E?void 0:E.render404)?await E.render404(e,t,I,!1):t.end("This page could not be found"),null);if(D&&!k){let e=!!R.routes[F],t=R.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(_.experimental.adapterPath)return await N();throw new b.NoFallbackError}}let M=null;!D||A.isDev||k||(M=F,M="/index"===M?"/":M);let T=!0===A.isDev||!D,B=D&&!T;O&&j&&(0,c.setManifestsSingleton)({page:r,clientReferenceManifest:j,serverActionsManifest:O});let q=e.method||"GET",H=(0,n.getTracer)(),$=H.getActiveScopeSpan(),L={params:w,prerenderManifest:R,renderOpts:{experimental:{authInterrupts:!!_.experimental.authInterrupts},cacheComponents:!!_.cacheComponents,supportsDynamicResponse:T,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:_.cacheLife,waitUntil:i.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,i,r,s)=>A.onRequestError(e,t,r,s,E)},sharedContext:{buildId:v}},U=new p.NodeNextRequest(e),G=new p.NodeNextResponse(t),z=d.NextRequestAdapter.fromNodeNextRequest(U,(0,d.signalFromNodeResponse)(t));try{let o=async e=>A.handle(z,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let i=H.getRootSpanAttributes();if(!i)return;if(i.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${i.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=i.get("next.route");if(s){let t=`${q} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t)}else e.updateName(`${q} ${r}`)}),c=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var n,l;let p=async({previousCacheEntry:s})=>{try{if(!c&&C&&P&&!s)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let r=await o(a);e.fetchMetrics=L.renderOpts.fetchMetrics;let n=L.renderOpts.pendingWaitUntil;n&&i.waitUntil&&(i.waitUntil(n),n=void 0);let l=L.renderOpts.collectedTags;if(!D)return await (0,h.sendResponse)(U,G,r,L.renderOpts.pendingWaitUntil),null;{let e=await r.blob(),t=(0,y.toNodeOutgoingHttpHeaders)(r.headers);l&&(t[x.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let i=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,s=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:r.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:i,expire:s}}}}catch(t){throw(null==s?void 0:s.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:r,routeType:"route",revalidateReason:(0,m.getRevalidateReason)({isStaticGeneration:B,isOnDemandRevalidate:C})},!1,E),t}},d=await A.handleResponse({req:e,nextConfig:_,cacheKey:M,routeKind:s.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:R,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:P,responseGenerator:p,waitUntil:i.waitUntil,isMinimalMode:c});if(!D)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});c||t.setHeader("x-nextjs-cache",C?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,y.fromNodeOutgoingHttpHeaders)(d.value.headers);return c&&D||u.delete(x.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,g.getCacheControlHeader)(d.cacheControl)),await (0,h.sendResponse)(U,G,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};$?await l($):await H.withPropagatedContext(e.headers,()=>H.trace(u.BaseServerSpan.handleRequest,{spanName:`${q} ${r}`,kind:n.SpanKind.SERVER,attributes:{"http.method":q,"http.target":e.url}},l))}catch(t){if(t instanceof b.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,m.getRevalidateReason)({isStaticGeneration:B,isOnDemandRevalidate:C})},!1,E),D)throw t;return await (0,h.sendResponse)(U,G,new Response(null,{status:500})),null}}e.s(["handler",()=>I,"patchFetch",()=>_,"routeModule",()=>A,"serverHooks",()=>E,"workAsyncStorage",()=>k,"workUnitAsyncStorage",()=>R]),i()}catch(e){i(e)}},!1),606102,e=>{e.v(e=>Promise.resolve().then(()=>e(548941)))},789543,e=>{e.v(e=>Promise.resolve().then(()=>e(385498)))},579042,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_utils_apiKey_ts_fa113e09._.js"].map(t=>e.l(t))).then(()=>t(65448)))},49794,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_constants_pricing_ts_65de0558._.js"].map(t=>e.l(t))).then(()=>t(404503)))},386305,e=>{e.v(e=>Promise.resolve().then(()=>e(878947)))},970016,e=>{e.v(t=>Promise.all(["server/chunks/src_5ca0c0a2._.js"].map(t=>e.l(t))).then(()=>t(260222)))},134636,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_localDb_ts_287eb35f._.js","server/chunks/_5677b5e2._.js","server/chunks/open-sse_cf4d5692._.js"].map(t=>e.l(t))).then(()=>t(20870)))},730711,e=>{e.v(t=>Promise.all(["server/chunks/open-sse_cf4d5692._.js"].map(t=>e.l(t))).then(()=>t(441637)))},38026,e=>{e.v(t=>Promise.all(["server/chunks/open-sse_services_requestDedup_ts_82fdaab0._.js"].map(t=>e.l(t))).then(()=>t(951700)))},338694,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_localHealthCheck_ts_06c8cb5d._.js"].map(t=>e.l(t))).then(()=>t(181666)))}];
|
|
3
3
|
|
|
4
4
|
//# sourceMappingURL=%5Broot-of-the-server%5D__09c944b3._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={},l={RequestCookies:()=>m,ResponseCookies:()=>v,parseCookie:()=>c,parseSetCookie:()=>d,stringifyCookie:()=>p};for(var u in l)n(o,u,{get:l[u],enumerable:!0});function p(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function c(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function d(e){if(!e)return;let[[t,r],...n]=c(e),{domain:s,expires:a,httponly:i,maxage:o,path:l,samesite:u,secure:p,partitioned:d,priority:m}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var v,g,x={name:t,value:decodeURIComponent(r),domain:s,...a&&{expires:new Date(a)},...i&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...u&&{sameSite:h.includes(v=(v=u).toLowerCase())?v:void 0},...p&&{secure:!0},...m&&{priority:f.includes(g=(g=m).toLowerCase())?g:void 0},...d&&{partitioned:!0}};let e={};for(let t in x)x[t]&&(e[t]=x[t]);return e}}t.exports=((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(o=s(t,r))||o.enumerable});return e})(n({},"__esModule",{value:!0}),o);var h=["strict","lax","none"],f=["low","medium","high"],m=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of c(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},v=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const s=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,n,s,a,i=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,a=!1;l();)if(","===(r=e.charAt(o))){for(n=o,o+=1,l(),s=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(a=!0,o=s,i.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!a||o>=e.length)&&i.push(e.substring(t,e.length))}return i}(s)){const t=d(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=p(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},792509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},785148,(e,t,r)=>{t.exports=e.x("better-sqlite3",()=>require("better-sqlite3"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},256770,e=>{"use strict";var t=e.i(814747),r=e.i(446786);let n="omniroute";function s(){try{return r.default.homedir()}catch{return process.cwd()}}function a(e){if("string"!=typeof e)return null;let r=e.trim();return r?t.default.resolve(r):null}function i(){return t.default.join(s(),`.${n}`)}function o({isCloud:e=!1}={}){let r;if(e)return"/tmp";let l=a(process.env.DATA_DIR);return l?l:(s(),(r=a(process.env.XDG_CONFIG_HOME))?t.default.join(r,n):i())}function l(e,r){return!!e&&!!r&&t.default.resolve(e)===t.default.resolve(r)}e.s(["getLegacyDotDataDir",()=>i,"isSamePath",()=>l,"resolveDataDir",()=>o])},439951,e=>{"use strict";var t=e.i(157763);function r(){try{return(0,t.getDbInstance)()}catch{return null}}function n(e={}){let t=r();if(!t)return[];let s=[],a=[];e.action&&(s.push("action = ?"),a.push(e.action)),e.actor&&(s.push("actor = ?"),a.push(e.actor));let i=s.length>0?`WHERE ${s.join(" AND ")}`:"",o=e.limit||100,l=e.offset||0;return t.prepare(`SELECT * FROM audit_log ${i} ORDER BY timestamp DESC LIMIT ? OFFSET ?`).all(...a,o,l).map(e=>({...e,details:e.details?JSON.parse(String(e.details)):null}))}parseInt(process.env.LOG_RETENTION_DAYS||"90",10);let s=new Set,a=new Map,i=!1,o=!1;for(let e of(process.env.NO_LOG_API_KEY_IDS||"").split(",").map(e=>e.trim()).filter(Boolean))s.add(e);function l(e,t){t?s.add(e):s.delete(e),a.set(e,{value:t,timestamp:Date.now()})}function u(e){if(!e)return!1;if(s.has(e))return!0;let t=function(e){let t=r();if(!t||!e||!function(e){if(i)return o;try{o=e.prepare("PRAGMA table_info(api_keys)").all().some(e=>"no_log"===e.name)}catch{o=!1}return i=!0,o}(t))return!1;let n=a.get(e);if(n&&Date.now()-n.timestamp<3e4)return n.value;try{let r=t.prepare("SELECT no_log FROM api_keys WHERE id = ?").get(e),n=!!(r&&1===Number(r.no_log));return a.set(e,{value:n,timestamp:Date.now()}),n}catch{return!1}}(e);return t&&s.add(e),t}e.s(["getAuditLog",()=>n,"isNoLog",()=>u,"setNoLog",()=>l])},178904,e=>e.a(async(t,r)=>{try{var n=e.i(224010),s=e.i(311250),a=e.i(352812),i=t([s]);[s]=i.then?(await i)():i;let p=!1;async function o(){p||(await (0,a.initTranslators)(),p=!0,console.log("[SSE] Translators initialized for /v1/responses"))}async function l(){return new Response(null,{headers:{"Access-Control-Allow-Origin":n.CORS_ORIGIN,"Access-Control-Allow-Methods":"GET, POST, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function u(e){return await o(),await (0,s.handleChat)(e)}e.s(["OPTIONS",()=>l,"POST",()=>u]),r()}catch(e){r(e)}},!1),326713,e=>e.a(async(t,r)=>{try{var n=e.i(747909),s=e.i(174017),a=e.i(996250),i=e.i(759756),o=e.i(561916),l=e.i(174677),u=e.i(869741),p=e.i(316795),c=e.i(487718),d=e.i(995169),h=e.i(47587),f=e.i(666012),m=e.i(570101),v=e.i(626937),g=e.i(10372),x=e.i(193695);e.i(52474);var y=e.i(600220),_=e.i(178904),R=t([_]);[_]=R.then?(await R)():R;let E=new n.AppRouteRouteModule({definition:{kind:s.RouteKind.APP_ROUTE,page:"/api/v1/responses/route",pathname:"/api/v1/responses",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/v1/responses/route.ts",nextConfigOutput:"standalone",userland:_}),{workAsyncStorage:C,workUnitAsyncStorage:b,serverHooks:O}=E;function w(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:b})}async function A(e,t,r){E.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let n="/api/v1/responses/route";n=n.replace(/\/index$/,"")||"/";let a=await E.prepare(e,t,{srcPage:n,multiZoneDraftMode:!1});if(!a)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:_,params:R,nextConfig:w,parsedUrl:A,isDraftMode:C,prerenderManifest:b,routerServerContext:O,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,resolvedPathname:k,clientReferenceManifest:D,serverActionsManifest:N}=a,T=(0,u.normalizeAppPath)(n),j=!!(b.dynamicRoutes[T]||b.routes[k]),I=async()=>((null==O?void 0:O.render404)?await O.render404(e,t,A,!1):t.end("This page could not be found"),null);if(j&&!C){let e=!!b.routes[k],t=b.dynamicRoutes[T];if(t&&!1===t.fallback&&!e){if(w.experimental.adapterPath)return await I();throw new x.NoFallbackError}}let q=null;!j||E.isDev||C||(q=k,q="/index"===q?"/":q);let $=!0===E.isDev||!j,M=j&&!$;N&&D&&(0,l.setManifestsSingleton)({page:n,clientReferenceManifest:D,serverActionsManifest:N});let H=e.method||"GET",U=(0,o.getTracer)(),L=U.getActiveScopeSpan(),F={params:R,prerenderManifest:b,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:$,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>E.onRequestError(e,t,n,s,O)},sharedContext:{buildId:_}},G=new p.NodeNextRequest(e),K=new p.NodeNextResponse(t),B=c.NextRequestAdapter.fromNodeNextRequest(G,(0,c.signalFromNodeResponse)(t));try{let a=async e=>E.handle(B,F).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${H} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${n}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),u=async i=>{var o,u;let p=async({previousCacheEntry:s})=>{try{if(!l&&S&&P&&!s)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await a(i);e.fetchMetrics=F.renderOpts.fetchMetrics;let o=F.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let u=F.renderOpts.collectedTags;if(!j)return await (0,f.sendResponse)(G,K,n,F.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(n.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==F.renderOpts.collectedRevalidate&&!(F.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&F.renderOpts.collectedRevalidate,s=void 0===F.renderOpts.collectedExpire||F.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:F.renderOpts.collectedExpire;return{value:{kind:y.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==s?void 0:s.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:n,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:S})},!1,O),t}},c=await E.handleResponse({req:e,nextConfig:w,cacheKey:q,routeKind:s.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:b,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,responseGenerator:p,waitUntil:r.waitUntil,isMinimalMode:l});if(!j)return null;if((null==c||null==(o=c.value)?void 0:o.kind)!==y.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==c||null==(u=c.value)?void 0:u.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",S?"REVALIDATED":c.isMiss?"MISS":c.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,m.fromNodeOutgoingHttpHeaders)(c.value.headers);return l&&j||d.delete(g.NEXT_CACHE_TAGS_HEADER),!c.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,v.getCacheControlHeader)(c.cacheControl)),await (0,f.sendResponse)(G,K,new Response(c.value.body,{headers:d,status:c.value.status||200})),null};L?await u(L):await U.withPropagatedContext(e.headers,()=>U.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${n}`,kind:o.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},u))}catch(t){if(t instanceof x.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:T,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:S})},!1,O),j)throw t;return await (0,f.sendResponse)(G,K,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>w,"routeModule",()=>E,"serverHooks",()=>O,"workAsyncStorage",()=>C,"workUnitAsyncStorage",()=>b]),r()}catch(e){r(e)}},!1),606102,e=>{e.v(e=>Promise.resolve().then(()=>e(548941)))},789543,e=>{e.v(e=>Promise.resolve().then(()=>e(385498)))},579042,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_utils_apiKey_ts_fa113e09._.js"].map(t=>e.l(t))).then(()=>t(65448)))},49794,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_constants_pricing_ts_65de0558._.js"].map(t=>e.l(t))).then(()=>t(404503)))},386305,e=>{e.v(e=>Promise.resolve().then(()=>e(878947)))},605589,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_localDb_ts_83220848._.js"].map(t=>e.l(t))).then(()=>t(969738)))},323970,e=>{e.v(e=>Promise.resolve().then(()=>e(522734)))},589793,e=>{e.v(e=>Promise.resolve().then(()=>e(814747)))},901259,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_http2_740a89f0._.js"].map(t=>e.l(t))).then(()=>t(925328)))},537776,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_usageDb_ts_90cdcddc._.js"].map(t=>e.l(t))).then(()=>t(36197)))}];
|
|
1
|
+
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},814747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={},l={RequestCookies:()=>m,ResponseCookies:()=>v,parseCookie:()=>c,parseSetCookie:()=>d,stringifyCookie:()=>p};for(var u in l)n(o,u,{get:l[u],enumerable:!0});function p(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function c(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,s]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=s?s:"true"))}catch{}}return t}function d(e){if(!e)return;let[[t,r],...n]=c(e),{domain:s,expires:a,httponly:i,maxage:o,path:l,samesite:u,secure:p,partitioned:d,priority:m}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var v,g,x={name:t,value:decodeURIComponent(r),domain:s,...a&&{expires:new Date(a)},...i&&{httpOnly:!0},..."string"==typeof o&&{maxAge:Number(o)},path:l,...u&&{sameSite:h.includes(v=(v=u).toLowerCase())?v:void 0},...p&&{secure:!0},...m&&{priority:f.includes(g=(g=m).toLowerCase())?g:void 0},...d&&{partitioned:!0}};let e={};for(let t in x)x[t]&&(e[t]=x[t]);return e}}t.exports=((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(o=s(t,r))||o.enumerable});return e})(n({},"__esModule",{value:!0}),o);var h=["strict","lax","none"],f=["low","medium","high"],m=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of c(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>p(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>p(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},v=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const s=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(s)?s:function(e){if(!e)return[];var t,r,n,s,a,i=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,a=!1;l();)if(","===(r=e.charAt(o))){for(n=o,o+=1,l(),s=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(a=!0,o=s,i.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!a||o>=e.length)&&i.push(e.substring(t,e.length))}return i}(s)){const t=d(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,s=this._parsed;return s.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=p(r);t.append("set-cookie",e)}}(s,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(p).join("; ")}}},792509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},785148,(e,t,r)=>{t.exports=e.x("better-sqlite3",()=>require("better-sqlite3"))},522734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},446786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},256770,e=>{"use strict";var t=e.i(814747),r=e.i(446786);let n="omniroute";function s(){try{return r.default.homedir()}catch{return process.cwd()}}function a(e){if("string"!=typeof e)return null;let r=e.trim();return r?t.default.resolve(r):null}function i(){return t.default.join(s(),`.${n}`)}function o({isCloud:e=!1}={}){let r;if(e)return"/tmp";let l=a(process.env.DATA_DIR);return l?l:(s(),(r=a(process.env.XDG_CONFIG_HOME))?t.default.join(r,n):i())}function l(e,r){return!!e&&!!r&&t.default.resolve(e)===t.default.resolve(r)}e.s(["getLegacyDotDataDir",()=>i,"isSamePath",()=>l,"resolveDataDir",()=>o])},439951,e=>{"use strict";var t=e.i(157763);function r(){try{return(0,t.getDbInstance)()}catch{return null}}function n(e={}){let t=r();if(!t)return[];let s=[],a=[];e.action&&(s.push("action = ?"),a.push(e.action)),e.actor&&(s.push("actor = ?"),a.push(e.actor));let i=s.length>0?`WHERE ${s.join(" AND ")}`:"",o=e.limit||100,l=e.offset||0;return t.prepare(`SELECT * FROM audit_log ${i} ORDER BY timestamp DESC LIMIT ? OFFSET ?`).all(...a,o,l).map(e=>({...e,details:e.details?JSON.parse(String(e.details)):null}))}parseInt(process.env.LOG_RETENTION_DAYS||"90",10);let s=new Set,a=new Map,i=!1,o=!1;for(let e of(process.env.NO_LOG_API_KEY_IDS||"").split(",").map(e=>e.trim()).filter(Boolean))s.add(e);function l(e,t){t?s.add(e):s.delete(e),a.set(e,{value:t,timestamp:Date.now()})}function u(e){if(!e)return!1;if(s.has(e))return!0;let t=function(e){let t=r();if(!t||!e||!function(e){if(i)return o;try{o=e.prepare("PRAGMA table_info(api_keys)").all().some(e=>"no_log"===e.name)}catch{o=!1}return i=!0,o}(t))return!1;let n=a.get(e);if(n&&Date.now()-n.timestamp<3e4)return n.value;try{let r=t.prepare("SELECT no_log FROM api_keys WHERE id = ?").get(e),n=!!(r&&1===Number(r.no_log));return a.set(e,{value:n,timestamp:Date.now()}),n}catch{return!1}}(e);return t&&s.add(e),t}e.s(["getAuditLog",()=>n,"isNoLog",()=>u,"setNoLog",()=>l])},178904,e=>e.a(async(t,r)=>{try{var n=e.i(224010),s=e.i(311250),a=t([s]);async function i(){return new Response(null,{headers:{"Access-Control-Allow-Origin":n.CORS_ORIGIN,"Access-Control-Allow-Methods":"GET, POST, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function o(e){return await (0,s.handleChat)(e)}[s]=a.then?(await a)():a,e.s(["OPTIONS",()=>i,"POST",()=>o]),r()}catch(e){r(e)}},!1),326713,e=>e.a(async(t,r)=>{try{var n=e.i(747909),s=e.i(174017),a=e.i(996250),i=e.i(759756),o=e.i(561916),l=e.i(174677),u=e.i(869741),p=e.i(316795),c=e.i(487718),d=e.i(995169),h=e.i(47587),f=e.i(666012),m=e.i(570101),v=e.i(626937),g=e.i(10372),x=e.i(193695);e.i(52474);var y=e.i(600220),_=e.i(178904),R=t([_]);[_]=R.then?(await R)():R;let E=new n.AppRouteRouteModule({definition:{kind:s.RouteKind.APP_ROUTE,page:"/api/v1/responses/route",pathname:"/api/v1/responses",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/v1/responses/route.ts",nextConfigOutput:"standalone",userland:_}),{workAsyncStorage:C,workUnitAsyncStorage:b,serverHooks:O}=E;function w(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:b})}async function A(e,t,r){E.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let n="/api/v1/responses/route";n=n.replace(/\/index$/,"")||"/";let a=await E.prepare(e,t,{srcPage:n,multiZoneDraftMode:!1});if(!a)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:_,params:R,nextConfig:w,parsedUrl:A,isDraftMode:C,prerenderManifest:b,routerServerContext:O,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,resolvedPathname:k,clientReferenceManifest:D,serverActionsManifest:N}=a,T=(0,u.normalizeAppPath)(n),j=!!(b.dynamicRoutes[T]||b.routes[k]),I=async()=>((null==O?void 0:O.render404)?await O.render404(e,t,A,!1):t.end("This page could not be found"),null);if(j&&!C){let e=!!b.routes[k],t=b.dynamicRoutes[T];if(t&&!1===t.fallback&&!e){if(w.experimental.adapterPath)return await I();throw new x.NoFallbackError}}let q=null;!j||E.isDev||C||(q=k,q="/index"===q?"/":q);let $=!0===E.isDev||!j,M=j&&!$;N&&D&&(0,l.setManifestsSingleton)({page:n,clientReferenceManifest:D,serverActionsManifest:N});let H=e.method||"GET",U=(0,o.getTracer)(),L=U.getActiveScopeSpan(),F={params:R,prerenderManifest:b,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:$,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,s)=>E.onRequestError(e,t,n,s,O)},sharedContext:{buildId:_}},G=new p.NodeNextRequest(e),K=new p.NodeNextResponse(t),B=c.NextRequestAdapter.fromNodeNextRequest(G,(0,c.signalFromNodeResponse)(t));try{let a=async e=>E.handle(B,F).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${H} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${n}`)}),l=!!(0,i.getRequestMeta)(e,"minimalMode"),u=async i=>{var o,u;let p=async({previousCacheEntry:s})=>{try{if(!l&&S&&P&&!s)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await a(i);e.fetchMetrics=F.renderOpts.fetchMetrics;let o=F.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let u=F.renderOpts.collectedTags;if(!j)return await (0,f.sendResponse)(G,K,n,F.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(n.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==F.renderOpts.collectedRevalidate&&!(F.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&F.renderOpts.collectedRevalidate,s=void 0===F.renderOpts.collectedExpire||F.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:F.renderOpts.collectedExpire;return{value:{kind:y.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==s?void 0:s.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:n,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:S})},!1,O),t}},c=await E.handleResponse({req:e,nextConfig:w,cacheKey:q,routeKind:s.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:b,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,responseGenerator:p,waitUntil:r.waitUntil,isMinimalMode:l});if(!j)return null;if((null==c||null==(o=c.value)?void 0:o.kind)!==y.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==c||null==(u=c.value)?void 0:u.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",S?"REVALIDATED":c.isMiss?"MISS":c.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,m.fromNodeOutgoingHttpHeaders)(c.value.headers);return l&&j||d.delete(g.NEXT_CACHE_TAGS_HEADER),!c.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,v.getCacheControlHeader)(c.cacheControl)),await (0,f.sendResponse)(G,K,new Response(c.value.body,{headers:d,status:c.value.status||200})),null};L?await u(L):await U.withPropagatedContext(e.headers,()=>U.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${n}`,kind:o.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},u))}catch(t){if(t instanceof x.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:T,routeType:"route",revalidateReason:(0,h.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:S})},!1,O),j)throw t;return await (0,f.sendResponse)(G,K,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>w,"routeModule",()=>E,"serverHooks",()=>O,"workAsyncStorage",()=>C,"workUnitAsyncStorage",()=>b]),r()}catch(e){r(e)}},!1),606102,e=>{e.v(e=>Promise.resolve().then(()=>e(548941)))},789543,e=>{e.v(e=>Promise.resolve().then(()=>e(385498)))},579042,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_utils_apiKey_ts_fa113e09._.js"].map(t=>e.l(t))).then(()=>t(65448)))},49794,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_constants_pricing_ts_65de0558._.js"].map(t=>e.l(t))).then(()=>t(404503)))},386305,e=>{e.v(e=>Promise.resolve().then(()=>e(878947)))},605589,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_localDb_ts_83220848._.js"].map(t=>e.l(t))).then(()=>t(969738)))},323970,e=>{e.v(e=>Promise.resolve().then(()=>e(522734)))},589793,e=>{e.v(e=>Promise.resolve().then(()=>e(814747)))},901259,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_http2_740a89f0._.js"].map(t=>e.l(t))).then(()=>t(925328)))},537776,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_usageDb_ts_90cdcddc._.js"].map(t=>e.l(t))).then(()=>t(36197)))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__12e1b68b._.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s={},l={RequestCookies:()=>g,ResponseCookies:()=>f,parseCookie:()=>u,parseSetCookie:()=>p,stringifyCookie:()=>d};for(var c in l)o(s,c,{get:l[c],enumerable:!0});function d(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),o=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?o:`${o}; ${r.join("; ")}`}function u(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[o,i]=[r.slice(0,e),r.slice(e+1)];try{t.set(o,decodeURIComponent(null!=i?i:"true"))}catch{}}return t}function p(e){if(!e)return;let[[t,r],...o]=u(e),{domain:i,expires:n,httponly:a,maxage:s,path:l,samesite:c,secure:d,partitioned:p,priority:g}=Object.fromEntries(o.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var f,x,y={name:t,value:decodeURIComponent(r),domain:i,...n&&{expires:new Date(n)},...a&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:l,...c&&{sameSite:m.includes(f=(f=c).toLowerCase())?f:void 0},...d&&{secure:!0},...g&&{priority:h.includes(x=(x=g).toLowerCase())?x:void 0},...p&&{partitioned:!0}};let e={};for(let t in y)y[t]&&(e[t]=y[t]);return e}}t.exports=((e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of n(t))a.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(s=i(t,r))||s.enumerable});return e})(o({},"__esModule",{value:!0}),s);var m=["strict","lax","none"],h=["low","medium","high"],g=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of u(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let o="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===o).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,o=this._parsed;return o.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(o).map(([e,t])=>d(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>d(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},f=class{constructor(e){var t,r,o;this._parsed=new Map,this._headers=e;const i=null!=(o=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?o:[];for(const e of Array.isArray(i)?i:function(e){if(!e)return[];var t,r,o,i,n,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,n=!1;l();)if(","===(r=e.charAt(s))){for(o=s,s+=1,l(),i=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(n=!0,s=i,a.push(e.substring(t,o)),t=s):s=o+1}else s+=1;(!n||s>=e.length)&&a.push(e.substring(t,e.length))}return a}(i)){const t=p(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let o="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===o)}has(e){return this._parsed.has(e)}set(...e){let[t,r,o]=1===e.length?[e[0].name,e[0].value,e[0]]:e,i=this._parsed;return i.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...o})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=d(r);t.append("set-cookie",e)}}(i,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(d).join("; ")}}},677850,e=>e.a(async(t,r)=>{try{let t=await e.y("zod");e.n(t),r()}catch(e){r(e)}},!0),924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},266240,e=>{"use strict";var t=e.i(924868),r=e.i(446786),o=e.i(814747),i=e.i(233405);let n=new Set(["auto","host","container"]),a=new Set(["0","false","no","off"]),s={claude:{defaultCommand:"claude",envBinKey:"CLI_CLAUDE_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{settings:".claude/settings.json"}},codex:{defaultCommand:"codex",envBinKey:"CLI_CODEX_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{config:".codex/config.toml",auth:".codex/auth.json"}},droid:{defaultCommand:"droid",envBinKey:"CLI_DROID_BIN",requiresBinary:!0,healthcheckTimeoutMs:8e3,paths:{settings:".factory/settings.json"}},openclaw:{defaultCommand:"openclaw",envBinKey:"CLI_OPENCLAW_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{settings:".openclaw/openclaw.json"}},cursor:{defaultCommands:["agent","cursor"],envBinKey:"CLI_CURSOR_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".cursor/cli-config.json",auth:".config/cursor/auth.json",state:".cursor/agent-cli-state.json"}},cline:{defaultCommand:"cline",envBinKey:"CLI_CLINE_BIN",requiresBinary:!0,healthcheckTimeoutMs:12e3,paths:{globalState:".cline/data/globalState.json",secrets:".cline/data/secrets.json"}},kilo:{defaultCommand:"kilocode",envBinKey:"CLI_KILO_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{auth:".local/share/kilo/auth.json"}},continue:{defaultCommand:null,envBinKey:"CLI_CONTINUE_BIN",requiresBinary:!1,healthcheckTimeoutMs:15e3,paths:{settings:".continue/config.json"}},opencode:{defaultCommand:"opencode",envBinKey:"CLI_OPENCODE_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".config/opencode/config.toml"}}},l=(e,t,{env:r,timeoutMs:o=3e3}={})=>new Promise(n=>{let a="",s="",l=!1,c=!1,d=(0,i.spawn)(e,t,{env:r,stdio:["ignore","pipe","pipe"]}),u=setTimeout(()=>{l=!0,d.kill("SIGKILL")},o),p=e=>{c||(c=!0,clearTimeout(u),n(e))};d.stdout.on("data",e=>{a+=e.toString()}),d.stderr.on("data",e=>{s+=e.toString()}),d.on("error",e=>{p({ok:!1,code:null,stdout:a.trim(),stderr:s.trim(),timedOut:l,error:e?.message||"spawn_error"})}),d.on("close",e=>{p({ok:!l&&0===e,code:e,stdout:a.trim(),stderr:s.trim(),timedOut:l,error:l?"timeout":null})})}),c=["&","|",";","<",">","(",")","`","$","^","%","!"],d=async e=>{if(!(!(!e||!o.default.isAbsolute(e)||c.some(t=>e.includes(t)))&&1))return{installed:!1,commandPath:null,reason:"unsafe_path"};try{await t.default.access(e,t.default.constants.F_OK)}catch{return{installed:!1,commandPath:null,reason:"not_found"}}try{return await t.default.access(e,t.default.constants.X_OK),{installed:!0,commandPath:e,reason:null}}catch{return{installed:!0,commandPath:e,reason:"not_executable"}}},u=async(e,t)=>{if(!e)return{installed:!1,commandPath:null,reason:"missing_command"};if(e.includes("/")||e.includes("\\"))return d(e);process.platform;let r=await l("sh",["-c",'command -v -- "$1"',"sh",e],{env:t,timeoutMs:3e3});if(!r.ok||!r.stdout)return{installed:!1,commandPath:null,reason:"not_found"};let o=r.stdout.split(/\r?\n/).map(e=>e.trim()).find(Boolean)||null;return{installed:!!o,commandPath:o,reason:o?null:"not_found"}},p=async(e,t)=>{if(!Array.isArray(e)||0===e.length)return{command:null,installed:!1,commandPath:null,reason:"missing_command"};for(let r of e){let e=await u(r,t);if(e.installed||"not_found"!==e.reason)return{command:r,...e}}return{command:e[0],installed:!1,commandPath:null,reason:"not_found"}},m=async(e,t,r=4e3)=>{for(let o of[["--version"],["-v"]])if((await l(e,o,{env:t,timeoutMs:r})).ok)return{runnable:!0,reason:null};return{runnable:!1,reason:"healthcheck_failed"}},h=e=>{let t=s[e];if(!t)return null;let i=String(process.env.CLI_CONFIG_HOME||"").trim()||r.default.homedir();return Object.fromEntries(Object.entries(t.paths).map(([e,t])=>[e,o.default.join(i,t)]))},g=async e=>{let t,r,i,a=s[e],l=(t=String(process.env.CLI_MODE||"auto").trim().toLowerCase(),n.has(t)?t:"auto");if(!a)return{installed:!1,runnable:!1,command:null,commandPath:null,reason:"unknown_tool",runtimeMode:l,requiresBinary:!1};let c=(r={...process.env},(i=String(process.env.CLI_EXTRA_PATHS||"").split(o.default.delimiter).map(e=>e.trim()).filter(Boolean)).length>0&&(r.PATH=[...i,r.PATH||""].filter(Boolean).join(o.default.delimiter)),r),d=(e=>{let t=s[e];if(!t)return[];let r=String(process.env[t.envBinKey]||"").trim();return r?[r]:Array.isArray(t.defaultCommands)&&t.defaultCommands.length>0?t.defaultCommands.filter(Boolean):t.defaultCommand?[t.defaultCommand]:[]})(e),u=!1!==a.requiresBinary;if(!u&&0===d.length)return{installed:!0,runnable:!0,command:null,commandPath:null,reason:"not_required",runtimeMode:l,requiresBinary:u};let h=await p(d,c),g=h.command;if(!h.installed)return{installed:!1,runnable:!1,command:g,commandPath:null,reason:h.reason||"not_found",runtimeMode:l,requiresBinary:u};if("not_executable"===h.reason)return{installed:!0,runnable:!1,command:g,commandPath:h.commandPath,reason:"not_executable",runtimeMode:l,requiresBinary:u};let f=await m(h.commandPath,c,Number(a.healthcheckTimeoutMs||4e3));return{installed:!0,runnable:f.runnable,command:g,commandPath:h.commandPath,reason:f.reason,runtimeMode:l,requiresBinary:u}},f=Object.keys(s);e.s(["CLI_TOOL_IDS",0,f,"ensureCliConfigWriteAllowed",0,()=>((e,t=!0)=>null==e||""===e?t:!a.has(String(e).trim().toLowerCase()))(process.env.CLI_ALLOW_CONFIG_WRITES,!0)?null:"CLI config writes are disabled (CLI_ALLOW_CONFIG_WRITES=false)","getCliConfigPaths",0,h,"getCliPrimaryConfigPath",0,e=>{let t=h(e);if(!t)return null;let r=Object.keys(t)[0];return r?t[r]:null},"getCliRuntimeStatus",0,g])},102835,e=>e.a(async(t,r)=>{try{var o=e.i(677850),i=t([o]);[o]=i.then?(await i)():i;let a=o.z.object({id:o.z.string().min(1),alias:o.z.string().min(1),name:o.z.string().min(1),icon:o.z.string().min(1),color:o.z.string().regex(/^#[0-9A-Fa-f]{6}$/,"Must be a valid hex color (#RRGGBB)"),textIcon:o.z.string().optional(),website:o.z.string().url().optional(),passthroughModels:o.z.boolean().optional()}),s=o.z.record(o.z.string(),a);function n(e,t){let r=s.safeParse(e);if(!r.success){let e=r.error.issues.map(e=>` ${e.path.join(".")}: ${e.message}`).join("\n");throw console.error(`[PROVIDER VALIDATION] ${t} has invalid entries:
|
|
2
|
-
${e}`),Error(`Provider validation failed for ${t}`)}}e.s(["validateProviders",()=>n]),r()}catch(e){r(e)}},!1),963219,e=>e.a(async(t,r)=>{try{var o=e.i(102835),i=t([o]);[o]=i.then?(await i)():i;let s={iflow:{id:"iflow",alias:"if",name:"iFlow AI",icon:"water_drop",color:"#6366F1"},qwen:{id:"qwen",alias:"qw",name:"Qwen Code",icon:"psychology",color:"#10B981"},"gemini-cli":{id:"gemini-cli",alias:"gc",name:"Gemini CLI",icon:"terminal",color:"#4285F4"},kiro:{id:"kiro",alias:"kr",name:"Kiro AI",icon:"psychology_alt",color:"#FF6B35"}},l={claude:{id:"claude",alias:"cc",name:"Claude Code",icon:"smart_toy",color:"#D97757"},antigravity:{id:"antigravity",alias:"ag",name:"Antigravity",icon:"rocket_launch",color:"#F59E0B"},codex:{id:"codex",alias:"cx",name:"OpenAI Codex",icon:"code",color:"#3B82F6"},github:{id:"github",alias:"gh",name:"GitHub Copilot",icon:"code",color:"#333333"},cursor:{id:"cursor",alias:"cu",name:"Cursor IDE",icon:"edit_note",color:"#00D4AA"},"kimi-coding":{id:"kimi-coding",alias:"kmc",name:"Kimi Coding",icon:"psychology",color:"#1E40AF",textIcon:"KC"},kilocode:{id:"kilocode",alias:"kc",name:"Kilo Code",icon:"code",color:"#FF6B35",textIcon:"KC"},cline:{id:"cline",alias:"cl",name:"Cline",icon:"smart_toy",color:"#5B9BD5",textIcon:"CL"}},c={openrouter:{id:"openrouter",alias:"openrouter",name:"OpenRouter",icon:"router",color:"#F97316",textIcon:"OR",passthroughModels:!0,website:"https://openrouter.ai"},glm:{id:"glm",alias:"glm",name:"GLM Coding",icon:"code",color:"#2563EB",textIcon:"GL",website:"https://open.bigmodel.cn"},kimi:{id:"kimi",alias:"kimi",name:"Kimi",icon:"psychology",color:"#1E3A8A",textIcon:"KM",website:"https://kimi.moonshot.cn"},minimax:{id:"minimax",alias:"minimax",name:"Minimax Coding",icon:"memory",color:"#7C3AED",textIcon:"MM",website:"https://www.minimaxi.com"},"minimax-cn":{id:"minimax-cn",alias:"minimax-cn",name:"Minimax (China)",icon:"memory",color:"#DC2626",textIcon:"MC",website:"https://www.minimaxi.com"},openai:{id:"openai",alias:"openai",name:"OpenAI",icon:"auto_awesome",color:"#10A37F",textIcon:"OA",website:"https://platform.openai.com"},anthropic:{id:"anthropic",alias:"anthropic",name:"Anthropic",icon:"smart_toy",color:"#D97757",textIcon:"AN",website:"https://console.anthropic.com"},gemini:{id:"gemini",alias:"gemini",name:"Gemini",icon:"diamond",color:"#4285F4",textIcon:"GE",website:"https://ai.google.dev"},deepseek:{id:"deepseek",alias:"ds",name:"DeepSeek",icon:"bolt",color:"#4D6BFE",textIcon:"DS",website:"https://deepseek.com"},groq:{id:"groq",alias:"groq",name:"Groq",icon:"speed",color:"#F55036",textIcon:"GQ",website:"https://groq.com",hasFree:!0,freeNote:"Free tier: 30 RPM / 14.4K RPD — no credit card"},blackbox:{id:"blackbox",alias:"bb",name:"Blackbox AI",icon:"view_in_ar",color:"#1A1A2E",textIcon:"BB",website:"https://blackbox.ai"},xai:{id:"xai",alias:"xai",name:"xAI (Grok)",icon:"auto_awesome",color:"#1DA1F2",textIcon:"XA",website:"https://x.ai"},mistral:{id:"mistral",alias:"mistral",name:"Mistral",icon:"air",color:"#FF7000",textIcon:"MI",website:"https://mistral.ai"},perplexity:{id:"perplexity",alias:"pplx",name:"Perplexity",icon:"search",color:"#20808D",textIcon:"PP",website:"https://www.perplexity.ai"},together:{id:"together",alias:"together",name:"Together AI",icon:"group_work",color:"#0F6FFF",textIcon:"TG",website:"https://www.together.ai"},fireworks:{id:"fireworks",alias:"fireworks",name:"Fireworks AI",icon:"local_fire_department",color:"#7B2EF2",textIcon:"FW",website:"https://fireworks.ai"},cerebras:{id:"cerebras",alias:"cerebras",name:"Cerebras",icon:"memory",color:"#FF4F00",textIcon:"CB",website:"https://inference.cerebras.ai",hasFree:!0,freeNote:"Free: 1M tokens/day, 60K TPM — world's fastest inference"},cohere:{id:"cohere",alias:"cohere",name:"Cohere",icon:"hub",color:"#39594D",textIcon:"CO",website:"https://cohere.com"},nvidia:{id:"nvidia",alias:"nvidia",name:"NVIDIA NIM",icon:"developer_board",color:"#76B900",textIcon:"NV",website:"https://build.nvidia.com",hasFree:!0,freeNote:"Free dev access: ~40 RPM, 70+ models (Kimi K2.5, GLM 4.7, DeepSeek V3.2...)"},nebius:{id:"nebius",alias:"nebius",name:"Nebius AI",icon:"cloud",color:"#6C5CE7",textIcon:"NB",website:"https://nebius.com"},siliconflow:{id:"siliconflow",alias:"siliconflow",name:"SiliconFlow",icon:"cloud_queue",color:"#5B6EF5",textIcon:"SF",website:"https://cloud.siliconflow.com"},hyperbolic:{id:"hyperbolic",alias:"hyp",name:"Hyperbolic",icon:"bolt",color:"#00D4FF",textIcon:"HY",website:"https://hyperbolic.xyz"},deepgram:{id:"deepgram",alias:"dg",name:"Deepgram",icon:"mic",color:"#13EF93",textIcon:"DG",website:"https://deepgram.com"},assemblyai:{id:"assemblyai",alias:"aai",name:"AssemblyAI",icon:"record_voice_over",color:"#0062FF",textIcon:"AA",website:"https://assemblyai.com"},nanobanana:{id:"nanobanana",alias:"nb",name:"NanoBanana",icon:"image",color:"#FFD700",textIcon:"NB",website:"https://nanobananaapi.ai"},"ollama-cloud":{id:"ollama-cloud",alias:"ollamacloud",name:"Ollama Cloud",icon:"cloud",color:"#58A6FF",textIcon:"OC",website:"https://ollama.com/settings/api-keys"},elevenlabs:{id:"elevenlabs",alias:"el",name:"ElevenLabs",icon:"record_voice_over",color:"#6C47FF",textIcon:"EL",website:"https://elevenlabs.io"},cartesia:{id:"cartesia",alias:"cartesia",name:"Cartesia",icon:"spatial_audio",color:"#FF4F8B",textIcon:"CA",website:"https://cartesia.ai"},playht:{id:"playht",alias:"playht",name:"PlayHT",icon:"play_circle",color:"#00B4D8",textIcon:"PH",website:"https://play.ht"},inworld:{id:"inworld",alias:"inworld",name:"Inworld",icon:"voice_chat",color:"#7B2EF2",textIcon:"IW",website:"https://inworld.ai"},sdwebui:{id:"sdwebui",alias:"sdwebui",name:"SD WebUI",icon:"brush",color:"#FF7043",textIcon:"SD",website:"https://github.com/AUTOMATIC1111/stable-diffusion-webui"},comfyui:{id:"comfyui",alias:"comfyui",name:"ComfyUI",icon:"account_tree",color:"#4CAF50",textIcon:"CF",website:"https://github.com/comfyanonymous/ComfyUI"},huggingface:{id:"huggingface",alias:"hf",name:"HuggingFace",icon:"face",color:"#FFD21E",textIcon:"HF",website:"https://huggingface.co",hasFree:!0,freeNote:"Free Inference API for thousands of models (Whisper, VITS, SDXL…)"},synthetic:{id:"synthetic",alias:"synthetic",name:"Synthetic",icon:"verified_user",color:"#6366F1",textIcon:"SY",website:"https://synthetic.new",passthroughModels:!0},"kilo-gateway":{id:"kilo-gateway",alias:"kg",name:"Kilo Gateway",icon:"hub",color:"#617A91",textIcon:"KG",website:"https://kilo.ai",passthroughModels:!0},vertex:{id:"vertex",alias:"vertex",name:"Vertex AI",icon:"cloud",color:"#4285F4",textIcon:"VA",website:"https://cloud.google.com/vertex-ai",authHint:"Provide Service Account JSON or OAuth access_token"},zai:{id:"zai",alias:"zai",name:"Z.AI (GLM-5)",icon:"psychology",color:"#2563EB",textIcon:"ZA",website:"https://open.bigmodel.cn",apiHint:"API key from https://open.bigmodel.cn/usercenter/apikeys"},"perplexity-search":{id:"perplexity-search",alias:"pplx-search",name:"Perplexity Search",icon:"search",color:"#20808D",textIcon:"PS",website:"https://docs.perplexity.ai/guides/search-quickstart",authHint:"Same API key as Perplexity (pplx-...)"},"serper-search":{id:"serper-search",alias:"serper-search",name:"Serper Search",icon:"search",color:"#4285F4",textIcon:"SP",website:"https://serper.dev",authHint:"API key from serper.dev dashboard"},"brave-search":{id:"brave-search",alias:"brave-search",name:"Brave Search",icon:"travel_explore",color:"#FB542B",textIcon:"BR",website:"https://brave.com/search/api",authHint:"Subscription token from Brave Search API dashboard"},"exa-search":{id:"exa-search",alias:"exa-search",name:"Exa Search",icon:"neurology",color:"#1E40AF",textIcon:"EX",website:"https://exa.ai",authHint:"API key from dashboard.exa.ai"},"tavily-search":{id:"tavily-search",alias:"tavily-search",name:"Tavily Search",icon:"manage_search",color:"#5B4FDB",textIcon:"TV",website:"https://tavily.com",authHint:"API key from app.tavily.com (format: tvly-...)"}},d="openai-compatible-",u="anthropic-compatible-";function n(e){return"string"==typeof e&&e.startsWith(d)}function a(e){return"string"==typeof e&&e.startsWith(u)}let p={...s,...l,...c},m=Object.values(p).reduce((e,t)=>(e[t.alias]=t.id,e),{});Object.values(p).reduce((e,t)=>(e[t.id]=t.alias,e),{}),(0,o.validateProviders)(s,"FREE_PROVIDERS"),(0,o.validateProviders)(l,"OAUTH_PROVIDERS"),(0,o.validateProviders)(c,"APIKEY_PROVIDERS"),e.s(["AI_PROVIDERS",0,p,"ALIAS_TO_ID",0,m,"ANTHROPIC_COMPATIBLE_PREFIX",0,u,"APIKEY_PROVIDERS",0,c,"FREE_PROVIDERS",0,s,"OAUTH_PROVIDERS",0,l,"OPENAI_COMPATIBLE_PREFIX",0,d,"isAnthropicCompatibleProvider",()=>a,"isOpenAICompatibleProvider",()=>n]),r()}catch(e){r(e)}},!1),662636,e=>{"use strict";function t(e){if(!e)return"Unknown Account";let t="string"==typeof e.name&&e.name.trim()||"string"==typeof e.displayName&&e.displayName.trim()||"string"==typeof e.email&&e.email.trim();return t||("string"==typeof e.id&&e.id?`Account #${e.id.slice(0,6)}`:"Unknown Account")}e.s(["getAccountDisplayName",()=>t])},16023,e=>{"use strict";var t=e.i(522734),r=e.i(814747);let o=["clientId","clientSecret","tokenUrl","authUrl","refreshUrl"],i=0,n=null;var a=e.i(828059);let s=parseInt(process.env.FETCH_TIMEOUT_MS||"120000",10),l=parseInt(process.env.STREAM_IDLE_TIMEOUT_MS||"300000",10),c=(0,a.generateLegacyProviders)();!function(e){let a;if(n&&Date.now()-i<6e4)return;let s=(a=process.env.DATA_DIR||(0,r.join)(process.cwd(),"data"),(0,r.join)(a,"provider-credentials.json"));if(!(0,t.existsSync)(s))return n||console.log("[CREDENTIALS] No external credentials file found, using defaults."),n=e,i=Date.now();try{let r=(0,t.readFileSync)(s,"utf-8"),i=JSON.parse(r),a=0;for(let[t,r]of Object.entries(i)){if(!e[t]){console.log(`[CREDENTIALS] Warning: unknown provider "${t}" in credentials file, skipping.`);continue}if(!r||"object"!=typeof r){console.log(`[CREDENTIALS] Warning: provider "${t}" value must be an object, got ${typeof r}. Skipping.`);continue}for(let i of o)void 0!==r[i]&&(e[t][i]=r[i],a++)}let l=null!==n;console.log(`[CREDENTIALS] ${l?"Reloaded":"Loaded"} external credentials: ${a} field(s) from ${s}`)}catch(e){console.log(`[CREDENTIALS] Error reading credentials file: ${e.message}. Using defaults.`)}n=e,i=Date.now()}(c);let d={BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,NOT_ACCEPTABLE:406,REQUEST_TIMEOUT:408,RATE_LIMITED:429,SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504},u={[d.BAD_REQUEST]:{type:"invalid_request_error",code:"bad_request"},[d.UNAUTHORIZED]:{type:"authentication_error",code:"invalid_api_key"},[d.FORBIDDEN]:{type:"permission_error",code:"insufficient_quota"},[d.NOT_FOUND]:{type:"invalid_request_error",code:"model_not_found"},[d.RATE_LIMITED]:{type:"rate_limit_error",code:"rate_limit_exceeded"},[d.SERVER_ERROR]:{type:"server_error",code:"internal_server_error"},[d.BAD_GATEWAY]:{type:"server_error",code:"bad_gateway"},[d.SERVICE_UNAVAILABLE]:{type:"server_error",code:"service_unavailable"},[d.GATEWAY_TIMEOUT]:{type:"server_error",code:"gateway_timeout"}},p={[d.BAD_REQUEST]:"Bad request",[d.UNAUTHORIZED]:"Invalid API key provided",[d.FORBIDDEN]:"You exceeded your current quota",[d.NOT_FOUND]:"Model not found",[d.RATE_LIMITED]:"Rate limit exceeded",[d.SERVER_ERROR]:"Internal server error",[d.BAD_GATEWAY]:"Bad gateway - upstream provider error",[d.SERVICE_UNAVAILABLE]:"Service temporarily unavailable",[d.GATEWAY_TIMEOUT]:"Gateway timeout"};e.s(["ANTIGRAVITY_DEFAULT_SYSTEM",0,"Please ignore the following [ignore]You are Antigravity, a powerful agentic AI coding assistant designed by the Google Deepmind team working on Advanced Agentic Coding.You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.**Absolute paths only****Proactiveness**[/ignore]","BACKOFF_CONFIG",0,{base:1e3,max:12e4,maxLevel:15},"BACKOFF_STEPS_MS",0,[6e4,12e4,3e5,6e5,12e5],"CACHE_TTL",0,{userInfo:300,modelAlias:3600},"CLAUDE_SYSTEM_PROMPT",0,"You are Claude Code, Anthropic's official CLI for Claude.","COOLDOWN_MS",0,{unauthorized:12e4,paymentRequired:12e4,notFound:12e4,notFoundLocal:5e3,transientInitial:5e3,transientMax:6e4,transient:5e3,requestNotAllowed:5e3,rateLimit:12e4,serviceUnavailable:2e3,authExpired:12e4},"DEFAULT_API_LIMITS",0,{requestsPerMinute:100,minTimeBetweenRequests:200,concurrentRequests:10},"DEFAULT_ERROR_MESSAGES",0,p,"DEFAULT_MAX_TOKENS",0,64e3,"DEFAULT_MIN_TOKENS",0,32e3,"ERROR_TYPES",0,u,"FETCH_TIMEOUT_MS",0,s,"HTTP_STATUS",0,d,"OAUTH_ENDPOINTS",0,{google:{token:"https://oauth2.googleapis.com/token",auth:"https://accounts.google.com/o/oauth2/auth"},openai:{token:"https://auth.openai.com/oauth/token",auth:"https://auth.openai.com/oauth/authorize"},anthropic:{token:"https://console.anthropic.com/v1/oauth/token",auth:"https://console.anthropic.com/v1/oauth/authorize"},qwen:{token:"https://chat.qwen.ai/api/v1/oauth2/token",auth:"https://chat.qwen.ai/api/v1/oauth2/device/code"},iflow:{token:"https://iflow.cn/oauth/token",auth:"https://iflow.cn/oauth"},github:{token:"https://github.com/login/oauth/access_token",auth:"https://github.com/login/oauth/authorize",deviceCode:"https://github.com/login/device/code"}},"PROVIDERS",0,c,"PROVIDER_PROFILES",0,{oauth:{transientCooldown:5e3,rateLimitCooldown:6e4,maxBackoffLevel:8,circuitBreakerThreshold:3,circuitBreakerReset:6e4},apikey:{transientCooldown:3e3,rateLimitCooldown:0,maxBackoffLevel:5,circuitBreakerThreshold:5,circuitBreakerReset:3e4},local:{transientCooldown:2e3,rateLimitCooldown:5e3,maxBackoffLevel:3,circuitBreakerThreshold:2,circuitBreakerReset:15e3}},"RateLimitReason",0,{QUOTA_EXHAUSTED:"quota_exhausted",RATE_LIMIT_EXCEEDED:"rate_limit_exceeded",MODEL_CAPACITY:"model_capacity",SERVER_ERROR:"server_error",AUTH_ERROR:"auth_error",UNKNOWN:"unknown"},"SKIP_PATTERNS",0,["Please write a 5-10 word title for the following conversation:"],"STREAM_IDLE_TIMEOUT_MS",0,l],16023)},362562,(e,t,r)=>{t.exports=e.x("module",()=>require("module"))},363890,(e,t,r)=>{t.exports=e.x("stream/web",()=>require("stream/web"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},478500,(e,t,r)=>{t.exports=e.x("node:async_hooks",()=>require("node:async_hooks"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},951615,(e,t,r)=>{t.exports=e.x("node:buffer",()=>require("node:buffer"))},57328,(e,t,r)=>{t.exports=e.x("node:assert",()=>require("node:assert"))},761095,(e,t,r)=>{t.exports=e.x("node:net",()=>require("node:net"))},347299,(e,t,r)=>{t.exports=e.x("node:http",()=>require("node:http"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},483324,(e,t,r)=>{t.exports=e.x("node:querystring",()=>require("node:querystring"))},687769,(e,t,r)=>{t.exports=e.x("node:events",()=>require("node:events"))},677652,(e,t,r)=>{t.exports=e.x("node:diagnostics_channel",()=>require("node:diagnostics_channel"))},685560,(e,t,r)=>{t.exports=e.x("node:tls",()=>require("node:tls"))},727028,(e,t,r)=>{t.exports=e.x("node:zlib",()=>require("node:zlib"))},874096,(e,t,r)=>{t.exports=e.x("node:perf_hooks",()=>require("node:perf_hooks"))},107417,(e,t,r)=>{t.exports=e.x("node:util/types",()=>require("node:util/types"))},925127,(e,t,r)=>{t.exports=e.x("node:worker_threads",()=>require("node:worker_threads"))},246479,(e,t,r)=>{t.exports=e.x("node:http2",()=>require("node:http2"))},857764,(e,t,r)=>{t.exports=e.x("node:url",()=>require("node:url"))},241293,(e,t,r)=>{t.exports=e.x("node:console",()=>require("node:console"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},26910,(e,t,r)=>{t.exports=e.x("node:timers",()=>require("node:timers"))},495879,(e,t,r)=>{t.exports=e.x("node:dns",()=>require("node:dns"))},427699,(e,t,r)=>{t.exports=e.x("events",()=>require("events"))},504446,(e,t,r)=>{t.exports=e.x("net",()=>require("net"))},500874,(e,t,r)=>{t.exports=e.x("buffer",()=>require("buffer"))},688947,(e,t,r)=>{t.exports=e.x("stream",()=>require("stream"))},921517,(e,t,r)=>{t.exports=e.x("http",()=>require("http"))},496928,e=>{"use strict";var t=e.i(689960),r=e.i(157763);let o=!r.isCloud&&!r.isBuildPhase,i=parseInt(process.env.PROXY_LOG_MAX_ENTRIES||"200",10),n=[];if(o)try{for(let e of(0,r.getDbInstance)().prepare("SELECT * FROM proxy_logs ORDER BY timestamp DESC LIMIT ?").all(i))n.push({id:e.id,timestamp:e.timestamp,status:e.status||"success",proxy:e.proxy_host?{type:e.proxy_type,host:e.proxy_host,port:e.proxy_port}:null,level:e.level||"direct",levelId:e.level_id||null,provider:e.provider||null,targetUrl:e.target_url||null,publicIp:e.public_ip||null,latencyMs:e.latency_ms||0,error:e.error||null,connectionId:e.connection_id||null,comboId:e.combo_id||null,account:e.account||null,tlsFingerprint:1===e.tls_fingerprint});n.length>0&&console.log(`[proxyLogger] Loaded ${n.length} proxy logs from SQLite`)}catch(e){console.warn("[proxyLogger] Failed to load from DB:",e.message)}function a(e){let a={id:(0,t.v4)(),timestamp:new Date().toISOString(),status:e.status||"success",proxy:e.proxy||null,level:e.level||"direct",levelId:e.levelId||null,provider:e.provider||null,targetUrl:e.targetUrl||null,publicIp:e.publicIp||null,latencyMs:e.latencyMs||0,error:e.error||null,connectionId:e.connectionId||null,comboId:e.comboId||null,account:e.account||null,tlsFingerprint:e.tlsFingerprint||!1};if(n.unshift(a),n.length>i&&(n.length=i),o)try{let e=(0,r.getDbInstance)();e.prepare(`INSERT INTO proxy_logs (id, timestamp, status, proxy_type, proxy_host, proxy_port,
|
|
1
|
+
module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},442315,(e,t,r)=>{"use strict";t.exports=e.r(918622)},347540,(e,t,r)=>{"use strict";t.exports=e.r(442315).vendored["react-rsc"].React},819481,(e,t,r)=>{"use strict";var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s={},l={RequestCookies:()=>g,ResponseCookies:()=>f,parseCookie:()=>u,parseSetCookie:()=>p,stringifyCookie:()=>d};for(var c in l)o(s,c,{get:l[c],enumerable:!0});function d(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),o=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?o:`${o}; ${r.join("; ")}`}function u(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[o,n]=[r.slice(0,e),r.slice(e+1)];try{t.set(o,decodeURIComponent(null!=n?n:"true"))}catch{}}return t}function p(e){if(!e)return;let[[t,r],...o]=u(e),{domain:n,expires:i,httponly:a,maxage:s,path:l,samesite:c,secure:d,partitioned:p,priority:g}=Object.fromEntries(o.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var f,x,y={name:t,value:decodeURIComponent(r),domain:n,...i&&{expires:new Date(i)},...a&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:l,...c&&{sameSite:m.includes(f=(f=c).toLowerCase())?f:void 0},...d&&{secure:!0},...g&&{priority:h.includes(x=(x=g).toLowerCase())?x:void 0},...p&&{partitioned:!0}};let e={};for(let t in y)y[t]&&(e[t]=y[t]);return e}}t.exports=((e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of i(t))a.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(s=n(t,r))||s.enumerable});return e})(o({},"__esModule",{value:!0}),s);var m=["strict","lax","none"],h=["low","medium","high"],g=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of u(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let o="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===o).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,o=this._parsed;return o.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(o).map(([e,t])=>d(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>d(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},f=class{constructor(e){var t,r,o;this._parsed=new Map,this._headers=e;const n=null!=(o=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?o:[];for(const e of Array.isArray(n)?n:function(e){if(!e)return[];var t,r,o,n,i,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,i=!1;l();)if(","===(r=e.charAt(s))){for(o=s,s+=1,l(),n=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(i=!0,s=n,a.push(e.substring(t,o)),t=s):s=o+1}else s+=1;(!i||s>=e.length)&&a.push(e.substring(t,e.length))}return a}(n)){const t=p(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let o="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===o)}has(e){return this._parsed.has(e)}set(...e){let[t,r,o]=1===e.length?[e[0].name,e[0].value,e[0]]:e,n=this._parsed;return n.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...o})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=d(r);t.append("set-cookie",e)}}(n,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(d).join("; ")}}},677850,e=>e.a(async(t,r)=>{try{let t=await e.y("zod");e.n(t),r()}catch(e){r(e)}},!0),924868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},266240,e=>{"use strict";var t=e.i(924868),r=e.i(446786),o=e.i(814747),n=e.i(233405);let i=new Set(["auto","host","container"]),a=new Set(["0","false","no","off"]),s={claude:{defaultCommand:"claude",envBinKey:"CLI_CLAUDE_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{settings:".claude/settings.json"}},codex:{defaultCommand:"codex",envBinKey:"CLI_CODEX_BIN",requiresBinary:!0,healthcheckTimeoutMs:4e3,paths:{config:".codex/config.toml",auth:".codex/auth.json"}},droid:{defaultCommand:"droid",envBinKey:"CLI_DROID_BIN",requiresBinary:!0,healthcheckTimeoutMs:8e3,paths:{settings:".factory/settings.json"}},openclaw:{defaultCommand:"openclaw",envBinKey:"CLI_OPENCLAW_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{settings:".openclaw/openclaw.json"}},cursor:{defaultCommands:["agent","cursor"],envBinKey:"CLI_CURSOR_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".cursor/cli-config.json",auth:".config/cursor/auth.json",state:".cursor/agent-cli-state.json"}},cline:{defaultCommand:"cline",envBinKey:"CLI_CLINE_BIN",requiresBinary:!0,healthcheckTimeoutMs:12e3,paths:{globalState:".cline/data/globalState.json",secrets:".cline/data/secrets.json"}},kilo:{defaultCommand:"kilocode",envBinKey:"CLI_KILO_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{auth:".local/share/kilo/auth.json"}},continue:{defaultCommand:null,envBinKey:"CLI_CONTINUE_BIN",requiresBinary:!1,healthcheckTimeoutMs:15e3,paths:{settings:".continue/config.json"}},opencode:{defaultCommand:"opencode",envBinKey:"CLI_OPENCODE_BIN",requiresBinary:!0,healthcheckTimeoutMs:15e3,paths:{config:".config/opencode/config.toml"}}},l=(e,t,{env:r,timeoutMs:o=3e3}={})=>new Promise(i=>{let a="",s="",l=!1,c=!1,d=(0,n.spawn)(e,t,{env:r,stdio:["ignore","pipe","pipe"],..."win32"===process.platform?"TURBOPACK unreachable":{}}),u=setTimeout(()=>{l=!0,d.kill("SIGKILL")},o),p=e=>{c||(c=!0,clearTimeout(u),i(e))};d.stdout.on("data",e=>{a+=e.toString()}),d.stderr.on("data",e=>{s+=e.toString()}),d.on("error",e=>{p({ok:!1,code:null,stdout:a.trim(),stderr:s.trim(),timedOut:l,error:e?.message||"spawn_error"})}),d.on("close",e=>{p({ok:!l&&0===e,code:e,stdout:a.trim(),stderr:s.trim(),timedOut:l,error:l?"timeout":null})})}),c=["&","|",";","<",">","(",")","`","$","^","%","!"],d=async e=>{if(!(!(!e||!o.default.isAbsolute(e)||c.some(t=>e.includes(t)))&&1))return{installed:!1,commandPath:null,reason:"unsafe_path"};try{await t.default.access(e,t.default.constants.F_OK)}catch{return{installed:!1,commandPath:null,reason:"not_found"}}try{return await t.default.access(e,t.default.constants.X_OK),{installed:!0,commandPath:e,reason:null}}catch{return{installed:!0,commandPath:e,reason:"not_executable"}}},u=async(e,t)=>{if(!e)return{installed:!1,commandPath:null,reason:"missing_command"};if(e.includes("/")||e.includes("\\"))return d(e);process.platform;let r=await l("sh",["-c",'command -v -- "$1"',"sh",e],{env:t,timeoutMs:3e3});if(!r.ok||!r.stdout)return{installed:!1,commandPath:null,reason:"not_found"};let o=r.stdout.split(/\r?\n/).map(e=>e.trim()).find(Boolean)||null;return{installed:!!o,commandPath:o,reason:o?null:"not_found"}},p=async(e,t)=>{if(!Array.isArray(e)||0===e.length)return{command:null,installed:!1,commandPath:null,reason:"missing_command"};for(let r of e){let e=await u(r,t);if(e.installed||"not_found"!==e.reason)return{command:r,...e}}return{command:e[0],installed:!1,commandPath:null,reason:"not_found"}},m=async(e,t,r=4e3)=>{for(let o of[["--version"],["-v"]])if((await l(e,o,{env:t,timeoutMs:r})).ok)return{runnable:!0,reason:null};return{runnable:!1,reason:"healthcheck_failed"}},h=e=>{let t=s[e];if(!t)return null;let n=String(process.env.CLI_CONFIG_HOME||"").trim()||r.default.homedir();return Object.fromEntries(Object.entries(t.paths).map(([e,t])=>[e,o.default.join(n,t)]))},g=async e=>{let t,r,n,a=s[e],l=(t=String(process.env.CLI_MODE||"auto").trim().toLowerCase(),i.has(t)?t:"auto");if(!a)return{installed:!1,runnable:!1,command:null,commandPath:null,reason:"unknown_tool",runtimeMode:l,requiresBinary:!1};let c=(r={...process.env},(n=String(process.env.CLI_EXTRA_PATHS||"").split(o.default.delimiter).map(e=>e.trim()).filter(Boolean)).length>0&&(r.PATH=[...n,r.PATH||""].filter(Boolean).join(o.default.delimiter)),r),d=(e=>{let t=s[e];if(!t)return[];let r=String(process.env[t.envBinKey]||"").trim();return r?[r]:Array.isArray(t.defaultCommands)&&t.defaultCommands.length>0?t.defaultCommands.filter(Boolean):t.defaultCommand?[t.defaultCommand]:[]})(e),u=!1!==a.requiresBinary;if(!u&&0===d.length)return{installed:!0,runnable:!0,command:null,commandPath:null,reason:"not_required",runtimeMode:l,requiresBinary:u};let h=await p(d,c),g=h.command;if(!h.installed)return{installed:!1,runnable:!1,command:g,commandPath:null,reason:h.reason||"not_found",runtimeMode:l,requiresBinary:u};if("not_executable"===h.reason)return{installed:!0,runnable:!1,command:g,commandPath:h.commandPath,reason:"not_executable",runtimeMode:l,requiresBinary:u};let f=await m(h.commandPath,c,Number(a.healthcheckTimeoutMs||4e3));return{installed:!0,runnable:f.runnable,command:g,commandPath:h.commandPath,reason:f.reason,runtimeMode:l,requiresBinary:u}},f=Object.keys(s);e.s(["CLI_TOOL_IDS",0,f,"ensureCliConfigWriteAllowed",0,()=>((e,t=!0)=>null==e||""===e?t:!a.has(String(e).trim().toLowerCase()))(process.env.CLI_ALLOW_CONFIG_WRITES,!0)?null:"CLI config writes are disabled (CLI_ALLOW_CONFIG_WRITES=false)","getCliConfigPaths",0,h,"getCliPrimaryConfigPath",0,e=>{let t=h(e);if(!t)return null;let r=Object.keys(t)[0];return r?t[r]:null},"getCliRuntimeStatus",0,g])},102835,e=>e.a(async(t,r)=>{try{var o=e.i(677850),n=t([o]);[o]=n.then?(await n)():n;let a=o.z.object({id:o.z.string().min(1),alias:o.z.string().min(1),name:o.z.string().min(1),icon:o.z.string().min(1),color:o.z.string().regex(/^#[0-9A-Fa-f]{6}$/,"Must be a valid hex color (#RRGGBB)"),textIcon:o.z.string().optional(),website:o.z.string().url().optional(),passthroughModels:o.z.boolean().optional()}),s=o.z.record(o.z.string(),a);function i(e,t){let r=s.safeParse(e);if(!r.success){let e=r.error.issues.map(e=>` ${e.path.join(".")}: ${e.message}`).join("\n");throw console.error(`[PROVIDER VALIDATION] ${t} has invalid entries:
|
|
2
|
+
${e}`),Error(`Provider validation failed for ${t}`)}}e.s(["validateProviders",()=>i]),r()}catch(e){r(e)}},!1),963219,e=>e.a(async(t,r)=>{try{var o=e.i(102835),n=t([o]);[o]=n.then?(await n)():n;let s={iflow:{id:"iflow",alias:"if",name:"iFlow AI",icon:"water_drop",color:"#6366F1"},qwen:{id:"qwen",alias:"qw",name:"Qwen Code",icon:"psychology",color:"#10B981"},"gemini-cli":{id:"gemini-cli",alias:"gc",name:"Gemini CLI",icon:"terminal",color:"#4285F4"},kiro:{id:"kiro",alias:"kr",name:"Kiro AI",icon:"psychology_alt",color:"#FF6B35"}},l={claude:{id:"claude",alias:"cc",name:"Claude Code",icon:"smart_toy",color:"#D97757"},antigravity:{id:"antigravity",alias:"ag",name:"Antigravity",icon:"rocket_launch",color:"#F59E0B"},codex:{id:"codex",alias:"cx",name:"OpenAI Codex",icon:"code",color:"#3B82F6"},github:{id:"github",alias:"gh",name:"GitHub Copilot",icon:"code",color:"#333333"},cursor:{id:"cursor",alias:"cu",name:"Cursor IDE",icon:"edit_note",color:"#00D4AA"},"kimi-coding":{id:"kimi-coding",alias:"kmc",name:"Kimi Coding",icon:"psychology",color:"#1E40AF",textIcon:"KC"},kilocode:{id:"kilocode",alias:"kc",name:"Kilo Code",icon:"code",color:"#FF6B35",textIcon:"KC"},cline:{id:"cline",alias:"cl",name:"Cline",icon:"smart_toy",color:"#5B9BD5",textIcon:"CL"}},c={openrouter:{id:"openrouter",alias:"openrouter",name:"OpenRouter",icon:"router",color:"#F97316",textIcon:"OR",passthroughModels:!0,website:"https://openrouter.ai"},glm:{id:"glm",alias:"glm",name:"GLM Coding",icon:"code",color:"#2563EB",textIcon:"GL",website:"https://open.bigmodel.cn"},kimi:{id:"kimi",alias:"kimi",name:"Kimi",icon:"psychology",color:"#1E3A8A",textIcon:"KM",website:"https://kimi.moonshot.cn"},minimax:{id:"minimax",alias:"minimax",name:"Minimax Coding",icon:"memory",color:"#7C3AED",textIcon:"MM",website:"https://www.minimaxi.com"},"minimax-cn":{id:"minimax-cn",alias:"minimax-cn",name:"Minimax (China)",icon:"memory",color:"#DC2626",textIcon:"MC",website:"https://www.minimaxi.com"},openai:{id:"openai",alias:"openai",name:"OpenAI",icon:"auto_awesome",color:"#10A37F",textIcon:"OA",website:"https://platform.openai.com"},anthropic:{id:"anthropic",alias:"anthropic",name:"Anthropic",icon:"smart_toy",color:"#D97757",textIcon:"AN",website:"https://console.anthropic.com"},gemini:{id:"gemini",alias:"gemini",name:"Gemini",icon:"diamond",color:"#4285F4",textIcon:"GE",website:"https://ai.google.dev"},deepseek:{id:"deepseek",alias:"ds",name:"DeepSeek",icon:"bolt",color:"#4D6BFE",textIcon:"DS",website:"https://deepseek.com"},groq:{id:"groq",alias:"groq",name:"Groq",icon:"speed",color:"#F55036",textIcon:"GQ",website:"https://groq.com",hasFree:!0,freeNote:"Free tier: 30 RPM / 14.4K RPD — no credit card"},blackbox:{id:"blackbox",alias:"bb",name:"Blackbox AI",icon:"view_in_ar",color:"#1A1A2E",textIcon:"BB",website:"https://blackbox.ai"},xai:{id:"xai",alias:"xai",name:"xAI (Grok)",icon:"auto_awesome",color:"#1DA1F2",textIcon:"XA",website:"https://x.ai"},mistral:{id:"mistral",alias:"mistral",name:"Mistral",icon:"air",color:"#FF7000",textIcon:"MI",website:"https://mistral.ai"},perplexity:{id:"perplexity",alias:"pplx",name:"Perplexity",icon:"search",color:"#20808D",textIcon:"PP",website:"https://www.perplexity.ai"},together:{id:"together",alias:"together",name:"Together AI",icon:"group_work",color:"#0F6FFF",textIcon:"TG",website:"https://www.together.ai"},fireworks:{id:"fireworks",alias:"fireworks",name:"Fireworks AI",icon:"local_fire_department",color:"#7B2EF2",textIcon:"FW",website:"https://fireworks.ai"},cerebras:{id:"cerebras",alias:"cerebras",name:"Cerebras",icon:"memory",color:"#FF4F00",textIcon:"CB",website:"https://inference.cerebras.ai",hasFree:!0,freeNote:"Free: 1M tokens/day, 60K TPM — world's fastest inference"},cohere:{id:"cohere",alias:"cohere",name:"Cohere",icon:"hub",color:"#39594D",textIcon:"CO",website:"https://cohere.com"},nvidia:{id:"nvidia",alias:"nvidia",name:"NVIDIA NIM",icon:"developer_board",color:"#76B900",textIcon:"NV",website:"https://build.nvidia.com",hasFree:!0,freeNote:"Free dev access: ~40 RPM, 70+ models (Kimi K2.5, GLM 4.7, DeepSeek V3.2...)"},nebius:{id:"nebius",alias:"nebius",name:"Nebius AI",icon:"cloud",color:"#6C5CE7",textIcon:"NB",website:"https://nebius.com"},siliconflow:{id:"siliconflow",alias:"siliconflow",name:"SiliconFlow",icon:"cloud_queue",color:"#5B6EF5",textIcon:"SF",website:"https://cloud.siliconflow.com"},hyperbolic:{id:"hyperbolic",alias:"hyp",name:"Hyperbolic",icon:"bolt",color:"#00D4FF",textIcon:"HY",website:"https://hyperbolic.xyz"},deepgram:{id:"deepgram",alias:"dg",name:"Deepgram",icon:"mic",color:"#13EF93",textIcon:"DG",website:"https://deepgram.com"},assemblyai:{id:"assemblyai",alias:"aai",name:"AssemblyAI",icon:"record_voice_over",color:"#0062FF",textIcon:"AA",website:"https://assemblyai.com"},nanobanana:{id:"nanobanana",alias:"nb",name:"NanoBanana",icon:"image",color:"#FFD700",textIcon:"NB",website:"https://nanobananaapi.ai"},"ollama-cloud":{id:"ollama-cloud",alias:"ollamacloud",name:"Ollama Cloud",icon:"cloud",color:"#58A6FF",textIcon:"OC",website:"https://ollama.com/settings/api-keys"},elevenlabs:{id:"elevenlabs",alias:"el",name:"ElevenLabs",icon:"record_voice_over",color:"#6C47FF",textIcon:"EL",website:"https://elevenlabs.io"},cartesia:{id:"cartesia",alias:"cartesia",name:"Cartesia",icon:"spatial_audio",color:"#FF4F8B",textIcon:"CA",website:"https://cartesia.ai"},playht:{id:"playht",alias:"playht",name:"PlayHT",icon:"play_circle",color:"#00B4D8",textIcon:"PH",website:"https://play.ht"},inworld:{id:"inworld",alias:"inworld",name:"Inworld",icon:"voice_chat",color:"#7B2EF2",textIcon:"IW",website:"https://inworld.ai"},sdwebui:{id:"sdwebui",alias:"sdwebui",name:"SD WebUI",icon:"brush",color:"#FF7043",textIcon:"SD",website:"https://github.com/AUTOMATIC1111/stable-diffusion-webui"},comfyui:{id:"comfyui",alias:"comfyui",name:"ComfyUI",icon:"account_tree",color:"#4CAF50",textIcon:"CF",website:"https://github.com/comfyanonymous/ComfyUI"},huggingface:{id:"huggingface",alias:"hf",name:"HuggingFace",icon:"face",color:"#FFD21E",textIcon:"HF",website:"https://huggingface.co",hasFree:!0,freeNote:"Free Inference API for thousands of models (Whisper, VITS, SDXL…)"},synthetic:{id:"synthetic",alias:"synthetic",name:"Synthetic",icon:"verified_user",color:"#6366F1",textIcon:"SY",website:"https://synthetic.new",passthroughModels:!0},"kilo-gateway":{id:"kilo-gateway",alias:"kg",name:"Kilo Gateway",icon:"hub",color:"#617A91",textIcon:"KG",website:"https://kilo.ai",passthroughModels:!0},vertex:{id:"vertex",alias:"vertex",name:"Vertex AI",icon:"cloud",color:"#4285F4",textIcon:"VA",website:"https://cloud.google.com/vertex-ai",authHint:"Provide Service Account JSON or OAuth access_token"},zai:{id:"zai",alias:"zai",name:"Z.AI (GLM-5)",icon:"psychology",color:"#2563EB",textIcon:"ZA",website:"https://open.bigmodel.cn",apiHint:"API key from https://open.bigmodel.cn/usercenter/apikeys"},"perplexity-search":{id:"perplexity-search",alias:"pplx-search",name:"Perplexity Search",icon:"search",color:"#20808D",textIcon:"PS",website:"https://docs.perplexity.ai/guides/search-quickstart",authHint:"Same API key as Perplexity (pplx-...)"},"serper-search":{id:"serper-search",alias:"serper-search",name:"Serper Search",icon:"search",color:"#4285F4",textIcon:"SP",website:"https://serper.dev",authHint:"API key from serper.dev dashboard"},"brave-search":{id:"brave-search",alias:"brave-search",name:"Brave Search",icon:"travel_explore",color:"#FB542B",textIcon:"BR",website:"https://brave.com/search/api",authHint:"Subscription token from Brave Search API dashboard"},"exa-search":{id:"exa-search",alias:"exa-search",name:"Exa Search",icon:"neurology",color:"#1E40AF",textIcon:"EX",website:"https://exa.ai",authHint:"API key from dashboard.exa.ai"},"tavily-search":{id:"tavily-search",alias:"tavily-search",name:"Tavily Search",icon:"manage_search",color:"#5B4FDB",textIcon:"TV",website:"https://tavily.com",authHint:"API key from app.tavily.com (format: tvly-...)"}},d="openai-compatible-",u="anthropic-compatible-";function i(e){return"string"==typeof e&&e.startsWith(d)}function a(e){return"string"==typeof e&&e.startsWith(u)}let p={...s,...l,...c},m=Object.values(p).reduce((e,t)=>(e[t.alias]=t.id,e),{});Object.values(p).reduce((e,t)=>(e[t.id]=t.alias,e),{}),(0,o.validateProviders)(s,"FREE_PROVIDERS"),(0,o.validateProviders)(l,"OAUTH_PROVIDERS"),(0,o.validateProviders)(c,"APIKEY_PROVIDERS"),e.s(["AI_PROVIDERS",0,p,"ALIAS_TO_ID",0,m,"ANTHROPIC_COMPATIBLE_PREFIX",0,u,"APIKEY_PROVIDERS",0,c,"FREE_PROVIDERS",0,s,"OAUTH_PROVIDERS",0,l,"OPENAI_COMPATIBLE_PREFIX",0,d,"isAnthropicCompatibleProvider",()=>a,"isOpenAICompatibleProvider",()=>i]),r()}catch(e){r(e)}},!1),662636,e=>{"use strict";function t(e){if(!e)return"Unknown Account";let t="string"==typeof e.name&&e.name.trim()||"string"==typeof e.displayName&&e.displayName.trim()||"string"==typeof e.email&&e.email.trim();return t||("string"==typeof e.id&&e.id?`Account #${e.id.slice(0,6)}`:"Unknown Account")}e.s(["getAccountDisplayName",()=>t])},16023,e=>{"use strict";var t=e.i(522734),r=e.i(814747);let o=["clientId","clientSecret","tokenUrl","authUrl","refreshUrl"],n=0,i=null;var a=e.i(828059);let s=parseInt(process.env.FETCH_TIMEOUT_MS||"120000",10),l=parseInt(process.env.STREAM_IDLE_TIMEOUT_MS||"300000",10),c=(0,a.generateLegacyProviders)();!function(e){let a;if(i&&Date.now()-n<6e4)return;let s=(a=process.env.DATA_DIR||(0,r.join)(process.cwd(),"data"),(0,r.join)(a,"provider-credentials.json"));if(!(0,t.existsSync)(s))return i||console.log("[CREDENTIALS] No external credentials file found, using defaults."),i=e,n=Date.now();try{let r=(0,t.readFileSync)(s,"utf-8"),n=JSON.parse(r),a=0;for(let[t,r]of Object.entries(n)){if(!e[t]){console.log(`[CREDENTIALS] Warning: unknown provider "${t}" in credentials file, skipping.`);continue}if(!r||"object"!=typeof r){console.log(`[CREDENTIALS] Warning: provider "${t}" value must be an object, got ${typeof r}. Skipping.`);continue}for(let n of o)void 0!==r[n]&&(e[t][n]=r[n],a++)}let l=null!==i;console.log(`[CREDENTIALS] ${l?"Reloaded":"Loaded"} external credentials: ${a} field(s) from ${s}`)}catch(e){console.log(`[CREDENTIALS] Error reading credentials file: ${e.message}. Using defaults.`)}i=e,n=Date.now()}(c);let d={BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,NOT_ACCEPTABLE:406,REQUEST_TIMEOUT:408,RATE_LIMITED:429,SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504},u={[d.BAD_REQUEST]:{type:"invalid_request_error",code:"bad_request"},[d.UNAUTHORIZED]:{type:"authentication_error",code:"invalid_api_key"},[d.FORBIDDEN]:{type:"permission_error",code:"insufficient_quota"},[d.NOT_FOUND]:{type:"invalid_request_error",code:"model_not_found"},[d.RATE_LIMITED]:{type:"rate_limit_error",code:"rate_limit_exceeded"},[d.SERVER_ERROR]:{type:"server_error",code:"internal_server_error"},[d.BAD_GATEWAY]:{type:"server_error",code:"bad_gateway"},[d.SERVICE_UNAVAILABLE]:{type:"server_error",code:"service_unavailable"},[d.GATEWAY_TIMEOUT]:{type:"server_error",code:"gateway_timeout"}},p={[d.BAD_REQUEST]:"Bad request",[d.UNAUTHORIZED]:"Invalid API key provided",[d.FORBIDDEN]:"You exceeded your current quota",[d.NOT_FOUND]:"Model not found",[d.RATE_LIMITED]:"Rate limit exceeded",[d.SERVER_ERROR]:"Internal server error",[d.BAD_GATEWAY]:"Bad gateway - upstream provider error",[d.SERVICE_UNAVAILABLE]:"Service temporarily unavailable",[d.GATEWAY_TIMEOUT]:"Gateway timeout"};e.s(["ANTIGRAVITY_DEFAULT_SYSTEM",0,"Please ignore the following [ignore]You are Antigravity, a powerful agentic AI coding assistant designed by the Google Deepmind team working on Advanced Agentic Coding.You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.**Absolute paths only****Proactiveness**[/ignore]","BACKOFF_CONFIG",0,{base:1e3,max:12e4,maxLevel:15},"BACKOFF_STEPS_MS",0,[6e4,12e4,3e5,6e5,12e5],"CACHE_TTL",0,{userInfo:300,modelAlias:3600},"CLAUDE_SYSTEM_PROMPT",0,"You are Claude Code, Anthropic's official CLI for Claude.","COOLDOWN_MS",0,{unauthorized:12e4,paymentRequired:12e4,notFound:12e4,notFoundLocal:5e3,transientInitial:5e3,transientMax:6e4,transient:5e3,requestNotAllowed:5e3,rateLimit:12e4,serviceUnavailable:2e3,authExpired:12e4},"DEFAULT_API_LIMITS",0,{requestsPerMinute:100,minTimeBetweenRequests:200,concurrentRequests:10},"DEFAULT_ERROR_MESSAGES",0,p,"DEFAULT_MAX_TOKENS",0,64e3,"DEFAULT_MIN_TOKENS",0,32e3,"ERROR_TYPES",0,u,"FETCH_TIMEOUT_MS",0,s,"HTTP_STATUS",0,d,"OAUTH_ENDPOINTS",0,{google:{token:"https://oauth2.googleapis.com/token",auth:"https://accounts.google.com/o/oauth2/auth"},openai:{token:"https://auth.openai.com/oauth/token",auth:"https://auth.openai.com/oauth/authorize"},anthropic:{token:"https://console.anthropic.com/v1/oauth/token",auth:"https://console.anthropic.com/v1/oauth/authorize"},qwen:{token:"https://chat.qwen.ai/api/v1/oauth2/token",auth:"https://chat.qwen.ai/api/v1/oauth2/device/code"},iflow:{token:"https://iflow.cn/oauth/token",auth:"https://iflow.cn/oauth"},github:{token:"https://github.com/login/oauth/access_token",auth:"https://github.com/login/oauth/authorize",deviceCode:"https://github.com/login/device/code"}},"PROVIDERS",0,c,"PROVIDER_PROFILES",0,{oauth:{transientCooldown:5e3,rateLimitCooldown:6e4,maxBackoffLevel:8,circuitBreakerThreshold:3,circuitBreakerReset:6e4},apikey:{transientCooldown:3e3,rateLimitCooldown:0,maxBackoffLevel:5,circuitBreakerThreshold:5,circuitBreakerReset:3e4},local:{transientCooldown:2e3,rateLimitCooldown:5e3,maxBackoffLevel:3,circuitBreakerThreshold:2,circuitBreakerReset:15e3}},"RateLimitReason",0,{QUOTA_EXHAUSTED:"quota_exhausted",RATE_LIMIT_EXCEEDED:"rate_limit_exceeded",MODEL_CAPACITY:"model_capacity",SERVER_ERROR:"server_error",AUTH_ERROR:"auth_error",UNKNOWN:"unknown"},"SKIP_PATTERNS",0,["Please write a 5-10 word title for the following conversation:"],"STREAM_IDLE_TIMEOUT_MS",0,l],16023)},362562,(e,t,r)=>{t.exports=e.x("module",()=>require("module"))},363890,(e,t,r)=>{t.exports=e.x("stream/web",()=>require("stream/web"))},750227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},478500,(e,t,r)=>{t.exports=e.x("node:async_hooks",()=>require("node:async_hooks"))},812057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},951615,(e,t,r)=>{t.exports=e.x("node:buffer",()=>require("node:buffer"))},57328,(e,t,r)=>{t.exports=e.x("node:assert",()=>require("node:assert"))},761095,(e,t,r)=>{t.exports=e.x("node:net",()=>require("node:net"))},347299,(e,t,r)=>{t.exports=e.x("node:http",()=>require("node:http"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},483324,(e,t,r)=>{t.exports=e.x("node:querystring",()=>require("node:querystring"))},687769,(e,t,r)=>{t.exports=e.x("node:events",()=>require("node:events"))},677652,(e,t,r)=>{t.exports=e.x("node:diagnostics_channel",()=>require("node:diagnostics_channel"))},685560,(e,t,r)=>{t.exports=e.x("node:tls",()=>require("node:tls"))},727028,(e,t,r)=>{t.exports=e.x("node:zlib",()=>require("node:zlib"))},874096,(e,t,r)=>{t.exports=e.x("node:perf_hooks",()=>require("node:perf_hooks"))},107417,(e,t,r)=>{t.exports=e.x("node:util/types",()=>require("node:util/types"))},925127,(e,t,r)=>{t.exports=e.x("node:worker_threads",()=>require("node:worker_threads"))},246479,(e,t,r)=>{t.exports=e.x("node:http2",()=>require("node:http2"))},857764,(e,t,r)=>{t.exports=e.x("node:url",()=>require("node:url"))},241293,(e,t,r)=>{t.exports=e.x("node:console",()=>require("node:console"))},912714,(e,t,r)=>{t.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},26910,(e,t,r)=>{t.exports=e.x("node:timers",()=>require("node:timers"))},495879,(e,t,r)=>{t.exports=e.x("node:dns",()=>require("node:dns"))},427699,(e,t,r)=>{t.exports=e.x("events",()=>require("events"))},504446,(e,t,r)=>{t.exports=e.x("net",()=>require("net"))},500874,(e,t,r)=>{t.exports=e.x("buffer",()=>require("buffer"))},688947,(e,t,r)=>{t.exports=e.x("stream",()=>require("stream"))},921517,(e,t,r)=>{t.exports=e.x("http",()=>require("http"))},496928,e=>{"use strict";var t=e.i(689960),r=e.i(157763);let o=!r.isCloud&&!r.isBuildPhase,n=parseInt(process.env.PROXY_LOG_MAX_ENTRIES||"200",10),i=[];if(o)try{for(let e of(0,r.getDbInstance)().prepare("SELECT * FROM proxy_logs ORDER BY timestamp DESC LIMIT ?").all(n))i.push({id:e.id,timestamp:e.timestamp,status:e.status||"success",proxy:e.proxy_host?{type:e.proxy_type,host:e.proxy_host,port:e.proxy_port}:null,level:e.level||"direct",levelId:e.level_id||null,provider:e.provider||null,targetUrl:e.target_url||null,publicIp:e.public_ip||null,latencyMs:e.latency_ms||0,error:e.error||null,connectionId:e.connection_id||null,comboId:e.combo_id||null,account:e.account||null,tlsFingerprint:1===e.tls_fingerprint});i.length>0&&console.log(`[proxyLogger] Loaded ${i.length} proxy logs from SQLite`)}catch(e){console.warn("[proxyLogger] Failed to load from DB:",e.message)}function a(e){let a={id:(0,t.v4)(),timestamp:new Date().toISOString(),status:e.status||"success",proxy:e.proxy||null,level:e.level||"direct",levelId:e.levelId||null,provider:e.provider||null,targetUrl:e.targetUrl||null,publicIp:e.publicIp||null,latencyMs:e.latencyMs||0,error:e.error||null,connectionId:e.connectionId||null,comboId:e.comboId||null,account:e.account||null,tlsFingerprint:e.tlsFingerprint||!1};if(i.unshift(a),i.length>n&&(i.length=n),o)try{let e=(0,r.getDbInstance)();e.prepare(`INSERT INTO proxy_logs (id, timestamp, status, proxy_type, proxy_host, proxy_port,
|
|
3
3
|
level, level_id, provider, target_url, public_ip, latency_ms, error,
|
|
4
4
|
connection_id, combo_id, account, tls_fingerprint)
|
|
5
5
|
VALUES (@id, @timestamp, @status, @proxyType, @proxyHost, @proxyPort,
|
|
6
6
|
@level, @levelId, @provider, @targetUrl, @publicIp, @latencyMs, @error,
|
|
7
|
-
@connectionId, @comboId, @account, @tlsFingerprint)`).run({id:a.id,timestamp:a.timestamp,status:a.status,proxyType:a.proxy?.type||null,proxyHost:a.proxy?.host||null,proxyPort:a.proxy?.port?Number(a.proxy.port):null,level:a.level,levelId:a.levelId,provider:a.provider,targetUrl:a.targetUrl,publicIp:a.publicIp,latencyMs:a.latencyMs,error:a.error,connectionId:a.connectionId,comboId:a.comboId,account:a.account,tlsFingerprint:+!!a.tlsFingerprint});let t=e.prepare("SELECT COUNT(*) as cnt FROM proxy_logs").get()?.cnt||0;t>
|
|
7
|
+
@connectionId, @comboId, @account, @tlsFingerprint)`).run({id:a.id,timestamp:a.timestamp,status:a.status,proxyType:a.proxy?.type||null,proxyHost:a.proxy?.host||null,proxyPort:a.proxy?.port?Number(a.proxy.port):null,level:a.level,levelId:a.levelId,provider:a.provider,targetUrl:a.targetUrl,publicIp:a.publicIp,latencyMs:a.latencyMs,error:a.error,connectionId:a.connectionId,comboId:a.comboId,account:a.account,tlsFingerprint:+!!a.tlsFingerprint});let t=e.prepare("SELECT COUNT(*) as cnt FROM proxy_logs").get()?.cnt||0;t>n&&e.prepare(`DELETE FROM proxy_logs WHERE id IN (
|
|
8
8
|
SELECT id FROM proxy_logs ORDER BY timestamp ASC LIMIT ?
|
|
9
|
-
)`).run(t-
|
|
9
|
+
)`).run(t-n)}catch(e){console.warn("[proxyLogger] Failed to persist:",e.message)}return a}function s(e={}){let t=[...i];if(e.status&&(t="ok"===e.status?t.filter(e=>"success"===e.status):t.filter(t=>t.status===e.status)),e.type&&(t=t.filter(t=>t.proxy?.type===e.type)),e.provider&&(t=t.filter(t=>t.provider===e.provider)),e.level&&(t=t.filter(t=>t.level===e.level)),e.search){let r=e.search.toLowerCase();t=t.filter(e=>(e.proxy?.host||"").toLowerCase().includes(r)||(e.provider||"").toLowerCase().includes(r)||(e.targetUrl||"").toLowerCase().includes(r)||(e.publicIp||"").toLowerCase().includes(r)||(e.level||"").toLowerCase().includes(r)||(e.error||"").toLowerCase().includes(r)||(e.account||"").toLowerCase().includes(r))}let r=e.limit||300;return t.slice(0,r)}function l(){if(i.length=0,o)try{(0,r.getDbInstance)().prepare("DELETE FROM proxy_logs").run()}catch(e){console.warn("[proxyLogger] Failed to clear DB:",e.message)}}e.s(["clearProxyLogs",()=>l,"getProxyLogs",()=>s,"logProxyEvent",()=>a])},15990,e=>e.a(async(t,r)=>{try{var o=e.i(747909),n=e.i(174017),i=e.i(996250),a=e.i(759756),s=e.i(561916),l=e.i(174677),c=e.i(869741),d=e.i(316795),u=e.i(487718),p=e.i(995169),m=e.i(47587),h=e.i(666012),g=e.i(570101),f=e.i(626937),x=e.i(10372),y=e.i(193695);e.i(52474);var _=e.i(600220),v=e.i(910660),I=t([v]);[v]=I.then?(await I)():I;let w=new o.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/providers/[id]/test/route",pathname:"/api/providers/[id]/test",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/providers/[id]/test/route.ts",nextConfigOutput:"standalone",userland:v}),{workAsyncStorage:A,workUnitAsyncStorage:R,serverHooks:C}=w;function b(){return(0,i.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:R})}async function E(e,t,r){w.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let o="/api/providers/[id]/test/route";o=o.replace(/\/index$/,"")||"/";let i=await w.prepare(e,t,{srcPage:o,multiZoneDraftMode:!1});if(!i)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:v,params:I,nextConfig:b,parsedUrl:E,isDraftMode:A,prerenderManifest:R,routerServerContext:C,isOnDemandRevalidate:T,revalidateOnlyGenerated:O,resolvedPathname:S,clientReferenceManifest:k,serverActionsManifest:P}=i,D=(0,c.normalizeAppPath)(o),F=!!(R.dynamicRoutes[D]||R.routes[S]),L=async()=>((null==C?void 0:C.render404)?await C.render404(e,t,E,!1):t.end("This page could not be found"),null);if(F&&!A){let e=!!R.routes[S],t=R.dynamicRoutes[D];if(t&&!1===t.fallback&&!e){if(b.experimental.adapterPath)return await L();throw new y.NoFallbackError}}let B=null;!F||w.isDev||A||(B=S,B="/index"===B?"/":B);let N=!0===w.isDev||!F,M=F&&!N;P&&k&&(0,l.setManifestsSingleton)({page:o,clientReferenceManifest:k,serverActionsManifest:P});let q=e.method||"GET",U=(0,s.getTracer)(),j=U.getActiveScopeSpan(),H={params:I,prerenderManifest:R,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:N,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:b.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,o,n)=>w.onRequestError(e,t,o,n,C)},sharedContext:{buildId:v}},K=new d.NodeNextRequest(e),$=new d.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let i=async e=>w.handle(G,H).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${q} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${q} ${o}`)}),l=!!(0,a.getRequestMeta)(e,"minimalMode"),c=async a=>{var s,c;let d=async({previousCacheEntry:n})=>{try{if(!l&&T&&O&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(a);e.fetchMetrics=H.renderOpts.fetchMetrics;let s=H.renderOpts.pendingWaitUntil;s&&r.waitUntil&&(r.waitUntil(s),s=void 0);let c=H.renderOpts.collectedTags;if(!F)return await (0,h.sendResponse)(K,$,o,H.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,g.toNodeOutgoingHttpHeaders)(o.headers);c&&(t[x.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==H.renderOpts.collectedRevalidate&&!(H.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&H.renderOpts.collectedRevalidate,n=void 0===H.renderOpts.collectedExpire||H.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:H.renderOpts.collectedExpire;return{value:{kind:_.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==n?void 0:n.isStale)&&await w.onRequestError(e,t,{routerKind:"App Router",routePath:o,routeType:"route",revalidateReason:(0,m.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,C),t}},u=await w.handleResponse({req:e,nextConfig:b,cacheKey:B,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:R,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:O,responseGenerator:d,waitUntil:r.waitUntil,isMinimalMode:l});if(!F)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==_.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(c=u.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});l||t.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,g.fromNodeOutgoingHttpHeaders)(u.value.headers);return l&&F||p.delete(x.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,h.sendResponse)(K,$,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};j?await c(j):await U.withPropagatedContext(e.headers,()=>U.trace(p.BaseServerSpan.handleRequest,{spanName:`${q} ${o}`,kind:s.SpanKind.SERVER,attributes:{"http.method":q,"http.target":e.url}},c))}catch(t){if(t instanceof y.NoFallbackError||await w.onRequestError(e,t,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,m.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,C),F)throw t;return await (0,h.sendResponse)(K,$,new Response(null,{status:500})),null}}e.s(["handler",()=>E,"patchFetch",()=>b,"routeModule",()=>w,"serverHooks",()=>C,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>R]),r()}catch(e){r(e)}},!1),606102,e=>{e.v(e=>Promise.resolve().then(()=>e(548941)))},789543,e=>{e.v(e=>Promise.resolve().then(()=>e(385498)))},579042,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_utils_apiKey_ts_fa113e09._.js"].map(t=>e.l(t))).then(()=>t(65448)))},49794,e=>{e.v(t=>Promise.all(["server/chunks/src_shared_constants_pricing_ts_65de0558._.js"].map(t=>e.l(t))).then(()=>t(404503)))},386305,e=>{e.v(e=>Promise.resolve().then(()=>e(878947)))},485685,e=>{e.v(e=>Promise.resolve().then(()=>e(254799)))},605589,e=>{e.v(t=>Promise.all(["server/chunks/src_lib_localDb_ts_83220848._.js"].map(t=>e.l(t))).then(()=>t(969738)))}];
|
|
10
10
|
|
|
11
11
|
//# sourceMappingURL=%5Broot-of-the-server%5D__134baf4c._.js.map
|