morpheus-cli 0.9.11 → 0.9.13

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 (68) hide show
  1. package/README.md +1 -1
  2. package/dist/channels/telegram.js +234 -144
  3. package/dist/cli/commands/restart.js +2 -2
  4. package/dist/cli/commands/start.js +2 -2
  5. package/dist/http/api.js +5 -2
  6. package/dist/http/routers/agents.js +9 -0
  7. package/dist/http/routers/link.js +2 -2
  8. package/dist/runtime/chronos/repository.js +5 -3
  9. package/dist/runtime/chronos/worker.js +27 -4
  10. package/dist/runtime/chronos/worker.test.js +3 -2
  11. package/dist/runtime/hot-reload.js +3 -3
  12. package/dist/runtime/memory/sqlite.js +37 -11
  13. package/dist/runtime/oracle.js +78 -43
  14. package/dist/runtime/{apoc.js → subagents/apoc.js} +19 -6
  15. package/dist/runtime/{devkit-instrument.js → subagents/devkit-instrument.js} +1 -1
  16. package/dist/runtime/subagents/index.js +12 -0
  17. package/dist/runtime/{link.js → subagents/link/link.js} +23 -9
  18. package/dist/runtime/{link-repository.js → subagents/link/repository.js} +2 -2
  19. package/dist/runtime/{link-search.js → subagents/link/search.js} +3 -3
  20. package/dist/runtime/{link-worker.js → subagents/link/worker.js} +6 -6
  21. package/dist/runtime/{neo.js → subagents/neo.js} +23 -9
  22. package/dist/runtime/subagents/registry.js +134 -0
  23. package/dist/runtime/{trinity.js → subagents/trinity/trinity.js} +22 -8
  24. package/dist/runtime/{subagent-utils.js → subagents/utils.js} +2 -2
  25. package/dist/runtime/tasks/worker.js +6 -70
  26. package/dist/runtime/tools/chronos-tools.js +1 -0
  27. package/dist/runtime/tools/morpheus-tools.js +3 -3
  28. package/dist/runtime/webhooks/dispatcher.js +4 -0
  29. package/dist/ui/assets/AuditDashboard-BVyKnpVm.js +1 -0
  30. package/dist/ui/assets/Chat-UVoDlqqM.js +41 -0
  31. package/dist/ui/assets/{Chronos-D1yAb4M5.js → Chronos-Dfs_pOsc.js} +1 -1
  32. package/dist/ui/assets/{ConfirmationModal-DxUHZgTy.js → ConfirmationModal-BBIjVef7.js} +1 -1
  33. package/dist/ui/assets/{Dashboard-BzxmcHaS.js → Dashboard-BdSQDB14.js} +1 -1
  34. package/dist/ui/assets/{DeleteConfirmationModal-CqNXT_YQ.js → DeleteConfirmationModal-Du85q5u2.js} +1 -1
  35. package/dist/ui/assets/{Documents-DLFZdmim.js → Documents-DguILrI8.js} +1 -1
  36. package/dist/ui/assets/{Logs-B1Bpy9dB.js → Logs-BDup2FET.js} +1 -1
  37. package/dist/ui/assets/{MCPManager-BbUDMh5Q.js → MCPManager-WBdh1rum.js} +1 -1
  38. package/dist/ui/assets/{ModelPricing-DCl-2_eJ.js → ModelPricing-BQPw0r6z.js} +1 -1
  39. package/dist/ui/assets/{Notifications-8Cqj-mNp.js → Notifications-BslO2Ect.js} +1 -1
  40. package/dist/ui/assets/{SatiMemories-CdHUe6di.js → SatiMemories-DzaLaZ6M.js} +1 -1
  41. package/dist/ui/assets/SessionAudit-CBDThjBi.js +9 -0
  42. package/dist/ui/assets/{Settings-Clge45Z0.js → Settings-JPTCA7C7.js} +1 -1
  43. package/dist/ui/assets/{Skills-0k7A2T5_.js → Skills-BnDg1HCb.js} +1 -1
  44. package/dist/ui/assets/{Smiths-gjgBMN1F.js → Smiths-DR6g_o3D.js} +1 -1
  45. package/dist/ui/assets/Tasks-BuoNCvI-.js +1 -0
  46. package/dist/ui/assets/{TrinityDatabases-CGna6IMX.js → TrinityDatabases-DYHJunk7.js} +1 -1
  47. package/dist/ui/assets/{UsageStats-B7EzZlZe.js → UsageStats-BpGXaHgW.js} +1 -1
  48. package/dist/ui/assets/{WebhookManager-Bb7KiucS.js → WebhookManager-D2muhYy9.js} +1 -1
  49. package/dist/ui/assets/agents-CgqJea9n.js +1 -0
  50. package/dist/ui/assets/{audit-CJ2Ms81U.js → audit-Dc3YW0-4.js} +1 -1
  51. package/dist/ui/assets/{chronos-Bm68OSy4.js → chronos-CZvGhZQB.js} +1 -1
  52. package/dist/ui/assets/{config-C88yQ_CP.js → config-pKL8Y4V9.js} +1 -1
  53. package/dist/ui/assets/{index-BxN2w9sY.js → index-Bta9YXEm.js} +2 -2
  54. package/dist/ui/assets/index-Cjli-AD7.css +1 -0
  55. package/dist/ui/assets/{mcp-BE_OVkBe.js → mcp-vIffcwd6.js} +1 -1
  56. package/dist/ui/assets/{skills-Dt0qU4gH.js → skills-wANsorUj.js} +1 -1
  57. package/dist/ui/assets/{stats-Bmdps1LR.js → stats-xnlA4NwX.js} +1 -1
  58. package/dist/ui/index.html +2 -2
  59. package/dist/ui/sw.js +1 -1
  60. package/package.json +1 -1
  61. package/dist/ui/assets/AuditDashboard-CM1YN1uk.js +0 -1
  62. package/dist/ui/assets/Chat-D4y-g6Tw.js +0 -41
  63. package/dist/ui/assets/SessionAudit-CtVHK_IH.js +0 -9
  64. package/dist/ui/assets/Tasks-AQ3MrrMp.js +0 -1
  65. package/dist/ui/assets/index-C3Ff736M.css +0 -1
  66. /package/dist/runtime/{ISubagent.js → subagents/ISubagent.js} +0 -0
  67. /package/dist/runtime/{link-chunker.js → subagents/link/chunker.js} +0 -0
  68. /package/dist/runtime/{trinity-connector.js → subagents/trinity/connector.js} +0 -0
@@ -0,0 +1 @@
1
+ import{u as r}from"./vendor-utils-D4NnWbOU.js";import{h as d}from"./index-Bta9YXEm.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-D4NnWbOU.js";import{h as i}from"./index-BxN2w9sY.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-D4NnWbOU.js";import{h as i}from"./index-Bta9YXEm.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-D4NnWbOU.js";import{h as n}from"./index-BxN2w9sY.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-D4NnWbOU.js";import{h as n}from"./index-Bta9YXEm.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{j as r}from"./vendor-motion-C3CZ8ZlO.js";import"./vendor-react-DikRIOlj.js";import{t as o}from"./vendor-utils-D4NnWbOU.js";import{h as t}from"./index-BxN2w9sY.js";function d({label:e,error:n,helperText:a,className:s,...i}){return r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-azure-text-primary/80 dark:text-matrix-secondary",children:e}),r.jsx("input",{type:"number",className:o("bg-azure-bg dark:bg-black border border-azure-border dark:border-matrix-primary text-azure-text-primary dark:text-matrix-secondary placeholder-azure-text-secondary/50 dark:placeholder-matrix-secondary/50 rounded-md px-3 py-2 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 transition-colors",n&&"border-red-500 focus:border-red-500 focus:ring-red-500",s),...i}),a&&!n&&r.jsx("p",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary",children:a}),n&&r.jsx("p",{className:"text-xs text-red-500",children:n})]})}function l({label:e,checked:n,onChange:a,helperText:s,disabled:i}){return r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{className:o("text-sm font-medium text-azure-text-primary/80 dark:text-matrix-highlight/80",i&&"opacity-50"),children:e}),s&&r.jsx("span",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary",children:s})]}),r.jsx("button",{type:"button",role:"switch","aria-checked":n,onClick:()=>!i&&a(!n),className:o("relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-azure-primary dark:focus:ring-matrix-highlight focus:ring-offset-2 focus:ring-offset-azure-bg dark:focus:ring-offset-black",n?"bg-azure-primary dark:bg-matrix-highlight":"bg-slate-300 dark:bg-matrix-primary",i&&"opacity-50 cursor-not-allowed"),children:r.jsx("span",{className:o("inline-block h-4 w-4 transform rounded-full bg-white dark:bg-black transition-transform",n?"translate-x-6":"translate-x-1")})})]})}const m={fetchConfig:async()=>t.get("/config"),updateConfig:async e=>t.post("/config",e),getSatiConfig:async()=>t.get("/config/sati"),updateSatiConfig:async e=>t.post("/config/sati",e),deleteSatiConfig:async()=>t.delete("/config/sati"),getApocConfig:async()=>t.get("/config/apoc"),updateApocConfig:async e=>t.post("/config/apoc",e),deleteApocConfig:async()=>t.delete("/config/apoc"),getNeoConfig:async()=>t.get("/config/neo"),updateNeoConfig:async e=>t.post("/config/neo",e),deleteNeoConfig:async()=>t.delete("/config/neo"),getTrinityConfig:async()=>t.get("/config/trinity"),updateTrinityConfig:async e=>t.post("/config/trinity",e),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 e=>t.put("/smiths/config",e),getSmithsList:async()=>t.get("/smiths"),pingSmith:async e=>t.post(`/smiths/${e}/ping`,{}),removeSmith:async e=>t.delete(`/smiths/${e}`)};export{d as N,l as S,m as c};
1
+ import{j as r}from"./vendor-motion-C3CZ8ZlO.js";import"./vendor-react-DikRIOlj.js";import{t as o}from"./vendor-utils-D4NnWbOU.js";import{h as t}from"./index-Bta9YXEm.js";function d({label:e,error:n,helperText:a,className:s,...i}){return r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-azure-text-primary/80 dark:text-matrix-secondary",children:e}),r.jsx("input",{type:"number",className:o("bg-azure-bg dark:bg-black border border-azure-border dark:border-matrix-primary text-azure-text-primary dark:text-matrix-secondary placeholder-azure-text-secondary/50 dark:placeholder-matrix-secondary/50 rounded-md px-3 py-2 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 transition-colors",n&&"border-red-500 focus:border-red-500 focus:ring-red-500",s),...i}),a&&!n&&r.jsx("p",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary",children:a}),n&&r.jsx("p",{className:"text-xs text-red-500",children:n})]})}function l({label:e,checked:n,onChange:a,helperText:s,disabled:i}){return r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex flex-col",children:[r.jsx("span",{className:o("text-sm font-medium text-azure-text-primary/80 dark:text-matrix-highlight/80",i&&"opacity-50"),children:e}),s&&r.jsx("span",{className:"text-xs text-azure-text-secondary dark:text-matrix-secondary",children:s})]}),r.jsx("button",{type:"button",role:"switch","aria-checked":n,onClick:()=>!i&&a(!n),className:o("relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-azure-primary dark:focus:ring-matrix-highlight focus:ring-offset-2 focus:ring-offset-azure-bg dark:focus:ring-offset-black",n?"bg-azure-primary dark:bg-matrix-highlight":"bg-slate-300 dark:bg-matrix-primary",i&&"opacity-50 cursor-not-allowed"),children:r.jsx("span",{className:o("inline-block h-4 w-4 transform rounded-full bg-white dark:bg-black transition-transform",n?"translate-x-6":"translate-x-1")})})]})}const m={fetchConfig:async()=>t.get("/config"),updateConfig:async e=>t.post("/config",e),getSatiConfig:async()=>t.get("/config/sati"),updateSatiConfig:async e=>t.post("/config/sati",e),deleteSatiConfig:async()=>t.delete("/config/sati"),getApocConfig:async()=>t.get("/config/apoc"),updateApocConfig:async e=>t.post("/config/apoc",e),deleteApocConfig:async()=>t.delete("/config/apoc"),getNeoConfig:async()=>t.get("/config/neo"),updateNeoConfig:async e=>t.post("/config/neo",e),deleteNeoConfig:async()=>t.delete("/config/neo"),getTrinityConfig:async()=>t.get("/config/trinity"),updateTrinityConfig:async e=>t.post("/config/trinity",e),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 e=>t.put("/smiths/config",e),getSmithsList:async()=>t.get("/smiths"),pingSmith:async e=>t.post(`/smiths/${e}/ping`,{}),removeSmith:async e=>t.delete(`/smiths/${e}`)};export{d as N,l as S,m as c};