@exulu/frontend 1.3.2 → 1.4.0
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 +185 -174
- 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 +1 -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 +1 -1
- 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 +5 -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 +5 -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_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/api/auth/[...nextauth]/route.js +9 -9
- package/dist/.next/server/app-paths-manifest.json +5 -5
- package/dist/.next/server/chunks/1051.js +16 -16
- package/dist/.next/server/chunks/2270.js +188 -100
- package/dist/.next/server/chunks/{8838.js → 2875.js} +1 -1
- package/dist/.next/server/chunks/2916.js +1 -1
- package/dist/.next/server/chunks/3503.js +1 -0
- package/dist/.next/server/chunks/{7544.js → 4552.js} +1 -1
- package/dist/.next/server/chunks/{3393.js → 4739.js} +1 -1
- package/dist/.next/server/chunks/5192.js +1 -1
- package/dist/.next/server/chunks/5999.js +2 -0
- package/dist/.next/server/chunks/6282.js +1 -0
- package/dist/.next/server/chunks/6623.js +1 -0
- package/dist/.next/server/chunks/7721.js +1 -0
- package/dist/.next/server/chunks/7944.js +2 -2
- package/dist/.next/server/chunks/8050.js +1 -0
- package/dist/.next/server/chunks/8206.js +1 -0
- package/dist/.next/server/chunks/8679.js +5 -0
- 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/1294-368dc8ec59054da4.js +2 -0
- package/dist/.next/static/chunks/1294-368dc8ec59054da4.js.map +1 -0
- package/dist/.next/static/chunks/{1645-e5fd10236c0183ce.js → 1645-570e014100772437.js} +1 -1
- package/dist/.next/static/chunks/{1645-e5fd10236c0183ce.js.map → 1645-570e014100772437.js.map} +1 -1
- package/dist/.next/static/chunks/1957-5867716304ecd208.js +2 -0
- package/dist/.next/static/chunks/1957-5867716304ecd208.js.map +1 -0
- package/dist/.next/static/chunks/{2293-59b4bbce0c5bd2f2.js → 2293-1681cdef5b8c0c0b.js} +1 -1
- package/dist/.next/static/chunks/{2293-59b4bbce0c5bd2f2.js.map → 2293-1681cdef5b8c0c0b.js.map} +1 -1
- package/dist/.next/static/chunks/3475-28ce4fce960656bd.js +2 -0
- package/dist/.next/static/chunks/3475-28ce4fce960656bd.js.map +1 -0
- package/dist/.next/static/chunks/3832-a5e8fc6647e2be65.js +2 -0
- package/dist/.next/static/chunks/3832-a5e8fc6647e2be65.js.map +1 -0
- package/dist/.next/static/chunks/{4386-a36fe9c65884f025.js → 4386-c7690667749bff6a.js} +1 -1
- package/dist/.next/static/chunks/{4386-a36fe9c65884f025.js.map → 4386-c7690667749bff6a.js.map} +1 -1
- package/dist/.next/static/chunks/4750-4d5c13bbc96bc19b.js +2 -0
- package/dist/.next/static/chunks/4750-4d5c13bbc96bc19b.js.map +1 -0
- package/dist/.next/static/chunks/5243-1aaa41b2cd0ea87c.js +2 -0
- package/dist/.next/static/chunks/5243-1aaa41b2cd0ea87c.js.map +1 -0
- package/dist/.next/static/chunks/5978-814d6900645d2fcc.js +2 -0
- package/dist/.next/static/chunks/5978-814d6900645d2fcc.js.map +1 -0
- package/dist/.next/static/chunks/6373-651cb258c9e2b57b.js +2 -0
- package/dist/.next/static/chunks/6373-651cb258c9e2b57b.js.map +1 -0
- package/dist/.next/static/chunks/{7564-44a20b31206685e1.js → 6545-5a1d7cf4d5ca770e.js} +21 -21
- package/dist/.next/static/chunks/6545-5a1d7cf4d5ca770e.js.map +1 -0
- package/dist/.next/static/chunks/6839-0f4cfb48058a5ab6.js +2 -0
- package/dist/.next/static/chunks/6839-0f4cfb48058a5ab6.js.map +1 -0
- package/dist/.next/static/chunks/723-94e596796cbf911d.js +2 -0
- package/dist/.next/static/chunks/723-94e596796cbf911d.js.map +1 -0
- package/dist/.next/static/chunks/8202-db2cc384c66bc1be.js +2 -0
- package/dist/.next/static/chunks/8202-db2cc384c66bc1be.js.map +1 -0
- package/dist/.next/static/chunks/8269-37dd07515eb44201.js +2 -0
- package/dist/.next/static/chunks/8269-37dd07515eb44201.js.map +1 -0
- package/dist/.next/static/chunks/8469-ba31cbd7acab5f94.js +2 -0
- package/dist/.next/static/chunks/8469-ba31cbd7acab5f94.js.map +1 -0
- package/dist/.next/static/chunks/8824-20030459012376a3.js +2 -0
- package/dist/.next/static/chunks/8824-20030459012376a3.js.map +1 -0
- package/dist/.next/static/chunks/9105-3800f721d38e2b9a.js +2 -0
- package/dist/.next/static/chunks/9105-3800f721d38e2b9a.js.map +1 -0
- package/dist/.next/static/chunks/9183-a51605ff26b92fed.js +41 -0
- package/dist/.next/static/chunks/9183-a51605ff26b92fed.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/agents/edit/[id]/page-511f168123f85285.js +2 -0
- package/dist/.next/static/chunks/app/(application)/agents/edit/[id]/page-511f168123f85285.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/agents/{page-499ac3bd1044306c.js → page-63643deabdaa6b2c.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/agents/{page-499ac3bd1044306c.js.map → page-63643deabdaa6b2c.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/{page-3807a8bc2ae87548.js → page-62c7321ba26632af.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-62c7321ba26632af.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/chat/{layout-53796525bd3e2443.js → layout-5eb1d22ddcbc0b55.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/chat/{layout-53796525bd3e2443.js.map → layout-5eb1d22ddcbc0b55.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/configuration/{page-2d8a0e2664ab9a94.js → page-8f92af5318feb84f.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/configuration/{page-2d8a0e2664ab9a94.js.map → page-8f92af5318feb84f.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/dashboard/page-00e425d942e0d769.js +2 -0
- package/dist/.next/static/chunks/app/(application)/dashboard/page-00e425d942e0d769.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-a460a56d3efac658.js +2 -0
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-a460a56d3efac658.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-bb06a9553c9ed178.js +2 -0
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-bb06a9553c9ed178.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/evals/[id]/{page-2238f1fb73d93328.js → page-ef82e92ca7d0da6c.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/evals/[id]/{page-2238f1fb73d93328.js.map → page-ef82e92ca7d0da6c.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/evals/[id]/runs/page-6622dd1b22a7885d.js +2 -0
- package/dist/.next/static/chunks/app/(application)/evals/[id]/runs/page-6622dd1b22a7885d.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/evals/cases/{page-ea5faf58b368feae.js → page-6246be9d6592d1d3.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/evals/cases/{page-ea5faf58b368feae.js.map → page-6246be9d6592d1d3.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/evals/{page-f79e1a90384ba618.js → page-b1e1fd7dba1e675f.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/evals/{page-f79e1a90384ba618.js.map → page-b1e1fd7dba1e675f.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/jobs/{page-e6f02a338bec4806.js → page-a96441a0bc654d68.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/jobs/{page-e6f02a338bec4806.js.map → page-a96441a0bc654d68.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/keys/{page-59ee4e0281131cbc.js → page-163aadfe9ad0d794.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/keys/{page-59ee4e0281131cbc.js.map → page-163aadfe9ad0d794.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/{layout-73d93420d0c6661c.js → layout-694c53aca85ef437.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/{layout-73d93420d0c6661c.js.map → layout-694c53aca85ef437.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/projects/[project]/page-e69828fde85c50af.js +2 -0
- package/dist/.next/static/chunks/app/(application)/projects/[project]/page-e69828fde85c50af.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/projects/{layout-f73ad7daf4825f1b.js → layout-d7642b25bf6d33b3.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/projects/{layout-f73ad7daf4825f1b.js.map → layout-d7642b25bf6d33b3.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/roles/page-5d5e5142f0997122.js +2 -0
- package/dist/.next/static/chunks/app/(application)/roles/page-5d5e5142f0997122.js.map +1 -0
- package/dist/.next/static/chunks/app/(application)/users/{page-e0a04fda52138aa0.js → page-b862cb199fd72525.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/users/{page-e0a04fda52138aa0.js.map → page-b862cb199fd72525.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/create/{page-6c6076f3f253190d.js → page-d79d5c1c1ecabdb5.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/create/{page-6c6076f3f253190d.js.map → page-d79d5c1c1ecabdb5.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/edit/[variable_id]/{page-a3fa477fead5609a.js → page-72cf3aa95776ab96.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/edit/[variable_id]/{page-a3fa477fead5609a.js.map → page-72cf3aa95776ab96.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/{page-ddeff54a8b19bdbe.js → page-67864b471b48c950.js} +2 -2
- package/dist/.next/static/chunks/app/(application)/variables/{page-ddeff54a8b19bdbe.js.map → page-67864b471b48c950.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/usage/[variable_id]/{page-ed6d136e7ee3a591.js → page-208b4c9cc64abf2e.js} +1 -1
- package/dist/.next/static/chunks/app/(application)/variables/usage/[variable_id]/{page-ed6d136e7ee3a591.js.map → page-208b4c9cc64abf2e.js.map} +1 -1
- package/dist/.next/static/chunks/app/(application)/workflows/page-5b1ffc7c5012fdf6.js +2 -0
- package/dist/.next/static/chunks/app/(application)/workflows/page-5b1ffc7c5012fdf6.js.map +1 -0
- package/dist/.next/static/css/006966ab2edd0ebc.css +4 -0
- package/dist/.next/static/css/006966ab2edd0ebc.css.map +1 -0
- package/dist/.next/static/css/e3f2a16ab7676b05.css.map +1 -1
- package/dist/package.json +4 -1
- package/package.json +1 -1
- package/dist/.next/server/chunks/3743.js +0 -1
- package/dist/.next/server/chunks/4375.js +0 -1
- package/dist/.next/server/chunks/4680.js +0 -1
- package/dist/.next/server/chunks/7203.js +0 -5
- package/dist/.next/server/chunks/7598.js +0 -5
- package/dist/.next/server/chunks/8806.js +0 -1
- package/dist/.next/static/chunks/1957-670ddf66742d95f2.js +0 -2
- package/dist/.next/static/chunks/1957-670ddf66742d95f2.js.map +0 -1
- package/dist/.next/static/chunks/3397-5a704b2e12e9e883.js +0 -2
- package/dist/.next/static/chunks/3397-5a704b2e12e9e883.js.map +0 -1
- package/dist/.next/static/chunks/3832-10b779e2f89f162f.js +0 -2
- package/dist/.next/static/chunks/3832-10b779e2f89f162f.js.map +0 -1
- package/dist/.next/static/chunks/3998-c1c5bec61ce07357.js +0 -2
- package/dist/.next/static/chunks/3998-c1c5bec61ce07357.js.map +0 -1
- package/dist/.next/static/chunks/428-61741966c36f4f72.js +0 -2
- package/dist/.next/static/chunks/428-61741966c36f4f72.js.map +0 -1
- package/dist/.next/static/chunks/5585-4f0c084850210a82.js +0 -2
- package/dist/.next/static/chunks/5585-4f0c084850210a82.js.map +0 -1
- package/dist/.next/static/chunks/5615-042f927b657e6db1.js +0 -41
- package/dist/.next/static/chunks/5615-042f927b657e6db1.js.map +0 -1
- package/dist/.next/static/chunks/5978-f3b8475a2d9f9299.js +0 -2
- package/dist/.next/static/chunks/5978-f3b8475a2d9f9299.js.map +0 -1
- package/dist/.next/static/chunks/6242-c1c2f1479529e9d4.js +0 -2
- package/dist/.next/static/chunks/6242-c1c2f1479529e9d4.js.map +0 -1
- package/dist/.next/static/chunks/6373-fc4799cc7a13474a.js +0 -2
- package/dist/.next/static/chunks/6373-fc4799cc7a13474a.js.map +0 -1
- package/dist/.next/static/chunks/7398-c6de1642586049cd.js +0 -2
- package/dist/.next/static/chunks/7398-c6de1642586049cd.js.map +0 -1
- package/dist/.next/static/chunks/7564-44a20b31206685e1.js.map +0 -1
- package/dist/.next/static/chunks/79-1d568f3c4cd45bd4.js +0 -2
- package/dist/.next/static/chunks/79-1d568f3c4cd45bd4.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/agents/edit/[id]/page-b66390eb4a95ac1a.js +0 -2
- package/dist/.next/static/chunks/app/(application)/agents/edit/[id]/page-b66390eb4a95ac1a.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/chat/[agent]/[session]/page-3807a8bc2ae87548.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/dashboard/page-85d3f8d2bd28ae4b.js +0 -2
- package/dist/.next/static/chunks/app/(application)/dashboard/page-85d3f8d2bd28ae4b.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-822dad4cb57f62e2.js +0 -2
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/layout-822dad4cb57f62e2.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-3efd7701534078ea.js +0 -2
- package/dist/.next/static/chunks/app/(application)/data/[[...query]]/page-3efd7701534078ea.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/evals/[id]/runs/page-b6a3cb8435be3ade.js +0 -2
- package/dist/.next/static/chunks/app/(application)/evals/[id]/runs/page-b6a3cb8435be3ade.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/projects/[project]/page-19382bb263f85fda.js +0 -2
- package/dist/.next/static/chunks/app/(application)/projects/[project]/page-19382bb263f85fda.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/roles/page-acd9ef282bc53557.js +0 -2
- package/dist/.next/static/chunks/app/(application)/roles/page-acd9ef282bc53557.js.map +0 -1
- package/dist/.next/static/chunks/app/(application)/workflows/page-38488c44d89b32f4.js +0 -2
- package/dist/.next/static/chunks/app/(application)/workflows/page-38488c44d89b32f4.js.map +0 -1
- package/dist/.next/static/css/a7092ddec8ffd4fb.css +0 -4
- package/dist/.next/static/css/a7092ddec8ffd4fb.css.map +0 -1
- /package/dist/.next/static/{HHwzgh0RLIMeodnSs4vIv → soJPoIxCmlpJ75t9n-Q9V}/_buildManifest.js +0 -0
- /package/dist/.next/static/{HHwzgh0RLIMeodnSs4vIv → soJPoIxCmlpJ75t9n-Q9V}/_ssgManifest.js +0 -0
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
5:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"}
|
|
5
5
|
6:{"display":"inline-block"}
|
|
6
6
|
7:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0}
|
|
7
|
-
0:["
|
|
7
|
+
0:["soJPoIxCmlpJ75t9n-Q9V",[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["/_not-found",{"children":["__PAGE__",{},[["$L1",[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","/_not-found","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,["$","html",null,{"children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$4","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$5","children":"404"}],["$","div",null,{"style":"$6","children":["$","h2",null,{"style":"$7","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]],null],null],["$L8",["$","meta",null,{"name":"robots","content":"noindex"}]]]]]
|
|
8
8
|
8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]]
|
|
9
9
|
1:null
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";(()=>{var e={};e.id=4912,e.ids=[4912],e.modules={72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},27790:e=>{e.exports=require("assert")},78893:e=>{e.exports=require("buffer")},61282:e=>{e.exports=require("child_process")},84770:e=>{e.exports=require("crypto")},80665:e=>{e.exports=require("dns")},17702:e=>{e.exports=require("events")},92048:e=>{e.exports=require("fs")},32615:e=>{e.exports=require("http")},35240:e=>{e.exports=require("https")},98216:e=>{e.exports=require("net")},19801:e=>{e.exports=require("os")},55315:e=>{e.exports=require("path")},86624:e=>{e.exports=require("querystring")},76162:e=>{e.exports=require("stream")},82452:e=>{e.exports=require("tls")},17360:e=>{e.exports=require("url")},21764:e=>{e.exports=require("util")},71568:e=>{e.exports=require("zlib")},8678:e=>{e.exports=import("pg")},91276:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{originalPathname:()=>
|
|
2
|
-
Sign in to ${
|
|
1
|
+
"use strict";(()=>{var e={};e.id=4912,e.ids=[4912],e.modules={72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},27790:e=>{e.exports=require("assert")},78893:e=>{e.exports=require("buffer")},61282:e=>{e.exports=require("child_process")},84770:e=>{e.exports=require("crypto")},80665:e=>{e.exports=require("dns")},17702:e=>{e.exports=require("events")},92048:e=>{e.exports=require("fs")},32615:e=>{e.exports=require("http")},35240:e=>{e.exports=require("https")},98216:e=>{e.exports=require("net")},19801:e=>{e.exports=require("os")},55315:e=>{e.exports=require("path")},86624:e=>{e.exports=require("querystring")},76162:e=>{e.exports=require("stream")},82452:e=>{e.exports=require("tls")},17360:e=>{e.exports=require("url")},21764:e=>{e.exports=require("util")},71568:e=>{e.exports=require("zlib")},8678:e=>{e.exports=import("pg")},91276:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>c,requestAsyncStorage:()=>p,routeModule:()=>u,serverHooks:()=>E,staticGenerationAsyncStorage:()=>d});var o=r(49303),a=r(88716),n=r(60670),i=r(19834),l=e([i]);i=(l.then?(await l)():l)[0];let u=new o.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/auth/[...nextauth]/route",pathname:"/api/auth/[...nextauth]",filename:"route",bundlePath:"app/api/auth/[...nextauth]/route"},resolvedPagePath:"/home/runner/work/exulu-frontend/exulu-frontend/app/api/auth/[...nextauth]/route.ts",nextConfigOutput:"standalone",userland:i}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:E}=u,g="/api/auth/[...nextauth]/route";function c(){return(0,n.patchFetch)({serverHooks:E,staticGenerationAsyncStorage:d})}s()}catch(e){s(e)}})},19579:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{b:()=>x,d:()=>w});var o=r(14029),a=r(53797),n=r(55245),i=r(84770),l=r(1203),c=r(8678),u=r(98691),p=r(35515),d=r(30849),E=r(77234),g=e([c]);c=(g.then?(await g)():g)[0];let m=async e=>{let t=process.env.NEXTAUTH_SECRET,r=await (0,p.nO)({k:t,alg:"HS256",kty:"oct"});return await new d.N(e).setProtectedHeader({alg:"HS256"}).setIssuedAt().setExpirationTime("365d").sign(r)},w=new c.Pool({host:process.env.POSTGRES_DB_HOST,user:process.env.POSTGRES_DB_USER,port:parseInt(process.env.POSTGRES_DB_PORT||"5432",10),password:process.env.POSTGRES_DB_PASSWORD,database:process.env.POSTGRES_DB_NAME||"exulu",min:2,max:20,acquireTimeoutMillis:3e4,createTimeoutMillis:3e4,idleTimeoutMillis:3e4,reapIntervalMillis:1e3,createRetryIntervalMillis:200,connectionTimeoutMillis:1e4}),h=[(0,a.Z)({name:"Credentials",credentials:{email:{label:"Email",type:"email"},password:{label:"Password",type:"password"}},authorize:async e=>{let t=await w.connect();try{if(!e?.email||!e?.password)return null;let r=await t.query("SELECT * FROM users WHERE email = $1",[e.email]);if(console.log("[NEXT AUTH] authorize res rows count:",r.rows.length),console.log("[NEXT AUTH] Full user object:",JSON.stringify(r.rows[0],null,2)),!r?.rows?.length)return null;for(let s of r.rows){let r=await u.ZP.compare(e.password,s.password);if(console.log("[NEXT AUTH] isMatch",r),r)return await t.query("UPDATE users SET last_used = $1 WHERE email = $2",[new Date,s.email]),s}}finally{t.release()}}})];process.env.EMAIL_SERVER_HOST&&h.push((0,o.Z)({async sendVerificationRequest({identifier:e,token:t,url:r,provider:{server:s,from:o}}){var a;let{host:i}=new URL(r),l=(0,n.createTransport)(s);await l.sendMail({to:e,from:o,subject:`Sign in to ${i}`,text:(a={token:t,host:i},`
|
|
2
|
+
Sign in to ${a.host}
|
|
3
3
|
|
|
4
|
-
Sign in code: ${
|
|
4
|
+
Sign in code: ${a.token}
|
|
5
5
|
|
|
6
6
|
Keep in mind that this code will expire after 3 minutes. If you did not request this email you can safely ignore it.
|
|
7
|
-
`),html:function(e){let{token:t,host:r}=e,s=r.replace(/\\./g,"​."),
|
|
8
|
-
<body style="background: ${
|
|
7
|
+
`),html:function(e){let{token:t,host:r}=e,s=r.replace(/\\./g,"​."),o={background:"#f9f9f9",text:"#444",mainBackground:"#fff"};return`
|
|
8
|
+
<body style="background: ${o.background};">
|
|
9
9
|
<table width="100%" border="0" cellspacing="20" cellpadding="0"
|
|
10
|
-
style="background: ${
|
|
10
|
+
style="background: ${o.mainBackground}; max-width: 600px; margin: auto; border-radius: 10px;">
|
|
11
11
|
<tr>
|
|
12
12
|
<td align="center"
|
|
13
|
-
style="padding: 10px 0px; font-size: 22px; font-family: Helvetica, Arial, sans-serif; color: ${
|
|
13
|
+
style="padding: 10px 0px; font-size: 22px; font-family: Helvetica, Arial, sans-serif; color: ${o.text};">
|
|
14
14
|
Sign in to <strong>${s}</strong>
|
|
15
15
|
</td>
|
|
16
16
|
</tr>
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
</tr>
|
|
26
26
|
<tr>
|
|
27
27
|
<td align="center"
|
|
28
|
-
style="padding: 0px 0px 10px 0px; font-size: 16px; line-height: 22px; font-family: Helvetica, Arial, sans-serif; color: ${
|
|
28
|
+
style="padding: 0px 0px 10px 0px; font-size: 16px; line-height: 22px; font-family: Helvetica, Arial, sans-serif; color: ${o.text};">
|
|
29
29
|
Keep in mind that this code will expire after <strong><em>3 minutes</em></strong>. If you did not request this email you can safely ignore it.
|
|
30
30
|
</td>
|
|
31
31
|
</tr>
|
|
32
32
|
</table>
|
|
33
33
|
</body>
|
|
34
|
-
`}({token:t,host:i})})},generateVerificationToken:async()=>(0,i.randomInt)(1e5,999999).toString(),maxAge:180,server:{host:process.env.EMAIL_SERVER_HOST,port:parseInt(process.env.EMAIL_SERVER_PORT,10),auth:{user:process.env.EMAIL_SERVER_USER,pass:process.env.EMAIL_SERVER_PASSWORD}},from:process.env.EMAIL_FROM})),process.env.GOOGLE_CLIENT_ID&&process.env.GOOGLE_CLIENT_SECRET&&h.push((0,
|
|
34
|
+
`}({token:t,host:i})})},generateVerificationToken:async()=>(0,i.randomInt)(1e5,999999).toString(),maxAge:180,server:{host:process.env.EMAIL_SERVER_HOST,port:parseInt(process.env.EMAIL_SERVER_PORT,10),auth:{user:process.env.EMAIL_SERVER_USER,pass:process.env.EMAIL_SERVER_PASSWORD}},from:process.env.EMAIL_FROM})),process.env.GOOGLE_CLIENT_ID&&process.env.GOOGLE_CLIENT_SECRET&&h.push((0,E.Z)({clientId:process.env.GOOGLE_CLIENT_ID,clientSecret:process.env.GOOGLE_CLIENT_SECRET,authorization:{params:{access_type:"offline",response_type:"code",scope:"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/directory.readonly https://www.googleapis.com/auth/user.emails.read https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.user.readonly https://www.googleapis.com/auth/userinfo.email openid"}}}));let x=async()=>({pages:{signIn:"/login"},adapter:(0,l.Z)(w),session:{strategy:"jwt"},jwt:{secret:process.env.NEXTAUTH_SECRET},providers:h,callbacks:{async signIn({account:e,profile:t,user:r}){let s=await w.connect();try{let o=r.email;if(console.log("[EXULU] Sign in callback",e,t,r),e?.provider==="google"&&!(o=t?.email))return console.error("[EXULU] Google auth failed, no email in profile."),s.release(),!1;if(console.log("[EXULU] ALLOWED_EMAIL_DOMAINS",process.env.ALLOWED_EMAIL_DOMAINS),process.env.ALLOWED_EMAIL_DOMAINS){let e=process.env.ALLOWED_EMAIL_DOMAINS.split(",");if(e.push("exulu.com"),e.push("qventu.com"),!e.some(e=>o.endsWith(`@${e}`)))return s.release(),!1}let a=await s.query("SELECT * FROM users WHERE email = $1",[o]),n=a?.rows[0];if(console.log("[EXULU] Sign in callback user query result",n),n&&await s.query("UPDATE users SET last_used = $1 WHERE email = $2",[new Date,o]),!n&&e?.provider==="google"){let e=t?.given_name||"",r=await s.query("SELECT * FROM roles WHERE name = $1",["default"]),a=r?.rows[0],i=await s.query('INSERT INTO users ("email", "name", "createdAt", "updatedAt", "emailVerified", "last_used", "type", "super_admin", "role") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING *',[o,e,new Date,new Date,new Date,new Date,"user",!1,a?.id]);n=i?.rows[0],console.log("[EXULU] Sign in callback new user query result",n)}if(n){if(e?.provider==="google"){console.log("[EXULU] Checking for existing account (provider account id: ",e.providerAccountId);let t=(await s.query('SELECT * FROM accounts WHERE provider = $1 AND "providerAccountId" = $2',["google",e.providerAccountId])).rows[0];console.log("[EXULU] Existing account query result",t),t?await s.query('UPDATE accounts SET access_token = $1, refresh_token = $2, expires_at = $3, id_token = $4, scope = $5, session_state = $6, token_type = $7, "userId" = $8 WHERE id = $9',[e.access_token,e.refresh_token,e.expires_at,e.id_token,e.scope,e.session_state,e.token_type,n.id,t.id]):await s.query('INSERT INTO accounts ("provider", "providerAccountId", "access_token", "refresh_token", "expires_at", "id_token", "scope", "session_state", "token_type", "userId", "type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)',["google",e.providerAccountId,e.access_token,e.refresh_token,e.expires_at,e.id_token,e.scope,e.session_state,e.token_type,n.id,"oauth"])}return s.release(),!0}return s.release(),!1}catch(e){return console.error("[EXULU] Sign in callback error",e),s.release(),!1}},async jwt({token:e,user:t}){e.uid=e.sub??"nosub";let r=await m({id:t?t.id:e.sub,email:t?t.email:e.email});return e.jwt=r,e},session:async({session:e,token:t})=>(t&&e.user&&(e.user.id=t.id,e.user.jwt=t.jwt,e.user.email=t.email),e)},secret:process.env.NEXTAUTH_SECRET});s()}catch(e){s(e)}})},19834:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{GET:()=>l,POST:()=>l,dynamic:()=>c});var o=r(75571),a=r.n(o),n=r(19579),i=e([n]);n=(i.then?(await i)():i)[0];let c="force-dynamic";async function l(e,t){let r=await (0,n.b)();return await a()(e,t,r)}s()}catch(e){s(e)}})},49303:(e,t,r)=>{e.exports=r(30517)}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9276,3543],()=>r(91276));module.exports=s})();
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
"/(application)/roles/page": "app/(application)/roles/page.js",
|
|
9
9
|
"/(application)/agents/edit/[id]/page": "app/(application)/agents/edit/[id]/page.js",
|
|
10
10
|
"/(application)/agents/page": "app/(application)/agents/page.js",
|
|
11
|
+
"/(application)/evals/[id]/runs/page": "app/(application)/evals/[id]/runs/page.js",
|
|
11
12
|
"/(application)/dashboard/page": "app/(application)/dashboard/page.js",
|
|
12
13
|
"/(application)/evals/cases/page": "app/(application)/evals/cases/page.js",
|
|
13
|
-
"/(application)/evals/page": "app/(application)/evals/page.js",
|
|
14
|
-
"/(application)/jobs/page": "app/(application)/jobs/page.js",
|
|
15
14
|
"/(application)/explorer/page": "app/(application)/explorer/page.js",
|
|
15
|
+
"/(application)/jobs/page": "app/(application)/jobs/page.js",
|
|
16
|
+
"/(application)/evals/page": "app/(application)/evals/page.js",
|
|
16
17
|
"/(application)/page": "app/(application)/page.js",
|
|
17
|
-
"/(application)/evals/[id]/runs/page": "app/(application)/evals/[id]/runs/page.js",
|
|
18
|
-
"/(application)/evals/[id]/page": "app/(application)/evals/[id]/page.js",
|
|
19
18
|
"/(application)/users/page": "app/(application)/users/page.js",
|
|
19
|
+
"/(application)/evals/[id]/page": "app/(application)/evals/[id]/page.js",
|
|
20
20
|
"/(application)/variables/page": "app/(application)/variables/page.js",
|
|
21
21
|
"/(application)/workflows/page": "app/(application)/workflows/page.js",
|
|
22
|
-
"/(application)/variables/create/page": "app/(application)/variables/create/page.js",
|
|
23
22
|
"/(authentication)/login/page": "app/(authentication)/login/page.js",
|
|
23
|
+
"/(application)/variables/create/page": "app/(application)/variables/create/page.js",
|
|
24
24
|
"/(application)/variables/edit/[variable_id]/page": "app/(application)/variables/edit/[variable_id]/page.js",
|
|
25
25
|
"/(application)/variables/usage/[variable_id]/page": "app/(application)/variables/usage/[variable_id]/page.js",
|
|
26
26
|
"/(application)/chat/page": "app/(application)/chat/page.js",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
exports.id=1051,exports.ids=[1051],exports.modules={65534:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,12994,23)),Promise.resolve().then(r.t.bind(r,96114,23)),Promise.resolve().then(r.t.bind(r,9727,23)),Promise.resolve().then(r.t.bind(r,79671,23)),Promise.resolve().then(r.t.bind(r,41868,23)),Promise.resolve().then(r.t.bind(r,84759,23))},75983:(e,t,r)=>{"use strict";r.d(t,{TanstackQueryClientProvider:()=>i});var s=r(10326),o=r(22852),n=r(44976);let a=new o.S,i=({children:e})=>s.jsx(n.aH,{client:a,children:e})},30463:(e,t,r)=>{"use strict";r.d(t,{ConfigContextProvider:()=>n,E:()=>o});var s=r(10326);let o=(0,r(17577).createContext)(null);function n({children:e,config:t}){if(console.log("[EXULU] Config: ",t),!t)throw Error("Config not found");return s.jsx(o.Provider,{value:t,children:e})}},2424:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(10326),o=r(30463),n=r(17577);let a=({width:e=64,height:t=32,className:r="",alt:a="Logo"})=>{let i=(0,n.useContext)(o.E);return(0,s.jsxs)(s.Fragment,{children:[s.jsx("img",{src:i?.backend+"/logo_dark.png",alt:a,width:e,height:t,className:r+"hidden dark:block"}),s.jsx("img",{src:i?.backend+"/logo_light.png",alt:a,width:e,height:t,className:r+"block dark:hidden"})]})}},15813:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>n});var s=r(10326),o=r(3574);function n({children:e,...t}){return s.jsx(o.f,{...t,defaultTheme:"dark",children:e})}r(17577)},90772:(e,t,r)=>{"use strict";r.d(t,{d:()=>l,z:()=>d});var s=r(10326),o=r(34214),n=r(79360),a=r(17577),i=r(77863);let l=(0,n.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...a},d)=>{let c=n?o.g7:"button";return s.jsx(c,{className:(0,i.cn)(l({variant:t,size:r,className:e})),ref:d,...a})});d.displayName="Button"},54432:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var s=r(10326),o=r(17577),n=r(77863);let a=o.forwardRef(({className:e,type:t,...r},o)=>s.jsx("input",{type:t,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium 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:o,...r}));a.displayName="Input"},77083:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>h});var s=r(10326),o=r(10321),n=r(79360),a=r(94019),i=r(17577),l=r(77863);let d=o.zt,c=i.forwardRef(({className:e,...t},r)=>s.jsx(o.l_,{ref:r,className:(0,l.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));c.displayName=o.l_.displayName;let u=(0,n.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),p=i.forwardRef(({className:e,variant:t,...r},n)=>s.jsx(o.fC,{ref:n,className:(0,l.cn)(u({variant:t}),e),...r}));p.displayName=o.fC.displayName,i.forwardRef(({className:e,...t},r)=>s.jsx(o.aU,{ref:r,className:(0,l.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t})).displayName=o.aU.displayName;let f=i.forwardRef(({className:e,...t},r)=>s.jsx(o.x8,{ref:r,className:(0,l.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(a.Z,{className:"size-4"})}));f.displayName=o.x8.displayName;let g=i.forwardRef(({className:e,...t},r)=>s.jsx(o.Dx,{ref:r,className:(0,l.cn)("text-sm font-semibold",e),...t}));g.displayName=o.Dx.displayName;let m=i.forwardRef(({className:e,...t},r)=>s.jsx(o.dk,{ref:r,className:(0,l.cn)("text-sm opacity-90",e),...t}));m.displayName=o.dk.displayName;var v=r(34789);function h(){let{toasts:e}=(0,v.pm)();return(0,s.jsxs)(d,{children:[e.map(function({id:e,title:t,description:r,action:o,...n}){return(0,s.jsxs)(p,{...n,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[t&&s.jsx(g,{children:t}),r&&s.jsx(m,{children:r})]}),o,s.jsx(f,{})]},e)}),s.jsx(c,{})]})}},34789:(e,t,r)=>{"use strict";r.d(t,{Am:()=>u,pm:()=>p});var s=r(17577);let o=0,n=new Map,a=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?a(r):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function u({...e}){let t=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},77863:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(41135),o=r(31009);function n(...e){return(0,o.m6)((0,s.W)(e))}},64640:(e,t,r)=>{"use strict";r.d(t,{u:()=>s});let s=(0,r(68570).createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/query-client.tsx#TanstackQueryClientProvider`)},19579:(e,t,r)=>{"use strict";r.a(e,async(e,s)=>{try{r.d(t,{b:()=>x,d:()=>v});var o=r(14029),n=r(53797),a=r(55245),i=r(84770),l=r(1203),d=r(8678),c=r(98691),u=r(35515),p=r(30849),f=r(77234),g=e([d]);d=(g.then?(await g)():g)[0];let m=async e=>{let t=process.env.NEXTAUTH_SECRET,r=await (0,u.nO)({k:t,alg:"HS256",kty:"oct"});return await new p.N(e).setProtectedHeader({alg:"HS256"}).setIssuedAt().setExpirationTime("365d").sign(r)},v=new d.Pool({host:process.env.POSTGRES_DB_HOST,user:process.env.POSTGRES_DB_USER,port:parseInt(process.env.POSTGRES_DB_PORT||"5432",10),password:process.env.POSTGRES_DB_PASSWORD,database:process.env.POSTGRES_DB_NAME||"exulu",min:2,max:20,acquireTimeoutMillis:3e4,createTimeoutMillis:3e4,idleTimeoutMillis:3e4,reapIntervalMillis:1e3,createRetryIntervalMillis:200,connectionTimeoutMillis:1e4}),h=[(0,n.Z)({name:"Credentials",credentials:{email:{label:"Email",type:"email"},password:{label:"Password",type:"password"}},authorize:async e=>{if(!e?.email||!e?.password)return null;let
|
|
1
|
+
exports.id=1051,exports.ids=[1051],exports.modules={65534:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,12994,23)),Promise.resolve().then(r.t.bind(r,96114,23)),Promise.resolve().then(r.t.bind(r,9727,23)),Promise.resolve().then(r.t.bind(r,79671,23)),Promise.resolve().then(r.t.bind(r,41868,23)),Promise.resolve().then(r.t.bind(r,84759,23))},75983:(e,t,r)=>{"use strict";r.d(t,{TanstackQueryClientProvider:()=>i});var s=r(10326),o=r(22852),n=r(44976);let a=new o.S,i=({children:e})=>s.jsx(n.aH,{client:a,children:e})},30463:(e,t,r)=>{"use strict";r.d(t,{ConfigContextProvider:()=>n,E:()=>o});var s=r(10326);let o=(0,r(17577).createContext)(null);function n({children:e,config:t}){if(console.log("[EXULU] Config: ",t),!t)throw Error("Config not found");return s.jsx(o.Provider,{value:t,children:e})}},2424:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var s=r(10326),o=r(30463),n=r(17577);let a=({width:e=64,height:t=32,className:r="",alt:a="Logo"})=>{let i=(0,n.useContext)(o.E);return(0,s.jsxs)(s.Fragment,{children:[s.jsx("img",{src:i?.backend+"/logo_dark.png",alt:a,width:e,height:t,className:r+"hidden dark:block"}),s.jsx("img",{src:i?.backend+"/logo_light.png",alt:a,width:e,height:t,className:r+"block dark:hidden"})]})}},15813:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>n});var s=r(10326),o=r(3574);function n({children:e,...t}){return s.jsx(o.f,{...t,defaultTheme:"dark",children:e})}r(17577)},90772:(e,t,r)=>{"use strict";r.d(t,{d:()=>l,z:()=>d});var s=r(10326),o=r(34214),n=r(79360),a=r(17577),i=r(77863);let l=(0,n.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...a},d)=>{let c=n?o.g7:"button";return s.jsx(c,{className:(0,i.cn)(l({variant:t,size:r,className:e})),ref:d,...a})});d.displayName="Button"},54432:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var s=r(10326),o=r(17577),n=r(77863);let a=o.forwardRef(({className:e,type:t,...r},o)=>s.jsx("input",{type:t,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium 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:o,...r}));a.displayName="Input"},77083:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>h});var s=r(10326),o=r(10321),n=r(79360),a=r(94019),i=r(17577),l=r(77863);let d=o.zt,c=i.forwardRef(({className:e,...t},r)=>s.jsx(o.l_,{ref:r,className:(0,l.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));c.displayName=o.l_.displayName;let u=(0,n.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),p=i.forwardRef(({className:e,variant:t,...r},n)=>s.jsx(o.fC,{ref:n,className:(0,l.cn)(u({variant:t}),e),...r}));p.displayName=o.fC.displayName,i.forwardRef(({className:e,...t},r)=>s.jsx(o.aU,{ref:r,className:(0,l.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t})).displayName=o.aU.displayName;let f=i.forwardRef(({className:e,...t},r)=>s.jsx(o.x8,{ref:r,className:(0,l.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(a.Z,{className:"size-4"})}));f.displayName=o.x8.displayName;let g=i.forwardRef(({className:e,...t},r)=>s.jsx(o.Dx,{ref:r,className:(0,l.cn)("text-sm font-semibold",e),...t}));g.displayName=o.Dx.displayName;let m=i.forwardRef(({className:e,...t},r)=>s.jsx(o.dk,{ref:r,className:(0,l.cn)("text-sm opacity-90",e),...t}));m.displayName=o.dk.displayName;var v=r(34789);function h(){let{toasts:e}=(0,v.pm)();return(0,s.jsxs)(d,{children:[e.map(function({id:e,title:t,description:r,action:o,...n}){return(0,s.jsxs)(p,{...n,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[t&&s.jsx(g,{children:t}),r&&s.jsx(m,{children:r})]}),o,s.jsx(f,{})]},e)}),s.jsx(c,{})]})}},34789:(e,t,r)=>{"use strict";r.d(t,{Am:()=>u,pm:()=>p});var s=r(17577);let o=0,n=new Map,a=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?a(r):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function u({...e}){let t=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function p(){let[e,t]=s.useState(d);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},77863:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(41135),o=r(31009);function n(...e){return(0,o.m6)((0,s.W)(e))}},64640:(e,t,r)=>{"use strict";r.d(t,{u:()=>s});let s=(0,r(68570).createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/app/(application)/query-client.tsx#TanstackQueryClientProvider`)},19579:(e,t,r)=>{"use strict";r.a(e,async(e,s)=>{try{r.d(t,{b:()=>x,d:()=>v});var o=r(14029),n=r(53797),a=r(55245),i=r(84770),l=r(1203),d=r(8678),c=r(98691),u=r(35515),p=r(30849),f=r(77234),g=e([d]);d=(g.then?(await g)():g)[0];let m=async e=>{let t=process.env.NEXTAUTH_SECRET,r=await (0,u.nO)({k:t,alg:"HS256",kty:"oct"});return await new p.N(e).setProtectedHeader({alg:"HS256"}).setIssuedAt().setExpirationTime("365d").sign(r)},v=new d.Pool({host:process.env.POSTGRES_DB_HOST,user:process.env.POSTGRES_DB_USER,port:parseInt(process.env.POSTGRES_DB_PORT||"5432",10),password:process.env.POSTGRES_DB_PASSWORD,database:process.env.POSTGRES_DB_NAME||"exulu",min:2,max:20,acquireTimeoutMillis:3e4,createTimeoutMillis:3e4,idleTimeoutMillis:3e4,reapIntervalMillis:1e3,createRetryIntervalMillis:200,connectionTimeoutMillis:1e4}),h=[(0,n.Z)({name:"Credentials",credentials:{email:{label:"Email",type:"email"},password:{label:"Password",type:"password"}},authorize:async e=>{let t=await v.connect();try{if(!e?.email||!e?.password)return null;let r=await t.query("SELECT * FROM users WHERE email = $1",[e.email]);if(console.log("[NEXT AUTH] authorize res rows count:",r.rows.length),console.log("[NEXT AUTH] Full user object:",JSON.stringify(r.rows[0],null,2)),!r?.rows?.length)return null;for(let s of r.rows){let r=await c.ZP.compare(e.password,s.password);if(console.log("[NEXT AUTH] isMatch",r),r)return await t.query("UPDATE users SET last_used = $1 WHERE email = $2",[new Date,s.email]),s}}finally{t.release()}}})];process.env.EMAIL_SERVER_HOST&&h.push((0,o.Z)({async sendVerificationRequest({identifier:e,token:t,url:r,provider:{server:s,from:o}}){var n;let{host:i}=new URL(r),l=(0,a.createTransport)(s);await l.sendMail({to:e,from:o,subject:`Sign in to ${i}`,text:(n={token:t,host:i},`
|
|
2
2
|
Sign in to ${n.host}
|
|
3
3
|
|
|
4
4
|
Sign in code: ${n.token}
|
|
@@ -31,18 +31,18 @@ exports.id=1051,exports.ids=[1051],exports.modules={65534:(e,t,r)=>{Promise.reso
|
|
|
31
31
|
</tr>
|
|
32
32
|
</table>
|
|
33
33
|
</body>
|
|
34
|
-
`}({token:t,host:i})})},generateVerificationToken:async()=>(0,i.randomInt)(1e5,999999).toString(),maxAge:180,server:{host:process.env.EMAIL_SERVER_HOST,port:parseInt(process.env.EMAIL_SERVER_PORT,10),auth:{user:process.env.EMAIL_SERVER_USER,pass:process.env.EMAIL_SERVER_PASSWORD}},from:process.env.EMAIL_FROM})),process.env.GOOGLE_CLIENT_ID&&process.env.GOOGLE_CLIENT_SECRET&&h.push((0,f.Z)({clientId:process.env.GOOGLE_CLIENT_ID,clientSecret:process.env.GOOGLE_CLIENT_SECRET,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
`}({token:t,host:i})})},generateVerificationToken:async()=>(0,i.randomInt)(1e5,999999).toString(),maxAge:180,server:{host:process.env.EMAIL_SERVER_HOST,port:parseInt(process.env.EMAIL_SERVER_PORT,10),auth:{user:process.env.EMAIL_SERVER_USER,pass:process.env.EMAIL_SERVER_PASSWORD}},from:process.env.EMAIL_FROM})),process.env.GOOGLE_CLIENT_ID&&process.env.GOOGLE_CLIENT_SECRET&&h.push((0,f.Z)({clientId:process.env.GOOGLE_CLIENT_ID,clientSecret:process.env.GOOGLE_CLIENT_SECRET,authorization:{params:{access_type:"offline",response_type:"code",scope:"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/directory.readonly https://www.googleapis.com/auth/user.emails.read https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.user.readonly https://www.googleapis.com/auth/userinfo.email openid"}}}));let x=async()=>({pages:{signIn:"/login"},adapter:(0,l.Z)(v),session:{strategy:"jwt"},jwt:{secret:process.env.NEXTAUTH_SECRET},providers:h,callbacks:{async signIn({account:e,profile:t,user:r}){let s=await v.connect();try{let o=r.email;if(console.log("[EXULU] Sign in callback",e,t,r),e?.provider==="google"&&!(o=t?.email))return console.error("[EXULU] Google auth failed, no email in profile."),s.release(),!1;if(console.log("[EXULU] ALLOWED_EMAIL_DOMAINS",process.env.ALLOWED_EMAIL_DOMAINS),process.env.ALLOWED_EMAIL_DOMAINS){let e=process.env.ALLOWED_EMAIL_DOMAINS.split(",");if(e.push("exulu.com"),e.push("qventu.com"),!e.some(e=>o.endsWith(`@${e}`)))return s.release(),!1}let n=await s.query("SELECT * FROM users WHERE email = $1",[o]),a=n?.rows[0];if(console.log("[EXULU] Sign in callback user query result",a),a&&await s.query("UPDATE users SET last_used = $1 WHERE email = $2",[new Date,o]),!a&&e?.provider==="google"){let e=t?.given_name||"",r=await s.query("SELECT * FROM roles WHERE name = $1",["default"]),n=r?.rows[0],i=await s.query('INSERT INTO users ("email", "name", "createdAt", "updatedAt", "emailVerified", "last_used", "type", "super_admin", "role") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING *',[o,e,new Date,new Date,new Date,new Date,"user",!1,n?.id]);a=i?.rows[0],console.log("[EXULU] Sign in callback new user query result",a)}if(a){if(e?.provider==="google"){console.log("[EXULU] Checking for existing account (provider account id: ",e.providerAccountId);let t=(await s.query('SELECT * FROM accounts WHERE provider = $1 AND "providerAccountId" = $2',["google",e.providerAccountId])).rows[0];console.log("[EXULU] Existing account query result",t),t?await s.query('UPDATE accounts SET access_token = $1, refresh_token = $2, expires_at = $3, id_token = $4, scope = $5, session_state = $6, token_type = $7, "userId" = $8 WHERE id = $9',[e.access_token,e.refresh_token,e.expires_at,e.id_token,e.scope,e.session_state,e.token_type,a.id,t.id]):await s.query('INSERT INTO accounts ("provider", "providerAccountId", "access_token", "refresh_token", "expires_at", "id_token", "scope", "session_state", "token_type", "userId", "type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)',["google",e.providerAccountId,e.access_token,e.refresh_token,e.expires_at,e.id_token,e.scope,e.session_state,e.token_type,a.id,"oauth"])}return s.release(),!0}return s.release(),!1}catch(e){return console.error("[EXULU] Sign in callback error",e),s.release(),!1}},async jwt({token:e,user:t}){e.uid=e.sub??"nosub";let r=await m({id:t?t.id:e.sub,email:t?t.email:e.email});return e.jwt=r,e},session:async({session:e,token:t})=>(t&&e.user&&(e.user.id=t.id,e.user.jwt=t.jwt,e.user.email=t.email),e)},secret:process.env.NEXTAUTH_SECRET});s()}catch(e){s(e)}})},14796:(e,t,r)=>{"use strict";r.d(t,{b:()=>o});var s=r(68570);(0,s.createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/components/config-context.tsx#ConfigContext`);let o=(0,s.createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/components/config-context.tsx#ConfigContextProvider`)},10296:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});let s=(0,r(68570).createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/components/theme-provider.tsx#ThemeProvider`)},23067:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});let s=(0,r(68570).createProxy)(String.raw`/home/runner/work/exulu-frontend/exulu-frontend/components/ui/toaster.tsx#Toaster`)},53254:(e,t,r)=>{"use strict";r.d(t,{s8:()=>d});var s=r(68666),o=r.n(s),n=r(50100),a=r.n(n),i=r(11344),l=r.n(i);let d=[o().variable,a().variable,l().variable].join(" ")},29375:(e,t,r)=>{"use strict";r.a(e,async(e,s)=>{try{r.d(t,{x:()=>i});var o=r(75571),n=r(19579),a=e([n]);n=(a.then?(await a)():a)[0];let i=async()=>{let e=await (0,n.b)(),t=await (0,o.getServerSession)(e);if(!t?.user)return!1;console.log("[EXULU] serverSideAuthCheck session:",t);let r=await n.d.connect();try{let e=await r.query(`
|
|
35
|
+
SELECT
|
|
36
|
+
users.*,
|
|
37
|
+
json_build_object(
|
|
38
|
+
'id', roles.id,
|
|
39
|
+
'name', roles.name,
|
|
40
|
+
'agents', roles.agents,
|
|
41
|
+
'workflows', roles.workflows,
|
|
42
|
+
'variables', roles.variables,
|
|
43
|
+
'users', roles.users
|
|
44
|
+
) as role
|
|
45
|
+
FROM users
|
|
46
|
+
LEFT JOIN roles ON users.role = roles.id
|
|
47
|
+
WHERE users.email = $1
|
|
48
|
+
`,[t.user.email]);console.log("[EXULU] serverSideAuthCheck res:",e);let s=e.rows[0];if(!s)return!1;return console.log("[EXULU] Server side auth check",e.rows),console.log("session.user.email",t.user.email),s}finally{r.release()}};s()}catch(e){s(e)}})},50650:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(55761),o=r(62386);function n(...e){return(0,o.m6)((0,s.W)(e))}},47252:(e,t,r)=>{"use strict";r.d(t,{vc:()=>a});var s=r(26465);let o=async()=>{{let e=process.env.BACKEND;if(!e)throw Error("No backend set.");return{files:e,base:e}}},n=async()=>{let e=await (0,s.getSession)();return e?.user?.jwt},a={backend:async()=>{let e=await o();return fetch(`${e.base}/config`,{method:"GET",headers:{"Content-Type":"application/json"}})},theme:async()=>{try{let e=await n(),t=await o(),r=await fetch(`${t.base}/theme`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});return(await r.json()).theme}catch(e){return console.error("Error fetching theme config:",e),{light:{},dark:{}}}}}},67272:()=>{}};
|