@exulu/frontend 1.3.0 → 1.3.1
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/dist/.next/BUILD_ID +1 -1
- package/dist/.next/app-build-manifest.json +81 -81
- package/dist/.next/app-path-routes-manifest.json +1 -1
- package/dist/.next/build-manifest.json +2 -2
- package/dist/.next/prerender-manifest.json +1 -1
- package/dist/.next/server/app/(application)/agents/edit/[id]/page.js +1 -1
- package/dist/.next/server/app/(application)/agents/edit/[id]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/agents/edit/[id]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/agents/page.js +2 -2
- package/dist/.next/server/app/(application)/agents/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/agents/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/[session]/page.js +2 -2
- package/dist/.next/server/app/(application)/chat/[agent]/[session]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/[session]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/page.js +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/chat/[agent]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/chat/page.js +1 -1
- package/dist/.next/server/app/(application)/chat/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/chat/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/configuration/page.js +1 -1
- package/dist/.next/server/app/(application)/configuration/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/configuration/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/dashboard/page.js +1 -1
- package/dist/.next/server/app/(application)/dashboard/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/dashboard/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/data/[[...query]]/page.js +1 -1
- package/dist/.next/server/app/(application)/data/[[...query]]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/data/[[...query]]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/page.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/runs/page.js +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/runs/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/evals/[id]/runs/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/evals/cases/page.js +1 -1
- package/dist/.next/server/app/(application)/evals/cases/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/evals/cases/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/evals/page.js +1 -1
- package/dist/.next/server/app/(application)/evals/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/evals/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/explorer/page.js +1 -1
- package/dist/.next/server/app/(application)/explorer/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/explorer/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/jobs/page.js +1 -1
- package/dist/.next/server/app/(application)/jobs/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/jobs/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/keys/page.js +1 -1
- package/dist/.next/server/app/(application)/keys/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/keys/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/page.js +1 -1
- package/dist/.next/server/app/(application)/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/projects/[project]/page.js +1 -1
- package/dist/.next/server/app/(application)/projects/[project]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/projects/[project]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/projects/page.js +1 -1
- package/dist/.next/server/app/(application)/projects/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/projects/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/roles/page.js +1 -1
- package/dist/.next/server/app/(application)/roles/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/roles/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/token/page.js +1 -1
- package/dist/.next/server/app/(application)/token/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/token/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/users/page.js +1 -1
- package/dist/.next/server/app/(application)/users/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/users/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/variables/create/page.js +1 -1
- package/dist/.next/server/app/(application)/variables/create/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/variables/create/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/variables/edit/[variable_id]/page.js +1 -1
- package/dist/.next/server/app/(application)/variables/edit/[variable_id]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/variables/edit/[variable_id]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/variables/page.js +1 -1
- package/dist/.next/server/app/(application)/variables/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/variables/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/variables/usage/[variable_id]/page.js +1 -1
- package/dist/.next/server/app/(application)/variables/usage/[variable_id]/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/variables/usage/[variable_id]/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(application)/workflows/page.js +1 -1
- package/dist/.next/server/app/(application)/workflows/page.js.nft.json +1 -1
- package/dist/.next/server/app/(application)/workflows/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/(authentication)/login/page.js +3 -3
- package/dist/.next/server/app/(authentication)/login/page.js.nft.json +1 -1
- package/dist/.next/server/app/(authentication)/login/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +1 -1
- package/dist/.next/server/app-paths-manifest.json +3 -3
- package/dist/.next/server/chunks/1051.js +48 -0
- package/dist/.next/server/chunks/7944.js +1 -1
- package/dist/.next/server/middleware-manifest.json +5 -5
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/server/server-reference-manifest.json +1 -1
- package/dist/.next/static/chunks/{3832-cfd7197465448e35.js → 3832-bfe8bd2edace90f9.js} +2 -2
- package/dist/.next/static/chunks/3832-bfe8bd2edace90f9.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/agents/page-499ac3bd1044306c.js +2 -0
- package/dist/.next/static/chunks/app/(application)/agents/page-499ac3bd1044306c.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-b600c0b270eedb7f.js +2 -0
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-b600c0b270eedb7f.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-2238f1fb73d93328.js +2 -0
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-2238f1fb73d93328.js.map +1 -0
- package/dist/.next/static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js +2 -0
- package/dist/.next/static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js.map +1 -0
- package/dist/.next/static/css/{175d6535ea9efb2c.css → 7b99daf4eb75ddb9.css} +2 -2
- package/dist/.next/static/css/{175d6535ea9efb2c.css.map → 7b99daf4eb75ddb9.css.map} +1 -1
- package/dist/.next/static/css/e3f2a16ab7676b05.css.map +1 -1
- package/package.json +1 -1
- package/dist/.next/server/chunks/7223.js +0 -48
- package/dist/.next/static/chunks/3832-cfd7197465448e35.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/agents/page-4137487b76f09235.js +0 -2
- package/dist/.next/static/chunks/app/(application)/agents/page-4137487b76f09235.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-0f729a6df64d730e.js +0 -2
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-0f729a6df64d730e.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-b2de62f11946627f.js +0 -2
- package/dist/.next/static/chunks/app/(application)/evals/[id]/page-b2de62f11946627f.js.map +0 -1
- package/dist/.next/static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js +0 -2
- package/dist/.next/static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js.map +0 -1
- /package/dist/.next/static/{_G7TS_eJB-KA5rdSZzdGX → ilyTh3roMkVIbl9q2AwIk}/_buildManifest.js +0 -0
- /package/dist/.next/static/{_G7TS_eJB-KA5rdSZzdGX → ilyTh3roMkVIbl9q2AwIk}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/(application)/evals/[id]/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"80":{"*":{"id":"41868","name":"*","chunks":[],"async":false}},"575":{"*":{"id":"15114","name":"*","chunks":[],"async":false}},"831":{"*":{"id":"23982","name":"*","chunks":[],"async":false}},"3793":{"*":{"id":"37404","name":"*","chunks":[],"async":false}},"4707":{"*":{"id":"79671","name":"*","chunks":[],"async":false}},"6231":{"*":{"id":"26533","name":"*","chunks":[],"async":true}},"9402":{"*":{"id":"31586","name":"*","chunks":[],"async":false}},"12846":{"*":{"id":"12994","name":"*","chunks":[],"async":false}},"13832":{"*":{"id":"15211","name":"*","chunks":[],"async":false}},"16120":{"*":{"id":"43490","name":"*","chunks":[],"async":false}},"16719":{"*":{"id":"48760","name":"*","chunks":[],"async":false}},"19107":{"*":{"id":"96114","name":"*","chunks":[],"async":false}},"19774":{"*":{"id":"99954","name":"*","chunks":[],"async":false}},"20442":{"*":{"id":"65765","name":"*","chunks":[],"async":true}},"21654":{"*":{"id":"8078","name":"*","chunks":[],"async":false}},"33354":{"*":{"id":"32108","name":"*","chunks":[],"async":false}},"34984":{"*":{"id":"28718","name":"*","chunks":[],"async":false}},"36423":{"*":{"id":"84759","name":"*","chunks":[],"async":false}},"38165":{"*":{"id":"3317","name":"*","chunks":[],"async":false}},"41587":{"*":{"id":"92214","name":"*","chunks":[],"async":false}},"44045":{"*":{"id":"30463","name":"*","chunks":[],"async":false}},"52323":{"*":{"id":"30574","name":"*","chunks":[],"async":false}},"52489":{"*":{"id":"82886","name":"*","chunks":[],"async":false}},"53806":{"*":{"id":"3966","name":"*","chunks":[],"async":false}},"55459":{"*":{"id":"63978","name":"*","chunks":[],"async":false}},"55623":{"*":{"id":"1520","name":"*","chunks":[],"async":false}},"57614":{"*":{"id":"75983","name":"*","chunks":[],"async":false}},"59556":{"*":{"id":"77083","name":"*","chunks":[],"async":false}},"60617":{"*":{"id":"77373","name":"*","chunks":[],"async":false}},"61060":{"*":{"id":"9727","name":"*","chunks":[],"async":false}},"63950":{"*":{"id":"37096","name":"*","chunks":[],"async":false}},"64419":{"*":{"id":"97304","name":"*","chunks":[],"async":false}},"67559":{"*":{"id":"38465","name":"*","chunks":[],"async":false}},"68476":{"*":{"id":"61444","name":"*","chunks":[],"async":false}},"70292":{"*":{"id":"50511","name":"*","chunks":[],"async":false}},"72147":{"*":{"id":"59243","name":"*","chunks":[],"async":false}},"76193":{"*":{"id":"26806","name":"*","chunks":[],"async":false}},"77569":{"*":{"id":"59190","name":"*","chunks":[],"async":false}},"82798":{"*":{"id":"15813","name":"*","chunks":[],"async":false}},"92814":{"*":{"id":"3275","name":"*","chunks":[],"async":false}},"96126":{"*":{"id":"46465","name":"*","chunks":[],"async":false}},"99593":{"*":{"id":"95220","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/app-router.js":{"id":12846,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/app-router.js":{"id":12846,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/client-page.js":{"id":19107,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/client-page.js":{"id":19107,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/error-boundary.js":{"id":61060,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":61060,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/render-from-template-context.js":{"id":36423,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":36423,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/configuration/page.tsx":{"id":9402,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/authenticated.tsx":{"id":13832,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","7629","static/chunks/7629-36a80394f5716831.js","6148","static/chunks/6148-ec67c453b9affb6a.js","847","static/chunks/847-7e49f05560c72797.js","7648","static/chunks/7648-be88d7a414ab6394.js","7823","static/chunks/7823-52bfe0a2cad4b916.js","8068","static/chunks/8068-9165bd614a7822c6.js","5799","static/chunks/5799-f292308b71870013.js","4567","static/chunks/4567-b526d1258bc33820.js","605","static/chunks/605-3880e43fef392c84.js","85","static/chunks/85-f0d63cfae716000a.js","4957","static/chunks/4957-da407878e1e8153f.js","7398","static/chunks/7398-c6de1642586049cd.js","6111","static/chunks/6111-5ab0e72a466543ea.js","3832","static/chunks/3832-cfd7197465448e35.js","1049","static/chunks/app/(application)/layout-73d93420d0c6661c.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/query-client.tsx":{"id":57614,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/globals.css":{"id":47960,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/components/config-context.tsx":{"id":44045,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/components/theme-provider.tsx":{"id":82798,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/components/ui/toaster.tsx":{"id":59556,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\"path\":\"lib/fonts.ts\",\"import\":\"\",\"arguments\":[{\"src\":[{\"path\":\"../public/fonts/Inter-Light.woff2\",\"weight\":\"300\",\"style\":\"normal\"},{\"path\":\"../public/fonts/Inter-Regular.woff2\",\"weight\":\"400\",\"style\":\"normal\"},{\"path\":\"../public/fonts/Inter-Bold.woff2\",\"weight\":\"700\",\"style\":\"normal\"}],\"variable\":\"--font-sans\",\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":59127,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\"path\":\"lib/fonts.ts\",\"import\":\"\",\"arguments\":[{\"src\":\"../public/fonts/JetBrainsMono-Regular.woff2\",\"variable\":\"--font-mono\",\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":78985,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\"path\":\"lib/fonts.ts\",\"import\":\"\",\"arguments\":[{\"src\":\"../public/fonts/Merriweather-Regular.woff2\",\"variable\":\"--font-serif\",\"display\":\"swap\"}],\"variableName\":\"merriweather\"}":{"id":38713,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-2dfa18ea6e6dc5cd.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/keys/page.tsx":{"id":63950,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/roles/page.tsx":{"id":96126,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/token/page.tsx":{"id":3793,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/agents/edit/[id]/page.tsx":{"id":76193,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/agents/page.tsx":{"id":72147,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/dashboard/page.tsx":{"id":34984,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/cases/page.tsx":{"id":52489,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/page.tsx":{"id":92814,"name":"*","chunks":["8310","static/chunks/0e5ce63c-ecdc54f30317a968.js","9851","static/chunks/9851-52f575957c29273b.js","7629","static/chunks/7629-36a80394f5716831.js","7093","static/chunks/7093-bd8841e74a4c6d70.js","6148","static/chunks/6148-ec67c453b9affb6a.js","847","static/chunks/847-7e49f05560c72797.js","1942","static/chunks/1942-a0f7b3ed8575b03f.js","7648","static/chunks/7648-be88d7a414ab6394.js","7823","static/chunks/7823-52bfe0a2cad4b916.js","8068","static/chunks/8068-9165bd614a7822c6.js","5799","static/chunks/5799-f292308b71870013.js","4567","static/chunks/4567-b526d1258bc33820.js","605","static/chunks/605-3880e43fef392c84.js","85","static/chunks/85-f0d63cfae716000a.js","4957","static/chunks/4957-da407878e1e8153f.js","7398","static/chunks/7398-c6de1642586049cd.js","3825","static/chunks/3825-b378b304bfcbd813.js","1594","static/chunks/1594-eae7de4a70ee68d3.js","7598","static/chunks/7598-c29a7db28f3bcafd.js","3619","static/chunks/3619-3c258196e0973f87.js","6373","static/chunks/6373-fc4799cc7a13474a.js","3832","static/chunks/3832-cfd7197465448e35.js","8973","static/chunks/app/(application)/evals/page-f79e1a90384ba618.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/explorer/graphiql.tsx":{"id":77569,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx":{"id":20442,"name":"*","chunks":[],"async":true},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/jobs/page.tsx":{"id":19774,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/page.tsx":{"id":575,"name":"*","chunks":["4692","static/chunks/app/(application)/page-16a518c5864e6963.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/users/page.tsx":{"id":38165,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/page.tsx":{"id":831,"name":"*","chunks":["8310","static/chunks/0e5ce63c-ecdc54f30317a968.js","3954","static/chunks/d3ac728e-97f6ff8c94e6d3eb.js","9851","static/chunks/9851-52f575957c29273b.js","7629","static/chunks/7629-36a80394f5716831.js","7093","static/chunks/7093-bd8841e74a4c6d70.js","6148","static/chunks/6148-ec67c453b9affb6a.js","847","static/chunks/847-7e49f05560c72797.js","1942","static/chunks/1942-a0f7b3ed8575b03f.js","7648","static/chunks/7648-be88d7a414ab6394.js","7823","static/chunks/7823-52bfe0a2cad4b916.js","8068","static/chunks/8068-9165bd614a7822c6.js","5799","static/chunks/5799-f292308b71870013.js","4567","static/chunks/4567-b526d1258bc33820.js","605","static/chunks/605-3880e43fef392c84.js","85","static/chunks/85-f0d63cfae716000a.js","4957","static/chunks/4957-da407878e1e8153f.js","7398","static/chunks/7398-c6de1642586049cd.js","1785","static/chunks/1785-06b7bf3bd97dbb62.js","3397","static/chunks/3397-5a704b2e12e9e883.js","1713","static/chunks/1713-0e65ea6337f161ac.js","9141","static/chunks/9141-c715917ea270034f.js","6152","static/chunks/6152-e00b498fb240dcb7.js","3145","static/chunks/3145-23f88dd692674837.js","428","static/chunks/428-61741966c36f4f72.js","6373","static/chunks/6373-fc4799cc7a13474a.js","3832","static/chunks/3832-cfd7197465448e35.js","4205","static/chunks/4205-0393e8e023d78187.js","5978","static/chunks/5978-f3b8475a2d9f9299.js","9727","static/chunks/app/(application)/evals/%5Bid%5D/page-b2de62f11946627f.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/variables/page.tsx":{"id":67559,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/variables/create/page.tsx":{"id":64419,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/workflows/page.tsx":{"id":16719,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(authentication)/login/login.tsx":{"id":53806,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(authentication)/login/error.tsx":{"id":70292,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/variables/edit/[variable_id]/page.tsx":{"id":55623,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/variables/usage/[variable_id]/page.tsx":{"id":68476,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/chat/layout.tsx":{"id":41587,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/data/[[...query]]/page.tsx":{"id":6231,"name":"*","chunks":[],"async":true},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/data/[[...query]]/layout.tsx":{"id":55459,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/projects/[project]/page.tsx":{"id":33354,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/projects/layout.tsx":{"id":21654,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/projects/page.tsx":{"id":60617,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/chat/[agent]/page.tsx":{"id":16120,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/chat/[agent]/layout.tsx":{"id":52323,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/chat/[agent]/[session]/page.tsx":{"id":99593,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/runner/work/exulu-frontend/exulu-frontend/":[],"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/layout":["static/css/175d6535ea9efb2c.css","static/css/e3f2a16ab7676b05.css"],"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/page":["static/css/0c8b3bd55af472ec.css"],"/home/runner/work/exulu-frontend/exulu-frontend/app/(authentication)/layout":["static/css/175d6535ea9efb2c.css","static/css/e3f2a16ab7676b05.css"],"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/page":[],"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/page":["static/css/f6005449998adcfb.css","static/css/e80291ada02dae36.css"]}}
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/(application)/evals/[id]/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"80":{"*":{"id":"41868","name":"*","chunks":[],"async":false}},"575":{"*":{"id":"15114","name":"*","chunks":[],"async":false}},"831":{"*":{"id":"23982","name":"*","chunks":[],"async":false}},"3793":{"*":{"id":"37404","name":"*","chunks":[],"async":false}},"4707":{"*":{"id":"79671","name":"*","chunks":[],"async":false}},"6231":{"*":{"id":"26533","name":"*","chunks":[],"async":true}},"9402":{"*":{"id":"31586","name":"*","chunks":[],"async":false}},"12846":{"*":{"id":"12994","name":"*","chunks":[],"async":false}},"13832":{"*":{"id":"15211","name":"*","chunks":[],"async":false}},"16120":{"*":{"id":"43490","name":"*","chunks":[],"async":false}},"16719":{"*":{"id":"48760","name":"*","chunks":[],"async":false}},"19107":{"*":{"id":"96114","name":"*","chunks":[],"async":false}},"19774":{"*":{"id":"99954","name":"*","chunks":[],"async":false}},"20442":{"*":{"id":"65765","name":"*","chunks":[],"async":true}},"21391":{"*":{"id":"2424","name":"*","chunks":[],"async":false}},"21654":{"*":{"id":"8078","name":"*","chunks":[],"async":false}},"33354":{"*":{"id":"32108","name":"*","chunks":[],"async":false}},"34984":{"*":{"id":"28718","name":"*","chunks":[],"async":false}},"36423":{"*":{"id":"84759","name":"*","chunks":[],"async":false}},"38165":{"*":{"id":"3317","name":"*","chunks":[],"async":false}},"41587":{"*":{"id":"92214","name":"*","chunks":[],"async":false}},"44045":{"*":{"id":"30463","name":"*","chunks":[],"async":false}},"52323":{"*":{"id":"30574","name":"*","chunks":[],"async":false}},"52489":{"*":{"id":"82886","name":"*","chunks":[],"async":false}},"53806":{"*":{"id":"3966","name":"*","chunks":[],"async":false}},"55459":{"*":{"id":"63978","name":"*","chunks":[],"async":false}},"55623":{"*":{"id":"1520","name":"*","chunks":[],"async":false}},"57614":{"*":{"id":"75983","name":"*","chunks":[],"async":false}},"59556":{"*":{"id":"77083","name":"*","chunks":[],"async":false}},"60617":{"*":{"id":"77373","name":"*","chunks":[],"async":false}},"61060":{"*":{"id":"9727","name":"*","chunks":[],"async":false}},"63950":{"*":{"id":"37096","name":"*","chunks":[],"async":false}},"64419":{"*":{"id":"97304","name":"*","chunks":[],"async":false}},"67559":{"*":{"id":"38465","name":"*","chunks":[],"async":false}},"68476":{"*":{"id":"61444","name":"*","chunks":[],"async":false}},"70292":{"*":{"id":"50511","name":"*","chunks":[],"async":false}},"72147":{"*":{"id":"59243","name":"*","chunks":[],"async":false}},"76193":{"*":{"id":"26806","name":"*","chunks":[],"async":false}},"77569":{"*":{"id":"59190","name":"*","chunks":[],"async":false}},"82798":{"*":{"id":"15813","name":"*","chunks":[],"async":false}},"92814":{"*":{"id":"3275","name":"*","chunks":[],"async":false}},"96126":{"*":{"id":"46465","name":"*","chunks":[],"async":false}},"99593":{"*":{"id":"95220","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/app-router.js":{"id":12846,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/app-router.js":{"id":12846,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/client-page.js":{"id":19107,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/client-page.js":{"id":19107,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/error-boundary.js":{"id":61060,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":61060,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/client/components/render-from-template-context.js":{"id":36423,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":36423,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/configuration/page.tsx":{"id":9402,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/authenticated.tsx":{"id":13832,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","7629","static/chunks/7629-36a80394f5716831.js","6148","static/chunks/6148-ec67c453b9affb6a.js","847","static/chunks/847-7e49f05560c72797.js","7648","static/chunks/7648-be88d7a414ab6394.js","7823","static/chunks/7823-52bfe0a2cad4b916.js","8068","static/chunks/8068-9165bd614a7822c6.js","5799","static/chunks/5799-f292308b71870013.js","4567","static/chunks/4567-b526d1258bc33820.js","605","static/chunks/605-3880e43fef392c84.js","85","static/chunks/85-f0d63cfae716000a.js","4957","static/chunks/4957-da407878e1e8153f.js","7398","static/chunks/7398-c6de1642586049cd.js","6111","static/chunks/6111-5ab0e72a466543ea.js","3832","static/chunks/3832-bfe8bd2edace90f9.js","1049","static/chunks/app/(application)/layout-73d93420d0c6661c.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/query-client.tsx":{"id":57614,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/globals.css":{"id":47960,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/components/config-context.tsx":{"id":44045,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/components/theme-provider.tsx":{"id":82798,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/components/ui/toaster.tsx":{"id":59556,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\"path\":\"lib/fonts.ts\",\"import\":\"\",\"arguments\":[{\"src\":[{\"path\":\"../public/fonts/Inter-Light.woff2\",\"weight\":\"300\",\"style\":\"normal\"},{\"path\":\"../public/fonts/Inter-Regular.woff2\",\"weight\":\"400\",\"style\":\"normal\"},{\"path\":\"../public/fonts/Inter-Bold.woff2\",\"weight\":\"700\",\"style\":\"normal\"}],\"variable\":\"--font-sans\",\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":59127,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\"path\":\"lib/fonts.ts\",\"import\":\"\",\"arguments\":[{\"src\":\"../public/fonts/JetBrainsMono-Regular.woff2\",\"variable\":\"--font-mono\",\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":78985,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/node_modules/next/font/local/target.css?{\"path\":\"lib/fonts.ts\",\"import\":\"\",\"arguments\":[{\"src\":\"../public/fonts/Merriweather-Regular.woff2\",\"variable\":\"--font-serif\",\"display\":\"swap\"}],\"variableName\":\"merriweather\"}":{"id":38713,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/keys/page.tsx":{"id":63950,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/token/page.tsx":{"id":3793,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/roles/page.tsx":{"id":96126,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/agents/edit/[id]/page.tsx":{"id":76193,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/agents/page.tsx":{"id":72147,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/dashboard/page.tsx":{"id":34984,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/page.tsx":{"id":92814,"name":"*","chunks":["8310","static/chunks/0e5ce63c-ecdc54f30317a968.js","9851","static/chunks/9851-52f575957c29273b.js","7629","static/chunks/7629-36a80394f5716831.js","7093","static/chunks/7093-bd8841e74a4c6d70.js","6148","static/chunks/6148-ec67c453b9affb6a.js","847","static/chunks/847-7e49f05560c72797.js","1942","static/chunks/1942-a0f7b3ed8575b03f.js","7648","static/chunks/7648-be88d7a414ab6394.js","7823","static/chunks/7823-52bfe0a2cad4b916.js","8068","static/chunks/8068-9165bd614a7822c6.js","5799","static/chunks/5799-f292308b71870013.js","4567","static/chunks/4567-b526d1258bc33820.js","605","static/chunks/605-3880e43fef392c84.js","85","static/chunks/85-f0d63cfae716000a.js","4957","static/chunks/4957-da407878e1e8153f.js","7398","static/chunks/7398-c6de1642586049cd.js","3825","static/chunks/3825-b378b304bfcbd813.js","1594","static/chunks/1594-eae7de4a70ee68d3.js","7598","static/chunks/7598-c29a7db28f3bcafd.js","3619","static/chunks/3619-3c258196e0973f87.js","6373","static/chunks/6373-fc4799cc7a13474a.js","3832","static/chunks/3832-bfe8bd2edace90f9.js","8973","static/chunks/app/(application)/evals/page-f79e1a90384ba618.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/cases/page.tsx":{"id":52489,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/explorer/graphiql.tsx":{"id":77569,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/jobs/page.tsx":{"id":19774,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/page.tsx":{"id":575,"name":"*","chunks":["4692","static/chunks/app/(application)/page-16a518c5864e6963.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/users/page.tsx":{"id":38165,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/page.tsx":{"id":831,"name":"*","chunks":["8310","static/chunks/0e5ce63c-ecdc54f30317a968.js","3954","static/chunks/d3ac728e-97f6ff8c94e6d3eb.js","9851","static/chunks/9851-52f575957c29273b.js","7629","static/chunks/7629-36a80394f5716831.js","7093","static/chunks/7093-bd8841e74a4c6d70.js","6148","static/chunks/6148-ec67c453b9affb6a.js","847","static/chunks/847-7e49f05560c72797.js","1942","static/chunks/1942-a0f7b3ed8575b03f.js","7648","static/chunks/7648-be88d7a414ab6394.js","7823","static/chunks/7823-52bfe0a2cad4b916.js","8068","static/chunks/8068-9165bd614a7822c6.js","5799","static/chunks/5799-f292308b71870013.js","4567","static/chunks/4567-b526d1258bc33820.js","605","static/chunks/605-3880e43fef392c84.js","85","static/chunks/85-f0d63cfae716000a.js","4957","static/chunks/4957-da407878e1e8153f.js","7398","static/chunks/7398-c6de1642586049cd.js","1785","static/chunks/1785-06b7bf3bd97dbb62.js","3397","static/chunks/3397-5a704b2e12e9e883.js","1713","static/chunks/1713-0e65ea6337f161ac.js","9141","static/chunks/9141-c715917ea270034f.js","6152","static/chunks/6152-e00b498fb240dcb7.js","3145","static/chunks/3145-23f88dd692674837.js","428","static/chunks/428-61741966c36f4f72.js","6373","static/chunks/6373-fc4799cc7a13474a.js","3832","static/chunks/3832-bfe8bd2edace90f9.js","4205","static/chunks/4205-0393e8e023d78187.js","5978","static/chunks/5978-f3b8475a2d9f9299.js","9727","static/chunks/app/(application)/evals/%5Bid%5D/page-2238f1fb73d93328.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx":{"id":20442,"name":"*","chunks":[],"async":true},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/variables/page.tsx":{"id":67559,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/variables/create/page.tsx":{"id":64419,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/workflows/page.tsx":{"id":16719,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(authentication)/login/login.tsx":{"id":53806,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(authentication)/login/error.tsx":{"id":70292,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/components/logo.tsx":{"id":21391,"name":"*","chunks":["9851","static/chunks/9851-52f575957c29273b.js","8068","static/chunks/8068-9165bd614a7822c6.js","6111","static/chunks/6111-5ab0e72a466543ea.js","6626","static/chunks/app/(authentication)/layout-0f416e1b9326e03a.js"],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/variables/edit/[variable_id]/page.tsx":{"id":55623,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/variables/usage/[variable_id]/page.tsx":{"id":68476,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/chat/layout.tsx":{"id":41587,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/data/[[...query]]/page.tsx":{"id":6231,"name":"*","chunks":[],"async":true},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/data/[[...query]]/layout.tsx":{"id":55459,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/projects/[project]/page.tsx":{"id":33354,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/projects/layout.tsx":{"id":21654,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/projects/page.tsx":{"id":60617,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/chat/[agent]/page.tsx":{"id":16120,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/chat/[agent]/layout.tsx":{"id":52323,"name":"*","chunks":[],"async":false},"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/chat/[agent]/[session]/page.tsx":{"id":99593,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/runner/work/exulu-frontend/exulu-frontend/":[],"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/layout":["static/css/7b99daf4eb75ddb9.css","static/css/e3f2a16ab7676b05.css"],"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/page":["static/css/0c8b3bd55af472ec.css"],"/home/runner/work/exulu-frontend/exulu-frontend/app/(authentication)/layout":["static/css/7b99daf4eb75ddb9.css","static/css/e3f2a16ab7676b05.css"],"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/page":[],"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/page":["static/css/f6005449998adcfb.css","static/css/e80291ada02dae36.css"]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={};e.id=8363,e.ids=[8363],e.modules={57343:e=>{"use strict";e.exports=require("graphql")},72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},27790:e=>{"use strict";e.exports=require("assert")},78893:e=>{"use strict";e.exports=require("buffer")},61282:e=>{"use strict";e.exports=require("child_process")},84770:e=>{"use strict";e.exports=require("crypto")},80665:e=>{"use strict";e.exports=require("dns")},17702:e=>{"use strict";e.exports=require("events")},92048:e=>{"use strict";e.exports=require("fs")},32615:e=>{"use strict";e.exports=require("http")},35240:e=>{"use strict";e.exports=require("https")},98216:e=>{"use strict";e.exports=require("net")},19801:e=>{"use strict";e.exports=require("os")},55315:e=>{"use strict";e.exports=require("path")},86624:e=>{"use strict";e.exports=require("querystring")},76162:e=>{"use strict";e.exports=require("stream")},82452:e=>{"use strict";e.exports=require("tls")},17360:e=>{"use strict";e.exports=require("url")},21764:e=>{"use strict";e.exports=require("util")},71568:e=>{"use strict";e.exports=require("zlib")},8678:e=>{"use strict";e.exports=import("pg")},48644:e=>{"use strict";e.exports=import("prettier/plugins/babel")},93801:e=>{"use strict";e.exports=import("prettier/plugins/estree")},45747:e=>{"use strict";e.exports=import("prettier/standalone")},49411:e=>{"use strict";e.exports=require("node:path")},97742:e=>{"use strict";e.exports=require("node:process")},41041:e=>{"use strict";e.exports=require("node:url")},21678:(e,s,t)=>{"use strict";t.a(e,async(e,a)=>{try{t.r(s),t.d(s,{GlobalError:()=>d.a,__next_app__:()=>p,originalPathname:()=>h,pages:()=>u,routeModule:()=>f,tree:()=>x}),t(71772);var r=t(71197);t(35866);var l=t(23191),i=t(88716),n=t(37922),d=t.n(n),c=t(95231),o={};for(let e in c)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>c[e]);t.d(s,o);var m=e([r]);r=(m.then?(await m)():m)[0];let x=["",{children:["(application)",{children:["evals",{children:["[id]",{children:["runs",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(t.bind(t,71772)),"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx"]}]},{}]},{}]},{}]},{layout:[()=>Promise.resolve().then(t.bind(t,71197)),"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/layout.tsx"],"not-found":[()=>Promise.resolve().then(t.t.bind(t,35866,23)),"next/dist/client/components/not-found-error"]}]},{"not-found":[()=>Promise.resolve().then(t.t.bind(t,35866,23)),"next/dist/client/components/not-found-error"]}],u=["/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx"],h="/(application)/evals/[id]/runs/page",p={require:t,loadChunk:()=>Promise.resolve()},f=new l.AppPageRouteModule({definition:{kind:i.x.APP_PAGE,page:"/(application)/evals/[id]/runs/page",pathname:"/evals/[id]/runs",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:x}});a()}catch(e){a(e)}})},48050:(e,s,t)=>{Promise.resolve().then(t.bind(t,65765))},25013:(e,s,t)=>{"use strict";t.d(s,{n:()=>b});var a=t(10326),r=t(17577),l=t(39167),i=t(18753),n=t(75290),d=t(62288),c=t(90772),o=t(31048),m=t(54432),x=t(87673),u=t(34474),h=t(53313),p=t(42270),f=t(34789),g=t(65685),j=t(567),v=t(8281);function b({eval_set_id:e,onCreateSuccess:s,existingRun:t=null,open:b,onOpenChange:N}){let{toast:y}=(0,f.pm)(),w=!!t,[_,k]=(0,r.useState)({id:"",name:"",rights_mode:"private",createdAt:"",updatedAt:"",eval_set_id:e,agent_id:"",eval_functions:[],scoring_method:"average",pass_threshold:70,timeout_in_seconds:300,test_case_ids:[]}),{data:C}=(0,l.aM)(p.ym,{variables:{page:1,limit:100,filters:[]},skip:!e}),{data:Z}=(0,l.aM)(p.Ts,{skip:!e}),{data:R}=(0,l.aM)(p.RV,{variables:{page:1,limit:500,filters:[{eval_set_id:{eq:e}}]},skip:!e}),q=R?.test_casesPagination?.items||[],[z,{loading:S}]=(0,i.D)(p.oo,{onCompleted:()=>{y({title:"Eval run created",description:"The eval run has been created successfully. You can now run it."}),s&&s(),N(!1)},onError:e=>{y({title:"Failed to create eval run",description:e.message,variant:"destructive"})}}),[T,{loading:P}]=(0,i.D)(p.Nu,{onCompleted:()=>{y({title:"Eval run updated",description:"The eval run has been updated successfully."}),s&&s(),N(!1)},onError:e=>{y({title:"Failed to update eval run",description:e.message,variant:"destructive"})}}),$=S||P,M=e=>{k(s=>({...s,test_case_ids:s.test_case_ids.includes(e)?s.test_case_ids.filter(s=>s!==e):[...s.test_case_ids,e]}))},A=()=>{k(e=>({...e,test_case_ids:e.test_case_ids.length===q.length?[]:q.map(e=>e.id)}))},E=e=>{k(s=>({...s,eval_functions:s.eval_functions.some(s=>s.id===e.id)?s.eval_functions.filter(s=>s.id!==e.id):[...s.eval_functions,e]}))};return a.jsx(d.Vq,{open:b,onOpenChange:N,children:(0,a.jsxs)(d.cZ,{className:"max-w-4xl h-[90vh] flex flex-col",children:[(0,a.jsxs)(d.fK,{children:[a.jsx(d.$N,{children:w?"Edit Eval Run":"Create Eval Run"}),a.jsx(d.Be,{children:w?"Update the configuration for this eval run.":"Configure a new evaluation run for this eval set."})]}),(0,a.jsxs)("form",{onSubmit:s=>{if(s.preventDefault(),console.log("[EXULU] Eval run",_),!_.name){y({title:"Validation error",description:"Please enter a name for this eval run.",variant:"destructive"});return}if(!_.agent_id){y({title:"Validation error",description:"Please select an agent.",variant:"destructive"});return}if(0===_.test_case_ids.length){y({title:"Validation error",description:"Please select at least one test case.",variant:"destructive"});return}if(0===_.eval_functions.length){y({title:"Validation error",description:"Please select at least one eval function.",variant:"destructive"});return}let t={name:_.name,eval_set_id:e,agent_id:_.agent_id,test_case_ids:_.test_case_ids,eval_functions:_.eval_functions,scoring_method:_.scoring_method.toUpperCase(),pass_threshold:_.pass_threshold,timeout_in_seconds:_.timeout_in_seconds,rights_mode:_.rights_mode,RBAC:_.RBAC};w?T({variables:{id:_.id,data:t}}):z({variables:{data:t}})},className:"flex-1 flex flex-col min-h-0",children:[a.jsx(g.x,{className:"flex-1 -mx-6 px-6",children:(0,a.jsxs)("div",{className:"space-y-6 pb-4",children:[(0,a.jsxs)("div",{className:"space-y-3",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Name"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Give this eval run a descriptive name"})]})}),a.jsx(m.I,{type:"text",placeholder:"e.g., GPT-4 baseline evaluation",value:_.name,onChange:e=>k(s=>({...s,name:e.target.value})),className:"h-11"})]}),a.jsx(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-3",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Agent"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Choose which agent to evaluate"})]})}),(0,a.jsxs)(u.Ph,{value:_.agent_id,onValueChange:e=>k(s=>({...s,agent_id:e})),children:[a.jsx(u.i4,{className:"h-11",children:a.jsx(u.ki,{placeholder:"Select an agent..."})}),a.jsx(u.Bw,{children:C?.agentsPagination?.items?.map(e=>a.jsx(u.Ql,{value:e.id,children:e.name},e.id))})]})]}),a.jsx(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Eval Functions"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[_.eval_functions.length," of ",Z?.evals?.items?.length||0," selected"]})]})}),a.jsx(c.z,{type:"button",variant:"outline",size:"sm",onClick:e=>{e.stopPropagation(),_.eval_functions.length===Z?.evals?.items?.length?k(e=>({...e,eval_functions:[]})):k(e=>({...e,eval_functions:Z?.evals?.items?.map(e=>({id:e.id,config:e.config}))||[]}))},children:_.eval_functions.length===Z?.evals?.items?.length?"Deselect All":"Select All"})]}),a.jsx("div",{className:"border rounded-lg bg-card",children:a.jsx("div",{className:"p-3 space-y-2",children:Z?.evals?.items?.map(e=>a.jsxs("label",{htmlFor:`eval-${e.id}`,className:"flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors cursor-pointer border border-transparent hover:border-border",children:[a.jsx(h.X,{id:`eval-${e.id}`,checked:_.eval_functions.some(s=>s.id===e.id),onCheckedChange:()=>E({id:e.id,config:e.config}),className:"mt-0.5"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"flex items-center gap-2",children:a.jsx("span",{className:"font-medium text-sm",children:e.name})}),e.description&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description}),e.config&&e.config.length>0&&_.eval_functions.some(s=>s.id===e.id)&&a.jsxs("div",{className:"mt-3 space-y-3 pt-3 border-t",children:[a.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Configuration"}),e.config.map(s=>a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(o._,{htmlFor:`${e.id}-${s.name}`,className:"text-xs font-medium",children:s.name}),a.jsx(x.g,{id:`${e.id}-${s.name}`,placeholder:s.description,value:_.eval_functions.find(s=>s.id===e.id)?.config?.[s.name]||"",onChange:t=>{t.stopPropagation(),k(a=>({...a,eval_functions:a.eval_functions.map(a=>a.id===e.id?{...a,config:{...a.config,[s.name]:t.target.value}}:a)}))},onClick:e=>e.stopPropagation(),className:"min-h-[80px] text-xs resize-none"}),s.description&&a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:s.description})]},s.name))]})]})]},e.id))})})]}),a.jsx(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Test Cases"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[_.test_case_ids.length," of ",q.length," selected"]})]})}),a.jsx(c.z,{type:"button",variant:"outline",size:"sm",onClick:e=>{e.stopPropagation(),A()},children:_.test_case_ids.length===q.length?"Deselect All":"Select All"})]}),a.jsx("div",{className:"border rounded-lg bg-card",children:a.jsx(g.x,{className:"h-[250px]",children:a.jsx("div",{className:"p-3 space-y-2",children:q.map(e=>(0,a.jsxs)("label",{htmlFor:`test-case-${e.id}`,className:"flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors cursor-pointer border border-transparent hover:border-border",children:[a.jsx(h.X,{id:`test-case-${e.id}`,checked:_.test_case_ids.includes(e.id),onCheckedChange:()=>M(e.id),className:"mt-0.5"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"font-medium text-sm",children:e.name}),(0,a.jsxs)(j.C,{variant:"secondary",className:"text-[10px] shrink-0",children:[e.inputs?.length||0," msgs"]})]}),e.description&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description})]})]},e.id))})})})]}),a.jsx(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-3",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Scoring"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Configure how scores are calculated"})]})}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 p-4 border rounded-lg bg-muted/30",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[a.jsx(o._,{htmlFor:"scoringMethod",className:"text-xs font-semibold",children:"Scoring Method"}),(0,a.jsxs)(u.Ph,{value:_.scoring_method,onValueChange:e=>k(s=>({...s,scoring_method:e})),children:[a.jsx(u.i4,{id:"scoringMethod",className:"h-10",children:a.jsx(u.ki,{})}),(0,a.jsxs)(u.Bw,{children:[a.jsx(u.Ql,{value:"median",children:"Median"}),a.jsx(u.Ql,{value:"average",children:"Average"}),a.jsx(u.Ql,{value:"sum",children:"Sum"})]})]}),a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"How to combine multiple eval function scores"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[a.jsx(o._,{htmlFor:"passThreshold",className:"text-xs font-semibold",children:"Pass Threshold"}),a.jsx(m.I,{id:"passThreshold",type:"number",min:"0",max:"100",value:_.pass_threshold,onChange:e=>k(s=>({...s,pass_threshold:Number(e.target.value)})),className:"h-10"}),a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Minimum score (0-100) to pass"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[a.jsx(o._,{htmlFor:"timeoutInSeconds",className:"text-xs font-semibold",children:"Timeout (seconds)"}),a.jsx(m.I,{id:"timeoutInSeconds",type:"number",min:"1",value:_.timeout_in_seconds,onChange:e=>k(s=>({...s,timeout_in_seconds:Number(e.target.value)})),className:"h-10"}),a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Max time per test case execution"})]})]})]})]})}),a.jsx(v.Z,{className:"my-4"}),a.jsx(d.cN,{className:"shrink-0",children:(0,a.jsxs)(c.z,{type:"submit",disabled:$||!_.name||!_.agent_id||0===_.test_case_ids.length||0===_.eval_functions.length,className:"w-full h-11",children:[$&&a.jsx(n.Z,{className:"mr-2 h-4 w-4 animate-spin"}),w?"Update Eval Run":"Create Eval Run"]})})]})]})})}},66935:(e,s,t)=>{"use strict";t.d(s,{Z:()=>h});var a=t(10326),r=t(39167),l=t(42270),i=t(48998),n=t(75290),d=t(91470),c=t(71059),o=t(37202),m=t(77863);let x={waiting:a.jsx(i.Z,{className:"h-3 w-3"}),active:a.jsx(n.Z,{className:"h-3 w-3 animate-spin"}),completed:null,failed:a.jsx(d.Z,{className:"h-3 w-3"}),delayed:a.jsx(i.Z,{className:"h-3 w-3"}),paused:a.jsx(c.Z,{className:"h-3 w-3"}),stuck:a.jsx(o.Z,{className:"h-3 w-3"})},u={waiting:"text-yellow-600 bg-yellow-50 border-yellow-200",active:"text-blue-600 bg-blue-50 border-blue-200",completed:"",failed:"text-red-600 bg-red-50 border-red-200",delayed:"text-orange-600 bg-orange-50 border-orange-200",paused:"text-gray-600 bg-gray-50 border-gray-200",stuck:"text-red-600 bg-red-50 border-red-200"};function h({evalRun:e,testCases:s,onCellClick:t}){let{data:i,loading:d}=(0,r.aM)(l.JL,{variables:{page:1,limit:500,filters:[{label:{contains:"eval-run-"+e.id}}]},skip:!e.id}),c=i?.job_resultsPagination?.items||[],o=s=>c.find(t=>t.label?.includes(s)&&t.label?.includes(e.id))||null,h=s=>{if(console.log("[EXULU] result",s?.result),!s||"completed"!==s.state||void 0===s.result)return"";let t=s.result,a=e.pass_threshold;return t>=a?"text-green-500":t>=a-20?"text-orange-500":"text-red-500"};return a.jsx("div",{className:"flex-shrink-0 min-w-[100px]",children:s.map(s=>{let r=e.test_case_ids.includes(s.id),l=o(s.id);if(!r)return a.jsx("div",{className:"p-3 text-center border-r bg-muted/20 min-h-[72px] flex items-center justify-center",children:a.jsx("span",{className:"text-xs text-muted-foreground",children:"—"})},s.id);let i=h(l),c=l?.state?u[l.state]:"bg-transparent";return a.jsx("div",{className:"p-3 text-center border-r min-h-[72px] flex items-center justify-center",children:a.jsx("div",{onClick:()=>t(l),className:(0,m.cn)("w-full h-full min-h-[48px] rounded transition-colors flex items-center justify-center gap-2",i||c||"border-gray-200 bg-gray-50",l?.state==="completed"&&"cursor-pointer hover:opacity-80",(!l||"completed"!==l.state)&&"cursor-default"),children:d?a.jsx(n.Z,{className:"h-3 w-3 animate-spin"}):l?a.jsx(a.Fragment,{children:"completed"===l.state&&void 0!==l.result?a.jsx("span",{className:"font-semibold text-sm hover:underline",children:l.result.toFixed(1)}):(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[x[l.state],a.jsx("span",{className:"text-xs capitalize",children:l.state})]})}):(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[x.waiting,a.jsx("span",{className:"text-xs capitalize",children:"Not started"})]})})},s.id)})})}},70806:(e,s,t)=>{"use strict";t.a(e,async(e,a)=>{try{t.d(s,{v:()=>Z});var r=t(10326),l=t(17577),i=t(90772),n=t(65685),d=t(65304),c=t(7890),o=t(60097),m=t(11890),x=t(231),u=t(69508),h=t(94893),p=t(21608),f=t(75290),g=t(98181),j=t(42270),v=t(39167),b=t(18753),N=t(25013),y=t(34789),w=t(66935),_=t(99440),k=t(57004),C=e([k]);function Z({evalRuns:e,evalSet:s,canWrite:t,onRefetch:a}){let{toast:C}=(0,y.pm)(),[Z,R]=(0,l.useState)(5),[q,z]=(0,l.useState)(null),[S,T]=(0,l.useState)(!1),[P,$]=(0,l.useState)(!1),[M,A]=(0,l.useState)(null),[E,D]=(0,l.useState)(!1),[O,V]=(0,l.useState)(null);console.log("[EXULU] Eval set",s);let{data:F,loading:L,refetch:Y}=(0,v.aM)(j.RV,{variables:{page:1,limit:500,filters:[{eval_set_id:{eq:s.id}}]},skip:!s.id}),J=F?.test_casesPagination?.items||[],[H,{loading:Q}]=(0,b.D)(j.B4,{onCompleted:e=>{C({title:"Eval run started",description:`Scheduled ${e.runEval.count} test cases to run.`}),a()},onError:e=>{C({title:"Failed to start eval run",description:e.message,variant:"destructive"})}}),B=[...e].sort((e,s)=>new Date(e.createdAt).getTime()-new Date(s.createdAt).getTime()),I=B.slice(-Z),U=B.length>Z,X=e=>{e&&"completed"===e.state&&(z(e),T(!0))},G=e=>{A(e),$(!0)},W=e=>{V(e),D(!0)},K=e=>{console.log("Stop run:",e)};return L?r.jsx("div",{className:"space-y-2",children:Array.from({length:5}).map((e,s)=>r.jsx(d.O,{className:"h-12 w-full"},s))}):0===J.length?r.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No test cases in this eval set."}):(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)(n.x,{className:"w-full",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsxs)("div",{className:"sticky left-0 z-10 bg-background flex-shrink-0 min-w-[200px]",children:[r.jsx("div",{className:"p-3 border-b border-r text-left font-medium text-sm",children:"Test Case"}),J.map(e=>r.jsx("div",{className:"p-3 border-b border-r min-h-[72px] flex items-center",children:(0,r.jsxs)("div",{children:[r.jsx("div",{className:"font-medium text-sm",children:e.name}),e.description&&r.jsx("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-1 truncate max-w-[100px]",children:e.id})]})},e.id))]}),U&&(0,r.jsxs)("div",{className:"flex-shrink-0 min-w-[60px]",children:[r.jsx("div",{className:"text-center border-b border-r p-2 min-h-[48px] flex items-center justify-center",children:r.jsx(i.z,{variant:"ghost",size:"sm",onClick:()=>{R(e=>Math.min(e+5,B.length))},className:"h-8 w-8 p-0",children:r.jsx(m.Z,{className:"h-4 w-4"})})}),J.map(e=>r.jsx("div",{className:"p-3 border-b border-r bg-muted/20 min-h-[72px]"},e.id))]}),I.map(e=>(0,r.jsxs)("div",{className:"flex-1 min-w-[100px]",children:[r.jsx("div",{className:"px-2 py-1.5 text-center font-medium text-sm border-b border-r bg-muted/30 min-h-[48px]",children:(0,r.jsxs)("div",{className:"space-y-0.5",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[r.jsx("div",{className:"flex-1 text-xs font-semibold text-foreground truncate",children:e.name}),(0,r.jsxs)(o.h_,{children:[r.jsx(o.$F,{asChild:!0,children:r.jsx(i.z,{variant:"ghost",size:"sm",className:"h-5 w-5 p-0 hover:bg-background/80",children:r.jsx(x.Z,{className:"h-3 w-3"})})}),(0,r.jsxs)(o.AW,{align:"end",children:[(0,r.jsxs)(o.Xi,{onClick:()=>G(e),children:[r.jsx(u.Z,{className:"mr-2 h-4 w-4"}),"Edit"]}),(0,r.jsxs)(o.Xi,{onClick:()=>W(e),children:[r.jsx(h.Z,{className:"mr-2 h-4 w-4"}),"Start"]}),(0,r.jsxs)(o.Xi,{onClick:()=>K(e),children:[r.jsx(p.Z,{className:"mr-2 h-4 w-4"}),"Stop"]})]})]})]}),r.jsx("div",{className:"text-[10px] text-muted-foreground font-normal leading-tight",children:(0,g.WU)(new Date(e.createdAt),"MMM d, yyyy \xb7 HH:mm")}),r.jsx("div",{className:"text-[10px] text-muted-foreground font-normal leading-tight truncate max-w-[100px] text-center m-auto",children:e.id})]})}),r.jsx(w.Z,{evalRun:e,testCases:J,onCellClick:X})]},e.id))]}),r.jsx(n.B,{orientation:"horizontal"})]}),r.jsx(c.yo,{open:S,onOpenChange:T,children:(0,r.jsxs)(c.ue,{children:[r.jsx(c.Tu,{children:r.jsx(c.bC,{children:"Test Result Details"})}),r.jsx("div",{className:"mt-4",children:q&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Job ID"}),r.jsx("div",{className:"text-sm",children:q.job_id})]}),(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Score"}),r.jsx("div",{className:"text-2xl font-bold",children:q.result?.toFixed(1)})]}),(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Status"}),r.jsx("div",{className:"text-sm capitalize",children:q.state})]}),q.error&&"object"==typeof q.error&&Object.keys(q.error).length>0&&(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Error"}),r.jsx("div",{className:"text-sm text-red-600",children:JSON.stringify(q.error)})]}),q.metadata&&(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Metadata"}),r.jsx(k.G,{code:JSON.stringify(q.metadata,null,2)})]})]})})]})}),r.jsx(N.n,{eval_set_id:s.id,open:P,onOpenChange:e=>{$(e),e||A(null)},existingRun:M,onCreateSuccess:a}),r.jsx(_.aR,{open:E,onOpenChange:D,children:(0,r.jsxs)(_._T,{children:[(0,r.jsxs)(_.fY,{children:[r.jsx(_.f$,{children:"Start Eval Run?"}),(0,r.jsxs)(_.yT,{children:["This will schedule all ",O?.test_case_ids.length||0,' test cases in "',O?.name,'" to be run. The eval run will execute each test case against the configured agent and eval functions.']})]}),(0,r.jsxs)(_.xo,{children:[r.jsx(_.le,{onClick:()=>V(null),children:"Cancel"}),(0,r.jsxs)(_.OL,{onClick:()=>{O&&H({variables:{id:O.id}}),D(!1),V(null)},disabled:Q,children:[Q&&r.jsx(f.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Start Run"]})]})]})})]})}k=(C.then?(await C)():C)[0],a()}catch(e){a(e)}})},18050:(e,s,t)=>{"use strict";t.d(s,{R:()=>y});var a=t(10326),r=t(17577),l=t(39167),i=t(18753),n=t(42270),d=t(90772),c=t(33071),o=t(15940),m=t(99440),x=t(567),u=t(75290),h=t(94893),p=t(71059);let f=(0,t(76557).Z)("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);var g=t(98091),j=t(91468),v=t(34789),b=t(98181),N=t(18615);function y({queueName:e,nameGenerator:s,retryJob:t}){let{toast:y}=(0,v.pm)(),[w,_]=(0,r.useState)(!1),[k,C]=(0,r.useState)(!1),[Z,R]=(0,r.useState)(!1),[q,z]=(0,r.useState)(null),[S,T]=(0,r.useState)(null),{data:P,loading:$,refetch:M}=(0,l.aM)(n.k9,{variables:{queue:e},pollInterval:5e3}),{data:A,loading:E,refetch:D}=(0,l.aM)(n.Jq,{variables:{queue:e,statusses:null},pollInterval:5e3}),[O,{loading:V}]=(0,i.D)(n.Wr,{onCompleted:()=>{y({title:"Job deleted",description:"The job has been successfully deleted."}),D(),M(),z(null)},onError:e=>{y({title:"Failed to delete job",description:e.message,variant:"destructive"})}}),[F,{loading:L}]=(0,i.D)(n.fc,{onCompleted:()=>{y({title:"Queue paused",description:`The ${e} queue has been paused.`}),M(),_(!1)},onError:e=>{y({title:"Failed to pause queue",description:e.message,variant:"destructive"})}}),[Y,{loading:J}]=(0,i.D)(n.iC,{onCompleted:()=>{y({title:"Queue resumed",description:`The ${e} queue has been resumed.`}),M(),R(!1)},onError:e=>{y({title:"Failed to resume queue",description:e.message,variant:"destructive"})}}),[H,{loading:Q}]=(0,i.D)(n.QW,{onCompleted:()=>{y({title:"Queue drained",description:"All waiting and delayed jobs have been removed from the queue."}),M(),D(),C(!1)},onError:e=>{y({title:"Failed to drain queue",description:e.message,variant:"destructive"})}}),B=e=>{z(e)},I=e=>{T(e)},U=P?.queue,X=A?.jobs?.items||[],G=e=>a.jsx(x.C,{variant:"outline",className:{active:"bg-blue-100 text-blue-800 border-blue-200",waiting:"bg-yellow-100 text-yellow-800 border-yellow-200",completed:"bg-green-100 text-green-800 border-green-200",failed:"bg-red-100 text-red-800 border-red-200",delayed:"bg-orange-100 text-orange-800 border-orange-200",paused:"bg-gray-100 text-gray-800 border-gray-200"}[e]||"bg-gray-100 text-gray-800",children:e});return $&&E?a.jsx("div",{className:"space-y-4",children:a.jsx(c.Zb,{children:a.jsx(c.aY,{className:"pt-6",children:a.jsx("div",{className:"flex items-center justify-center py-8",children:a.jsx(u.Z,{className:"h-6 w-6 animate-spin"})})})})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.Zb,{children:[a.jsx(c.Ol,{children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)(c.ll,{children:["Queue: ",e]}),(0,a.jsxs)(c.SZ,{children:["Manage the ",e," job queue and view all jobs"]})]}),U&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)(d.z,{variant:"outline",size:"sm",onClick:()=>U?.isPaused?R(!0):_(!0),disabled:L||J,children:[U?.isPaused?a.jsx(h.Z,{className:"mr-2 h-4 w-4"}):a.jsx(p.Z,{className:"mr-2 h-4 w-4"}),U?.isPaused?"Resume":"Pause"]}),(0,a.jsxs)(d.z,{variant:"outline",size:"sm",onClick:()=>C(!0),disabled:Q,children:[a.jsx(f,{className:"mr-2 h-4 w-4"}),"Drain"]})]})]})}),(0,a.jsxs)(c.aY,{className:"space-y-6",children:[U&&(0,a.jsxs)("div",{className:"flex items-center gap-8 p-4 bg-muted/50 rounded-lg",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"text-sm text-muted-foreground",children:"Status:"}),a.jsx("div",{children:U.isPaused?a.jsx(x.C,{variant:"outline",className:"bg-gray-100 text-gray-800",children:"Paused"}):U.isMaxed?a.jsx(x.C,{variant:"outline",className:"bg-red-100 text-red-800",children:"Maxed"}):a.jsx(x.C,{variant:"outline",className:"bg-green-100 text-green-800",children:"Active"})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"text-sm text-muted-foreground",children:"Concurrency:"}),a.jsx("div",{className:"font-semibold",children:U.concurrency})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"text-sm text-muted-foreground",children:"Rate Limit:"}),a.jsx("div",{className:"font-semibold",children:U.ratelimit||"None"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:"text-xs text-muted-foreground",children:"Active:"}),a.jsx("div",{className:"font-semibold text-blue-600",children:U.jobs?.active||0})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:"text-xs text-muted-foreground",children:"Waiting:"}),a.jsx("div",{className:"font-semibold text-yellow-600",children:U.jobs?.waiting||0})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:"text-xs text-muted-foreground",children:"Failed:"}),a.jsx("div",{className:"font-semibold text-red-600",children:U.jobs?.failed||0})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:"text-xs text-muted-foreground",children:"Completed:"}),a.jsx("div",{className:"font-semibold text-green-600",children:U.jobs?.completed||0})]})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-3",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Queue Jobs"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["All jobs currently in the ",e," queue"]})]}),a.jsx("div",{className:"border rounded-lg",children:E?a.jsx("div",{className:"flex items-center justify-center py-8",children:a.jsx(u.Z,{className:"h-6 w-6 animate-spin"})}):0===X.length?a.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No jobs in queue"}):(0,a.jsxs)(o.iA,{children:[a.jsx(o.xD,{children:(0,a.jsxs)(o.SC,{children:[a.jsx(o.ss,{children:"Name"}),a.jsx(o.ss,{children:"State"}),a.jsx(o.ss,{children:"Timestamp"}),a.jsx(o.ss,{children:"Inputs"}),a.jsx(o.ss,{children:"Outputs"}),a.jsx(o.ss,{className:"text-right",children:"Actions"})]})}),a.jsx(o.RM,{children:X.map((e,t)=>(0,a.jsxs)(o.SC,{children:[a.jsx(o.pj,{className:"font-medium",children:s(e)}),a.jsx(o.pj,{children:G(e.state)}),a.jsx(o.pj,{children:e.timestamp?(0,b.WU)(new Date(e.timestamp),"MMM d, yyyy HH:mm:ss"):"N/A"}),a.jsx(o.pj,{children:e.data?a.jsx("div",{className:"text-xs max-w-xs truncate",children:a.jsx(N.J,{text:JSON.stringify(e.data)})}):null}),a.jsx(o.pj,{children:e.failedReason?a.jsx("div",{className:"text-xs text-red-600 max-w-xs truncate",children:a.jsx(N.J,{text:"Error: "+e.failedReason})}):a.jsx("div",{className:"text-xs text-muted-foreground max-w-xs truncate",children:a.jsx(N.J,{text:JSON.stringify(e.returnvalue)})})}),(0,a.jsxs)(o.pj,{className:"text-right",children:["active"!==e.state&&a.jsx(d.z,{variant:"ghost",size:"sm",onClick:()=>B(e),disabled:V,children:a.jsx(g.Z,{className:"h-4 w-4 text-red-600"})}),"failed"===e.state&&(0,a.jsxs)(d.z,{variant:"ghost",size:"sm",onClick:()=>I(e),children:[a.jsx(j.Z,{className:"h-4 w-4 text-blue-600"}),"Retry"]})]})]},t))})]})})]})]})]}),a.jsx(m.aR,{open:!!q,onOpenChange:e=>!e&&z(null),children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Delete Job?"}),(0,a.jsxs)(m.yT,{children:['Are you sure you want to delete the job "',q?.name,'"? This action cannot be undone.']})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),(0,a.jsxs)(m.OL,{onClick:()=>{if(!q?.id){y({title:"Failed to delete job",description:"The job has no ID.",variant:"destructive"});return}q&&O({variables:{queue:e,id:q.id}})},disabled:V,children:[V&&a.jsx(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Delete"]})]})]})}),a.jsx(m.aR,{open:!!S,onOpenChange:e=>!e&&T(null),children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Retry Job?"}),(0,a.jsxs)(m.yT,{children:['Are you sure you want to retry the job "',S?.name,'"? This will schedule a new job with the same data.']})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),a.jsx(m.OL,{onClick:()=>{S&&t(S)},disabled:V,children:"Retry"})]})]})}),a.jsx(m.aR,{open:w,onOpenChange:_,children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Pause Queue?"}),(0,a.jsxs)(m.yT,{children:["Are you sure you want to pause the ",e," queue? No jobs will be processed until the queue is resumed."]})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),(0,a.jsxs)(m.OL,{onClick:()=>{F({variables:{queue:e}})},disabled:L,children:[L&&a.jsx(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Pause Queue"]})]})]})}),a.jsx(m.aR,{open:Z,onOpenChange:R,children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Resume Queue?"}),(0,a.jsxs)(m.yT,{children:["Are you sure you want to resume the ",e," queue?."]})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),(0,a.jsxs)(m.OL,{onClick:()=>{Y({variables:{queue:e}})},disabled:J,children:[J&&a.jsx(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Resume Queue"]})]})]})}),a.jsx(m.aR,{open:k,onOpenChange:C,children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Drain Queue?"}),(0,a.jsxs)(m.yT,{children:["Are you sure you want to drain the ",e," queue? This will remove all jobs that are waiting or delayed, but not active, waiting-children, completed or failed. This action cannot be undone."]})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),(0,a.jsxs)(m.OL,{onClick:()=>{H({variables:{queue:e}})},disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:[Q&&a.jsx(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Drain Queue"]})]})]})})]})}},65765:(e,s,t)=>{"use strict";t.a(e,async(e,a)=>{try{t.r(s),t.d(s,{default:()=>k,dynamic:()=>C});var r=t(10326),l=t(17577),i=t(35047),n=t(18753),d=t(39167),c=t(15211),o=t(30463),m=t(98360),x=t(86333),u=t(83855),h=t(37202),p=t(43273),f=t(90772),g=t(33071),j=t(65304),v=t(42270),b=t(25013),N=t(70806),y=t(18050),w=t(34789),_=e([N]);N=(_.then?(await _)():_)[0];let C="force-dynamic";function k(){let e=(0,i.useParams)(),s=(0,i.useRouter)(),{user:t}=(0,l.useContext)(c.S),a=(0,l.useContext)(o.E),_=e.id,[k,C]=(0,l.useState)(!1),{toast:Z}=(0,w.pm)(),R=t.super_admin||t.role?.evals==="read"||t.role?.evals==="write",q=t.super_admin||t.role?.evals==="write",[z,{loading:S}]=(0,n.D)(v.B4,{onCompleted:e=>{Z({title:"Eval run started",description:`Scheduled ${e.runEval.count} test cases to run.`})},onError:e=>{Z({title:"Failed to start eval run",description:e.message,variant:"destructive"})}}),{loading:T,data:P}=(0,d.aM)(v.iA,{variables:{id:_},skip:!_}),{loading:$,data:M,refetch:A}=(0,d.aM)(v.i9,{variables:{page:1,limit:100,filters:[{eval_set_id:{eq:_}}]},skip:!_,pollInterval:1e4});if(!R)return r.jsx("div",{className:"flex h-full flex-1 flex-col space-y-8 p-8",children:(0,r.jsxs)(p.bZ,{variant:"destructive",children:[r.jsx(m.Z,{className:"h-4 w-4"}),r.jsx(p.X,{children:"You don't have permission to access Eval Runs. Contact your administrator to request access."})]})});if(T)return(0,r.jsxs)("div",{className:"flex h-full flex-1 flex-col space-y-8 p-8",children:[r.jsx(j.O,{className:"h-8 w-64"}),r.jsx(j.O,{className:"h-64 w-full"})]});let E=P?.eval_setById,D=M?.eval_runsPagination?.items||[];return(0,r.jsxs)("div",{className:"flex h-full flex-1 flex-col p-6 lg:p-8",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[r.jsx(f.z,{variant:"ghost",size:"icon",onClick:()=>s.push(`/evals/${_}`),children:r.jsx(x.Z,{className:"h-4 w-4"})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold tracking-tight",children:["Eval Runs for ",E?.name]}),(0,r.jsxs)("p",{className:"text-muted-foreground text-sm mt-1",children:['View and manage evaluation runs for the eval set "',E?.name,'".']})]})]}),q&&a?.workers?.enabled&&a?.workers?.redisHost&&(0,r.jsxs)(f.z,{onClick:()=>C(!0),children:[r.jsx(u.Z,{className:"mr-2 h-4 w-4"}),"New Eval Run"]})]}),(!a?.workers?.enabled||!a?.workers?.redisHost)&&(0,r.jsxs)(p.bZ,{variant:"destructive",className:"mb-6",children:[r.jsx(h.Z,{className:"h-4 w-4"}),r.jsx(p.X,{children:"Workers are not enabled. You can view existing eval runs but cannot create or run new evaluations. Configure Redis to enable running eval runs."})]}),(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)(g.Zb,{children:[(0,r.jsxs)(g.Ol,{className:"pb-4",children:[r.jsx(g.ll,{children:"Evaluation Run Results"}),r.jsx(g.SZ,{children:"Matrix view of test case scores across eval runs. Click on a completed cell to view detailed results."})]}),r.jsx(g.aY,{children:$?r.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((e,s)=>r.jsx(j.O,{className:"h-16 w-full"},s))}):0===D.length?(0,r.jsxs)("div",{className:"text-center py-12 text-muted-foreground",children:["No eval runs yet. ",q&&a?.workers?.enabled&&a?.workers?.redisHost&&"Click 'New Eval Run' to create one."]}):r.jsx(N.v,{evalRuns:D,evalSet:E,canWrite:q,onRefetch:A})})]}),a?.workers?.enabled&&a?.workers?.redisHost&&D.length>0&&r.jsx(y.R,{queueName:"eval_runs",nameGenerator:e=>`Eval Run ${e.data?.eval_run_name||e.data?.eval_run_id} - Test Case ${e.data?.test_case_name||e.data?.test_case_id}`,retryJob:e=>{e.data?.test_case_id&&e.data?.eval_run_id&&z({variables:{id:e.data?.eval_run_id,test_case_ids:[e.data?.test_case_id]}})}})]}),r.jsx(b.n,{eval_set_id:_,open:k,onOpenChange:C,onCreateSuccess:()=>{A()}})]})}a()}catch(e){a(e)}})},51602:(e,s,t)=>{"use strict";t.d(s,{d:()=>u,f:()=>h});var a=t(10326),r=t(90772),l=t(77863),i=t(32933),n=t(43810),d=t(17577),c=t(54390),o=t(35057),m=t(48818);let x=(0,d.createContext)({code:""}),u=({code:e,language:s,showLineNumbers:t=!1,className:r,children:i,...n})=>a.jsx(x.Provider,{value:{code:e},children:a.jsx("div",{className:(0,l.cn)("relative w-full overflow-hidden rounded-md border bg-background text-foreground",r),...n,children:(0,a.jsxs)("div",{className:"relative",children:[a.jsx(c.Z,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:s,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:o.Z,children:e}),a.jsx(c.Z,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:s,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:m.Z,children:e}),i&&a.jsx("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:i})]})})}),h=({onCopy:e,onError:s,timeout:t=2e3,children:c,className:o,...m})=>{let[u,h]=(0,d.useState)(!1),{code:p}=(0,d.useContext)(x),f=async()=>{s?.(Error("Clipboard API not available"))},g=u?i.Z:n.Z;return a.jsx(r.z,{className:(0,l.cn)("shrink-0",o),onClick:f,size:"icon",variant:"ghost",...m,children:c??a.jsx(g,{size:14})})}},36931:(e,s,t)=>{"use strict";t.d(s,{H:()=>u});var a=t(10326),r=t(77863),l=t(17577),i=t(16476),n=t(79283),d=t(70285),c=t(7833),o=t(51602);t(32289);let m=(0,t(39499).Z)(i.UG),x={ol:({node:e,children:s,className:t,...l})=>a.jsx("ol",{className:(0,r.cn)("ml-4 list-outside list-decimal",t),...l,children:s}),li:({node:e,children:s,className:t,...l})=>a.jsx("li",{className:(0,r.cn)("py-1",t),...l,children:s}),ul:({node:e,children:s,className:t,...l})=>a.jsx("ul",{className:(0,r.cn)("ml-4 list-outside list-disc",t),...l,children:s}),hr:({node:e,className:s,...t})=>a.jsx("hr",{className:(0,r.cn)("my-6 border-border",s),...t}),strong:({node:e,children:s,className:t,...l})=>a.jsx("span",{className:(0,r.cn)("font-semibold",t),...l,children:s}),a:({node:e,children:s,className:t,...l})=>a.jsx("a",{className:(0,r.cn)("font-medium text-primary underline",t),rel:"noreferrer",target:"_blank",...l,children:s}),h1:({node:e,children:s,className:t,...l})=>a.jsx("h1",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-3xl",t),...l,children:s}),h2:({node:e,children:s,className:t,...l})=>a.jsx("h2",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-2xl",t),...l,children:s}),h3:({node:e,children:s,className:t,...l})=>a.jsx("h3",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-xl",t),...l,children:s}),h4:({node:e,children:s,className:t,...l})=>a.jsx("h4",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-lg",t),...l,children:s}),h5:({node:e,children:s,className:t,...l})=>a.jsx("h5",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-base",t),...l,children:s}),h6:({node:e,children:s,className:t,...l})=>a.jsx("h6",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-sm",t),...l,children:s}),table:({node:e,children:s,className:t,...l})=>a.jsx("div",{className:"my-4 overflow-x-auto",children:a.jsx("table",{className:(0,r.cn)("w-full border-collapse border border-border",t),...l,children:s})}),thead:({node:e,children:s,className:t,...l})=>a.jsx("thead",{className:(0,r.cn)("bg-muted/50",t),...l,children:s}),tbody:({node:e,children:s,className:t,...l})=>a.jsx("tbody",{className:(0,r.cn)("divide-y divide-border",t),...l,children:s}),tr:({node:e,children:s,className:t,...l})=>a.jsx("tr",{className:(0,r.cn)("border-border border-b",t),...l,children:s}),th:({node:e,children:s,className:t,...l})=>a.jsx("th",{className:(0,r.cn)("px-4 py-2 text-left font-semibold text-sm",t),...l,children:s}),td:({node:e,children:s,className:t,...l})=>a.jsx("td",{className:(0,r.cn)("px-4 py-2 text-sm",t),...l,children:s}),blockquote:({node:e,children:s,className:t,...l})=>a.jsx("blockquote",{className:(0,r.cn)("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),...l,children:s}),code:({node:e,className:s,...t})=>e?.position?.start.line!==e?.position?.end.line?a.jsx("code",{className:s,...t}):a.jsx("code",{className:(0,r.cn)("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",s),...t}),pre:({node:e,className:s,children:t})=>{let i="javascript";"string"==typeof e?.properties?.className&&(i=e.properties.className.replace("language-",""));let n="";return(0,l.isValidElement)(t)&&t.props&&"string"==typeof t.props.children?n=t.props.children:"string"==typeof t&&(n=t),a.jsx(o.d,{className:(0,r.cn)("my-4 h-auto",s),code:n,language:i,children:a.jsx(o.f,{onCopy:()=>console.log("Copied code to clipboard"),onError:()=>console.error("Failed to copy code to clipboard")})})}},u=(0,l.memo)(({className:e,options:s,children:t,allowedImagePrefixes:l,allowedLinkPrefixes:i,defaultOrigin:o,parseIncompleteMarkdown:u=!0,...h})=>{let p="string"==typeof t&&u?function(e){if(!e||"string"!=typeof e)return e;let s=e,t=s.match(/(!?\[)([^\]]*?)$/);if(t){let e=s.lastIndexOf(t[1]);s=s.substring(0,e)}if(s.match(/(\*\*)([^*]*?)$/)&&(s.match(/\*\*/g)||[]).length%2==1&&(s=`${s}**`),s.match(/(__)([^_]*?)$/)&&(s.match(/__/g)||[]).length%2==1&&(s=`${s}__`),s.match(/(\*)([^*]*?)$/)&&s.split("").reduce((e,t,a)=>{if("*"===t){let t=s[a-1],r=s[a+1];if("*"!==t&&"*"!==r)return e+1}return e},0)%2==1&&(s=`${s}*`),s.match(/(_)([^_]*?)$/)&&s.split("").reduce((e,t,a)=>{if("_"===t){let t=s[a-1],r=s[a+1];if("_"!==t&&"_"!==r)return e+1}return e},0)%2==1&&(s=`${s}_`),s.match(/(`)([^`]*?)$/)&&(s.includes("```"),(s.match(/```[\s\S]*?```/g)||[]).length,(s.match(/```/g)||[]).length%2!=1)){let e=0;for(let t=0;t<s.length;t++)if("`"===s[t]){let a="```"===s.substring(t,t+3),r=t>0&&"```"===s.substring(t-1,t+2),l=t>1&&"```"===s.substring(t-2,t+1);!(a||r||l)&&e++}e%2==1&&(s=`${s}\``)}return s.match(/(~~)([^~]*?)$/)&&(s.match(/~~/g)||[]).length%2==1&&(s=`${s}~~`),s}(t):t;return a.jsx("div",{className:(0,r.cn)("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...h,children:a.jsx(m,{allowedImagePrefixes:l??["*"],allowedLinkPrefixes:i??["*"],components:x,defaultOrigin:o,rehypePlugins:[n.Z],remarkPlugins:[d.Z,c.Z],...s,children:p})})},(e,s)=>e.children===s.children);u.displayName="Response"},57004:(e,s,t)=>{"use strict";t.a(e,async(e,a)=>{try{t.d(s,{G:()=>g});var r=t(10326),l=t(48644),i=t(93801),n=t(45747),d=t(17577),c=t(94966),o=t(12533),m=t(12428),x=t(47355),u=t(62288),h=t(34789),p=t(77863),f=e([l,i,n]);function g({className:e=null,code:s,language:t,slice:a=200}){let{toast:l}=(0,h.pm)(),[i,n]=(0,d.useState)(null);return(0,r.jsxs)(u.Vq,{children:[r.jsx(u.hg,{asChild:!0,children:i?.length&&r.jsx(c.Z,{className:(0,p.cn)("cursor-pointer",e),showLineNumbers:!0,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:t||"plaintext",style:x.Z,children:`${i?.slice(0,a||200)} ${s?.length>(a||200)?"...":""}`})}),r.jsx(u.cZ,{className:"sm:max-w-[800px] overflow-hidden max-h-[500px] overflow-y-scroll",children:(0,r.jsxs)(u.fK,{children:[r.jsx(u.$N,{children:"Code"}),r.jsx("div",{className:"cursor-copy",onClick:async()=>{await navigator.clipboard.writeText(i??""),l({title:"Copied to clipboard"})},children:r.jsx(c.Z,{className:(0,p.cn)(e),showLineNumbers:!0,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:t||"plaintext",style:x.Z,children:i??""})})]})})]})}[l,i,n]=f.then?(await f)():f,c.Z.registerLanguage("json",m.Z),c.Z.registerLanguage("javascript",o.Z),a()}catch(e){a(e)}})},18615:(e,s,t)=>{"use strict";t.d(s,{J:()=>f});var a=t(10326);t(17577);var r=t(62288),l=t(34789),i=t(36931),n=t(90772),d=t(68232),c=t(77863);let o=({className:e,...s})=>a.jsx("div",{className:(0,c.cn)("flex flex-col overflow-hidden rounded-lg border bg-background shadow-sm",e),...s}),m=({className:e,...s})=>a.jsx("div",{className:(0,c.cn)("flex items-center justify-between border-b bg-muted/50 px-4 py-3",e),...s}),x=({className:e,...s})=>a.jsx("div",{className:(0,c.cn)("flex items-center gap-1",e),...s}),u=({tooltip:e,label:s,icon:t,children:r,className:l,size:i="sm",variant:o="ghost",...m})=>{let x=(0,a.jsxs)(n.z,{className:(0,c.cn)("size-8 p-0 text-muted-foreground hover:text-foreground",l),size:i,type:"button",variant:o,...m,children:[t?a.jsx(t,{className:"size-4"}):r,a.jsx("span",{className:"sr-only",children:s||e})]});return e?a.jsx(d.pn,{children:(0,a.jsxs)(d.u,{children:[a.jsx(d.aJ,{asChild:!0,children:x}),a.jsx(d._v,{children:a.jsx("p",{children:e})})]})}):x},h=({className:e,...s})=>a.jsx("div",{className:(0,c.cn)("flex-1 overflow-auto p-4",e),...s});var p=t(43810);function f({text:e,sliceLength:s}){let{toast:t}=(0,l.pm)();return(0,a.jsxs)(r.Vq,{children:[a.jsx(r.hg,{asChild:!0,children:(0,a.jsxs)("p",{className:"cursor-pointer text-sm text-base",children:[e?.slice(0,s??200),s&&e.length>s?"...":""]})}),a.jsx(r.cZ,{className:"sm:max-w-[800px] max-h-[500px] overflow-y-scroll",children:(0,a.jsxs)(o,{children:[a.jsx(m,{children:a.jsx(x,{children:a.jsx(u,{icon:p.Z,label:"Copy",tooltip:"Copy to clipboard",onClick:async()=>{await navigator.clipboard.writeText(e),t({title:"Copied to clipboard"})}})})}),a.jsx(h,{children:a.jsx(i.H,{children:e})})]})})]})}},99440:(e,s,t)=>{"use strict";t.d(s,{OL:()=>f,_T:()=>m,aR:()=>d,f$:()=>h,fY:()=>x,le:()=>g,xo:()=>u,yT:()=>p});var a=t(10326),r=t(12194),l=t(17577),i=t(90772),n=t(77863);let d=r.fC;r.xz;let c=r.h_,o=l.forwardRef(({className:e,...s},t)=>a.jsx(r.aV,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s,ref:t}));o.displayName=r.aV.displayName;let m=l.forwardRef(({className:e,...s},t)=>(0,a.jsxs)(c,{children:[a.jsx(o,{}),a.jsx(r.VY,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...s})]}));m.displayName=r.VY.displayName;let x=({className:e,...s})=>a.jsx("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...s});x.displayName="AlertDialogHeader";let u=({className:e,...s})=>a.jsx("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...s});u.displayName="AlertDialogFooter";let h=l.forwardRef(({className:e,...s},t)=>a.jsx(r.Dx,{ref:t,className:(0,n.cn)("text-lg font-semibold",e),...s}));h.displayName=r.Dx.displayName;let p=l.forwardRef(({className:e,...s},t)=>a.jsx(r.dk,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",e),...s}));p.displayName=r.dk.displayName;let f=l.forwardRef(({className:e,...s},t)=>a.jsx(r.aU,{ref:t,className:(0,n.cn)((0,i.d)(),e),...s}));f.displayName=r.aU.displayName;let g=l.forwardRef(({className:e,...s},t)=>a.jsx(r.$j,{ref:t,className:(0,n.cn)((0,i.d)({variant:"outline"}),"mt-2 sm:mt-0",e),...s}));g.displayName=r.$j.displayName},43273:(e,s,t)=>{"use strict";t.d(s,{Cd:()=>c,X:()=>o,bZ:()=>d});var a=t(10326),r=t(79360),l=t(17577),i=t(77863);let n=(0,r.j)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",info:"border-info/50 text-info dark:border-info [&>svg]:text-info"}},defaultVariants:{variant:"default"}}),d=l.forwardRef(({className:e,variant:s,...t},r)=>a.jsx("div",{ref:r,role:"alert",className:(0,i.cn)(n({variant:s}),e),...t}));d.displayName="Alert";let c=l.forwardRef(({className:e,...s},t)=>a.jsx("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",e),...s}));c.displayName="AlertTitle";let o=l.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",e),...s}));o.displayName="AlertDescription"},567:(e,s,t)=>{"use strict";t.d(s,{C:()=>n});var a=t(10326),r=t(79360);t(17577);var l=t(77863);let i=(0,r.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function n({className:e,variant:s,...t}){return a.jsx("div",{className:(0,l.cn)(i({variant:s}),e),...t})}},33071:(e,s,t)=>{"use strict";t.d(s,{Ol:()=>n,SZ:()=>c,Zb:()=>i,aY:()=>o,eW:()=>m,ll:()=>d});var a=t(10326),r=t(17577),l=t(77863);let i=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...s}));i.displayName="Card";let n=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",e),...s}));n.displayName="CardHeader";let d=r.forwardRef(({className:e,...s},t)=>a.jsx("h3",{ref:t,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",e),...s}));d.displayName="CardTitle";let c=r.forwardRef(({className:e,...s},t)=>a.jsx("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",e),...s}));c.displayName="CardDescription";let o=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,l.cn)("p-6 pt-0",e),...s}));o.displayName="CardContent";let m=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",e),...s}));m.displayName="CardFooter"},53313:(e,s,t)=>{"use strict";t.d(s,{X:()=>d});var a=t(10326),r=t(13635),l=t(32933),i=t(17577),n=t(77863);let d=i.forwardRef(({className:e,...s},t)=>a.jsx(r.fC,{ref:t,className:(0,n.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...s,children:a.jsx(r.z$,{className:(0,n.cn)("flex items-center justify-center text-current"),children:a.jsx(l.Z,{className:"size-4"})})}));d.displayName=r.fC.displayName},62288:(e,s,t)=>{"use strict";t.d(s,{$N:()=>p,Be:()=>f,Vq:()=>d,cN:()=>h,cZ:()=>x,fK:()=>u,hg:()=>c});var a=t(10326),r=t(98986),l=t(94019),i=t(17577),n=t(77863);let d=r.fC,c=r.xz,o=r.h_;r.x8;let m=i.forwardRef(({className:e,...s},t)=>a.jsx(r.aV,{ref:t,className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s}));m.displayName=r.aV.displayName;let x=i.forwardRef(({className:e,children:s,...t},i)=>(0,a.jsxs)(o,{children:[a.jsx(m,{}),(0,a.jsxs)(r.VY,{ref:i,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t,children:[s,(0,a.jsxs)(r.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(l.Z,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));x.displayName=r.VY.displayName;let u=({className:e,...s})=>a.jsx("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...s});u.displayName="DialogHeader";let h=({className:e,...s})=>a.jsx("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...s});h.displayName="DialogFooter";let p=i.forwardRef(({className:e,...s},t)=>a.jsx(r.Dx,{ref:t,className:(0,n.cn)("text-lg font-semibold leading-none tracking-tight",e),...s}));p.displayName=r.Dx.displayName;let f=i.forwardRef(({className:e,...s},t)=>a.jsx(r.dk,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",e),...s}));f.displayName=r.dk.displayName},31048:(e,s,t)=>{"use strict";t.d(s,{_:()=>c});var a=t(10326),r=t(34478),l=t(79360),i=t(17577),n=t(77863);let d=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=i.forwardRef(({className:e,...s},t)=>a.jsx(r.f,{ref:t,className:(0,n.cn)(d(),e),...s}));c.displayName=r.f.displayName},65685:(e,s,t)=>{"use strict";t.d(s,{B:()=>d,x:()=>n});var a=t(10326),r=t(9261),l=t(17577),i=t(77863);let n=l.forwardRef(({className:e,children:s,...t},l)=>(0,a.jsxs)(r.fC,{ref:l,className:(0,i.cn)("relative overflow-hidden",e),...t,children:[a.jsx(r.l_,{className:"size-full rounded-[inherit]",children:s}),a.jsx(d,{}),a.jsx(r.Ns,{})]}));n.displayName=r.fC.displayName;let d=l.forwardRef(({className:e,orientation:s="vertical",...t},l)=>a.jsx(r.gb,{ref:l,orientation:s,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...t,children:a.jsx(r.q4,{className:"relative flex-1 rounded-full bg-border"})}));d.displayName=r.gb.displayName},34474:(e,s,t)=>{"use strict";t.d(s,{Bw:()=>p,Ph:()=>o,Ql:()=>f,i4:()=>x,ki:()=>m});var a=t(10326),r=t(55423),l=t(941),i=t(96633),n=t(32933),d=t(17577),c=t(77863);let o=r.fC;r.ZA;let m=r.B4,x=d.forwardRef(({className:e,children:s,...t},i)=>(0,a.jsxs)(r.xz,{ref:i,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...t,children:[s,a.jsx(r.JO,{asChild:!0,children:a.jsx(l.Z,{className:"size-4 opacity-50"})})]}));x.displayName=r.xz.displayName;let u=d.forwardRef(({className:e,...s},t)=>a.jsx(r.u_,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",e),...s,children:a.jsx(i.Z,{className:"size-4"})}));u.displayName=r.u_.displayName;let h=d.forwardRef(({className:e,...s},t)=>a.jsx(r.$G,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",e),...s,children:a.jsx(l.Z,{className:"size-4"})}));h.displayName=r.$G.displayName;let p=d.forwardRef(({className:e,children:s,position:t="popper",...l},i)=>a.jsx(r.h_,{children:(0,a.jsxs)(r.VY,{ref:i,className:(0,c.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===t&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...l,children:[a.jsx(u,{}),a.jsx(r.l_,{className:(0,c.cn)("p-1","popper"===t&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),a.jsx(h,{})]})}));p.displayName=r.VY.displayName,d.forwardRef(({className:e,...s},t)=>a.jsx(r.__,{ref:t,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...s})).displayName=r.__.displayName;let f=d.forwardRef(({className:e,children:s,...t},l)=>(0,a.jsxs)(r.ck,{ref:l,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[a.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(r.wU,{children:a.jsx(n.Z,{className:"size-4"})})}),a.jsx(r.eT,{children:s})]}));f.displayName=r.ck.displayName,d.forwardRef(({className:e,...s},t)=>a.jsx(r.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",e),...s})).displayName=r.Z0.displayName},15940:(e,s,t)=>{"use strict";t.d(s,{RM:()=>d,Rn:()=>x,SC:()=>c,iA:()=>i,pj:()=>m,ss:()=>o,xD:()=>n});var a=t(10326),r=t(17577),l=t(77863);let i=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:t,className:(0,l.cn)("w-full caption-bottom text-sm",e),...s})}));i.displayName="Table";let n=r.forwardRef(({className:e,...s},t)=>a.jsx("thead",{ref:t,className:(0,l.cn)("[&_tr]:border-b",e),...s}));n.displayName="TableHeader";let d=r.forwardRef(({className:e,...s},t)=>a.jsx("tbody",{ref:t,className:(0,l.cn)("[&_tr:last-child]:border-0",e),...s}));d.displayName="TableBody",r.forwardRef(({className:e,...s},t)=>a.jsx("tfoot",{ref:t,className:(0,l.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...s})).displayName="TableFooter";let c=r.forwardRef(({className:e,...s},t)=>a.jsx("tr",{ref:t,className:(0,l.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...s}));c.displayName="TableRow";let o=r.forwardRef(({className:e,...s},t)=>a.jsx("th",{ref:t,className:(0,l.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:w-[40px]",e),...s}));o.displayName="TableHead";let m=r.forwardRef(({className:e,...s},t)=>a.jsx("td",{ref:t,className:(0,l.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:w-[40px]",e),...s}));m.displayName="TableCell";let x=r.forwardRef(({className:e,...s},t)=>a.jsx("caption",{ref:t,className:(0,l.cn)("mt-4 text-sm text-muted-foreground",e),...s}));x.displayName="TableCaption"},87673:(e,s,t)=>{"use strict";t.d(s,{g:()=>i});var a=t(10326),r=t(17577),l=t(77863);let i=r.forwardRef(({className:e,...s},t)=>a.jsx("textarea",{className:(0,l.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:t,...s}));i.displayName="Textarea"},37202:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},11890:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},48998:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},71059:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]])},94893:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]])},83855:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},91468:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},21608:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},98091:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},71772:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>l,dynamic:()=>r});var a=t(68570);let r=(0,a.createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx#dynamic`),l=(0,a.createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx#default`)}};var s=require("../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[9276,3543,9049,590,7598,931,7344,1729,2578,2194,7544,8181,3393,7223,7944,2270],()=>t(21678));module.exports=a})();
|
|
1
|
+
(()=>{var e={};e.id=8363,e.ids=[8363],e.modules={57343:e=>{"use strict";e.exports=require("graphql")},72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},27790:e=>{"use strict";e.exports=require("assert")},78893:e=>{"use strict";e.exports=require("buffer")},61282:e=>{"use strict";e.exports=require("child_process")},84770:e=>{"use strict";e.exports=require("crypto")},80665:e=>{"use strict";e.exports=require("dns")},17702:e=>{"use strict";e.exports=require("events")},92048:e=>{"use strict";e.exports=require("fs")},32615:e=>{"use strict";e.exports=require("http")},35240:e=>{"use strict";e.exports=require("https")},98216:e=>{"use strict";e.exports=require("net")},19801:e=>{"use strict";e.exports=require("os")},55315:e=>{"use strict";e.exports=require("path")},86624:e=>{"use strict";e.exports=require("querystring")},76162:e=>{"use strict";e.exports=require("stream")},82452:e=>{"use strict";e.exports=require("tls")},17360:e=>{"use strict";e.exports=require("url")},21764:e=>{"use strict";e.exports=require("util")},71568:e=>{"use strict";e.exports=require("zlib")},8678:e=>{"use strict";e.exports=import("pg")},48644:e=>{"use strict";e.exports=import("prettier/plugins/babel")},93801:e=>{"use strict";e.exports=import("prettier/plugins/estree")},45747:e=>{"use strict";e.exports=import("prettier/standalone")},49411:e=>{"use strict";e.exports=require("node:path")},97742:e=>{"use strict";e.exports=require("node:process")},41041:e=>{"use strict";e.exports=require("node:url")},21678:(e,s,t)=>{"use strict";t.a(e,async(e,a)=>{try{t.r(s),t.d(s,{GlobalError:()=>d.a,__next_app__:()=>p,originalPathname:()=>h,pages:()=>u,routeModule:()=>f,tree:()=>x}),t(71772);var r=t(71197);t(35866);var l=t(23191),i=t(88716),n=t(37922),d=t.n(n),c=t(95231),o={};for(let e in c)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>c[e]);t.d(s,o);var m=e([r]);r=(m.then?(await m)():m)[0];let x=["",{children:["(application)",{children:["evals",{children:["[id]",{children:["runs",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(t.bind(t,71772)),"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx"]}]},{}]},{}]},{}]},{layout:[()=>Promise.resolve().then(t.bind(t,71197)),"/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/layout.tsx"],"not-found":[()=>Promise.resolve().then(t.t.bind(t,35866,23)),"next/dist/client/components/not-found-error"]}]},{"not-found":[()=>Promise.resolve().then(t.t.bind(t,35866,23)),"next/dist/client/components/not-found-error"]}],u=["/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx"],h="/(application)/evals/[id]/runs/page",p={require:t,loadChunk:()=>Promise.resolve()},f=new l.AppPageRouteModule({definition:{kind:i.x.APP_PAGE,page:"/(application)/evals/[id]/runs/page",pathname:"/evals/[id]/runs",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:x}});a()}catch(e){a(e)}})},48050:(e,s,t)=>{Promise.resolve().then(t.bind(t,65765))},25013:(e,s,t)=>{"use strict";t.d(s,{n:()=>b});var a=t(10326),r=t(17577),l=t(39167),i=t(18753),n=t(75290),d=t(62288),c=t(90772),o=t(31048),m=t(54432),x=t(87673),u=t(34474),h=t(53313),p=t(42270),f=t(34789),g=t(65685),j=t(567),v=t(8281);function b({eval_set_id:e,onCreateSuccess:s,existingRun:t=null,open:b,onOpenChange:N}){let{toast:y}=(0,f.pm)(),w=!!t,[_,k]=(0,r.useState)({id:"",name:"",rights_mode:"private",createdAt:"",updatedAt:"",eval_set_id:e,agent_id:"",eval_functions:[],scoring_method:"average",pass_threshold:70,timeout_in_seconds:300,test_case_ids:[]}),{data:C}=(0,l.aM)(p.ym,{variables:{page:1,limit:100,filters:[]},skip:!e}),{data:Z}=(0,l.aM)(p.Ts,{skip:!e}),{data:R}=(0,l.aM)(p.RV,{variables:{page:1,limit:500,filters:[{eval_set_id:{eq:e}}]},skip:!e}),q=R?.test_casesPagination?.items||[],[z,{loading:S}]=(0,i.D)(p.oo,{onCompleted:()=>{y({title:"Eval run created",description:"The eval run has been created successfully. You can now run it."}),s&&s(),N(!1)},onError:e=>{y({title:"Failed to create eval run",description:e.message,variant:"destructive"})}}),[T,{loading:P}]=(0,i.D)(p.Nu,{onCompleted:()=>{y({title:"Eval run updated",description:"The eval run has been updated successfully."}),s&&s(),N(!1)},onError:e=>{y({title:"Failed to update eval run",description:e.message,variant:"destructive"})}}),$=S||P,M=e=>{k(s=>({...s,test_case_ids:s.test_case_ids.includes(e)?s.test_case_ids.filter(s=>s!==e):[...s.test_case_ids,e]}))},A=()=>{k(e=>({...e,test_case_ids:e.test_case_ids.length===q.length?[]:q.map(e=>e.id)}))},E=e=>{k(s=>({...s,eval_functions:s.eval_functions.some(s=>s.id===e.id)?s.eval_functions.filter(s=>s.id!==e.id):[...s.eval_functions,e]}))};return a.jsx(d.Vq,{open:b,onOpenChange:N,children:(0,a.jsxs)(d.cZ,{className:"max-w-4xl h-[90vh] flex flex-col",children:[(0,a.jsxs)(d.fK,{children:[a.jsx(d.$N,{children:w?"Edit Eval Run":"Create Eval Run"}),a.jsx(d.Be,{children:w?"Update the configuration for this eval run.":"Configure a new evaluation run for this eval set."})]}),(0,a.jsxs)("form",{onSubmit:s=>{if(s.preventDefault(),console.log("[EXULU] Eval run",_),!_.name){y({title:"Validation error",description:"Please enter a name for this eval run.",variant:"destructive"});return}if(!_.agent_id){y({title:"Validation error",description:"Please select an agent.",variant:"destructive"});return}if(0===_.test_case_ids.length){y({title:"Validation error",description:"Please select at least one test case.",variant:"destructive"});return}if(0===_.eval_functions.length){y({title:"Validation error",description:"Please select at least one eval function.",variant:"destructive"});return}let t={name:_.name,eval_set_id:e,agent_id:_.agent_id,test_case_ids:_.test_case_ids,eval_functions:_.eval_functions,scoring_method:_.scoring_method.toUpperCase(),pass_threshold:_.pass_threshold,timeout_in_seconds:_.timeout_in_seconds,rights_mode:_.rights_mode,RBAC:_.RBAC};w?T({variables:{id:_.id,data:t}}):z({variables:{data:t}})},className:"flex-1 flex flex-col min-h-0",children:[a.jsx(g.x,{className:"flex-1 -mx-6 px-6",children:(0,a.jsxs)("div",{className:"space-y-6 pb-4",children:[(0,a.jsxs)("div",{className:"space-y-3",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Name"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Give this eval run a descriptive name"})]})}),a.jsx(m.I,{type:"text",placeholder:"e.g., GPT-4 baseline evaluation",value:_.name,onChange:e=>k(s=>({...s,name:e.target.value})),className:"h-11"})]}),a.jsx(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-3",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Agent"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Choose which agent to evaluate"})]})}),(0,a.jsxs)(u.Ph,{value:_.agent_id,onValueChange:e=>k(s=>({...s,agent_id:e})),children:[a.jsx(u.i4,{className:"h-11",children:a.jsx(u.ki,{placeholder:"Select an agent..."})}),a.jsx(u.Bw,{children:C?.agentsPagination?.items?.map(e=>a.jsx(u.Ql,{value:e.id,children:e.name},e.id))})]})]}),a.jsx(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Eval Functions"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[_.eval_functions.length," of ",Z?.evals?.items?.length||0," selected"]})]})}),a.jsx(c.z,{type:"button",variant:"outline",size:"sm",onClick:e=>{e.stopPropagation(),_.eval_functions.length===Z?.evals?.items?.length?k(e=>({...e,eval_functions:[]})):k(e=>({...e,eval_functions:Z?.evals?.items?.map(e=>({id:e.id,config:e.config}))||[]}))},children:_.eval_functions.length===Z?.evals?.items?.length?"Deselect All":"Select All"})]}),a.jsx("div",{className:"border rounded-lg bg-card",children:a.jsx("div",{className:"p-3 space-y-2",children:Z?.evals?.items?.map(e=>a.jsxs("label",{htmlFor:`eval-${e.id}`,className:"flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors cursor-pointer border border-transparent hover:border-border",children:[a.jsx(h.X,{id:`eval-${e.id}`,checked:_.eval_functions.some(s=>s.id===e.id),onCheckedChange:()=>E({id:e.id,config:e.config}),className:"mt-0.5"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("div",{className:"flex items-center gap-2",children:a.jsx("span",{className:"font-medium text-sm",children:e.name})}),e.description&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description}),e.config&&e.config.length>0&&_.eval_functions.some(s=>s.id===e.id)&&a.jsxs("div",{className:"mt-3 space-y-3 pt-3 border-t",children:[a.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Configuration"}),e.config.map(s=>a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(o._,{htmlFor:`${e.id}-${s.name}`,className:"text-xs font-medium",children:s.name}),a.jsx(x.g,{id:`${e.id}-${s.name}`,placeholder:s.description,value:_.eval_functions.find(s=>s.id===e.id)?.config?.[s.name]||"",onChange:t=>{t.stopPropagation(),k(a=>({...a,eval_functions:a.eval_functions.map(a=>a.id===e.id?{...a,config:{...a.config,[s.name]:t.target.value}}:a)}))},onClick:e=>e.stopPropagation(),className:"min-h-[80px] text-xs resize-none"}),s.description&&a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:s.description})]},s.name))]})]})]},e.id))})})]}),a.jsx(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Test Cases"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[_.test_case_ids.length," of ",q.length," selected"]})]})}),a.jsx(c.z,{type:"button",variant:"outline",size:"sm",onClick:e=>{e.stopPropagation(),A()},children:_.test_case_ids.length===q.length?"Deselect All":"Select All"})]}),a.jsx("div",{className:"border rounded-lg bg-card",children:a.jsx(g.x,{className:"h-[250px]",children:a.jsx("div",{className:"p-3 space-y-2",children:q.map(e=>(0,a.jsxs)("label",{htmlFor:`test-case-${e.id}`,className:"flex items-start gap-3 p-3 rounded-md hover:bg-accent transition-colors cursor-pointer border border-transparent hover:border-border",children:[a.jsx(h.X,{id:`test-case-${e.id}`,checked:_.test_case_ids.includes(e.id),onCheckedChange:()=>M(e.id),className:"mt-0.5"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[a.jsx("span",{className:"font-medium text-sm",children:e.name}),(0,a.jsxs)(j.C,{variant:"secondary",className:"text-[10px] shrink-0",children:[e.inputs?.length||0," msgs"]})]}),e.description&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description})]})]},e.id))})})})]}),a.jsx(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-3",children:[a.jsx("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{children:[a.jsx("h3",{className:"font-semibold text-sm",children:"Scoring"}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"Configure how scores are calculated"})]})}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 p-4 border rounded-lg bg-muted/30",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[a.jsx(o._,{htmlFor:"scoringMethod",className:"text-xs font-semibold",children:"Scoring Method"}),(0,a.jsxs)(u.Ph,{value:_.scoring_method,onValueChange:e=>k(s=>({...s,scoring_method:e})),children:[a.jsx(u.i4,{id:"scoringMethod",className:"h-10",children:a.jsx(u.ki,{})}),(0,a.jsxs)(u.Bw,{children:[a.jsx(u.Ql,{value:"median",children:"Median"}),a.jsx(u.Ql,{value:"average",children:"Average"}),a.jsx(u.Ql,{value:"sum",children:"Sum"})]})]}),a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"How to combine multiple eval function scores"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[a.jsx(o._,{htmlFor:"passThreshold",className:"text-xs font-semibold",children:"Pass Threshold"}),a.jsx(m.I,{id:"passThreshold",type:"number",min:"0",max:"100",value:_.pass_threshold,onChange:e=>k(s=>({...s,pass_threshold:Number(e.target.value)})),className:"h-10"}),a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Minimum score (0-100) to pass"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[a.jsx(o._,{htmlFor:"timeoutInSeconds",className:"text-xs font-semibold",children:"Timeout (seconds)"}),a.jsx(m.I,{id:"timeoutInSeconds",type:"number",min:"1",value:_.timeout_in_seconds,onChange:e=>k(s=>({...s,timeout_in_seconds:Number(e.target.value)})),className:"h-10"}),a.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Max time per test case execution"})]})]})]})]})}),a.jsx(v.Z,{className:"my-4"}),a.jsx(d.cN,{className:"shrink-0",children:(0,a.jsxs)(c.z,{type:"submit",disabled:$||!_.name||!_.agent_id||0===_.test_case_ids.length||0===_.eval_functions.length,className:"w-full h-11",children:[$&&a.jsx(n.Z,{className:"mr-2 h-4 w-4 animate-spin"}),w?"Update Eval Run":"Create Eval Run"]})})]})]})})}},66935:(e,s,t)=>{"use strict";t.d(s,{Z:()=>h});var a=t(10326),r=t(39167),l=t(42270),i=t(48998),n=t(75290),d=t(91470),c=t(71059),o=t(37202),m=t(77863);let x={waiting:a.jsx(i.Z,{className:"h-3 w-3"}),active:a.jsx(n.Z,{className:"h-3 w-3 animate-spin"}),completed:null,failed:a.jsx(d.Z,{className:"h-3 w-3"}),delayed:a.jsx(i.Z,{className:"h-3 w-3"}),paused:a.jsx(c.Z,{className:"h-3 w-3"}),stuck:a.jsx(o.Z,{className:"h-3 w-3"})},u={waiting:"text-yellow-600 bg-yellow-50 border-yellow-200",active:"text-blue-600 bg-blue-50 border-blue-200",completed:"",failed:"text-red-600 bg-red-50 border-red-200",delayed:"text-orange-600 bg-orange-50 border-orange-200",paused:"text-gray-600 bg-gray-50 border-gray-200",stuck:"text-red-600 bg-red-50 border-red-200"};function h({evalRun:e,testCases:s,onCellClick:t}){let{data:i,loading:d}=(0,r.aM)(l.JL,{variables:{page:1,limit:500,filters:[{label:{contains:"eval-run-"+e.id}}]},skip:!e.id}),c=i?.job_resultsPagination?.items||[],o=s=>c.find(t=>t.label?.includes(s)&&t.label?.includes(e.id))||null,h=s=>{if(console.log("[EXULU] result",s?.result),!s||"completed"!==s.state||void 0===s.result)return"";let t=s.result,a=e.pass_threshold;return t>=a?"text-green-500":t>=a-20?"text-orange-500":"text-red-500"};return a.jsx("div",{className:"flex-shrink-0 min-w-[100px]",children:s.map(s=>{let r=e.test_case_ids.includes(s.id),l=o(s.id);if(!r)return a.jsx("div",{className:"p-3 text-center border-r bg-muted/20 min-h-[72px] flex items-center justify-center",children:a.jsx("span",{className:"text-xs text-muted-foreground",children:"—"})},s.id);let i=h(l),c=l?.state?u[l.state]:"bg-transparent";return a.jsx("div",{className:"p-3 text-center border-r min-h-[72px] flex items-center justify-center",children:a.jsx("div",{onClick:()=>t(l),className:(0,m.cn)("w-full h-full min-h-[48px] rounded transition-colors flex items-center justify-center gap-2",i||c||"border-gray-200 bg-gray-50",l?.state==="completed"&&"cursor-pointer hover:opacity-80",(!l||"completed"!==l.state)&&"cursor-default"),children:d?a.jsx(n.Z,{className:"h-3 w-3 animate-spin"}):l?a.jsx(a.Fragment,{children:"completed"===l.state&&void 0!==l.result?a.jsx("span",{className:"font-semibold text-sm hover:underline",children:l.result.toFixed(1)}):(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[x[l.state],a.jsx("span",{className:"text-xs capitalize",children:l.state})]})}):(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[x.waiting,a.jsx("span",{className:"text-xs capitalize",children:"Not started"})]})})},s.id)})})}},70806:(e,s,t)=>{"use strict";t.a(e,async(e,a)=>{try{t.d(s,{v:()=>Z});var r=t(10326),l=t(17577),i=t(90772),n=t(65685),d=t(65304),c=t(7890),o=t(60097),m=t(11890),x=t(231),u=t(69508),h=t(94893),p=t(21608),f=t(75290),g=t(98181),j=t(42270),v=t(39167),b=t(18753),N=t(25013),y=t(34789),w=t(66935),_=t(99440),k=t(57004),C=e([k]);function Z({evalRuns:e,evalSet:s,canWrite:t,onRefetch:a}){let{toast:C}=(0,y.pm)(),[Z,R]=(0,l.useState)(5),[q,z]=(0,l.useState)(null),[S,T]=(0,l.useState)(!1),[P,$]=(0,l.useState)(!1),[M,A]=(0,l.useState)(null),[E,D]=(0,l.useState)(!1),[O,V]=(0,l.useState)(null);console.log("[EXULU] Eval set",s);let{data:F,loading:L,refetch:Y}=(0,v.aM)(j.RV,{variables:{page:1,limit:500,filters:[{eval_set_id:{eq:s.id}}]},skip:!s.id}),J=F?.test_casesPagination?.items||[],[H,{loading:Q}]=(0,b.D)(j.B4,{onCompleted:e=>{C({title:"Eval run started",description:`Scheduled ${e.runEval.count} test cases to run.`}),a()},onError:e=>{C({title:"Failed to start eval run",description:e.message,variant:"destructive"})}}),B=[...e].sort((e,s)=>new Date(e.createdAt).getTime()-new Date(s.createdAt).getTime()),I=B.slice(-Z),U=B.length>Z,X=e=>{e&&"completed"===e.state&&(z(e),T(!0))},G=e=>{A(e),$(!0)},W=e=>{V(e),D(!0)},K=e=>{console.log("Stop run:",e)};return L?r.jsx("div",{className:"space-y-2",children:Array.from({length:5}).map((e,s)=>r.jsx(d.O,{className:"h-12 w-full"},s))}):0===J.length?r.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No test cases in this eval set."}):(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)(n.x,{className:"w-full",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsxs)("div",{className:"sticky left-0 z-10 bg-background flex-shrink-0 min-w-[200px]",children:[r.jsx("div",{className:"p-3 border-b border-r text-left font-medium text-sm",children:"Test Case"}),J.map(e=>r.jsx("div",{className:"p-3 border-b border-r min-h-[72px] flex items-center",children:(0,r.jsxs)("div",{children:[r.jsx("div",{className:"font-medium text-sm",children:e.name}),e.description&&r.jsx("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-1 truncate max-w-[100px]",children:e.id})]})},e.id))]}),U&&(0,r.jsxs)("div",{className:"flex-shrink-0 min-w-[60px]",children:[r.jsx("div",{className:"text-center border-b border-r p-2 min-h-[48px] flex items-center justify-center",children:r.jsx(i.z,{variant:"ghost",size:"sm",onClick:()=>{R(e=>Math.min(e+5,B.length))},className:"h-8 w-8 p-0",children:r.jsx(m.Z,{className:"h-4 w-4"})})}),J.map(e=>r.jsx("div",{className:"p-3 border-b border-r bg-muted/20 min-h-[72px]"},e.id))]}),I.map(e=>(0,r.jsxs)("div",{className:"flex-1 min-w-[100px]",children:[r.jsx("div",{className:"px-2 py-1.5 text-center font-medium text-sm border-b border-r bg-muted/30 min-h-[48px]",children:(0,r.jsxs)("div",{className:"space-y-0.5",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[r.jsx("div",{className:"flex-1 text-xs font-semibold text-foreground truncate",children:e.name}),(0,r.jsxs)(o.h_,{children:[r.jsx(o.$F,{asChild:!0,children:r.jsx(i.z,{variant:"ghost",size:"sm",className:"h-5 w-5 p-0 hover:bg-background/80",children:r.jsx(x.Z,{className:"h-3 w-3"})})}),(0,r.jsxs)(o.AW,{align:"end",children:[(0,r.jsxs)(o.Xi,{onClick:()=>G(e),children:[r.jsx(u.Z,{className:"mr-2 h-4 w-4"}),"Edit"]}),(0,r.jsxs)(o.Xi,{onClick:()=>W(e),children:[r.jsx(h.Z,{className:"mr-2 h-4 w-4"}),"Start"]}),(0,r.jsxs)(o.Xi,{onClick:()=>K(e),children:[r.jsx(p.Z,{className:"mr-2 h-4 w-4"}),"Stop"]})]})]})]}),r.jsx("div",{className:"text-[10px] text-muted-foreground font-normal leading-tight",children:(0,g.WU)(new Date(e.createdAt),"MMM d, yyyy \xb7 HH:mm")}),r.jsx("div",{className:"text-[10px] text-muted-foreground font-normal leading-tight truncate max-w-[100px] text-center m-auto",children:e.id})]})}),r.jsx(w.Z,{evalRun:e,testCases:J,onCellClick:X})]},e.id))]}),r.jsx(n.B,{orientation:"horizontal"})]}),r.jsx(c.yo,{open:S,onOpenChange:T,children:(0,r.jsxs)(c.ue,{children:[r.jsx(c.Tu,{children:r.jsx(c.bC,{children:"Test Result Details"})}),r.jsx("div",{className:"mt-4",children:q&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Job ID"}),r.jsx("div",{className:"text-sm",children:q.job_id})]}),(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Score"}),r.jsx("div",{className:"text-2xl font-bold",children:q.result?.toFixed(1)})]}),(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Status"}),r.jsx("div",{className:"text-sm capitalize",children:q.state})]}),q.error&&"object"==typeof q.error&&Object.keys(q.error).length>0&&(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Error"}),r.jsx("div",{className:"text-sm text-red-600",children:JSON.stringify(q.error)})]}),q.metadata&&(0,r.jsxs)("div",{children:[r.jsx("div",{className:"text-sm font-medium",children:"Metadata"}),r.jsx(k.G,{code:JSON.stringify(q.metadata,null,2)})]})]})})]})}),r.jsx(N.n,{eval_set_id:s.id,open:P,onOpenChange:e=>{$(e),e||A(null)},existingRun:M,onCreateSuccess:a}),r.jsx(_.aR,{open:E,onOpenChange:D,children:(0,r.jsxs)(_._T,{children:[(0,r.jsxs)(_.fY,{children:[r.jsx(_.f$,{children:"Start Eval Run?"}),(0,r.jsxs)(_.yT,{children:["This will schedule all ",O?.test_case_ids.length||0,' test cases in "',O?.name,'" to be run. The eval run will execute each test case against the configured agent and eval functions.']})]}),(0,r.jsxs)(_.xo,{children:[r.jsx(_.le,{onClick:()=>V(null),children:"Cancel"}),(0,r.jsxs)(_.OL,{onClick:()=>{O&&H({variables:{id:O.id}}),D(!1),V(null)},disabled:Q,children:[Q&&r.jsx(f.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Start Run"]})]})]})})]})}k=(C.then?(await C)():C)[0],a()}catch(e){a(e)}})},18050:(e,s,t)=>{"use strict";t.d(s,{R:()=>y});var a=t(10326),r=t(17577),l=t(39167),i=t(18753),n=t(42270),d=t(90772),c=t(33071),o=t(15940),m=t(99440),x=t(567),u=t(75290),h=t(94893),p=t(71059);let f=(0,t(76557).Z)("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);var g=t(98091),j=t(91468),v=t(34789),b=t(98181),N=t(18615);function y({queueName:e,nameGenerator:s,retryJob:t}){let{toast:y}=(0,v.pm)(),[w,_]=(0,r.useState)(!1),[k,C]=(0,r.useState)(!1),[Z,R]=(0,r.useState)(!1),[q,z]=(0,r.useState)(null),[S,T]=(0,r.useState)(null),{data:P,loading:$,refetch:M}=(0,l.aM)(n.k9,{variables:{queue:e},pollInterval:5e3}),{data:A,loading:E,refetch:D}=(0,l.aM)(n.Jq,{variables:{queue:e,statusses:null},pollInterval:5e3}),[O,{loading:V}]=(0,i.D)(n.Wr,{onCompleted:()=>{y({title:"Job deleted",description:"The job has been successfully deleted."}),D(),M(),z(null)},onError:e=>{y({title:"Failed to delete job",description:e.message,variant:"destructive"})}}),[F,{loading:L}]=(0,i.D)(n.fc,{onCompleted:()=>{y({title:"Queue paused",description:`The ${e} queue has been paused.`}),M(),_(!1)},onError:e=>{y({title:"Failed to pause queue",description:e.message,variant:"destructive"})}}),[Y,{loading:J}]=(0,i.D)(n.iC,{onCompleted:()=>{y({title:"Queue resumed",description:`The ${e} queue has been resumed.`}),M(),R(!1)},onError:e=>{y({title:"Failed to resume queue",description:e.message,variant:"destructive"})}}),[H,{loading:Q}]=(0,i.D)(n.QW,{onCompleted:()=>{y({title:"Queue drained",description:"All waiting and delayed jobs have been removed from the queue."}),M(),D(),C(!1)},onError:e=>{y({title:"Failed to drain queue",description:e.message,variant:"destructive"})}}),B=e=>{z(e)},I=e=>{T(e)},U=P?.queue,X=A?.jobs?.items||[],G=e=>a.jsx(x.C,{variant:"outline",className:{active:"bg-blue-100 text-blue-800 border-blue-200",waiting:"bg-yellow-100 text-yellow-800 border-yellow-200",completed:"bg-green-100 text-green-800 border-green-200",failed:"bg-red-100 text-red-800 border-red-200",delayed:"bg-orange-100 text-orange-800 border-orange-200",paused:"bg-gray-100 text-gray-800 border-gray-200"}[e]||"bg-gray-100 text-gray-800",children:e});return $&&E?a.jsx("div",{className:"space-y-4",children:a.jsx(c.Zb,{children:a.jsx(c.aY,{className:"pt-6",children:a.jsx("div",{className:"flex items-center justify-center py-8",children:a.jsx(u.Z,{className:"h-6 w-6 animate-spin"})})})})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.Zb,{children:[a.jsx(c.Ol,{children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)(c.ll,{children:["Queue: ",e]}),(0,a.jsxs)(c.SZ,{children:["Manage the ",e," job queue and view all jobs"]})]}),U&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)(d.z,{variant:"outline",size:"sm",onClick:()=>U?.isPaused?R(!0):_(!0),disabled:L||J,children:[U?.isPaused?a.jsx(h.Z,{className:"mr-2 h-4 w-4"}):a.jsx(p.Z,{className:"mr-2 h-4 w-4"}),U?.isPaused?"Resume":"Pause"]}),(0,a.jsxs)(d.z,{variant:"outline",size:"sm",onClick:()=>C(!0),disabled:Q,children:[a.jsx(f,{className:"mr-2 h-4 w-4"}),"Drain"]})]})]})}),(0,a.jsxs)(c.aY,{className:"space-y-6",children:[U&&(0,a.jsxs)("div",{className:"flex items-center gap-8 p-4 bg-muted/50 rounded-lg",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"text-sm text-muted-foreground",children:"Status:"}),a.jsx("div",{children:U.isPaused?a.jsx(x.C,{variant:"outline",className:"bg-gray-100 text-gray-800",children:"Paused"}):U.isMaxed?a.jsx(x.C,{variant:"outline",className:"bg-red-100 text-red-800",children:"Maxed"}):a.jsx(x.C,{variant:"outline",className:"bg-green-100 text-green-800",children:"Active"})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"text-sm text-muted-foreground",children:"Concurrency:"}),a.jsx("div",{className:"font-semibold",children:U.concurrency})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"text-sm text-muted-foreground",children:"Rate Limit:"}),a.jsx("div",{className:"font-semibold",children:U.ratelimit||"None"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:"text-xs text-muted-foreground",children:"Active:"}),a.jsx("div",{className:"font-semibold text-blue-600",children:U.jobs?.active||0})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:"text-xs text-muted-foreground",children:"Waiting:"}),a.jsx("div",{className:"font-semibold text-yellow-600",children:U.jobs?.waiting||0})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:"text-xs text-muted-foreground",children:"Failed:"}),a.jsx("div",{className:"font-semibold text-red-600",children:U.jobs?.failed||0})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:"text-xs text-muted-foreground",children:"Completed:"}),a.jsx("div",{className:"font-semibold text-green-600",children:U.jobs?.completed||0})]})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-3",children:[a.jsx("h3",{className:"text-sm font-semibold",children:"Queue Jobs"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["All jobs currently in the ",e," queue"]})]}),a.jsx("div",{className:"border rounded-lg",children:E?a.jsx("div",{className:"flex items-center justify-center py-8",children:a.jsx(u.Z,{className:"h-6 w-6 animate-spin"})}):0===X.length?a.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No jobs in queue"}):(0,a.jsxs)(o.iA,{children:[a.jsx(o.xD,{children:(0,a.jsxs)(o.SC,{children:[a.jsx(o.ss,{children:"Name"}),a.jsx(o.ss,{children:"State"}),a.jsx(o.ss,{children:"Timestamp"}),a.jsx(o.ss,{children:"Inputs"}),a.jsx(o.ss,{children:"Outputs"}),a.jsx(o.ss,{className:"text-right",children:"Actions"})]})}),a.jsx(o.RM,{children:X.map((e,t)=>(0,a.jsxs)(o.SC,{children:[a.jsx(o.pj,{className:"font-medium",children:s(e)}),a.jsx(o.pj,{children:G(e.state)}),a.jsx(o.pj,{children:e.timestamp?(0,b.WU)(new Date(e.timestamp),"MMM d, yyyy HH:mm:ss"):"N/A"}),a.jsx(o.pj,{children:e.data?a.jsx("div",{className:"text-xs max-w-xs truncate",children:a.jsx(N.J,{text:JSON.stringify(e.data)})}):null}),a.jsx(o.pj,{children:e.failedReason?a.jsx("div",{className:"text-xs text-red-600 max-w-xs truncate",children:a.jsx(N.J,{text:"Error: "+e.failedReason})}):a.jsx("div",{className:"text-xs text-muted-foreground max-w-xs truncate",children:a.jsx(N.J,{text:JSON.stringify(e.returnvalue)})})}),(0,a.jsxs)(o.pj,{className:"text-right",children:["active"!==e.state&&a.jsx(d.z,{variant:"ghost",size:"sm",onClick:()=>B(e),disabled:V,children:a.jsx(g.Z,{className:"h-4 w-4 text-red-600"})}),"failed"===e.state&&(0,a.jsxs)(d.z,{variant:"ghost",size:"sm",onClick:()=>I(e),children:[a.jsx(j.Z,{className:"h-4 w-4 text-blue-600"}),"Retry"]})]})]},t))})]})})]})]})]}),a.jsx(m.aR,{open:!!q,onOpenChange:e=>!e&&z(null),children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Delete Job?"}),(0,a.jsxs)(m.yT,{children:['Are you sure you want to delete the job "',q?.name,'"? This action cannot be undone.']})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),(0,a.jsxs)(m.OL,{onClick:()=>{if(!q?.id){y({title:"Failed to delete job",description:"The job has no ID.",variant:"destructive"});return}q&&O({variables:{queue:e,id:q.id}})},disabled:V,children:[V&&a.jsx(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Delete"]})]})]})}),a.jsx(m.aR,{open:!!S,onOpenChange:e=>!e&&T(null),children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Retry Job?"}),(0,a.jsxs)(m.yT,{children:['Are you sure you want to retry the job "',S?.name,'"? This will schedule a new job with the same data.']})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),a.jsx(m.OL,{onClick:()=>{S&&t(S)},disabled:V,children:"Retry"})]})]})}),a.jsx(m.aR,{open:w,onOpenChange:_,children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Pause Queue?"}),(0,a.jsxs)(m.yT,{children:["Are you sure you want to pause the ",e," queue? No jobs will be processed until the queue is resumed."]})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),(0,a.jsxs)(m.OL,{onClick:()=>{F({variables:{queue:e}})},disabled:L,children:[L&&a.jsx(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Pause Queue"]})]})]})}),a.jsx(m.aR,{open:Z,onOpenChange:R,children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Resume Queue?"}),(0,a.jsxs)(m.yT,{children:["Are you sure you want to resume the ",e," queue?."]})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),(0,a.jsxs)(m.OL,{onClick:()=>{Y({variables:{queue:e}})},disabled:J,children:[J&&a.jsx(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Resume Queue"]})]})]})}),a.jsx(m.aR,{open:k,onOpenChange:C,children:(0,a.jsxs)(m._T,{children:[(0,a.jsxs)(m.fY,{children:[a.jsx(m.f$,{children:"Drain Queue?"}),(0,a.jsxs)(m.yT,{children:["Are you sure you want to drain the ",e," queue? This will remove all jobs that are waiting or delayed, but not active, waiting-children, completed or failed. This action cannot be undone."]})]}),(0,a.jsxs)(m.xo,{children:[a.jsx(m.le,{children:"Cancel"}),(0,a.jsxs)(m.OL,{onClick:()=>{H({variables:{queue:e}})},disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:[Q&&a.jsx(u.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Drain Queue"]})]})]})})]})}},65765:(e,s,t)=>{"use strict";t.a(e,async(e,a)=>{try{t.r(s),t.d(s,{default:()=>k,dynamic:()=>C});var r=t(10326),l=t(17577),i=t(35047),n=t(18753),d=t(39167),c=t(15211),o=t(30463),m=t(98360),x=t(86333),u=t(83855),h=t(37202),p=t(43273),f=t(90772),g=t(33071),j=t(65304),v=t(42270),b=t(25013),N=t(70806),y=t(18050),w=t(34789),_=e([N]);N=(_.then?(await _)():_)[0];let C="force-dynamic";function k(){let e=(0,i.useParams)(),s=(0,i.useRouter)(),{user:t}=(0,l.useContext)(c.S),a=(0,l.useContext)(o.E),_=e.id,[k,C]=(0,l.useState)(!1),{toast:Z}=(0,w.pm)(),R=t.super_admin||t.role?.evals==="read"||t.role?.evals==="write",q=t.super_admin||t.role?.evals==="write",[z,{loading:S}]=(0,n.D)(v.B4,{onCompleted:e=>{Z({title:"Eval run started",description:`Scheduled ${e.runEval.count} test cases to run.`})},onError:e=>{Z({title:"Failed to start eval run",description:e.message,variant:"destructive"})}}),{loading:T,data:P}=(0,d.aM)(v.iA,{variables:{id:_},skip:!_}),{loading:$,data:M,refetch:A}=(0,d.aM)(v.i9,{variables:{page:1,limit:100,filters:[{eval_set_id:{eq:_}}]},skip:!_,pollInterval:1e4});if(!R)return r.jsx("div",{className:"flex h-full flex-1 flex-col space-y-8 p-8",children:(0,r.jsxs)(p.bZ,{variant:"destructive",children:[r.jsx(m.Z,{className:"h-4 w-4"}),r.jsx(p.X,{children:"You don't have permission to access Eval Runs. Contact your administrator to request access."})]})});if(T)return(0,r.jsxs)("div",{className:"flex h-full flex-1 flex-col space-y-8 p-8",children:[r.jsx(j.O,{className:"h-8 w-64"}),r.jsx(j.O,{className:"h-64 w-full"})]});let E=P?.eval_setById,D=M?.eval_runsPagination?.items||[];return(0,r.jsxs)("div",{className:"flex h-full flex-1 flex-col p-6 lg:p-8",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[r.jsx(f.z,{variant:"ghost",size:"icon",onClick:()=>s.push(`/evals/${_}`),children:r.jsx(x.Z,{className:"h-4 w-4"})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold tracking-tight",children:["Eval Runs for ",E?.name]}),(0,r.jsxs)("p",{className:"text-muted-foreground text-sm mt-1",children:['View and manage evaluation runs for the eval set "',E?.name,'".']})]})]}),q&&a?.workers?.enabled&&a?.workers?.redisHost&&(0,r.jsxs)(f.z,{onClick:()=>C(!0),children:[r.jsx(u.Z,{className:"mr-2 h-4 w-4"}),"New Eval Run"]})]}),(!a?.workers?.enabled||!a?.workers?.redisHost)&&(0,r.jsxs)(p.bZ,{variant:"destructive",className:"mb-6",children:[r.jsx(h.Z,{className:"h-4 w-4"}),r.jsx(p.X,{children:"Workers are not enabled. You can view existing eval runs but cannot create or run new evaluations. Configure Redis to enable running eval runs."})]}),(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)(g.Zb,{children:[(0,r.jsxs)(g.Ol,{className:"pb-4",children:[r.jsx(g.ll,{children:"Evaluation Run Results"}),r.jsx(g.SZ,{children:"Matrix view of test case scores across eval runs. Click on a completed cell to view detailed results."})]}),r.jsx(g.aY,{children:$?r.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((e,s)=>r.jsx(j.O,{className:"h-16 w-full"},s))}):0===D.length?(0,r.jsxs)("div",{className:"text-center py-12 text-muted-foreground",children:["No eval runs yet. ",q&&a?.workers?.enabled&&a?.workers?.redisHost&&"Click 'New Eval Run' to create one."]}):r.jsx(N.v,{evalRuns:D,evalSet:E,canWrite:q,onRefetch:A})})]}),a?.workers?.enabled&&a?.workers?.redisHost&&D.length>0&&r.jsx(y.R,{queueName:"eval_runs",nameGenerator:e=>`Eval Run ${e.data?.eval_run_name||e.data?.eval_run_id} - Test Case ${e.data?.test_case_name||e.data?.test_case_id}`,retryJob:e=>{e.data?.test_case_id&&e.data?.eval_run_id&&z({variables:{id:e.data?.eval_run_id,test_case_ids:[e.data?.test_case_id]}})}})]}),r.jsx(b.n,{eval_set_id:_,open:k,onOpenChange:C,onCreateSuccess:()=>{A()}})]})}a()}catch(e){a(e)}})},51602:(e,s,t)=>{"use strict";t.d(s,{d:()=>u,f:()=>h});var a=t(10326),r=t(90772),l=t(77863),i=t(32933),n=t(43810),d=t(17577),c=t(54390),o=t(35057),m=t(48818);let x=(0,d.createContext)({code:""}),u=({code:e,language:s,showLineNumbers:t=!1,className:r,children:i,...n})=>a.jsx(x.Provider,{value:{code:e},children:a.jsx("div",{className:(0,l.cn)("relative w-full overflow-hidden rounded-md border bg-background text-foreground",r),...n,children:(0,a.jsxs)("div",{className:"relative",children:[a.jsx(c.Z,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:s,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:o.Z,children:e}),a.jsx(c.Z,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:s,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:t,style:m.Z,children:e}),i&&a.jsx("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:i})]})})}),h=({onCopy:e,onError:s,timeout:t=2e3,children:c,className:o,...m})=>{let[u,h]=(0,d.useState)(!1),{code:p}=(0,d.useContext)(x),f=async()=>{s?.(Error("Clipboard API not available"))},g=u?i.Z:n.Z;return a.jsx(r.z,{className:(0,l.cn)("shrink-0",o),onClick:f,size:"icon",variant:"ghost",...m,children:c??a.jsx(g,{size:14})})}},36931:(e,s,t)=>{"use strict";t.d(s,{H:()=>u});var a=t(10326),r=t(77863),l=t(17577),i=t(16476),n=t(79283),d=t(70285),c=t(7833),o=t(51602);t(32289);let m=(0,t(39499).Z)(i.UG),x={ol:({node:e,children:s,className:t,...l})=>a.jsx("ol",{className:(0,r.cn)("ml-4 list-outside list-decimal",t),...l,children:s}),li:({node:e,children:s,className:t,...l})=>a.jsx("li",{className:(0,r.cn)("py-1",t),...l,children:s}),ul:({node:e,children:s,className:t,...l})=>a.jsx("ul",{className:(0,r.cn)("ml-4 list-outside list-disc",t),...l,children:s}),hr:({node:e,className:s,...t})=>a.jsx("hr",{className:(0,r.cn)("my-6 border-border",s),...t}),strong:({node:e,children:s,className:t,...l})=>a.jsx("span",{className:(0,r.cn)("font-semibold",t),...l,children:s}),a:({node:e,children:s,className:t,...l})=>a.jsx("a",{className:(0,r.cn)("font-medium text-primary underline",t),rel:"noreferrer",target:"_blank",...l,children:s}),h1:({node:e,children:s,className:t,...l})=>a.jsx("h1",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-3xl",t),...l,children:s}),h2:({node:e,children:s,className:t,...l})=>a.jsx("h2",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-2xl",t),...l,children:s}),h3:({node:e,children:s,className:t,...l})=>a.jsx("h3",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-xl",t),...l,children:s}),h4:({node:e,children:s,className:t,...l})=>a.jsx("h4",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-lg",t),...l,children:s}),h5:({node:e,children:s,className:t,...l})=>a.jsx("h5",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-base",t),...l,children:s}),h6:({node:e,children:s,className:t,...l})=>a.jsx("h6",{className:(0,r.cn)("mt-6 mb-2 font-semibold text-sm",t),...l,children:s}),table:({node:e,children:s,className:t,...l})=>a.jsx("div",{className:"my-4 overflow-x-auto",children:a.jsx("table",{className:(0,r.cn)("w-full border-collapse border border-border",t),...l,children:s})}),thead:({node:e,children:s,className:t,...l})=>a.jsx("thead",{className:(0,r.cn)("bg-muted/50",t),...l,children:s}),tbody:({node:e,children:s,className:t,...l})=>a.jsx("tbody",{className:(0,r.cn)("divide-y divide-border",t),...l,children:s}),tr:({node:e,children:s,className:t,...l})=>a.jsx("tr",{className:(0,r.cn)("border-border border-b",t),...l,children:s}),th:({node:e,children:s,className:t,...l})=>a.jsx("th",{className:(0,r.cn)("px-4 py-2 text-left font-semibold text-sm",t),...l,children:s}),td:({node:e,children:s,className:t,...l})=>a.jsx("td",{className:(0,r.cn)("px-4 py-2 text-sm",t),...l,children:s}),blockquote:({node:e,children:s,className:t,...l})=>a.jsx("blockquote",{className:(0,r.cn)("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),...l,children:s}),code:({node:e,className:s,...t})=>e?.position?.start.line!==e?.position?.end.line?a.jsx("code",{className:s,...t}):a.jsx("code",{className:(0,r.cn)("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",s),...t}),pre:({node:e,className:s,children:t})=>{let i="javascript";"string"==typeof e?.properties?.className&&(i=e.properties.className.replace("language-",""));let n="";return(0,l.isValidElement)(t)&&t.props&&"string"==typeof t.props.children?n=t.props.children:"string"==typeof t&&(n=t),a.jsx(o.d,{className:(0,r.cn)("my-4 h-auto",s),code:n,language:i,children:a.jsx(o.f,{onCopy:()=>console.log("Copied code to clipboard"),onError:()=>console.error("Failed to copy code to clipboard")})})}},u=(0,l.memo)(({className:e,options:s,children:t,allowedImagePrefixes:l,allowedLinkPrefixes:i,defaultOrigin:o,parseIncompleteMarkdown:u=!0,...h})=>{let p="string"==typeof t&&u?function(e){if(!e||"string"!=typeof e)return e;let s=e,t=s.match(/(!?\[)([^\]]*?)$/);if(t){let e=s.lastIndexOf(t[1]);s=s.substring(0,e)}if(s.match(/(\*\*)([^*]*?)$/)&&(s.match(/\*\*/g)||[]).length%2==1&&(s=`${s}**`),s.match(/(__)([^_]*?)$/)&&(s.match(/__/g)||[]).length%2==1&&(s=`${s}__`),s.match(/(\*)([^*]*?)$/)&&s.split("").reduce((e,t,a)=>{if("*"===t){let t=s[a-1],r=s[a+1];if("*"!==t&&"*"!==r)return e+1}return e},0)%2==1&&(s=`${s}*`),s.match(/(_)([^_]*?)$/)&&s.split("").reduce((e,t,a)=>{if("_"===t){let t=s[a-1],r=s[a+1];if("_"!==t&&"_"!==r)return e+1}return e},0)%2==1&&(s=`${s}_`),s.match(/(`)([^`]*?)$/)&&(s.includes("```"),(s.match(/```[\s\S]*?```/g)||[]).length,(s.match(/```/g)||[]).length%2!=1)){let e=0;for(let t=0;t<s.length;t++)if("`"===s[t]){let a="```"===s.substring(t,t+3),r=t>0&&"```"===s.substring(t-1,t+2),l=t>1&&"```"===s.substring(t-2,t+1);!(a||r||l)&&e++}e%2==1&&(s=`${s}\``)}return s.match(/(~~)([^~]*?)$/)&&(s.match(/~~/g)||[]).length%2==1&&(s=`${s}~~`),s}(t):t;return a.jsx("div",{className:(0,r.cn)("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...h,children:a.jsx(m,{allowedImagePrefixes:l??["*"],allowedLinkPrefixes:i??["*"],components:x,defaultOrigin:o,rehypePlugins:[n.Z],remarkPlugins:[d.Z,c.Z],...s,children:p})})},(e,s)=>e.children===s.children);u.displayName="Response"},57004:(e,s,t)=>{"use strict";t.a(e,async(e,a)=>{try{t.d(s,{G:()=>g});var r=t(10326),l=t(48644),i=t(93801),n=t(45747),d=t(17577),c=t(94966),o=t(12533),m=t(12428),x=t(47355),u=t(62288),h=t(34789),p=t(77863),f=e([l,i,n]);function g({className:e=null,code:s,language:t,slice:a=200}){let{toast:l}=(0,h.pm)(),[i,n]=(0,d.useState)(null);return(0,r.jsxs)(u.Vq,{children:[r.jsx(u.hg,{asChild:!0,children:i?.length&&r.jsx(c.Z,{className:(0,p.cn)("cursor-pointer",e),showLineNumbers:!0,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:t||"plaintext",style:x.Z,children:`${i?.slice(0,a||200)} ${s?.length>(a||200)?"...":""}`})}),r.jsx(u.cZ,{className:"sm:max-w-[800px] overflow-hidden max-h-[500px] overflow-y-scroll",children:(0,r.jsxs)(u.fK,{children:[r.jsx(u.$N,{children:"Code"}),r.jsx("div",{className:"cursor-copy",onClick:async()=>{await navigator.clipboard.writeText(i??""),l({title:"Copied to clipboard"})},children:r.jsx(c.Z,{className:(0,p.cn)(e),showLineNumbers:!0,wrapLines:!0,lineProps:{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},language:t||"plaintext",style:x.Z,children:i??""})})]})})]})}[l,i,n]=f.then?(await f)():f,c.Z.registerLanguage("json",m.Z),c.Z.registerLanguage("javascript",o.Z),a()}catch(e){a(e)}})},18615:(e,s,t)=>{"use strict";t.d(s,{J:()=>f});var a=t(10326);t(17577);var r=t(62288),l=t(34789),i=t(36931),n=t(90772),d=t(68232),c=t(77863);let o=({className:e,...s})=>a.jsx("div",{className:(0,c.cn)("flex flex-col overflow-hidden rounded-lg border bg-background shadow-sm",e),...s}),m=({className:e,...s})=>a.jsx("div",{className:(0,c.cn)("flex items-center justify-between border-b bg-muted/50 px-4 py-3",e),...s}),x=({className:e,...s})=>a.jsx("div",{className:(0,c.cn)("flex items-center gap-1",e),...s}),u=({tooltip:e,label:s,icon:t,children:r,className:l,size:i="sm",variant:o="ghost",...m})=>{let x=(0,a.jsxs)(n.z,{className:(0,c.cn)("size-8 p-0 text-muted-foreground hover:text-foreground",l),size:i,type:"button",variant:o,...m,children:[t?a.jsx(t,{className:"size-4"}):r,a.jsx("span",{className:"sr-only",children:s||e})]});return e?a.jsx(d.pn,{children:(0,a.jsxs)(d.u,{children:[a.jsx(d.aJ,{asChild:!0,children:x}),a.jsx(d._v,{children:a.jsx("p",{children:e})})]})}):x},h=({className:e,...s})=>a.jsx("div",{className:(0,c.cn)("flex-1 overflow-auto p-4",e),...s});var p=t(43810);function f({text:e,sliceLength:s}){let{toast:t}=(0,l.pm)();return(0,a.jsxs)(r.Vq,{children:[a.jsx(r.hg,{asChild:!0,children:(0,a.jsxs)("p",{className:"cursor-pointer text-sm text-base",children:[e?.slice(0,s??200),s&&e.length>s?"...":""]})}),a.jsx(r.cZ,{className:"sm:max-w-[800px] max-h-[500px] overflow-y-scroll",children:(0,a.jsxs)(o,{children:[a.jsx(m,{children:a.jsx(x,{children:a.jsx(u,{icon:p.Z,label:"Copy",tooltip:"Copy to clipboard",onClick:async()=>{await navigator.clipboard.writeText(e),t({title:"Copied to clipboard"})}})})}),a.jsx(h,{children:a.jsx(i.H,{children:e})})]})})]})}},99440:(e,s,t)=>{"use strict";t.d(s,{OL:()=>f,_T:()=>m,aR:()=>d,f$:()=>h,fY:()=>x,le:()=>g,xo:()=>u,yT:()=>p});var a=t(10326),r=t(12194),l=t(17577),i=t(90772),n=t(77863);let d=r.fC;r.xz;let c=r.h_,o=l.forwardRef(({className:e,...s},t)=>a.jsx(r.aV,{className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s,ref:t}));o.displayName=r.aV.displayName;let m=l.forwardRef(({className:e,...s},t)=>(0,a.jsxs)(c,{children:[a.jsx(o,{}),a.jsx(r.VY,{ref:t,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...s})]}));m.displayName=r.VY.displayName;let x=({className:e,...s})=>a.jsx("div",{className:(0,n.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...s});x.displayName="AlertDialogHeader";let u=({className:e,...s})=>a.jsx("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...s});u.displayName="AlertDialogFooter";let h=l.forwardRef(({className:e,...s},t)=>a.jsx(r.Dx,{ref:t,className:(0,n.cn)("text-lg font-semibold",e),...s}));h.displayName=r.Dx.displayName;let p=l.forwardRef(({className:e,...s},t)=>a.jsx(r.dk,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",e),...s}));p.displayName=r.dk.displayName;let f=l.forwardRef(({className:e,...s},t)=>a.jsx(r.aU,{ref:t,className:(0,n.cn)((0,i.d)(),e),...s}));f.displayName=r.aU.displayName;let g=l.forwardRef(({className:e,...s},t)=>a.jsx(r.$j,{ref:t,className:(0,n.cn)((0,i.d)({variant:"outline"}),"mt-2 sm:mt-0",e),...s}));g.displayName=r.$j.displayName},43273:(e,s,t)=>{"use strict";t.d(s,{Cd:()=>c,X:()=>o,bZ:()=>d});var a=t(10326),r=t(79360),l=t(17577),i=t(77863);let n=(0,r.j)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",info:"border-info/50 text-info dark:border-info [&>svg]:text-info"}},defaultVariants:{variant:"default"}}),d=l.forwardRef(({className:e,variant:s,...t},r)=>a.jsx("div",{ref:r,role:"alert",className:(0,i.cn)(n({variant:s}),e),...t}));d.displayName="Alert";let c=l.forwardRef(({className:e,...s},t)=>a.jsx("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",e),...s}));c.displayName="AlertTitle";let o=l.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",e),...s}));o.displayName="AlertDescription"},567:(e,s,t)=>{"use strict";t.d(s,{C:()=>n});var a=t(10326),r=t(79360);t(17577);var l=t(77863);let i=(0,r.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function n({className:e,variant:s,...t}){return a.jsx("div",{className:(0,l.cn)(i({variant:s}),e),...t})}},33071:(e,s,t)=>{"use strict";t.d(s,{Ol:()=>n,SZ:()=>c,Zb:()=>i,aY:()=>o,eW:()=>m,ll:()=>d});var a=t(10326),r=t(17577),l=t(77863);let i=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...s}));i.displayName="Card";let n=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",e),...s}));n.displayName="CardHeader";let d=r.forwardRef(({className:e,...s},t)=>a.jsx("h3",{ref:t,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",e),...s}));d.displayName="CardTitle";let c=r.forwardRef(({className:e,...s},t)=>a.jsx("p",{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",e),...s}));c.displayName="CardDescription";let o=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,l.cn)("p-6 pt-0",e),...s}));o.displayName="CardContent";let m=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{ref:t,className:(0,l.cn)("flex items-center p-6 pt-0",e),...s}));m.displayName="CardFooter"},53313:(e,s,t)=>{"use strict";t.d(s,{X:()=>d});var a=t(10326),r=t(13635),l=t(32933),i=t(17577),n=t(77863);let d=i.forwardRef(({className:e,...s},t)=>a.jsx(r.fC,{ref:t,className:(0,n.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...s,children:a.jsx(r.z$,{className:(0,n.cn)("flex items-center justify-center text-current"),children:a.jsx(l.Z,{className:"size-4"})})}));d.displayName=r.fC.displayName},62288:(e,s,t)=>{"use strict";t.d(s,{$N:()=>p,Be:()=>f,Vq:()=>d,cN:()=>h,cZ:()=>x,fK:()=>u,hg:()=>c});var a=t(10326),r=t(98986),l=t(94019),i=t(17577),n=t(77863);let d=r.fC,c=r.xz,o=r.h_;r.x8;let m=i.forwardRef(({className:e,...s},t)=>a.jsx(r.aV,{ref:t,className:(0,n.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s}));m.displayName=r.aV.displayName;let x=i.forwardRef(({className:e,children:s,...t},i)=>(0,a.jsxs)(o,{children:[a.jsx(m,{}),(0,a.jsxs)(r.VY,{ref:i,className:(0,n.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t,children:[s,(0,a.jsxs)(r.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[a.jsx(l.Z,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));x.displayName=r.VY.displayName;let u=({className:e,...s})=>a.jsx("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...s});u.displayName="DialogHeader";let h=({className:e,...s})=>a.jsx("div",{className:(0,n.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...s});h.displayName="DialogFooter";let p=i.forwardRef(({className:e,...s},t)=>a.jsx(r.Dx,{ref:t,className:(0,n.cn)("text-lg font-semibold leading-none tracking-tight",e),...s}));p.displayName=r.Dx.displayName;let f=i.forwardRef(({className:e,...s},t)=>a.jsx(r.dk,{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",e),...s}));f.displayName=r.dk.displayName},31048:(e,s,t)=>{"use strict";t.d(s,{_:()=>c});var a=t(10326),r=t(34478),l=t(79360),i=t(17577),n=t(77863);let d=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=i.forwardRef(({className:e,...s},t)=>a.jsx(r.f,{ref:t,className:(0,n.cn)(d(),e),...s}));c.displayName=r.f.displayName},65685:(e,s,t)=>{"use strict";t.d(s,{B:()=>d,x:()=>n});var a=t(10326),r=t(9261),l=t(17577),i=t(77863);let n=l.forwardRef(({className:e,children:s,...t},l)=>(0,a.jsxs)(r.fC,{ref:l,className:(0,i.cn)("relative overflow-hidden",e),...t,children:[a.jsx(r.l_,{className:"size-full rounded-[inherit]",children:s}),a.jsx(d,{}),a.jsx(r.Ns,{})]}));n.displayName=r.fC.displayName;let d=l.forwardRef(({className:e,orientation:s="vertical",...t},l)=>a.jsx(r.gb,{ref:l,orientation:s,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...t,children:a.jsx(r.q4,{className:"relative flex-1 rounded-full bg-border"})}));d.displayName=r.gb.displayName},34474:(e,s,t)=>{"use strict";t.d(s,{Bw:()=>p,Ph:()=>o,Ql:()=>f,i4:()=>x,ki:()=>m});var a=t(10326),r=t(55423),l=t(941),i=t(96633),n=t(32933),d=t(17577),c=t(77863);let o=r.fC;r.ZA;let m=r.B4,x=d.forwardRef(({className:e,children:s,...t},i)=>(0,a.jsxs)(r.xz,{ref:i,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...t,children:[s,a.jsx(r.JO,{asChild:!0,children:a.jsx(l.Z,{className:"size-4 opacity-50"})})]}));x.displayName=r.xz.displayName;let u=d.forwardRef(({className:e,...s},t)=>a.jsx(r.u_,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",e),...s,children:a.jsx(i.Z,{className:"size-4"})}));u.displayName=r.u_.displayName;let h=d.forwardRef(({className:e,...s},t)=>a.jsx(r.$G,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",e),...s,children:a.jsx(l.Z,{className:"size-4"})}));h.displayName=r.$G.displayName;let p=d.forwardRef(({className:e,children:s,position:t="popper",...l},i)=>a.jsx(r.h_,{children:(0,a.jsxs)(r.VY,{ref:i,className:(0,c.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===t&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...l,children:[a.jsx(u,{}),a.jsx(r.l_,{className:(0,c.cn)("p-1","popper"===t&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),a.jsx(h,{})]})}));p.displayName=r.VY.displayName,d.forwardRef(({className:e,...s},t)=>a.jsx(r.__,{ref:t,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...s})).displayName=r.__.displayName;let f=d.forwardRef(({className:e,children:s,...t},l)=>(0,a.jsxs)(r.ck,{ref:l,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[a.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(r.wU,{children:a.jsx(n.Z,{className:"size-4"})})}),a.jsx(r.eT,{children:s})]}));f.displayName=r.ck.displayName,d.forwardRef(({className:e,...s},t)=>a.jsx(r.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",e),...s})).displayName=r.Z0.displayName},15940:(e,s,t)=>{"use strict";t.d(s,{RM:()=>d,Rn:()=>x,SC:()=>c,iA:()=>i,pj:()=>m,ss:()=>o,xD:()=>n});var a=t(10326),r=t(17577),l=t(77863);let i=r.forwardRef(({className:e,...s},t)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:t,className:(0,l.cn)("w-full caption-bottom text-sm",e),...s})}));i.displayName="Table";let n=r.forwardRef(({className:e,...s},t)=>a.jsx("thead",{ref:t,className:(0,l.cn)("[&_tr]:border-b",e),...s}));n.displayName="TableHeader";let d=r.forwardRef(({className:e,...s},t)=>a.jsx("tbody",{ref:t,className:(0,l.cn)("[&_tr:last-child]:border-0",e),...s}));d.displayName="TableBody",r.forwardRef(({className:e,...s},t)=>a.jsx("tfoot",{ref:t,className:(0,l.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...s})).displayName="TableFooter";let c=r.forwardRef(({className:e,...s},t)=>a.jsx("tr",{ref:t,className:(0,l.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...s}));c.displayName="TableRow";let o=r.forwardRef(({className:e,...s},t)=>a.jsx("th",{ref:t,className:(0,l.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:w-[40px]",e),...s}));o.displayName="TableHead";let m=r.forwardRef(({className:e,...s},t)=>a.jsx("td",{ref:t,className:(0,l.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:w-[40px]",e),...s}));m.displayName="TableCell";let x=r.forwardRef(({className:e,...s},t)=>a.jsx("caption",{ref:t,className:(0,l.cn)("mt-4 text-sm text-muted-foreground",e),...s}));x.displayName="TableCaption"},87673:(e,s,t)=>{"use strict";t.d(s,{g:()=>i});var a=t(10326),r=t(17577),l=t(77863);let i=r.forwardRef(({className:e,...s},t)=>a.jsx("textarea",{className:(0,l.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:t,...s}));i.displayName="Textarea"},37202:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},11890:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},48998:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},71059:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]])},94893:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]])},83855:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},91468:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},21608:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},98091:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(76557).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},71772:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>l,dynamic:()=>r});var a=t(68570);let r=(0,a.createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx#dynamic`),l=(0,a.createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/evals/[id]/runs/page.tsx#default`)}};var s=require("../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[9276,3543,9049,590,7598,931,7344,1729,2578,2194,7544,8181,3393,1051,7944,2270],()=>t(21678));module.exports=a})();
|