morpheus-cli 0.9.22 → 0.9.23

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 (48) hide show
  1. package/dist/channels/discord.js +5 -0
  2. package/dist/channels/telegram.js +5 -0
  3. package/dist/http/routers/display.js +5 -0
  4. package/dist/runtime/audit/repository.js +69 -1
  5. package/dist/runtime/chronos/worker.js +2 -0
  6. package/dist/runtime/display.js +32 -0
  7. package/dist/runtime/memory/sati/service.js +5 -0
  8. package/dist/runtime/oracle.js +5 -0
  9. package/dist/runtime/providers/factory.js +14 -2
  10. package/dist/runtime/smiths/delegator.js +3 -0
  11. package/dist/runtime/subagents/devkit-instrument.js +5 -0
  12. package/dist/runtime/subagents/link/link.js +120 -77
  13. package/dist/runtime/subagents/trinity/trinity.js +64 -34
  14. package/dist/runtime/tools/factory.js +6 -2
  15. package/dist/ui/assets/{AuditDashboard-z3OBbJ8I.js → AuditDashboard-ClqEr7jg.js} +1 -1
  16. package/dist/ui/assets/{Chat-aFz9FjrD.js → Chat-BwxZJphx.js} +1 -1
  17. package/dist/ui/assets/{Chronos-MP_NCj2A.js → Chronos-BafOMteb.js} +1 -1
  18. package/dist/ui/assets/{ConfirmationModal-B3gHIVKY.js → ConfirmationModal-DU0AwhXD.js} +1 -1
  19. package/dist/ui/assets/{Dashboard-OyZXnj44.js → Dashboard-DvJb72Xe.js} +174 -174
  20. package/dist/ui/assets/{DeleteConfirmationModal-D8QsQzwP.js → DeleteConfirmationModal-FSWLK6-I.js} +1 -1
  21. package/dist/ui/assets/{Documents-B8g_yv4f.js → Documents-D73CeGkW.js} +1 -1
  22. package/dist/ui/assets/{Logs-BWufAtHa.js → Logs-BrFWnLIL.js} +1 -1
  23. package/dist/ui/assets/{MCPManager-lLoGEyBy.js → MCPManager-_L2Yo-uY.js} +1 -1
  24. package/dist/ui/assets/{ModelPricing-CuYIUwXt.js → ModelPricing-CyXMdxJD.js} +1 -1
  25. package/dist/ui/assets/{Notifications-nI--fmYx.js → Notifications-BpHokTLS.js} +1 -1
  26. package/dist/ui/assets/{SatiMemories-DO3JDQBi.js → SatiMemories-CfSTgr9V.js} +1 -1
  27. package/dist/ui/assets/{SessionAudit-BWtJRkj1.js → SessionAudit-pOWRgJtc.js} +1 -1
  28. package/dist/ui/assets/{Settings-CblauAVd.js → Settings-CPDXAk18.js} +1 -1
  29. package/dist/ui/assets/{Skills-Dw6G5c8W.js → Skills-GIkCxMS3.js} +1 -1
  30. package/dist/ui/assets/{Smiths-B6-CnRMv.js → Smiths-ZcHXcrMt.js} +1 -1
  31. package/dist/ui/assets/{Tasks-DzUyw5z3.js → Tasks-DJ6R3d4f.js} +1 -1
  32. package/dist/ui/assets/{TrinityDatabases-DCjdwnLH.js → TrinityDatabases-CnRAkDuu.js} +1 -1
  33. package/dist/ui/assets/{UsageStats-VajzjndO.js → UsageStats-Bl7bs4ay.js} +1 -1
  34. package/dist/ui/assets/{WebhookManager-BbfMCiy-.js → WebhookManager-CEjjk4tx.js} +1 -1
  35. package/dist/ui/assets/{agents-CN_AKX_I.js → agents-DO69pNM1.js} +1 -1
  36. package/dist/ui/assets/{audit-M-5UGwoK.js → audit-CP5fC4m8.js} +1 -1
  37. package/dist/ui/assets/{chronos-mZ0RIvh4.js → chronos-DPhK718h.js} +1 -1
  38. package/dist/ui/assets/{config-7LGRnJ26.js → config-OLGQFNJL.js} +1 -1
  39. package/dist/ui/assets/{index-Db1XEN8v.js → index-B9ePr-vB.js} +2 -2
  40. package/dist/ui/assets/index-D_0tPLCk.css +1 -0
  41. package/dist/ui/assets/{mcp-YiYC-9IH.js → mcp-BeBznKtK.js} +1 -1
  42. package/dist/ui/assets/{skills-dc6Xqqhb.js → skills-wEUxSGB3.js} +1 -1
  43. package/dist/ui/assets/{stats-BzqxCDuj.js → stats-KMbKDMJ-.js} +1 -1
  44. package/dist/ui/assets/{useCurrency-CEc5edm2.js → useCurrency-Bgg-7MTE.js} +1 -1
  45. package/dist/ui/index.html +2 -2
  46. package/dist/ui/sw.js +1 -1
  47. package/package.json +1 -1
  48. package/dist/ui/assets/index-Bko2TlZY.css +0 -1
@@ -1,4 +1,4 @@
1
- import{j as e,m as h}from"./vendor-motion-C3CZ8ZlO.js";import{r as s,L as U}from"./vendor-react-DikRIOlj.js";import{u as M}from"./vendor-utils-BIYveU_1.js";import{w as c,D as C,j as T,k as S}from"./index-Db1XEN8v.js";import{e as B,B as G,a8 as K,x as _,T as X,a9 as q,a5 as J,a6 as Q,y as V,G as Y}from"./vendor-icons-DE7PWdkN.js";const Z={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.05}}},D={hidden:{opacity:0,y:10},show:{opacity:1,y:0}},ee=["ui","telegram","discord"],E=()=>({name:"",prompt:"",notification_channels:["ui"]}),ne=()=>{const{data:g=[],mutate:u}=M("/webhooks",()=>c.list(),{refreshInterval:1e4}),[W,n]=s.useState(!1),[o,b]=s.useState(null),[a,d]=s.useState(E()),[x,m]=s.useState(null),[p,y]=s.useState(null),[k,f]=s.useState(!1),[j,N]=s.useState(null),[z,i]=s.useState(null),l=(r,t)=>{y({type:r,message:t}),setTimeout(()=>y(null),3500)},v=()=>{b(null),d(E()),i(null),n(!0)},$=r=>{b(r),d({name:r.name,prompt:r.prompt,notification_channels:r.notification_channels}),i(null),n(!0)},F=r=>/^[a-z0-9-_]+$/.test(r),L=async()=>{if(!(!a.name.trim()||!a.prompt.trim())){if(!F(a.name)){i("Name must only contain lowercase letters, numbers, hyphens (-) and underscores (_).");return}if(a.notification_channels.length===0){i("Select at least one notification channel.");return}i(null),f(!0);try{o?(await c.update(o.id,a),l("success","Webhook updated.")):(await c.create(a),l("success","Webhook created.")),await u(),n(!1)}catch(r){const t=r?.message||"Failed to save webhook.";i(t)}finally{f(!1)}}},O=async r=>{try{await c.update(r.id,{enabled:!r.enabled}),await u()}catch{l("error","Failed to toggle webhook.")}},P=async()=>{if(x)try{await c.delete(x.id),await u(),m(null),l("success","Webhook deleted.")}catch{l("error","Failed to delete webhook.")}},A=r=>`${window.location.origin}/api/webhooks/trigger/${r}`,I=r=>`curl -X POST ${A(r.name)} \\
1
+ import{j as e,m as h}from"./vendor-motion-C3CZ8ZlO.js";import{r as s,L as U}from"./vendor-react-DikRIOlj.js";import{u as M}from"./vendor-utils-BIYveU_1.js";import{w as c,D as C,j as T,k as S}from"./index-B9ePr-vB.js";import{e as B,B as G,a8 as K,x as _,T as X,a9 as q,a5 as J,a6 as Q,y as V,G as Y}from"./vendor-icons-DE7PWdkN.js";const Z={hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.05}}},D={hidden:{opacity:0,y:10},show:{opacity:1,y:0}},ee=["ui","telegram","discord"],E=()=>({name:"",prompt:"",notification_channels:["ui"]}),ne=()=>{const{data:g=[],mutate:u}=M("/webhooks",()=>c.list(),{refreshInterval:1e4}),[W,n]=s.useState(!1),[o,b]=s.useState(null),[a,d]=s.useState(E()),[x,m]=s.useState(null),[p,y]=s.useState(null),[k,f]=s.useState(!1),[j,N]=s.useState(null),[z,i]=s.useState(null),l=(r,t)=>{y({type:r,message:t}),setTimeout(()=>y(null),3500)},v=()=>{b(null),d(E()),i(null),n(!0)},$=r=>{b(r),d({name:r.name,prompt:r.prompt,notification_channels:r.notification_channels}),i(null),n(!0)},F=r=>/^[a-z0-9-_]+$/.test(r),L=async()=>{if(!(!a.name.trim()||!a.prompt.trim())){if(!F(a.name)){i("Name must only contain lowercase letters, numbers, hyphens (-) and underscores (_).");return}if(a.notification_channels.length===0){i("Select at least one notification channel.");return}i(null),f(!0);try{o?(await c.update(o.id,a),l("success","Webhook updated.")):(await c.create(a),l("success","Webhook created.")),await u(),n(!1)}catch(r){const t=r?.message||"Failed to save webhook.";i(t)}finally{f(!1)}}},O=async r=>{try{await c.update(r.id,{enabled:!r.enabled}),await u()}catch{l("error","Failed to toggle webhook.")}},P=async()=>{if(x)try{await c.delete(x.id),await u(),m(null),l("success","Webhook deleted.")}catch{l("error","Failed to delete webhook.")}},A=r=>`${window.location.origin}/api/webhooks/trigger/${r}`,I=r=>`curl -X POST ${A(r.name)} \\
2
2
  -H "x-api-key: ${r.api_key}" \\
3
3
  -H "Content-Type: application/json" \\
4
4
  -d '{"event":"your_payload"}'`,w=async(r,t)=>{await navigator.clipboard.writeText(r),N(t),setTimeout(()=>N(null),2e3)},R=r=>{const t=a.notification_channels.includes(r);d({...a,notification_channels:t?a.notification_channels.filter(H=>H!==r):[...a.notification_channels,r]})};return e.jsxs(h.div,{variants:Z,initial:"hidden",animate:"show",className:"space-y-6",children:[e.jsxs(h.div,{variants:D,className:"flex items-center justify-between flex-wrap gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-azure-primary/10 dark:bg-matrix-highlight/10 border border-azure-primary/20 dark:border-matrix-highlight/30 flex items-center justify-center",children:e.jsx(B,{className:"w-5 h-5 text-azure-primary dark:text-matrix-highlight"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-bold text-azure-text dark:text-matrix-highlight",children:"Webhooks"}),e.jsx("p",{className:"text-sm text-azure-text-secondary dark:text-matrix-tertiary mt-0.5",children:"Trigger Oracle agent tasks from external events."})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(U,{to:"/notifications",className:"flex items-center gap-2 px-4 py-2 rounded-lg border border-azure-border dark:border-matrix-primary text-sm text-azure-text-secondary dark:text-matrix-secondary hover:bg-azure-surface dark:hover:bg-zinc-800 transition-colors",children:[e.jsx(G,{className:"w-4 h-4"}),"Notifications"]}),e.jsxs("button",{onClick:v,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-azure-primary dark:bg-matrix-primary text-white dark:text-matrix-highlight text-sm font-medium hover:opacity-90 transition-opacity",children:[e.jsx(K,{className:"w-4 h-4"}),"New Webhook"]})]})]}),p&&e.jsx(h.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},className:`px-4 py-3 rounded-lg text-sm font-medium border ${p.type==="success"?"bg-green-50 dark:bg-green-900/20 border-green-300 dark:border-green-700 text-green-800 dark:text-green-400":"bg-red-50 dark:bg-red-900/20 border-red-300 dark:border-red-700 text-red-800 dark:text-red-400"}`,children:p.message}),e.jsx(h.div,{variants:D,className:"rounded-lg border border-azure-border dark:border-matrix-primary overflow-hidden",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-azure-surface dark:bg-zinc-900 border-b border-azure-border dark:border-matrix-primary",children:e.jsx("tr",{children:["Name","API Key","Channels","Triggers","Status","Actions"].map(r=>e.jsx("th",{className:"px-4 py-3 text-left font-semibold text-azure-text-secondary dark:text-matrix-secondary",children:r},r))})}),e.jsx("tbody",{children:g.length===0?e.jsx("tr",{children:e.jsxs("td",{colSpan:6,className:"px-4 py-10 text-center text-azure-text-secondary dark:text-matrix-secondary",children:["No webhooks yet."," ",e.jsx("button",{onClick:v,className:"underline text-azure-primary dark:text-matrix-highlight",children:"Create one"})]})}):g.map(r=>e.jsxs("tr",{className:"border-b border-azure-border dark:border-matrix-primary/30 hover:bg-azure-surface/50 dark:hover:bg-zinc-800/50 transition-colors",children:[e.jsx("td",{className:"px-4 py-3",children:e.jsx("span",{className:"font-mono text-azure-text-primary dark:text-matrix-secondary font-medium",children:r.name})}),e.jsx("td",{className:"px-4 py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("code",{className:"text-xs font-mono text-azure-text-secondary dark:text-matrix-secondary truncate max-w-[140px]",children:[r.api_key.slice(0,16),"…"]}),e.jsx("button",{onClick:()=>w(I(r),`curl-${r.id}`),className:"p-1 rounded hover:bg-azure-border dark:hover:bg-matrix-primary/30 text-azure-text-secondary dark:text-matrix-secondary",title:"Copy curl example",children:j===`curl-${r.id}`?e.jsx(_,{className:"w-3.5 h-3.5 text-green-500"}):e.jsx(X,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>w(r.api_key,`key-${r.id}`),className:"p-1 rounded hover:bg-azure-border dark:hover:bg-matrix-primary/30 text-azure-text-secondary dark:text-matrix-secondary",title:"Copy API key",children:j===`key-${r.id}`?e.jsx(_,{className:"w-3.5 h-3.5 text-green-500"}):e.jsx(q,{className:"w-3.5 h-3.5"})})]})}),e.jsx("td",{className:"px-4 py-3",children:e.jsx("div",{className:"flex gap-1 flex-wrap",children:r.notification_channels.map(t=>e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-azure-border dark:bg-matrix-primary/20 text-azure-text-secondary dark:text-matrix-secondary capitalize",children:t},t))})}),e.jsx("td",{className:"px-4 py-3 text-azure-text-primary dark:text-matrix-secondary",children:r.trigger_count}),e.jsx("td",{className:"px-4 py-3",children:e.jsx("button",{onClick:()=>O(r),className:`flex items-center gap-1.5 text-xs px-2 py-1 rounded transition-colors ${r.enabled?"bg-green-50 dark:bg-green-900/20 text-green-700 dark:text-green-400 hover:bg-green-100 dark:hover:bg-green-900/30":"bg-zinc-100 dark:bg-zinc-800 text-zinc-500 dark:text-zinc-400 hover:bg-zinc-200 dark:hover:bg-zinc-700"}`,children:r.enabled?e.jsxs(e.Fragment,{children:[e.jsx(J,{className:"w-3.5 h-3.5"})," Enabled"]}):e.jsxs(e.Fragment,{children:[e.jsx(Q,{className:"w-3.5 h-3.5"})," Disabled"]})})}),e.jsx("td",{className:"px-4 py-3",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>$(r),title:"Edit",className:"p-1.5 rounded hover:bg-azure-border dark:hover:bg-matrix-primary/30 text-azure-text-secondary dark:text-matrix-secondary hover:text-azure-primary dark:hover:text-matrix-highlight transition-colors",children:e.jsx(V,{className:"w-4 h-4"})}),e.jsx("button",{onClick:()=>m(r),title:"Delete",className:"p-1.5 rounded hover:bg-red-50 dark:hover:bg-red-900/20 text-azure-text-secondary dark:text-matrix-secondary hover:text-red-600 dark:hover:text-red-400 transition-colors",children:e.jsx(Y,{className:"w-4 h-4"})})]})})]},r.id))})]})})}),e.jsxs(C,{open:W,onOpenChange:n,children:[e.jsx(T,{children:e.jsx(S,{className:"text-azure-text-primary dark:text-matrix-highlight",children:o?"Edit Webhook":"New Webhook"})}),e.jsxs("div",{className:"p-6 space-y-4 overflow-y-auto",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-azure-text-secondary dark:text-matrix-secondary mb-1",children:["Name ",e.jsx("span",{className:"text-azure-text-muted dark:text-matrix-secondary/60 font-normal",children:"(slug — used in URL)"})]}),e.jsx("input",{type:"text",value:a.name,onChange:r=>{d({...a,name:r.target.value.toLowerCase().replace(/\s+/g,"-")}),i(null)},placeholder:"e.g. deploy-done, github-issue-opened",disabled:!!o,className:"w-full px-3 py-2 rounded-lg border border-azure-border dark:border-matrix-primary bg-azure-surface dark:bg-black text-azure-text-primary dark:text-matrix-secondary text-sm focus:outline-none focus:ring-1 focus:ring-azure-primary dark:focus:ring-matrix-highlight focus:border-azure-primary dark:focus:border-matrix-highlight disabled:opacity-50 disabled:cursor-not-allowed"}),a.name&&e.jsxs("p",{className:"mt-1 text-xs text-azure-text-secondary dark:text-matrix-secondary",children:["Trigger URL:"," ",e.jsxs("code",{className:"font-mono text-azure-primary dark:text-matrix-highlight",children:["POST /api/webhooks/trigger/",a.name]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-azure-text-secondary dark:text-matrix-secondary mb-1",children:"Agent Prompt"}),e.jsx("textarea",{rows:5,value:a.prompt,onChange:r=>d({...a,prompt:r.target.value}),placeholder:"Describe what Apoc should do when this webhook fires. The received payload will be appended automatically.",className:"w-full px-3 py-2 rounded-lg border border-azure-border dark:border-matrix-primary bg-azure-surface dark:bg-black text-azure-text-primary dark:text-matrix-secondary text-sm focus:outline-none focus:ring-1 focus:ring-azure-primary dark:focus:ring-matrix-highlight focus:border-azure-primary dark:focus:border-matrix-highlight resize-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-azure-text-secondary dark:text-matrix-secondary mb-2",children:"Notification Channels"}),e.jsx("div",{className:"flex gap-4",children:ee.map(r=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:a.notification_channels.includes(r),onChange:()=>R(r),className:"rounded border-azure-border dark:border-matrix-primary accent-azure-primary dark:accent-matrix-highlight"}),e.jsx("span",{className:"text-sm text-azure-text-primary dark:text-matrix-secondary capitalize",children:r})]},r))})]}),z&&e.jsx("p",{className:"text-sm text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded px-3 py-2",children:z}),e.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[e.jsx("button",{onClick:()=>n(!1),className:"px-4 py-2 rounded-lg border border-azure-border dark:border-matrix-primary text-azure-text-secondary dark:text-matrix-secondary text-sm hover:bg-azure-surface dark:hover:bg-zinc-800 transition-colors",children:"Cancel"}),e.jsx("button",{onClick:L,disabled:k||!a.name.trim()||!a.prompt.trim()||a.notification_channels.length===0,className:"px-4 py-2 rounded-lg bg-azure-primary dark:bg-matrix-primary text-white dark:text-matrix-highlight text-sm font-medium hover:opacity-90 disabled:opacity-50 transition-opacity",children:k?"Saving…":o?"Update":"Create"})]})]})]}),e.jsxs(C,{open:!!x,onOpenChange:r=>!r&&m(null),children:[e.jsx(T,{children:e.jsx(S,{className:"text-azure-text-primary dark:text-matrix-highlight",children:"Delete Webhook"})}),e.jsxs("div",{className:"p-6 space-y-4",children:[e.jsxs("p",{className:"text-sm text-azure-text-primary dark:text-matrix-secondary",children:["Delete"," ",e.jsx("span",{className:"font-semibold font-mono dark:text-matrix-highlight",children:x?.name}),"? This also removes all associated notifications and cannot be undone."]}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("button",{onClick:()=>m(null),className:"px-4 py-2 rounded-lg border border-azure-border dark:border-matrix-primary text-azure-text-secondary dark:text-matrix-secondary text-sm hover:bg-azure-surface dark:hover:bg-zinc-800 transition-colors",children:"Cancel"}),e.jsx("button",{onClick:P,className:"px-4 py-2 rounded-lg bg-red-600 text-white text-sm font-medium hover:bg-red-700 transition-colors",children:"Delete"})]})]})]})]})};export{ne as WebhookManager};
@@ -1 +1 @@
1
- import{u as r}from"./vendor-utils-BIYveU_1.js";import{h as d}from"./index-Db1XEN8v.js";const n={agentKey:"unknown",auditAgent:"unknown",label:"Unknown",delegateToolName:"",emoji:"🤖",color:"gray",description:"",colorClass:"text-gray-500 dark:text-gray-400",bgClass:"bg-gray-50 dark:bg-zinc-900",badgeClass:"bg-gray-100 text-gray-600 dark:bg-gray-700 dark:text-gray-300"};function s(){const{data:g}=r("/api/agents/metadata",e=>d.get(e.replace("/api","")),{revalidateOnFocus:!1,dedupingInterval:6e4}),t=g?.agents??[];return{agents:t,getByKey(e){return t.find(a=>a.agentKey===e||a.auditAgent===e)??{...n,agentKey:e,label:e}},getByToolName(e){return t.find(a=>a.delegateToolName===e)??{...n,delegateToolName:e,label:e}},getEmoji(e){return t.find(a=>a.agentKey===e||a.auditAgent===e)?.emoji??"🤖"},getBadgeClass(e){return t.find(a=>a.agentKey===e||a.auditAgent===e)?.badgeClass??n.badgeClass},getSubagents(){return t.filter(e=>e.delegateToolName!=="")}}}export{s as u};
1
+ import{u as r}from"./vendor-utils-BIYveU_1.js";import{h as d}from"./index-B9ePr-vB.js";const n={agentKey:"unknown",auditAgent:"unknown",label:"Unknown",delegateToolName:"",emoji:"🤖",color:"gray",description:"",colorClass:"text-gray-500 dark:text-gray-400",bgClass:"bg-gray-50 dark:bg-zinc-900",badgeClass:"bg-gray-100 text-gray-600 dark:bg-gray-700 dark:text-gray-300"};function s(){const{data:g}=r("/api/agents/metadata",e=>d.get(e.replace("/api","")),{revalidateOnFocus:!1,dedupingInterval:6e4}),t=g?.agents??[];return{agents:t,getByKey(e){return t.find(a=>a.agentKey===e||a.auditAgent===e)??{...n,agentKey:e,label:e}},getByToolName(e){return t.find(a=>a.delegateToolName===e)??{...n,delegateToolName:e,label:e}},getEmoji(e){return t.find(a=>a.agentKey===e||a.auditAgent===e)?.emoji??"🤖"},getBadgeClass(e){return t.find(a=>a.agentKey===e||a.auditAgent===e)?.badgeClass??n.badgeClass},getSubagents(){return t.filter(e=>e.delegateToolName!=="")}}}export{s as u};
@@ -1 +1 @@
1
- import{u as r}from"./vendor-utils-BIYveU_1.js";import{h as i}from"./index-Db1XEN8v.js";function m(){const{data:t,error:s,isLoading:e,mutate:a}=r("/audit/global",o=>i.get(o),{revalidateOnFocus:!1,refreshInterval:3e4});return{data:t,error:s,isLoading:e,mutate:a}}function g(t,s=0,e=100){const a=e,o=s*e,{data:n,error:u,isLoading:l}=r(t?`/sessions/${t}/audit?limit=${a}&offset=${o}`:null,f=>i.get(f),{revalidateOnFocus:!1});return{data:n,error:u,isLoading:l}}export{m as a,g as u};
1
+ import{u as r}from"./vendor-utils-BIYveU_1.js";import{h as i}from"./index-B9ePr-vB.js";function m(){const{data:t,error:s,isLoading:e,mutate:a}=r("/audit/global",o=>i.get(o),{revalidateOnFocus:!1,refreshInterval:3e4});return{data:t,error:s,isLoading:e,mutate:a}}function g(t,s=0,e=100){const a=e,o=s*e,{data:n,error:u,isLoading:l}=r(t?`/sessions/${t}/audit?limit=${a}&offset=${o}`:null,f=>i.get(f),{revalidateOnFocus:!1});return{data:n,error:u,isLoading:l}}export{m as a,g as u};
@@ -1 +1 @@
1
- import{u as t}from"./vendor-utils-BIYveU_1.js";import{h as n}from"./index-Db1XEN8v.js";function a(o){const e=new URLSearchParams;o?.enabled!==void 0&&e.set("enabled",String(o.enabled)),o?.created_by&&e.set("created_by",o.created_by),o?.page!==void 0&&e.set("page",String(o.page)),o?.per_page!==void 0&&e.set("per_page",String(o.per_page));const s=e.toString()?`?${e}`:"";return t(`/chronos${s}`,()=>n.get(`/chronos${s}`))}function i(o,e=50){return t(o?`/chronos/${o}/executions?limit=${e}`:null,()=>n.get(`/chronos/${o}/executions?limit=${e}`))}function h(){return t("/config/chronos",()=>n.get("/config/chronos"))}const p={createJob:o=>n.post("/chronos",o),updateJob:(o,e)=>n.put(`/chronos/${o}`,e),deleteJob:o=>n.delete(`/chronos/${o}`),enableJob:o=>n.patch(`/chronos/${o}/enable`,{}),disableJob:o=>n.patch(`/chronos/${o}/disable`,{}),getConfig:()=>n.get("/config/chronos"),updateConfig:o=>n.post("/config/chronos",o),preview:(o,e,s)=>n.post("/chronos/preview",{expression:o,schedule_type:e,timezone:s})};export{i as a,a as b,p as c,h as u};
1
+ import{u as t}from"./vendor-utils-BIYveU_1.js";import{h as n}from"./index-B9ePr-vB.js";function a(o){const e=new URLSearchParams;o?.enabled!==void 0&&e.set("enabled",String(o.enabled)),o?.created_by&&e.set("created_by",o.created_by),o?.page!==void 0&&e.set("page",String(o.page)),o?.per_page!==void 0&&e.set("per_page",String(o.per_page));const s=e.toString()?`?${e}`:"";return t(`/chronos${s}`,()=>n.get(`/chronos${s}`))}function i(o,e=50){return t(o?`/chronos/${o}/executions?limit=${e}`:null,()=>n.get(`/chronos/${o}/executions?limit=${e}`))}function h(){return t("/config/chronos",()=>n.get("/config/chronos"))}const p={createJob:o=>n.post("/chronos",o),updateJob:(o,e)=>n.put(`/chronos/${o}`,e),deleteJob:o=>n.delete(`/chronos/${o}`),enableJob:o=>n.patch(`/chronos/${o}/enable`,{}),disableJob:o=>n.patch(`/chronos/${o}/disable`,{}),getConfig:()=>n.get("/config/chronos"),updateConfig:o=>n.post("/config/chronos",o),preview:(o,e,s)=>n.post("/chronos/preview",{expression:o,schedule_type:e,timezone:s})};export{i as a,a as b,p as c,h as u};
@@ -1 +1 @@
1
- import{h as t}from"./index-Db1XEN8v.js";const i={fetchConfig:async()=>t.get("/config"),updateConfig:async n=>t.post("/config",n),getSatiConfig:async()=>t.get("/config/sati"),updateSatiConfig:async n=>t.post("/config/sati",n),deleteSatiConfig:async()=>t.delete("/config/sati"),getApocConfig:async()=>t.get("/config/apoc"),updateApocConfig:async n=>t.post("/config/apoc",n),deleteApocConfig:async()=>t.delete("/config/apoc"),getNeoConfig:async()=>t.get("/config/neo"),updateNeoConfig:async n=>t.post("/config/neo",n),deleteNeoConfig:async()=>t.delete("/config/neo"),getTrinityConfig:async()=>t.get("/config/trinity"),updateTrinityConfig:async n=>t.post("/config/trinity",n),deleteTrinityConfig:async()=>t.delete("/config/trinity"),getEncryptionStatus:async()=>t.get("/config/encryption-status"),getEnvOverrides:async()=>t.get("/config/env-overrides"),getSmithsConfig:async()=>await t.get("/smiths/config"),updateSmithsConfig:async n=>t.put("/smiths/config",n),getSmithsList:async()=>t.get("/smiths"),pingSmith:async n=>t.post(`/smiths/${n}/ping`,{}),removeSmith:async n=>t.delete(`/smiths/${n}`)};export{i as c};
1
+ import{h as t}from"./index-B9ePr-vB.js";const i={fetchConfig:async()=>t.get("/config"),updateConfig:async n=>t.post("/config",n),getSatiConfig:async()=>t.get("/config/sati"),updateSatiConfig:async n=>t.post("/config/sati",n),deleteSatiConfig:async()=>t.delete("/config/sati"),getApocConfig:async()=>t.get("/config/apoc"),updateApocConfig:async n=>t.post("/config/apoc",n),deleteApocConfig:async()=>t.delete("/config/apoc"),getNeoConfig:async()=>t.get("/config/neo"),updateNeoConfig:async n=>t.post("/config/neo",n),deleteNeoConfig:async()=>t.delete("/config/neo"),getTrinityConfig:async()=>t.get("/config/trinity"),updateTrinityConfig:async n=>t.post("/config/trinity",n),deleteTrinityConfig:async()=>t.delete("/config/trinity"),getEncryptionStatus:async()=>t.get("/config/encryption-status"),getEnvOverrides:async()=>t.get("/config/env-overrides"),getSmithsConfig:async()=>await t.get("/smiths/config"),updateSmithsConfig:async n=>t.put("/smiths/config",n),getSmithsList:async()=>t.get("/smiths"),pingSmith:async n=>t.post(`/smiths/${n}/ping`,{}),removeSmith:async n=>t.delete(`/smiths/${n}`)};export{i as c};