@bpinhosilva/agent-orchestrator 1.1.2 → 1.2.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +7 -0
  3. package/dist/cli/commands/run.command.js +20 -1
  4. package/dist/cli/commands/setup.command.js +13 -0
  5. package/dist/cli/constants.js +2 -1
  6. package/dist/cli/env.js +2 -0
  7. package/dist/cli/preload.js +12 -0
  8. package/dist/cli/process-manager.js +33 -29
  9. package/dist/cli/setup/index.js +24 -0
  10. package/dist/cli/setup/validators.js +14 -0
  11. package/dist/common/postman/postman-conversion.js +57 -0
  12. package/dist/config/env.validation.js +6 -0
  13. package/dist/config/runtime-logger.js +214 -0
  14. package/dist/main.js +8 -0
  15. package/dist/tasks/recurrent-task-scheduler.service.js +3 -4
  16. package/dist/ui/assets/{AgentFleet-BarfEwcK.js → AgentFleet-B8p5vbKK.js} +1 -1
  17. package/dist/ui/assets/{AttachmentItem-Cerhbyya.js → AttachmentItem-C_uUACPz.js} +1 -1
  18. package/dist/ui/assets/{ConfirmDialog-y3vTcqFR.js → ConfirmDialog-BltdtevE.js} +1 -1
  19. package/dist/ui/assets/{CreateRecurrentTaskModal-BgfnJ1n8.js → CreateRecurrentTaskModal-CGSdgNAf.js} +1 -1
  20. package/dist/ui/assets/{CreateTaskModal-BH9lOLYT.js → CreateTaskModal-XNvIWKz3.js} +1 -1
  21. package/dist/ui/assets/{ExecLogModal-ShacCOOV.js → ExecLogModal-BYTGF04P.js} +1 -1
  22. package/dist/ui/assets/{MarkdownField--1gpyapw.js → MarkdownField-DR6tHsei.js} +1 -1
  23. package/dist/ui/assets/{Profile-qnuRN5Qv.js → Profile-ByioVLM8.js} +1 -1
  24. package/dist/ui/assets/{ProjectDetail-ZYQG9yn2.js → ProjectDetail-dwZDzb0m.js} +1 -1
  25. package/dist/ui/assets/{Providers-DR7srJHq.js → Providers-JAClEFt0.js} +1 -1
  26. package/dist/ui/assets/{Scheduler-Bs3DC0re.js → Scheduler-C1HQNxQ6.js} +2 -2
  27. package/dist/ui/assets/{Settings-C3ad44vP.js → Settings-Cjn2xdo1.js} +1 -1
  28. package/dist/ui/assets/{TaskDetail-D-f_Ao2a.js → TaskDetail-Blphf9tw.js} +1 -1
  29. package/dist/ui/assets/{TaskExecutions-BeodRIz1.js → TaskExecutions-ydR4KPCY.js} +3 -3
  30. package/dist/ui/assets/{TaskManager-BA2Y31ut.js → TaskManager-DrFbuAwN.js} +3 -3
  31. package/dist/ui/assets/{UserDetail-BvWm-U4y.js → UserDetail-mWjJPTzO.js} +1 -1
  32. package/dist/ui/assets/{Users-CQNcXLyV.js → Users-FaX0thJx.js} +1 -1
  33. package/dist/ui/assets/{activity-CmAajKmR.js → activity-B_2QSywM.js} +1 -1
  34. package/dist/ui/assets/{agents-b8btewki.js → agents-YQJ7JNfI.js} +1 -1
  35. package/dist/ui/assets/{auth-dROenHXk.js → auth-Lh2N3iYN.js} +1 -1
  36. package/dist/ui/assets/{bot-QVmnxPf4.js → bot-DadO9w3D.js} +1 -1
  37. package/dist/ui/assets/{box-Bw_pyYzU.js → box-CFDcDxHv.js} +1 -1
  38. package/dist/ui/assets/{brain-C6vlLcg3.js → brain-DWTpby6b.js} +1 -1
  39. package/dist/ui/assets/{briefcase-DtHlat45.js → briefcase-mFWNV6w9.js} +1 -1
  40. package/dist/ui/assets/check-BiORptL3.js +1 -0
  41. package/dist/ui/assets/chevron-down-BUOg3vvd.js +1 -0
  42. package/dist/ui/assets/chevron-left-B0NmQyxK.js +1 -0
  43. package/dist/ui/assets/chevron-right-Bm_d1KKk.js +1 -0
  44. package/dist/ui/assets/{circle-alert-pUx6yhcF.js → circle-alert-sCcf7ANF.js} +1 -1
  45. package/dist/ui/assets/circle-check-Jz8IOE4h.js +1 -0
  46. package/dist/ui/assets/client-B553SX3l.js +9 -0
  47. package/dist/ui/assets/clock-CSNFJjo4.js +1 -0
  48. package/dist/ui/assets/{cpu-8Sbc9Dk0.js → cpu-C2_GFeSH.js} +1 -1
  49. package/dist/ui/assets/{database-D6O4hvbm.js → database-zXW48-_N.js} +1 -1
  50. package/dist/ui/assets/{download-DHcd5oLD.js → download-DZdOdijy.js} +1 -1
  51. package/dist/ui/assets/{eye-Cc-vy4Zu.js → eye-CjrFwZG_.js} +1 -1
  52. package/dist/ui/assets/{file-text-DWBSXx5l.js → file-text-CX_Yqfjf.js} +1 -1
  53. package/dist/ui/assets/{index-BvUv9Lzq.js → index-IcLlFUZs.js} +3 -3
  54. package/dist/ui/assets/{info-1jA6X-_e.js → info-DGHChFI6.js} +1 -1
  55. package/dist/ui/assets/{layers-BcHXXg-4.js → layers-CVf8_Byb.js} +1 -1
  56. package/dist/ui/assets/loader-circle-CB6PQwdc.js +1 -0
  57. package/dist/ui/assets/{panels-top-left-Vk8FzAxf.js → panels-top-left-Cp169WzB.js} +1 -1
  58. package/dist/ui/assets/{paperclip-DWJjaP8B.js → paperclip-5Y367YTj.js} +1 -1
  59. package/dist/ui/assets/plus-CkteVqhM.js +1 -0
  60. package/dist/ui/assets/{projects-CUOthD8N.js → projects-DoalTI7c.js} +1 -1
  61. package/dist/ui/assets/{providers-CNrSTcdc.js → providers-AawjMy3x.js} +1 -1
  62. package/dist/ui/assets/{recurrent-tasks-CKT47N2l.js → recurrent-tasks-7thk45mk.js} +1 -1
  63. package/dist/ui/assets/{refresh-cw-DQW6jR7M.js → refresh-cw-BgDsJOC_.js} +1 -1
  64. package/dist/ui/assets/{rocket-CMSwBl_C.js → rocket-B9Iexkcw.js} +1 -1
  65. package/dist/ui/assets/{save-DycJmlX0.js → save-Cmqi1IkN.js} +1 -1
  66. package/dist/ui/assets/{send-BZjwSrJW.js → send-iK1X7WSe.js} +1 -1
  67. package/dist/ui/assets/{server-CJE2K1Vt.js → server-BBmM-vrg.js} +1 -1
  68. package/dist/ui/assets/{settings-at7JqFrc.js → settings-BpKLGxm8.js} +1 -1
  69. package/dist/ui/assets/{shield-alert-CP5GVXxa.js → shield-alert-Do_Sg9SX.js} +1 -1
  70. package/dist/ui/assets/{shield-check-Cr4SHjdR.js → shield-check-YKs9kUNq.js} +1 -1
  71. package/dist/ui/assets/{sparkles-v57Nc-z-.js → sparkles-krUpxie4.js} +1 -1
  72. package/dist/ui/assets/{taskFormSchemas-dl1t1OyX.js → taskFormSchemas-B6YlRxrx.js} +1 -1
  73. package/dist/ui/assets/{tasks-DEUQCNoH.js → tasks-DHsBE-ea.js} +1 -1
  74. package/dist/ui/assets/{terminal-a6AV2mPO.js → terminal-B6iyNuAm.js} +1 -1
  75. package/dist/ui/assets/{trash-2-DJpTXgEP.js → trash-2-CphQfk35.js} +1 -1
  76. package/dist/ui/assets/{trending-up-DlrXEXE6.js → trending-up-ClGbkbN9.js} +1 -1
  77. package/dist/ui/assets/user-Brcjlps5.js +1 -0
  78. package/dist/ui/assets/{user-plus-nDkwsBT1.js → user-plus-0Y0M1GKi.js} +1 -1
  79. package/dist/ui/assets/{users-C6WiDiuN.js → users-BcnlUG5N.js} +1 -1
  80. package/dist/ui/assets/{users-Ef6Sh2iR.js → users-tdyaGZbx.js} +1 -1
  81. package/dist/ui/assets/x-CCZGYGDC.js +1 -0
  82. package/dist/ui/assets/{zap-BmhZqgvm.js → zap-BDAytXMX.js} +1 -1
  83. package/dist/ui/index.html +17 -17
  84. package/package.json +9 -4
  85. package/dist/ui/assets/check-DTei8Qlg.js +0 -1
  86. package/dist/ui/assets/chevron-down-LTeQHW9O.js +0 -1
  87. package/dist/ui/assets/chevron-left-CJc_eQid.js +0 -1
  88. package/dist/ui/assets/chevron-right-G5-HRo_C.js +0 -1
  89. package/dist/ui/assets/circle-check-B9kyRki5.js +0 -1
  90. package/dist/ui/assets/client-BGOBXkO8.js +0 -9
  91. package/dist/ui/assets/clock-BY4rrypg.js +0 -1
  92. package/dist/ui/assets/loader-circle-Cl6yIkPK.js +0 -1
  93. package/dist/ui/assets/plus-Dx6G8SOZ.js +0 -1
  94. package/dist/ui/assets/user--KOoEB9m.js +0 -1
  95. package/dist/ui/assets/x-wDy15QMx.js +0 -1
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]);export{t};
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentFleet-BarfEwcK.js","assets/vendor-query-xpDrc4rM.js","assets/rolldown-runtime-COnpUsM8.js","assets/vendor-dnd-CfaHPvi0.js","assets/vendor-markdown-DoJbQ1of.js","assets/vendor-forms-DHyqHeyd.js","assets/client-BGOBXkO8.js","assets/vendor-motion-CMGWJcqR.js","assets/activity-CmAajKmR.js","assets/box-Bw_pyYzU.js","assets/brain-C6vlLcg3.js","assets/check-DTei8Qlg.js","assets/chevron-down-LTeQHW9O.js","assets/circle-alert-pUx6yhcF.js","assets/circle-check-B9kyRki5.js","assets/terminal-a6AV2mPO.js","assets/MarkdownField--1gpyapw.js","assets/eye-Cc-vy4Zu.js","assets/sparkles-v57Nc-z-.js","assets/providers-CNrSTcdc.js","assets/layers-BcHXXg-4.js","assets/loader-circle-Cl6yIkPK.js","assets/plus-Dx6G8SOZ.js","assets/send-BZjwSrJW.js","assets/settings-at7JqFrc.js","assets/trash-2-DJpTXgEP.js","assets/ConfirmDialog-y3vTcqFR.js","assets/info-1jA6X-_e.js","assets/x-wDy15QMx.js","assets/agents-b8btewki.js","assets/useNotification-DQayTSUL.js","assets/agentEmojis-BQA0jC3z.js","assets/taskFormSchemas-dl1t1OyX.js","assets/tasks-DEUQCNoH.js","assets/Providers-DR7srJHq.js","assets/cn-CWOQtFh4.js","assets/chevron-right-G5-HRo_C.js","assets/clock-BY4rrypg.js","assets/cpu-8Sbc9Dk0.js","assets/database-D6O4hvbm.js","assets/rocket-CMSwBl_C.js","assets/server-CJE2K1Vt.js","assets/zap-BmhZqgvm.js","assets/UserDetail-BvWm-U4y.js","assets/vendor-react-BmVaKUwY.js","assets/UserAvatar-Z5W8S1dG.js","assets/chevron-left-CJc_eQid.js","assets/users-C6WiDiuN.js","assets/save-DycJmlX0.js","assets/shield-check-Cr4SHjdR.js","assets/user--KOoEB9m.js","assets/projects-CUOthD8N.js","assets/AuthContextInstance-DiFo9Qb2.js","assets/TaskManager-BA2Y31ut.js","assets/panels-top-left-Vk8FzAxf.js","assets/paperclip-DWJjaP8B.js","assets/shield-alert-CP5GVXxa.js","assets/AppErrorBoundary-BwnK_K-O.js","assets/useProject-DhK9Ze6F.js","assets/usePersistentFlag-R3_SXL_2.js","assets/TaskDetail-D-f_Ao2a.js","assets/AttachmentItem-Cerhbyya.js","assets/download-DHcd5oLD.js","assets/file-text-DWBSXx5l.js","assets/ProjectDetail-ZYQG9yn2.js","assets/briefcase-DtHlat45.js","assets/Scheduler-Bs3DC0re.js","assets/bot-QVmnxPf4.js","assets/trending-up-DlrXEXE6.js","assets/refresh-cw-DQW6jR7M.js","assets/recurrent-tasks-CKT47N2l.js","assets/Profile-qnuRN5Qv.js","assets/user-plus-nDkwsBT1.js","assets/auth-dROenHXk.js","assets/Users-CQNcXLyV.js","assets/users-Ef6Sh2iR.js","assets/Settings-C3ad44vP.js","assets/TaskExecutions-BeodRIz1.js"])))=>i.map(i=>d[i]);
2
- import{a as e}from"./rolldown-runtime-COnpUsM8.js";import{g as t}from"./vendor-dnd-CfaHPvi0.js";import{a as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"./vendor-react-BmVaKUwY.js";import{C as d,D as f,E as p,M as m,N as h,O as g,S as _,T as v,_ as y,a as ee,b,d as te,f as ne,g as x,h as re,j as S,l as C,m as ie,n as ae,o as oe,p as se,r as ce,u as w,v as T,w as le,x as E,y as D}from"./vendor-query-xpDrc4rM.js";import{r as ue}from"./vendor-markdown-DoJbQ1of.js";import{i as O,n as k,r as de}from"./client-BGOBXkO8.js";import{t as fe}from"./bot-QVmnxPf4.js";import{t as pe}from"./briefcase-DtHlat45.js";import{t as me}from"./circle-alert-pUx6yhcF.js";import{t as he}from"./circle-check-B9kyRki5.js";import{n as ge,t as A}from"./auth-dROenHXk.js";import{t as _e}from"./info-1jA6X-_e.js";import{t as ve}from"./panels-top-left-Vk8FzAxf.js";import{t as ye}from"./plus-Dx6G8SOZ.js";import{t as be}from"./server-CJE2K1Vt.js";import{t as xe}from"./settings-at7JqFrc.js";import{t as Se}from"./users-Ef6Sh2iR.js";import{t as Ce}from"./x-wDy15QMx.js";import{n as we,t as Te}from"./useProject-DhK9Ze6F.js";import{n as j,t as Ee}from"./AuthContextInstance-DiFo9Qb2.js";import{n as De,t as M}from"./vendor-motion-CMGWJcqR.js";import{n as Oe}from"./projects-CUOthD8N.js";import{n as ke,t as N}from"./useNotification-DQayTSUL.js";import{t as Ae}from"./UserAvatar-Z5W8S1dG.js";import{t as P}from"./AppErrorBoundary-BwnK_K-O.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function F(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{te(e,()=>t.signal,()=>n=!0)},u=ie(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?se:ne;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?je:I,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:I(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function I(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function je(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}m(),g(),p();var L,R,z,Me=(L=new WeakMap,R=new WeakMap,z=new WeakMap,class extends h{constructor(e={}){super(),S(this,L,void 0),S(this,R,void 0),S(this,z,void 0),this.config=e,f(L,this,new Set),f(R,this,new Map),f(z,this,0)}build(e,t,n){var r;let i=new ee({client:e,mutationCache:this,mutationId:f(z,this,(r=v(z,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){v(L,this).add(e);let t=B(e);if(typeof t==`string`){let n=v(R,this).get(t);n?n.push(e):v(R,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(v(L,this).delete(e)){let t=B(e);if(typeof t==`string`){let n=v(R,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&v(R,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=B(e);if(typeof t==`string`){let n=v(R,this).get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=B(e);return typeof t==`string`?(v(R,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){w.batch(()=>{v(L,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),v(L,this).clear(),v(R,this).clear()})}getAll(){return Array.from(v(L,this))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>T(t,e))}findAll(e={}){return this.getAll().filter(t=>T(e,t))}notify(e){w.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return w.batch(()=>Promise.all(e.map(e=>e.continue().catch(b))))}});function B(e){return e.options.scope?.id}m(),g(),p();var V,Ne=(V=new WeakMap,class extends h{constructor(e={}){super(),S(this,V,void 0),this.config=e,f(V,this,new Map)}build(e,t,n){let r=t.queryKey,i=t.queryHash??y(r,t),a=this.get(i);return a||(a=new oe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){v(V,this).has(e.queryHash)||(v(V,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=v(V,this).get(e.queryHash);t&&(e.destroy(),t===e&&v(V,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){w.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return v(V,this).get(e)}getAll(){return[...v(V,this).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>D(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>D(e,t)):t}notify(e){w.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){w.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){w.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}});m(),g(),p();var H,U,W,G,K,q,J,Y,Pe=(H=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap,K=new WeakMap,q=new WeakMap,J=new WeakMap,Y=new WeakMap,class{constructor(e={}){S(this,H,void 0),S(this,U,void 0),S(this,W,void 0),S(this,G,void 0),S(this,K,void 0),S(this,q,void 0),S(this,J,void 0),S(this,Y,void 0),f(H,this,e.queryCache||new Ne),f(U,this,e.mutationCache||new Me),f(W,this,e.defaultOptions||{}),f(G,this,new Map),f(K,this,new Map),f(q,this,0)}mount(){var e;f(q,this,(e=v(q,this),e++,e)),v(q,this)===1&&(f(J,this,le.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(H,this).onFocus())})),f(Y,this,C.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(H,this).onOnline())})))}unmount(){var e;f(q,this,(e=v(q,this),e--,e)),v(q,this)===0&&(v(J,this)?.call(this),f(J,this,void 0),v(Y,this)?.call(this),f(Y,this,void 0))}isFetching(e){return v(H,this).findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return v(U,this).findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return v(H,this).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=v(H,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return v(H,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=v(H,this).get(r.queryHash)?.state.data,a=re(t,i);if(a!==void 0)return v(H,this).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return w.batch(()=>v(H,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return v(H,this).get(t.queryHash)?.state}removeQueries(e){let t=v(H,this);w.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=v(H,this);return w.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=w.batch(()=>v(H,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(b).catch(b)}invalidateQueries(e,t={}){return w.batch(()=>(v(H,this).findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=w.batch(()=>v(H,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(b)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(b)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=v(H,this).build(this,t);return n.isStaleByTime(_(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(b).catch(b)}fetchInfiniteQuery(e){return e.behavior=F(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(b).catch(b)}ensureInfiniteQueryData(e){return e.behavior=F(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return C.isOnline()?v(U,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(H,this)}getMutationCache(){return v(U,this)}getDefaultOptions(){return v(W,this)}setDefaultOptions(e){f(W,this,e)}setQueryDefaults(e,t){v(G,this).set(x(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...v(G,this).values()],n={};return t.forEach(t=>{E(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){v(K,this).set(x(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...v(K,this).values()],n={};return t.forEach(t=>{E(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...v(W,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=y(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===d&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...v(W,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(H,this).clear(),v(U,this).clear()}}),X=e(t(),1),Fe=u(),Ie=O(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Le=O(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Re=O(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),Z=O(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Q=ue(),ze=()=>{let{activeProject:e,loading:t,refreshProjects:n}=Te(),{logout:r,user:i}=j(),[a,o]=(0,X.useState)(!1),c=i?.role===`admin`,l=[{icon:Re,label:`Task Manager`,path:`/`},{icon:Ie,label:`Scheduler`,path:`/scheduler`},{icon:fe,label:`Agents`,path:`/agents`},{icon:be,label:`Providers`,path:`/providers`}];return(0,Q.jsxs)(`aside`,{className:`h-screen w-64 sticky top-0 bg-surface-container-low flex flex-col py-6 shadow-xl z-50 transition-all duration-300`,role:`complementary`,"aria-label":`Main sidebar`,children:[(0,Q.jsxs)(`div`,{className:`px-6 mb-8`,children:[(0,Q.jsx)(`h1`,{className:`text-lg font-black text-primary font-headline tracking-tight uppercase`,children:`Orchestrator`}),(0,Q.jsx)(`p`,{className:`text-[10px] text-on-surface-variant font-medium tracking-[0.2em] mt-1`,children:`AI CONTROL CENTER`})]}),(0,Q.jsx)(`div`,{className:`px-3 mb-8`,children:t?(0,Q.jsx)(`div`,{className:`mx-3 h-16 bg-surface-container-highest/20 rounded-xl animate-pulse border border-outline-variant/10`}):e?(0,Q.jsxs)(s,{to:`/projects/${e.id}`,className:({isActive:e})=>`group relative mx-2 p-4 rounded-xl bg-surface-container-high border transition-all cursor-pointer overflow-hidden block ${e?`border-primary shadow-lg shadow-primary/5 ring-1 ring-primary/20`:`border-outline-variant/10 hover:border-primary/30`}`,children:[(0,Q.jsx)(`div`,{className:`absolute top-0 right-0 p-2 opacity-10 group-hover:opacity-30 transition-opacity`,children:(0,Q.jsx)(pe,{size:24,className:`text-primary`})}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Q.jsx)(`div`,{className:`w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary border border-primary/20`,children:(0,Q.jsx)(ve,{size:16})}),(0,Q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,Q.jsx)(`p`,{className:`text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/50 leading-none mb-1`,children:`Active Project`}),(0,Q.jsx)(`h3`,{className:`text-xs font-bold text-white truncate`,children:e.title})]})]})]}):c?(0,Q.jsxs)(`button`,{onClick:()=>o(!0),className:`w-full mx-auto px-4 py-4 rounded-xl bg-secondary/10 border border-secondary/20 hover:bg-secondary/20 hover:border-secondary/40 transition-all group flex flex-col items-center gap-2 text-center`,children:[(0,Q.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-secondary/20 flex items-center justify-center text-secondary group-hover:scale-110 transition-transform`,children:(0,Q.jsx)(ye,{size:16})}),(0,Q.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-widest text-secondary`,children:`Create Project`})]}):(0,Q.jsx)(`div`,{className:`mx-2 px-4 py-4 rounded-xl bg-surface-container-high border border-outline-variant/10 text-center`,children:(0,Q.jsx)(`p`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant`,children:`No Project Assigned`})})}),(0,Q.jsx)(ge,{isOpen:a,onClose:()=>o(!1),onCreated:n,canCreate:c,blockedReason:`Only admins can create projects.`}),(0,Q.jsxs)(`nav`,{className:`flex-1 px-3 space-y-2`,"aria-label":`Main navigation`,children:[l.map(e=>(0,Q.jsxs)(s,{to:e.path,className:({isActive:e})=>`flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-300 group ${e?`text-secondary border-r-2 border-secondary bg-gradient-to-r from-secondary/10 to-transparent`:`text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high`}`,children:[(0,Q.jsx)(e.icon,{size:20}),(0,Q.jsx)(`span`,{className:`font-body text-sm`,children:e.label})]},e.path)),c&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`px-4 pt-4 pb-1`,children:(0,Q.jsx)(`p`,{className:`text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/40`,children:`Administration`})}),(0,Q.jsxs)(s,{to:`/users`,className:({isActive:e})=>`flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-300 group ${e?`text-secondary border-r-2 border-secondary bg-gradient-to-r from-secondary/10 to-transparent`:`text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high`}`,children:[(0,Q.jsx)(Se,{size:20}),(0,Q.jsx)(`span`,{className:`font-body text-sm`,children:`Users`})]})]})]}),(0,Q.jsx)(`div`,{className:`px-3 space-y-2 pt-6`,children:(0,Q.jsxs)(`div`,{className:`pt-4 border-t border-outline-variant/20`,children:[(0,Q.jsxs)(`a`,{href:`https://github.com/bpinhosilva/agent-orchestrator/issues`,target:`_blank`,rel:`noreferrer`,className:`flex items-center gap-3 px-4 py-2 rounded-lg text-on-surface-variant hover:text-on-surface transition-all`,children:[(0,Q.jsx)(Le,{size:20}),(0,Q.jsx)(`span`,{className:`font-body text-sm`,children:`Help`})]}),(0,Q.jsxs)(`button`,{onClick:r,className:`w-full flex items-center gap-3 px-4 py-2 rounded-lg text-on-surface-variant hover:text-on-surface transition-all`,children:[(0,Q.jsx)(Z,{size:20}),(0,Q.jsx)(`span`,{className:`font-body text-sm`,children:`Logout`})]})]})})]})},Be=()=>{let{user:e,logout:t}=j(),n=c(),r=e?`${e.name} ${e.lastName}`.trim():`Agent`;return(0,Q.jsxs)(`header`,{role:`banner`,className:`w-full top-0 sticky bg-surface flex items-center justify-between px-6 py-3 shadow-[0_8px_32px_rgba(173,198,255,0.06)] z-40`,children:[(0,Q.jsx)(`div`,{className:`flex items-center gap-8`,children:(0,Q.jsx)(`div`,{className:`hidden md:flex items-center gap-6`,children:(0,Q.jsx)(`a`,{href:`https://github.com/bpinhosilva/agent-orchestrator/blob/main/README.md`,target:`_blank`,rel:`noreferrer`,className:`text-on-surface-variant hover:text-primary transition-colors font-headline text-sm tracking-tight`,children:`Docs`})})}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,Q.jsxs)(`div`,{className:`hidden sm:flex flex-col items-end mr-2`,children:[(0,Q.jsx)(`span`,{className:`text-xs font-bold text-on-surface leading-none`,children:r}),(0,Q.jsx)(`span`,{className:`text-[10px] text-on-surface-variant uppercase tracking-widest`,children:e?.email||`Active Protocol`})]}),(0,Q.jsx)(`button`,{onClick:()=>n(`/settings`),"aria-label":`Settings`,className:`text-on-surface-variant hover:text-primary transition-all active:scale-95 duration-200`,children:(0,Q.jsx)(xe,{size:20,"aria-hidden":`true`})}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-3 pl-4 border-l border-outline-variant/20`,children:[(0,Q.jsx)(`button`,{onClick:()=>n(`/profile`),"aria-label":`Open profile`,title:`View profile`,className:`w-8 h-8 rounded-full overflow-hidden ring-2 ring-primary/20 hover:ring-primary/60 transition-all active:scale-95 duration-200`,children:(0,Q.jsx)(Ae,{name:r,avatar:e?.avatar,avatarUrl:e?.avatarUrl,alt:`User avatar`,className:`h-full w-full`})}),(0,Q.jsx)(`button`,{onClick:t,className:`p-2 text-on-surface-variant hover:text-error transition-all active:scale-95 duration-200 rounded-lg hover:bg-error/10`,title:`Terminate Session`,children:(0,Q.jsx)(Z,{size:18})})]})]})]})},Ve=({children:e})=>(0,Q.jsxs)(`div`,{className:`flex min-h-screen bg-surface text-on-surface overflow-hidden`,children:[(0,Q.jsx)(ze,{}),(0,Q.jsxs)(`div`,{className:`flex-1 flex flex-col h-screen relative overflow-hidden`,children:[(0,Q.jsx)(Be,{}),(0,Q.jsx)(`main`,{className:`flex-1 overflow-y-auto p-8 custom-scrollbar`,children:e})]})]}),He=({children:e})=>{let[t,n]=(0,X.useState)({isOpen:!1,type:`info`,title:``,message:``}),r=(0,X.useCallback)((e,t)=>{n({isOpen:!0,type:`success`,title:e,message:t})},[]),i=(0,X.useCallback)((e,t)=>{n({isOpen:!0,type:`error`,title:e,message:t})},[]),a=(0,X.useCallback)((e,t)=>{let r=e,i=r.response?.data,a=i?.errors,o=a?.length?a.join(`
3
- `):i?.message||r.message||`An unexpected error occurred`;n({isOpen:!0,type:`error`,title:t||r.response?.statusText||`Backend Error`,message:o})},[]),o=(0,X.useCallback)((e,t)=>{n({isOpen:!0,type:`info`,title:e,message:t})},[]),s=(0,X.useCallback)(()=>{n(e=>({...e,isOpen:!1}))},[]);return(0,Q.jsx)(ke.Provider,{value:{notifySuccess:r,notifyError:i,notifyApiError:a,notifyInfo:o,closeNotification:s,state:t},children:e})},Ue=[`projects`],We=({children:e})=>{let[t,n]=(0,X.useState)(null),{data:r=[],isPending:i,isFetching:a,refetch:o}=ae({queryKey:Ue,queryFn:async()=>(await Oe.findAll()).data}),s=(0,X.useMemo)(()=>r.length===0?null:r.find(e=>e.id===t)??r[0]??null,[t,r]),c=(0,X.useCallback)(async()=>{await o()},[o]),l=(0,X.useCallback)(e=>{n(t=>r.find(t=>t.id===e)?.id??t)},[r]),u=(0,X.useMemo)(()=>({projects:r,activeProject:s,loading:i||a,refreshProjects:c,setActiveProjectById:l}),[s,a,i,r,c,l]);return(0,Q.jsx)(we.Provider,{value:u,children:e})},Ge=({children:e})=>{let[t,n]=(0,X.useState)(null),[r,i]=(0,X.useState)(!0),a=(0,X.useCallback)(()=>{n(null)},[]),o=(0,X.useCallback)(async()=>{try{await A.logout()}finally{a()}},[a]),s=(0,X.useCallback)(async()=>{try{i(!0),n(await A.me())}catch{a()}finally{i(!1)}},[a]);(0,X.useEffect)(()=>{s()},[s]),(0,X.useEffect)(()=>(k(a),()=>{k(null)}),[a]);let c=async(e,t)=>{await A.login(e,t),n(await A.me())},l={user:t,token:t?`authenticated`:null,isLoading:r,login:c,register:async(e,t,n,r)=>{await A.register(e,t,n,r),await c(n,r)},logout:o,refreshUser:s};return(0,Q.jsx)(Ee.Provider,{value:l,children:e})},Ke=()=>{let{state:e,closeNotification:t}=N(),{isOpen:n,type:r,title:i,message:a}=e;X.useEffect(()=>{let e=e=>{e.key===`Escape`&&t()};return n&&window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n,t]);let o={success:{icon:(0,Q.jsx)(he,{className:`text-secondary`,size:24}),bgIcon:`bg-secondary/10`,accent:`from-secondary/40`,shadow:`shadow-secondary/10`},error:{icon:(0,Q.jsx)(me,{className:`text-error`,size:24}),bgIcon:`bg-error/10`,accent:`from-error/40`,shadow:`shadow-error/10`},info:{icon:(0,Q.jsx)(_e,{className:`text-primary`,size:24}),bgIcon:`bg-primary/10`,accent:`from-primary/40`,shadow:`shadow-primary/10`}}[r];return(0,Q.jsx)(De,{children:n&&(0,Q.jsxs)(`div`,{className:`fixed inset-0 z-[100] flex items-center justify-center p-4`,children:[(0,Q.jsx)(M.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:`absolute inset-0 bg-background/60 backdrop-blur-sm`}),(0,Q.jsxs)(M.div,{initial:{opacity:0,scale:.9,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:10},className:`relative w-full max-w-sm bg-surface-container-low/95 backdrop-blur-2xl rounded-3xl shadow-2xl p-8 border border-outline-variant/10 overflow-hidden ${o.shadow}`,children:[(0,Q.jsxs)(`div`,{className:`flex flex-col items-center text-center space-y-6`,children:[(0,Q.jsx)(`div`,{className:`w-16 h-16 rounded-2xl ${o.bgIcon} flex items-center justify-center`,children:o.icon}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`h3`,{className:`text-xl font-headline font-bold text-on-surface tracking-tight`,children:i}),(0,Q.jsx)(`p`,{className:`text-sm text-on-surface-variant/70 leading-relaxed font-medium`,children:a})]}),(0,Q.jsx)(`button`,{onClick:t,className:`w-full bg-surface-container-high hover:bg-surface-container-highest text-on-surface text-[10px] font-black uppercase tracking-[0.2em] py-4 rounded-2xl transition-all active:scale-95`,children:`Dismiss`})]}),(0,Q.jsx)(`button`,{onClick:t,className:`absolute top-4 right-4 p-2 rounded-full hover:bg-white/5 transition-colors text-on-surface-variant/20 hover:text-white`,children:(0,Q.jsx)(Ce,{size:16})}),(0,Q.jsx)(`div`,{className:`absolute top-0 right-0 w-24 h-1 bg-gradient-to-l ${o.accent} to-transparent opacity-50`}),(0,Q.jsx)(`div`,{className:`absolute bottom-0 left-0 w-16 h-16 ${o.bgIcon} blur-3xl opacity-20 rounded-full -ml-8 -mb-8`})]})]})})},qe=()=>{let{notifyError:e}=N();return(0,X.useEffect)(()=>{de(e)},[e]),null},Je=()=>{let[e,t]=(0,X.useState)(``),[n,r]=(0,X.useState)(``),[i,a]=(0,X.useState)(null),[o,s]=(0,X.useState)(!1),[l,u]=(0,X.useState)(!1),{login:d}=j(),f=c();return(0,Q.jsxs)(`div`,{className:`bg-surface font-body text-on-surface selection:bg-primary selection:text-on-primary min-h-screen`,children:[(0,Q.jsxs)(`header`,{className:`fixed top-0 w-full flex justify-between items-center px-6 py-4 bg-transparent z-50`,children:[(0,Q.jsx)(`div`,{className:`text-xl font-bold tracking-tight text-[#adc6ff] font-headline`,children:`Agent Orchestrator`}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-4 text-slate-400`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined hover:text-[#adc6ff] transition-colors cursor-pointer`,children:`help_outline`}),(0,Q.jsx)(`span`,{className:`material-symbols-outlined hover:text-[#adc6ff] transition-colors cursor-pointer`,children:`dark_mode`})]})]}),(0,Q.jsxs)(`main`,{className:`min-h-screen flex items-center justify-center bg-glow relative px-4 overflow-hidden`,children:[(0,Q.jsxs)(`div`,{className:`absolute inset-0 z-0 pointer-events-none opacity-20`,children:[(0,Q.jsx)(`div`,{className:`absolute top-1/4 left-1/4 w-96 h-96 bg-primary blur-[120px] rounded-full`}),(0,Q.jsx)(`div`,{className:`absolute bottom-1/4 right-1/4 w-96 h-96 bg-tertiary blur-[120px] rounded-full`})]}),(0,Q.jsxs)(`section`,{className:`glass-panel ghost-border w-full max-w-md rounded-xl p-8 md:p-12 relative z-10 accent-glow`,children:[(0,Q.jsxs)(`div`,{className:`flex flex-col items-center mb-10`,children:[(0,Q.jsx)(`div`,{className:`w-16 h-16 bg-primary-container rounded-full flex items-center justify-center mb-6 ghost-border`,children:(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-primary text-4xl`,style:{fontVariationSettings:`'FILL' 1`},children:`deployed_code`})}),(0,Q.jsx)(`h1`,{className:`font-headline text-2xl font-extrabold tracking-tight text-on-surface uppercase mb-2`,children:`Agent Orchestrator`}),(0,Q.jsx)(`p`,{className:`font-label text-xs tracking-widest text-on-surface-variant uppercase`,children:`Neural Gateway`})]}),i&&(0,Q.jsxs)(`div`,{className:`mb-6 p-4 bg-error-container/20 border border-error/20 rounded-lg flex items-center gap-3 animate-in fade-in slide-in-from-top-4 duration-300`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-error text-xl`,children:`error`}),(0,Q.jsx)(`p`,{className:`text-error text-sm font-medium`,children:i})]}),(0,Q.jsxs)(`form`,{className:`space-y-6`,onSubmit:async t=>{t.preventDefault(),a(null),s(!0);try{await d(e,n),f(`/`)}catch(e){let t=e.response?.data?.message||`Authentication failed. Please check your credentials.`;Array.isArray(t)&&(t=t.join(`. `)),a(t)}finally{s(!1)}},children:[(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Identity Protocol`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`alternate_email`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`email@aetheric.logic`,type:`email`,value:e,onChange:e=>t(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`div`,{className:`flex justify-between items-center ml-1`,children:(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline`,children:`Security Key`})}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`vibration`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-12 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`••••••••••••`,type:l?`text`:`password`,value:n,onChange:e=>r(e.target.value),required:!0}),(0,Q.jsx)(`button`,{className:`absolute right-4 top-1/2 -translate-y-1/2 text-outline hover:text-on-surface transition-colors`,type:`button`,onClick:()=>u(!l),children:(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-xl`,children:l?`visibility_off`:`visibility`})})]})]}),(0,Q.jsxs)(`div`,{className:`pt-4 space-y-4`,children:[(0,Q.jsx)(`button`,{className:`w-full bg-primary hover:bg-primary-fixed-dim text-on-primary font-headline font-bold py-4 rounded-lg shadow-lg shadow-primary/10 active:scale-[0.98] transition-all flex items-center justify-center gap-2 group disabled:opacity-50 disabled:cursor-not-allowed`,type:`submit`,disabled:o,children:o?(0,Q.jsx)(`div`,{className:`w-5 h-5 border-2 border-on-primary/30 border-t-on-primary rounded-full animate-spin`}):(0,Q.jsxs)(Q.Fragment,{children:[`Initiate Session`,(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-lg group-hover:translate-x-1 transition-transform`,children:`bolt`})]})}),(0,Q.jsx)(`div`,{className:`flex flex-col gap-3`})]})]})]})]}),(0,Q.jsxs)(`footer`,{className:`fixed bottom-0 w-full flex flex-col md:flex-row justify-center items-center gap-4 pb-8 bg-transparent z-50`,children:[(0,Q.jsx)(`p`,{className:`text-[10px] uppercase tracking-widest text-slate-500`,children:`© 2024 Agent Orchestrator. All rights reserved.`}),(0,Q.jsxs)(`div`,{className:`flex gap-6`,children:[(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Security Architecture`}),(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Privacy Policy`}),(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Terms of Service`})]})]})]})},Ye=()=>{let[e,t]=(0,X.useState)(``),[n,r]=(0,X.useState)(``),[i,o]=(0,X.useState)(``),[s,l]=(0,X.useState)(``),[u,d]=(0,X.useState)(``),[f,p]=(0,X.useState)(null),[m,h]=(0,X.useState)(!1),{register:g}=j(),_=c();return(0,Q.jsxs)(`div`,{className:`bg-surface font-body text-on-surface selection:bg-primary selection:text-on-primary min-h-screen`,children:[(0,Q.jsxs)(`header`,{className:`fixed top-0 w-full flex justify-between items-center px-6 py-4 bg-transparent z-50`,children:[(0,Q.jsx)(`div`,{className:`text-xl font-bold tracking-tight text-[#adc6ff] font-headline`,children:`Agent Orchestrator`}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-4 text-slate-400`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined hover:text-[#adc6ff] transition-colors cursor-pointer`,children:`help_outline`}),(0,Q.jsx)(`span`,{className:`material-symbols-outlined hover:text-[#adc6ff] transition-colors cursor-pointer`,children:`dark_mode`})]})]}),(0,Q.jsxs)(`main`,{className:`min-h-screen flex items-center justify-center bg-glow relative px-4 overflow-hidden py-20`,children:[(0,Q.jsxs)(`div`,{className:`absolute inset-0 z-0 pointer-events-none opacity-20`,children:[(0,Q.jsx)(`div`,{className:`absolute top-1/4 left-1/4 w-96 h-96 bg-primary blur-[120px] rounded-full`}),(0,Q.jsx)(`div`,{className:`absolute bottom-1/4 right-1/4 w-96 h-96 bg-tertiary blur-[120px] rounded-full`})]}),(0,Q.jsxs)(`section`,{className:`glass-panel ghost-border w-full max-w-md rounded-xl p-8 md:p-12 relative z-10 accent-glow`,children:[(0,Q.jsxs)(`div`,{className:`flex flex-col items-center mb-10`,children:[(0,Q.jsx)(`div`,{className:`w-16 h-16 bg-primary-container rounded-full flex items-center justify-center mb-6 ghost-border`,children:(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-primary text-4xl`,style:{fontVariationSettings:`'FILL' 1`},children:`person_add`})}),(0,Q.jsx)(`h1`,{className:`font-headline text-2xl font-extrabold tracking-tight text-on-surface uppercase mb-2`,children:`Registration`}),(0,Q.jsx)(`p`,{className:`font-label text-xs tracking-widest text-on-surface-variant uppercase`,children:`New Agent Protocol`})]}),f&&(0,Q.jsxs)(`div`,{className:`mb-6 p-4 bg-error-container/20 border border-error/20 rounded-lg flex items-center gap-3 animate-in fade-in slide-in-from-top-4 duration-300`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-error text-xl`,children:`error`}),(0,Q.jsx)(`p`,{className:`text-error text-sm font-medium`,children:f})]}),(0,Q.jsxs)(`form`,{className:`space-y-6`,onSubmit:async t=>{if(t.preventDefault(),p(null),s!==u){p(`Security keys do not match. Please re-verify.`);return}h(!0);try{await g(e,n,i,s),_(`/`)}catch(e){let t=e.response?.data?.message||`Protocol registration failed. Please try again.`;Array.isArray(t)&&(t=t.join(`. `)),p(t)}finally{h(!1)}},children:[(0,Q.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-6`,children:[(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`First Name`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`fingerprint`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`Agent`,type:`text`,value:e,onChange:e=>t(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Last Name`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`badge`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`Zero`,type:`text`,value:n,onChange:e=>r(e.target.value),required:!0})]})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Identity Protocol`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`alternate_email`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`email@aetheric.logic`,type:`email`,value:i,onChange:e=>o(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Security Key`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`vibration`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`••••••••••••`,type:`password`,value:s,onChange:e=>l(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Re-verify Security Key`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`lock_reset`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`••••••••••••`,type:`password`,value:u,onChange:e=>d(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`pt-4 space-y-4`,children:[(0,Q.jsx)(`button`,{className:`w-full bg-primary hover:bg-primary-fixed-dim text-on-primary font-headline font-bold py-4 rounded-lg shadow-lg shadow-primary/10 active:scale-[0.98] transition-all flex items-center justify-center gap-2 group disabled:opacity-50 disabled:cursor-not-allowed`,type:`submit`,disabled:m,children:m?(0,Q.jsx)(`div`,{className:`w-5 h-5 border-2 border-on-primary/30 border-t-on-primary rounded-full animate-spin`}):(0,Q.jsxs)(Q.Fragment,{children:[`Initialize Protocol`,(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-lg group-hover:translate-x-1 transition-transform`,children:`bolt`})]})}),(0,Q.jsx)(`div`,{className:`pt-4 text-center`,children:(0,Q.jsxs)(`p`,{className:`font-label text-xs text-outline`,children:[`Already have a protocol?`,` `,(0,Q.jsx)(a,{to:`/login`,className:`text-primary hover:text-tertiary transition-colors font-bold uppercase tracking-widest`,children:`Login`})]})})]})]})]})]}),(0,Q.jsxs)(`footer`,{className:`fixed bottom-0 w-full flex flex-col md:flex-row justify-center items-center gap-4 pb-8 bg-transparent z-50`,children:[(0,Q.jsx)(`p`,{className:`text-[10px] uppercase tracking-widest text-slate-500`,children:`© 2024 Agent Orchestrator. All rights reserved.`}),(0,Q.jsxs)(`div`,{className:`flex gap-6`,children:[(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Security Architecture`}),(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Privacy Policy`}),(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Terms of Service`})]})]})]})},Xe=(0,X.lazy)(()=>i(()=>import(`./AgentFleet-BarfEwcK.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]))),Ze=(0,X.lazy)(()=>i(()=>import(`./Providers-DR7srJHq.js`),__vite__mapDeps([34,1,2,3,4,6,35,7,9,36,37,38,39,19,27,22,40,41,25,26,14,28,42,30]))),Qe=(0,X.lazy)(()=>i(()=>import(`./UserDetail-BvWm-U4y.js`),__vite__mapDeps([43,2,44,3,45,4,46,6,13,14,47,22,48,49,25,50,28,51,52]))),$e=(0,X.lazy)(()=>i(()=>import(`./TaskManager-BA2Y31ut.js`),__vite__mapDeps([53,1,2,3,4,44,6,35,11,37,54,55,56,18,26,7,14,27,28,57,51,33,30,58,59,31]))),et=(0,X.lazy)(()=>i(()=>import(`./TaskDetail-D-f_Ao2a.js`),__vite__mapDeps([60,1,2,3,4,44,5,6,36,16,17,18,48,23,49,25,26,7,14,27,28,50,42,29,33,61,62,63,52,30,31,32]))),tt=(0,X.lazy)(()=>i(()=>import(`./ProjectDetail-ZYQG9yn2.js`),__vite__mapDeps([64,2,44,3,4,6,65,12,16,17,18,20,48,49,25,50,29,51,30,58]))),nt=(0,X.lazy)(()=>i(()=>import(`./Scheduler-Bs3DC0re.js`),__vite__mapDeps([66,1,2,3,4,44,6,7,8,67,39,54,68,22,69,18,25,26,14,27,28,70,33,30,58,59]))),rt=(0,X.lazy)(()=>i(()=>import(`./Profile-qnuRN5Qv.js`),__vite__mapDeps([71,2,44,3,45,4,6,9,11,12,14,72,17,47,73,7,28,29,51,30,40,48,49,50,52,58]))),it=(0,X.lazy)(()=>i(()=>import(`./Users-CQNcXLyV.js`),__vite__mapDeps([74,2,44,3,45,4,6,12,46,36,13,14,72,17,47,21,69,56,49,25,26,7,27,28,50,75,51,52]))),at=(0,X.lazy)(()=>i(()=>import(`./Settings-C3ad44vP.js`),__vite__mapDeps([76,2,3,4,6,8,15,38,69,48,30]))),ot=(0,X.lazy)(()=>i(()=>import(`./TaskExecutions-BeodRIz1.js`),__vite__mapDeps([77,1,2,3,4,44,6,8,46,36,37,62,54,68,26,7,14,27,28,42,70,33,30,58]))),st=(0,Q.jsx)(`div`,{className:`flex items-center justify-center p-8 h-full min-h-[50vh]`,children:(0,Q.jsx)(`div`,{className:`w-8 h-8 rounded-full border-4 border-outline-variant/30 border-t-primary animate-spin`})});function $({children:e,roles:t}){let{user:n,isLoading:i}=j();return i?(0,Q.jsx)(`div`,{className:`flex items-center justify-center h-screen bg-surface`,children:(0,Q.jsx)(`div`,{className:`w-12 h-12 rounded-full border-4 border-outline-variant/30 border-t-primary animate-spin`})}):n?t&&!t.includes(n.role||``)?(0,Q.jsx)(r,{to:`/`,replace:!0}):(0,Q.jsx)(Q.Fragment,{children:e}):(0,Q.jsx)(r,{to:`/login`,replace:!0})}function ct(){return(0,Q.jsx)(P,{title:`The app shell crashed`,description:`A rendering error escaped the route tree. Retry to recover the application shell.`,children:(0,Q.jsxs)(He,{children:[(0,Q.jsx)(qe,{}),(0,Q.jsx)(Ge,{children:(0,Q.jsx)(l,{children:(0,Q.jsxs)(o,{children:[(0,Q.jsx)(n,{path:`/login`,element:(0,Q.jsx)(P,{title:`Unable to render login`,children:(0,Q.jsx)(Je,{})})}),(0,Q.jsx)(n,{path:`/register`,element:(0,Q.jsx)(P,{title:`Unable to render registration`,children:(0,Q.jsx)(Ye,{})})}),(0,Q.jsx)(n,{path:`/*`,element:(0,Q.jsx)($,{children:(0,Q.jsx)(We,{children:(0,Q.jsx)(Ve,{children:(0,Q.jsx)(X.Suspense,{fallback:st,children:(0,Q.jsxs)(o,{children:[(0,Q.jsx)(n,{path:`/`,element:(0,Q.jsx)(P,{title:`Unable to render task manager`,children:(0,Q.jsx)($e,{})})}),(0,Q.jsx)(n,{path:`/projects/:projectId/tasks/:taskId`,element:(0,Q.jsx)(P,{title:`Unable to render task detail`,children:(0,Q.jsx)(et,{})})}),(0,Q.jsx)(n,{path:`/projects/:projectId`,element:(0,Q.jsx)(P,{title:`Unable to render project detail`,children:(0,Q.jsx)(tt,{})})}),(0,Q.jsx)(n,{path:`/agents`,element:(0,Q.jsx)(P,{title:`Unable to render agents`,children:(0,Q.jsx)(Xe,{})})}),(0,Q.jsx)(n,{path:`/providers`,element:(0,Q.jsx)(P,{title:`Unable to render providers`,children:(0,Q.jsx)(Ze,{})})}),(0,Q.jsx)(n,{path:`/scheduler`,element:(0,Q.jsx)(P,{title:`Unable to render scheduler`,children:(0,Q.jsx)(nt,{})})}),(0,Q.jsx)(n,{path:`/scheduler/tasks/:taskId/executions`,element:(0,Q.jsx)(P,{title:`Unable to render task executions`,children:(0,Q.jsx)(ot,{})})}),(0,Q.jsx)(n,{path:`/profile`,element:(0,Q.jsx)(P,{title:`Unable to render profile`,children:(0,Q.jsx)(rt,{})})}),(0,Q.jsx)(n,{path:`/users`,element:(0,Q.jsx)(P,{title:`Unable to render users`,children:(0,Q.jsx)(it,{})})}),(0,Q.jsx)(n,{path:`/settings`,element:(0,Q.jsx)(P,{title:`Unable to render settings`,children:(0,Q.jsx)($,{roles:[`admin`],children:(0,Q.jsx)(at,{})})})}),(0,Q.jsx)(n,{path:`/users/:id`,element:(0,Q.jsx)(P,{title:`Unable to render user details`,children:(0,Q.jsx)($,{roles:[`admin`],children:(0,Q.jsx)(Qe,{})})})}),(0,Q.jsx)(n,{path:`*`,element:(0,Q.jsx)(r,{to:`/`,replace:!0})})]})})})})})})]})})}),(0,Q.jsx)(Ke,{})]})})}var lt=new Pe({defaultOptions:{queries:{retry:1,staleTime:3e4,refetchOnWindowFocus:!1},mutations:{retry:0}}});(0,Fe.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(X.StrictMode,{children:(0,Q.jsx)(ce,{client:lt,children:(0,Q.jsx)(ct,{})})}));
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentFleet-B8p5vbKK.js","assets/vendor-query-xpDrc4rM.js","assets/rolldown-runtime-COnpUsM8.js","assets/vendor-dnd-CfaHPvi0.js","assets/vendor-markdown-DoJbQ1of.js","assets/vendor-forms-DHyqHeyd.js","assets/client-B553SX3l.js","assets/vendor-motion-CMGWJcqR.js","assets/activity-B_2QSywM.js","assets/box-CFDcDxHv.js","assets/brain-DWTpby6b.js","assets/check-BiORptL3.js","assets/chevron-down-BUOg3vvd.js","assets/circle-alert-sCcf7ANF.js","assets/circle-check-Jz8IOE4h.js","assets/terminal-B6iyNuAm.js","assets/MarkdownField-DR6tHsei.js","assets/eye-CjrFwZG_.js","assets/sparkles-krUpxie4.js","assets/providers-AawjMy3x.js","assets/layers-CVf8_Byb.js","assets/loader-circle-CB6PQwdc.js","assets/plus-CkteVqhM.js","assets/send-iK1X7WSe.js","assets/settings-BpKLGxm8.js","assets/trash-2-CphQfk35.js","assets/ConfirmDialog-BltdtevE.js","assets/info-DGHChFI6.js","assets/x-CCZGYGDC.js","assets/agents-YQJ7JNfI.js","assets/useNotification-DQayTSUL.js","assets/agentEmojis-BQA0jC3z.js","assets/taskFormSchemas-B6YlRxrx.js","assets/tasks-DHsBE-ea.js","assets/Providers-JAClEFt0.js","assets/cn-CWOQtFh4.js","assets/chevron-right-Bm_d1KKk.js","assets/clock-CSNFJjo4.js","assets/cpu-C2_GFeSH.js","assets/database-zXW48-_N.js","assets/rocket-B9Iexkcw.js","assets/server-BBmM-vrg.js","assets/zap-BDAytXMX.js","assets/UserDetail-mWjJPTzO.js","assets/vendor-react-BmVaKUwY.js","assets/UserAvatar-Z5W8S1dG.js","assets/chevron-left-B0NmQyxK.js","assets/users-BcnlUG5N.js","assets/save-Cmqi1IkN.js","assets/shield-check-YKs9kUNq.js","assets/user-Brcjlps5.js","assets/projects-DoalTI7c.js","assets/AuthContextInstance-DiFo9Qb2.js","assets/TaskManager-DrFbuAwN.js","assets/panels-top-left-Cp169WzB.js","assets/paperclip-5Y367YTj.js","assets/shield-alert-Do_Sg9SX.js","assets/AppErrorBoundary-BwnK_K-O.js","assets/useProject-DhK9Ze6F.js","assets/usePersistentFlag-R3_SXL_2.js","assets/TaskDetail-Blphf9tw.js","assets/AttachmentItem-C_uUACPz.js","assets/download-DZdOdijy.js","assets/file-text-CX_Yqfjf.js","assets/ProjectDetail-dwZDzb0m.js","assets/briefcase-mFWNV6w9.js","assets/Scheduler-C1HQNxQ6.js","assets/bot-DadO9w3D.js","assets/trending-up-ClGbkbN9.js","assets/refresh-cw-BgDsJOC_.js","assets/recurrent-tasks-7thk45mk.js","assets/Profile-ByioVLM8.js","assets/user-plus-0Y0M1GKi.js","assets/auth-Lh2N3iYN.js","assets/Users-FaX0thJx.js","assets/users-tdyaGZbx.js","assets/Settings-Cjn2xdo1.js","assets/TaskExecutions-ydR4KPCY.js"])))=>i.map(i=>d[i]);
2
+ import{a as e}from"./rolldown-runtime-COnpUsM8.js";import{g as t}from"./vendor-dnd-CfaHPvi0.js";import{a as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"./vendor-react-BmVaKUwY.js";import{C as d,D as f,E as p,M as m,N as h,O as g,S as _,T as v,_ as y,a as ee,b,d as te,f as ne,g as x,h as re,j as S,l as C,m as ie,n as ae,o as oe,p as se,r as ce,u as w,v as T,w as le,x as E,y as D}from"./vendor-query-xpDrc4rM.js";import{r as ue}from"./vendor-markdown-DoJbQ1of.js";import{i as O,n as k,r as de}from"./client-B553SX3l.js";import{t as fe}from"./bot-DadO9w3D.js";import{t as pe}from"./briefcase-mFWNV6w9.js";import{t as me}from"./circle-alert-sCcf7ANF.js";import{t as he}from"./circle-check-Jz8IOE4h.js";import{n as ge,t as A}from"./auth-Lh2N3iYN.js";import{t as _e}from"./info-DGHChFI6.js";import{t as ve}from"./panels-top-left-Cp169WzB.js";import{t as ye}from"./plus-CkteVqhM.js";import{t as be}from"./server-BBmM-vrg.js";import{t as xe}from"./settings-BpKLGxm8.js";import{t as Se}from"./users-tdyaGZbx.js";import{t as Ce}from"./x-CCZGYGDC.js";import{n as we,t as Te}from"./useProject-DhK9Ze6F.js";import{n as j,t as Ee}from"./AuthContextInstance-DiFo9Qb2.js";import{n as De,t as M}from"./vendor-motion-CMGWJcqR.js";import{n as Oe}from"./projects-DoalTI7c.js";import{n as ke,t as N}from"./useNotification-DQayTSUL.js";import{t as Ae}from"./UserAvatar-Z5W8S1dG.js";import{t as P}from"./AppErrorBoundary-BwnK_K-O.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function F(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{te(e,()=>t.signal,()=>n=!0)},u=ie(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?se:ne;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?je:I,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:I(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function I(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function je(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}m(),g(),p();var L,R,z,Me=(L=new WeakMap,R=new WeakMap,z=new WeakMap,class extends h{constructor(e={}){super(),S(this,L,void 0),S(this,R,void 0),S(this,z,void 0),this.config=e,f(L,this,new Set),f(R,this,new Map),f(z,this,0)}build(e,t,n){var r;let i=new ee({client:e,mutationCache:this,mutationId:f(z,this,(r=v(z,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){v(L,this).add(e);let t=B(e);if(typeof t==`string`){let n=v(R,this).get(t);n?n.push(e):v(R,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(v(L,this).delete(e)){let t=B(e);if(typeof t==`string`){let n=v(R,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&v(R,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=B(e);if(typeof t==`string`){let n=v(R,this).get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=B(e);return typeof t==`string`?(v(R,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){w.batch(()=>{v(L,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),v(L,this).clear(),v(R,this).clear()})}getAll(){return Array.from(v(L,this))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>T(t,e))}findAll(e={}){return this.getAll().filter(t=>T(e,t))}notify(e){w.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return w.batch(()=>Promise.all(e.map(e=>e.continue().catch(b))))}});function B(e){return e.options.scope?.id}m(),g(),p();var V,Ne=(V=new WeakMap,class extends h{constructor(e={}){super(),S(this,V,void 0),this.config=e,f(V,this,new Map)}build(e,t,n){let r=t.queryKey,i=t.queryHash??y(r,t),a=this.get(i);return a||(a=new oe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){v(V,this).has(e.queryHash)||(v(V,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=v(V,this).get(e.queryHash);t&&(e.destroy(),t===e&&v(V,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){w.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return v(V,this).get(e)}getAll(){return[...v(V,this).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>D(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>D(e,t)):t}notify(e){w.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){w.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){w.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}});m(),g(),p();var H,U,W,G,K,q,J,Y,Pe=(H=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap,K=new WeakMap,q=new WeakMap,J=new WeakMap,Y=new WeakMap,class{constructor(e={}){S(this,H,void 0),S(this,U,void 0),S(this,W,void 0),S(this,G,void 0),S(this,K,void 0),S(this,q,void 0),S(this,J,void 0),S(this,Y,void 0),f(H,this,e.queryCache||new Ne),f(U,this,e.mutationCache||new Me),f(W,this,e.defaultOptions||{}),f(G,this,new Map),f(K,this,new Map),f(q,this,0)}mount(){var e;f(q,this,(e=v(q,this),e++,e)),v(q,this)===1&&(f(J,this,le.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(H,this).onFocus())})),f(Y,this,C.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(H,this).onOnline())})))}unmount(){var e;f(q,this,(e=v(q,this),e--,e)),v(q,this)===0&&(v(J,this)?.call(this),f(J,this,void 0),v(Y,this)?.call(this),f(Y,this,void 0))}isFetching(e){return v(H,this).findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return v(U,this).findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return v(H,this).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=v(H,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return v(H,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=v(H,this).get(r.queryHash)?.state.data,a=re(t,i);if(a!==void 0)return v(H,this).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return w.batch(()=>v(H,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return v(H,this).get(t.queryHash)?.state}removeQueries(e){let t=v(H,this);w.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=v(H,this);return w.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=w.batch(()=>v(H,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(b).catch(b)}invalidateQueries(e,t={}){return w.batch(()=>(v(H,this).findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=w.batch(()=>v(H,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(b)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(b)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=v(H,this).build(this,t);return n.isStaleByTime(_(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(b).catch(b)}fetchInfiniteQuery(e){return e.behavior=F(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(b).catch(b)}ensureInfiniteQueryData(e){return e.behavior=F(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return C.isOnline()?v(U,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(H,this)}getMutationCache(){return v(U,this)}getDefaultOptions(){return v(W,this)}setDefaultOptions(e){f(W,this,e)}setQueryDefaults(e,t){v(G,this).set(x(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...v(G,this).values()],n={};return t.forEach(t=>{E(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){v(K,this).set(x(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...v(K,this).values()],n={};return t.forEach(t=>{E(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...v(W,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=y(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===d&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...v(W,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(H,this).clear(),v(U,this).clear()}}),X=e(t(),1),Fe=u(),Ie=O(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Le=O(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Re=O(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),Z=O(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Q=ue(),ze=()=>{let{activeProject:e,loading:t,refreshProjects:n}=Te(),{logout:r,user:i}=j(),[a,o]=(0,X.useState)(!1),c=i?.role===`admin`,l=[{icon:Re,label:`Task Manager`,path:`/`},{icon:Ie,label:`Scheduler`,path:`/scheduler`},{icon:fe,label:`Agents`,path:`/agents`},{icon:be,label:`Providers`,path:`/providers`}];return(0,Q.jsxs)(`aside`,{className:`h-screen w-64 sticky top-0 bg-surface-container-low flex flex-col py-6 shadow-xl z-50 transition-all duration-300`,role:`complementary`,"aria-label":`Main sidebar`,children:[(0,Q.jsxs)(`div`,{className:`px-6 mb-8`,children:[(0,Q.jsx)(`h1`,{className:`text-lg font-black text-primary font-headline tracking-tight uppercase`,children:`Orchestrator`}),(0,Q.jsx)(`p`,{className:`text-[10px] text-on-surface-variant font-medium tracking-[0.2em] mt-1`,children:`AI CONTROL CENTER`})]}),(0,Q.jsx)(`div`,{className:`px-3 mb-8`,children:t?(0,Q.jsx)(`div`,{className:`mx-3 h-16 bg-surface-container-highest/20 rounded-xl animate-pulse border border-outline-variant/10`}):e?(0,Q.jsxs)(s,{to:`/projects/${e.id}`,className:({isActive:e})=>`group relative mx-2 p-4 rounded-xl bg-surface-container-high border transition-all cursor-pointer overflow-hidden block ${e?`border-primary shadow-lg shadow-primary/5 ring-1 ring-primary/20`:`border-outline-variant/10 hover:border-primary/30`}`,children:[(0,Q.jsx)(`div`,{className:`absolute top-0 right-0 p-2 opacity-10 group-hover:opacity-30 transition-opacity`,children:(0,Q.jsx)(pe,{size:24,className:`text-primary`})}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Q.jsx)(`div`,{className:`w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary border border-primary/20`,children:(0,Q.jsx)(ve,{size:16})}),(0,Q.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,Q.jsx)(`p`,{className:`text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/50 leading-none mb-1`,children:`Active Project`}),(0,Q.jsx)(`h3`,{className:`text-xs font-bold text-white truncate`,children:e.title})]})]})]}):c?(0,Q.jsxs)(`button`,{onClick:()=>o(!0),className:`w-full mx-auto px-4 py-4 rounded-xl bg-secondary/10 border border-secondary/20 hover:bg-secondary/20 hover:border-secondary/40 transition-all group flex flex-col items-center gap-2 text-center`,children:[(0,Q.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-secondary/20 flex items-center justify-center text-secondary group-hover:scale-110 transition-transform`,children:(0,Q.jsx)(ye,{size:16})}),(0,Q.jsx)(`span`,{className:`text-[10px] font-black uppercase tracking-widest text-secondary`,children:`Create Project`})]}):(0,Q.jsx)(`div`,{className:`mx-2 px-4 py-4 rounded-xl bg-surface-container-high border border-outline-variant/10 text-center`,children:(0,Q.jsx)(`p`,{className:`text-[10px] font-black uppercase tracking-widest text-on-surface-variant`,children:`No Project Assigned`})})}),(0,Q.jsx)(ge,{isOpen:a,onClose:()=>o(!1),onCreated:n,canCreate:c,blockedReason:`Only admins can create projects.`}),(0,Q.jsxs)(`nav`,{className:`flex-1 px-3 space-y-2`,"aria-label":`Main navigation`,children:[l.map(e=>(0,Q.jsxs)(s,{to:e.path,className:({isActive:e})=>`flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-300 group ${e?`text-secondary border-r-2 border-secondary bg-gradient-to-r from-secondary/10 to-transparent`:`text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high`}`,children:[(0,Q.jsx)(e.icon,{size:20}),(0,Q.jsx)(`span`,{className:`font-body text-sm`,children:e.label})]},e.path)),c&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`px-4 pt-4 pb-1`,children:(0,Q.jsx)(`p`,{className:`text-[9px] font-black uppercase tracking-[0.2em] text-on-surface-variant/40`,children:`Administration`})}),(0,Q.jsxs)(s,{to:`/users`,className:({isActive:e})=>`flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-300 group ${e?`text-secondary border-r-2 border-secondary bg-gradient-to-r from-secondary/10 to-transparent`:`text-on-surface-variant hover:text-on-surface hover:bg-surface-container-high`}`,children:[(0,Q.jsx)(Se,{size:20}),(0,Q.jsx)(`span`,{className:`font-body text-sm`,children:`Users`})]})]})]}),(0,Q.jsx)(`div`,{className:`px-3 space-y-2 pt-6`,children:(0,Q.jsxs)(`div`,{className:`pt-4 border-t border-outline-variant/20`,children:[(0,Q.jsxs)(`a`,{href:`https://github.com/bpinhosilva/agent-orchestrator/issues`,target:`_blank`,rel:`noreferrer`,className:`flex items-center gap-3 px-4 py-2 rounded-lg text-on-surface-variant hover:text-on-surface transition-all`,children:[(0,Q.jsx)(Le,{size:20}),(0,Q.jsx)(`span`,{className:`font-body text-sm`,children:`Help`})]}),(0,Q.jsxs)(`button`,{onClick:r,className:`w-full flex items-center gap-3 px-4 py-2 rounded-lg text-on-surface-variant hover:text-on-surface transition-all`,children:[(0,Q.jsx)(Z,{size:20}),(0,Q.jsx)(`span`,{className:`font-body text-sm`,children:`Logout`})]})]})})]})},Be=()=>{let{user:e,logout:t}=j(),n=c(),r=e?`${e.name} ${e.lastName}`.trim():`Agent`;return(0,Q.jsxs)(`header`,{role:`banner`,className:`w-full top-0 sticky bg-surface flex items-center justify-between px-6 py-3 shadow-[0_8px_32px_rgba(173,198,255,0.06)] z-40`,children:[(0,Q.jsx)(`div`,{className:`flex items-center gap-8`,children:(0,Q.jsx)(`div`,{className:`hidden md:flex items-center gap-6`,children:(0,Q.jsx)(`a`,{href:`https://github.com/bpinhosilva/agent-orchestrator/blob/main/README.md`,target:`_blank`,rel:`noreferrer`,className:`text-on-surface-variant hover:text-primary transition-colors font-headline text-sm tracking-tight`,children:`Docs`})})}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,Q.jsxs)(`div`,{className:`hidden sm:flex flex-col items-end mr-2`,children:[(0,Q.jsx)(`span`,{className:`text-xs font-bold text-on-surface leading-none`,children:r}),(0,Q.jsx)(`span`,{className:`text-[10px] text-on-surface-variant uppercase tracking-widest`,children:e?.email||`Active Protocol`})]}),(0,Q.jsx)(`button`,{onClick:()=>n(`/settings`),"aria-label":`Settings`,className:`text-on-surface-variant hover:text-primary transition-all active:scale-95 duration-200`,children:(0,Q.jsx)(xe,{size:20,"aria-hidden":`true`})}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-3 pl-4 border-l border-outline-variant/20`,children:[(0,Q.jsx)(`button`,{onClick:()=>n(`/profile`),"aria-label":`Open profile`,title:`View profile`,className:`w-8 h-8 rounded-full overflow-hidden ring-2 ring-primary/20 hover:ring-primary/60 transition-all active:scale-95 duration-200`,children:(0,Q.jsx)(Ae,{name:r,avatar:e?.avatar,avatarUrl:e?.avatarUrl,alt:`User avatar`,className:`h-full w-full`})}),(0,Q.jsx)(`button`,{onClick:t,className:`p-2 text-on-surface-variant hover:text-error transition-all active:scale-95 duration-200 rounded-lg hover:bg-error/10`,title:`Terminate Session`,children:(0,Q.jsx)(Z,{size:18})})]})]})]})},Ve=({children:e})=>(0,Q.jsxs)(`div`,{className:`flex min-h-screen bg-surface text-on-surface overflow-hidden`,children:[(0,Q.jsx)(ze,{}),(0,Q.jsxs)(`div`,{className:`flex-1 flex flex-col h-screen relative overflow-hidden`,children:[(0,Q.jsx)(Be,{}),(0,Q.jsx)(`main`,{className:`flex-1 overflow-y-auto p-8 custom-scrollbar`,children:e})]})]}),He=({children:e})=>{let[t,n]=(0,X.useState)({isOpen:!1,type:`info`,title:``,message:``}),r=(0,X.useCallback)((e,t)=>{n({isOpen:!0,type:`success`,title:e,message:t})},[]),i=(0,X.useCallback)((e,t)=>{n({isOpen:!0,type:`error`,title:e,message:t})},[]),a=(0,X.useCallback)((e,t)=>{let r=e,i=r.response?.data,a=i?.errors,o=a?.length?a.join(`
3
+ `):i?.message||r.message||`An unexpected error occurred`;n({isOpen:!0,type:`error`,title:t||r.response?.statusText||`Backend Error`,message:o})},[]),o=(0,X.useCallback)((e,t)=>{n({isOpen:!0,type:`info`,title:e,message:t})},[]),s=(0,X.useCallback)(()=>{n(e=>({...e,isOpen:!1}))},[]);return(0,Q.jsx)(ke.Provider,{value:{notifySuccess:r,notifyError:i,notifyApiError:a,notifyInfo:o,closeNotification:s,state:t},children:e})},Ue=[`projects`],We=({children:e})=>{let[t,n]=(0,X.useState)(null),{data:r=[],isPending:i,isFetching:a,refetch:o}=ae({queryKey:Ue,queryFn:async()=>(await Oe.findAll()).data}),s=(0,X.useMemo)(()=>r.length===0?null:r.find(e=>e.id===t)??r[0]??null,[t,r]),c=(0,X.useCallback)(async()=>{await o()},[o]),l=(0,X.useCallback)(e=>{n(t=>r.find(t=>t.id===e)?.id??t)},[r]),u=(0,X.useMemo)(()=>({projects:r,activeProject:s,loading:i||a,refreshProjects:c,setActiveProjectById:l}),[s,a,i,r,c,l]);return(0,Q.jsx)(we.Provider,{value:u,children:e})},Ge=({children:e})=>{let[t,n]=(0,X.useState)(null),[r,i]=(0,X.useState)(!0),a=(0,X.useCallback)(()=>{n(null)},[]),o=(0,X.useCallback)(async()=>{try{await A.logout()}finally{a()}},[a]),s=(0,X.useCallback)(async()=>{try{i(!0),n(await A.me())}catch{a()}finally{i(!1)}},[a]);(0,X.useEffect)(()=>{s()},[s]),(0,X.useEffect)(()=>(k(a),()=>{k(null)}),[a]);let c=async(e,t)=>{await A.login(e,t),n(await A.me())},l={user:t,token:t?`authenticated`:null,isLoading:r,login:c,register:async(e,t,n,r)=>{await A.register(e,t,n,r),await c(n,r)},logout:o,refreshUser:s};return(0,Q.jsx)(Ee.Provider,{value:l,children:e})},Ke=()=>{let{state:e,closeNotification:t}=N(),{isOpen:n,type:r,title:i,message:a}=e;X.useEffect(()=>{let e=e=>{e.key===`Escape`&&t()};return n&&window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n,t]);let o={success:{icon:(0,Q.jsx)(he,{className:`text-secondary`,size:24}),bgIcon:`bg-secondary/10`,accent:`from-secondary/40`,shadow:`shadow-secondary/10`},error:{icon:(0,Q.jsx)(me,{className:`text-error`,size:24}),bgIcon:`bg-error/10`,accent:`from-error/40`,shadow:`shadow-error/10`},info:{icon:(0,Q.jsx)(_e,{className:`text-primary`,size:24}),bgIcon:`bg-primary/10`,accent:`from-primary/40`,shadow:`shadow-primary/10`}}[r];return(0,Q.jsx)(De,{children:n&&(0,Q.jsxs)(`div`,{className:`fixed inset-0 z-[100] flex items-center justify-center p-4`,children:[(0,Q.jsx)(M.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t,className:`absolute inset-0 bg-background/60 backdrop-blur-sm`}),(0,Q.jsxs)(M.div,{initial:{opacity:0,scale:.9,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:10},className:`relative w-full max-w-sm bg-surface-container-low/95 backdrop-blur-2xl rounded-3xl shadow-2xl p-8 border border-outline-variant/10 overflow-hidden ${o.shadow}`,children:[(0,Q.jsxs)(`div`,{className:`flex flex-col items-center text-center space-y-6`,children:[(0,Q.jsx)(`div`,{className:`w-16 h-16 rounded-2xl ${o.bgIcon} flex items-center justify-center`,children:o.icon}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`h3`,{className:`text-xl font-headline font-bold text-on-surface tracking-tight`,children:i}),(0,Q.jsx)(`p`,{className:`text-sm text-on-surface-variant/70 leading-relaxed font-medium`,children:a})]}),(0,Q.jsx)(`button`,{onClick:t,className:`w-full bg-surface-container-high hover:bg-surface-container-highest text-on-surface text-[10px] font-black uppercase tracking-[0.2em] py-4 rounded-2xl transition-all active:scale-95`,children:`Dismiss`})]}),(0,Q.jsx)(`button`,{onClick:t,className:`absolute top-4 right-4 p-2 rounded-full hover:bg-white/5 transition-colors text-on-surface-variant/20 hover:text-white`,children:(0,Q.jsx)(Ce,{size:16})}),(0,Q.jsx)(`div`,{className:`absolute top-0 right-0 w-24 h-1 bg-gradient-to-l ${o.accent} to-transparent opacity-50`}),(0,Q.jsx)(`div`,{className:`absolute bottom-0 left-0 w-16 h-16 ${o.bgIcon} blur-3xl opacity-20 rounded-full -ml-8 -mb-8`})]})]})})},qe=()=>{let{notifyError:e}=N();return(0,X.useEffect)(()=>{de(e)},[e]),null},Je=()=>{let[e,t]=(0,X.useState)(``),[n,r]=(0,X.useState)(``),[i,a]=(0,X.useState)(null),[o,s]=(0,X.useState)(!1),[l,u]=(0,X.useState)(!1),{login:d}=j(),f=c();return(0,Q.jsxs)(`div`,{className:`bg-surface font-body text-on-surface selection:bg-primary selection:text-on-primary min-h-screen`,children:[(0,Q.jsxs)(`header`,{className:`fixed top-0 w-full flex justify-between items-center px-6 py-4 bg-transparent z-50`,children:[(0,Q.jsx)(`div`,{className:`text-xl font-bold tracking-tight text-[#adc6ff] font-headline`,children:`Agent Orchestrator`}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-4 text-slate-400`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined hover:text-[#adc6ff] transition-colors cursor-pointer`,children:`help_outline`}),(0,Q.jsx)(`span`,{className:`material-symbols-outlined hover:text-[#adc6ff] transition-colors cursor-pointer`,children:`dark_mode`})]})]}),(0,Q.jsxs)(`main`,{className:`min-h-screen flex items-center justify-center bg-glow relative px-4 overflow-hidden`,children:[(0,Q.jsxs)(`div`,{className:`absolute inset-0 z-0 pointer-events-none opacity-20`,children:[(0,Q.jsx)(`div`,{className:`absolute top-1/4 left-1/4 w-96 h-96 bg-primary blur-[120px] rounded-full`}),(0,Q.jsx)(`div`,{className:`absolute bottom-1/4 right-1/4 w-96 h-96 bg-tertiary blur-[120px] rounded-full`})]}),(0,Q.jsxs)(`section`,{className:`glass-panel ghost-border w-full max-w-md rounded-xl p-8 md:p-12 relative z-10 accent-glow`,children:[(0,Q.jsxs)(`div`,{className:`flex flex-col items-center mb-10`,children:[(0,Q.jsx)(`div`,{className:`w-16 h-16 bg-primary-container rounded-full flex items-center justify-center mb-6 ghost-border`,children:(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-primary text-4xl`,style:{fontVariationSettings:`'FILL' 1`},children:`deployed_code`})}),(0,Q.jsx)(`h1`,{className:`font-headline text-2xl font-extrabold tracking-tight text-on-surface uppercase mb-2`,children:`Agent Orchestrator`}),(0,Q.jsx)(`p`,{className:`font-label text-xs tracking-widest text-on-surface-variant uppercase`,children:`Neural Gateway`})]}),i&&(0,Q.jsxs)(`div`,{className:`mb-6 p-4 bg-error-container/20 border border-error/20 rounded-lg flex items-center gap-3 animate-in fade-in slide-in-from-top-4 duration-300`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-error text-xl`,children:`error`}),(0,Q.jsx)(`p`,{className:`text-error text-sm font-medium`,children:i})]}),(0,Q.jsxs)(`form`,{className:`space-y-6`,onSubmit:async t=>{t.preventDefault(),a(null),s(!0);try{await d(e,n),f(`/`)}catch(e){let t=e.response?.data?.message||`Authentication failed. Please check your credentials.`;Array.isArray(t)&&(t=t.join(`. `)),a(t)}finally{s(!1)}},children:[(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Identity Protocol`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`alternate_email`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`email@aetheric.logic`,type:`email`,value:e,onChange:e=>t(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`div`,{className:`flex justify-between items-center ml-1`,children:(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline`,children:`Security Key`})}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`vibration`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-12 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`••••••••••••`,type:l?`text`:`password`,value:n,onChange:e=>r(e.target.value),required:!0}),(0,Q.jsx)(`button`,{className:`absolute right-4 top-1/2 -translate-y-1/2 text-outline hover:text-on-surface transition-colors`,type:`button`,onClick:()=>u(!l),children:(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-xl`,children:l?`visibility_off`:`visibility`})})]})]}),(0,Q.jsxs)(`div`,{className:`pt-4 space-y-4`,children:[(0,Q.jsx)(`button`,{className:`w-full bg-primary hover:bg-primary-fixed-dim text-on-primary font-headline font-bold py-4 rounded-lg shadow-lg shadow-primary/10 active:scale-[0.98] transition-all flex items-center justify-center gap-2 group disabled:opacity-50 disabled:cursor-not-allowed`,type:`submit`,disabled:o,children:o?(0,Q.jsx)(`div`,{className:`w-5 h-5 border-2 border-on-primary/30 border-t-on-primary rounded-full animate-spin`}):(0,Q.jsxs)(Q.Fragment,{children:[`Initiate Session`,(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-lg group-hover:translate-x-1 transition-transform`,children:`bolt`})]})}),(0,Q.jsx)(`div`,{className:`flex flex-col gap-3`})]})]})]})]}),(0,Q.jsxs)(`footer`,{className:`fixed bottom-0 w-full flex flex-col md:flex-row justify-center items-center gap-4 pb-8 bg-transparent z-50`,children:[(0,Q.jsx)(`p`,{className:`text-[10px] uppercase tracking-widest text-slate-500`,children:`© 2024 Agent Orchestrator. All rights reserved.`}),(0,Q.jsxs)(`div`,{className:`flex gap-6`,children:[(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Security Architecture`}),(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Privacy Policy`}),(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Terms of Service`})]})]})]})},Ye=()=>{let[e,t]=(0,X.useState)(``),[n,r]=(0,X.useState)(``),[i,o]=(0,X.useState)(``),[s,l]=(0,X.useState)(``),[u,d]=(0,X.useState)(``),[f,p]=(0,X.useState)(null),[m,h]=(0,X.useState)(!1),{register:g}=j(),_=c();return(0,Q.jsxs)(`div`,{className:`bg-surface font-body text-on-surface selection:bg-primary selection:text-on-primary min-h-screen`,children:[(0,Q.jsxs)(`header`,{className:`fixed top-0 w-full flex justify-between items-center px-6 py-4 bg-transparent z-50`,children:[(0,Q.jsx)(`div`,{className:`text-xl font-bold tracking-tight text-[#adc6ff] font-headline`,children:`Agent Orchestrator`}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-4 text-slate-400`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined hover:text-[#adc6ff] transition-colors cursor-pointer`,children:`help_outline`}),(0,Q.jsx)(`span`,{className:`material-symbols-outlined hover:text-[#adc6ff] transition-colors cursor-pointer`,children:`dark_mode`})]})]}),(0,Q.jsxs)(`main`,{className:`min-h-screen flex items-center justify-center bg-glow relative px-4 overflow-hidden py-20`,children:[(0,Q.jsxs)(`div`,{className:`absolute inset-0 z-0 pointer-events-none opacity-20`,children:[(0,Q.jsx)(`div`,{className:`absolute top-1/4 left-1/4 w-96 h-96 bg-primary blur-[120px] rounded-full`}),(0,Q.jsx)(`div`,{className:`absolute bottom-1/4 right-1/4 w-96 h-96 bg-tertiary blur-[120px] rounded-full`})]}),(0,Q.jsxs)(`section`,{className:`glass-panel ghost-border w-full max-w-md rounded-xl p-8 md:p-12 relative z-10 accent-glow`,children:[(0,Q.jsxs)(`div`,{className:`flex flex-col items-center mb-10`,children:[(0,Q.jsx)(`div`,{className:`w-16 h-16 bg-primary-container rounded-full flex items-center justify-center mb-6 ghost-border`,children:(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-primary text-4xl`,style:{fontVariationSettings:`'FILL' 1`},children:`person_add`})}),(0,Q.jsx)(`h1`,{className:`font-headline text-2xl font-extrabold tracking-tight text-on-surface uppercase mb-2`,children:`Registration`}),(0,Q.jsx)(`p`,{className:`font-label text-xs tracking-widest text-on-surface-variant uppercase`,children:`New Agent Protocol`})]}),f&&(0,Q.jsxs)(`div`,{className:`mb-6 p-4 bg-error-container/20 border border-error/20 rounded-lg flex items-center gap-3 animate-in fade-in slide-in-from-top-4 duration-300`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-error text-xl`,children:`error`}),(0,Q.jsx)(`p`,{className:`text-error text-sm font-medium`,children:f})]}),(0,Q.jsxs)(`form`,{className:`space-y-6`,onSubmit:async t=>{if(t.preventDefault(),p(null),s!==u){p(`Security keys do not match. Please re-verify.`);return}h(!0);try{await g(e,n,i,s),_(`/`)}catch(e){let t=e.response?.data?.message||`Protocol registration failed. Please try again.`;Array.isArray(t)&&(t=t.join(`. `)),p(t)}finally{h(!1)}},children:[(0,Q.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-6`,children:[(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`First Name`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`fingerprint`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`Agent`,type:`text`,value:e,onChange:e=>t(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Last Name`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`badge`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`Zero`,type:`text`,value:n,onChange:e=>r(e.target.value),required:!0})]})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Identity Protocol`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`alternate_email`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`email@aetheric.logic`,type:`email`,value:i,onChange:e=>o(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Security Key`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`vibration`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`••••••••••••`,type:`password`,value:s,onChange:e=>l(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(`label`,{className:`font-label text-[10px] uppercase tracking-widest text-outline ml-1`,children:`Re-verify Security Key`}),(0,Q.jsxs)(`div`,{className:`relative group`,children:[(0,Q.jsx)(`span`,{className:`material-symbols-outlined absolute left-4 top-1/2 -translate-y-1/2 text-outline group-focus-within:text-primary transition-colors`,children:`lock_reset`}),(0,Q.jsx)(`input`,{className:`w-full bg-surface-container-lowest border-none rounded-lg py-4 pl-12 pr-4 text-sm font-body text-on-surface placeholder:text-surface-variant focus:ring-1 focus:ring-tertiary transition-all duration-300`,placeholder:`••••••••••••`,type:`password`,value:u,onChange:e=>d(e.target.value),required:!0})]})]}),(0,Q.jsxs)(`div`,{className:`pt-4 space-y-4`,children:[(0,Q.jsx)(`button`,{className:`w-full bg-primary hover:bg-primary-fixed-dim text-on-primary font-headline font-bold py-4 rounded-lg shadow-lg shadow-primary/10 active:scale-[0.98] transition-all flex items-center justify-center gap-2 group disabled:opacity-50 disabled:cursor-not-allowed`,type:`submit`,disabled:m,children:m?(0,Q.jsx)(`div`,{className:`w-5 h-5 border-2 border-on-primary/30 border-t-on-primary rounded-full animate-spin`}):(0,Q.jsxs)(Q.Fragment,{children:[`Initialize Protocol`,(0,Q.jsx)(`span`,{className:`material-symbols-outlined text-lg group-hover:translate-x-1 transition-transform`,children:`bolt`})]})}),(0,Q.jsx)(`div`,{className:`pt-4 text-center`,children:(0,Q.jsxs)(`p`,{className:`font-label text-xs text-outline`,children:[`Already have a protocol?`,` `,(0,Q.jsx)(a,{to:`/login`,className:`text-primary hover:text-tertiary transition-colors font-bold uppercase tracking-widest`,children:`Login`})]})})]})]})]})]}),(0,Q.jsxs)(`footer`,{className:`fixed bottom-0 w-full flex flex-col md:flex-row justify-center items-center gap-4 pb-8 bg-transparent z-50`,children:[(0,Q.jsx)(`p`,{className:`text-[10px] uppercase tracking-widest text-slate-500`,children:`© 2024 Agent Orchestrator. All rights reserved.`}),(0,Q.jsxs)(`div`,{className:`flex gap-6`,children:[(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Security Architecture`}),(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Privacy Policy`}),(0,Q.jsx)(`a`,{className:`text-[10px] uppercase tracking-widest text-slate-600 hover:text-[#adc6ff] transition-opacity duration-200`,href:`#`,children:`Terms of Service`})]})]})]})},Xe=(0,X.lazy)(()=>i(()=>import(`./AgentFleet-B8p5vbKK.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]))),Ze=(0,X.lazy)(()=>i(()=>import(`./Providers-JAClEFt0.js`),__vite__mapDeps([34,1,2,3,4,6,35,7,9,36,37,38,39,19,27,22,40,41,25,26,14,28,42,30]))),Qe=(0,X.lazy)(()=>i(()=>import(`./UserDetail-mWjJPTzO.js`),__vite__mapDeps([43,2,44,3,45,4,46,6,13,14,47,22,48,49,25,50,28,51,52]))),$e=(0,X.lazy)(()=>i(()=>import(`./TaskManager-DrFbuAwN.js`),__vite__mapDeps([53,1,2,3,4,44,6,35,11,37,54,55,56,18,26,7,14,27,28,57,51,33,30,58,59,31]))),et=(0,X.lazy)(()=>i(()=>import(`./TaskDetail-Blphf9tw.js`),__vite__mapDeps([60,1,2,3,4,44,5,6,36,16,17,18,48,23,49,25,26,7,14,27,28,50,42,29,33,61,62,63,52,30,31,32]))),tt=(0,X.lazy)(()=>i(()=>import(`./ProjectDetail-dwZDzb0m.js`),__vite__mapDeps([64,2,44,3,4,6,65,12,16,17,18,20,48,49,25,50,29,51,30,58]))),nt=(0,X.lazy)(()=>i(()=>import(`./Scheduler-C1HQNxQ6.js`),__vite__mapDeps([66,1,2,3,4,44,6,7,8,67,39,54,68,22,69,18,25,26,14,27,28,70,33,30,58,59]))),rt=(0,X.lazy)(()=>i(()=>import(`./Profile-ByioVLM8.js`),__vite__mapDeps([71,2,44,3,45,4,6,9,11,12,14,72,17,47,73,7,28,29,51,30,40,48,49,50,52,58]))),it=(0,X.lazy)(()=>i(()=>import(`./Users-FaX0thJx.js`),__vite__mapDeps([74,2,44,3,45,4,6,12,46,36,13,14,72,17,47,21,69,56,49,25,26,7,27,28,50,75,51,52]))),at=(0,X.lazy)(()=>i(()=>import(`./Settings-Cjn2xdo1.js`),__vite__mapDeps([76,2,3,4,6,8,15,38,69,48,30]))),ot=(0,X.lazy)(()=>i(()=>import(`./TaskExecutions-ydR4KPCY.js`),__vite__mapDeps([77,1,2,3,4,44,6,8,46,36,37,62,54,68,26,7,14,27,28,42,70,33,30,58]))),st=(0,Q.jsx)(`div`,{className:`flex items-center justify-center p-8 h-full min-h-[50vh]`,children:(0,Q.jsx)(`div`,{className:`w-8 h-8 rounded-full border-4 border-outline-variant/30 border-t-primary animate-spin`})});function $({children:e,roles:t}){let{user:n,isLoading:i}=j();return i?(0,Q.jsx)(`div`,{className:`flex items-center justify-center h-screen bg-surface`,children:(0,Q.jsx)(`div`,{className:`w-12 h-12 rounded-full border-4 border-outline-variant/30 border-t-primary animate-spin`})}):n?t&&!t.includes(n.role||``)?(0,Q.jsx)(r,{to:`/`,replace:!0}):(0,Q.jsx)(Q.Fragment,{children:e}):(0,Q.jsx)(r,{to:`/login`,replace:!0})}function ct(){return(0,Q.jsx)(P,{title:`The app shell crashed`,description:`A rendering error escaped the route tree. Retry to recover the application shell.`,children:(0,Q.jsxs)(He,{children:[(0,Q.jsx)(qe,{}),(0,Q.jsx)(Ge,{children:(0,Q.jsx)(l,{children:(0,Q.jsxs)(o,{children:[(0,Q.jsx)(n,{path:`/login`,element:(0,Q.jsx)(P,{title:`Unable to render login`,children:(0,Q.jsx)(Je,{})})}),(0,Q.jsx)(n,{path:`/register`,element:(0,Q.jsx)(P,{title:`Unable to render registration`,children:(0,Q.jsx)(Ye,{})})}),(0,Q.jsx)(n,{path:`/*`,element:(0,Q.jsx)($,{children:(0,Q.jsx)(We,{children:(0,Q.jsx)(Ve,{children:(0,Q.jsx)(X.Suspense,{fallback:st,children:(0,Q.jsxs)(o,{children:[(0,Q.jsx)(n,{path:`/`,element:(0,Q.jsx)(P,{title:`Unable to render task manager`,children:(0,Q.jsx)($e,{})})}),(0,Q.jsx)(n,{path:`/projects/:projectId/tasks/:taskId`,element:(0,Q.jsx)(P,{title:`Unable to render task detail`,children:(0,Q.jsx)(et,{})})}),(0,Q.jsx)(n,{path:`/projects/:projectId`,element:(0,Q.jsx)(P,{title:`Unable to render project detail`,children:(0,Q.jsx)(tt,{})})}),(0,Q.jsx)(n,{path:`/agents`,element:(0,Q.jsx)(P,{title:`Unable to render agents`,children:(0,Q.jsx)(Xe,{})})}),(0,Q.jsx)(n,{path:`/providers`,element:(0,Q.jsx)(P,{title:`Unable to render providers`,children:(0,Q.jsx)(Ze,{})})}),(0,Q.jsx)(n,{path:`/scheduler`,element:(0,Q.jsx)(P,{title:`Unable to render scheduler`,children:(0,Q.jsx)(nt,{})})}),(0,Q.jsx)(n,{path:`/scheduler/tasks/:taskId/executions`,element:(0,Q.jsx)(P,{title:`Unable to render task executions`,children:(0,Q.jsx)(ot,{})})}),(0,Q.jsx)(n,{path:`/profile`,element:(0,Q.jsx)(P,{title:`Unable to render profile`,children:(0,Q.jsx)(rt,{})})}),(0,Q.jsx)(n,{path:`/users`,element:(0,Q.jsx)(P,{title:`Unable to render users`,children:(0,Q.jsx)(it,{})})}),(0,Q.jsx)(n,{path:`/settings`,element:(0,Q.jsx)(P,{title:`Unable to render settings`,children:(0,Q.jsx)($,{roles:[`admin`],children:(0,Q.jsx)(at,{})})})}),(0,Q.jsx)(n,{path:`/users/:id`,element:(0,Q.jsx)(P,{title:`Unable to render user details`,children:(0,Q.jsx)($,{roles:[`admin`],children:(0,Q.jsx)(Qe,{})})})}),(0,Q.jsx)(n,{path:`*`,element:(0,Q.jsx)(r,{to:`/`,replace:!0})})]})})})})})})]})})}),(0,Q.jsx)(Ke,{})]})})}var lt=new Pe({defaultOptions:{queries:{retry:1,staleTime:3e4,refetchOnWindowFocus:!1},mutations:{retry:0}}});(0,Fe.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(X.StrictMode,{children:(0,Q.jsx)(ce,{client:lt,children:(0,Q.jsx)(ct,{})})}));
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./client-BGOBXkO8.js";var t={PLANNING:`planning`,ACTIVE:`active`,ON_HOLD:`on_hold`,COMPLETED:`completed`,ARCHIVED:`archived`},n={create:t=>e.post(`/projects`,t),findAll:(t,n=!1)=>e.get(`/projects`,{params:{userId:t,all:n}}),findOne:t=>e.get(`/projects/${t}`),update:(t,n)=>e.patch(`/projects/${t}`,n),delete:t=>e.delete(`/projects/${t}`),addMember:(t,n,r=`member`)=>e.post(`/projects/${t}/members`,{userId:n,role:r}),removeMember:(t,n)=>e.delete(`/projects/${t}/members/${n}`)};export{n,t};
1
+ import{t as e}from"./client-B553SX3l.js";var t={PLANNING:`planning`,ACTIVE:`active`,ON_HOLD:`on_hold`,COMPLETED:`completed`,ARCHIVED:`archived`},n={create:t=>e.post(`/projects`,t),findAll:(t,n=!1)=>e.get(`/projects`,{params:{userId:t,all:n}}),findOne:t=>e.get(`/projects/${t}`),update:(t,n)=>e.patch(`/projects/${t}`,n),delete:t=>e.delete(`/projects/${t}`),addMember:(t,n,r=`member`)=>e.post(`/projects/${t}/members`,{userId:n,role:r}),removeMember:(t,n)=>e.delete(`/projects/${t}/members/${n}`)};export{n,t};
@@ -1 +1 @@
1
- import{i as e,t}from"./client-BGOBXkO8.js";var n=e(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),r={findAll:()=>t.get(`/models`),findByProvider:e=>t.get(`/models/provider/${e}`),findOne:e=>t.get(`/models/${e}`),create:e=>t.post(`/models`,e),update:(e,n)=>t.patch(`/models/${e}`,n),delete:e=>t.delete(`/models/${e}`)},i={findAll:()=>t.get(`/providers`),findOne:e=>t.get(`/providers/${e}`),findModels:e=>t.get(`/providers/${e}/models`),create:e=>t.post(`/providers`,e),update:(e,n)=>t.patch(`/providers/${e}`,n),delete:e=>t.delete(`/providers/${e}`)};export{r as n,n as r,i as t};
1
+ import{i as e,t}from"./client-B553SX3l.js";var n=e(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),r={findAll:()=>t.get(`/models`),findByProvider:e=>t.get(`/models/provider/${e}`),findOne:e=>t.get(`/models/${e}`),create:e=>t.post(`/models`,e),update:(e,n)=>t.patch(`/models/${e}`,n),delete:e=>t.delete(`/models/${e}`)},i={findAll:()=>t.get(`/providers`),findOne:e=>t.get(`/providers/${e}`),findModels:e=>t.get(`/providers/${e}/models`),create:e=>t.post(`/providers`,e),update:(e,n)=>t.patch(`/providers/${e}`,n),delete:e=>t.delete(`/providers/${e}`)};export{r as n,n as r,i as t};
@@ -1 +1 @@
1
- import{t as e}from"./client-BGOBXkO8.js";import"./tasks-DEUQCNoH.js";var t={ACTIVE:`active`,PAUSED:`paused`,ERROR:`error`},n={RUNNING:`running`,SUCCESS:`success`,FAILURE:`failure`,CANCELED:`canceled`},r={create:(t,n)=>e.post(`/projects/${t}/recurrent-tasks`,n),findAll:t=>e.get(`/projects/${t}/recurrent-tasks`),findOne:(t,n)=>e.get(`/projects/${t}/recurrent-tasks/${n}`),update:(t,n,r)=>e.patch(`/projects/${t}/recurrent-tasks/${n}`,r),delete:(t,n)=>e.delete(`/projects/${t}/recurrent-tasks/${n}`),findExecutions:(t,n,r=1,i=10)=>e.get(`/projects/${t}/recurrent-tasks/${n}/executions`,{params:{page:r,limit:i}})};export{t as n,r,n as t};
1
+ import{t as e}from"./client-B553SX3l.js";import"./tasks-DHsBE-ea.js";var t={ACTIVE:`active`,PAUSED:`paused`,ERROR:`error`},n={RUNNING:`running`,SUCCESS:`success`,FAILURE:`failure`,CANCELED:`canceled`},r={create:(t,n)=>e.post(`/projects/${t}/recurrent-tasks`,n),findAll:t=>e.get(`/projects/${t}/recurrent-tasks`),findOne:(t,n)=>e.get(`/projects/${t}/recurrent-tasks/${n}`),update:(t,n,r)=>e.patch(`/projects/${t}/recurrent-tasks/${n}`,r),delete:(t,n)=>e.delete(`/projects/${t}/recurrent-tasks/${n}`),findExecutions:(t,n,r=1,i=10)=>e.get(`/projects/${t}/recurrent-tasks/${n}/executions`,{params:{page:r,limit:i}})};export{t as n,r,n as t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]);export{t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./agentEmojis-BQA0jC3z.js";import{i as t,n,r,t as i}from"./vendor-forms-DHyqHeyd.js";import{n as a,t as o}from"./tasks-DEUQCNoH.js";var s=`# Background
1
+ import{n as e}from"./agentEmojis-BQA0jC3z.js";import{i as t,n,r,t as i}from"./vendor-forms-DHyqHeyd.js";import{n as a,t as o}from"./tasks-DHsBE-ea.js";var s=`# Background
2
2
 
3
3
  # To Do
4
4
 
@@ -1 +1 @@
1
- import{t as e}from"./client-BGOBXkO8.js";var t={BACKLOG:`backlog`,IN_PROGRESS:`in-progress`,REVIEW:`review`,DONE:`done`,ARCHIVED:`archived`},n={CRITICAL:0,HIGH:1,MEDIUM:2,LOW:3},r=e=>{switch(typeof e==`string`?parseInt(e,10):e){case n.CRITICAL:return`CRITICAL`;case n.HIGH:return`HIGH`;case n.MEDIUM:return`MEDIUM`;case n.LOW:return`LOW`;default:return`UNKNOWN`}},i={create:(t,n)=>e.post(`/projects/${t}/tasks`,n),findAll:(t,n)=>e.get(`/projects/${t}/tasks`,{params:n}),findOne:(t,n)=>e.get(`/projects/${t}/tasks/${n}`),update:(t,n,r)=>e.patch(`/projects/${t}/tasks/${n}`,r),delete:(t,n)=>e.delete(`/projects/${t}/tasks/${n}`),fetchAll:async(e,t)=>{let n=[],r=1,a=!0,o=t?.limit||50;for(;a;){let s=await i.findAll(e,{...t,page:r,limit:o});n=[...n,...s.data.items],a=n.length<s.data.total,r++}return n}};export{i,t as n,r,n as t};
1
+ import{t as e}from"./client-B553SX3l.js";var t={BACKLOG:`backlog`,IN_PROGRESS:`in-progress`,REVIEW:`review`,DONE:`done`,ARCHIVED:`archived`},n={CRITICAL:0,HIGH:1,MEDIUM:2,LOW:3},r=e=>{switch(typeof e==`string`?parseInt(e,10):e){case n.CRITICAL:return`CRITICAL`;case n.HIGH:return`HIGH`;case n.MEDIUM:return`MEDIUM`;case n.LOW:return`LOW`;default:return`UNKNOWN`}},i={create:(t,n)=>e.post(`/projects/${t}/tasks`,n),findAll:(t,n)=>e.get(`/projects/${t}/tasks`,{params:n}),findOne:(t,n)=>e.get(`/projects/${t}/tasks/${n}`),update:(t,n,r)=>e.patch(`/projects/${t}/tasks/${n}`,r),delete:(t,n)=>e.delete(`/projects/${t}/tasks/${n}`),fetchAll:async(e,t)=>{let n=[],r=1,a=!0,o=t?.limit||50;for(;a;){let s=await i.findAll(e,{...t,page:r,limit:o});n=[...n,...s.data.items],a=n.length<s.data.total,r++}return n}};export{i,t as n,r,n as t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),n=e(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]);export{t as n,n as t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),n=e(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),n=e(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),r=e(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),i=e(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]);export{t as i,r as n,n as r,i as t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),n=e(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),r=e(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),i=e(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]);export{t as i,r as n,n as r,i as t};
@@ -0,0 +1 @@
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),n=e(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]);export{t as n,n as t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),n=e(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{i as e,t}from"./client-BGOBXkO8.js";var n=e(`folder-kanban`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]),r={findAll:async e=>(await t.get(`/users`,{params:e})).data,findOne:async e=>(await t.get(`/users/${e}`)).data,updateRole:async(e,n)=>(await t.patch(`/users/${e}`,{role:n})).data,deleteUser:async e=>{await t.delete(`/users/${e}`)},createUser:async e=>(await t.post(`/auth/register`,e)).data};export{n,r as t};
1
+ import{i as e,t}from"./client-B553SX3l.js";var n=e(`folder-kanban`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]),r={findAll:async e=>(await t.get(`/users`,{params:e})).data,findOne:async e=>(await t.get(`/users/${e}`)).data,updateRole:async(e,n)=>(await t.patch(`/users/${e}`,{role:n})).data,deleteUser:async e=>{await t.delete(`/users/${e}`)},createUser:async e=>(await t.post(`/auth/register`,e)).data};export{n,r as t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]);export{t};
1
+ import{i as e}from"./client-B553SX3l.js";var t=e(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]);export{t};
@@ -6,31 +6,31 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Agent Orchestrator | Secure Gateway</title>
8
8
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
9
- <script type="module" crossorigin src="/assets/index-BvUv9Lzq.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-IcLlFUZs.js"></script>
10
10
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-COnpUsM8.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/vendor-dnd-CfaHPvi0.js">
12
12
  <link rel="modulepreload" crossorigin href="/assets/vendor-markdown-DoJbQ1of.js">
13
13
  <link rel="modulepreload" crossorigin href="/assets/vendor-query-xpDrc4rM.js">
14
14
  <link rel="modulepreload" crossorigin href="/assets/vendor-react-BmVaKUwY.js">
15
15
  <link rel="modulepreload" crossorigin href="/assets/UserAvatar-Z5W8S1dG.js">
16
- <link rel="modulepreload" crossorigin href="/assets/client-BGOBXkO8.js">
16
+ <link rel="modulepreload" crossorigin href="/assets/client-B553SX3l.js">
17
17
  <link rel="modulepreload" crossorigin href="/assets/vendor-motion-CMGWJcqR.js">
18
- <link rel="modulepreload" crossorigin href="/assets/bot-QVmnxPf4.js">
19
- <link rel="modulepreload" crossorigin href="/assets/briefcase-DtHlat45.js">
20
- <link rel="modulepreload" crossorigin href="/assets/circle-alert-pUx6yhcF.js">
21
- <link rel="modulepreload" crossorigin href="/assets/circle-check-B9kyRki5.js">
22
- <link rel="modulepreload" crossorigin href="/assets/chevron-down-LTeQHW9O.js">
23
- <link rel="modulepreload" crossorigin href="/assets/x-wDy15QMx.js">
24
- <link rel="modulepreload" crossorigin href="/assets/agents-b8btewki.js">
25
- <link rel="modulepreload" crossorigin href="/assets/projects-CUOthD8N.js">
18
+ <link rel="modulepreload" crossorigin href="/assets/bot-DadO9w3D.js">
19
+ <link rel="modulepreload" crossorigin href="/assets/briefcase-mFWNV6w9.js">
20
+ <link rel="modulepreload" crossorigin href="/assets/circle-alert-sCcf7ANF.js">
21
+ <link rel="modulepreload" crossorigin href="/assets/circle-check-Jz8IOE4h.js">
22
+ <link rel="modulepreload" crossorigin href="/assets/chevron-down-BUOg3vvd.js">
23
+ <link rel="modulepreload" crossorigin href="/assets/x-CCZGYGDC.js">
24
+ <link rel="modulepreload" crossorigin href="/assets/agents-YQJ7JNfI.js">
25
+ <link rel="modulepreload" crossorigin href="/assets/projects-DoalTI7c.js">
26
26
  <link rel="modulepreload" crossorigin href="/assets/useNotification-DQayTSUL.js">
27
- <link rel="modulepreload" crossorigin href="/assets/auth-dROenHXk.js">
28
- <link rel="modulepreload" crossorigin href="/assets/info-1jA6X-_e.js">
29
- <link rel="modulepreload" crossorigin href="/assets/panels-top-left-Vk8FzAxf.js">
30
- <link rel="modulepreload" crossorigin href="/assets/plus-Dx6G8SOZ.js">
31
- <link rel="modulepreload" crossorigin href="/assets/server-CJE2K1Vt.js">
32
- <link rel="modulepreload" crossorigin href="/assets/settings-at7JqFrc.js">
33
- <link rel="modulepreload" crossorigin href="/assets/users-Ef6Sh2iR.js">
27
+ <link rel="modulepreload" crossorigin href="/assets/auth-Lh2N3iYN.js">
28
+ <link rel="modulepreload" crossorigin href="/assets/info-DGHChFI6.js">
29
+ <link rel="modulepreload" crossorigin href="/assets/panels-top-left-Cp169WzB.js">
30
+ <link rel="modulepreload" crossorigin href="/assets/plus-CkteVqhM.js">
31
+ <link rel="modulepreload" crossorigin href="/assets/server-BBmM-vrg.js">
32
+ <link rel="modulepreload" crossorigin href="/assets/settings-BpKLGxm8.js">
33
+ <link rel="modulepreload" crossorigin href="/assets/users-tdyaGZbx.js">
34
34
  <link rel="modulepreload" crossorigin href="/assets/AppErrorBoundary-BwnK_K-O.js">
35
35
  <link rel="modulepreload" crossorigin href="/assets/AuthContextInstance-DiFo9Qb2.js">
36
36
  <link rel="modulepreload" crossorigin href="/assets/useProject-DhK9Ze6F.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinhosilva/agent-orchestrator",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "An open-source AI agent orchestrator platform built with NestJS.",
5
5
  "author": "bpinhosilva",
6
6
  "license": "MIT",
@@ -155,8 +155,10 @@
155
155
  "@angular-devkit/core": "^21.2.5",
156
156
  "@angular-devkit/schematics": "^21.2.5",
157
157
  "typeorm": {
158
- "glob": "^13.0.0"
159
- }
158
+ "glob": "^13.0.0",
159
+ "uuid": "^14.0.0"
160
+ },
161
+ "uuid": "^14.0.0"
160
162
  },
161
163
  "jest": {
162
164
  "moduleFileExtensions": [
@@ -183,6 +185,9 @@
183
185
  ],
184
186
  "coverageDirectory": "../coverage",
185
187
  "testEnvironment": "node",
186
- "maxWorkers": 1
188
+ "maxWorkers": 1,
189
+ "moduleNameMapper": {
190
+ "^uuid$": "<rootDir>/../test/mocks/uuid.js"
191
+ }
187
192
  }
188
193
  }
@@ -1 +0,0 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t};
@@ -1 +0,0 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
@@ -1 +0,0 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]);export{t};
@@ -1 +0,0 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
@@ -1 +0,0 @@
1
- import{i as e}from"./client-BGOBXkO8.js";var t=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{t};