@hivemagnus/magnus-ui 2.9.0 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/apps/dashboard/.next/BUILD_ID +1 -1
- package/dist/app/apps/dashboard/.next/build-manifest.json +3 -3
- package/dist/app/apps/dashboard/.next/prerender-manifest.json +3 -3
- package/dist/app/apps/dashboard/.next/required-server-files.json +2 -2
- package/dist/app/apps/dashboard/.next/server/app/_global-error.html +1 -1
- package/dist/app/apps/dashboard/.next/server/app/_global-error.rsc +1 -1
- package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/app/apps/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/anomalies/[anomalyId]/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/anomalies/[anomalyId]/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/anomalies/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/anomalies/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/anomalies/remediation/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/anomalies/remediation/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api-docs/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api-docs/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/application-operations/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/application-operations/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/ardent/installations/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/ardent/installations/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/ardent/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/ardent/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/[id]/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/[id]/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/audit/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/codex/installations/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/codex/installations/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/codex/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/codex/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/commands/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/commands/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/cron/page/server-reference-manifest.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/cron/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/cron/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/files/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/files/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/fleet-map/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/fleet-map/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/fleet-timeline/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/fleet-timeline/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/governor/operations/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/governor/operations/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/governor/share/[token]/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/governor/share/[token]/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/hermes-drift/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/hermes-drift/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/hermes-security/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/hermes-security/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/incidents/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/incidents/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/library/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/library/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/login/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/logs/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/logs/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/mission-control/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/mission-control/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/nodes/[nodeId]/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/nodes/[nodeId]/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/nodes/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/notifications/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/notifications/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/orchestra/installations/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/orchestra/installations/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/orchestra/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/orchestra/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/orchestra/profiles/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/orchestra/profiles/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/orchestra/web-gateway/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/orchestra/web-gateway/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/retention/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/retention/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/roles/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/roles/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/rollouts/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/rollouts/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/[caseId]/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/[caseId]/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/entities/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/entities/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/events/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/events/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/evidence/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/evidence/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/policies/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/policies/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/sources/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/sources/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/skills/page/server-reference-manifest.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/skills/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/webhooks/[id]/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/webhooks/[id]/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/webhooks/new/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/webhooks/new/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/webhooks/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/webhooks/page_client-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__06giq9g4me8eh._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__08sgyyf_y8ab8._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__11pe-l2-ko65_._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0caxc2bc6a__r._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1oebzzj_en62h._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_0gs_s688kgg1i._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_cron_page_tsx_1i3duyygc0_tg._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_skills_page_tsx_0n5zp4xad38in._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/middleware-build-manifest.js +3 -3
- package/dist/app/apps/dashboard/.next/server/pages/500.html +1 -1
- package/dist/app/apps/dashboard/.next/server/preview-props.json +3 -3
- package/dist/app/apps/dashboard/.next/server/server-reference-manifest.js +1 -1
- package/dist/app/apps/dashboard/.next/server/server-reference-manifest.json +3 -3
- package/dist/app/apps/dashboard/.next/static/chunks/{18hkg79eo6i9r.js → 0c3v9-p9awq3r.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{3n3d1pq-tu_fp.js → 1w6gqn64pup79.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{2evmy6cc407ar.js → 3ifw2hbc_bdoe.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{11lb62dd210v8.js → 3kcaeu_qk1k4h.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{3hpzu4ghn2ht3.js → 3rru1go014l0p.js} +1 -1
- package/dist/app/apps/dashboard/package.json +2 -2
- package/dist/app/apps/dashboard/server.js +1 -1
- package/package.json +2 -2
- /package/dist/app/apps/dashboard/.next/static/{59t4MHwcrCDsIMD4qCux0 → Jh1Vzj_Imw7rJQewmUZon}/_buildManifest.js +0 -0
- /package/dist/app/apps/dashboard/.next/static/{59t4MHwcrCDsIMD4qCux0 → Jh1Vzj_Imw7rJQewmUZon}/_clientMiddlewareManifest.js +0 -0
- /package/dist/app/apps/dashboard/.next/static/{59t4MHwcrCDsIMD4qCux0 → Jh1Vzj_Imw7rJQewmUZon}/_ssgManifest.js +0 -0
package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_0gs_s688kgg1i._.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[3319,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(8897);a.i(46997),Date.now();var e=a.i(26926),f=a.i(62190),g=a.i(65802),h=a.i(74290);function i({children:a,...d}){let e=(0,c.useContext)(g.f);(d={...e,...d}).transition=(0,f.f)(d.transition,e.transition),d.isStatic=(0,h.f)(()=>d.isStatic);let j=(0,c.useMemo)(()=>d,[JSON.stringify(d.transition),d.transformPagePoint,d.reducedMotion,d.skipAnimations,d.isValidProp]);return(0,b.jsx)(g.f.Provider,{value:j,children:a})}var j=a.i(73140);a.s(["Providers",0,function({children:a}){return(0,c.useEffect)(()=>((0,j.P)(),()=>{}),[]),(0,b.jsx)(i,{reducedMotion:"user",children:(0,b.jsx)(e.N,{children:(0,b.jsx)(d.v,{children:a})})})}],3319)},12737,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(50944),e=a.i(38246),f=a.i(8387),g=a.i(89027),h=a.i(41476),i=a.i(3512),j=a.i(52562),k=a.i(8897),l=a.i(85264),m=a.i(5334),n=a.i(57547);function o({status:a}){let c="online"===a?"Online":"offline"===a?"Offline":"Checking…";return(0,b.jsx)("span",{role:"status","aria-label":c,className:`inline-block h-2 w-2 shrink-0 rounded-full ${"online"===a?"bg-success":"offline"===a?"bg-danger":"bg-text-muted/40 animate-pulse"}`,title:c})}function p(){let{nodes:a,activeNode:d,switchNode:e,loading:f}=(0,k.l)(),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(!1),v=(0,c.useRef)(null),[w,x]=(0,c.useState)({}),y=(0,c.useRef)(null),z=(0,c.useMemo)(()=>a.length>0?a:[m.f],[a]),A=(0,c.useCallback)(async()=>{let a={};await Promise.allSettled(z.map(async b=>{try{let c=(0,n.L)(b.url),d=await fetch("/api/proxy/health",{method:"GET",headers:c,signal:AbortSignal.timeout(6e3)});a[b.id]=d.ok?"online":"offline"}catch{a[b.id]="offline"}})),x(a)},[z]);return((0,c.useEffect)(()=>{A()},[A]),(0,c.useEffect)(()=>{if(p)return A(),y.current=setInterval(()=>void A(),3e4),()=>{y.current&&clearInterval(y.current)}},[p,A]),(0,c.useEffect)(()=>{if(p)return document.addEventListener("mousedown",a),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",b)};function a(a){v.current&&!v.current.contains(a.target)&&q(!1)}function b(a){"Escape"===a.key&&q(!1)}},[p]),f)?(0,b.jsx)("div",{className:"mx-3 mt-2 mb-1 rounded border border-border bg-bg px-3 py-2 text-xs text-text-muted animate-pulse",children:"Loading…"}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"relative mx-3 mt-2 mb-1",ref:v,children:[(0,b.jsx)("div",{className:"mb-1 px-0.5 text-[10px] font-semibold uppercase tracking-wider text-text-muted",children:"Node Controller"}),(0,b.jsxs)("div",{className:"flex items-center gap-1",children:[(0,b.jsxs)("button",{onClick:()=>q(!p),"aria-expanded":p,"aria-haspopup":"listbox","aria-label":`Node controller: ${d.name}`,className:"flex flex-1 items-center gap-2 rounded border border-border bg-bg px-2.5 py-1.5 text-left transition-all hover:bg-surface-hover min-w-0",children:[(0,b.jsx)(o,{status:w[d.id]??"unknown"}),(0,b.jsx)("span",{className:"flex-1 truncate text-xs font-medium",children:d.name}),(0,b.jsx)(g.f,{className:`h-3.5 w-3.5 shrink-0 text-text-muted transition-transform ${p?"rotate-180":""}`})]}),(0,b.jsx)("button",{onClick:function(){u(!1),s(!0)},className:"rounded border border-border bg-bg p-1.5 text-text-muted transition-all hover:bg-surface-hover hover:text-text",title:"Control Node Settings",children:(0,b.jsx)(h.f,{className:"h-3.5 w-3.5"})})]}),p&&(0,b.jsxs)("div",{className:"absolute left-3 right-3 z-50 mt-1 rounded border border-border bg-surface shadow-xl",children:[(0,b.jsx)("div",{role:"listbox","aria-label":"Control nodes",className:"max-h-48 overflow-y-auto py-1",children:z.map(a=>(0,b.jsxs)("button",{role:"option","aria-selected":a.id===d.id,onClick:()=>{e(a.id),q(!1)},className:"flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-all hover:bg-surface-hover",children:[(0,b.jsx)(o,{status:w[a.id]??"unknown"}),(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsx)("div",{className:"font-medium truncate",children:a.name}),(0,b.jsx)("div",{className:"text-text-muted truncate text-[10px]",children:a.url})]}),a.id===d.id&&(0,b.jsx)(j.f,{className:"h-3.5 w-3.5 shrink-0 text-primary"})]},a.id))}),(0,b.jsx)("div",{className:"border-t border-border",children:(0,b.jsxs)("button",{onClick:function(){q(!1),u(!0),s(!0)},className:"flex w-full items-center gap-2 px-3 py-2 text-left text-xs text-primary transition-all hover:bg-surface-hover",children:[(0,b.jsx)(i.f,{className:"h-3.5 w-3.5"}),(0,b.jsx)("span",{className:"font-bold",children:"Add Control Node"})]})})]})]}),(0,b.jsx)(l.f,{open:r,onClose:()=>s(!1),createMode:t})]})}var q=a.i(31289),r=a.i(64831);let s={name:"layout-dashboard",size:24,node:[["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"}]]};s.node;let t=(0,r.f)(s);var u=a.i(34532),v=a.i(57307),w=a.i(8311),x=a.i(83138);let y={name:"scroll-text",size:24,node:[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]};y.node;let z=(0,r.f)(y);var A=a.i(14258),B=a.i(82260),C=a.i(85888),D=a.i(35173),E=a.i(11715),F=a.i(87529),G=a.i(92378);let H={name:"map",size:24,node:[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]};H.node;let I=(0,r.f)(H);var J=a.i(18688);let K={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]};K.node;let L=(0,r.f)(K);var M=a.i(75027);let N={name:"heart-pulse",size:24,node:[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]]};N.node;let O=(0,r.f)(N),P={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};P.node;let Q=(0,r.f)(P);var R=a.i(27061);let S={name:"git-compare-arrows",size:24,node:[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]};S.node;let T=(0,r.f)(S),U={name:"package-check",size:24,node:[["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m16 17 2 2 4-4",key:"uh5qu3"}],["path",{d:"M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753",key:"kpkbpo"}],["path",{d:"M3.29 7 12 12l8.71-5",key:"19ckod"}],["path",{d:"m7.5 4.27 8.997 5.148",key:"9yrvtv"}]]};U.node;let V=(0,r.f)(U),W={name:"square-activity",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]],aliases:["activity-square"]};W.node;let X=(0,r.f)(W);var Y=a.i(36273);let Z={name:"scan-search",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]};Z.node;let $=(0,r.f)(Z);var _=a.i(17770),aa=a.i(26766),ab=a.i(69942),ac=a.i(6024);let ad=[{id:"fleet",label:"Fleet",tone:"primary",items:[{href:"/mission-control",label:"Mission Control",icon:L},{href:"/",label:"Overview",icon:t,exact:!0},{href:"/nodes",label:"Nodes",icon:u.f},{href:"/application-operations",label:"Applications",icon:O},{href:"/fleet-readiness",label:"Readiness",icon:ac.f},{href:"/fleet-timeline",label:"Timeline",icon:Q},{href:"/fleet-map",label:"Fleet Map",icon:I},{href:"/commands",label:"Commands",icon:v.f},{href:"/anomalies",label:"Anomalies",icon:D.f},{href:"/anomalies/remediation",label:"Remediation",icon:G.f},{href:"/governor/operations",label:"Operations",icon:E.f},{href:"/rollouts",label:"Rollouts",icon:V},{href:"/incidents",label:"Incidents",icon:X},{href:"/cron",label:"Cron Jobs",icon:w.f},{href:"/files",label:"Files",icon:x.f},{href:"/logs",label:"Logs",icon:z},{href:"/audit",label:"Audit",icon:A.f},{href:"/webhooks",label:"Webhooks",icon:F.f},{href:"/retention",label:"Retention",icon:R.f},{href:"/api-docs",label:"API Docs",icon:J.f}]},{id:"security",label:"Security",tone:"primary",integration:"securityConsole",items:[{href:"/security-fusion",label:"Fleet summary",icon:$,exact:!0}]},{id:"hermes",label:"Hermes Agent",tone:"accent",integration:"hermes",items:[{href:"/orchestra",label:"Overview",icon:B.f,exact:!0},{href:"/orchestra/installations",label:"Installations",icon:u.f},{href:"/orchestra/profiles",label:"Profiles",icon:C.f},{href:"/hermes-drift",label:"Drift Cockpit",icon:T},{href:"/hermes-security",label:"Proxy Security",icon:Y.f},{href:"/orchestra/web-gateway",label:"Web Gateway",icon:M.f}]},{id:"ardent",label:"Magnus Ardent",tone:"primary",items:[{href:"/ardent",label:"Overview",icon:ab.f,exact:!0},{href:"/ardent/installations",label:"Installations",icon:u.f},{href:"/ardent/profiles",label:"Profiles",icon:C.f}]},{id:"codex",label:"Codex Agent",tone:"primary",items:[{href:"/codex",label:"Overview",icon:_.f,exact:!0},{href:"/codex/installations",label:"Installations",icon:aa.f}]}],ae={"/":"Fleet Overview","/mission-control":"Mission Control","/nodes":"Nodes","/application-operations":"Application Operations","/fleet-readiness":"Fleet Readiness","/fleet-timeline":"Fleet Timeline","/fleet-map":"Fleet Map","/commands":"Commands","/anomalies":"Anomalies","/anomalies/remediation":"Auto-Remediation","/governor/operations":"Fleet Operations","/rollouts":"Guided Rollouts","/incidents":"Incident Workspace","/cron":"Cron Jobs","/files":"Files","/logs":"Logs","/audit":"Audit","/webhooks":"Webhooks","/retention":"Retention","/api-docs":"API Docs","/library":"Library","/skills":"Skills","/roles":"Roles","/sync":"Sync","/notifications":"Notification Preferences","/security-fusion":"Security","/orchestra":"Hermes Agent Fleet","/orchestra/installations":"Hermes Installations","/orchestra/profiles":"Hermes Profiles","/orchestra/web-gateway":"Web Gateway","/hermes-drift":"Hermes Drift Cockpit","/hermes-security":"Hermes Proxy Security","/ardent":"Magnus Ardent","/ardent/installations":"Ardent Installations","/ardent/profiles":"Ardent Profiles","/codex":"Codex Agent Fleet","/codex/installations":"Codex Installations"};function af(a,b,c=!1){return"/"===b||c?a===b:a===b||a.startsWith(`${b}/`)}function ag(a){let b=null;for(let c of ad)for(let d of c.items)!d.external&&af(a,d.href,d.exact)&&(null===b||d.href.length>b.length)&&(b=d.href);return b}var ah=a.i(33643);let ai={security:"from-primary/60 via-accent/20",hermes:"from-accent/50 via-accent/20",ardent:"from-primary/50 via-accent/20",codex:"from-primary/50 via-primary/20"};function aj({group:a,activeHref:c}){let d="accent"===a.tone;return(0,b.jsxs)(b.Fragment,{children:["fleet"!==a.id&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"mx-3 my-1",children:(0,b.jsx)("div",{className:(0,f.f)("h-px bg-gradient-to-r to-transparent",ai[a.id])})}),(0,b.jsx)("div",{className:"px-4 pb-0.5 pt-2",children:(0,b.jsx)("span",{className:(0,f.f)("text-[9px] font-bold uppercase tracking-[0.25em]",d?"text-accent/60":"text-primary/60"),children:a.label})})]}),(0,b.jsx)("nav",{className:(0,f.f)("space-y-0.5 p-3","fleet"!==a.id&&"pt-1"),"aria-label":a.label,children:a.items.map(a=>{let g=a.href===c,h=a.icon;return(0,b.jsxs)(e.default,{href:a.href,prefetch:!1,target:a.external?"_blank":void 0,rel:a.external?"noopener noreferrer":void 0,"aria-current":g?"page":void 0,className:(0,f.f)("group relative flex items-center gap-3 overflow-hidden rounded-chip px-3 py-2 text-xs uppercase tracking-wider transition-colors duration-200","before:pointer-events-none before:absolute before:inset-y-0 before:-left-1/2 before:w-1/2 before:-skew-x-12 before:bg-gradient-to-r before:from-transparent before:to-transparent before:opacity-0 before:transition-[left,opacity] before:duration-500 hover:before:left-full hover:before:opacity-100",d?"before:via-accent/10":"before:via-primary/10",g?(0,f.f)(d?"text-accent":"text-primary",d?"bg-accent/5":"bg-primary/5"):(0,f.f)("text-text-muted",d?"hover:text-accent":"hover:text-primary")),children:[g&&(0,b.jsx)(q.f.span,{layoutId:"sidebar-indicator",className:(0,f.f)("absolute bottom-1 left-0 top-1 w-0.5 rounded-full",d?"bg-accent":"bg-primary"),style:{boxShadow:d?"0 0 8px var(--color-accent), 0 0 16px var(--color-glow-accent)":"0 0 8px var(--color-primary), 0 0 16px var(--color-glow)"},transition:{type:"spring",stiffness:300,damping:30}}),(0,b.jsx)(h,{className:"relative h-4 w-4 shrink-0"}),(0,b.jsx)("span",{className:"relative truncate",children:a.label})]},a.href)})})]})}function ak(){return(0,b.jsxs)("div",{className:"relative flex h-8 w-8 items-center justify-center animate-flicker",children:[(0,b.jsxs)("svg",{viewBox:"0 0 32 32",className:"h-8 w-8 overflow-visible","aria-hidden":"true",children:[(0,b.jsx)("rect",{x:"1",y:"1",width:"30",height:"30",rx:"4",fill:"none",stroke:"var(--color-primary)",strokeOpacity:"0.35"}),(0,b.jsx)("path",{d:"M8 23 V9 L16 18 L24 9 V23",fill:"none",stroke:"var(--color-primary)",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",pathLength:100,style:{"--stroke-length":100,strokeDasharray:100,animation:"draw-stroke 1.4s var(--ease-out-expo) both"},className:"drop-shadow-[0_0_4px_var(--color-primary)]"})]}),(0,b.jsx)("div",{className:"absolute inset-0 rounded shadow-[0_0_12px_var(--color-glow)]"})]})}function al(){let{connected:a}=(0,c.useSyncExternalStore)(ah.f.subscribe,ah.f.getSnapshot,ah.f.getServerSnapshot);return(0,b.jsxs)("span",{className:"flex items-center gap-1.5",title:a?"Live event stream connected":"Live event stream reconnecting",children:[(0,b.jsxs)("span",{className:"relative inline-flex h-1.5 w-1.5",children:[a&&(0,b.jsx)("span",{className:"absolute inset-0 rounded-full bg-success animate-halo"}),(0,b.jsx)("span",{className:(0,f.f)("relative inline-flex h-1.5 w-1.5 rounded-full",a?"bg-success shadow-[0_0_6px_var(--color-success)]":"bg-warning")})]}),(0,b.jsx)("span",{className:a?"text-success/70":"text-warning/70",children:a?"Live":"Offline"})]})}function am({integrations:a}){let e=ag((0,d.usePathname)()),f=(0,c.useMemo)(()=>(function(a,b=ad){return b.filter(b=>{var c;return!b.integration||(c=b.integration,"securityConsole"===c?null!==a.securityConsoleUrl:a.hermes)}).map(b=>"security"===b.id&&a.securityConsoleUrl?{...b,items:[{href:a.securityConsoleUrl,label:"Security console ↗",icon:$,external:!0},...b.items]}:b)})(a),[a]);return(0,b.jsxs)("aside",{className:"relative flex h-full w-56 flex-col border-r border-border/50 bg-bg",children:[(0,b.jsx)("div",{className:"absolute bottom-0 right-0 top-0 w-px bg-gradient-to-b from-primary/60 via-primary/20 to-transparent"}),(0,b.jsxs)("div",{className:"flex h-14 items-center gap-3 border-b border-border/30 px-4",children:[(0,b.jsx)(ak,{}),(0,b.jsx)("span",{className:"text-sm font-bold uppercase tracking-[0.2em] text-text",children:"Magnus"})]}),(0,b.jsx)(p,{}),(0,b.jsx)("div",{className:"flex-1 overflow-y-auto",children:f.map(a=>(0,b.jsx)(aj,{group:a,activeHref:e},a.id))}),(0,b.jsxs)("div",{className:"flex items-center justify-between border-t border-border/30 p-4 text-[10px] uppercase tracking-widest text-primary/40",children:[(0,b.jsxs)("span",{children:["Magnus v","2.9.0"]}),(0,b.jsx)(al,{})]})]})}var an=a.i(57230),ao=a.i(19783);let ap={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};ap.node;let aq=(0,r.f)(ap);var ar=a.i(33540),as=a.i(41146);let at={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};at.node;let au=(0,r.f)(at),av={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]};av.node;let aw=(0,r.f)(av);var ax=a.i(68579),ay=a.i(21327),az=a.i(52357),aA=a.i(99101),aB=a.i(42973),aC=a.i(46997);function aD(){let[a,d]=(0,c.useState)(!1),[g,i]=(0,c.useState)([]),[k,l]=(0,c.useState)(0),[m,n]=(0,c.useState)(!1),o=(0,c.useRef)(null),p=(0,c.useCallback)(async()=>{try{let a=await aC.f.notifications.unreadCount();a.success&&a.data&&l(a.data.count)}catch{}},[]),q=(0,c.useCallback)(async()=>{n(!0);try{let a=await aC.f.notifications.list({pageSize:20});if(a.success&&a.data){let b=a.data;i(b.notifications)}}catch{}finally{n(!1)}},[]);(0,c.useEffect)(()=>{p();let a=setInterval(()=>void p(),15e3);return()=>clearInterval(a)},[p]),(0,c.useEffect)(()=>{a&&q()},[a,q]),(0,c.useEffect)(()=>{if(!a)return;let b=a=>{o.current&&!o.current.contains(a.target)&&d(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[a]),(0,c.useEffect)(()=>{if(!a)return;let b=a=>{"Escape"===a.key&&d(!1)};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]);let r=async a=>{try{await aC.f.notifications.markRead([a]),i(b=>b.map(b=>b.id===a?{...b,isRead:!0}:b)),l(a=>Math.max(0,a-1))}catch{}},s=async()=>{try{await aC.f.notifications.markAllRead(),i(a=>a.map(a=>({...a,isRead:!0}))),l(0),setTimeout(()=>void p(),500)}catch{}};return(0,b.jsxs)("div",{className:"relative",ref:o,children:[(0,b.jsxs)("button",{className:"relative rounded p-2 text-text-muted transition-all hover:bg-surface-hover hover:text-text",title:"Notifications",type:"button","aria-expanded":a,"aria-controls":"notification-panel","aria-label":k>0?`Notifications (${k} unread)`:"Notifications",onClick:()=>d(a=>!a),children:[(0,b.jsx)(au,{className:"h-4 w-4"}),k>0&&(0,b.jsx)("span",{className:"absolute right-1 top-1 flex h-4 min-w-[1rem] items-center justify-center rounded-full bg-danger px-1 text-[10px] font-bold text-white",children:k>99?"99+":k})]}),a&&(0,b.jsxs)("div",{id:"notification-panel",role:"region","aria-label":"Notifications",className:"absolute right-0 top-full z-50 mt-2 w-96 overflow-hidden rounded border border-border bg-surface shadow-2xl",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[(0,b.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider text-text",children:"Notifications"}),k>0&&(0,b.jsxs)("button",{className:"flex items-center gap-1 rounded px-2 py-1 text-xs text-primary hover:bg-primary/10 transition-all",onClick:()=>void s(),type:"button",children:[(0,b.jsx)(aw,{className:"h-3 w-3"}),"Mark all read"]})]}),(0,b.jsxs)("div",{className:"max-h-96 overflow-y-auto",children:[m&&0===g.length&&(0,b.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,b.jsx)("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})}),!m&&0===g.length&&(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-10 text-text-muted",children:[(0,b.jsx)(au,{className:"mb-2 h-8 w-8 opacity-40"}),(0,b.jsx)("p",{className:"text-xs",children:"No notifications yet"})]}),g.map(a=>(0,b.jsxs)("div",{className:(0,f.f)("group flex items-start gap-3 border-b border-border/50 px-4 py-3 transition-all hover:bg-surface-hover",!a.isRead&&"bg-primary/5"),children:[(0,b.jsx)("div",{className:"mt-0.5 shrink-0",children:function(a){switch(a){case"critical":return(0,b.jsx)(ay.f,{className:"h-4 w-4 text-danger"});case"warning":return(0,b.jsx)(ax.f,{className:"h-4 w-4 text-warning"});default:return(0,b.jsx)(az.f,{className:"h-4 w-4 text-primary"})}}(a.severity)}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[function(a){switch(a){case"node.offline":return(0,b.jsx)(u.f,{className:"h-3.5 w-3.5 text-danger"});case"node.degraded":case"node.upgrade_not_ready":return(0,b.jsx)(u.f,{className:"h-3.5 w-3.5 text-warning"});case"node.recovered":return(0,b.jsx)(O,{className:"h-3.5 w-3.5 text-success"});case"command.failed":return(0,b.jsx)(v.f,{className:"h-3.5 w-3.5 text-warning"});case"deploy.failed":return(0,b.jsx)(aA.f,{className:"h-3.5 w-3.5 text-danger"});case"upgrade.failed":return(0,b.jsx)(aB.f,{className:"h-3.5 w-3.5 text-danger"});default:return(0,b.jsx)(au,{className:"h-3.5 w-3.5 text-text-muted"})}}(a.type),(0,b.jsx)("span",{className:(0,f.f)("text-xs font-bold",a.isRead?"text-text-muted":"text-text"),children:a.title})]}),(0,b.jsx)("p",{className:"mt-0.5 text-xs text-text-muted line-clamp-2",children:a.message}),(0,b.jsx)("span",{className:"mt-1 block text-[10px] text-text-muted/60",children:function(a){let b=Math.floor((Date.now()-new Date(a).getTime())/1e3);if(b<60)return"just now";let c=Math.floor(b/60);if(c<60)return`${c}m ago`;let d=Math.floor(c/60);if(d<24)return`${d}h ago`;let e=Math.floor(d/24);return`${e}d ago`}(a.createdAt)})]}),!a.isRead&&(0,b.jsx)("button",{className:"mt-0.5 shrink-0 rounded p-1 text-text-muted opacity-0 transition-all hover:bg-surface-hover hover:text-primary group-hover:opacity-100",title:"Mark as read",type:"button",onClick:()=>void r(a.id),children:(0,b.jsx)(j.f,{className:"h-3.5 w-3.5"})})]},a.id))]}),(0,b.jsx)("div",{className:"border-t border-border px-4 py-2 flex justify-end",children:(0,b.jsxs)(e.default,{href:"/notifications",className:"flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",onClick:()=>d(!1),children:[(0,b.jsx)(h.f,{className:"h-3 w-3"}),"Preferences"]})})]})]})}var aE=a.i(62260);let aF=[{keys:["g","m"],label:"Go to Mission Control",description:"Navigate to unified Mission Control home",action:"navigate",target:"/mission-control",category:"navigation"},{keys:["g","o"],label:"Go to Overview",description:"Navigate to fleet overview",action:"navigate",target:"/",category:"navigation"},{keys:["g","n"],label:"Go to Nodes",description:"Navigate to node list",action:"navigate",target:"/nodes",category:"navigation"},{keys:["g","c"],label:"Go to Commands",description:"Navigate to command console",action:"navigate",target:"/commands",category:"navigation"},{keys:["g","j"],label:"Go to Cron Jobs",description:"Navigate to cron jobs",action:"navigate",target:"/cron",category:"navigation"},{keys:["g","f"],label:"Go to Files",description:"Navigate to file editor",action:"navigate",target:"/files",category:"navigation"},{keys:["g","s"],label:"Go to Skills",description:"Navigate to skill marketplace",action:"navigate",target:"/skills",category:"navigation"},{keys:["g","l"],label:"Go to Logs",description:"Navigate to log explorer",action:"navigate",target:"/logs",category:"navigation"},{keys:["g","a"],label:"Go to Audit",description:"Navigate to audit trail",action:"navigate",target:"/audit",category:"navigation"},{keys:["?"],label:"Show Shortcuts",description:"Show keyboard shortcut reference",action:"command",target:"show-shortcuts",category:"general"}];function aG(){return"u">typeof navigator&&/Mac|iPhone|iPad/.test(navigator.userAgent)?"⌘":"Ctrl"}function aH(){document.body.dispatchEvent(new KeyboardEvent("keydown",{key:"k",ctrlKey:!0,metaKey:!0,bubbles:!0}))}function aI({onMenuToggle:a}){let f=(0,d.usePathname)(),g=(0,d.useRouter)(),{title:h,crumbs:i}=function(a){let b=null;for(let c of Object.keys(ae))af(a,c)&&(null===b||c.length>b.length)&&(b=c);let c=b?ae[b]:"Magnus",d=ag(a),e=d?ad.find(a=>a.items.some(a=>a.href===d))?.label??null:null,f=[];if(e&&f.push({label:e}),f.push({label:c,href:b??void 0}),b&&a!==b)for(let c of a.slice("/"===b?1:b.length+1).split("/").filter(Boolean)){let a=decodeURIComponent(c);f.push({label:a.length>18?`${a.slice(0,8)}…${a.slice(-6)}`:a})}return{title:c,group:e,crumbs:f}}(f),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(!1),[n,o]=(0,c.useState)("Ctrl"),p=(0,c.useRef)(null);async function q(a=!1){let b=await fetch(`/api/auth/logout${a?"?all=true":""}`,{method:"POST"}).catch(()=>null);b?.ok?(g.push("/login"),g.refresh()):window.alert("Session revocation unavailable; retry sign out.")}return(0,c.useEffect)(()=>{o(aG()),fetch("/api/auth/me").then(a=>a.ok?a.json():null).then(a=>{a?.username&&k(a.username)}).catch(()=>{})},[]),(0,c.useEffect)(()=>{if(!l)return;let a=a=>{(a instanceof KeyboardEvent?"Escape"!==a.key:p.current?.contains(a.target))||m(!1)};return document.addEventListener("mousedown",a),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",a)}},[l]),(0,b.jsxs)("header",{className:"relative z-(--z-shell) flex h-14 items-center justify-between gap-3 bg-bg/80 px-3 backdrop-blur-sm sm:px-6",children:[(0,b.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-primary/60 via-accent/40 to-transparent"}),(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-xs uppercase tracking-[0.15em] text-text-muted",children:[a&&(0,b.jsx)("button",{className:"mr-1 rounded p-1.5 text-text-muted hover:text-primary md:hidden",onClick:a,type:"button",title:"Toggle menu",children:(0,b.jsx)(aq,{className:"h-5 w-5"})}),(0,b.jsx)("span",{className:"text-primary/60",children:">_"}),(0,b.jsx)("nav",{"aria-label":"Breadcrumb",className:"hidden min-w-0 items-center gap-1 sm:flex",children:i.map((a,c)=>{let d=c===i.length-1;return(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[c>0&&(0,b.jsx)(as.f,{className:"h-3 w-3 shrink-0 text-primary/30","aria-hidden":"true"}),a.href&&!d?(0,b.jsx)(e.default,{href:a.href,prefetch:!1,className:"truncate transition-colors hover:text-primary",children:a.label}):(0,b.jsx)("span",{className:d?"truncate text-text":0===c&&i.length>1?"truncate text-text-muted/60":"truncate","aria-current":d?"page":void 0,children:a.label})]},`${a.label}-${c}`)})}),(0,b.jsx)("span",{className:"sr-only sm:hidden",children:h}),(0,b.jsx)("span",{className:"ml-1 hidden h-3.5 w-1.5 shrink-0 bg-primary/80 sm:inline-block",style:{animation:"cursor-blink 1s step-end infinite"}})]}),(0,b.jsx)(aE.J,{className:"hidden max-w-xl flex-1 lg:block"}),(0,b.jsxs)("div",{className:"flex shrink-0 items-center gap-1 sm:gap-2",children:[(0,b.jsxs)("button",{type:"button",onClick:aH,className:"hidden items-center gap-2 rounded-chip border border-border bg-surface px-2.5 py-1.5 text-[10px] uppercase tracking-wider text-text-muted transition-colors hover:border-primary/40 hover:text-primary md:flex",title:"Search and jump (command palette)",children:[(0,b.jsx)(ar.f,{className:"h-3.5 w-3.5"}),(0,b.jsx)("span",{children:"Search"}),(0,b.jsxs)("kbd",{className:"rounded-chip border border-border bg-bg px-1 text-[9px] text-primary/70",children:[n,"+K"]})]}),(0,b.jsx)("button",{className:"rounded p-2 text-text-muted transition-all hover:text-primary hover:drop-shadow-[0_0_6px_var(--color-glow)]",title:"Refresh",onClick:()=>window.location.reload(),type:"button",children:(0,b.jsx)(ao.f,{className:"h-4 w-4"})}),(0,b.jsx)(aD,{}),(0,b.jsx)("button",{className:"rounded p-2 text-text-muted transition-all hover:text-danger hover:drop-shadow-[0_0_6px_rgba(255,23,68,0.3)]",title:"Sign Out",onClick:()=>void q(),type:"button",children:(0,b.jsx)(an.f,{className:"h-4 w-4"})}),(0,b.jsxs)("div",{ref:p,className:"relative ml-1",children:[(0,b.jsx)("button",{type:"button",onClick:()=>m(a=>!a),"aria-haspopup":"menu","aria-expanded":l,title:j?`Signed in as ${j}`:"Account",className:"flex h-8 w-8 items-center justify-center rounded border border-accent/40 text-[10px] font-bold uppercase text-accent shadow-[0_0_8px_var(--color-glow-accent)] transition-colors hover:border-accent hover:bg-accent/10",children:j?.[0]??"U"}),l&&(0,b.jsxs)("div",{role:"menu",className:"panel-corners absolute right-0 top-full z-(--z-modal) mt-2 w-60 rounded-panel border border-accent/30 bg-surface/95 p-1 shadow-[0_0_24px_var(--color-glow-accent)] backdrop-blur-sm [--panel-corner-color:var(--color-accent)]",children:[j&&(0,b.jsxs)("div",{className:"border-b border-border px-3 py-2 text-[10px] uppercase tracking-wider text-text-muted",children:["Signed in as ",(0,b.jsx)("span",{className:"text-accent",children:j})]}),(0,b.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>void q(),className:"flex w-full items-center gap-2 rounded-chip px-3 py-2 text-left text-xs text-text-muted transition-colors hover:bg-surface-hover hover:text-text",children:[(0,b.jsx)(an.f,{className:"h-3.5 w-3.5"})," Sign out"]}),(0,b.jsxs)("button",{type:"button",role:"menuitem","aria-label":"Sign out all local sessions",onClick:()=>void q(!0),className:"flex w-full items-center gap-2 rounded-chip px-3 py-2 text-left text-xs text-text-muted transition-colors hover:bg-danger/10 hover:text-danger",children:[(0,b.jsx)(an.f,{className:"h-3.5 w-3.5"})," Sign out all local sessions"]})]})]})]})]})}async function aJ(a,b){try{let c=await fetch(a,{signal:b,headers:{accept:"application/json"}});if(!c.ok)return null;return await c.json()}catch{return null}}function aK(a,b){return a.trim()?b.map(b=>({e:b,s:function(a,b){if(!a)return 0;let c=a.toLowerCase(),d=b.toLowerCase(),e=d.indexOf(c);if(-1!==e)return e;let f=0,g=0;for(let a of c){let b=d.indexOf(a,f);if(-1===b)return -1;g+=b-f,f=b+1}return 1e3+g}(a,`${b.label} ${b.sublabel??""}`)})).filter(({s:a})=>a>=0).sort((a,b)=>a.s-b.s).map(({e:a})=>a):b}async function aL(a,b={}){let{signal:c,limit:d=10}=b;if(a.trim().length<2)return[];let[e,f,g]=await Promise.all([aJ("/api/proxy/nodes",c),aJ("/api/proxy/orchestra/installations",c),aJ("/api/proxy/orchestra/skill-catalog",c)]),h=[];for(let a of e?.data??[])h.push({kind:"node",id:a.id,label:a.name,sublabel:a.status?`Node \xb7 ${a.status}`:"Node",href:`/nodes/${a.id}`});for(let a of f?.data??[])h.push({kind:"installation",id:a.id,label:a.displayName??a.hostname,sublabel:`Hermes \xb7 ${a.status??"unknown"}`,href:"/orchestra/installations"});for(let a of g?.data??[])h.push({kind:"skill",id:a.id,label:a.name,sublabel:a.description??"Skill",href:"/skills"});return aK(a,[{kind:"action",id:"deploy-agent",label:"Deploy agent to host",sublabel:"Action · Operations",href:"/governor/operations"},{kind:"action",id:"open-terminal",label:"Open node terminal",sublabel:"Action · Nodes",href:"/nodes"},{kind:"action",id:"run-fleet-check",label:"Run fleet check",sublabel:"Action · Fleet readiness",href:"/fleet-readiness"},{kind:"action",id:"view-stale-nodes",label:"View stale nodes",sublabel:"Action · Readiness",href:"/fleet-readiness"},{kind:"action",id:"rotate-node-secret",label:"Rotate node secret",sublabel:"Action · Operations",href:"/governor/operations"},{kind:"action",id:"latest-failed-deploy",label:"Open latest failed deploy",sublabel:"Action · Timeline",href:"/fleet-timeline"},...h]).slice(0,d)}var aM=a.i(18783),aN=a.i(50354),aO=a.i(74849);let aP={name:"keyboard",size:24,node:[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]};aP.node;let aQ=(0,r.f)(aP);var aR=a.i(74215);let aS={name:"key",size:24,node:[["path",{d:"m2 21 9.6-9.6",key:"9l79m3"}],["path",{d:"m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19",key:"fw8biw"}],["circle",{cx:"15.5",cy:"7.5",r:"5.5",key:"4wxmhb"}]]};aS.node;let aT=(0,r.f)(aS);var aU=a.i(75160),aV=a.i(86708),aW=a.i(73140);let aX={"/":t,"/mission-control":L,"/nodes":u.f,"/commands":v.f,"/cron":w.f,"/files":x.f,"/skills":aN.f,"/logs":z,"/audit":A.f,"/library":aO.f},aY={node:u.f,installation:B.f,skill:aN.f,action:aM.f};function aZ(){let[a,e]=(0,c.useState)(!1),[f,g]=(0,c.useState)(""),[h,i]=(0,c.useState)(0),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)([]),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)("normal"),r=(0,c.useRef)(null),s=(0,d.useRouter)(),t=(0,c.useRef)([]),u=(0,c.useRef)(void 0),v=(0,c.useRef)(void 0),w=(0,c.useRef)(null),x=(f.trim()?aF.filter(a=>a.label.toLowerCase().includes(f.toLowerCase())||a.description.toLowerCase().includes(f.toLowerCase())):aF).map(a=>({kind:"shortcut",key:`s:${a.keys.join("-")}`,shortcut:a})),y=aK(f,l).map(a=>({kind:"entity",key:`e:${a.kind}:${a.id}`,entity:a})),z=f.trim()?[...y,...x]:x;(0,c.useEffect)(()=>{if(!a)return;let b=f.trim();if(b.length<2){m([]),o(!1);return}v.current&&clearTimeout(v.current),w.current&&w.current.abort();let c=new AbortController;return w.current=c,o(!0),v.current=setTimeout(async()=>{let a=await aL(b,{signal:c.signal,limit:12});c.signal.aborted||(m(a),o(!1))},180),()=>{c.abort(),v.current&&clearTimeout(v.current)}},[f,a]);let A=(0,c.useCallback)(a=>{"navigate"===a.action&&a.target?(s.push(a.target),e(!1),g("")):"show-shortcuts"===a.target&&(k(!0),e(!1),g(""))},[s]),B=(0,c.useCallback)(a=>{"shortcut"===a.kind?A(a.shortcut):(s.push(a.entity.href),e(!1),g(""))},[A,s]);return((0,c.useEffect)(()=>{let b=b=>{let c=b.target,d="INPUT"===c.tagName||"TEXTAREA"===c.tagName||c.isContentEditable;if((b.metaKey||b.ctrlKey)&&"k"===b.key.toLowerCase()){b.preventDefault(),b.stopPropagation(),b.stopImmediatePropagation(),e(a=>!a);return}if("Escape"===b.key){if(a){e(!1),g("");return}return j?void k(!1):void 0}if(!d){if("?"===b.key){b.preventDefault(),k(a=>!a);return}if(1===b.key.length&&!b.metaKey&&!b.ctrlKey&&!b.altKey){for(let a of(clearTimeout(u.current),t.current.push(b.key.toLowerCase()),aF))if(a.keys.length===t.current.length&&a.keys.every((a,b)=>a===t.current[b])){b.preventDefault(),t.current=[],A(a);return}u.current=setTimeout(()=>{t.current=[]},800)}}};return window.addEventListener("keydown",b,!0),()=>window.removeEventListener("keydown",b,!0)},[a,j,A]),(0,c.useEffect)(()=>{a&&(i(0),setTimeout(()=>r.current?.focus(),50))},[a]),(0,c.useEffect)(()=>{h>=z.length&&i(Math.max(0,z.length-1))},[z.length,h]),(0,c.useEffect)(()=>{a&&q("low"===document.documentElement.dataset.fx?"low":"normal")},[a]),a||j)?(0,b.jsxs)(b.Fragment,{children:[a&&(0,b.jsxs)("div",{className:"fixed inset-0 z-(--z-modal) flex items-start justify-center pt-[15vh]","data-testid":"command-palette",children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-[2px]",onClick:()=>{e(!1),g("")}}),(0,b.jsxs)("div",{className:"relative z-10 w-full max-w-lg panel-corners rounded-panel border border-primary/30 bg-surface/95 shadow-[0_0_40px_var(--color-glow)]",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-4 py-3",children:[(0,b.jsx)(ar.f,{className:"h-5 w-5 text-primary"}),(0,b.jsx)("input",{ref:r,type:"text",placeholder:"Search nodes, agents, runs, users, commands...",className:"flex-1 bg-transparent text-sm text-text placeholder:text-text-muted/70 caret-primary outline-none",value:f,onChange:a=>{g(a.target.value),i(0)},onKeyDown:a=>{"ArrowDown"===a.key?(a.preventDefault(),i(a=>Math.min(a+1,z.length-1))):"ArrowUp"===a.key?(a.preventDefault(),i(a=>Math.max(a-1,0))):"Enter"===a.key&&z[h]&&(a.preventDefault(),B(z[h]))},"data-testid":"command-palette-input"}),n?(0,b.jsx)(aU.f,{className:"h-4 w-4 animate-spin text-primary"}):(0,b.jsx)("kbd",{className:"rounded-chip border border-border bg-bg px-1.5 py-0.5 text-[10px] text-text-muted",children:"ESC"})]}),(0,b.jsxs)("div",{className:"max-h-96 overflow-y-auto py-2",children:[0===z.length&&!n&&(0,b.jsx)("p",{className:"px-4 py-6 text-center text-xs uppercase tracking-wider text-text-muted",children:"No results found"}),0===z.length&&n&&(0,b.jsx)("p",{className:"px-4 py-6 text-center text-xs uppercase tracking-wider text-text-muted",children:"Searching…"}),z.map((a,c)=>{let d=c===h;if("shortcut"===a.kind){let e=aX[a.shortcut.target??""]??aM.f;return(0,b.jsxs)("button",{className:`flex w-full items-center gap-3 px-4 py-2 text-left text-sm transition-colors ${d?"bg-primary/10 text-primary shadow-[inset_2px_0_0_var(--color-primary)]":"text-text hover:bg-surface-hover"}`,onClick:()=>B(a),onMouseEnter:()=>i(c),"data-testid":"command-palette-item","data-item-kind":"shortcut",children:[(0,b.jsx)(e,{className:"h-4 w-4 shrink-0 opacity-70"}),(0,b.jsx)("span",{className:"flex-1",children:a.shortcut.label}),(0,b.jsx)("span",{className:"text-xs text-text-muted",children:a.shortcut.keys.map(a=>a.toUpperCase()).join(" then ")})]},a.key)}let e=aY[a.entity.kind]??aM.f;return(0,b.jsxs)("button",{className:`flex w-full items-center gap-3 px-4 py-2 text-left text-sm transition-colors ${d?"bg-accent/10 text-accent shadow-[inset_2px_0_0_var(--color-accent)]":"text-text hover:bg-surface-hover"}`,onClick:()=>B(a),onMouseEnter:()=>i(c),"data-testid":"command-palette-item","data-item-kind":"entity","data-entity-kind":a.entity.kind,children:[(0,b.jsx)(e,{className:"h-4 w-4 shrink-0 text-accent/80"}),(0,b.jsxs)("span",{className:"flex-1 truncate",children:[(0,b.jsx)("span",{className:"font-medium",children:a.entity.label}),a.entity.sublabel&&(0,b.jsx)("span",{className:"ml-2 text-xs text-text-muted",children:a.entity.sublabel})]}),(0,b.jsx)("span",{className:"text-[10px] uppercase tracking-wider text-text-muted",children:a.entity.kind})]},a.key)})]}),(0,b.jsxs)("div",{className:"flex items-center gap-4 border-t border-border px-4 py-2 text-[10px] uppercase tracking-wider text-text-muted",children:[(0,b.jsx)("span",{children:"↑↓ navigate"}),(0,b.jsx)("span",{children:"↵ select"}),(0,b.jsx)("span",{children:"esc close"}),(0,b.jsxs)("button",{type:"button",onClick:()=>q((0,aW.W)()),className:"ml-auto flex items-center gap-1 rounded-chip px-1 text-text-muted transition-colors hover:text-primary",title:"Toggle visual effects (scanlines, glow pulses, animated map)","data-testid":"command-palette-fx-toggle",children:[(0,b.jsx)(aV.f,{className:"h-3 w-3"})," fx: ",p]}),(0,b.jsxs)("span",{className:"flex items-center gap-1",children:[(0,b.jsx)(aT,{className:"h-3 w-3"})," ",aG(),"+K"]})]})]})]}),j&&(0,b.jsxs)("div",{className:"fixed inset-0 z-(--z-modal) flex items-center justify-center",children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-[2px]",onClick:()=>k(!1)}),(0,b.jsxs)("div",{className:"relative z-10 w-full max-w-md panel-corners rounded-panel border border-primary/30 bg-surface/95 p-6 shadow-[0_0_40px_var(--color-glow)]",children:[(0,b.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(aQ,{className:"h-5 w-5 text-primary"}),(0,b.jsx)("h2",{className:"text-sm font-bold uppercase tracking-wider text-primary glow-text-primary",children:"Keyboard Shortcuts"})]}),(0,b.jsx)("button",{onClick:()=>k(!1),className:"text-text-muted hover:text-text",children:(0,b.jsx)(aR.X,{className:"h-5 w-5"})})]}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"mb-2 text-[10px] font-medium uppercase tracking-[0.2em] text-text-muted",children:"General"}),(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)(a$,{keys:[`${aG()}+K`],label:"Open command palette"}),(0,b.jsx)(a$,{keys:["?"],label:"Show this reference"}),(0,b.jsx)(a$,{keys:["Esc"],label:"Close modal / palette"})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"mb-2 text-[10px] font-medium uppercase tracking-[0.2em] text-text-muted",children:"Fleet Navigation"}),(0,b.jsx)("div",{className:"space-y-1",children:aF.filter(a=>"navigation"===a.category).map(a=>(0,b.jsx)(a$,{keys:a.keys.map(a=>a.toUpperCase()),label:a.label},a.target))})]})]})]})]})]}):null}function a$({keys:a,label:c}){return(0,b.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,b.jsx)("span",{className:"text-xs text-text",children:c}),(0,b.jsx)("div",{className:"flex gap-1",children:a.map((c,d)=>(0,b.jsxs)("span",{children:[(0,b.jsx)("kbd",{className:"rounded-chip border border-border bg-bg px-1.5 py-0.5 text-[11px] text-primary",children:c}),d<a.length-1&&(0,b.jsx)("span",{className:"mx-0.5 text-[10px] text-text-muted/60",children:"then"})]},d))})]})}let a_={name:"server-cog",size:24,node:[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]]};a_.node;let a0=(0,r.f)(a_);var a1=a.i(47515);let a2="magnus.update-banner.dismissed";function a3(){let[a,d]=(0,c.useState)(null),[f,g]=(0,c.useState)(null);if((0,c.useEffect)(()=>{g(function(){try{return window.localStorage.getItem(a2)}catch{return null}}());let a=!1,b=()=>{aC.f.systemUpdates.get().then(b=>{a||d(b)}).catch(()=>void 0)};b();let c=window.setInterval(b,18e5);return()=>{a=!0,window.clearInterval(c)}},[]),!a)return null;let{server:h,agents:i}=a,j=i.behind.length,k=(0,a1.t)(i);if(!h.updateAvailable&&!h.latestMajor&&0===j)return null;let l=`${a.server.latest??""}|${a.server.latestMajor??""}|${a.agents.behind.length}|${a.agents.expected}`;return f===l?null:(0,b.jsxs)("section",{role:"status","aria-label":"Updates","data-testid":"update-banner",className:"relative mb-4 overflow-hidden rounded border border-warning/40 bg-warning/5 px-4 py-3 text-[11px]",children:[(0,b.jsx)("div",{className:"absolute inset-y-0 left-0 w-0.5 bg-warning"}),(0,b.jsx)("button",{type:"button","aria-label":"Dismiss",className:"absolute right-2 top-2 text-text-muted hover:text-text",onClick:()=>{try{window.localStorage.setItem(a2,l)}catch{}g(l)},children:(0,b.jsx)(aR.X,{className:"h-3.5 w-3.5"})}),(0,b.jsxs)("div",{className:"space-y-2 pr-6",children:[h.updateAvailable&&h.latest&&(0,b.jsxs)("div",{className:"flex items-start gap-2",children:[(0,b.jsx)(aB.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-warning"}),(0,b.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,b.jsxs)("p",{children:[(0,b.jsxs)("span",{className:"font-bold uppercase tracking-wider text-warning",children:["Magnus ",h.latest," is available"]}),(0,b.jsxs)("span",{className:"ml-2 text-text-muted",children:["running ",h.current,h.breaking?" · contains breaking changes":""]})]}),h.releases.filter(a=>a.summary).map(a=>(0,b.jsxs)("p",{className:"text-text-muted",children:[a.version,": ",a.summary," ",a.notesUrl&&(0,b.jsx)("a",{className:"text-primary underline",href:a.notesUrl,target:"_blank",rel:"noreferrer",children:"release notes"})]},a.version)),h.newRequiredEnv.length>0&&(0,b.jsxs)("p",{className:"text-text-muted",children:["New required settings:"," ",h.newRequiredEnv.map(a=>(0,b.jsxs)("code",{className:"mr-1 rounded bg-surface px-1",children:[a.name,"server"!==a.component?` (${a.component})`:""]},a.name)),h.newRequiredEnv.every(a=>a.secret)&&(0,b.jsxs)("span",{children:["(secrets: ",(0,b.jsx)("code",{children:"magnus upgrade --generate-secrets"})," fills them in)"]})]}),h.attention.length>0&&(0,b.jsxs)("p",{className:"text-warning",children:["Needs a maintenance window: ",h.attention.map(a=>`${a.name} (${a.impact}${a.note?`: ${a.note}`:""})`).join("; ")]}),(0,b.jsxs)("p",{className:"text-text-muted",children:["On the server host run ",(0,b.jsx)("code",{className:"rounded bg-surface px-1 text-text",children:h.command})," (backs up the database and reverts on failure)."]})]})]}),h.latestMajor&&(0,b.jsxs)("p",{className:"text-text-muted",children:["Magnus ",h.latestMajor," is a new major version. Major upgrades are never offered automatically; read UPGRADING.md first."]}),j>0&&(0,b.jsxs)("div",{className:"flex items-start gap-2",children:[(0,b.jsx)(a0,{className:"mt-0.5 h-4 w-4 shrink-0 text-warning"}),(0,b.jsxs)("p",{children:[(0,b.jsxs)("span",{className:"font-bold uppercase tracking-wider text-warning",children:[j," agent",1===j?"":"s"," behind the server (",i.expected,")"]}),(0,b.jsxs)("span",{className:"ml-2 text-text-muted",children:[i.behind.slice(0,5).map(a=>`${a.name} ${a.version}`).join(", "),j>5?", …":"","."]})," ",i.upgradesEnabled?(0,b.jsx)(e.default,{href:"/nodes?upgrade=agents",className:"text-primary underline",children:k>0?"Review agent upgrades":"Upgrade agents"}):(0,b.jsx)("span",{className:"text-text-muted",children:"Agent upgrades are off on this server (MAGNUS_AGENT_UPGRADES=false)."}),k>0&&(0,b.jsxs)("span",{className:"ml-2 text-text-muted",children:[k," agent",1===k?" requires":"s require"," a manual major-version upgrade; the dialog only upgrades within the same major."]}),i.fixCommand&&0===k&&(0,b.jsxs)("span",{className:"ml-2 text-text-muted",children:["or run ",(0,b.jsx)("code",{className:"rounded bg-surface px-1 text-text",children:i.fixCommand})]})]})]})]})]})}var a4=a.i(26926);a.s(["DashboardShell",0,function({children:a,integrations:e}){let f=(0,d.usePathname)(),g="/login"===f||f.startsWith("/governor/share/"),[h,i]=(0,c.useState)(!1);!function({enabled:a=!0}={}){let[b,d]=(0,c.useState)(!1),{addToast:e}=(0,a4.d)(),f=(0,c.useRef)(e);f.current=e;let g=(0,c.useRef)(null),h=(0,c.useRef)(null),i=(0,c.useCallback)(()=>{if(!a)return;let b=new EventSource("/api/proxy/events/stream");for(let a of(g.current=b,b.onopen=()=>{d(!0),ah.f.setConnected(!0)},["deploy:status","node:status","command:status","alert:fired"]))b.addEventListener(a,b=>{try{let c=JSON.parse(b.data),d=function(a){let b=a.type??"",c=a.nodeName??"Unknown";switch(b){case"deploy.started":return{title:`Deploying to ${c}`,severity:"info"};case"deploy.completed":return{title:`Deploy complete: ${c}`,severity:"success"};case"deploy.failed":return{title:`Deploy failed: ${c}`,message:a.message??void 0,severity:"error"};case"upgrade.started":return{title:`Upgrading ${c}`,severity:"info"};case"upgrade.completed":return{title:`Upgrade complete: ${c}`,message:`v${a.version}`,severity:"success"};case"upgrade.failed":return{title:`Upgrade failed: ${c}`,message:a.message??void 0,severity:"error"};case"node.recovered":return{title:`${c} back online`,message:`Recovered from ${a.previousStatus}`,severity:"success"};case"command.completed":return{title:"Command completed",message:`${a.command}`,severity:"success"};case"command.failed":return{title:"Command failed",message:`${a.command} (exit ${a.exitCode})`,severity:"error"};case"health.alert":return{title:`Alert: ${a.metric?.replaceAll("_"," ").toUpperCase()} on ${c}`,message:`${a.value?.toFixed(1)}% (threshold: ${a.threshold}%)`,severity:a.severity??"warning"};default:return null}}(c);d&&f.current(d),ah.f.push(d?{...d,channel:a}:{title:String(c.type??a).replaceAll("."," "),message:"string"==typeof c.nodeName?c.nodeName:void 0,severity:"info",channel:a})}catch{}});return b.onerror=()=>{d(!1),ah.f.setConnected(!1),b.close(),fetch("/api/auth/me",{cache:"no-store"}).then(a=>{if(g.current===b){if(401===a.status)return void window.location.replace("/login");h.current=setTimeout(i,5e3)}}).catch(()=>{g.current===b&&(h.current=setTimeout(i,5e3))})},b},[a]);(0,c.useEffect)(()=>{let a=i();return()=>{h.current&&clearTimeout(h.current),a?.close(),g.current?.close(),ah.f.setConnected(!1),g.current=null}},[i])}({enabled:!g}),(0,c.useEffect)(()=>{i(!1)},[f]);let j=(0,c.useCallback)(()=>i(a=>!a),[]);return g?(0,b.jsx)(b.Fragment,{children:a}):(0,b.jsxs)("div",{className:"flex h-screen overflow-hidden",children:[h&&(0,b.jsx)("div",{className:"fixed inset-0 z-40 bg-black/70 backdrop-blur-[2px] md:hidden",onClick:()=>i(!1)}),(0,b.jsx)("div",{className:`
|
|
1
|
+
module.exports=[3319,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(8897);a.i(46997),Date.now();var e=a.i(26926),f=a.i(62190),g=a.i(65802),h=a.i(74290);function i({children:a,...d}){let e=(0,c.useContext)(g.f);(d={...e,...d}).transition=(0,f.f)(d.transition,e.transition),d.isStatic=(0,h.f)(()=>d.isStatic);let j=(0,c.useMemo)(()=>d,[JSON.stringify(d.transition),d.transformPagePoint,d.reducedMotion,d.skipAnimations,d.isValidProp]);return(0,b.jsx)(g.f.Provider,{value:j,children:a})}var j=a.i(73140);a.s(["Providers",0,function({children:a}){return(0,c.useEffect)(()=>((0,j.P)(),()=>{}),[]),(0,b.jsx)(i,{reducedMotion:"user",children:(0,b.jsx)(e.N,{children:(0,b.jsx)(d.v,{children:a})})})}],3319)},12737,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(50944),e=a.i(38246),f=a.i(8387),g=a.i(89027),h=a.i(41476),i=a.i(3512),j=a.i(52562),k=a.i(8897),l=a.i(85264),m=a.i(5334),n=a.i(57547);function o({status:a}){let c="online"===a?"Online":"offline"===a?"Offline":"Checking…";return(0,b.jsx)("span",{role:"status","aria-label":c,className:`inline-block h-2 w-2 shrink-0 rounded-full ${"online"===a?"bg-success":"offline"===a?"bg-danger":"bg-text-muted/40 animate-pulse"}`,title:c})}function p(){let{nodes:a,activeNode:d,switchNode:e,loading:f}=(0,k.l)(),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(!1),v=(0,c.useRef)(null),[w,x]=(0,c.useState)({}),y=(0,c.useRef)(null),z=(0,c.useMemo)(()=>a.length>0?a:[m.f],[a]),A=(0,c.useCallback)(async()=>{let a={};await Promise.allSettled(z.map(async b=>{try{let c=(0,n.L)(b.url),d=await fetch("/api/proxy/health",{method:"GET",headers:c,signal:AbortSignal.timeout(6e3)});a[b.id]=d.ok?"online":"offline"}catch{a[b.id]="offline"}})),x(a)},[z]);return((0,c.useEffect)(()=>{A()},[A]),(0,c.useEffect)(()=>{if(p)return A(),y.current=setInterval(()=>void A(),3e4),()=>{y.current&&clearInterval(y.current)}},[p,A]),(0,c.useEffect)(()=>{if(p)return document.addEventListener("mousedown",a),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",b)};function a(a){v.current&&!v.current.contains(a.target)&&q(!1)}function b(a){"Escape"===a.key&&q(!1)}},[p]),f)?(0,b.jsx)("div",{className:"mx-3 mt-2 mb-1 rounded border border-border bg-bg px-3 py-2 text-xs text-text-muted animate-pulse",children:"Loading…"}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"relative mx-3 mt-2 mb-1",ref:v,children:[(0,b.jsx)("div",{className:"mb-1 px-0.5 text-[10px] font-semibold uppercase tracking-wider text-text-muted",children:"Node Controller"}),(0,b.jsxs)("div",{className:"flex items-center gap-1",children:[(0,b.jsxs)("button",{onClick:()=>q(!p),"aria-expanded":p,"aria-haspopup":"listbox","aria-label":`Node controller: ${d.name}`,className:"flex flex-1 items-center gap-2 rounded border border-border bg-bg px-2.5 py-1.5 text-left transition-all hover:bg-surface-hover min-w-0",children:[(0,b.jsx)(o,{status:w[d.id]??"unknown"}),(0,b.jsx)("span",{className:"flex-1 truncate text-xs font-medium",children:d.name}),(0,b.jsx)(g.f,{className:`h-3.5 w-3.5 shrink-0 text-text-muted transition-transform ${p?"rotate-180":""}`})]}),(0,b.jsx)("button",{onClick:function(){u(!1),s(!0)},className:"rounded border border-border bg-bg p-1.5 text-text-muted transition-all hover:bg-surface-hover hover:text-text",title:"Control Node Settings",children:(0,b.jsx)(h.f,{className:"h-3.5 w-3.5"})})]}),p&&(0,b.jsxs)("div",{className:"absolute left-3 right-3 z-50 mt-1 rounded border border-border bg-surface shadow-xl",children:[(0,b.jsx)("div",{role:"listbox","aria-label":"Control nodes",className:"max-h-48 overflow-y-auto py-1",children:z.map(a=>(0,b.jsxs)("button",{role:"option","aria-selected":a.id===d.id,onClick:()=>{e(a.id),q(!1)},className:"flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-all hover:bg-surface-hover",children:[(0,b.jsx)(o,{status:w[a.id]??"unknown"}),(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsx)("div",{className:"font-medium truncate",children:a.name}),(0,b.jsx)("div",{className:"text-text-muted truncate text-[10px]",children:a.url})]}),a.id===d.id&&(0,b.jsx)(j.f,{className:"h-3.5 w-3.5 shrink-0 text-primary"})]},a.id))}),(0,b.jsx)("div",{className:"border-t border-border",children:(0,b.jsxs)("button",{onClick:function(){q(!1),u(!0),s(!0)},className:"flex w-full items-center gap-2 px-3 py-2 text-left text-xs text-primary transition-all hover:bg-surface-hover",children:[(0,b.jsx)(i.f,{className:"h-3.5 w-3.5"}),(0,b.jsx)("span",{className:"font-bold",children:"Add Control Node"})]})})]})]}),(0,b.jsx)(l.f,{open:r,onClose:()=>s(!1),createMode:t})]})}var q=a.i(31289),r=a.i(64831);let s={name:"layout-dashboard",size:24,node:[["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"}]]};s.node;let t=(0,r.f)(s);var u=a.i(34532),v=a.i(57307),w=a.i(8311),x=a.i(83138);let y={name:"scroll-text",size:24,node:[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]};y.node;let z=(0,r.f)(y);var A=a.i(14258),B=a.i(82260),C=a.i(85888),D=a.i(35173),E=a.i(11715),F=a.i(87529),G=a.i(92378);let H={name:"map",size:24,node:[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]};H.node;let I=(0,r.f)(H);var J=a.i(18688);let K={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]};K.node;let L=(0,r.f)(K);var M=a.i(75027);let N={name:"heart-pulse",size:24,node:[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]]};N.node;let O=(0,r.f)(N),P={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};P.node;let Q=(0,r.f)(P);var R=a.i(27061);let S={name:"git-compare-arrows",size:24,node:[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]};S.node;let T=(0,r.f)(S),U={name:"package-check",size:24,node:[["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m16 17 2 2 4-4",key:"uh5qu3"}],["path",{d:"M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753",key:"kpkbpo"}],["path",{d:"M3.29 7 12 12l8.71-5",key:"19ckod"}],["path",{d:"m7.5 4.27 8.997 5.148",key:"9yrvtv"}]]};U.node;let V=(0,r.f)(U),W={name:"square-activity",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]],aliases:["activity-square"]};W.node;let X=(0,r.f)(W);var Y=a.i(36273);let Z={name:"scan-search",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]};Z.node;let $=(0,r.f)(Z);var _=a.i(17770),aa=a.i(26766),ab=a.i(69942),ac=a.i(6024);let ad=[{id:"fleet",label:"Fleet",tone:"primary",items:[{href:"/mission-control",label:"Mission Control",icon:L},{href:"/",label:"Overview",icon:t,exact:!0},{href:"/nodes",label:"Nodes",icon:u.f},{href:"/application-operations",label:"Applications",icon:O},{href:"/fleet-readiness",label:"Readiness",icon:ac.f},{href:"/fleet-timeline",label:"Timeline",icon:Q},{href:"/fleet-map",label:"Fleet Map",icon:I},{href:"/commands",label:"Commands",icon:v.f},{href:"/anomalies",label:"Anomalies",icon:D.f},{href:"/anomalies/remediation",label:"Remediation",icon:G.f},{href:"/governor/operations",label:"Operations",icon:E.f},{href:"/rollouts",label:"Rollouts",icon:V},{href:"/incidents",label:"Incidents",icon:X},{href:"/cron",label:"Cron Jobs",icon:w.f},{href:"/files",label:"Files",icon:x.f},{href:"/logs",label:"Logs",icon:z},{href:"/audit",label:"Audit",icon:A.f},{href:"/webhooks",label:"Webhooks",icon:F.f},{href:"/retention",label:"Retention",icon:R.f},{href:"/api-docs",label:"API Docs",icon:J.f}]},{id:"security",label:"Security",tone:"primary",integration:"securityConsole",items:[{href:"/security-fusion",label:"Fleet summary",icon:$,exact:!0}]},{id:"hermes",label:"Hermes Agent",tone:"accent",integration:"hermes",items:[{href:"/orchestra",label:"Overview",icon:B.f,exact:!0},{href:"/orchestra/installations",label:"Installations",icon:u.f},{href:"/orchestra/profiles",label:"Profiles",icon:C.f},{href:"/hermes-drift",label:"Drift Cockpit",icon:T},{href:"/hermes-security",label:"Proxy Security",icon:Y.f},{href:"/orchestra/web-gateway",label:"Web Gateway",icon:M.f}]},{id:"ardent",label:"Magnus Ardent",tone:"primary",items:[{href:"/ardent",label:"Overview",icon:ab.f,exact:!0},{href:"/ardent/installations",label:"Installations",icon:u.f},{href:"/ardent/profiles",label:"Profiles",icon:C.f}]},{id:"codex",label:"Codex Agent",tone:"primary",items:[{href:"/codex",label:"Overview",icon:_.f,exact:!0},{href:"/codex/installations",label:"Installations",icon:aa.f}]}],ae={"/":"Fleet Overview","/mission-control":"Mission Control","/nodes":"Nodes","/application-operations":"Application Operations","/fleet-readiness":"Fleet Readiness","/fleet-timeline":"Fleet Timeline","/fleet-map":"Fleet Map","/commands":"Commands","/anomalies":"Anomalies","/anomalies/remediation":"Auto-Remediation","/governor/operations":"Fleet Operations","/rollouts":"Guided Rollouts","/incidents":"Incident Workspace","/cron":"Cron Jobs","/files":"Files","/logs":"Logs","/audit":"Audit","/webhooks":"Webhooks","/retention":"Retention","/api-docs":"API Docs","/library":"Library","/skills":"Skills","/roles":"Roles","/sync":"Sync","/notifications":"Notification Preferences","/security-fusion":"Security","/orchestra":"Hermes Agent Fleet","/orchestra/installations":"Hermes Installations","/orchestra/profiles":"Hermes Profiles","/orchestra/web-gateway":"Web Gateway","/hermes-drift":"Hermes Drift Cockpit","/hermes-security":"Hermes Proxy Security","/ardent":"Magnus Ardent","/ardent/installations":"Ardent Installations","/ardent/profiles":"Ardent Profiles","/codex":"Codex Agent Fleet","/codex/installations":"Codex Installations"};function af(a,b,c=!1){return"/"===b||c?a===b:a===b||a.startsWith(`${b}/`)}function ag(a){let b=null;for(let c of ad)for(let d of c.items)!d.external&&af(a,d.href,d.exact)&&(null===b||d.href.length>b.length)&&(b=d.href);return b}var ah=a.i(33643);let ai={security:"from-primary/60 via-accent/20",hermes:"from-accent/50 via-accent/20",ardent:"from-primary/50 via-accent/20",codex:"from-primary/50 via-primary/20"};function aj({group:a,activeHref:c}){let d="accent"===a.tone;return(0,b.jsxs)(b.Fragment,{children:["fleet"!==a.id&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"mx-3 my-1",children:(0,b.jsx)("div",{className:(0,f.f)("h-px bg-gradient-to-r to-transparent",ai[a.id])})}),(0,b.jsx)("div",{className:"px-4 pb-0.5 pt-2",children:(0,b.jsx)("span",{className:(0,f.f)("text-[9px] font-bold uppercase tracking-[0.25em]",d?"text-accent/60":"text-primary/60"),children:a.label})})]}),(0,b.jsx)("nav",{className:(0,f.f)("space-y-0.5 p-3","fleet"!==a.id&&"pt-1"),"aria-label":a.label,children:a.items.map(a=>{let g=a.href===c,h=a.icon;return(0,b.jsxs)(e.default,{href:a.href,prefetch:!1,target:a.external?"_blank":void 0,rel:a.external?"noopener noreferrer":void 0,"aria-current":g?"page":void 0,className:(0,f.f)("group relative flex items-center gap-3 overflow-hidden rounded-chip px-3 py-2 text-xs uppercase tracking-wider transition-colors duration-200","before:pointer-events-none before:absolute before:inset-y-0 before:-left-1/2 before:w-1/2 before:-skew-x-12 before:bg-gradient-to-r before:from-transparent before:to-transparent before:opacity-0 before:transition-[left,opacity] before:duration-500 hover:before:left-full hover:before:opacity-100",d?"before:via-accent/10":"before:via-primary/10",g?(0,f.f)(d?"text-accent":"text-primary",d?"bg-accent/5":"bg-primary/5"):(0,f.f)("text-text-muted",d?"hover:text-accent":"hover:text-primary")),children:[g&&(0,b.jsx)(q.f.span,{layoutId:"sidebar-indicator",className:(0,f.f)("absolute bottom-1 left-0 top-1 w-0.5 rounded-full",d?"bg-accent":"bg-primary"),style:{boxShadow:d?"0 0 8px var(--color-accent), 0 0 16px var(--color-glow-accent)":"0 0 8px var(--color-primary), 0 0 16px var(--color-glow)"},transition:{type:"spring",stiffness:300,damping:30}}),(0,b.jsx)(h,{className:"relative h-4 w-4 shrink-0"}),(0,b.jsx)("span",{className:"relative truncate",children:a.label})]},a.href)})})]})}function ak(){return(0,b.jsxs)("div",{className:"relative flex h-8 w-8 items-center justify-center animate-flicker",children:[(0,b.jsxs)("svg",{viewBox:"0 0 32 32",className:"h-8 w-8 overflow-visible","aria-hidden":"true",children:[(0,b.jsx)("rect",{x:"1",y:"1",width:"30",height:"30",rx:"4",fill:"none",stroke:"var(--color-primary)",strokeOpacity:"0.35"}),(0,b.jsx)("path",{d:"M8 23 V9 L16 18 L24 9 V23",fill:"none",stroke:"var(--color-primary)",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",pathLength:100,style:{"--stroke-length":100,strokeDasharray:100,animation:"draw-stroke 1.4s var(--ease-out-expo) both"},className:"drop-shadow-[0_0_4px_var(--color-primary)]"})]}),(0,b.jsx)("div",{className:"absolute inset-0 rounded shadow-[0_0_12px_var(--color-glow)]"})]})}function al(){let{connected:a}=(0,c.useSyncExternalStore)(ah.f.subscribe,ah.f.getSnapshot,ah.f.getServerSnapshot);return(0,b.jsxs)("span",{className:"flex items-center gap-1.5",title:a?"Live event stream connected":"Live event stream reconnecting",children:[(0,b.jsxs)("span",{className:"relative inline-flex h-1.5 w-1.5",children:[a&&(0,b.jsx)("span",{className:"absolute inset-0 rounded-full bg-success animate-halo"}),(0,b.jsx)("span",{className:(0,f.f)("relative inline-flex h-1.5 w-1.5 rounded-full",a?"bg-success shadow-[0_0_6px_var(--color-success)]":"bg-warning")})]}),(0,b.jsx)("span",{className:a?"text-success/70":"text-warning/70",children:a?"Live":"Offline"})]})}function am({integrations:a}){let e=ag((0,d.usePathname)()),f=(0,c.useMemo)(()=>(function(a,b=ad){return b.filter(b=>{var c;return!b.integration||(c=b.integration,"securityConsole"===c?null!==a.securityConsoleUrl:a.hermes)}).map(b=>"security"===b.id&&a.securityConsoleUrl?{...b,items:[{href:a.securityConsoleUrl,label:"Security console ↗",icon:$,external:!0},...b.items]}:b)})(a),[a]);return(0,b.jsxs)("aside",{className:"relative flex h-full w-56 flex-col border-r border-border/50 bg-bg",children:[(0,b.jsx)("div",{className:"absolute bottom-0 right-0 top-0 w-px bg-gradient-to-b from-primary/60 via-primary/20 to-transparent"}),(0,b.jsxs)("div",{className:"flex h-14 items-center gap-3 border-b border-border/30 px-4",children:[(0,b.jsx)(ak,{}),(0,b.jsx)("span",{className:"text-sm font-bold uppercase tracking-[0.2em] text-text",children:"Magnus"})]}),(0,b.jsx)(p,{}),(0,b.jsx)("div",{className:"flex-1 overflow-y-auto",children:f.map(a=>(0,b.jsx)(aj,{group:a,activeHref:e},a.id))}),(0,b.jsxs)("div",{className:"flex items-center justify-between border-t border-border/30 p-4 text-[10px] uppercase tracking-widest text-primary/40",children:[(0,b.jsxs)("span",{children:["Magnus v","2.9.1"]}),(0,b.jsx)(al,{})]})]})}var an=a.i(57230),ao=a.i(19783);let ap={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};ap.node;let aq=(0,r.f)(ap);var ar=a.i(33540),as=a.i(41146);let at={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};at.node;let au=(0,r.f)(at),av={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]};av.node;let aw=(0,r.f)(av);var ax=a.i(68579),ay=a.i(21327),az=a.i(52357),aA=a.i(99101),aB=a.i(42973),aC=a.i(46997);function aD(){let[a,d]=(0,c.useState)(!1),[g,i]=(0,c.useState)([]),[k,l]=(0,c.useState)(0),[m,n]=(0,c.useState)(!1),o=(0,c.useRef)(null),p=(0,c.useCallback)(async()=>{try{let a=await aC.f.notifications.unreadCount();a.success&&a.data&&l(a.data.count)}catch{}},[]),q=(0,c.useCallback)(async()=>{n(!0);try{let a=await aC.f.notifications.list({pageSize:20});if(a.success&&a.data){let b=a.data;i(b.notifications)}}catch{}finally{n(!1)}},[]);(0,c.useEffect)(()=>{p();let a=setInterval(()=>void p(),15e3);return()=>clearInterval(a)},[p]),(0,c.useEffect)(()=>{a&&q()},[a,q]),(0,c.useEffect)(()=>{if(!a)return;let b=a=>{o.current&&!o.current.contains(a.target)&&d(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[a]),(0,c.useEffect)(()=>{if(!a)return;let b=a=>{"Escape"===a.key&&d(!1)};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]);let r=async a=>{try{await aC.f.notifications.markRead([a]),i(b=>b.map(b=>b.id===a?{...b,isRead:!0}:b)),l(a=>Math.max(0,a-1))}catch{}},s=async()=>{try{await aC.f.notifications.markAllRead(),i(a=>a.map(a=>({...a,isRead:!0}))),l(0),setTimeout(()=>void p(),500)}catch{}};return(0,b.jsxs)("div",{className:"relative",ref:o,children:[(0,b.jsxs)("button",{className:"relative rounded p-2 text-text-muted transition-all hover:bg-surface-hover hover:text-text",title:"Notifications",type:"button","aria-expanded":a,"aria-controls":"notification-panel","aria-label":k>0?`Notifications (${k} unread)`:"Notifications",onClick:()=>d(a=>!a),children:[(0,b.jsx)(au,{className:"h-4 w-4"}),k>0&&(0,b.jsx)("span",{className:"absolute right-1 top-1 flex h-4 min-w-[1rem] items-center justify-center rounded-full bg-danger px-1 text-[10px] font-bold text-white",children:k>99?"99+":k})]}),a&&(0,b.jsxs)("div",{id:"notification-panel",role:"region","aria-label":"Notifications",className:"absolute right-0 top-full z-50 mt-2 w-96 overflow-hidden rounded border border-border bg-surface shadow-2xl",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[(0,b.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider text-text",children:"Notifications"}),k>0&&(0,b.jsxs)("button",{className:"flex items-center gap-1 rounded px-2 py-1 text-xs text-primary hover:bg-primary/10 transition-all",onClick:()=>void s(),type:"button",children:[(0,b.jsx)(aw,{className:"h-3 w-3"}),"Mark all read"]})]}),(0,b.jsxs)("div",{className:"max-h-96 overflow-y-auto",children:[m&&0===g.length&&(0,b.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,b.jsx)("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"})}),!m&&0===g.length&&(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-10 text-text-muted",children:[(0,b.jsx)(au,{className:"mb-2 h-8 w-8 opacity-40"}),(0,b.jsx)("p",{className:"text-xs",children:"No notifications yet"})]}),g.map(a=>(0,b.jsxs)("div",{className:(0,f.f)("group flex items-start gap-3 border-b border-border/50 px-4 py-3 transition-all hover:bg-surface-hover",!a.isRead&&"bg-primary/5"),children:[(0,b.jsx)("div",{className:"mt-0.5 shrink-0",children:function(a){switch(a){case"critical":return(0,b.jsx)(ay.f,{className:"h-4 w-4 text-danger"});case"warning":return(0,b.jsx)(ax.f,{className:"h-4 w-4 text-warning"});default:return(0,b.jsx)(az.f,{className:"h-4 w-4 text-primary"})}}(a.severity)}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[function(a){switch(a){case"node.offline":return(0,b.jsx)(u.f,{className:"h-3.5 w-3.5 text-danger"});case"node.degraded":case"node.upgrade_not_ready":return(0,b.jsx)(u.f,{className:"h-3.5 w-3.5 text-warning"});case"node.recovered":return(0,b.jsx)(O,{className:"h-3.5 w-3.5 text-success"});case"command.failed":return(0,b.jsx)(v.f,{className:"h-3.5 w-3.5 text-warning"});case"deploy.failed":return(0,b.jsx)(aA.f,{className:"h-3.5 w-3.5 text-danger"});case"upgrade.failed":return(0,b.jsx)(aB.f,{className:"h-3.5 w-3.5 text-danger"});default:return(0,b.jsx)(au,{className:"h-3.5 w-3.5 text-text-muted"})}}(a.type),(0,b.jsx)("span",{className:(0,f.f)("text-xs font-bold",a.isRead?"text-text-muted":"text-text"),children:a.title})]}),(0,b.jsx)("p",{className:"mt-0.5 text-xs text-text-muted line-clamp-2",children:a.message}),(0,b.jsx)("span",{className:"mt-1 block text-[10px] text-text-muted/60",children:function(a){let b=Math.floor((Date.now()-new Date(a).getTime())/1e3);if(b<60)return"just now";let c=Math.floor(b/60);if(c<60)return`${c}m ago`;let d=Math.floor(c/60);if(d<24)return`${d}h ago`;let e=Math.floor(d/24);return`${e}d ago`}(a.createdAt)})]}),!a.isRead&&(0,b.jsx)("button",{className:"mt-0.5 shrink-0 rounded p-1 text-text-muted opacity-0 transition-all hover:bg-surface-hover hover:text-primary group-hover:opacity-100",title:"Mark as read",type:"button",onClick:()=>void r(a.id),children:(0,b.jsx)(j.f,{className:"h-3.5 w-3.5"})})]},a.id))]}),(0,b.jsx)("div",{className:"border-t border-border px-4 py-2 flex justify-end",children:(0,b.jsxs)(e.default,{href:"/notifications",className:"flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",onClick:()=>d(!1),children:[(0,b.jsx)(h.f,{className:"h-3 w-3"}),"Preferences"]})})]})]})}var aE=a.i(62260);let aF=[{keys:["g","m"],label:"Go to Mission Control",description:"Navigate to unified Mission Control home",action:"navigate",target:"/mission-control",category:"navigation"},{keys:["g","o"],label:"Go to Overview",description:"Navigate to fleet overview",action:"navigate",target:"/",category:"navigation"},{keys:["g","n"],label:"Go to Nodes",description:"Navigate to node list",action:"navigate",target:"/nodes",category:"navigation"},{keys:["g","c"],label:"Go to Commands",description:"Navigate to command console",action:"navigate",target:"/commands",category:"navigation"},{keys:["g","j"],label:"Go to Cron Jobs",description:"Navigate to cron jobs",action:"navigate",target:"/cron",category:"navigation"},{keys:["g","f"],label:"Go to Files",description:"Navigate to file editor",action:"navigate",target:"/files",category:"navigation"},{keys:["g","s"],label:"Go to Skills",description:"Navigate to skill marketplace",action:"navigate",target:"/skills",category:"navigation"},{keys:["g","l"],label:"Go to Logs",description:"Navigate to log explorer",action:"navigate",target:"/logs",category:"navigation"},{keys:["g","a"],label:"Go to Audit",description:"Navigate to audit trail",action:"navigate",target:"/audit",category:"navigation"},{keys:["?"],label:"Show Shortcuts",description:"Show keyboard shortcut reference",action:"command",target:"show-shortcuts",category:"general"}];function aG(){return"u">typeof navigator&&/Mac|iPhone|iPad/.test(navigator.userAgent)?"⌘":"Ctrl"}function aH(){document.body.dispatchEvent(new KeyboardEvent("keydown",{key:"k",ctrlKey:!0,metaKey:!0,bubbles:!0}))}function aI({onMenuToggle:a}){let f=(0,d.usePathname)(),g=(0,d.useRouter)(),{title:h,crumbs:i}=function(a){let b=null;for(let c of Object.keys(ae))af(a,c)&&(null===b||c.length>b.length)&&(b=c);let c=b?ae[b]:"Magnus",d=ag(a),e=d?ad.find(a=>a.items.some(a=>a.href===d))?.label??null:null,f=[];if(e&&f.push({label:e}),f.push({label:c,href:b??void 0}),b&&a!==b)for(let c of a.slice("/"===b?1:b.length+1).split("/").filter(Boolean)){let a=decodeURIComponent(c);f.push({label:a.length>18?`${a.slice(0,8)}…${a.slice(-6)}`:a})}return{title:c,group:e,crumbs:f}}(f),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(!1),[n,o]=(0,c.useState)("Ctrl"),p=(0,c.useRef)(null);async function q(a=!1){let b=await fetch(`/api/auth/logout${a?"?all=true":""}`,{method:"POST"}).catch(()=>null);b?.ok?(g.push("/login"),g.refresh()):window.alert("Session revocation unavailable; retry sign out.")}return(0,c.useEffect)(()=>{o(aG()),fetch("/api/auth/me").then(a=>a.ok?a.json():null).then(a=>{a?.username&&k(a.username)}).catch(()=>{})},[]),(0,c.useEffect)(()=>{if(!l)return;let a=a=>{(a instanceof KeyboardEvent?"Escape"!==a.key:p.current?.contains(a.target))||m(!1)};return document.addEventListener("mousedown",a),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",a)}},[l]),(0,b.jsxs)("header",{className:"relative z-(--z-shell) flex h-14 items-center justify-between gap-3 bg-bg/80 px-3 backdrop-blur-sm sm:px-6",children:[(0,b.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-primary/60 via-accent/40 to-transparent"}),(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-xs uppercase tracking-[0.15em] text-text-muted",children:[a&&(0,b.jsx)("button",{className:"mr-1 rounded p-1.5 text-text-muted hover:text-primary md:hidden",onClick:a,type:"button",title:"Toggle menu",children:(0,b.jsx)(aq,{className:"h-5 w-5"})}),(0,b.jsx)("span",{className:"text-primary/60",children:">_"}),(0,b.jsx)("nav",{"aria-label":"Breadcrumb",className:"hidden min-w-0 items-center gap-1 sm:flex",children:i.map((a,c)=>{let d=c===i.length-1;return(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[c>0&&(0,b.jsx)(as.f,{className:"h-3 w-3 shrink-0 text-primary/30","aria-hidden":"true"}),a.href&&!d?(0,b.jsx)(e.default,{href:a.href,prefetch:!1,className:"truncate transition-colors hover:text-primary",children:a.label}):(0,b.jsx)("span",{className:d?"truncate text-text":0===c&&i.length>1?"truncate text-text-muted/60":"truncate","aria-current":d?"page":void 0,children:a.label})]},`${a.label}-${c}`)})}),(0,b.jsx)("span",{className:"sr-only sm:hidden",children:h}),(0,b.jsx)("span",{className:"ml-1 hidden h-3.5 w-1.5 shrink-0 bg-primary/80 sm:inline-block",style:{animation:"cursor-blink 1s step-end infinite"}})]}),(0,b.jsx)(aE.J,{className:"hidden max-w-xl flex-1 lg:block"}),(0,b.jsxs)("div",{className:"flex shrink-0 items-center gap-1 sm:gap-2",children:[(0,b.jsxs)("button",{type:"button",onClick:aH,className:"hidden items-center gap-2 rounded-chip border border-border bg-surface px-2.5 py-1.5 text-[10px] uppercase tracking-wider text-text-muted transition-colors hover:border-primary/40 hover:text-primary md:flex",title:"Search and jump (command palette)",children:[(0,b.jsx)(ar.f,{className:"h-3.5 w-3.5"}),(0,b.jsx)("span",{children:"Search"}),(0,b.jsxs)("kbd",{className:"rounded-chip border border-border bg-bg px-1 text-[9px] text-primary/70",children:[n,"+K"]})]}),(0,b.jsx)("button",{className:"rounded p-2 text-text-muted transition-all hover:text-primary hover:drop-shadow-[0_0_6px_var(--color-glow)]",title:"Refresh",onClick:()=>window.location.reload(),type:"button",children:(0,b.jsx)(ao.f,{className:"h-4 w-4"})}),(0,b.jsx)(aD,{}),(0,b.jsx)("button",{className:"rounded p-2 text-text-muted transition-all hover:text-danger hover:drop-shadow-[0_0_6px_rgba(255,23,68,0.3)]",title:"Sign Out",onClick:()=>void q(),type:"button",children:(0,b.jsx)(an.f,{className:"h-4 w-4"})}),(0,b.jsxs)("div",{ref:p,className:"relative ml-1",children:[(0,b.jsx)("button",{type:"button",onClick:()=>m(a=>!a),"aria-haspopup":"menu","aria-expanded":l,title:j?`Signed in as ${j}`:"Account",className:"flex h-8 w-8 items-center justify-center rounded border border-accent/40 text-[10px] font-bold uppercase text-accent shadow-[0_0_8px_var(--color-glow-accent)] transition-colors hover:border-accent hover:bg-accent/10",children:j?.[0]??"U"}),l&&(0,b.jsxs)("div",{role:"menu",className:"panel-corners absolute right-0 top-full z-(--z-modal) mt-2 w-60 rounded-panel border border-accent/30 bg-surface/95 p-1 shadow-[0_0_24px_var(--color-glow-accent)] backdrop-blur-sm [--panel-corner-color:var(--color-accent)]",children:[j&&(0,b.jsxs)("div",{className:"border-b border-border px-3 py-2 text-[10px] uppercase tracking-wider text-text-muted",children:["Signed in as ",(0,b.jsx)("span",{className:"text-accent",children:j})]}),(0,b.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>void q(),className:"flex w-full items-center gap-2 rounded-chip px-3 py-2 text-left text-xs text-text-muted transition-colors hover:bg-surface-hover hover:text-text",children:[(0,b.jsx)(an.f,{className:"h-3.5 w-3.5"})," Sign out"]}),(0,b.jsxs)("button",{type:"button",role:"menuitem","aria-label":"Sign out all local sessions",onClick:()=>void q(!0),className:"flex w-full items-center gap-2 rounded-chip px-3 py-2 text-left text-xs text-text-muted transition-colors hover:bg-danger/10 hover:text-danger",children:[(0,b.jsx)(an.f,{className:"h-3.5 w-3.5"})," Sign out all local sessions"]})]})]})]})]})}async function aJ(a,b){try{let c=await fetch(a,{signal:b,headers:{accept:"application/json"}});if(!c.ok)return null;return await c.json()}catch{return null}}function aK(a,b){return a.trim()?b.map(b=>({e:b,s:function(a,b){if(!a)return 0;let c=a.toLowerCase(),d=b.toLowerCase(),e=d.indexOf(c);if(-1!==e)return e;let f=0,g=0;for(let a of c){let b=d.indexOf(a,f);if(-1===b)return -1;g+=b-f,f=b+1}return 1e3+g}(a,`${b.label} ${b.sublabel??""}`)})).filter(({s:a})=>a>=0).sort((a,b)=>a.s-b.s).map(({e:a})=>a):b}async function aL(a,b={}){let{signal:c,limit:d=10}=b;if(a.trim().length<2)return[];let[e,f,g]=await Promise.all([aJ("/api/proxy/nodes",c),aJ("/api/proxy/orchestra/installations",c),aJ("/api/proxy/orchestra/skill-catalog",c)]),h=[];for(let a of e?.data??[])h.push({kind:"node",id:a.id,label:a.name,sublabel:a.status?`Node \xb7 ${a.status}`:"Node",href:`/nodes/${a.id}`});for(let a of f?.data??[])h.push({kind:"installation",id:a.id,label:a.displayName??a.hostname,sublabel:`Hermes \xb7 ${a.status??"unknown"}`,href:"/orchestra/installations"});for(let a of g?.data??[])h.push({kind:"skill",id:a.id,label:a.name,sublabel:a.description??"Skill",href:"/skills"});return aK(a,[{kind:"action",id:"deploy-agent",label:"Deploy agent to host",sublabel:"Action · Operations",href:"/governor/operations"},{kind:"action",id:"open-terminal",label:"Open node terminal",sublabel:"Action · Nodes",href:"/nodes"},{kind:"action",id:"run-fleet-check",label:"Run fleet check",sublabel:"Action · Fleet readiness",href:"/fleet-readiness"},{kind:"action",id:"view-stale-nodes",label:"View stale nodes",sublabel:"Action · Readiness",href:"/fleet-readiness"},{kind:"action",id:"rotate-node-secret",label:"Rotate node secret",sublabel:"Action · Operations",href:"/governor/operations"},{kind:"action",id:"latest-failed-deploy",label:"Open latest failed deploy",sublabel:"Action · Timeline",href:"/fleet-timeline"},...h]).slice(0,d)}var aM=a.i(18783),aN=a.i(50354),aO=a.i(74849);let aP={name:"keyboard",size:24,node:[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]};aP.node;let aQ=(0,r.f)(aP);var aR=a.i(74215);let aS={name:"key",size:24,node:[["path",{d:"m2 21 9.6-9.6",key:"9l79m3"}],["path",{d:"m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19",key:"fw8biw"}],["circle",{cx:"15.5",cy:"7.5",r:"5.5",key:"4wxmhb"}]]};aS.node;let aT=(0,r.f)(aS);var aU=a.i(75160),aV=a.i(86708),aW=a.i(73140);let aX={"/":t,"/mission-control":L,"/nodes":u.f,"/commands":v.f,"/cron":w.f,"/files":x.f,"/skills":aN.f,"/logs":z,"/audit":A.f,"/library":aO.f},aY={node:u.f,installation:B.f,skill:aN.f,action:aM.f};function aZ(){let[a,e]=(0,c.useState)(!1),[f,g]=(0,c.useState)(""),[h,i]=(0,c.useState)(0),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)([]),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)("normal"),r=(0,c.useRef)(null),s=(0,d.useRouter)(),t=(0,c.useRef)([]),u=(0,c.useRef)(void 0),v=(0,c.useRef)(void 0),w=(0,c.useRef)(null),x=(f.trim()?aF.filter(a=>a.label.toLowerCase().includes(f.toLowerCase())||a.description.toLowerCase().includes(f.toLowerCase())):aF).map(a=>({kind:"shortcut",key:`s:${a.keys.join("-")}`,shortcut:a})),y=aK(f,l).map(a=>({kind:"entity",key:`e:${a.kind}:${a.id}`,entity:a})),z=f.trim()?[...y,...x]:x;(0,c.useEffect)(()=>{if(!a)return;let b=f.trim();if(b.length<2){m([]),o(!1);return}v.current&&clearTimeout(v.current),w.current&&w.current.abort();let c=new AbortController;return w.current=c,o(!0),v.current=setTimeout(async()=>{let a=await aL(b,{signal:c.signal,limit:12});c.signal.aborted||(m(a),o(!1))},180),()=>{c.abort(),v.current&&clearTimeout(v.current)}},[f,a]);let A=(0,c.useCallback)(a=>{"navigate"===a.action&&a.target?(s.push(a.target),e(!1),g("")):"show-shortcuts"===a.target&&(k(!0),e(!1),g(""))},[s]),B=(0,c.useCallback)(a=>{"shortcut"===a.kind?A(a.shortcut):(s.push(a.entity.href),e(!1),g(""))},[A,s]);return((0,c.useEffect)(()=>{let b=b=>{let c=b.target,d="INPUT"===c.tagName||"TEXTAREA"===c.tagName||c.isContentEditable;if((b.metaKey||b.ctrlKey)&&"k"===b.key.toLowerCase()){b.preventDefault(),b.stopPropagation(),b.stopImmediatePropagation(),e(a=>!a);return}if("Escape"===b.key){if(a){e(!1),g("");return}return j?void k(!1):void 0}if(!d){if("?"===b.key){b.preventDefault(),k(a=>!a);return}if(1===b.key.length&&!b.metaKey&&!b.ctrlKey&&!b.altKey){for(let a of(clearTimeout(u.current),t.current.push(b.key.toLowerCase()),aF))if(a.keys.length===t.current.length&&a.keys.every((a,b)=>a===t.current[b])){b.preventDefault(),t.current=[],A(a);return}u.current=setTimeout(()=>{t.current=[]},800)}}};return window.addEventListener("keydown",b,!0),()=>window.removeEventListener("keydown",b,!0)},[a,j,A]),(0,c.useEffect)(()=>{a&&(i(0),setTimeout(()=>r.current?.focus(),50))},[a]),(0,c.useEffect)(()=>{h>=z.length&&i(Math.max(0,z.length-1))},[z.length,h]),(0,c.useEffect)(()=>{a&&q("low"===document.documentElement.dataset.fx?"low":"normal")},[a]),a||j)?(0,b.jsxs)(b.Fragment,{children:[a&&(0,b.jsxs)("div",{className:"fixed inset-0 z-(--z-modal) flex items-start justify-center pt-[15vh]","data-testid":"command-palette",children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-[2px]",onClick:()=>{e(!1),g("")}}),(0,b.jsxs)("div",{className:"relative z-10 w-full max-w-lg panel-corners rounded-panel border border-primary/30 bg-surface/95 shadow-[0_0_40px_var(--color-glow)]",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-4 py-3",children:[(0,b.jsx)(ar.f,{className:"h-5 w-5 text-primary"}),(0,b.jsx)("input",{ref:r,type:"text",placeholder:"Search nodes, agents, runs, users, commands...",className:"flex-1 bg-transparent text-sm text-text placeholder:text-text-muted/70 caret-primary outline-none",value:f,onChange:a=>{g(a.target.value),i(0)},onKeyDown:a=>{"ArrowDown"===a.key?(a.preventDefault(),i(a=>Math.min(a+1,z.length-1))):"ArrowUp"===a.key?(a.preventDefault(),i(a=>Math.max(a-1,0))):"Enter"===a.key&&z[h]&&(a.preventDefault(),B(z[h]))},"data-testid":"command-palette-input"}),n?(0,b.jsx)(aU.f,{className:"h-4 w-4 animate-spin text-primary"}):(0,b.jsx)("kbd",{className:"rounded-chip border border-border bg-bg px-1.5 py-0.5 text-[10px] text-text-muted",children:"ESC"})]}),(0,b.jsxs)("div",{className:"max-h-96 overflow-y-auto py-2",children:[0===z.length&&!n&&(0,b.jsx)("p",{className:"px-4 py-6 text-center text-xs uppercase tracking-wider text-text-muted",children:"No results found"}),0===z.length&&n&&(0,b.jsx)("p",{className:"px-4 py-6 text-center text-xs uppercase tracking-wider text-text-muted",children:"Searching…"}),z.map((a,c)=>{let d=c===h;if("shortcut"===a.kind){let e=aX[a.shortcut.target??""]??aM.f;return(0,b.jsxs)("button",{className:`flex w-full items-center gap-3 px-4 py-2 text-left text-sm transition-colors ${d?"bg-primary/10 text-primary shadow-[inset_2px_0_0_var(--color-primary)]":"text-text hover:bg-surface-hover"}`,onClick:()=>B(a),onMouseEnter:()=>i(c),"data-testid":"command-palette-item","data-item-kind":"shortcut",children:[(0,b.jsx)(e,{className:"h-4 w-4 shrink-0 opacity-70"}),(0,b.jsx)("span",{className:"flex-1",children:a.shortcut.label}),(0,b.jsx)("span",{className:"text-xs text-text-muted",children:a.shortcut.keys.map(a=>a.toUpperCase()).join(" then ")})]},a.key)}let e=aY[a.entity.kind]??aM.f;return(0,b.jsxs)("button",{className:`flex w-full items-center gap-3 px-4 py-2 text-left text-sm transition-colors ${d?"bg-accent/10 text-accent shadow-[inset_2px_0_0_var(--color-accent)]":"text-text hover:bg-surface-hover"}`,onClick:()=>B(a),onMouseEnter:()=>i(c),"data-testid":"command-palette-item","data-item-kind":"entity","data-entity-kind":a.entity.kind,children:[(0,b.jsx)(e,{className:"h-4 w-4 shrink-0 text-accent/80"}),(0,b.jsxs)("span",{className:"flex-1 truncate",children:[(0,b.jsx)("span",{className:"font-medium",children:a.entity.label}),a.entity.sublabel&&(0,b.jsx)("span",{className:"ml-2 text-xs text-text-muted",children:a.entity.sublabel})]}),(0,b.jsx)("span",{className:"text-[10px] uppercase tracking-wider text-text-muted",children:a.entity.kind})]},a.key)})]}),(0,b.jsxs)("div",{className:"flex items-center gap-4 border-t border-border px-4 py-2 text-[10px] uppercase tracking-wider text-text-muted",children:[(0,b.jsx)("span",{children:"↑↓ navigate"}),(0,b.jsx)("span",{children:"↵ select"}),(0,b.jsx)("span",{children:"esc close"}),(0,b.jsxs)("button",{type:"button",onClick:()=>q((0,aW.W)()),className:"ml-auto flex items-center gap-1 rounded-chip px-1 text-text-muted transition-colors hover:text-primary",title:"Toggle visual effects (scanlines, glow pulses, animated map)","data-testid":"command-palette-fx-toggle",children:[(0,b.jsx)(aV.f,{className:"h-3 w-3"})," fx: ",p]}),(0,b.jsxs)("span",{className:"flex items-center gap-1",children:[(0,b.jsx)(aT,{className:"h-3 w-3"})," ",aG(),"+K"]})]})]})]}),j&&(0,b.jsxs)("div",{className:"fixed inset-0 z-(--z-modal) flex items-center justify-center",children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-[2px]",onClick:()=>k(!1)}),(0,b.jsxs)("div",{className:"relative z-10 w-full max-w-md panel-corners rounded-panel border border-primary/30 bg-surface/95 p-6 shadow-[0_0_40px_var(--color-glow)]",children:[(0,b.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(aQ,{className:"h-5 w-5 text-primary"}),(0,b.jsx)("h2",{className:"text-sm font-bold uppercase tracking-wider text-primary glow-text-primary",children:"Keyboard Shortcuts"})]}),(0,b.jsx)("button",{onClick:()=>k(!1),className:"text-text-muted hover:text-text",children:(0,b.jsx)(aR.X,{className:"h-5 w-5"})})]}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"mb-2 text-[10px] font-medium uppercase tracking-[0.2em] text-text-muted",children:"General"}),(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)(a$,{keys:[`${aG()}+K`],label:"Open command palette"}),(0,b.jsx)(a$,{keys:["?"],label:"Show this reference"}),(0,b.jsx)(a$,{keys:["Esc"],label:"Close modal / palette"})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"mb-2 text-[10px] font-medium uppercase tracking-[0.2em] text-text-muted",children:"Fleet Navigation"}),(0,b.jsx)("div",{className:"space-y-1",children:aF.filter(a=>"navigation"===a.category).map(a=>(0,b.jsx)(a$,{keys:a.keys.map(a=>a.toUpperCase()),label:a.label},a.target))})]})]})]})]})]}):null}function a$({keys:a,label:c}){return(0,b.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,b.jsx)("span",{className:"text-xs text-text",children:c}),(0,b.jsx)("div",{className:"flex gap-1",children:a.map((c,d)=>(0,b.jsxs)("span",{children:[(0,b.jsx)("kbd",{className:"rounded-chip border border-border bg-bg px-1.5 py-0.5 text-[11px] text-primary",children:c}),d<a.length-1&&(0,b.jsx)("span",{className:"mx-0.5 text-[10px] text-text-muted/60",children:"then"})]},d))})]})}let a_={name:"server-cog",size:24,node:[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]]};a_.node;let a0=(0,r.f)(a_);var a1=a.i(47515);let a2="magnus.update-banner.dismissed";function a3(){let[a,d]=(0,c.useState)(null),[f,g]=(0,c.useState)(null);if((0,c.useEffect)(()=>{g(function(){try{return window.localStorage.getItem(a2)}catch{return null}}());let a=!1,b=()=>{aC.f.systemUpdates.get().then(b=>{a||d(b)}).catch(()=>void 0)};b();let c=window.setInterval(b,18e5);return()=>{a=!0,window.clearInterval(c)}},[]),!a)return null;let{server:h,agents:i}=a,j=i.behind.length,k=(0,a1.t)(i);if(!h.updateAvailable&&!h.latestMajor&&0===j)return null;let l=`${a.server.latest??""}|${a.server.latestMajor??""}|${a.agents.behind.length}|${a.agents.expected}`;return f===l?null:(0,b.jsxs)("section",{role:"status","aria-label":"Updates","data-testid":"update-banner",className:"relative mb-4 overflow-hidden rounded border border-warning/40 bg-warning/5 px-4 py-3 text-[11px]",children:[(0,b.jsx)("div",{className:"absolute inset-y-0 left-0 w-0.5 bg-warning"}),(0,b.jsx)("button",{type:"button","aria-label":"Dismiss",className:"absolute right-2 top-2 text-text-muted hover:text-text",onClick:()=>{try{window.localStorage.setItem(a2,l)}catch{}g(l)},children:(0,b.jsx)(aR.X,{className:"h-3.5 w-3.5"})}),(0,b.jsxs)("div",{className:"space-y-2 pr-6",children:[h.updateAvailable&&h.latest&&(0,b.jsxs)("div",{className:"flex items-start gap-2",children:[(0,b.jsx)(aB.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-warning"}),(0,b.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,b.jsxs)("p",{children:[(0,b.jsxs)("span",{className:"font-bold uppercase tracking-wider text-warning",children:["Magnus ",h.latest," is available"]}),(0,b.jsxs)("span",{className:"ml-2 text-text-muted",children:["running ",h.current,h.breaking?" · contains breaking changes":""]})]}),h.releases.filter(a=>a.summary).map(a=>(0,b.jsxs)("p",{className:"text-text-muted",children:[a.version,": ",a.summary," ",a.notesUrl&&(0,b.jsx)("a",{className:"text-primary underline",href:a.notesUrl,target:"_blank",rel:"noreferrer",children:"release notes"})]},a.version)),h.newRequiredEnv.length>0&&(0,b.jsxs)("p",{className:"text-text-muted",children:["New required settings:"," ",h.newRequiredEnv.map(a=>(0,b.jsxs)("code",{className:"mr-1 rounded bg-surface px-1",children:[a.name,"server"!==a.component?` (${a.component})`:""]},a.name)),h.newRequiredEnv.every(a=>a.secret)&&(0,b.jsxs)("span",{children:["(secrets: ",(0,b.jsx)("code",{children:"magnus upgrade --generate-secrets"})," fills them in)"]})]}),h.attention.length>0&&(0,b.jsxs)("p",{className:"text-warning",children:["Needs a maintenance window: ",h.attention.map(a=>`${a.name} (${a.impact}${a.note?`: ${a.note}`:""})`).join("; ")]}),(0,b.jsxs)("p",{className:"text-text-muted",children:["On the server host run ",(0,b.jsx)("code",{className:"rounded bg-surface px-1 text-text",children:h.command})," (backs up the database and reverts on failure)."]})]})]}),h.latestMajor&&(0,b.jsxs)("p",{className:"text-text-muted",children:["Magnus ",h.latestMajor," is a new major version. Major upgrades are never offered automatically; read UPGRADING.md first."]}),j>0&&(0,b.jsxs)("div",{className:"flex items-start gap-2",children:[(0,b.jsx)(a0,{className:"mt-0.5 h-4 w-4 shrink-0 text-warning"}),(0,b.jsxs)("p",{children:[(0,b.jsxs)("span",{className:"font-bold uppercase tracking-wider text-warning",children:[j," agent",1===j?"":"s"," behind the server (",i.expected,")"]}),(0,b.jsxs)("span",{className:"ml-2 text-text-muted",children:[i.behind.slice(0,5).map(a=>`${a.name} ${a.version}`).join(", "),j>5?", …":"","."]})," ",i.upgradesEnabled?(0,b.jsx)(e.default,{href:"/nodes?upgrade=agents",className:"text-primary underline",children:k>0?"Review agent upgrades":"Upgrade agents"}):(0,b.jsx)("span",{className:"text-text-muted",children:"Agent upgrades are off on this server (MAGNUS_AGENT_UPGRADES=false)."}),k>0&&(0,b.jsxs)("span",{className:"ml-2 text-text-muted",children:[k," agent",1===k?" requires":"s require"," a manual major-version upgrade; the dialog only upgrades within the same major."]}),i.fixCommand&&0===k&&(0,b.jsxs)("span",{className:"ml-2 text-text-muted",children:["or run ",(0,b.jsx)("code",{className:"rounded bg-surface px-1 text-text",children:i.fixCommand})]})]})]})]})]})}var a4=a.i(26926);a.s(["DashboardShell",0,function({children:a,integrations:e}){let f=(0,d.usePathname)(),g="/login"===f||f.startsWith("/governor/share/"),[h,i]=(0,c.useState)(!1);!function({enabled:a=!0}={}){let[b,d]=(0,c.useState)(!1),{addToast:e}=(0,a4.d)(),f=(0,c.useRef)(e);f.current=e;let g=(0,c.useRef)(null),h=(0,c.useRef)(null),i=(0,c.useCallback)(()=>{if(!a)return;let b=new EventSource("/api/proxy/events/stream");for(let a of(g.current=b,b.onopen=()=>{d(!0),ah.f.setConnected(!0)},["deploy:status","node:status","command:status","alert:fired"]))b.addEventListener(a,b=>{try{let c=JSON.parse(b.data),d=function(a){let b=a.type??"",c=a.nodeName??"Unknown";switch(b){case"deploy.started":return{title:`Deploying to ${c}`,severity:"info"};case"deploy.completed":return{title:`Deploy complete: ${c}`,severity:"success"};case"deploy.failed":return{title:`Deploy failed: ${c}`,message:a.message??void 0,severity:"error"};case"upgrade.started":return{title:`Upgrading ${c}`,severity:"info"};case"upgrade.completed":return{title:`Upgrade complete: ${c}`,message:`v${a.version}`,severity:"success"};case"upgrade.failed":return{title:`Upgrade failed: ${c}`,message:a.message??void 0,severity:"error"};case"node.recovered":return{title:`${c} back online`,message:`Recovered from ${a.previousStatus}`,severity:"success"};case"command.completed":return{title:"Command completed",message:`${a.command}`,severity:"success"};case"command.failed":return{title:"Command failed",message:`${a.command} (exit ${a.exitCode})`,severity:"error"};case"health.alert":return{title:`Alert: ${a.metric?.replaceAll("_"," ").toUpperCase()} on ${c}`,message:`${a.value?.toFixed(1)}% (threshold: ${a.threshold}%)`,severity:a.severity??"warning"};default:return null}}(c);d&&f.current(d),ah.f.push(d?{...d,channel:a}:{title:String(c.type??a).replaceAll("."," "),message:"string"==typeof c.nodeName?c.nodeName:void 0,severity:"info",channel:a})}catch{}});return b.onerror=()=>{d(!1),ah.f.setConnected(!1),b.close(),fetch("/api/auth/me",{cache:"no-store"}).then(a=>{if(g.current===b){if(401===a.status)return void window.location.replace("/login");h.current=setTimeout(i,5e3)}}).catch(()=>{g.current===b&&(h.current=setTimeout(i,5e3))})},b},[a]);(0,c.useEffect)(()=>{let a=i();return()=>{h.current&&clearTimeout(h.current),a?.close(),g.current?.close(),ah.f.setConnected(!1),g.current=null}},[i])}({enabled:!g}),(0,c.useEffect)(()=>{i(!1)},[f]);let j=(0,c.useCallback)(()=>i(a=>!a),[]);return g?(0,b.jsx)(b.Fragment,{children:a}):(0,b.jsxs)("div",{className:"flex h-screen overflow-hidden",children:[h&&(0,b.jsx)("div",{className:"fixed inset-0 z-40 bg-black/70 backdrop-blur-[2px] md:hidden",onClick:()=>i(!1)}),(0,b.jsx)("div",{className:`
|
|
2
2
|
fixed inset-y-0 left-0 z-50 transform transition-transform duration-200 ease-in-out md:relative md:h-full md:translate-x-0
|
|
3
3
|
${h?"translate-x-0":"-translate-x-full"}
|
|
4
4
|
`,children:(0,b.jsx)(am,{integrations:e})}),(0,b.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden",children:[(0,b.jsx)(aI,{onMenuToggle:j}),(0,b.jsxs)("main",{className:"app-backdrop relative flex-1 overflow-y-auto p-3 md:p-6",children:[(0,b.jsx)(a3,{}),a]})]}),(0,b.jsx)(aZ,{})]})}],12737)},26926,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68579),e=a.i(13412),f=a.i(52357),g=a.i(74215),h=a.i(11134);let i=(0,c.createContext)(null),j=0,k={info:{bar:"bg-primary",border:"border-primary/40",text:"text-primary",glow:"shadow-[0_0_20px_var(--color-glow)]",Icon:f.f},success:{bar:"bg-success",border:"border-success/40",text:"text-success",glow:"shadow-[0_0_20px_var(--color-glow-success)]",Icon:e.f},warning:{bar:"bg-warning",border:"border-warning/40",text:"text-warning",glow:"shadow-[0_0_20px_var(--color-glow-warning)]",Icon:d.f},error:{bar:"bg-danger",border:"border-danger/40",text:"text-danger",glow:"shadow-[0_0_20px_var(--color-glow-danger)]",Icon:h.f}};function l({toasts:a,onRemove:c}){return 0===a.length?null:(0,b.jsx)("div",{role:"status","aria-live":"polite",className:"fixed bottom-4 right-4 z-(--z-toast) flex max-w-sm flex-col gap-2",children:a.map(a=>{let d=k[a.severity],e=d.Icon;return(0,b.jsxs)("div",{className:`relative overflow-hidden rounded-panel border ${d.border} ${d.glow} bg-surface/95 py-3 pl-4 pr-3 text-text backdrop-blur-sm animate-toast-in`,children:[(0,b.jsx)("span",{"aria-hidden":"true",className:`absolute inset-y-0 left-0 w-0.5 ${d.bar}`}),(0,b.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,b.jsx)(e,{className:`mt-0.5 h-4 w-4 shrink-0 ${d.text}`,"aria-hidden":"true"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("p",{className:`text-xs font-bold uppercase leading-tight tracking-wider ${d.text}`,children:a.title}),a.message&&(0,b.jsx)("p",{className:"mt-1 line-clamp-2 text-[11px] text-text-muted",children:a.message})]}),(0,b.jsx)("button",{onClick:()=>c(a.id),"aria-label":"Dismiss notification",className:"ml-2 shrink-0 text-text-muted transition-colors hover:text-text",children:(0,b.jsx)(g.X,{className:"h-3.5 w-3.5"})})]}),(0,b.jsx)("span",{"aria-hidden":"true",className:`absolute bottom-0 left-0 h-px w-full origin-left opacity-60 ${d.bar}`,style:{animation:`toast-progress ${"error"===a.severity?10:6}s linear forwards`}})]},a.id)})})}a.s(["N",0,function({children:a}){let[d,e]=(0,c.useState)([]),f=(0,c.useCallback)(a=>{e(b=>b.filter(b=>b.id!==a))},[]),g=(0,c.useCallback)(a=>{let b=`toast-${++j}`,c={...a,id:b,createdAt:Date.now()};e(a=>[...a.slice(-9),c]),setTimeout(()=>f(b),"error"===a.severity?1e4:6e3)},[f]);return(0,b.jsxs)(i.Provider,{value:{toasts:d,addToast:g,removeToast:f},children:[a,(0,b.jsx)(l,{toasts:d,onRemove:f})]})},"d",0,function(){let a=(0,c.useContext)(i);if(!a)throw Error("useToast must be used within a ToastProvider");return a}])}];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[81837,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68415),e=a.i(58299),f=a.i(49521),g=a.i(85063),h=a.i(46997),i=a.i(5739),j=a.i(8897),k=a.i(5050);let l=(0,k.createServerReference)("40958fda0266a3164e9ca59a47da982fa96d9c3b35",k.callServer,void 0,k.findSourceMapURL,"scanCron");var m=a.i(8387),n=a.i(73771),o=a.i(33855),p=a.i(19783),q=a.i(33540),r=a.i(8311),s=a.i(34532),t=a.i(89027),u=a.i(41146),v=a.i(1661),w=a.i(75160),x=a.i(57307),y=a.i(70944),z=a.i(68579),A=a.i(13412),B=a.i(11134);a.s(["default",0,function(){let{activeNode:a}=(0,j.l)(),[k,C]=(0,c.useState)([]),[D,E]=(0,c.useState)(!1),[F,G]=(0,c.useState)(null),[H,I]=(0,c.useState)(!1),[J,K]=(0,c.useState)(""),[L,M]=(0,c.useState)(new Set),[N,O]=(0,c.useState)(null),[P,Q]=(0,c.useState)("1.0.0"),[R,S]=(0,c.useState)(""),[T,U]=(0,c.useState)(!1),V=(0,c.useCallback)(async()=>{E(!0),C([]),G(null);let b=Date.now();try{let b=await l(a.id);if(b.success&&Array.isArray(b.data)){let a=b.data.map(a=>({...a,status:"error"===a.status?"error":"done"}));C(a);let c=new Set(a.filter(a=>a.jobs.length>0).map(a=>a.nodeId));M(c.size>0?c:new Set(a.map(a=>a.nodeId)))}else G(b.error?.message??"Scan returned unsuccessful response")}catch(b){let a=b instanceof Error?b.message:"Scan request failed";G(a)}finally{let a=Date.now()-b;a<1500&&await new Promise(b=>setTimeout(b,1500-a)),E(!1),I(!0)}},[a]);(0,c.useEffect)(()=>{a&&V()},[a,V]);let W=k.reduce((a,b)=>a+("done"===b.status?b.jobs.length:0),0),X=k.filter(a=>"done"===a.status).length,Y=k.filter(a=>"error"===a.status).length,Z=a=>{if(!J)return!0;let b=J.toLowerCase();return a.name.toLowerCase().includes(b)||a.command.toLowerCase().includes(b)||a.schedule.toLowerCase().includes(b)||(a.user?.toLowerCase().includes(b)??!1)},$=async()=>{if(N&&P){U(!0);try{let a=JSON.stringify({name:N.job.name,version:P,schedule:N.job.schedule,command:N.job.command,description:R},null,2);await h.f.library.files.create({name:`${N.job.name} v${P}`,fileName:`${N.job.name}-${P}.json`,mimeType:"application/x-magnus-cronjob",content:a,tags:["cronjob","cron"]}),O(null),Q("1.0.0"),S("")}catch{}finally{U(!1)}}};return(0,b.jsxs)(n.U,{className:"space-y-6",children:[(0,b.jsx)(n.z,{children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider",children:"Cron Jobs"}),(0,b.jsx)("p",{className:"text-[11px] text-text-muted uppercase tracking-wider",children:"Discover and manage scheduled jobs across your fleet"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[H&&!D&&(0,b.jsxs)("span",{className:"text-[10px] text-text-muted uppercase tracking-wider mr-2",children:[k.length," node",1!==k.length?"s":""," · ",W," job",1!==W?"s":"",Y>0&&` \xb7 ${Y} error${1!==Y?"s":""}`]}),(0,b.jsxs)(d.K,{variant:"secondary",size:"sm",onClick:()=>void V(),disabled:D,children:[(0,b.jsx)(p.f,{className:(0,m.f)("h-3.5 w-3.5 mr-1.5",D&&"animate-spin")}),D?"Scanning...":"Rescan"]})]})]})}),D&&(0,b.jsx)(n.z,{children:(0,b.jsx)(o.f,{title:"Scanning Nodes for Cron Jobs",description:"Probing all online nodes...",nodes:k.map(a=>({nodeId:a.nodeId,nodeName:a.nodeName,status:a.status,error:a.error})),scanning:!0})}),!D&&H&&W>0&&(0,b.jsx)(n.z,{children:(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(q.f,{className:"absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-text-muted"}),(0,b.jsx)("input",{type:"text",placeholder:"Search jobs by name, command, or schedule...",value:J,onChange:a=>K(a.target.value),className:(0,m.f)(g.W,"pl-9")})]})}),!D&&H&&F&&(0,b.jsx)(n.z,{children:(0,b.jsx)(f.N,{children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,b.jsx)(z.f,{className:"h-10 w-10 text-danger/60 mb-3"}),(0,b.jsx)("p",{className:"text-xs font-bold text-danger mb-1",children:"Scan Failed"}),(0,b.jsx)("p",{className:"text-[11px] text-text-muted max-w-md",children:F}),(0,b.jsxs)(d.K,{variant:"secondary",size:"sm",className:"mt-4",onClick:()=>void V(),children:[(0,b.jsx)(p.f,{className:"h-3.5 w-3.5 mr-1.5"}),"Retry Scan"]})]})})}),!D&&H&&!F&&(0,b.jsxs)(b.Fragment,{children:[0===k.length?(0,b.jsx)(n.z,{children:(0,b.jsx)(f.N,{children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,b.jsx)(s.f,{className:"h-10 w-10 text-text-muted/40 mb-3"}),(0,b.jsx)("p",{className:"text-xs text-text-muted",children:"No online nodes found to scan. Ensure at least one node agent is running and connected."})]})})}):k.map(a=>{let c=L.has(a.nodeId),g=a.jobs.filter(Z);return(0,b.jsx)(n.z,{children:(0,b.jsxs)(f.N,{className:"overflow-hidden",children:[(0,b.jsxs)("button",{onClick:()=>{var b;return b=a.nodeId,void M(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"w-full flex items-center gap-4 p-4 text-left hover:bg-surface-hover transition-all",children:[(0,b.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded border border-primary/30 bg-primary/5 shrink-0",children:(0,b.jsx)(s.f,{className:"h-4 w-4 text-primary"})}),(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider",children:a.nodeName}),"done"===a.status&&(0,b.jsxs)(e.t,{variant:a.jobs.length>0?"success":"default",children:[a.jobs.length," job",1!==a.jobs.length?"s":""]}),"error"===a.status&&((0,i.f)(a.error)?(0,b.jsx)(e.t,{variant:"default",children:"Disabled"}):(0,b.jsx)(e.t,{variant:"danger",children:"Error"}))]}),"error"===a.status&&a.error&&(0,b.jsx)("p",{className:(0,m.f)("text-[11px] mt-0.5 truncate",(0,i.f)(a.error)?"text-text-muted":"text-danger"),children:(0,i.f)(a.error)??a.error}),"done"===a.status&&0===a.jobs.length&&(0,b.jsx)("p",{className:"text-[11px] text-text-muted mt-0.5",children:"No cron jobs found on this node"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:["done"===a.status?(0,b.jsx)(A.f,{className:"h-4 w-4 text-success"}):(0,b.jsx)(B.f,{className:"h-4 w-4 text-danger"}),c?(0,b.jsx)(t.f,{className:"h-4 w-4 text-text-muted"}):(0,b.jsx)(u.f,{className:"h-4 w-4 text-text-muted"})]})]}),c&&"done"===a.status&&(0,b.jsx)("div",{className:"border-t border-border/50 bg-bg/50",children:0===g.length?(0,b.jsx)("div",{className:"flex items-center justify-center py-8 text-center",children:(0,b.jsx)("p",{className:"text-[11px] text-text-muted",children:0===a.jobs.length?"No cron jobs found on this node.":"No jobs match your search on this node."})}):(0,b.jsx)("div",{className:"divide-y divide-border/30",children:g.map((c,f)=>(0,b.jsxs)("div",{className:"p-4 space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(r.f,{className:"h-4 w-4 text-primary"}),(0,b.jsx)("span",{className:"text-xs font-bold",children:c.name}),c.user&&(0,b.jsx)(e.t,{variant:"default",children:c.user}),(0,b.jsx)(e.t,{variant:"info",children:c.schedule})]}),(0,b.jsxs)(d.K,{size:"sm",variant:"secondary",onClick:()=>{O({job:c,nodeId:a.nodeId,nodeName:a.nodeName}),Q("1.0.0"),S("")},children:[(0,b.jsx)(v.f,{className:"h-3 w-3 mr-1"}),"Publish"]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-1 text-[11px] text-text-muted",children:[(0,b.jsx)(y.f,{className:"h-3 w-3"}),function(a){let b=a.split(/\s+/);if(b.length<5)return a;let[c,d,e,f,g]=b;return"*"===c&&"*"===d&&"*"===e&&"*"===f&&"*"===g?"Every minute":"0"===c&&"*"===d&&"*"===e&&"*"===f&&"*"===g?"Every hour":"0"===c&&"0"===d&&"*"===e&&"*"===f&&"*"===g?"Daily at midnight":c?.startsWith("*/")?`Every ${c.slice(2)} minutes`:d?.startsWith("*/")?`Every ${d.slice(2)} hours`:a}(c.schedule)]}),(0,b.jsxs)("div",{className:"flex items-start gap-2 rounded border border-border bg-surface p-3",children:[(0,b.jsx)(x.f,{className:"h-3.5 w-3.5 text-primary mt-0.5 shrink-0"}),(0,b.jsx)("pre",{className:"text-xs whitespace-pre-wrap break-all flex-1",children:c.command})]})]},`${c.name}-${f}`))})})]})},a.nodeId)}),k.length>0&&(0,b.jsx)(n.z,{children:(0,b.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-text-muted uppercase tracking-wider",children:[(0,b.jsxs)("span",{children:[X," node",1!==X?"s":""," scanned ·"," ",W," job",1!==W?"s":""," discovered"]}),Y>0&&(0,b.jsxs)("span",{className:"text-danger",children:[Y," node",1!==Y?"s":""," unreachable"]})]})})]}),(0,b.jsx)(g.n,{open:!!N,onClose:()=>O(null),title:"Publish to Library",description:N?.job.name??"",icon:(0,b.jsx)(v.f,{className:"h-5 w-5 text-primary"}),children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:["Version ",(0,b.jsx)("span",{className:"text-accent",children:"*"})]}),(0,b.jsx)("input",{type:"text",value:P,onChange:a=>Q(a.target.value),placeholder:"1.0.0",className:g.W})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:"Description"}),(0,b.jsx)("input",{type:"text",value:R,onChange:a=>S(a.target.value),placeholder:"What does this cron job do?",className:g.W})]}),N&&(0,b.jsxs)("div",{className:"rounded border border-border bg-bg p-3 text-xs space-y-1",children:[(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Source:"})," ",N.nodeName]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Schedule:"})," ",N.job.schedule]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Command:"})," ",(0,b.jsx)("span",{className:"text-primary",children:N.job.command})]})]}),(0,b.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,b.jsx)(d.K,{variant:"secondary",size:"sm",onClick:()=>O(null),children:"Cancel"}),(0,b.jsx)(d.K,{size:"sm",onClick:()=>void $(),disabled:T||!P,children:T?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(w.f,{className:"h-3.5 w-3.5 animate-spin mr-1.5"}),"Publishing..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v.f,{className:"h-3.5 w-3.5 mr-1.5"}),"Publish"]})})]})]})})]})}],81837)}];
|
|
1
|
+
module.exports=[81837,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68415),e=a.i(58299),f=a.i(49521),g=a.i(85063),h=a.i(46997),i=a.i(5739),j=a.i(8897),k=a.i(5050);let l=(0,k.createServerReference)("408bcc070d3a0ae02e295c41efced8d67b30485f41",k.callServer,void 0,k.findSourceMapURL,"scanCron");var m=a.i(8387),n=a.i(73771),o=a.i(33855),p=a.i(19783),q=a.i(33540),r=a.i(8311),s=a.i(34532),t=a.i(89027),u=a.i(41146),v=a.i(1661),w=a.i(75160),x=a.i(57307),y=a.i(70944),z=a.i(68579),A=a.i(13412),B=a.i(11134);a.s(["default",0,function(){let{activeNode:a}=(0,j.l)(),[k,C]=(0,c.useState)([]),[D,E]=(0,c.useState)(!1),[F,G]=(0,c.useState)(null),[H,I]=(0,c.useState)(!1),[J,K]=(0,c.useState)(""),[L,M]=(0,c.useState)(new Set),[N,O]=(0,c.useState)(null),[P,Q]=(0,c.useState)("1.0.0"),[R,S]=(0,c.useState)(""),[T,U]=(0,c.useState)(!1),V=(0,c.useCallback)(async()=>{E(!0),C([]),G(null);let b=Date.now();try{let b=await l(a.id);if(b.success&&Array.isArray(b.data)){let a=b.data.map(a=>({...a,status:"error"===a.status?"error":"done"}));C(a);let c=new Set(a.filter(a=>a.jobs.length>0).map(a=>a.nodeId));M(c.size>0?c:new Set(a.map(a=>a.nodeId)))}else G(b.error?.message??"Scan returned unsuccessful response")}catch(b){let a=b instanceof Error?b.message:"Scan request failed";G(a)}finally{let a=Date.now()-b;a<1500&&await new Promise(b=>setTimeout(b,1500-a)),E(!1),I(!0)}},[a]);(0,c.useEffect)(()=>{a&&V()},[a,V]);let W=k.reduce((a,b)=>a+("done"===b.status?b.jobs.length:0),0),X=k.filter(a=>"done"===a.status).length,Y=k.filter(a=>"error"===a.status).length,Z=a=>{if(!J)return!0;let b=J.toLowerCase();return a.name.toLowerCase().includes(b)||a.command.toLowerCase().includes(b)||a.schedule.toLowerCase().includes(b)||(a.user?.toLowerCase().includes(b)??!1)},$=async()=>{if(N&&P){U(!0);try{let a=JSON.stringify({name:N.job.name,version:P,schedule:N.job.schedule,command:N.job.command,description:R},null,2);await h.f.library.files.create({name:`${N.job.name} v${P}`,fileName:`${N.job.name}-${P}.json`,mimeType:"application/x-magnus-cronjob",content:a,tags:["cronjob","cron"]}),O(null),Q("1.0.0"),S("")}catch{}finally{U(!1)}}};return(0,b.jsxs)(n.U,{className:"space-y-6",children:[(0,b.jsx)(n.z,{children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider",children:"Cron Jobs"}),(0,b.jsx)("p",{className:"text-[11px] text-text-muted uppercase tracking-wider",children:"Discover and manage scheduled jobs across your fleet"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[H&&!D&&(0,b.jsxs)("span",{className:"text-[10px] text-text-muted uppercase tracking-wider mr-2",children:[k.length," node",1!==k.length?"s":""," · ",W," job",1!==W?"s":"",Y>0&&` \xb7 ${Y} error${1!==Y?"s":""}`]}),(0,b.jsxs)(d.K,{variant:"secondary",size:"sm",onClick:()=>void V(),disabled:D,children:[(0,b.jsx)(p.f,{className:(0,m.f)("h-3.5 w-3.5 mr-1.5",D&&"animate-spin")}),D?"Scanning...":"Rescan"]})]})]})}),D&&(0,b.jsx)(n.z,{children:(0,b.jsx)(o.f,{title:"Scanning Nodes for Cron Jobs",description:"Probing all online nodes...",nodes:k.map(a=>({nodeId:a.nodeId,nodeName:a.nodeName,status:a.status,error:a.error})),scanning:!0})}),!D&&H&&W>0&&(0,b.jsx)(n.z,{children:(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(q.f,{className:"absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-text-muted"}),(0,b.jsx)("input",{type:"text",placeholder:"Search jobs by name, command, or schedule...",value:J,onChange:a=>K(a.target.value),className:(0,m.f)(g.W,"pl-9")})]})}),!D&&H&&F&&(0,b.jsx)(n.z,{children:(0,b.jsx)(f.N,{children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,b.jsx)(z.f,{className:"h-10 w-10 text-danger/60 mb-3"}),(0,b.jsx)("p",{className:"text-xs font-bold text-danger mb-1",children:"Scan Failed"}),(0,b.jsx)("p",{className:"text-[11px] text-text-muted max-w-md",children:F}),(0,b.jsxs)(d.K,{variant:"secondary",size:"sm",className:"mt-4",onClick:()=>void V(),children:[(0,b.jsx)(p.f,{className:"h-3.5 w-3.5 mr-1.5"}),"Retry Scan"]})]})})}),!D&&H&&!F&&(0,b.jsxs)(b.Fragment,{children:[0===k.length?(0,b.jsx)(n.z,{children:(0,b.jsx)(f.N,{children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,b.jsx)(s.f,{className:"h-10 w-10 text-text-muted/40 mb-3"}),(0,b.jsx)("p",{className:"text-xs text-text-muted",children:"No online nodes found to scan. Ensure at least one node agent is running and connected."})]})})}):k.map(a=>{let c=L.has(a.nodeId),g=a.jobs.filter(Z);return(0,b.jsx)(n.z,{children:(0,b.jsxs)(f.N,{className:"overflow-hidden",children:[(0,b.jsxs)("button",{onClick:()=>{var b;return b=a.nodeId,void M(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"w-full flex items-center gap-4 p-4 text-left hover:bg-surface-hover transition-all",children:[(0,b.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded border border-primary/30 bg-primary/5 shrink-0",children:(0,b.jsx)(s.f,{className:"h-4 w-4 text-primary"})}),(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider",children:a.nodeName}),"done"===a.status&&(0,b.jsxs)(e.t,{variant:a.jobs.length>0?"success":"default",children:[a.jobs.length," job",1!==a.jobs.length?"s":""]}),"error"===a.status&&((0,i.f)(a.error)?(0,b.jsx)(e.t,{variant:"default",children:"Disabled"}):(0,b.jsx)(e.t,{variant:"danger",children:"Error"}))]}),"error"===a.status&&a.error&&(0,b.jsx)("p",{className:(0,m.f)("text-[11px] mt-0.5 truncate",(0,i.f)(a.error)?"text-text-muted":"text-danger"),children:(0,i.f)(a.error)??a.error}),"done"===a.status&&0===a.jobs.length&&(0,b.jsx)("p",{className:"text-[11px] text-text-muted mt-0.5",children:"No cron jobs found on this node"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:["done"===a.status?(0,b.jsx)(A.f,{className:"h-4 w-4 text-success"}):(0,b.jsx)(B.f,{className:"h-4 w-4 text-danger"}),c?(0,b.jsx)(t.f,{className:"h-4 w-4 text-text-muted"}):(0,b.jsx)(u.f,{className:"h-4 w-4 text-text-muted"})]})]}),c&&"done"===a.status&&(0,b.jsx)("div",{className:"border-t border-border/50 bg-bg/50",children:0===g.length?(0,b.jsx)("div",{className:"flex items-center justify-center py-8 text-center",children:(0,b.jsx)("p",{className:"text-[11px] text-text-muted",children:0===a.jobs.length?"No cron jobs found on this node.":"No jobs match your search on this node."})}):(0,b.jsx)("div",{className:"divide-y divide-border/30",children:g.map((c,f)=>(0,b.jsxs)("div",{className:"p-4 space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(r.f,{className:"h-4 w-4 text-primary"}),(0,b.jsx)("span",{className:"text-xs font-bold",children:c.name}),c.user&&(0,b.jsx)(e.t,{variant:"default",children:c.user}),(0,b.jsx)(e.t,{variant:"info",children:c.schedule})]}),(0,b.jsxs)(d.K,{size:"sm",variant:"secondary",onClick:()=>{O({job:c,nodeId:a.nodeId,nodeName:a.nodeName}),Q("1.0.0"),S("")},children:[(0,b.jsx)(v.f,{className:"h-3 w-3 mr-1"}),"Publish"]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-1 text-[11px] text-text-muted",children:[(0,b.jsx)(y.f,{className:"h-3 w-3"}),function(a){let b=a.split(/\s+/);if(b.length<5)return a;let[c,d,e,f,g]=b;return"*"===c&&"*"===d&&"*"===e&&"*"===f&&"*"===g?"Every minute":"0"===c&&"*"===d&&"*"===e&&"*"===f&&"*"===g?"Every hour":"0"===c&&"0"===d&&"*"===e&&"*"===f&&"*"===g?"Daily at midnight":c?.startsWith("*/")?`Every ${c.slice(2)} minutes`:d?.startsWith("*/")?`Every ${d.slice(2)} hours`:a}(c.schedule)]}),(0,b.jsxs)("div",{className:"flex items-start gap-2 rounded border border-border bg-surface p-3",children:[(0,b.jsx)(x.f,{className:"h-3.5 w-3.5 text-primary mt-0.5 shrink-0"}),(0,b.jsx)("pre",{className:"text-xs whitespace-pre-wrap break-all flex-1",children:c.command})]})]},`${c.name}-${f}`))})})]})},a.nodeId)}),k.length>0&&(0,b.jsx)(n.z,{children:(0,b.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-text-muted uppercase tracking-wider",children:[(0,b.jsxs)("span",{children:[X," node",1!==X?"s":""," scanned ·"," ",W," job",1!==W?"s":""," discovered"]}),Y>0&&(0,b.jsxs)("span",{className:"text-danger",children:[Y," node",1!==Y?"s":""," unreachable"]})]})})]}),(0,b.jsx)(g.n,{open:!!N,onClose:()=>O(null),title:"Publish to Library",description:N?.job.name??"",icon:(0,b.jsx)(v.f,{className:"h-5 w-5 text-primary"}),children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:["Version ",(0,b.jsx)("span",{className:"text-accent",children:"*"})]}),(0,b.jsx)("input",{type:"text",value:P,onChange:a=>Q(a.target.value),placeholder:"1.0.0",className:g.W})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:"Description"}),(0,b.jsx)("input",{type:"text",value:R,onChange:a=>S(a.target.value),placeholder:"What does this cron job do?",className:g.W})]}),N&&(0,b.jsxs)("div",{className:"rounded border border-border bg-bg p-3 text-xs space-y-1",children:[(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Source:"})," ",N.nodeName]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Schedule:"})," ",N.job.schedule]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Command:"})," ",(0,b.jsx)("span",{className:"text-primary",children:N.job.command})]})]}),(0,b.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,b.jsx)(d.K,{variant:"secondary",size:"sm",onClick:()=>O(null),children:"Cancel"}),(0,b.jsx)(d.K,{size:"sm",onClick:()=>void $(),disabled:T||!P,children:T?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(w.f,{className:"h-3.5 w-3.5 animate-spin mr-1.5"}),"Publishing..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v.f,{className:"h-3.5 w-3.5 mr-1.5"}),"Publish"]})})]})]})})]})}],81837)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=apps_dashboard_src_app_cron_page_tsx_1i3duyygc0_tg._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[9121,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68415),e=a.i(58299),f=a.i(49521),g=a.i(85063),h=a.i(46997),i=a.i(8897),j=a.i(5050);let k=(0,j.createServerReference)("4024ed520850fdf3a6b7a7c8122000e47d5f6259e1",j.callServer,void 0,j.findSourceMapURL,"scanSkills");var l=a.i(8387),m=a.i(73771),n=a.i(33855),o=a.i(19783),p=a.i(33540),q=a.i(92965),r=a.i(34532),s=a.i(64831);let t={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};t.node;let u=(0,s.f)(t);var v=a.i(40260),w=a.i(89027),x=a.i(41146),y=a.i(55681),z=a.i(1661),A=a.i(75160),B=a.i(68579),C=a.i(13412),D=a.i(11134);a.s(["default",0,function(){let{activeNode:a}=(0,i.l)(),[j,s]=(0,c.useState)([]),[t,E]=(0,c.useState)(!1),[F,G]=(0,c.useState)(null),[H,I]=(0,c.useState)(!1),[J,K]=(0,c.useState)(""),[L,M]=(0,c.useState)(new Set),[N,O]=(0,c.useState)(null),[P,Q]=(0,c.useState)(null),[R,S]=(0,c.useState)(""),[T,U]=(0,c.useState)(!1),V=(0,c.useCallback)(async()=>{E(!0),s([]),G(null);let b=Date.now();try{let b=await k(a.id);if(b.success&&Array.isArray(b.data)){let a=b.data.map(a=>({...a,status:"error"===a.status?"error":"done",skills:a.skills.map(a=>({...a,files:a.files.map(a=>"string"==typeof a?{name:a,content:""}:a)}))}));s(a);let c=new Set(a.filter(a=>a.skills.length>0).map(a=>a.nodeId));M(c.size>0?c:new Set(a.map(a=>a.nodeId)))}else G(b.error?.message??"Scan returned unsuccessful response")}catch(b){let a=b instanceof Error?b.message:"Scan request failed";G(a)}finally{let a=Date.now()-b;a<1500&&await new Promise(b=>setTimeout(b,1500-a)),E(!1),I(!0)}},[a]);(0,c.useEffect)(()=>{a&&V()},[a,V]);let W=j.reduce((a,b)=>a+("done"===b.status?b.skills.length:0),0),X=j.filter(a=>"done"===a.status).length,Y=j.filter(a=>"error"===a.status).length,Z=a=>{if(!J)return!0;let b=J.toLowerCase();return a.name.toLowerCase().includes(b)||a.description.toLowerCase().includes(b)||a.tags.some(a=>a.toLowerCase().includes(b))},$=async()=>{if(P&&R){U(!0);try{let a={name:P.skill.name,version:R,description:P.skill.description,author:P.skill.author,entryPoint:P.skill.entryPoint,dependencies:P.skill.dependencies,tags:P.skill.tags},b={};for(let a of P.skill.files)b[a.name]=a.content;let c=JSON.stringify({manifest:a,files:b},null,2);await h.f.library.files.create({name:`${P.skill.name} v${R}`,fileName:`${P.skill.name}-${R}.json`,mimeType:"application/x-magnus-skill",content:c,tags:["skill",...P.skill.tags]}),Q(null),S("")}catch{}finally{U(!1)}}};return(0,b.jsxs)(m.U,{className:"space-y-6",children:[(0,b.jsx)(m.z,{children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider",children:"Skills"}),(0,b.jsx)("p",{className:"text-[11px] text-text-muted uppercase tracking-wider",children:"Discover and manage Hermes Agent skills across your fleet"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[H&&!t&&(0,b.jsxs)("span",{className:"text-[10px] text-text-muted uppercase tracking-wider mr-2",children:[j.length," node",1!==j.length?"s":""," · ",W," skill",1!==W?"s":"",Y>0&&` \xb7 ${Y} error${1!==Y?"s":""}`]}),(0,b.jsxs)(d.K,{variant:"secondary",size:"sm",onClick:()=>void V(),disabled:t,children:[(0,b.jsx)(o.f,{className:(0,l.f)("h-3.5 w-3.5 mr-1.5",t&&"animate-spin")}),t?"Scanning...":"Rescan"]})]})]})}),t&&(0,b.jsx)(m.z,{children:(0,b.jsx)(n.f,{title:"Scanning Nodes for Skills",description:"Probing all online nodes...",nodes:j.map(a=>({nodeId:a.nodeId,nodeName:a.nodeName,status:a.status,error:a.error})),scanning:!0})}),!t&&H&&W>0&&(0,b.jsx)(m.z,{children:(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(p.f,{className:"absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-text-muted"}),(0,b.jsx)("input",{type:"text",placeholder:"Search skills by name, description, or tag...",value:J,onChange:a=>K(a.target.value),className:(0,l.f)(g.W,"pl-9")})]})}),!t&&H&&F&&(0,b.jsx)(m.z,{children:(0,b.jsx)(f.N,{children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,b.jsx)(B.f,{className:"h-10 w-10 text-danger/60 mb-3"}),(0,b.jsx)("p",{className:"text-xs font-bold text-danger mb-1",children:"Scan Failed"}),(0,b.jsx)("p",{className:"text-[11px] text-text-muted max-w-md",children:F}),(0,b.jsxs)(d.K,{variant:"secondary",size:"sm",className:"mt-4",onClick:()=>void V(),children:[(0,b.jsx)(o.f,{className:"h-3.5 w-3.5 mr-1.5"}),"Retry Scan"]})]})})}),!t&&H&&!F&&(0,b.jsxs)(b.Fragment,{children:[0===j.length?(0,b.jsx)(m.z,{children:(0,b.jsx)(f.N,{children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,b.jsx)(r.f,{className:"h-10 w-10 text-text-muted/40 mb-3"}),(0,b.jsx)("p",{className:"text-xs text-text-muted",children:"No online nodes found to scan. Ensure at least one node agent is running and connected."})]})})}):j.map(a=>{let c=L.has(a.nodeId),g=a.skills.filter(Z);return(0,b.jsx)(m.z,{children:(0,b.jsxs)(f.N,{className:"overflow-hidden",children:[(0,b.jsxs)("button",{onClick:()=>{var b;return b=a.nodeId,void M(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"w-full flex items-center gap-4 p-4 text-left hover:bg-surface-hover transition-all",children:[(0,b.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded border border-primary/30 bg-primary/5 shrink-0",children:(0,b.jsx)(r.f,{className:"h-4 w-4 text-primary"})}),(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider",children:a.nodeName}),"done"===a.status&&(0,b.jsxs)(e.t,{variant:a.skills.length>0?"success":"default",children:[a.skills.length," skill",1!==a.skills.length?"s":""]}),"error"===a.status&&(0,b.jsx)(e.t,{variant:"danger",children:"Error"})]}),"error"===a.status&&a.error&&(0,b.jsx)("p",{className:"text-[11px] text-danger mt-0.5 truncate",children:a.error}),"done"===a.status&&0===a.skills.length&&(0,b.jsx)("p",{className:"text-[11px] text-text-muted mt-0.5",children:"No skills installed on this node"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:["done"===a.status?(0,b.jsx)(C.f,{className:"h-4 w-4 text-success"}):(0,b.jsx)(D.f,{className:"h-4 w-4 text-danger"}),c?(0,b.jsx)(w.f,{className:"h-4 w-4 text-text-muted"}):(0,b.jsx)(x.f,{className:"h-4 w-4 text-text-muted"})]})]}),c&&"done"===a.status&&(0,b.jsx)("div",{className:"border-t border-border/50 bg-bg/50",children:0===g.length?(0,b.jsx)("div",{className:"flex items-center justify-center py-8 text-center",children:(0,b.jsx)("p",{className:"text-[11px] text-text-muted",children:0===a.skills.length?"No skills installed on this node. Deploy skills from the Library.":"No skills match your search on this node."})}):(0,b.jsx)("div",{className:"divide-y divide-border/30",children:g.map(c=>(0,b.jsxs)("div",{className:"p-4 space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(q.f,{className:"h-4 w-4 text-primary"}),(0,b.jsx)("span",{className:"text-xs font-bold",children:c.name}),(0,b.jsx)(e.t,{variant:"info",children:c.version})]}),(0,b.jsxs)(d.K,{size:"sm",variant:"secondary",onClick:()=>{Q({skill:c,nodeId:a.nodeId,nodeName:a.nodeName}),S(c.version)},children:[(0,b.jsx)(z.f,{className:"h-3 w-3 mr-1"}),"Publish"]})]}),c.description&&(0,b.jsx)("p",{className:"text-[11px] text-text-muted",children:c.description}),c.tags.length>0&&(0,b.jsx)("div",{className:"flex flex-wrap gap-1",children:c.tags.map(a=>(0,b.jsxs)(e.t,{variant:"default",children:[(0,b.jsx)(u,{className:"h-2.5 w-2.5 mr-1"}),a]},a))}),(0,b.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,b.jsxs)("div",{className:"rounded border border-border bg-surface p-2",children:[(0,b.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-0.5",children:"Author"}),(0,b.jsx)("p",{className:"text-[11px]",children:c.author||"—"})]}),(0,b.jsxs)("div",{className:"rounded border border-border bg-surface p-2",children:[(0,b.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-0.5",children:"Entry Point"}),(0,b.jsx)("p",{className:"text-[11px]",children:c.entryPoint||"—"})]}),(0,b.jsxs)("div",{className:"rounded border border-border bg-surface p-2",children:[(0,b.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-0.5",children:"Dependencies"}),(0,b.jsx)("p",{className:"text-[11px]",children:c.dependencies.length>0?c.dependencies.join(", "):"—"})]})]}),c.files.length>0&&(0,b.jsxs)("div",{children:[(0,b.jsxs)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-1.5",children:["Files (",c.files.length,")"]}),(0,b.jsx)("div",{className:"space-y-1",children:c.files.map(a=>(0,b.jsxs)("button",{onClick:()=>O(a),className:"flex items-center gap-2 rounded border border-border/50 px-3 py-1.5 text-xs hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] transition-all w-full text-left",children:[(0,b.jsx)(v.f,{className:"h-3 w-3 text-primary"}),(0,b.jsx)("span",{children:a.name}),(0,b.jsx)(y.f,{className:"h-3 w-3 text-text-muted ml-auto"})]},a.name))})]})]},c.name))})})]})},a.nodeId)}),j.length>0&&(0,b.jsx)(m.z,{children:(0,b.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-text-muted uppercase tracking-wider",children:[(0,b.jsxs)("span",{children:[X," node",1!==X?"s":""," scanned ·"," ",W," skill",1!==W?"s":""," discovered"]}),Y>0&&(0,b.jsxs)("span",{className:"text-danger",children:[Y," node",1!==Y?"s":""," unreachable"]})]})})]}),(0,b.jsx)(g.n,{open:!!N,onClose:()=>O(null),title:N?.name??"File",icon:(0,b.jsx)(v.f,{className:"h-5 w-5 text-primary"}),className:"max-w-3xl",children:(0,b.jsx)("pre",{className:"rounded border border-border bg-bg p-4 text-xs overflow-auto max-h-96 whitespace-pre-wrap",children:N?.content||"(empty)"})}),(0,b.jsx)(g.n,{open:!!P,onClose:()=>Q(null),title:"Publish to Library",description:P?.skill.name??"",icon:(0,b.jsx)(z.f,{className:"h-5 w-5 text-primary"}),children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:["Version ",(0,b.jsx)("span",{className:"text-accent",children:"*"})]}),(0,b.jsx)("input",{type:"text",value:R,onChange:a=>S(a.target.value),placeholder:"1.0.0",className:g.W})]}),P&&(0,b.jsxs)("div",{className:"rounded border border-border bg-bg p-3 text-xs space-y-1",children:[(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Source:"})," ",P.nodeName]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Files:"})," ",P.skill.files.length," files"]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Tags:"})," ",["skill",...P.skill.tags].join(", ")]})]}),(0,b.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,b.jsx)(d.K,{variant:"secondary",size:"sm",onClick:()=>Q(null),children:"Cancel"}),(0,b.jsx)(d.K,{size:"sm",onClick:()=>void $(),disabled:T||!R,children:T?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(A.f,{className:"h-3.5 w-3.5 animate-spin mr-1.5"}),"Publishing..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(z.f,{className:"h-3.5 w-3.5 mr-1.5"}),"Publish"]})})]})]})})]})}],9121)}];
|
|
1
|
+
module.exports=[9121,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68415),e=a.i(58299),f=a.i(49521),g=a.i(85063),h=a.i(46997),i=a.i(8897),j=a.i(5050);let k=(0,j.createServerReference)("4087e94ba8140ed0e83175a5587e1a299c466814c6",j.callServer,void 0,j.findSourceMapURL,"scanSkills");var l=a.i(8387),m=a.i(73771),n=a.i(33855),o=a.i(19783),p=a.i(33540),q=a.i(92965),r=a.i(34532),s=a.i(64831);let t={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};t.node;let u=(0,s.f)(t);var v=a.i(40260),w=a.i(89027),x=a.i(41146),y=a.i(55681),z=a.i(1661),A=a.i(75160),B=a.i(68579),C=a.i(13412),D=a.i(11134);a.s(["default",0,function(){let{activeNode:a}=(0,i.l)(),[j,s]=(0,c.useState)([]),[t,E]=(0,c.useState)(!1),[F,G]=(0,c.useState)(null),[H,I]=(0,c.useState)(!1),[J,K]=(0,c.useState)(""),[L,M]=(0,c.useState)(new Set),[N,O]=(0,c.useState)(null),[P,Q]=(0,c.useState)(null),[R,S]=(0,c.useState)(""),[T,U]=(0,c.useState)(!1),V=(0,c.useCallback)(async()=>{E(!0),s([]),G(null);let b=Date.now();try{let b=await k(a.id);if(b.success&&Array.isArray(b.data)){let a=b.data.map(a=>({...a,status:"error"===a.status?"error":"done",skills:a.skills.map(a=>({...a,files:a.files.map(a=>"string"==typeof a?{name:a,content:""}:a)}))}));s(a);let c=new Set(a.filter(a=>a.skills.length>0).map(a=>a.nodeId));M(c.size>0?c:new Set(a.map(a=>a.nodeId)))}else G(b.error?.message??"Scan returned unsuccessful response")}catch(b){let a=b instanceof Error?b.message:"Scan request failed";G(a)}finally{let a=Date.now()-b;a<1500&&await new Promise(b=>setTimeout(b,1500-a)),E(!1),I(!0)}},[a]);(0,c.useEffect)(()=>{a&&V()},[a,V]);let W=j.reduce((a,b)=>a+("done"===b.status?b.skills.length:0),0),X=j.filter(a=>"done"===a.status).length,Y=j.filter(a=>"error"===a.status).length,Z=a=>{if(!J)return!0;let b=J.toLowerCase();return a.name.toLowerCase().includes(b)||a.description.toLowerCase().includes(b)||a.tags.some(a=>a.toLowerCase().includes(b))},$=async()=>{if(P&&R){U(!0);try{let a={name:P.skill.name,version:R,description:P.skill.description,author:P.skill.author,entryPoint:P.skill.entryPoint,dependencies:P.skill.dependencies,tags:P.skill.tags},b={};for(let a of P.skill.files)b[a.name]=a.content;let c=JSON.stringify({manifest:a,files:b},null,2);await h.f.library.files.create({name:`${P.skill.name} v${R}`,fileName:`${P.skill.name}-${R}.json`,mimeType:"application/x-magnus-skill",content:c,tags:["skill",...P.skill.tags]}),Q(null),S("")}catch{}finally{U(!1)}}};return(0,b.jsxs)(m.U,{className:"space-y-6",children:[(0,b.jsx)(m.z,{children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider",children:"Skills"}),(0,b.jsx)("p",{className:"text-[11px] text-text-muted uppercase tracking-wider",children:"Discover and manage Hermes Agent skills across your fleet"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[H&&!t&&(0,b.jsxs)("span",{className:"text-[10px] text-text-muted uppercase tracking-wider mr-2",children:[j.length," node",1!==j.length?"s":""," · ",W," skill",1!==W?"s":"",Y>0&&` \xb7 ${Y} error${1!==Y?"s":""}`]}),(0,b.jsxs)(d.K,{variant:"secondary",size:"sm",onClick:()=>void V(),disabled:t,children:[(0,b.jsx)(o.f,{className:(0,l.f)("h-3.5 w-3.5 mr-1.5",t&&"animate-spin")}),t?"Scanning...":"Rescan"]})]})]})}),t&&(0,b.jsx)(m.z,{children:(0,b.jsx)(n.f,{title:"Scanning Nodes for Skills",description:"Probing all online nodes...",nodes:j.map(a=>({nodeId:a.nodeId,nodeName:a.nodeName,status:a.status,error:a.error})),scanning:!0})}),!t&&H&&W>0&&(0,b.jsx)(m.z,{children:(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(p.f,{className:"absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-text-muted"}),(0,b.jsx)("input",{type:"text",placeholder:"Search skills by name, description, or tag...",value:J,onChange:a=>K(a.target.value),className:(0,l.f)(g.W,"pl-9")})]})}),!t&&H&&F&&(0,b.jsx)(m.z,{children:(0,b.jsx)(f.N,{children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,b.jsx)(B.f,{className:"h-10 w-10 text-danger/60 mb-3"}),(0,b.jsx)("p",{className:"text-xs font-bold text-danger mb-1",children:"Scan Failed"}),(0,b.jsx)("p",{className:"text-[11px] text-text-muted max-w-md",children:F}),(0,b.jsxs)(d.K,{variant:"secondary",size:"sm",className:"mt-4",onClick:()=>void V(),children:[(0,b.jsx)(o.f,{className:"h-3.5 w-3.5 mr-1.5"}),"Retry Scan"]})]})})}),!t&&H&&!F&&(0,b.jsxs)(b.Fragment,{children:[0===j.length?(0,b.jsx)(m.z,{children:(0,b.jsx)(f.N,{children:(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,b.jsx)(r.f,{className:"h-10 w-10 text-text-muted/40 mb-3"}),(0,b.jsx)("p",{className:"text-xs text-text-muted",children:"No online nodes found to scan. Ensure at least one node agent is running and connected."})]})})}):j.map(a=>{let c=L.has(a.nodeId),g=a.skills.filter(Z);return(0,b.jsx)(m.z,{children:(0,b.jsxs)(f.N,{className:"overflow-hidden",children:[(0,b.jsxs)("button",{onClick:()=>{var b;return b=a.nodeId,void M(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"w-full flex items-center gap-4 p-4 text-left hover:bg-surface-hover transition-all",children:[(0,b.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded border border-primary/30 bg-primary/5 shrink-0",children:(0,b.jsx)(r.f,{className:"h-4 w-4 text-primary"})}),(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider",children:a.nodeName}),"done"===a.status&&(0,b.jsxs)(e.t,{variant:a.skills.length>0?"success":"default",children:[a.skills.length," skill",1!==a.skills.length?"s":""]}),"error"===a.status&&(0,b.jsx)(e.t,{variant:"danger",children:"Error"})]}),"error"===a.status&&a.error&&(0,b.jsx)("p",{className:"text-[11px] text-danger mt-0.5 truncate",children:a.error}),"done"===a.status&&0===a.skills.length&&(0,b.jsx)("p",{className:"text-[11px] text-text-muted mt-0.5",children:"No skills installed on this node"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:["done"===a.status?(0,b.jsx)(C.f,{className:"h-4 w-4 text-success"}):(0,b.jsx)(D.f,{className:"h-4 w-4 text-danger"}),c?(0,b.jsx)(w.f,{className:"h-4 w-4 text-text-muted"}):(0,b.jsx)(x.f,{className:"h-4 w-4 text-text-muted"})]})]}),c&&"done"===a.status&&(0,b.jsx)("div",{className:"border-t border-border/50 bg-bg/50",children:0===g.length?(0,b.jsx)("div",{className:"flex items-center justify-center py-8 text-center",children:(0,b.jsx)("p",{className:"text-[11px] text-text-muted",children:0===a.skills.length?"No skills installed on this node. Deploy skills from the Library.":"No skills match your search on this node."})}):(0,b.jsx)("div",{className:"divide-y divide-border/30",children:g.map(c=>(0,b.jsxs)("div",{className:"p-4 space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(q.f,{className:"h-4 w-4 text-primary"}),(0,b.jsx)("span",{className:"text-xs font-bold",children:c.name}),(0,b.jsx)(e.t,{variant:"info",children:c.version})]}),(0,b.jsxs)(d.K,{size:"sm",variant:"secondary",onClick:()=>{Q({skill:c,nodeId:a.nodeId,nodeName:a.nodeName}),S(c.version)},children:[(0,b.jsx)(z.f,{className:"h-3 w-3 mr-1"}),"Publish"]})]}),c.description&&(0,b.jsx)("p",{className:"text-[11px] text-text-muted",children:c.description}),c.tags.length>0&&(0,b.jsx)("div",{className:"flex flex-wrap gap-1",children:c.tags.map(a=>(0,b.jsxs)(e.t,{variant:"default",children:[(0,b.jsx)(u,{className:"h-2.5 w-2.5 mr-1"}),a]},a))}),(0,b.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,b.jsxs)("div",{className:"rounded border border-border bg-surface p-2",children:[(0,b.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-0.5",children:"Author"}),(0,b.jsx)("p",{className:"text-[11px]",children:c.author||"—"})]}),(0,b.jsxs)("div",{className:"rounded border border-border bg-surface p-2",children:[(0,b.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-0.5",children:"Entry Point"}),(0,b.jsx)("p",{className:"text-[11px]",children:c.entryPoint||"—"})]}),(0,b.jsxs)("div",{className:"rounded border border-border bg-surface p-2",children:[(0,b.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-0.5",children:"Dependencies"}),(0,b.jsx)("p",{className:"text-[11px]",children:c.dependencies.length>0?c.dependencies.join(", "):"—"})]})]}),c.files.length>0&&(0,b.jsxs)("div",{children:[(0,b.jsxs)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-1.5",children:["Files (",c.files.length,")"]}),(0,b.jsx)("div",{className:"space-y-1",children:c.files.map(a=>(0,b.jsxs)("button",{onClick:()=>O(a),className:"flex items-center gap-2 rounded border border-border/50 px-3 py-1.5 text-xs hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] transition-all w-full text-left",children:[(0,b.jsx)(v.f,{className:"h-3 w-3 text-primary"}),(0,b.jsx)("span",{children:a.name}),(0,b.jsx)(y.f,{className:"h-3 w-3 text-text-muted ml-auto"})]},a.name))})]})]},c.name))})})]})},a.nodeId)}),j.length>0&&(0,b.jsx)(m.z,{children:(0,b.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-text-muted uppercase tracking-wider",children:[(0,b.jsxs)("span",{children:[X," node",1!==X?"s":""," scanned ·"," ",W," skill",1!==W?"s":""," discovered"]}),Y>0&&(0,b.jsxs)("span",{className:"text-danger",children:[Y," node",1!==Y?"s":""," unreachable"]})]})})]}),(0,b.jsx)(g.n,{open:!!N,onClose:()=>O(null),title:N?.name??"File",icon:(0,b.jsx)(v.f,{className:"h-5 w-5 text-primary"}),className:"max-w-3xl",children:(0,b.jsx)("pre",{className:"rounded border border-border bg-bg p-4 text-xs overflow-auto max-h-96 whitespace-pre-wrap",children:N?.content||"(empty)"})}),(0,b.jsx)(g.n,{open:!!P,onClose:()=>Q(null),title:"Publish to Library",description:P?.skill.name??"",icon:(0,b.jsx)(z.f,{className:"h-5 w-5 text-primary"}),children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:["Version ",(0,b.jsx)("span",{className:"text-accent",children:"*"})]}),(0,b.jsx)("input",{type:"text",value:R,onChange:a=>S(a.target.value),placeholder:"1.0.0",className:g.W})]}),P&&(0,b.jsxs)("div",{className:"rounded border border-border bg-bg p-3 text-xs space-y-1",children:[(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Source:"})," ",P.nodeName]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Files:"})," ",P.skill.files.length," files"]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"text-text-muted",children:"Tags:"})," ",["skill",...P.skill.tags].join(", ")]})]}),(0,b.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,b.jsx)(d.K,{variant:"secondary",size:"sm",onClick:()=>Q(null),children:"Cancel"}),(0,b.jsx)(d.K,{size:"sm",onClick:()=>void $(),disabled:T||!R,children:T?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(A.f,{className:"h-3.5 w-3.5 animate-spin mr-1.5"}),"Publishing..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(z.f,{className:"h-3.5 w-3.5 mr-1.5"}),"Publish"]})})]})]})})]})}],9121)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=apps_dashboard_src_app_skills_page_tsx_0n5zp4xad38in._.js.map
|
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/0cz1d0mv5g_q7.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/Jh1Vzj_Imw7rJQewmUZon/_buildManifest.js",
|
|
11
|
+
"static/Jh1Vzj_Imw7rJQewmUZon/_ssgManifest.js",
|
|
12
|
+
"static/Jh1Vzj_Imw7rJQewmUZon/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/3y705tc4v-41-.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3y705tc4v-41-.js"/><script src="/_next/static/chunks/1k2w3nq2-wg_-.js" async=""></script><script src="/_next/static/chunks/16uyp1ymdlvpq.js" async=""></script><script src="/_next/static/chunks/3l8w-h8da7s_r.js" async=""></script><script src="/_next/static/chunks/3t6i_3lvi_934.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/1ua2kfq9s-me6.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3y705tc4v-41-.js","static/chunks/1k2w3nq2-wg_-.js","static/chunks/16uyp1ymdlvpq.js","static/chunks/3l8w-h8da7s_r.js","static/chunks/3t6i_3lvi_934.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3y705tc4v-41-.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/1ua2kfq9s-me6.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n7:I[97367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[97367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[97367,[\"$2\"],\"$d\"]\n10:I[68027,[\"$2\"],\"default\",1]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3y705tc4v-41-.js"/><script src="/_next/static/chunks/1k2w3nq2-wg_-.js" async=""></script><script src="/_next/static/chunks/16uyp1ymdlvpq.js" async=""></script><script src="/_next/static/chunks/3l8w-h8da7s_r.js" async=""></script><script src="/_next/static/chunks/3t6i_3lvi_934.js" async=""></script><script src="/_next/static/chunks/turbopack-2u1d16houkiyo.js" async=""></script><script src="/_next/static/chunks/1ua2kfq9s-me6.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3y705tc4v-41-.js","static/chunks/1k2w3nq2-wg_-.js","static/chunks/16uyp1ymdlvpq.js","static/chunks/3l8w-h8da7s_r.js","static/chunks/3t6i_3lvi_934.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3y705tc4v-41-.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/1ua2kfq9s-me6.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n7:I[97367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[97367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[97367,[\"$2\"],\"$d\"]\n10:I[68027,[\"$2\"],\"default\",1]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"Jh1Vzj_Imw7rJQewmUZon\"}\n5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n9:null\nf:[]\n"])</script></body></html>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"previewModeId": "
|
|
3
|
-
"previewModeSigningKey": "
|
|
4
|
-
"previewModeEncryptionKey": "
|
|
2
|
+
"previewModeId": "bfb7f2a5c7cee2b90c0e2f240b32c0a6",
|
|
3
|
+
"previewModeSigningKey": "ee49b0b3fd41889ff303b8a7431f3ec40ffb135abae7116b03642b279d849494",
|
|
4
|
+
"previewModeEncryptionKey": "b34784e540f05add80c17952ecb5176281ce1204d0604760a6bf4caa3cfe1dfe"
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {\n \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {\n \"408bcc070d3a0ae02e295c41efced8d67b30485f41\": {\n \"workers\": {\n \"app/cron/page\": {\n \"moduleId\": 80202,\n \"async\": false\n }\n },\n \"filename\": \"apps/dashboard/src/app/actions/scan.ts\",\n \"exportedName\": \"scanCron\"\n },\n \"4087e94ba8140ed0e83175a5587e1a299c466814c6\": {\n \"workers\": {\n \"app/skills/page\": {\n \"moduleId\": 28111,\n \"async\": false\n }\n },\n \"filename\": \"apps/dashboard/src/app/actions/scan.ts\",\n \"exportedName\": \"scanSkills\"\n }\n },\n \"edge\": {},\n \"encryptionKey\": \"SqrOAFL33hn1oU6PmMmTs+wRH32ZInZ6JVXf1vD1eEg=\"\n}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"node": {
|
|
3
|
-
"
|
|
3
|
+
"408bcc070d3a0ae02e295c41efced8d67b30485f41": {
|
|
4
4
|
"workers": {
|
|
5
5
|
"app/cron/page": {
|
|
6
6
|
"moduleId": 80202,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"filename": "apps/dashboard/src/app/actions/scan.ts",
|
|
11
11
|
"exportedName": "scanCron"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"4087e94ba8140ed0e83175a5587e1a299c466814c6": {
|
|
14
14
|
"workers": {
|
|
15
15
|
"app/skills/page": {
|
|
16
16
|
"moduleId": 28111,
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"edge": {},
|
|
25
|
-
"encryptionKey": "
|
|
25
|
+
"encryptionKey": "SqrOAFL33hn1oU6PmMmTs+wRH32ZInZ6JVXf1vD1eEg="
|
|
26
26
|
}
|