maestro-agent 0.0.2 → 0.0.3

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 (55) hide show
  1. package/dist/web/apple-touch-icon.png +0 -0
  2. package/dist/web/assets/Connections-BMA04Ycg.js +11 -0
  3. package/dist/web/assets/GanttView-DXjh0gxg.js +49 -0
  4. package/dist/web/assets/Home-Ct3Ho0Qt.js +1 -0
  5. package/dist/web/assets/HooksCrons--0kyVJcR.js +11 -0
  6. package/dist/web/assets/ProjectDetail-B_IqEpFu.js +1 -0
  7. package/dist/web/assets/Roles-D1tIQzto.js +24 -0
  8. package/dist/web/assets/Settings-yts4LUmH.js +11 -0
  9. package/dist/web/assets/Skills-DbuNLjIV.js +12 -0
  10. package/dist/web/assets/Wizard-vJol8-Y4.js +11 -0
  11. package/dist/web/assets/WorkspaceChat-DrsLs4m2.js +56 -0
  12. package/dist/web/assets/WorkspaceDashboard-B9vgrd2Z.js +6 -0
  13. package/dist/web/assets/WorkspaceNew-DoNGYHCG.js +1 -0
  14. package/dist/web/assets/WorkspaceProjects-DDp3mUse.js +6 -0
  15. package/dist/web/assets/WorkspaceSchedules-BTjmCbYG.js +1 -0
  16. package/dist/web/assets/WorkspaceTasks-mPU-bhKR.js +41 -0
  17. package/dist/web/assets/activity-CIA8bIA4.js +6 -0
  18. package/dist/web/assets/addon-fit-BlxrFPDK.js +1 -0
  19. package/dist/web/assets/arrow-right-S7ID7nDp.js +6 -0
  20. package/dist/web/assets/badge-DDTUzWIi.js +1 -0
  21. package/dist/web/assets/circle-check-B3P1qK0Z.js +6 -0
  22. package/dist/web/assets/clock-f9aYZox0.js +6 -0
  23. package/dist/web/assets/{index-B1k33vcR.js → index-BRo4Du_s.js} +3 -3
  24. package/dist/web/assets/index-C7kx39S9.js +196 -0
  25. package/dist/web/assets/index-D6LSdZea.css +1 -0
  26. package/dist/web/assets/plus-BHnOxbns.js +6 -0
  27. package/dist/web/assets/refresh-cw-BWX04Hg3.js +6 -0
  28. package/dist/web/assets/save-BLbb_9xz.js +6 -0
  29. package/dist/web/assets/sparkles-CDr6Dw1e.js +6 -0
  30. package/dist/web/assets/trash-2-9-ThEdey.js +6 -0
  31. package/dist/web/assets/{useEventStream-DTID465I.js → useEventStream-DXt2Hmei.js} +1 -1
  32. package/dist/web/assets/x-DVdKPXXy.js +6 -0
  33. package/dist/web/assets/xterm-DYP7pi_n.css +32 -0
  34. package/dist/web/assets/xterm-DlVFs1Kw.js +9 -0
  35. package/dist/web/favicon-512.png +0 -0
  36. package/dist/web/favicon.png +0 -0
  37. package/dist/web/index.html +4 -2
  38. package/package.json +1 -1
  39. package/dist/web/assets/Connections-DV2Kql1Z.js +0 -1
  40. package/dist/web/assets/GanttView-CCT_rFpY.js +0 -39
  41. package/dist/web/assets/Home-BFbUIh2z.js +0 -1
  42. package/dist/web/assets/HooksCrons-ASM5-jDm.js +0 -1
  43. package/dist/web/assets/ProjectDetail-KZZi6IAd.js +0 -1
  44. package/dist/web/assets/Roles-KQ94PG3H.js +0 -4
  45. package/dist/web/assets/ScheduledTasks-CdJHJpEV.js +0 -1
  46. package/dist/web/assets/Settings-CTflMta-.js +0 -1
  47. package/dist/web/assets/Skills-D09W1mwX.js +0 -2
  48. package/dist/web/assets/Wizard-CW6B0wc3.js +0 -1
  49. package/dist/web/assets/WorkspaceChat-CthETL_A.js +0 -1
  50. package/dist/web/assets/WorkspaceDashboard-DTAesQuT.js +0 -1
  51. package/dist/web/assets/WorkspaceNew-Em4msIKn.js +0 -1
  52. package/dist/web/assets/WorkspaceProjects-Dxg2BpQy.js +0 -1
  53. package/dist/web/assets/WorkspaceTasks-C20mnnkP.js +0 -1
  54. package/dist/web/assets/index-Bk2hHz7P.css +0 -1
  55. package/dist/web/assets/index-Ddy5AJwx.js +0 -61
Binary file
@@ -0,0 +1,11 @@
1
+ import{q as p,z as a,v as e,a as g,s as y,x as u}from"./index-C7kx39S9.js";import{R as j}from"./refresh-cw-BWX04Hg3.js";import{A as N}from"./activity-CIA8bIA4.js";/**
2
+ * @license lucide-react v1.16.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const k=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],w=p("cpu",k);/**
7
+ * @license lucide-react v1.16.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const M=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],C=p("search",M);function E(){const[i,v]=a.useState([]),[l,c]=a.useState(!0),[o,r]=a.useState(""),[d,h]=a.useState(null),n=()=>{c(!0),y("/runtimes").then(s=>{v(s),r("")}).catch(s=>r(s.message)).finally(()=>c(!1))};a.useEffect(()=>{n()},[]);const f=s=>{h(s),u(`/runtimes/${s}/healthcheck`,{}).then(()=>n()).catch(t=>r(t.message)).finally(()=>h(null))},b=()=>{u("/runtimes/discover",{}).then(()=>n()).catch(s=>r(s.message))};return e.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[e.jsxs("div",{className:"h-[52px] border-b border-[hsl(var(--border))] flex items-center justify-between px-6 shrink-0 bg-[hsl(var(--card))/0.92] backdrop-blur-xl",children:[e.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"运行时"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:b,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-xs font-medium hover:border-[hsl(var(--muted-foreground))] transition-colors",children:[e.jsx(C,{className:"w-3.5 h-3.5"}),"发现"]}),e.jsxs("button",{onClick:n,disabled:l,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-xs font-medium hover:border-[hsl(var(--muted-foreground))] transition-colors disabled:opacity-50",children:[e.jsx(j,{className:`w-3.5 h-3.5 ${l?"animate-spin":""}`}),"刷新"]})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[o&&e.jsx("div",{className:"mb-4 p-3 rounded-lg bg-[hsl(var(--destructive))/0.08] border border-[hsl(var(--destructive))/0.2] text-sm text-[hsl(var(--destructive))]",children:o}),l?e.jsx("div",{className:"text-center py-12 text-sm text-[hsl(var(--muted-foreground))]",children:"加载中..."}):i.length===0?e.jsxs("div",{className:"text-center py-16 text-[hsl(var(--muted-foreground))]",children:[e.jsx(g,{className:"w-10 h-10 mx-auto mb-3 opacity-40"}),e.jsx("p",{className:"text-sm",children:"暂无运行时"}),e.jsx("p",{className:"text-xs mt-1 opacity-70",children:"点击「发现」来查找本地 Agent 运行时"})]}):e.jsx("div",{className:"space-y-3",children:i.map(s=>{var x;const t=((x=s.waterline)==null?void 0:x.utilization)??0,m=Math.round(t*100);return e.jsxs("div",{className:"bg-[hsl(var(--card))] border border-[hsl(var(--border))] rounded-xl p-4",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(w,{className:"w-4 h-4 text-[hsl(var(--muted-foreground))]"}),e.jsx("span",{className:"font-medium text-sm",children:s.type||"unknown"}),e.jsx("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded bg-[hsl(var(--muted))] text-[hsl(var(--muted-foreground))]",children:s.transport||"—"}),e.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-mono font-medium ${s.status==="healthy"?"pill-success":s.status==="degraded"?"pill-warning":"pill-danger"}`,children:s.status||"unknown"})]}),e.jsxs("div",{className:"text-xs text-[hsl(var(--muted-foreground))] font-mono ml-6",children:[s.cmd&&e.jsx("span",{className:"truncate block max-w-md",children:s.cmd}),e.jsxs("span",{children:["容量: ",s.capacity??"—"]}),s.waterline&&e.jsxs("span",{className:"ml-3",children:["运行中: ",s.waterline.running]})]})]}),e.jsxs("button",{onClick:()=>f(s.id),disabled:d===s.id,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md border border-[hsl(var(--border))] text-xs font-medium hover:border-[hsl(var(--muted-foreground))] transition-colors disabled:opacity-50 shrink-0",children:[e.jsx(N,{className:`w-3 h-3 ${d===s.id?"animate-pulse":""}`}),d===s.id?"检查中...":"健康检查"]})]}),s.capacity&&s.capacity>0&&e.jsxs("div",{className:"mt-3 ml-6",children:[e.jsxs("div",{className:"flex justify-between text-[11px] text-[hsl(var(--muted-foreground))] mb-1 font-mono",children:[e.jsx("span",{children:"利用率"}),e.jsxs("span",{className:"tabular-nums",children:[m,"%"]})]}),e.jsx("div",{className:"h-1.5 bg-[hsl(var(--muted))] rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full rounded-full transition-all ${t>.8?"bg-[hsl(var(--destructive))]":t>.5?"bg-[hsl(var(--warning))]":"bg-[hsl(var(--success))]"}`,style:{width:`${Math.min(100,m)}%`}})})]})]},s.id)})})]})]})}export{E as default};