@hivemagnus/magnus-ui 1.1.13 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/app/apps/dashboard/.next/BUILD_ID +1 -1
- package/dist/app/apps/dashboard/.next/app-path-routes-manifest.json +0 -5
- 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/routes-manifest.json +0 -30
- package/dist/app/apps/dashboard/.next/server/app/_global-error/page.js +4 -4
- package/dist/app/apps/dashboard/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/auth/hive/callback/route.js +6 -6
- package/dist/app/apps/dashboard/.next/server/app/api/auth/hive/callback/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/auth/hive/configured/route.js +4 -5
- package/dist/app/apps/dashboard/.next/server/app/api/auth/hive/configured/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/auth/hive/start/route.js +4 -5
- package/dist/app/apps/dashboard/.next/server/app/api/auth/hive/start/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/auth/login/route.js +5 -6
- package/dist/app/apps/dashboard/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/auth/logout/route.js +8 -8
- package/dist/app/apps/dashboard/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/auth/me/route.js +3 -4
- package/dist/app/apps/dashboard/.next/server/app/api/auth/me/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/control-nodes/[id]/route.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/control-nodes/[id]/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/control-nodes/migrate/route.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/control-nodes/migrate/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/control-nodes/route.js +3 -3
- package/dist/app/apps/dashboard/.next/server/app/api/control-nodes/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/federation/route.js +8 -9
- package/dist/app/apps/dashboard/.next/server/app/api/federation/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/health/route.js +4 -4
- package/dist/app/apps/dashboard/.next/server/app/api/health/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/hermes/dashboard/[[...path]]/route.js +10 -11
- package/dist/app/apps/dashboard/.next/server/app/api/hermes/dashboard/[[...path]]/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/hive-router/dashboard/[[...path]]/route.js +4 -5
- package/dist/app/apps/dashboard/.next/server/app/api/hive-router/dashboard/[[...path]]/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/proxy/[...path]/route.js +7 -8
- package/dist/app/apps/dashboard/.next/server/app/api/proxy/[...path]/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/close/route.js +8 -8
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/close/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/input/route.js +8 -8
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/input/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/open/route.js +10 -11
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/open/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/resize/route.js +8 -8
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/resize/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/stream/route.js +5 -5
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/stream/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api-docs/page.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +6 -6
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +3 -3
- 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/icon.svg/route.js +1 -1
- package/dist/app/apps/dashboard/.next/server/app/icon.svg/route.js.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/incidents/page.js +6 -6
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- 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 +6 -6
- 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 +2 -2
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +5 -5
- 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 +6 -6
- 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 +6 -6
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +6 -6
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/app-paths-manifest.json +0 -5
- package/dist/app/apps/dashboard/.next/server/chunks/{[externals]__0l4y89lfm51h_._.js → [externals]__0257ezcepp54t._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/{[externals]__1-md0e9mkzms3._.js → [externals]__0gzx4v9nj22ao._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__0l87g6k2t5rzj._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/{[externals]__0s5d7qbbgsrbp._.js → [externals]__0lufsyh_0gqup._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/{[externals]__08j7y99hz37g-._.js → [externals]__17ivo_81u-3-2._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__1dwmssjt9m0d5._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__1fs7dah6ydqqd._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/{[externals]__1ke3390r2lfb7._.js → [externals]__1gpib58wvc0g_._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__1jfj7isl6nfj_._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__1u4ndr0lut-gw._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__1z1kqis8omrz7._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/{[root-of-the-server]__002uuaad37fgd._.js → [root-of-the-server]__0t7esohym6wp4._.js} +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/{[root-of-the-server]__0jo0_v4a3iv6x._.js → [root-of-the-server]__0ukv29ge35cqp._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__0ywmf3079vsm1._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1-z231__iok1s._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__10wci19qwvbv3._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__13up3mg7dbzn6._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1c5n13hsoabkh._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1kg-l8v0fxrj3._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/{[root-of-the-server]__1q7qiwntinmxz._.js → [root-of-the-server]__1nub0ddapknlw._.js} +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1p6m7-_a781eq._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/{[root-of-the-server]__0tvu-qqx2mw-8._.js → [root-of-the-server]__1p7rfabpjl1w9._.js} +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1wpecdfs3qe1s._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/_0ti6qpnzqaoee._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_1bnwf9dhenncq._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/apps_dashboard_src_instrumentation_ts_0c-s9elb23l6h._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/apps_dashboard_src_lib_auth-constants_ts_1mm7vz_0mh-gu._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/apps_dashboard_src_lib_terminal-sessions_ts_142v3lhc8ama8._.js +4 -4
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_0_mv4bximoofw._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_0u9pfz6tlfjqv._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_1ovxb0oub71q-._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0lyyuta575y4c._.js → [root-of-the-server]__0-8y2ft5gi7ho._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0n9zeiqvm6w8g._.js → [root-of-the-server]__0072bik_zyvuk._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0hxmb55osdqpc._.js → [root-of-the-server]__0112r8tndypmy._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__05cd1oq0v3yzg._.js → [root-of-the-server]__01z86atsfgouz._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0c8lqnjnsgsrt._.js → [root-of-the-server]__0278xh6fxduzw._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__12r7996-2c6t_._.js → [root-of-the-server]__036zs-5_yuyxb._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0nz2le326pell._.js → [root-of-the-server]__03r3pbzpvn80y._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1n8o3l6ciipzm._.js → [root-of-the-server]__041ccocdmkgg6._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1xjrbdi2jn6ud._.js → [root-of-the-server]__06giq9g4me8eh._.js} +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0h5dzm0rlx_z1._.js → [root-of-the-server]__06ssj8n_ian_9._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1bjfgje0sikwn._.js → [root-of-the-server]__07oxk5oalrq8i._.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]__1kwvcchezlga2._.js → [root-of-the-server]__0ac_glv9qg7_s._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1pl_qm17zc1kr._.js → [root-of-the-server]__0chs_ghqf1ihe._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1njfzu2rrrels._.js → [root-of-the-server]__0d9d-dh1yx1hi._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1md9il303fayo._.js → [root-of-the-server]__0ewkfypbfusfk._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1s57d_puuz3z0._.js → [root-of-the-server]__0g8bkchofl2-r._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1gulsn--jfekj._.js → [root-of-the-server]__0hqhb23em35gm._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__09i9bfhdanr1-._.js → [root-of-the-server]__0iw8wbnpx0-ny._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0e-lewk9dxjx_._.js → [root-of-the-server]__0jqfexwl21jtm._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1f3odf972ocy5._.js → [root-of-the-server]__0ka88eh7v1c6k._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1kdv551v6bnx7._.js → [root-of-the-server]__0kimthfi8yo91._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1b7i1bw4ejfbc._.js → [root-of-the-server]__0lte6rpogn44m._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__16q4-tbu02sit._.js → [root-of-the-server]__0m74tldgpzxjy._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__20-vengdv94k0._.js → [root-of-the-server]__0pnutls6_8lle._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1sf37s9j4pls1._.js → [root-of-the-server]__0qioz334gz2yb._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1k6ttupiwnfcy._.js → [root-of-the-server]__0qtv2uoutzl-3._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0fd124732a296._.js → [root-of-the-server]__0s8_75r7q5ncn._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0128_ze9pmztw._.js → [root-of-the-server]__0s_a6o17v27n8._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1m-u4vj1e4vqm._.js → [root-of-the-server]__0u4u25c8d4au2._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1_jd4vjimy0hp._.js → [root-of-the-server]__0vsd8ezb2wh-q._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1jf1vrvlq098r._.js → [root-of-the-server]__0x67wrk-d31vw._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0leq5kd15xbdj._.js → [root-of-the-server]__0z55yk9383ji4._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1jxl2utrwn52u._.js → [root-of-the-server]__1-h1t4i4zgqk_._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1t18gl2vd5brz._.js → [root-of-the-server]__105kpqp7-ylav._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0vobkt4r9l8at._.js → [root-of-the-server]__10wimxdiuhwkh._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0fula_8fynly7._.js → [root-of-the-server]__11dfa-8pfbhwz._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1jmmqsxi2gs6w._.js → [root-of-the-server]__11gete_1eto-a._.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/{[root-of-the-server]__05oh4362a8pf-._.js → [root-of-the-server]__12ez0gk_feqb-._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1wu7_ahm9w8yo._.js → [root-of-the-server]__12rw5-k-87pcu._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1paaswnix_nxd._.js → [root-of-the-server]__150z4kg7b_lzo._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1vxz67uivrc4-._.js → [root-of-the-server]__161e6kss8f2-u._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1t7zyqxcumt4u._.js → [root-of-the-server]__1710ly9z8j17n._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1xfbgvp27t8yu._.js → [root-of-the-server]__1ahzgkyahgmyu._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1d9__nvvrx_0v._.js → [root-of-the-server]__1bbyh10jp8j2x._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0ht0ocgz-d31c._.js → [root-of-the-server]__1cmuf8lak2vgu._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0l_40ku91gj06._.js → [root-of-the-server]__1cn39fmih92c0._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1ul0ws_0f4xx-._.js → [root-of-the-server]__1eg2b5aisrnx2._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1d31kjtn1miut._.js → [root-of-the-server]__1esvp2dhqc7wf._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0o-7qp27a3xh8._.js → [root-of-the-server]__1fbbgiqn6yq7g._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0ixmtfpw-q0ip._.js → [root-of-the-server]__1hcflyni8tu-k._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0xet7wknh2e3e._.js → [root-of-the-server]__1hvw-xurgk_w7._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0i-4cjf683jae._.js → [root-of-the-server]__1jj4lq1rlrw7m._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1583112m1vnmh._.js → [root-of-the-server]__1kzh8p2efekf5._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__08qjsqx5xg5sp._.js → [root-of-the-server]__1m5l6647jj0uj._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1qz7i1r5-orql._.js → [root-of-the-server]__1mfgpnyml6wjw._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0vh7o1nydgvec._.js → [root-of-the-server]__1uiv7zid6iqiw._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1x5meaufjq2k7._.js → [root-of-the-server]__1z4qvf1ek2qp1._.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_roles_roles-client_tsx_1ivvp_kqt5io0._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_security-fusion_page_tsx_0d314q7yh6fx8._.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/functions-config-manifest.json +1 -6
- package/dist/app/apps/dashboard/.next/server/instrumentation.js +1 -1
- package/dist/app/apps/dashboard/.next/server/middleware-build-manifest.js +3 -3
- package/dist/app/apps/dashboard/.next/server/middleware.js +1 -1
- 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/0ercz8dn1s4v0.js +4 -0
- package/dist/app/apps/dashboard/.next/static/chunks/{19b_9hkf9b8w5.js → 19r460os_h04_.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{0edaqoydr6yss.js → 34kjyfaw5u2xm.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{2_lg4q5hk9xpw.js → 3p1snl20jh4fy.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/3ttfy0pu3se2-.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/{42qz-4ym270g4.js → 456iu476-9vw_.js} +1 -1
- package/dist/app/apps/dashboard/package.json +2 -2
- package/dist/app/apps/dashboard/runtime-resource-participant.mjs +2 -27
- package/dist/app/apps/dashboard/server.js +1 -1
- package/package.json +2 -2
- package/dist/app/apps/dashboard/.next/server/app/api/internal/resource-enrollment/drain/route/app-paths-manifest.json +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/internal/resource-enrollment/drain/route/build-manifest.json +0 -12
- package/dist/app/apps/dashboard/.next/server/app/api/internal/resource-enrollment/drain/route/server-reference-manifest.json +0 -4
- package/dist/app/apps/dashboard/.next/server/app/api/internal/resource-enrollment/drain/route.js +0 -9
- package/dist/app/apps/dashboard/.next/server/app/api/internal/resource-enrollment/drain/route.js.map +0 -5
- package/dist/app/apps/dashboard/.next/server/app/api/internal/resource-enrollment/drain/route.js.nft.json +0 -1
- package/dist/app/apps/dashboard/.next/server/app/api/internal/resource-enrollment/drain/route_client-reference-manifest.js +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/join/route/app-paths-manifest.json +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/join/route/build-manifest.json +0 -12
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/join/route/server-reference-manifest.json +0 -4
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/join/route.js +0 -14
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/join/route.js.map +0 -5
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/join/route.js.nft.json +0 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/join/route_client-reference-manifest.js +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/promote/route/app-paths-manifest.json +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/promote/route/build-manifest.json +0 -12
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/promote/route/server-reference-manifest.json +0 -4
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/promote/route.js +0 -15
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/promote/route.js.map +0 -5
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/promote/route.js.nft.json +0 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/promote/route_client-reference-manifest.js +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/share/route/app-paths-manifest.json +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/share/route/build-manifest.json +0 -12
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/share/route/server-reference-manifest.json +0 -4
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/share/route.js +0 -15
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/share/route.js.map +0 -5
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/share/route.js.nft.json +0 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/share/route_client-reference-manifest.js +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/ws/route/app-paths-manifest.json +0 -3
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/ws/route/build-manifest.json +0 -12
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/ws/route/server-reference-manifest.json +0 -4
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/ws/route.js +0 -8
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/ws/route.js.map +0 -5
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/ws/route.js.nft.json +0 -1
- package/dist/app/apps/dashboard/.next/server/app/api/terminal/ws/route_client-reference-manifest.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/044u_dashboard__next-internal_server_app_api_terminal_ws_route_actions_1s-ralplyup06.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/0uzl_server_app_api_internal_resource-enrollment_drain_route_actions_1__bfrprhb_gi.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/1vk4__next-internal_server_app_api_terminal_join_route_actions_1ddl5bm5x-29f.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/1vk4__next-internal_server_app_api_terminal_promote_route_actions_1xc9b5gotsbh2.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/1vk4__next-internal_server_app_api_terminal_share_route_actions_1_9kypm7sm7jr.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__07125xgxxkrmn._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__0o-3eqbrxp73c._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__0yh7awh74vlk6._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__13c6h55dkc77o._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__1ljkeas3ips49._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]__1v63fvy5rgicz._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[externals]_node_crypto_1kn79-7xl4-5u._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__0--rxyhflqsbo._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__0-knu9bydwbtz._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__06wc5n9u6d01v._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__089rr-xrs6h75._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__0_o12i0lz-vqn._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__0u78z-wir0ch1._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__0us-jb6ivzh6v._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1-i40j-a5fvgn._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__10ehhrgboegrr._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__12syybvws891m._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__13gid0g7izgib._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__13sz5u4ns29is._.js +0 -146
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1c8lf7j2769rc._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1i71tta3bd-6m._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1l8x7rgd8-_sp._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__1sjxxxibwo1v4._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/_00ln_4foby9k6._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/_0jpo8wzqrpdsu._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/_158j5k3z37xqq._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/_1pyikdwas349f._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/_1vpikd37nriwr._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/apps_dashboard_runtime-environment_mjs_06qgee2jm-_wh._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/apps_dashboard_runtime-integrations_mjs_0onv4q8d3fi3d._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/apps_dashboard_runtime-resource-participant_mjs_0cih22i38wh10._.js +0 -3
- package/dist/app/apps/dashboard/.next/static/chunks/1_dc7qj6cn34y.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/1aadj64xx7l2n.js +0 -4
- /package/dist/app/apps/dashboard/.next/static/{rf6tA8yByTxf1lWCAt31u → 24AiYFyjaUGx2yS4XkihB}/_buildManifest.js +0 -0
- /package/dist/app/apps/dashboard/.next/static/{rf6tA8yByTxf1lWCAt31u → 24AiYFyjaUGx2yS4XkihB}/_clientMiddlewareManifest.js +0 -0
- /package/dist/app/apps/dashboard/.next/static/{rf6tA8yByTxf1lWCAt31u → 24AiYFyjaUGx2yS4XkihB}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{"use strict";module.exports=[33666,47515,a=>{var b=a.i(87924),c=a.i(90702),d=a.i(58299),e=a.i(8884);let f={SELF_UPGRADE_INTEGRITY:{class:"release",stopsRun:!0,cause:"The downloaded tarball does not match the pinned npm integrity.",remedy:"Do not retry. Check the registry or MAGNUS_AGENT_UPGRADE_SOURCE_DIR, and the integrity passed to the run."},SELF_UPGRADE_SOURCE:{class:"release",stopsRun:!0,cause:"The tarball is missing from MAGNUS_AGENT_UPGRADE_SOURCE_DIR.",remedy:"Copy the exact tarball to that directory on the nodes, then retry."},SELF_UPGRADE_FAILED:{class:"release",cause:"The package itself failed on the node: a bad tarball, an install error, missing provenance or a smoke test that failed or hung. An agent older than 1.1.8 also reports environment causes this way.",remedy:"Read the detail and the agent log. If several nodes fail the same way, the release is at fault."},SELF_UPGRADE_REVERTED:{class:"release",cause:"The new version crashed or stayed silent during its trial, and the launcher switched back.",remedy:"Read the reason on the node and in the agent log. To try again, retry with allowRetryReverted (--retry-reverted)."},CONFIRM_TIMEOUT:{class:"release",cause:"The agent accepted the request, but the new version was not confirmed within its trial window.",remedy:"Read the agent log on the node. A later report for this request is still recorded in the run."},AGENT_SILENT:{class:"release",cause:"The agent accepted the request and then stopped sending heartbeats.",remedy:"Check the service on the node. The launcher switches back by itself if it is running."},MUTATION_OUTCOME_UNKNOWN:{class:"node",ambiguous:!0,cause:"The request was sent and no usable answer came back.",remedy:"The run keeps watching the node by request id. If it never reports, check the node, then reconcile the lease of the request (agent-upgrade-<requestId>)."},MANAGED_MUTATION_UNCERTAIN:{class:"node",ambiguous:!0,cause:"The agent cannot say whether a managed request ran. Any version answers this when a handler failed after it may have started; an agent older than 1.1.8 also answers it for every refusal, whatever the real cause. The command lease stays unknown and blocks later managed requests on this node.",remedy:"Read the agent log for the real cause. If the agent holds a receipt for the command (agent-upgrade-<requestId>), settle it with signed evidence: POST /api/v1/commands/<id>/reconcile-resource. If it holds none, an agent older than 1.1.8 offers no way out: upgrade that agent by hand on the node, after which the readiness monitor or `magnus-server agents doctor --heal` can settle the lease. If the cause was a stale fence, first run `magnus-server agents fence NODE VALUE`, or the next request fails the same way."},OUTCOME_UNKNOWN:{class:"node",ambiguous:!0,cause:"The agent ledger holds an unresolved receipt for this command.",remedy:"Inspect the receipt and reconcile it with signed evidence (docs/COMMAND_RESOURCE_LEASES.md)."},RUN_INTERRUPTED:{class:"node",ambiguous:!0,cause:"The server stopped watching this node when the run was interrupted.",remedy:"A later report is recorded in the run. If the node does not report, retry it."},SELF_UPGRADE_ENV_NETWORK:{class:"node",transient:!0,cause:"The node could not reach the registry while fetching the new version.",remedy:"Check the path from the node to the registry, or use MAGNUS_AGENT_UPGRADE_SOURCE_DIR, then retry it."},AGENT_UNREACHABLE:{class:"node",transient:!0,cause:"The server could not open a connection to the agent.",remedy:"Check that the agent is running and that its address and port in the inventory are correct."},SELF_UPGRADE_BUSY:{class:"node",transient:!0,cause:"The agent is already staging an upgrade or another process holds its upgrade lock.",remedy:"Wait for it to finish, then retry the node."},RESOURCE_BUSY:{class:"node",transient:!0,cause:"Another command owns the single execution slot on the node.",remedy:"Wait for the command to finish, then retry the node."},RESOURCE_LEASE_CONFLICT:{class:"node",transient:!0,cause:"The server holds another unsettled command lease for the node.",remedy:"Wait for it to settle. If it stays `unknown`, run `magnus-server agents doctor --heal` or reconcile it."},ENROLLMENT_AUTHORITY_UNAVAILABLE:{class:"node",transient:!0,cause:"The agent could not reach the server to confirm its enrollment.",remedy:"Check the path from the node to the server (CONTROL_API_URL, TLS trust)."},STALE_FENCE:{class:"node",transient:!0,cause:"The agent holds a resource fence at least as high as the one the server sent, and refused without running anything.",remedy:"The server repairs this by itself by moving its generation up, and tries the node again. Nothing to do unless the problem persists."},LEASE_EXPIRED:{class:"node",transient:!0,cause:"The command lease expired before the agent could start it; nothing ran.",remedy:"Retry the node. If this repeats, compare the clocks of the node and the server."},NOT_DISPATCHED:{class:"node",transient:!0,cause:"The server did not send the request.",remedy:"Read the detail, then retry the node."},CHECK_FAILED:{class:"node",transient:!0,cause:"The server could not check this node right before asking it, so it did not ask.",remedy:"Read the detail, usually a database or Redis problem on the server, then retry the node."},AGENT_SILENT_AFTER_LOST_REPLY:{class:"node",ambiguous:!0,cause:"The request may or may not have arrived, and the agent has stopped sending heartbeats.",remedy:"Check the service on the node. A later report for this request is still recorded in the run."},FENCE_UNREPORTED:{class:"node",cause:"This agent is older than 1.1.8, has handled managed requests before, and cannot say what fence it holds. If that fence is ahead of the server, its request fails as MANAGED_MUTATION_UNCERTAIN and strands a lease.",remedy:"Before the wave, read .magnus/command-receipts/fence-*.json on the node and run `magnus-server agents fence NODE VALUE`. Nothing to do if the fence is not ahead."},LEDGER_MISSING:{class:"node",cause:'The agent has no command ledger, so its "no receipt" proves nothing about a lease held for it. The ledger may have moved, or the install may have been rebuilt.',remedy:"Check AGENT_INSTALL_DIR and restore .magnus/command-receipts if it moved; the lease then settles by itself. If it is gone, Magnus has no way to settle the lease: establish by hand what the command did, then change the lease row in the database yourself."},LEDGER_NO_FENCE:{class:"node",cause:"The agent ledger holds neither a fence nor this node's enrollment marker, so nothing shows it is the ledger this command would have used.",remedy:"Check whether .magnus/command-receipts was replaced, and restore it if so; the lease then settles by itself. If it cannot be restored, Magnus has no way to settle the lease: establish by hand what the command did, then change the lease row in the database yourself."},LEDGER_EVIDENCE_INCONSISTENT:{class:"node",cause:"The agent ledger accepted this lease's fence, but holds no receipt, no claim and no record of a failed admission for it. Either a receipt was removed, or an admission failed on an agent build that kept no such record.",remedy:"Inspect .magnus/command-receipts on the node and the agent log around the lease's time. Magnus has no way to settle the lease: establish by hand what the command did, then change the lease row in the database yourself."},ENROLLMENT_MARKER_UNKNOWN:{class:"node",cause:"The agent could not read its managed-enrollment marker, so a mismatch cannot be ruled out.",remedy:"Check .magnus/command-receipts/managed-enrollment.json on the node: its mode, owner and content."},SELF_UPGRADE_ENV_TLS:{class:"node",cause:"npm would not trust the registry's certificate on this node: a wrong clock, an expired certificate or an intercepting proxy.",remedy:"Check the clock on the node and its CA trust for the registry, then retry it."},SELF_UPGRADE_ENV_AUTH:{class:"node",cause:"The registry refused this node's request (401 or 403).",remedy:"Check the npm credentials and registry settings on the node, or use MAGNUS_AGENT_UPGRADE_SOURCE_DIR, then retry it."},SELF_UPGRADE_ENV_RESOURCE:{class:"node",cause:"The node ran out of memory or file handles, npm was killed, or a file was busy. A killed npm is told apart by how the process ended; a lifecycle script killed inside npm still reads as a package fault.",remedy:"Check the memory on the node and its kernel log, then retry it."},RETRY_HELD_SUSPECTED:{class:"node",cause:"The run this one retries stopped because older agents answered ambiguously with nothing confirmed. Each further attempt on an older agent can strand another lease, so this retry leaves them alone.",remedy:"Read the agent log of the nodes that answered, and run `magnus-server agents fence NODE VALUE` where a fence is ahead. Then retry with acknowledgeSuspicion (--acknowledge-suspicion)."},SELF_UPGRADE_ENV_DISK:{class:"node",cause:"The node ran out of disk space or quota, or hit an I/O error, while installing the new version.",remedy:"Free disk space on the node, then retry it."},SELF_UPGRADE_ENV_ACCESS:{class:"node",cause:"The node refused a write while installing the new version.",remedy:"Run `sudo magnus-agent install-service` again on the node, which repairs ownership, then retry it."},RESOURCE_ENROLLMENT_REQUIRED:{class:"node",cause:"Admission refused the request because the node's resource enrollment is not complete.",remedy:"Complete the node's resource enrollment (docs/COMMAND_RESOURCE_LEASES.md)."},FENCE_OVERFLOW:{class:"node",cause:"The agent reports a resource fence above the highest value the server will adopt.",remedy:"Stop the agent, inspect .magnus/command-receipts/fence-*.json on the node, and repair that file by hand. The server does not change its generation."},FENCE_INVALID:{class:"node",cause:"The agent reports a resource fence that is not a decimal value for its own node.",remedy:"Inspect .magnus/command-receipts/fence-*.json on the node."},FENCE_AHEAD:{class:"node",cause:"The agent holds a resource fence above the server generation, so managed requests would be refused.",remedy:"Nothing to do for an upgrade run: it repairs this at its start. `magnus-server agents doctor --heal` repairs it now."},IDEMPOTENCY_CONFLICT:{class:"node",cause:"The agent already has a receipt for this command identifier with different input.",remedy:"Retry the node, which uses a new identifier, and report the conflict if it repeats."},LEDGER_UNAVAILABLE:{class:"node",cause:"The agent could not read or write its command ledger.",remedy:"Check ownership, mode 0700 and free space of .magnus/command-receipts on the node."},LEDGER_UNRESOLVED:{class:"node",cause:"The agent ledger holds a command with an unresolved outcome, which blocks every later managed request.",remedy:"Reconcile that command with signed evidence (docs/COMMAND_RESOURCE_LEASES.md)."},LEASE_HELD:{class:"node",cause:"A command lease on the node is reserved, running or unknown.",remedy:"Wait for it to finish. On a 1.1.8 agent, a lease stuck `unknown` with no receipt is settled by the readiness monitor, a run, or `magnus-server agents doctor --heal`; one with a receipt needs signed reconciliation. On an older agent, see MANAGED_MUTATION_UNCERTAIN."},WORK_HELD:{class:"node",cause:"Participant work, such as a console terminal or SSH session, is still held on the node.",remedy:"Finish or reconcile that work, then retry the node."},UNMANAGED_MUTATION:{class:"node",suspectable:!0,cause:"The agent is enrolled for managed requests and refused a request without a valid claim.",remedy:"Complete the node's resource enrollment on the server (docs/COMMAND_RESOURCE_LEASES.md), or upgrade the agent by hand."},RESOURCE_CLAIM_INVALID:{class:"node",cause:"The server would not confirm the agent's claim for this request.",remedy:"Check the enrollment and inventory host name of the node, then retry."},RESOURCE_TARGET_INVALID:{class:"node",cause:"Admission refused the node: its inventory address changed or its health is not fresh.",remedy:"Wait for a fresh heartbeat, or repair the inventory address."},ADMISSION_FENCE_CLOSED:{class:"node",cause:"A server release closed admission to this node.",remedy:"Release the admission fence (POST /api/v1/resource-leases/admission/<nodeId>/release)."},ENROLLMENT_MISSING:{class:"node",cause:"Resource leases apply to this node but it is not enrolled.",remedy:"Enroll the node (docs/COMMAND_RESOURCE_LEASES.md)."},ENROLLMENT_DRAINING:{class:"node",cause:"The node's resource enrollment is stuck in draining.",remedy:"Finish the drain: POST /api/v1/resource-leases/enrollment/<nodeId>/complete."},ENROLLMENT_HOST_MISMATCH:{class:"node",cause:"The enrollment names another host than the inventory.",remedy:"Correct the host name of the node in the inventory."},ENROLLMENT_INCOMPLETE:{class:"node",cause:"The node's resource enrollment is not complete.",remedy:"Enroll the node (docs/COMMAND_RESOURCE_LEASES.md)."},ENROLLMENT_MARKER_MISMATCH:{class:"node",cause:"The agent holds a local managed-enrollment marker the server does not share.",remedy:"Complete the node's resource enrollment on the server (docs/COMMAND_RESOURCE_LEASES.md), or upgrade the agent by hand."},NODE_OFFLINE:{class:"node",transient:!0,cause:"The node is offline or has no recent heartbeat.",remedy:"Bring the agent back, then retry the node."},NODE_NOT_FOUND:{class:"node",cause:"The node is no longer in the inventory.",remedy:"Register the node again if it should be managed."},VERSION_UNKNOWN:{class:"node",cause:"The agent has not reported a usable version.",remedy:"Wait for a heartbeat, or upgrade the agent by hand."},SELF_UPGRADE_TIMEOUT:{class:"node",cause:"An npm step of the upgrade did not finish in its time budget on the node. A new version that hangs when it is run reports SELF_UPGRADE_FAILED instead. A lifecycle script that hangs inside npm also ends up here: it cannot be told apart.",remedy:"Check the network and disk speed of the node, then retry it. If every node hangs the same way, suspect the release."},SELF_UPGRADE_UNAVAILABLE:{class:"node",cause:"The agent cannot upgrade itself now: its layout, launcher, directories or npm are not usable.",remedy:"Read the detail. Running `sudo magnus-agent install-service` once on the node usually repairs it."},SELF_UPGRADE_LAUNCHER:{class:"node",suspectable:!0,cause:"The new version needs a newer launcher than the node has.",remedy:"Run `sudo magnus-agent install-service` once on the node."},SELF_UPGRADE_ENGINE:{class:"node",suspectable:!0,cause:"The new version does not support the Node.js on this node.",remedy:"Upgrade Node.js on the node."},SELF_UPGRADE_PACKAGE:{class:"node",suspectable:!0,cause:"The agent refused to install a package other than magnus-agent.",remedy:"Report this: the server sent an unexpected package name."},SELF_UPGRADE_REFUSED:{class:"node",suspectable:!0,cause:"The agent refused the version change.",remedy:"Read the detail. Crossing a major version is done by hand."},PREFLIGHT_NOT_WRITABLE:{class:"node",cause:"The agent cannot write to its install directory.",remedy:"Run `sudo magnus-agent install-service` again on the node, which repairs ownership."},PREFLIGHT_DISK_LOW:{class:"node",cause:"The install directory has less free space than an upgrade needs.",remedy:"Free disk space on the node."},PREFLIGHT_NPM:{class:"node",cause:"npm is missing on the node or too old.",remedy:"Install npm beside the agent's Node.js, or set MAGNUS_AGENT_NPM."},PREFLIGHT_FROM_INCOMPLETE:{class:"node",cause:"The running version is not complete under versions/, so a failed upgrade could not switch back.",remedy:"Run `sudo magnus-agent install-service` again on the node."},PREFLIGHT_ENGINE:{class:"node",cause:"The target version does not support the Node.js on this node.",remedy:"Upgrade Node.js on the node."},NOT_REACHED:{class:"node",cause:"The run ended before it reached this node.",remedy:"Retry the run, once what ended it is dealt with. This node was not asked and did not change."},RUN_STOPPED:{class:"node",cause:"Someone stopped the run before it reached this node.",remedy:"Retry the run when you want this node upgraded. This node was not asked and did not change."},NOT_ELIGIBLE:{class:"node",cause:"This node became ineligible at its turn, for a reason without a code of its own.",remedy:"Read the detail, then retry the node."},ALREADY_CURRENT:{class:"node",informational:!0,cause:"The node already runs the target version.",remedy:"Nothing to do."},SELF_UPGRADE_CURRENT:{class:"node",informational:!0,cause:"The agent already runs the target version.",remedy:"Nothing to do."},DOWNGRADE:{class:"node",informational:!0,cause:"The node runs a newer version than the target.",remedy:"Nothing to do, or choose a newer target."},MAJOR_VERSION:{class:"node",informational:!0,cause:"The change crosses a major version.",remedy:"Upgrade this node by hand."},NOT_SELF_UPGRADABLE:{class:"node",informational:!0,cause:"This agent cannot upgrade itself: it is too old, or not set up with the launcher.",remedy:"Run `sudo magnus-agent install-service` once on the node."},PROTOCOL_TOO_OLD:{class:"node",informational:!0,cause:"The agent speaks an older self-upgrade protocol.",remedy:"Upgrade this agent by hand."},SELF_UPGRADE_DISABLED:{class:"node",informational:!0,cause:"An operator switched self-upgrade off on this node, or it runs in a container or the legacy layout.",remedy:"Nothing to do if that is intended. Otherwise set MAGNUS_AGENT_SELF_UPGRADE=true, pull a newer image, or run `sudo magnus-agent install-service` once."},UPGRADE_IN_PROGRESS:{class:"node",cause:"An upgrade is staged or on trial on this node, and it can still switch back.",remedy:"Wait for its trial to end, then retry the node if it did not confirm."},ALREADY_REVERTED:{class:"node",cause:"This node already switched back from this exact version.",remedy:"Read the reason. To try again, use allowRetryReverted (--retry-reverted)."},PREFLIGHT_UNAVAILABLE:{class:"node",informational:!0,cause:"An agent older than 1.1.8 has no preflight check; heartbeat data is used instead.",remedy:"Nothing to do: the agent gains the check when it is upgraded."},PREFLIGHT_UNREACHABLE:{class:"node",informational:!0,cause:"The preflight check got no answer. The node stays in the run, and dispatch decides.",remedy:"Nothing to do unless the node then fails with AGENT_UNREACHABLE."}},g={class:"node",unknown:!0,suspectable:!0,cause:"Unrecognised code: the agent or the server refused this node for a reason the catalogue does not list.",remedy:"Read the detail and the agent log, then retry the node. An agent newer than the server can cause this."};function h(a){return(a?f[a]:void 0)??g}async function i(a){let b=await (0,e.O)(a),c=(0,e.R)(b),d=b?.error?.code;return c?"string"!=typeof d||c.includes(d)?c:`${c} (${d})`:a instanceof Error?a.message:String(a)}let j=["failed","refused","skipped","requested","watching","ambiguous"];function k(a){return a&&"running"!==a.status?a.nodes.filter(a=>j.includes(a.state)).length+(a.excluded??[]).filter(a=>a.code&&!h(a.code).informational).length:0}function l(a){return a.problems.map(a=>`${a.code}: ${a.detail}. ${a.remedy}`).join("\n")}a.s(["c",0,function(a){return a?.response?.status===404},"b",0,function(a){return a.detail?a.code&&!a.detail.includes(a.code)?`${a.code}: ${a.detail}`:a.detail:a.code??null},"K",0,l,"V",0,function(a){return h(a).remedy},"w",0,k,"v",0,function(a){return k(a)>0},"P",0,function(a){switch(a.status){case"succeeded":return"Last run: succeeded";case"partial":return`Last run: partial, ${a.attention?.length??0} node(s) need attention`;case"failed":return a.suspectedRelease?"Last run: failed, a release problem is suspected but unproven":"Last run: failed, on evidence about the release";default:return`Last run: ${a.status}`}},"Q",0,function(a){let b=a.version===a.serverVersion?" (the agent version bundled with this server)":"",c=a.release&&!a.release.verified?`; not verified on the registry: ${a.release.reason??"unknown"}`:"";return`Target: magnus-agent ${a.version}${b}${a.prerelease?", a prerelease":""}${c}`},"s",0,i],47515),a.s(["x",0,function({readiness:a}){return a?.status!=="not-ready"?null:(0,b.jsx)("span",{title:l(a),"data-testid":"upgrade-readiness-badge",children:(0,b.jsxs)(d.t,{variant:"warning",children:[(0,b.jsx)(c.f,{className:"mr-1 inline h-3 w-3"}),"Upgrade blocked (",a.problems.length,")"]})})},"a",0,function({readiness:a}){return a?.status!=="not-ready"?null:(0,b.jsxs)("div",{className:"rounded border border-warning/40 bg-warning/10 px-3 py-2 text-[11px]","data-testid":"upgrade-readiness-panel",children:[(0,b.jsxs)("p",{className:"flex items-center gap-2 font-bold uppercase tracking-wider text-warning",children:[(0,b.jsx)(c.f,{className:"h-3.5 w-3.5"})," This node could not take an agent upgrade now"]}),(0,b.jsx)("ul",{className:"mt-2 space-y-2",children:a.problems.map(a=>(0,b.jsxs)("li",{children:[(0,b.jsxs)("p",{className:"font-medium text-text",children:[(0,b.jsx)("span",{className:"num",children:a.code}),": ",a.detail]}),(0,b.jsx)("p",{className:"text-text-muted",children:a.remedy})]},`${a.code}-${a.detail}`))})]})}],33666)},90363,7574,a=>{var b=a.i(64831);let c={name:"refresh-ccw-dot",size:24,node:[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};c.node;let d=(0,b.f)(c);a.s(["f",0,d],90363);var e=a.i(87924),f=a.i(72131),g=a.i(68415),h=a.i(85063),i=a.i(46997),j=a.i(34532),k=a.i(75160);a.s(["E",0,function({open:a,node:b,onClose:c,onSaved:d}){let[l,m]=(0,f.useState)([]),[n,o]=(0,f.useState)(""),[p,q]=(0,f.useState)(!0),[r,s]=(0,f.useState)(!1),[t,u]=(0,f.useState)(""),[v,w]=(0,f.useState)(!1);(0,f.useEffect)(()=>{a&&(u(""),o(b?.role?.id??""),q(!0),w(!0),(async()=>{try{let a=await i.f.roles.list();m(a.data??[])}catch{u("Failed to load roles")}finally{w(!1)}})())},[a,b?.role?.id]);let x=async()=>{if(b){s(!0),u("");try{let a=b.role?.id;a&&a!==n&&await i.f.roles.unassign(a,{nodeIds:[b.id]}),n&&await i.f.roles.assign(n,{nodeIds:[b.id],defer:!p});let e=n?l.find(a=>a.id===n)??null:null;d(e),c()}catch(a){u(a instanceof Error?a.message:"Failed to assign role")}finally{s(!1)}}},y=async()=>{if(b?.role){s(!0),u("");try{await i.f.roles.unassign(b.role.id,{nodeIds:[b.id]}),d(null),c()}catch(a){u(a instanceof Error?a.message:"Failed to unassign role")}finally{s(!1)}}},z=()=>{u(""),s(!1),c()};return(0,e.jsx)(h.n,{open:a,onClose:z,title:b?.role?"Change Role":"Assign Role",description:b?`Node: ${b.name}`:"",icon:(0,e.jsx)(j.f,{className:"h-5 w-5 text-primary"}),children:(0,e.jsxs)("div",{className:"space-y-4",children:[v?(0,e.jsxs)("div",{className:"flex items-center gap-2 py-4 text-xs text-text-muted",children:[(0,e.jsx)(k.f,{className:"h-4 w-4 animate-spin"}),"Loading roles…"]}):0===l.length?(0,e.jsx)("p",{className:"text-xs text-text-muted py-4",children:"No roles found. Create a role first on the Roles page."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.G,{label:"Role",children:(0,e.jsxs)("select",{value:n,onChange:a=>o(a.target.value),className:h.N,children:[(0,e.jsx)("option",{value:"",children:"— No role —"}),l.map(a=>(0,e.jsx)("option",{value:a.id,children:a.name},a.id))]})}),n&&(0,e.jsxs)("label",{className:"flex items-center gap-2 text-xs cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:p,onChange:a=>q(a.target.checked),className:"rounded border-border"}),"Apply role immediately"]})]}),t&&(0,e.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:t}),(0,e.jsxs)("div",{className:"flex justify-between pt-2",children:[(0,e.jsx)("div",{children:b?.role&&(0,e.jsx)(g.K,{variant:"secondary",size:"sm",onClick:()=>void y(),disabled:r,children:"Unassign Role"})}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(g.K,{variant:"secondary",size:"sm",onClick:z,children:"Cancel"}),(0,e.jsx)(g.K,{size:"sm",onClick:()=>void x(),disabled:r||!n||0===l.length,icon:r?(0,e.jsx)(k.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:r?"Saving…":b?.role?"Change Role":"Assign Role"})]})]})]})})},"F",0,function({open:a,node:b,onClose:c,onSaved:d}){let[l,m]=(0,f.useState)(""),[n,o]=(0,f.useState)(""),[p,q]=(0,f.useState)(""),[r,s]=(0,f.useState)(!1),[t,u]=(0,f.useState)("");(0,f.useEffect)(()=>{if(b){m(b.name);try{let a=JSON.parse(b.tags);o(a.join(", "))}catch{o("")}q(b.status),u("")}},[b]);let v=async()=>{if(b&&l.trim()){s(!0),u("");try{let a=n.split(",").map(a=>a.trim()).filter(Boolean);await i.f.nodes.update(b.id,{name:l.trim(),tags:a,status:p.toUpperCase()}),d(),c()}catch(a){u(a instanceof Error?a.message:"Failed to update node")}finally{s(!1)}}},w=()=>{u(""),s(!1),c()};return(0,e.jsx)(h.n,{open:a,onClose:w,title:"Edit Node",description:b?`${b.hostname}`:"",icon:(0,e.jsx)(j.f,{className:"h-5 w-5 text-primary"}),children:(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsx)(h.G,{label:"Name",required:!0,children:(0,e.jsx)("input",{type:"text",value:l,onChange:a=>m(a.target.value),className:h.W})}),(0,e.jsx)(h.G,{label:"Status",children:(0,e.jsxs)("select",{value:p,onChange:a=>q(a.target.value),className:h.N,children:[(0,e.jsx)("option",{value:"ONLINE",children:"ONLINE"}),(0,e.jsx)("option",{value:"OFFLINE",children:"OFFLINE"}),(0,e.jsx)("option",{value:"DEGRADED",children:"DEGRADED"}),(0,e.jsx)("option",{value:"PROVISIONING",children:"PROVISIONING"}),(0,e.jsx)("option",{value:"MAINTENANCE",children:"MAINTENANCE"})]})}),(0,e.jsxs)(h.G,{label:"Tags",children:[(0,e.jsx)("input",{type:"text",value:n,onChange:a=>o(a.target.value),placeholder:"web, production, us-east",className:h.W}),(0,e.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated list of tags"})]}),t&&(0,e.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:t}),(0,e.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,e.jsx)(g.K,{variant:"secondary",size:"sm",onClick:w,children:"Cancel"}),(0,e.jsx)(g.K,{size:"sm",onClick:()=>void v(),disabled:r||!l.trim(),icon:r?(0,e.jsx)(k.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:r?"Saving…":"Save Changes"})]})]})})},"M",0,function({open:a,onClose:b,onRegistered:c}){let[d,l]=(0,f.useState)(""),[m,n]=(0,f.useState)(""),[o,p]=(0,f.useState)("4100"),[q,r]=(0,f.useState)("linux"),[s,t]=(0,f.useState)("x86_64"),[u,v]=(0,f.useState)(""),[w,x]=(0,f.useState)(!1),[y,z]=(0,f.useState)(""),A=async()=>{if(d.trim()&&m.trim()){x(!0),z("");try{let a=u.split(",").map(a=>a.trim()).filter(Boolean);await i.f.nodes.register({name:d.trim(),hostname:m.trim(),ipAddress:m.trim(),port:Number(o)||4100,os:q,arch:s,tags:a,agentVersion:"1.1.13"}),c(),B()}catch(a){z(a instanceof Error?a.message:"Failed to register node")}finally{x(!1)}}},B=()=>{l(""),n(""),p("4100"),r("linux"),t("x86_64"),v(""),z(""),x(!1),b()};return(0,e.jsx)(h.n,{open:a,onClose:B,title:"Register Node",description:"Manually register a node already running the agent",icon:(0,e.jsx)(j.f,{className:"h-5 w-5 text-primary"}),children:(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsx)(h.G,{label:"Node Name",required:!0,children:(0,e.jsx)("input",{type:"text",value:d,onChange:a=>l(a.target.value),placeholder:"web-server-01",className:h.W,autoFocus:!0})}),(0,e.jsx)(h.G,{label:"FQDN / Hostname",required:!0,children:(0,e.jsx)("input",{type:"text",value:m,onChange:a=>n(a.target.value),placeholder:"node-1.example.com",className:h.W})}),(0,e.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,e.jsx)(h.G,{label:"Port",children:(0,e.jsx)("input",{type:"number",value:o,onChange:a=>p(a.target.value),className:h.W})}),(0,e.jsx)(h.G,{label:"OS",children:(0,e.jsxs)("select",{value:q,onChange:a=>r(a.target.value),className:h.N,children:[(0,e.jsx)("option",{value:"linux",children:"Linux"}),(0,e.jsx)("option",{value:"darwin",children:"macOS"}),(0,e.jsx)("option",{value:"windows",children:"Windows"})]})}),(0,e.jsx)(h.G,{label:"Architecture",children:(0,e.jsxs)("select",{value:s,onChange:a=>t(a.target.value),className:h.N,children:[(0,e.jsx)("option",{value:"x86_64",children:"x86_64"}),(0,e.jsx)("option",{value:"aarch64",children:"aarch64"}),(0,e.jsx)("option",{value:"arm",children:"arm"})]})})]}),(0,e.jsxs)(h.G,{label:"Tags",children:[(0,e.jsx)("input",{type:"text",value:u,onChange:a=>v(a.target.value),placeholder:"web, production, us-east",className:h.W}),(0,e.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated"})]}),y&&(0,e.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:y}),(0,e.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,e.jsx)(g.K,{variant:"secondary",size:"sm",onClick:B,children:"Cancel"}),(0,e.jsx)(g.K,{size:"sm",onClick:()=>void A(),disabled:w||!d.trim()||!m.trim(),icon:w?(0,e.jsx)(k.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:w?"Registering…":"Register Node"})]})]})})}],7574)}]})();
|
|
1
|
+
(()=>{"use strict";module.exports=[33666,47515,a=>{var b=a.i(87924),c=a.i(90702),d=a.i(58299),e=a.i(8884);let f={SELF_UPGRADE_INTEGRITY:{class:"release",stopsRun:!0,cause:"The downloaded tarball does not match the pinned npm integrity.",remedy:"Do not retry. Check the registry or MAGNUS_AGENT_UPGRADE_SOURCE_DIR, and the integrity passed to the run."},SELF_UPGRADE_SOURCE:{class:"release",stopsRun:!0,cause:"The tarball is missing from MAGNUS_AGENT_UPGRADE_SOURCE_DIR.",remedy:"Copy the exact tarball to that directory on the nodes, then retry."},SELF_UPGRADE_FAILED:{class:"release",cause:"The package itself failed on the node: a bad tarball, an install error, missing provenance or a smoke test that failed or hung. An agent older than 1.1.8 also reports environment causes this way.",remedy:"Read the detail and the agent log. If several nodes fail the same way, the release is at fault."},SELF_UPGRADE_REVERTED:{class:"release",cause:"The new version crashed or stayed silent during its trial, and the launcher switched back.",remedy:"Read the reason on the node and in the agent log. To try again, retry with allowRetryReverted (--retry-reverted)."},CONFIRM_TIMEOUT:{class:"release",cause:"The agent accepted the request, but the new version was not confirmed within its trial window.",remedy:"Read the agent log on the node. A later report for this request is still recorded in the run."},AGENT_SILENT:{class:"release",cause:"The agent accepted the request and then stopped sending heartbeats.",remedy:"Check the service on the node. The launcher switches back by itself if it is running."},MUTATION_OUTCOME_UNKNOWN:{class:"node",ambiguous:!0,cause:"The request was sent and no usable answer came back.",remedy:"The run keeps watching the node by request id. If it never reports, check the node, then reconcile the lease of the request (agent-upgrade-<requestId>)."},MANAGED_MUTATION_UNCERTAIN:{class:"node",ambiguous:!0,cause:"The agent cannot say whether a managed request ran. Any version answers this when a handler failed after it may have started; an agent older than 1.1.8 also answers it for every refusal, whatever the real cause. The command lease stays unknown and blocks later managed requests on this node.",remedy:"Read the agent log for the real cause. If the agent holds a receipt for the command (agent-upgrade-<requestId>), settle it with signed evidence: POST /api/v1/commands/<id>/reconcile-resource. If it holds none, an agent older than 1.1.8 offers no way out: upgrade that agent by hand on the node, after which the readiness monitor or `magnus-server agents doctor --heal` can settle the lease. If the cause was a stale fence, first run `magnus-server agents fence NODE VALUE`, or the next request fails the same way."},OUTCOME_UNKNOWN:{class:"node",ambiguous:!0,cause:"The agent ledger holds an unresolved receipt for this command.",remedy:"Inspect the receipt and reconcile it with signed evidence (docs/COMMAND_RESOURCE_LEASES.md)."},RUN_INTERRUPTED:{class:"node",ambiguous:!0,cause:"The server stopped watching this node when the run was interrupted.",remedy:"A later report is recorded in the run. If the node does not report, retry it."},SELF_UPGRADE_ENV_NETWORK:{class:"node",transient:!0,cause:"The node could not reach the registry while fetching the new version.",remedy:"Check the path from the node to the registry, or use MAGNUS_AGENT_UPGRADE_SOURCE_DIR, then retry it."},AGENT_UNREACHABLE:{class:"node",transient:!0,cause:"The server could not open a connection to the agent.",remedy:"Check that the agent is running and that its address and port in the inventory are correct."},SELF_UPGRADE_BUSY:{class:"node",transient:!0,cause:"The agent is already staging an upgrade or another process holds its upgrade lock.",remedy:"Wait for it to finish, then retry the node."},RESOURCE_BUSY:{class:"node",transient:!0,cause:"Another command owns the single execution slot on the node.",remedy:"Wait for the command to finish, then retry the node."},RESOURCE_LEASE_CONFLICT:{class:"node",transient:!0,cause:"The server holds another unsettled command lease for the node.",remedy:"Wait for it to settle. If it stays `unknown`, run `magnus-server agents doctor --heal` or reconcile it."},ENROLLMENT_AUTHORITY_UNAVAILABLE:{class:"node",transient:!0,cause:"The agent could not reach the server to confirm its enrollment.",remedy:"Check the path from the node to the server (CONTROL_API_URL, TLS trust)."},STALE_FENCE:{class:"node",transient:!0,cause:"The agent holds a resource fence at least as high as the one the server sent, and refused without running anything.",remedy:"The server repairs this by itself by moving its generation up, and tries the node again. Nothing to do unless the problem persists."},LEASE_EXPIRED:{class:"node",transient:!0,cause:"The command lease expired before the agent could start it; nothing ran.",remedy:"Retry the node. If this repeats, compare the clocks of the node and the server."},NOT_DISPATCHED:{class:"node",transient:!0,cause:"The server did not send the request.",remedy:"Read the detail, then retry the node."},CHECK_FAILED:{class:"node",transient:!0,cause:"The server could not check this node right before asking it, so it did not ask.",remedy:"Read the detail, usually a database or Redis problem on the server, then retry the node."},AGENT_SILENT_AFTER_LOST_REPLY:{class:"node",ambiguous:!0,cause:"The request may or may not have arrived, and the agent has stopped sending heartbeats.",remedy:"Check the service on the node. A later report for this request is still recorded in the run."},FENCE_UNREPORTED:{class:"node",cause:"This agent is older than 1.1.8, has handled managed requests before, and cannot say what fence it holds. If that fence is ahead of the server, its request fails as MANAGED_MUTATION_UNCERTAIN and strands a lease.",remedy:"Before the wave, read .magnus/command-receipts/fence-*.json on the node and run `magnus-server agents fence NODE VALUE`. Nothing to do if the fence is not ahead."},LEDGER_MISSING:{class:"node",cause:'The agent has no command ledger, so its "no receipt" proves nothing about a lease held for it. The ledger may have moved, or the install may have been rebuilt.',remedy:"Check AGENT_INSTALL_DIR and restore .magnus/command-receipts if it moved; the lease then settles by itself. If it is gone, Magnus has no way to settle the lease: establish by hand what the command did, then change the lease row in the database yourself."},LEDGER_NO_FENCE:{class:"node",cause:"The agent ledger holds neither a fence nor this node's enrollment marker, so nothing shows it is the ledger this command would have used.",remedy:"Check whether .magnus/command-receipts was replaced, and restore it if so; the lease then settles by itself. If it cannot be restored, Magnus has no way to settle the lease: establish by hand what the command did, then change the lease row in the database yourself."},LEDGER_EVIDENCE_INCONSISTENT:{class:"node",cause:"The agent ledger accepted this lease's fence, but holds no receipt, no claim and no record of a failed admission for it. Either a receipt was removed, or an admission failed on an agent build that kept no such record.",remedy:"Inspect .magnus/command-receipts on the node and the agent log around the lease's time. Magnus has no way to settle the lease: establish by hand what the command did, then change the lease row in the database yourself."},ENROLLMENT_MARKER_UNKNOWN:{class:"node",cause:"The agent could not read its managed-enrollment marker, so a mismatch cannot be ruled out.",remedy:"Check .magnus/command-receipts/managed-enrollment.json on the node: its mode, owner and content."},SELF_UPGRADE_ENV_TLS:{class:"node",cause:"npm would not trust the registry's certificate on this node: a wrong clock, an expired certificate or an intercepting proxy.",remedy:"Check the clock on the node and its CA trust for the registry, then retry it."},SELF_UPGRADE_ENV_AUTH:{class:"node",cause:"The registry refused this node's request (401 or 403).",remedy:"Check the npm credentials and registry settings on the node, or use MAGNUS_AGENT_UPGRADE_SOURCE_DIR, then retry it."},SELF_UPGRADE_ENV_RESOURCE:{class:"node",cause:"The node ran out of memory or file handles, npm was killed, or a file was busy. A killed npm is told apart by how the process ended; a lifecycle script killed inside npm still reads as a package fault.",remedy:"Check the memory on the node and its kernel log, then retry it."},RETRY_HELD_SUSPECTED:{class:"node",cause:"The run this one retries stopped because older agents answered ambiguously with nothing confirmed. Each further attempt on an older agent can strand another lease, so this retry leaves them alone.",remedy:"Read the agent log of the nodes that answered, and run `magnus-server agents fence NODE VALUE` where a fence is ahead. Then retry with acknowledgeSuspicion (--acknowledge-suspicion)."},SELF_UPGRADE_ENV_DISK:{class:"node",cause:"The node ran out of disk space or quota, or hit an I/O error, while installing the new version.",remedy:"Free disk space on the node, then retry it."},SELF_UPGRADE_ENV_ACCESS:{class:"node",cause:"The node refused a write while installing the new version.",remedy:"Run `sudo magnus-agent install-service` again on the node, which repairs ownership, then retry it."},RESOURCE_ENROLLMENT_REQUIRED:{class:"node",cause:"Admission refused the request because the node's resource enrollment is not complete.",remedy:"Complete the node's resource enrollment (docs/COMMAND_RESOURCE_LEASES.md)."},FENCE_OVERFLOW:{class:"node",cause:"The agent reports a resource fence above the highest value the server will adopt.",remedy:"Stop the agent, inspect .magnus/command-receipts/fence-*.json on the node, and repair that file by hand. The server does not change its generation."},FENCE_INVALID:{class:"node",cause:"The agent reports a resource fence that is not a decimal value for its own node.",remedy:"Inspect .magnus/command-receipts/fence-*.json on the node."},FENCE_AHEAD:{class:"node",cause:"The agent holds a resource fence above the server generation, so managed requests would be refused.",remedy:"Nothing to do for an upgrade run: it repairs this at its start. `magnus-server agents doctor --heal` repairs it now."},IDEMPOTENCY_CONFLICT:{class:"node",cause:"The agent already has a receipt for this command identifier with different input.",remedy:"Retry the node, which uses a new identifier, and report the conflict if it repeats."},LEDGER_UNAVAILABLE:{class:"node",cause:"The agent could not read or write its command ledger.",remedy:"Check ownership, mode 0700 and free space of .magnus/command-receipts on the node."},LEDGER_UNRESOLVED:{class:"node",cause:"The agent ledger holds a command with an unresolved outcome, which blocks every later managed request.",remedy:"Reconcile that command with signed evidence (docs/COMMAND_RESOURCE_LEASES.md)."},LEASE_HELD:{class:"node",cause:"A command lease on the node is reserved, running or unknown.",remedy:"Wait for it to finish. On a 1.1.8 agent, a lease stuck `unknown` with no receipt is settled by the readiness monitor, a run, or `magnus-server agents doctor --heal`; one with a receipt needs signed reconciliation. On an older agent, see MANAGED_MUTATION_UNCERTAIN."},WORK_HELD:{class:"node",cause:"Participant work, such as a console terminal or SSH session, is still held on the node.",remedy:"Finish or reconcile that work, then retry the node."},UNMANAGED_MUTATION:{class:"node",suspectable:!0,cause:"The agent is enrolled for managed requests and refused a request without a valid claim.",remedy:"Complete the node's resource enrollment on the server (docs/COMMAND_RESOURCE_LEASES.md), or upgrade the agent by hand."},RESOURCE_CLAIM_INVALID:{class:"node",cause:"The server would not confirm the agent's claim for this request.",remedy:"Check the enrollment and inventory host name of the node, then retry."},RESOURCE_TARGET_INVALID:{class:"node",cause:"Admission refused the node: its inventory address changed or its health is not fresh.",remedy:"Wait for a fresh heartbeat, or repair the inventory address."},ADMISSION_FENCE_CLOSED:{class:"node",cause:"A server release closed admission to this node.",remedy:"Release the admission fence (POST /api/v1/resource-leases/admission/<nodeId>/release)."},ENROLLMENT_MISSING:{class:"node",cause:"Resource leases apply to this node but it is not enrolled.",remedy:"Enroll the node (docs/COMMAND_RESOURCE_LEASES.md)."},ENROLLMENT_DRAINING:{class:"node",cause:"The node's resource enrollment is stuck in draining.",remedy:"Finish the drain: POST /api/v1/resource-leases/enrollment/<nodeId>/complete."},ENROLLMENT_HOST_MISMATCH:{class:"node",cause:"The enrollment names another host than the inventory.",remedy:"Correct the host name of the node in the inventory."},ENROLLMENT_INCOMPLETE:{class:"node",cause:"The node's resource enrollment is not complete.",remedy:"Enroll the node (docs/COMMAND_RESOURCE_LEASES.md)."},ENROLLMENT_MARKER_MISMATCH:{class:"node",cause:"The agent holds a local managed-enrollment marker the server does not share.",remedy:"Complete the node's resource enrollment on the server (docs/COMMAND_RESOURCE_LEASES.md), or upgrade the agent by hand."},NODE_OFFLINE:{class:"node",transient:!0,cause:"The node is offline or has no recent heartbeat.",remedy:"Bring the agent back, then retry the node."},NODE_NOT_FOUND:{class:"node",cause:"The node is no longer in the inventory.",remedy:"Register the node again if it should be managed."},VERSION_UNKNOWN:{class:"node",cause:"The agent has not reported a usable version.",remedy:"Wait for a heartbeat, or upgrade the agent by hand."},SELF_UPGRADE_TIMEOUT:{class:"node",cause:"An npm step of the upgrade did not finish in its time budget on the node. A new version that hangs when it is run reports SELF_UPGRADE_FAILED instead. A lifecycle script that hangs inside npm also ends up here: it cannot be told apart.",remedy:"Check the network and disk speed of the node, then retry it. If every node hangs the same way, suspect the release."},SELF_UPGRADE_UNAVAILABLE:{class:"node",cause:"The agent cannot upgrade itself now: its layout, launcher, directories or npm are not usable.",remedy:"Read the detail. Running `sudo magnus-agent install-service` once on the node usually repairs it."},SELF_UPGRADE_LAUNCHER:{class:"node",suspectable:!0,cause:"The new version needs a newer launcher than the node has.",remedy:"Run `sudo magnus-agent install-service` once on the node."},SELF_UPGRADE_ENGINE:{class:"node",suspectable:!0,cause:"The new version does not support the Node.js on this node.",remedy:"Upgrade Node.js on the node."},SELF_UPGRADE_PACKAGE:{class:"node",suspectable:!0,cause:"The agent refused to install a package other than magnus-agent.",remedy:"Report this: the server sent an unexpected package name."},SELF_UPGRADE_REFUSED:{class:"node",suspectable:!0,cause:"The agent refused the version change.",remedy:"Read the detail. Crossing a major version is done by hand."},PREFLIGHT_NOT_WRITABLE:{class:"node",cause:"The agent cannot write to its install directory.",remedy:"Run `sudo magnus-agent install-service` again on the node, which repairs ownership."},PREFLIGHT_DISK_LOW:{class:"node",cause:"The install directory has less free space than an upgrade needs.",remedy:"Free disk space on the node."},PREFLIGHT_NPM:{class:"node",cause:"npm is missing on the node or too old.",remedy:"Install npm beside the agent's Node.js, or set MAGNUS_AGENT_NPM."},PREFLIGHT_FROM_INCOMPLETE:{class:"node",cause:"The running version is not complete under versions/, so a failed upgrade could not switch back.",remedy:"Run `sudo magnus-agent install-service` again on the node."},PREFLIGHT_ENGINE:{class:"node",cause:"The target version does not support the Node.js on this node.",remedy:"Upgrade Node.js on the node."},NOT_REACHED:{class:"node",cause:"The run ended before it reached this node.",remedy:"Retry the run, once what ended it is dealt with. This node was not asked and did not change."},RUN_STOPPED:{class:"node",cause:"Someone stopped the run before it reached this node.",remedy:"Retry the run when you want this node upgraded. This node was not asked and did not change."},NOT_ELIGIBLE:{class:"node",cause:"This node became ineligible at its turn, for a reason without a code of its own.",remedy:"Read the detail, then retry the node."},ALREADY_CURRENT:{class:"node",informational:!0,cause:"The node already runs the target version.",remedy:"Nothing to do."},SELF_UPGRADE_CURRENT:{class:"node",informational:!0,cause:"The agent already runs the target version.",remedy:"Nothing to do."},DOWNGRADE:{class:"node",informational:!0,cause:"The node runs a newer version than the target.",remedy:"Nothing to do, or choose a newer target."},MAJOR_VERSION:{class:"node",informational:!0,cause:"The change crosses a major version.",remedy:"Upgrade this node by hand."},NOT_SELF_UPGRADABLE:{class:"node",informational:!0,cause:"This agent cannot upgrade itself: it is too old, or not set up with the launcher.",remedy:"Run `sudo magnus-agent install-service` once on the node."},PROTOCOL_TOO_OLD:{class:"node",informational:!0,cause:"The agent speaks an older self-upgrade protocol.",remedy:"Upgrade this agent by hand."},SELF_UPGRADE_DISABLED:{class:"node",informational:!0,cause:"An operator switched self-upgrade off on this node, or it runs in a container or the legacy layout.",remedy:"Nothing to do if that is intended. Otherwise set MAGNUS_AGENT_SELF_UPGRADE=true, pull a newer image, or run `sudo magnus-agent install-service` once."},UPGRADE_IN_PROGRESS:{class:"node",cause:"An upgrade is staged or on trial on this node, and it can still switch back.",remedy:"Wait for its trial to end, then retry the node if it did not confirm."},ALREADY_REVERTED:{class:"node",cause:"This node already switched back from this exact version.",remedy:"Read the reason. To try again, use allowRetryReverted (--retry-reverted)."},PREFLIGHT_UNAVAILABLE:{class:"node",informational:!0,cause:"An agent older than 1.1.8 has no preflight check; heartbeat data is used instead.",remedy:"Nothing to do: the agent gains the check when it is upgraded."},PREFLIGHT_UNREACHABLE:{class:"node",informational:!0,cause:"The preflight check got no answer. The node stays in the run, and dispatch decides.",remedy:"Nothing to do unless the node then fails with AGENT_UNREACHABLE."}},g={class:"node",unknown:!0,suspectable:!0,cause:"Unrecognised code: the agent or the server refused this node for a reason the catalogue does not list.",remedy:"Read the detail and the agent log, then retry the node. An agent newer than the server can cause this."};function h(a){return(a?f[a]:void 0)??g}async function i(a){let b=await (0,e.O)(a),c=(0,e.R)(b),d=b?.error?.code;return c?"string"!=typeof d||c.includes(d)?c:`${c} (${d})`:a instanceof Error?a.message:String(a)}let j=["failed","refused","skipped","requested","watching","ambiguous"];function k(a){return a&&"running"!==a.status?a.nodes.filter(a=>j.includes(a.state)).length+(a.excluded??[]).filter(a=>a.code&&!h(a.code).informational).length:0}function l(a){return a.problems.map(a=>`${a.code}: ${a.detail}. ${a.remedy}`).join("\n")}a.s(["c",0,function(a){return a?.response?.status===404},"b",0,function(a){return a.detail?a.code&&!a.detail.includes(a.code)?`${a.code}: ${a.detail}`:a.detail:a.code??null},"K",0,l,"V",0,function(a){return h(a).remedy},"w",0,k,"v",0,function(a){return k(a)>0},"P",0,function(a){switch(a.status){case"succeeded":return"Last run: succeeded";case"partial":return`Last run: partial, ${a.attention?.length??0} node(s) need attention`;case"failed":return a.suspectedRelease?"Last run: failed, a release problem is suspected but unproven":"Last run: failed, on evidence about the release";default:return`Last run: ${a.status}`}},"Q",0,function(a){let b=a.version===a.serverVersion?" (the agent version bundled with this server)":"",c=a.release&&!a.release.verified?`; not verified on the registry: ${a.release.reason??"unknown"}`:"";return`Target: magnus-agent ${a.version}${b}${a.prerelease?", a prerelease":""}${c}`},"s",0,i],47515),a.s(["x",0,function({readiness:a}){return a?.status!=="not-ready"?null:(0,b.jsx)("span",{title:l(a),"data-testid":"upgrade-readiness-badge",children:(0,b.jsxs)(d.t,{variant:"warning",children:[(0,b.jsx)(c.f,{className:"mr-1 inline h-3 w-3"}),"Upgrade blocked (",a.problems.length,")"]})})},"a",0,function({readiness:a}){return a?.status!=="not-ready"?null:(0,b.jsxs)("div",{className:"rounded border border-warning/40 bg-warning/10 px-3 py-2 text-[11px]","data-testid":"upgrade-readiness-panel",children:[(0,b.jsxs)("p",{className:"flex items-center gap-2 font-bold uppercase tracking-wider text-warning",children:[(0,b.jsx)(c.f,{className:"h-3.5 w-3.5"})," This node could not take an agent upgrade now"]}),(0,b.jsx)("ul",{className:"mt-2 space-y-2",children:a.problems.map(a=>(0,b.jsxs)("li",{children:[(0,b.jsxs)("p",{className:"font-medium text-text",children:[(0,b.jsx)("span",{className:"num",children:a.code}),": ",a.detail]}),(0,b.jsx)("p",{className:"text-text-muted",children:a.remedy})]},`${a.code}-${a.detail}`))})]})}],33666)},90363,7574,a=>{var b=a.i(64831);let c={name:"refresh-ccw-dot",size:24,node:[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};c.node;let d=(0,b.f)(c);a.s(["f",0,d],90363);var e=a.i(87924),f=a.i(72131),g=a.i(68415),h=a.i(85063),i=a.i(46997),j=a.i(34532),k=a.i(75160);a.s(["E",0,function({open:a,node:b,onClose:c,onSaved:d}){let[l,m]=(0,f.useState)([]),[n,o]=(0,f.useState)(""),[p,q]=(0,f.useState)(!0),[r,s]=(0,f.useState)(!1),[t,u]=(0,f.useState)(""),[v,w]=(0,f.useState)(!1);(0,f.useEffect)(()=>{a&&(u(""),o(b?.role?.id??""),q(!0),w(!0),(async()=>{try{let a=await i.f.roles.list();m(a.data??[])}catch{u("Failed to load roles")}finally{w(!1)}})())},[a,b?.role?.id]);let x=async()=>{if(b){s(!0),u("");try{let a=b.role?.id;a&&a!==n&&await i.f.roles.unassign(a,{nodeIds:[b.id]}),n&&await i.f.roles.assign(n,{nodeIds:[b.id],defer:!p});let e=n?l.find(a=>a.id===n)??null:null;d(e),c()}catch(a){u(a instanceof Error?a.message:"Failed to assign role")}finally{s(!1)}}},y=async()=>{if(b?.role){s(!0),u("");try{await i.f.roles.unassign(b.role.id,{nodeIds:[b.id]}),d(null),c()}catch(a){u(a instanceof Error?a.message:"Failed to unassign role")}finally{s(!1)}}},z=()=>{u(""),s(!1),c()};return(0,e.jsx)(h.n,{open:a,onClose:z,title:b?.role?"Change Role":"Assign Role",description:b?`Node: ${b.name}`:"",icon:(0,e.jsx)(j.f,{className:"h-5 w-5 text-primary"}),children:(0,e.jsxs)("div",{className:"space-y-4",children:[v?(0,e.jsxs)("div",{className:"flex items-center gap-2 py-4 text-xs text-text-muted",children:[(0,e.jsx)(k.f,{className:"h-4 w-4 animate-spin"}),"Loading roles…"]}):0===l.length?(0,e.jsx)("p",{className:"text-xs text-text-muted py-4",children:"No roles found. Create a role first on the Roles page."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.G,{label:"Role",children:(0,e.jsxs)("select",{value:n,onChange:a=>o(a.target.value),className:h.N,children:[(0,e.jsx)("option",{value:"",children:"— No role —"}),l.map(a=>(0,e.jsx)("option",{value:a.id,children:a.name},a.id))]})}),n&&(0,e.jsxs)("label",{className:"flex items-center gap-2 text-xs cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:p,onChange:a=>q(a.target.checked),className:"rounded border-border"}),"Apply role immediately"]})]}),t&&(0,e.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:t}),(0,e.jsxs)("div",{className:"flex justify-between pt-2",children:[(0,e.jsx)("div",{children:b?.role&&(0,e.jsx)(g.K,{variant:"secondary",size:"sm",onClick:()=>void y(),disabled:r,children:"Unassign Role"})}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(g.K,{variant:"secondary",size:"sm",onClick:z,children:"Cancel"}),(0,e.jsx)(g.K,{size:"sm",onClick:()=>void x(),disabled:r||!n||0===l.length,icon:r?(0,e.jsx)(k.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:r?"Saving…":b?.role?"Change Role":"Assign Role"})]})]})]})})},"F",0,function({open:a,node:b,onClose:c,onSaved:d}){let[l,m]=(0,f.useState)(""),[n,o]=(0,f.useState)(""),[p,q]=(0,f.useState)(""),[r,s]=(0,f.useState)(!1),[t,u]=(0,f.useState)("");(0,f.useEffect)(()=>{if(b){m(b.name);try{let a=JSON.parse(b.tags);o(a.join(", "))}catch{o("")}q(b.status),u("")}},[b]);let v=async()=>{if(b&&l.trim()){s(!0),u("");try{let a=n.split(",").map(a=>a.trim()).filter(Boolean);await i.f.nodes.update(b.id,{name:l.trim(),tags:a,status:p.toUpperCase()}),d(),c()}catch(a){u(a instanceof Error?a.message:"Failed to update node")}finally{s(!1)}}},w=()=>{u(""),s(!1),c()};return(0,e.jsx)(h.n,{open:a,onClose:w,title:"Edit Node",description:b?`${b.hostname}`:"",icon:(0,e.jsx)(j.f,{className:"h-5 w-5 text-primary"}),children:(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsx)(h.G,{label:"Name",required:!0,children:(0,e.jsx)("input",{type:"text",value:l,onChange:a=>m(a.target.value),className:h.W})}),(0,e.jsx)(h.G,{label:"Status",children:(0,e.jsxs)("select",{value:p,onChange:a=>q(a.target.value),className:h.N,children:[(0,e.jsx)("option",{value:"ONLINE",children:"ONLINE"}),(0,e.jsx)("option",{value:"OFFLINE",children:"OFFLINE"}),(0,e.jsx)("option",{value:"DEGRADED",children:"DEGRADED"}),(0,e.jsx)("option",{value:"PROVISIONING",children:"PROVISIONING"}),(0,e.jsx)("option",{value:"MAINTENANCE",children:"MAINTENANCE"})]})}),(0,e.jsxs)(h.G,{label:"Tags",children:[(0,e.jsx)("input",{type:"text",value:n,onChange:a=>o(a.target.value),placeholder:"web, production, us-east",className:h.W}),(0,e.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated list of tags"})]}),t&&(0,e.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:t}),(0,e.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,e.jsx)(g.K,{variant:"secondary",size:"sm",onClick:w,children:"Cancel"}),(0,e.jsx)(g.K,{size:"sm",onClick:()=>void v(),disabled:r||!l.trim(),icon:r?(0,e.jsx)(k.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:r?"Saving…":"Save Changes"})]})]})})},"M",0,function({open:a,onClose:b,onRegistered:c}){let[d,l]=(0,f.useState)(""),[m,n]=(0,f.useState)(""),[o,p]=(0,f.useState)("4100"),[q,r]=(0,f.useState)("linux"),[s,t]=(0,f.useState)("x86_64"),[u,v]=(0,f.useState)(""),[w,x]=(0,f.useState)(!1),[y,z]=(0,f.useState)(""),A=async()=>{if(d.trim()&&m.trim()){x(!0),z("");try{let a=u.split(",").map(a=>a.trim()).filter(Boolean);await i.f.nodes.register({name:d.trim(),hostname:m.trim(),ipAddress:m.trim(),port:Number(o)||4100,os:q,arch:s,tags:a,agentVersion:"2.1.0"}),c(),B()}catch(a){z(a instanceof Error?a.message:"Failed to register node")}finally{x(!1)}}},B=()=>{l(""),n(""),p("4100"),r("linux"),t("x86_64"),v(""),z(""),x(!1),b()};return(0,e.jsx)(h.n,{open:a,onClose:B,title:"Register Node",description:"Manually register a node already running the agent",icon:(0,e.jsx)(j.f,{className:"h-5 w-5 text-primary"}),children:(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsx)(h.G,{label:"Node Name",required:!0,children:(0,e.jsx)("input",{type:"text",value:d,onChange:a=>l(a.target.value),placeholder:"web-server-01",className:h.W,autoFocus:!0})}),(0,e.jsx)(h.G,{label:"FQDN / Hostname",required:!0,children:(0,e.jsx)("input",{type:"text",value:m,onChange:a=>n(a.target.value),placeholder:"node-1.example.com",className:h.W})}),(0,e.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,e.jsx)(h.G,{label:"Port",children:(0,e.jsx)("input",{type:"number",value:o,onChange:a=>p(a.target.value),className:h.W})}),(0,e.jsx)(h.G,{label:"OS",children:(0,e.jsxs)("select",{value:q,onChange:a=>r(a.target.value),className:h.N,children:[(0,e.jsx)("option",{value:"linux",children:"Linux"}),(0,e.jsx)("option",{value:"darwin",children:"macOS"}),(0,e.jsx)("option",{value:"windows",children:"Windows"})]})}),(0,e.jsx)(h.G,{label:"Architecture",children:(0,e.jsxs)("select",{value:s,onChange:a=>t(a.target.value),className:h.N,children:[(0,e.jsx)("option",{value:"x86_64",children:"x86_64"}),(0,e.jsx)("option",{value:"aarch64",children:"aarch64"}),(0,e.jsx)("option",{value:"arm",children:"arm"})]})})]}),(0,e.jsxs)(h.G,{label:"Tags",children:[(0,e.jsx)("input",{type:"text",value:u,onChange:a=>v(a.target.value),placeholder:"web, production, us-east",className:h.W}),(0,e.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated"})]}),y&&(0,e.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:y}),(0,e.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,e.jsx)(g.K,{variant:"secondary",size:"sm",onClick:B,children:"Cancel"}),(0,e.jsx)(g.K,{size:"sm",onClick:()=>void A(),disabled:w||!d.trim()||!m.trim(),icon:w?(0,e.jsx)(k.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:w?"Registering…":"Register Node"})]})]})})}],7574)}]})();
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=_1oebzzj_en62h._.js.map
|
package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_0gs_s688kgg1i._.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{"use strict";module.exports=[3319,a=>{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=>{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","1.1.13"]}),(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(90702),ay=a.i(97546),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_),a1="magnus.update-banner.dismissed";function a2(){let[a,d]=(0,c.useState)(null),[f,g]=(0,c.useState)(null);if((0,c.useEffect)(()=>{g(function(){try{return window.localStorage.getItem(a1)}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;if(!h.updateAvailable&&!h.latestMajor&&0===j)return null;let k=`${a.server.latest??""}|${a.server.latestMajor??""}|${a.agents.behind.length}|${a.agents.expected}`;return f===k?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(a1,k)}catch{}g(k)},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:"Upgrade agents"}):(0,b.jsx)("span",{className:"text-text-muted",children:"Agent upgrades are off on this server (MAGNUS_AGENT_UPGRADES=false)."}),i.fixCommand&&(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 a3=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,a3.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
|
+
(()=>{"use strict";module.exports=[3319,a=>{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=>{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.1.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(90702),ay=a.i(97546),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_),a1="magnus.update-banner.dismissed";function a2(){let[a,d]=(0,c.useState)(null),[f,g]=(0,c.useState)(null);if((0,c.useEffect)(()=>{g(function(){try{return window.localStorage.getItem(a1)}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;if(!h.updateAvailable&&!h.latestMajor&&0===j)return null;let k=`${a.server.latest??""}|${a.server.latestMajor??""}|${a.agents.behind.length}|${a.agents.expected}`;return f===k?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(a1,k)}catch{}g(k)},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:"Upgrade agents"}):(0,b.jsx)("span",{className:"text-text-muted",children:"Agent upgrades are off on this server (MAGNUS_AGENT_UPGRADES=false)."}),i.fixCommand&&(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 a3=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,a3.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)(a2,{}),a]})]}),(0,b.jsx)(aZ,{})]})}],12737)},26926,a=>{var b=a.i(87924),c=a.i(72131),d=a.i(90702),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)("405661905b7dfbc5599e8351594b0598d5288cc267",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(90702),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)("40d8433d57d0863052c824e0af9f1fa7cd653f888e",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(90702),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
|