@hivemagnus/magnus-ui 2.0.0 → 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_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/{0wlnbio9lkqyn.js → 0ercz8dn1s4v0.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{2ms-97k8wcdtw.js → 19r460os_h04_.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{1fvd5l_zirrgt.js → 34kjyfaw5u2xm.js} +1 -1
- package/dist/app/apps/dashboard/.next/static/chunks/{141gbg9nqwm6u.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/{16tihwnnro25r.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/{MFGtEZBu_8Sn6TushSZ0r → 24AiYFyjaUGx2yS4XkihB}/_buildManifest.js +0 -0
- /package/dist/app/apps/dashboard/.next/static/{MFGtEZBu_8Sn6TushSZ0r → 24AiYFyjaUGx2yS4XkihB}/_clientMiddlewareManifest.js +0 -0
- /package/dist/app/apps/dashboard/.next/static/{MFGtEZBu_8Sn6TushSZ0r → 24AiYFyjaUGx2yS4XkihB}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53721,63646,e=>{var t=e.i(43476),n=e.i(53138),a=e.i(46670),s=e.i(64971);let r={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."}},o={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 i(e){return(e?r[e]:void 0)??o}async function d(e){let t=await (0,s.O)(e),n=(0,s.R)(t),a=t?.error?.code;return n?"string"!=typeof a||n.includes(a)?n:`${n} (${a})`:e instanceof Error?e.message:String(e)}let l=["failed","refused","skipped","requested","watching","ambiguous"];function c(e){return e&&"running"!==e.status?e.nodes.filter(e=>l.includes(e.state)).length+(e.excluded??[]).filter(e=>e.code&&!i(e.code).informational).length:0}function h(e){return e.problems.map(e=>`${e.code}: ${e.detail}. ${e.remedy}`).join("\n")}e.s(["c",0,function(e){return e?.response?.status===404},"b",0,function(e){return e.detail?e.code&&!e.detail.includes(e.code)?`${e.code}: ${e.detail}`:e.detail:e.code??null},"K",0,h,"V",0,function(e){return i(e).remedy},"w",0,c,"v",0,function(e){return c(e)>0},"P",0,function(e){switch(e.status){case"succeeded":return"Last run: succeeded";case"partial":return`Last run: partial, ${e.attention?.length??0} node(s) need attention`;case"failed":return e.suspectedRelease?"Last run: failed, a release problem is suspected but unproven":"Last run: failed, on evidence about the release";default:return`Last run: ${e.status}`}},"Q",0,function(e){let t=e.version===e.serverVersion?" (the agent version bundled with this server)":"",n=e.release&&!e.release.verified?`; not verified on the registry: ${e.release.reason??"unknown"}`:"";return`Target: magnus-agent ${e.version}${t}${e.prerelease?", a prerelease":""}${n}`},"s",0,d],63646),e.s(["x",0,function({readiness:e}){return e?.status!=="not-ready"?null:(0,t.jsx)("span",{title:h(e),"data-testid":"upgrade-readiness-badge",children:(0,t.jsxs)(a.t,{variant:"warning",children:[(0,t.jsx)(n.f,{className:"mr-1 inline h-3 w-3"}),"Upgrade blocked (",e.problems.length,")"]})})},"a",0,function({readiness:e}){return e?.status!=="not-ready"?null:(0,t.jsxs)("div",{className:"rounded border border-warning/40 bg-warning/10 px-3 py-2 text-[11px]","data-testid":"upgrade-readiness-panel",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 font-bold uppercase tracking-wider text-warning",children:[(0,t.jsx)(n.f,{className:"h-3.5 w-3.5"})," This node could not take an agent upgrade now"]}),(0,t.jsx)("ul",{className:"mt-2 space-y-2",children:e.problems.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("p",{className:"font-medium text-text",children:[(0,t.jsx)("span",{className:"num",children:e.code}),": ",e.detail]}),(0,t.jsx)("p",{className:"text-text-muted",children:e.remedy})]},`${e.code}-${e.detail}`))})]})}],53721)},57108,e=>{var t=e.i(43476),n=e.i(46670);e.s(["f",0,function({configuration:e}){if(e?.memoryProvider!=="hivemem")return null;let a=e.hiveMemToken,s=a?.status??"unknown";return(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsxs)(n.t,{variant:"valid"===s?"success":"expiring"===s||"unreachable"===s||"unknown"===s?"warning":"danger",children:["Token ",s]}),a?.expiresAt&&(0,t.jsxs)("time",{dateTime:a.expiresAt,title:"HiveMem token expiration",children:["expires ",new Date(a.expiresAt).toLocaleString()]}),a?.checkedAt&&(0,t.jsxs)("time",{dateTime:a.checkedAt,className:"text-text-muted/70",title:"Last HiveMem authentication check",children:["checked ",new Date(a.checkedAt).toLocaleString()]})]})}])},46670,e=>{var t=e.i(43476),n=e.i(78571);let a={default:"border-border text-text-muted",success:"border-success/40 text-success bg-success/5 shadow-[0_0_6px_rgba(0,255,65,0.15)]",warning:"border-warning/40 text-warning bg-warning/5 shadow-[0_0_6px_rgba(255,179,0,0.15)]",danger:"border-danger/40 text-danger bg-danger/5 shadow-[0_0_6px_rgba(255,23,68,0.15)]",info:"border-info/40 text-info bg-info/5 shadow-[0_0_6px_rgba(0,176,255,0.15)]"},s={default:"bg-text-muted",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"};e.s(["t",0,function({children:e,variant:r="default",className:o,dot:i=!1,pulse:d=!1}){return(0,t.jsxs)("span",{className:(0,n.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",a[r],o),children:[i&&(0,t.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[d&&(0,t.jsx)("span",{className:(0,n.f)("absolute inset-0 rounded-full animate-halo",s[r])}),(0,t.jsx)("span",{className:(0,n.f)("relative inline-flex h-1.5 w-1.5 rounded-full",s[r])})]}),e]})},"k",0,function(e){switch(e.toUpperCase()){case"ONLINE":case"COMPLETED":case"ACTIVE":case"RUNNING":case"INSTALLED":case"HEALTHY":return"success";case"DEGRADED":case"PAUSED":case"QUEUED":case"PENDING":case"INSTALLING":return"warning";case"OFFLINE":case"FAILED":case"ERROR":case"TIMEOUT":case"CANCELLED":case"DECOMMISSIONED":case"CRITICAL":return"danger";case"PROVISIONING":case"UPDATING":return"info";default:return"default"}}])},93999,51196,55427,e=>{var t=e.i(43476),n=e.i(56420);let a={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};a.node;let s=(0,n.f)(a);var r=e.i(75775),o=e.i(78571),i=e.i(3062),d=e.i(35084);let l={warning:"shadow-[0_0_6px_var(--color-warning)]",danger:"shadow-[0_0_8px_var(--color-danger)]",accent:"shadow-[0_0_6px_var(--color-accent)]",primary:"shadow-[0_0_6px_var(--color-primary)]"},c={xs:"h-1",sm:"h-1.5",md:"h-2"};function h({value:e,max:n=100,tone:a,thresholds:s=d.q,label:r,size:i="xs",showValue:u=!1,valueLabel:m,glow:g,className:f,testId:p}){let x="number"==typeof e&&Number.isFinite(e),y=x?Math.max(0,Math.min(100,e/(n||1)*100)):0,v=a??(x?(0,d.Z)(y,s):"muted"),N=g||!a&&x&&y>=s.warn,E=m??(x?`${y.toFixed(+(y<10&&y>0))}%`:"—");return(0,t.jsxs)("div",{className:(0,o.f)("flex min-w-0 items-center gap-2",f),"data-testid":p,children:[(0,t.jsx)("div",{role:"meter","aria-label":r,"aria-valuemin":0,"aria-valuemax":n,"aria-valuenow":x?e:void 0,"aria-valuetext":E,className:(0,o.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",c[i]),children:(0,t.jsx)("div",{style:{"--meter":`${y}%`},className:(0,o.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",d.H[v],N&&l[v])})}),u&&(0,t.jsx)("span",{className:(0,o.f)("num w-11 shrink-0 text-right text-[11px]",x?d.T[v]:"text-text-muted"),children:E})]})}e.s(["f",0,h],51196);var u=e.i(71645);function m({values:e,tone:n="primary",width:a=160,height:s=32,area:r=!0,max:i,percent:l=!1,threshold:c,live:h=!0,emptyLabel:g="not enough data",className:f,testId:p,label:x,stretch:y=!1}){let v=`spark${(0,u.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,t.jsx)("div",{className:(0,o.f)("flex h-8 items-center text-xs italic text-text-muted",f),"data-testid":p,children:g});let N=d.v[n],E=i??(l?Math.max(100,...e):Math.max(...e,c??0)||1),b=s-4,w=a/(e.length-1),_=e=>2+b-Math.max(0,e)/E*b,j=e.map((e,t)=>[t*w,_(e)]),R=j.map(([e,t])=>`${e.toFixed(1)},${t.toFixed(1)}`).join(" "),T=j[j.length-1];return(0,t.jsxs)("svg",{width:y?"100%":a,height:s,viewBox:`0 0 ${a} ${s}`,preserveAspectRatio:y?"none":void 0,className:(0,o.f)("block overflow-visible",f),"data-testid":p,role:x?"img":void 0,"aria-label":x,"aria-hidden":!x||void 0,children:[r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:v,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:N,stopOpacity:.35}),(0,t.jsx)("stop",{offset:"100%",stopColor:N,stopOpacity:0})]})}),(0,t.jsx)("polygon",{points:`0,${s} ${R} ${a},${s}`,fill:`url(#${v})`})]}),void 0!==c&&(0,t.jsx)("line",{x1:0,x2:a,y1:_(c),y2:_(c),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,t.jsx)("polyline",{fill:"none",stroke:N,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:R}),h&&!y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:T[0],cy:T[1],r:2.5,fill:N,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,t.jsx)("circle",{cx:T[0],cy:T[1],r:2,fill:N})]})]})}e.s(["f",0,m],55427),e.s(["N",0,function({title:e,description:n,children:a,className:s,action:r,tone:o,corners:d=!1,...l}){return(0,t.jsx)(i.f,{...l,tone:o,corners:d,title:e,description:n,action:r,className:s,children:a})},"n",0,function({label:e,value:n,icon:a,trend:l,spark:c,meter:u,delta:g,tone:f="primary",className:p,testId:x}){let y=!g||g.value>=0===(g.positiveIsGood??!0);return(0,t.jsxs)(i.f,{tone:f,className:(0,o.f)("overflow-hidden",p),testId:x,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:e}),a&&(0,t.jsx)("span",{className:"text-primary/60",children:a})]}),(0,t.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,t.jsx)("div",{className:(0,o.f)("num text-2xl font-bold","primary"===f?"text-primary neon-text":d.T[f]),children:n}),g&&0!==g.value&&(0,t.jsxs)("span",{className:(0,o.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",y?"text-success":"text-danger"),children:[g.value>0?(0,t.jsx)(r.f,{className:"h-3 w-3"}):(0,t.jsx)(s,{className:"h-3 w-3"}),Math.abs(g.value).toFixed(+!Number.isInteger(g.value)),g.unit]})]}),l&&(0,t.jsx)("div",{className:(0,o.f)("mt-1 text-[11px]",l.positive?"text-success":"text-danger"),children:l.value}),void 0!==u&&(0,t.jsx)(h,{value:u,className:"mt-3",label:e}),c&&c.length>1&&(0,t.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,t.jsx)(m,{values:c,tone:f,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},54149,21176,e=>{var t=e.i(43476),n=e.i(71645),a=e.i(78571),s=e.i(35084);e.s(["f",0,function({value:e,max:r=100,label:o,sublabel:i,tone:d,thresholds:l=s.q,higherIsBetter:c=!1,size:h=140,display:u,ticks:m=!0,hideLabel:g=!1,className:f,testId:p}){let x=(0,n.useId)().replace(/:/g,""),y="number"==typeof e&&Number.isFinite(e),v=y?Math.max(0,Math.min(100,e/(r||1)*100)):0,N=d??(y?c?(0,s.Z)(100-v,l):(0,s.Z)(v,l):"muted"),E=Math.max(4,Math.round(h/16)),b=50-E/2-4,w=2*Math.PI*b,_=.75*w,j=_*v/100,R=h>=140,T=u??(y?`${Math.round(v)}%`:"—"),A=m?Array.from({length:11},(e,n)=>{let a=(135+270*n/10)*Math.PI/180,s=50-(n%5==0?4:2.5);return(0,t.jsx)("line",{x1:50+48.5*Math.cos(a),y1:50+48.5*Math.sin(a),x2:50+s*Math.cos(a),y2:50+s*Math.sin(a),stroke:"var(--color-border-strong)",strokeWidth:.8},n)}):null;return(0,t.jsxs)("div",{role:"img","aria-label":`${o}: ${T}`,"data-testid":p,className:(0,a.f)("relative inline-flex flex-col items-center",f),style:{width:h},children:[(0,t.jsxs)("svg",{viewBox:"0 0 100 100",width:h,height:h,"aria-hidden":"true",className:"overflow-visible",children:[R&&(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:`g${x}`,x:"-30%",y:"-30%",width:"160%",height:"160%",children:[(0,t.jsx)("feGaussianBlur",{stdDeviation:"2.2",result:"blur"}),(0,t.jsxs)("feMerge",{children:[(0,t.jsx)("feMergeNode",{in:"blur"}),(0,t.jsx)("feMergeNode",{in:"SourceGraphic"})]})]})}),A,(0,t.jsx)("circle",{cx:50,cy:50,r:b,fill:"none",stroke:"var(--color-border)",strokeWidth:E,strokeLinecap:"round",strokeDasharray:`${_} ${w}`,transform:"rotate(135 50 50)"}),(0,t.jsx)("circle",{cx:50,cy:50,r:b,fill:"none",stroke:s.v[N],strokeWidth:E,strokeLinecap:"round",transform:"rotate(135 50 50)",filter:R?`url(#g${x})`:void 0,style:{"--dash":`${j} ${w}`},className:"[stroke-dasharray:var(--dash)] transition-[stroke-dasharray] duration-1000 ease-out-expo starting:[stroke-dasharray:0_1000]"})]}),(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center",style:{height:h},children:[(0,t.jsx)("span",{className:(0,a.f)("num font-bold leading-none",s.T[N],R&&s.z[N]),style:{fontSize:Math.max(12,.2*h)},children:T}),i&&(0,t.jsx)("span",{className:"num mt-1 text-text-muted",style:{fontSize:Math.max(9,.075*h)},children:i})]}),!g&&(0,t.jsx)("span",{className:"-mt-[10%] text-center text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:o})]})}],54149);var r=e.i(70703),o=e.i(65369);let i=(0,r.default)(()=>e.A(1321),{loadableGenerated:{modules:[69944]},ssr:!1,loading:()=>(0,t.jsx)(o.l,{className:"h-[180px] w-full"})});e.s(["f",0,i],21176)},3062,e=>{var t=e.i(43476),n=e.i(78571),a=e.i(35084);let s={primary:"[--panel-corner-color:color-mix(in_srgb,var(--color-primary)_60%,transparent)]",accent:"[--panel-corner-color:color-mix(in_srgb,var(--color-accent)_70%,transparent)]",success:"[--panel-corner-color:color-mix(in_srgb,var(--color-success)_60%,transparent)]",warning:"[--panel-corner-color:color-mix(in_srgb,var(--color-warning)_70%,transparent)]",danger:"[--panel-corner-color:color-mix(in_srgb,var(--color-danger)_70%,transparent)]",info:"[--panel-corner-color:color-mix(in_srgb,var(--color-info)_60%,transparent)]",muted:"[--panel-corner-color:var(--color-border-strong)]"},r={primary:"[--glow-hover-color:var(--color-glow)]",accent:"[--glow-hover-color:var(--color-glow-accent)]",success:"[--glow-hover-color:var(--color-glow-success)]",warning:"[--glow-hover-color:var(--color-glow-warning)]",danger:"[--glow-hover-color:var(--color-glow-danger)]",info:"[--glow-hover-color:var(--color-glow)]",muted:"[--glow-hover-color:var(--color-glow)]"},o={primary:"hover:border-primary/30",accent:"hover:border-accent/40",success:"hover:border-success/30",warning:"hover:border-warning/40",danger:"hover:border-danger/40",info:"hover:border-info/30",muted:"hover:border-border-strong"},i={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:d=!0,interactive:l=!0,hero:c=!1,title:h,description:u,icon:m,action:g,as:f="div",padding:p="md",testId:x,className:y,children:v,...N}){return(0,t.jsxs)(f,{...N,"data-testid":x??N["data-testid"],className:(0,n.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",i[p],d&&"panel-corners",d&&s[e],l&&"glow-hover",l&&r[e],l&&o[e],c&&"grid-bg overflow-hidden bg-surface/80",y),children:[(h||g||m)&&(0,t.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[m&&(0,t.jsx)("span",{className:(0,n.f)("mt-0.5 shrink-0",a.T[e]),children:m}),(0,t.jsxs)("div",{className:"min-w-0",children:[h&&(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:h}),u&&(0,t.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:u})]})]}),g]}),v]})}])},65369,e=>{var t=e.i(43476),n=e.i(78571);function a({className:e}){return(0,t.jsx)("div",{"aria-hidden":"true",className:(0,n.f)("skeleton h-3 w-full",e)})}e.s(["l",0,a,"g",0,function({count:e=4,className:s}){return(0,t.jsx)("div",{role:"status","aria-label":"Loading",className:(0,n.f)("grid gap-4 sm:grid-cols-2 lg:grid-cols-4",s),children:Array.from({length:e},(e,n)=>(0,t.jsxs)("div",{className:"panel-corners rounded-panel border border-border bg-surface p-5",children:[(0,t.jsx)(a,{className:"h-2 w-1/2"}),(0,t.jsx)(a,{className:"mt-4 h-7 w-2/3"}),(0,t.jsx)(a,{className:"mt-3 h-1 w-full opacity-60"})]},n))})},"F",0,function({rows:e=5,cols:s=4,className:r}){return(0,t.jsxs)("div",{role:"status","aria-label":"Loading",className:(0,n.f)("overflow-hidden rounded-panel border border-border",r),children:[(0,t.jsx)("div",{className:"flex gap-4 border-b border-border bg-surface px-4 py-3",children:Array.from({length:s},(e,n)=>(0,t.jsx)(a,{className:"h-2 flex-1 opacity-60"},n))}),Array.from({length:e},(e,r)=>(0,t.jsx)("div",{className:"flex gap-4 border-b border-border/50 px-4 py-3 last:border-0",children:Array.from({length:s},(e,s)=>(0,t.jsx)(a,{className:(0,n.f)("h-3 flex-1",(r+s)%3==0&&"max-w-[60%]")},s))},r))]})},"Q",0,function({lines:e=3,className:s}){let r=["w-full","w-11/12","w-4/5","w-2/3","w-3/4"];return(0,t.jsx)("div",{role:"status","aria-label":"Loading",className:(0,n.f)("space-y-2",s),children:Array.from({length:e},(e,n)=>(0,t.jsx)(a,{className:r[n%r.length]},n))})}])},75723,e=>{var t=e.i(43476),n=e.i(78571),a=e.i(46670);let s={success:"bg-success shadow-[0_0_6px_var(--color-success)]",warning:"bg-warning shadow-[0_0_6px_var(--color-warning)]",danger:"bg-danger shadow-[0_0_6px_var(--color-danger)]",info:"bg-info shadow-[0_0_6px_var(--color-info)]",default:"bg-text-muted"},r={success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info",default:"bg-text-muted"},o=new Set(["ONLINE","RUNNING","ACTIVE","HEALTHY","CRITICAL","UPDATING","PROVISIONING"]);e.s(["f",0,function({status:e,pulse:i,size:d="sm",className:l,label:c}){let h=(0,a.k)(e),u=i??o.has(e.toUpperCase()),m="xs"===d?"h-1.5 w-1.5":"h-2 w-2";return(0,t.jsxs)("span",{className:(0,n.f)("relative inline-flex shrink-0",m,l),role:c?"img":void 0,"aria-label":c,"aria-hidden":!c||void 0,children:[u&&(0,t.jsx)("span",{className:(0,n.f)("absolute inset-0 rounded-full animate-halo",r[h])}),(0,t.jsx)("span",{className:(0,n.f)("relative inline-flex rounded-full",m,s[h])})]})}])},71417,e=>{e.s(["L",0,function(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(1))} ${["B","KB","MB","GB","TB"][t]}`},"C",0,function(e){return e?("string"==typeof e?new Date(e):e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}])},79432,e=>{var t=e.i(56420);let n={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],79432)},9347,e=>{var t=e.i(56420);let n={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],9347)},75775,e=>{var t=e.i(56420);let n={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],75775)},82022,e=>{var t=e.i(56420);let n={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],82022)},57665,e=>{var t=e.i(56420);let n={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],57665)},86207,14098,e=>{var t=e.i(56420);let n={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"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],86207);var s=e.i(43476),r=e.i(71645),o=e.i(68759),i=e.i(32568),d=e.i(82983),l=e.i(41220),c=e.i(32781);e.s(["E",0,function({open:e,node:t,onClose:n,onSaved:a}){let[h,u]=(0,r.useState)([]),[m,g]=(0,r.useState)(""),[f,p]=(0,r.useState)(!0),[x,y]=(0,r.useState)(!1),[v,N]=(0,r.useState)(""),[E,b]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e&&(N(""),g(t?.role?.id??""),p(!0),b(!0),(async()=>{try{let e=await d.f.roles.list();u(e.data??[])}catch{N("Failed to load roles")}finally{b(!1)}})())},[e,t?.role?.id]);let w=async()=>{if(t){y(!0),N("");try{let e=t.role?.id;e&&e!==m&&await d.f.roles.unassign(e,{nodeIds:[t.id]}),m&&await d.f.roles.assign(m,{nodeIds:[t.id],defer:!f});let s=m?h.find(e=>e.id===m)??null:null;a(s),n()}catch(e){N(e instanceof Error?e.message:"Failed to assign role")}finally{y(!1)}}},_=async()=>{if(t?.role){y(!0),N("");try{await d.f.roles.unassign(t.role.id,{nodeIds:[t.id]}),a(null),n()}catch(e){N(e instanceof Error?e.message:"Failed to unassign role")}finally{y(!1)}}},j=()=>{N(""),y(!1),n()};return(0,s.jsx)(i.n,{open:e,onClose:j,title:t?.role?"Change Role":"Assign Role",description:t?`Node: ${t.name}`:"",icon:(0,s.jsx)(l.f,{className:"h-5 w-5 text-primary"}),children:(0,s.jsxs)("div",{className:"space-y-4",children:[E?(0,s.jsxs)("div",{className:"flex items-center gap-2 py-4 text-xs text-text-muted",children:[(0,s.jsx)(c.f,{className:"h-4 w-4 animate-spin"}),"Loading roles…"]}):0===h.length?(0,s.jsx)("p",{className:"text-xs text-text-muted py-4",children:"No roles found. Create a role first on the Roles page."}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.G,{label:"Role",children:(0,s.jsxs)("select",{value:m,onChange:e=>g(e.target.value),className:i.N,children:[(0,s.jsx)("option",{value:"",children:"— No role —"}),h.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]})}),m&&(0,s.jsxs)("label",{className:"flex items-center gap-2 text-xs cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:f,onChange:e=>p(e.target.checked),className:"rounded border-border"}),"Apply role immediately"]})]}),v&&(0,s.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:v}),(0,s.jsxs)("div",{className:"flex justify-between pt-2",children:[(0,s.jsx)("div",{children:t?.role&&(0,s.jsx)(o.K,{variant:"secondary",size:"sm",onClick:()=>void _(),disabled:x,children:"Unassign Role"})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.K,{variant:"secondary",size:"sm",onClick:j,children:"Cancel"}),(0,s.jsx)(o.K,{size:"sm",onClick:()=>void w(),disabled:x||!m||0===h.length,icon:x?(0,s.jsx)(c.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:x?"Saving…":t?.role?"Change Role":"Assign Role"})]})]})]})})},"F",0,function({open:e,node:t,onClose:n,onSaved:a}){let[h,u]=(0,r.useState)(""),[m,g]=(0,r.useState)(""),[f,p]=(0,r.useState)(""),[x,y]=(0,r.useState)(!1),[v,N]=(0,r.useState)("");(0,r.useEffect)(()=>{if(t){u(t.name);try{let e=JSON.parse(t.tags);g(e.join(", "))}catch{g("")}p(t.status),N("")}},[t]);let E=async()=>{if(t&&h.trim()){y(!0),N("");try{let e=m.split(",").map(e=>e.trim()).filter(Boolean);await d.f.nodes.update(t.id,{name:h.trim(),tags:e,status:f.toUpperCase()}),a(),n()}catch(e){N(e instanceof Error?e.message:"Failed to update node")}finally{y(!1)}}},b=()=>{N(""),y(!1),n()};return(0,s.jsx)(i.n,{open:e,onClose:b,title:"Edit Node",description:t?`${t.hostname}`:"",icon:(0,s.jsx)(l.f,{className:"h-5 w-5 text-primary"}),children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(i.G,{label:"Name",required:!0,children:(0,s.jsx)("input",{type:"text",value:h,onChange:e=>u(e.target.value),className:i.W})}),(0,s.jsx)(i.G,{label:"Status",children:(0,s.jsxs)("select",{value:f,onChange:e=>p(e.target.value),className:i.N,children:[(0,s.jsx)("option",{value:"ONLINE",children:"ONLINE"}),(0,s.jsx)("option",{value:"OFFLINE",children:"OFFLINE"}),(0,s.jsx)("option",{value:"DEGRADED",children:"DEGRADED"}),(0,s.jsx)("option",{value:"PROVISIONING",children:"PROVISIONING"}),(0,s.jsx)("option",{value:"MAINTENANCE",children:"MAINTENANCE"})]})}),(0,s.jsxs)(i.G,{label:"Tags",children:[(0,s.jsx)("input",{type:"text",value:m,onChange:e=>g(e.target.value),placeholder:"web, production, us-east",className:i.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated list of tags"})]}),v&&(0,s.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:v}),(0,s.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,s.jsx)(o.K,{variant:"secondary",size:"sm",onClick:b,children:"Cancel"}),(0,s.jsx)(o.K,{size:"sm",onClick:()=>void E(),disabled:x||!h.trim(),icon:x?(0,s.jsx)(c.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:x?"Saving…":"Save Changes"})]})]})})},"M",0,function({open:e,onClose:t,onRegistered:n}){let[a,h]=(0,r.useState)(""),[u,m]=(0,r.useState)(""),[g,f]=(0,r.useState)("4100"),[p,x]=(0,r.useState)("linux"),[y,v]=(0,r.useState)("x86_64"),[N,E]=(0,r.useState)(""),[b,w]=(0,r.useState)(!1),[_,j]=(0,r.useState)(""),R=async()=>{if(a.trim()&&u.trim()){w(!0),j("");try{let e=N.split(",").map(e=>e.trim()).filter(Boolean);await d.f.nodes.register({name:a.trim(),hostname:u.trim(),ipAddress:u.trim(),port:Number(g)||4100,os:p,arch:y,tags:e,agentVersion:"2.0.0"}),n(),T()}catch(e){j(e instanceof Error?e.message:"Failed to register node")}finally{w(!1)}}},T=()=>{h(""),m(""),f("4100"),x("linux"),v("x86_64"),E(""),j(""),w(!1),t()};return(0,s.jsx)(i.n,{open:e,onClose:T,title:"Register Node",description:"Manually register a node already running the agent",icon:(0,s.jsx)(l.f,{className:"h-5 w-5 text-primary"}),children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(i.G,{label:"Node Name",required:!0,children:(0,s.jsx)("input",{type:"text",value:a,onChange:e=>h(e.target.value),placeholder:"web-server-01",className:i.W,autoFocus:!0})}),(0,s.jsx)(i.G,{label:"FQDN / Hostname",required:!0,children:(0,s.jsx)("input",{type:"text",value:u,onChange:e=>m(e.target.value),placeholder:"node-1.example.com",className:i.W})}),(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,s.jsx)(i.G,{label:"Port",children:(0,s.jsx)("input",{type:"number",value:g,onChange:e=>f(e.target.value),className:i.W})}),(0,s.jsx)(i.G,{label:"OS",children:(0,s.jsxs)("select",{value:p,onChange:e=>x(e.target.value),className:i.N,children:[(0,s.jsx)("option",{value:"linux",children:"Linux"}),(0,s.jsx)("option",{value:"darwin",children:"macOS"}),(0,s.jsx)("option",{value:"windows",children:"Windows"})]})}),(0,s.jsx)(i.G,{label:"Architecture",children:(0,s.jsxs)("select",{value:y,onChange:e=>v(e.target.value),className:i.N,children:[(0,s.jsx)("option",{value:"x86_64",children:"x86_64"}),(0,s.jsx)("option",{value:"aarch64",children:"aarch64"}),(0,s.jsx)("option",{value:"arm",children:"arm"})]})})]}),(0,s.jsxs)(i.G,{label:"Tags",children:[(0,s.jsx)("input",{type:"text",value:N,onChange:e=>E(e.target.value),placeholder:"web, production, us-east",className:i.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated"})]}),_&&(0,s.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:_}),(0,s.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,s.jsx)(o.K,{variant:"secondary",size:"sm",onClick:T,children:"Cancel"}),(0,s.jsx)(o.K,{size:"sm",onClick:()=>void R(),disabled:b||!a.trim()||!u.trim(),icon:b?(0,s.jsx)(c.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:b?"Registering…":"Register Node"})]})]})})}],14098)},25398,e=>{var t=e.i(56420);let n={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],25398)},90317,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var a={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return d},createSnapshot:function(){return h},getOrCreateGlobalAsyncLocalStorage:function(){return l}};for(var s in a)Object.defineProperty(n,s,{enumerable:!0,get:a[s]});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class o{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="u">typeof globalThis&&globalThis.AsyncLocalStorage;function d(){return i?new i:new o}function l(e){let t=Symbol.for(`@next/${e}@16.4.3`),n=globalThis;return n[t]??=d()}function c(e){return i?i.bind(e):o.bind(e)}function h(){return i?i.snapshot():function(e,...t){return e(...t)}}},42344,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorageInstance",{enumerable:!0,get:function(){return a}});let a=(0,e.r(90317).getOrCreateGlobalAsyncLocalStorage)("work-async-storage")},63599,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorage",{enumerable:!0,get:function(){return a.workAsyncStorageInstance}});let a=e.r(42344)},70703,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let a=e.r(55682)._(e.r(69093));function s(e,t){let n={};"function"==typeof e&&(n.loader=e);let s={...n,...t};return(0,a.default)({...s,modules:s.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},9885,(e,t,n)=>{function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return a}})},67585,(e,t,n)=>{e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return o}});let a=e.r(71645),s=e.r(74080);e.r(32061);let r=e.r(49354).createReactBrowserBailoutReason.bind(null,"next/dynamic");function o({children:e}){return(0,a.use)((0,s.browser)(r)),e}},69093,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return l}});let a=e.r(43476),s=e.r(71645),r=e.r(67585),o=e.r(52157);function i(e){return{default:e&&"default"in e?e.default:e}}let d={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},l=function(e){let t={...d,...e},n=(0,s.lazy)(()=>t.loader().then(i)),l=t.loading;function c(e){let i=l?(0,a.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,d=!t.ssr||!!t.loading,c=d?s.Suspense:s.Fragment,h=t.ssr?(0,a.jsxs)(a.Fragment,{children:["u"<typeof window?(0,a.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(n,{...e})]}):(0,a.jsx)(r.BailoutToCSRForNextDynamic,{children:(0,a.jsx)(n,{...e})});return(0,a.jsx)(c,{...d?{fallback:i}:{},children:h})}return c.displayName="LoadableComponent",c}},52157,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return d}});let a=e.r(43476),s=e.r(74080),r=e.r(63599),o=e.r(9885),i=e.r(43369);function d({moduleIds:e}){if("u">typeof window)return null;let t=r.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let a=t.reactLoadableManifest;for(let t of e){if(!a[t])continue;let e=a[t].files;n.push(...e)}}if(0===n.length)return null;let l=(0,i.getAssetTokenQuery)();return(0,a.jsx)(a.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${l}`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,s.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},49354,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var a={createReactBrowserBailoutReason:function(){return o},getReactBrowserBailoutReason:function(){return i},isNextBrowserBailoutError:function(){return d}};for(var s in a)Object.defineProperty(n,s,{enumerable:!0,get:a[s]});let r=Symbol.for("next.browser-bailout-reason");function o(e){return{$$typeof:r,reason:e}}function i(e){let t=e?.cause;return t?.$$typeof===r?t.reason:void 0}function d(e){return void 0!==i(e)}}])})();
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53721,63646,e=>{var t=e.i(43476),n=e.i(53138),a=e.i(46670),s=e.i(64971);let r={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."}},o={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 i(e){return(e?r[e]:void 0)??o}async function d(e){let t=await (0,s.O)(e),n=(0,s.R)(t),a=t?.error?.code;return n?"string"!=typeof a||n.includes(a)?n:`${n} (${a})`:e instanceof Error?e.message:String(e)}let l=["failed","refused","skipped","requested","watching","ambiguous"];function c(e){return e&&"running"!==e.status?e.nodes.filter(e=>l.includes(e.state)).length+(e.excluded??[]).filter(e=>e.code&&!i(e.code).informational).length:0}function h(e){return e.problems.map(e=>`${e.code}: ${e.detail}. ${e.remedy}`).join("\n")}e.s(["c",0,function(e){return e?.response?.status===404},"b",0,function(e){return e.detail?e.code&&!e.detail.includes(e.code)?`${e.code}: ${e.detail}`:e.detail:e.code??null},"K",0,h,"V",0,function(e){return i(e).remedy},"w",0,c,"v",0,function(e){return c(e)>0},"P",0,function(e){switch(e.status){case"succeeded":return"Last run: succeeded";case"partial":return`Last run: partial, ${e.attention?.length??0} node(s) need attention`;case"failed":return e.suspectedRelease?"Last run: failed, a release problem is suspected but unproven":"Last run: failed, on evidence about the release";default:return`Last run: ${e.status}`}},"Q",0,function(e){let t=e.version===e.serverVersion?" (the agent version bundled with this server)":"",n=e.release&&!e.release.verified?`; not verified on the registry: ${e.release.reason??"unknown"}`:"";return`Target: magnus-agent ${e.version}${t}${e.prerelease?", a prerelease":""}${n}`},"s",0,d],63646),e.s(["x",0,function({readiness:e}){return e?.status!=="not-ready"?null:(0,t.jsx)("span",{title:h(e),"data-testid":"upgrade-readiness-badge",children:(0,t.jsxs)(a.t,{variant:"warning",children:[(0,t.jsx)(n.f,{className:"mr-1 inline h-3 w-3"}),"Upgrade blocked (",e.problems.length,")"]})})},"a",0,function({readiness:e}){return e?.status!=="not-ready"?null:(0,t.jsxs)("div",{className:"rounded border border-warning/40 bg-warning/10 px-3 py-2 text-[11px]","data-testid":"upgrade-readiness-panel",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 font-bold uppercase tracking-wider text-warning",children:[(0,t.jsx)(n.f,{className:"h-3.5 w-3.5"})," This node could not take an agent upgrade now"]}),(0,t.jsx)("ul",{className:"mt-2 space-y-2",children:e.problems.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("p",{className:"font-medium text-text",children:[(0,t.jsx)("span",{className:"num",children:e.code}),": ",e.detail]}),(0,t.jsx)("p",{className:"text-text-muted",children:e.remedy})]},`${e.code}-${e.detail}`))})]})}],53721)},57108,e=>{var t=e.i(43476),n=e.i(46670);e.s(["f",0,function({configuration:e}){if(e?.memoryProvider!=="hivemem")return null;let a=e.hiveMemToken,s=a?.status??"unknown";return(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsxs)(n.t,{variant:"valid"===s?"success":"expiring"===s||"unreachable"===s||"unknown"===s?"warning":"danger",children:["Token ",s]}),a?.expiresAt&&(0,t.jsxs)("time",{dateTime:a.expiresAt,title:"HiveMem token expiration",children:["expires ",new Date(a.expiresAt).toLocaleString()]}),a?.checkedAt&&(0,t.jsxs)("time",{dateTime:a.checkedAt,className:"text-text-muted/70",title:"Last HiveMem authentication check",children:["checked ",new Date(a.checkedAt).toLocaleString()]})]})}])},46670,e=>{var t=e.i(43476),n=e.i(78571);let a={default:"border-border text-text-muted",success:"border-success/40 text-success bg-success/5 shadow-[0_0_6px_rgba(0,255,65,0.15)]",warning:"border-warning/40 text-warning bg-warning/5 shadow-[0_0_6px_rgba(255,179,0,0.15)]",danger:"border-danger/40 text-danger bg-danger/5 shadow-[0_0_6px_rgba(255,23,68,0.15)]",info:"border-info/40 text-info bg-info/5 shadow-[0_0_6px_rgba(0,176,255,0.15)]"},s={default:"bg-text-muted",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"};e.s(["t",0,function({children:e,variant:r="default",className:o,dot:i=!1,pulse:d=!1}){return(0,t.jsxs)("span",{className:(0,n.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",a[r],o),children:[i&&(0,t.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[d&&(0,t.jsx)("span",{className:(0,n.f)("absolute inset-0 rounded-full animate-halo",s[r])}),(0,t.jsx)("span",{className:(0,n.f)("relative inline-flex h-1.5 w-1.5 rounded-full",s[r])})]}),e]})},"k",0,function(e){switch(e.toUpperCase()){case"ONLINE":case"COMPLETED":case"ACTIVE":case"RUNNING":case"INSTALLED":case"HEALTHY":return"success";case"DEGRADED":case"PAUSED":case"QUEUED":case"PENDING":case"INSTALLING":return"warning";case"OFFLINE":case"FAILED":case"ERROR":case"TIMEOUT":case"CANCELLED":case"DECOMMISSIONED":case"CRITICAL":return"danger";case"PROVISIONING":case"UPDATING":return"info";default:return"default"}}])},93999,51196,55427,e=>{var t=e.i(43476),n=e.i(56420);let a={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};a.node;let s=(0,n.f)(a);var r=e.i(75775),o=e.i(78571),i=e.i(3062),d=e.i(35084);let l={warning:"shadow-[0_0_6px_var(--color-warning)]",danger:"shadow-[0_0_8px_var(--color-danger)]",accent:"shadow-[0_0_6px_var(--color-accent)]",primary:"shadow-[0_0_6px_var(--color-primary)]"},c={xs:"h-1",sm:"h-1.5",md:"h-2"};function h({value:e,max:n=100,tone:a,thresholds:s=d.q,label:r,size:i="xs",showValue:u=!1,valueLabel:m,glow:g,className:f,testId:p}){let x="number"==typeof e&&Number.isFinite(e),y=x?Math.max(0,Math.min(100,e/(n||1)*100)):0,v=a??(x?(0,d.Z)(y,s):"muted"),N=g||!a&&x&&y>=s.warn,E=m??(x?`${y.toFixed(+(y<10&&y>0))}%`:"—");return(0,t.jsxs)("div",{className:(0,o.f)("flex min-w-0 items-center gap-2",f),"data-testid":p,children:[(0,t.jsx)("div",{role:"meter","aria-label":r,"aria-valuemin":0,"aria-valuemax":n,"aria-valuenow":x?e:void 0,"aria-valuetext":E,className:(0,o.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",c[i]),children:(0,t.jsx)("div",{style:{"--meter":`${y}%`},className:(0,o.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",d.H[v],N&&l[v])})}),u&&(0,t.jsx)("span",{className:(0,o.f)("num w-11 shrink-0 text-right text-[11px]",x?d.T[v]:"text-text-muted"),children:E})]})}e.s(["f",0,h],51196);var u=e.i(71645);function m({values:e,tone:n="primary",width:a=160,height:s=32,area:r=!0,max:i,percent:l=!1,threshold:c,live:h=!0,emptyLabel:g="not enough data",className:f,testId:p,label:x,stretch:y=!1}){let v=`spark${(0,u.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,t.jsx)("div",{className:(0,o.f)("flex h-8 items-center text-xs italic text-text-muted",f),"data-testid":p,children:g});let N=d.v[n],E=i??(l?Math.max(100,...e):Math.max(...e,c??0)||1),b=s-4,w=a/(e.length-1),_=e=>2+b-Math.max(0,e)/E*b,j=e.map((e,t)=>[t*w,_(e)]),R=j.map(([e,t])=>`${e.toFixed(1)},${t.toFixed(1)}`).join(" "),T=j[j.length-1];return(0,t.jsxs)("svg",{width:y?"100%":a,height:s,viewBox:`0 0 ${a} ${s}`,preserveAspectRatio:y?"none":void 0,className:(0,o.f)("block overflow-visible",f),"data-testid":p,role:x?"img":void 0,"aria-label":x,"aria-hidden":!x||void 0,children:[r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:v,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:N,stopOpacity:.35}),(0,t.jsx)("stop",{offset:"100%",stopColor:N,stopOpacity:0})]})}),(0,t.jsx)("polygon",{points:`0,${s} ${R} ${a},${s}`,fill:`url(#${v})`})]}),void 0!==c&&(0,t.jsx)("line",{x1:0,x2:a,y1:_(c),y2:_(c),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,t.jsx)("polyline",{fill:"none",stroke:N,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:R}),h&&!y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:T[0],cy:T[1],r:2.5,fill:N,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,t.jsx)("circle",{cx:T[0],cy:T[1],r:2,fill:N})]})]})}e.s(["f",0,m],55427),e.s(["N",0,function({title:e,description:n,children:a,className:s,action:r,tone:o,corners:d=!1,...l}){return(0,t.jsx)(i.f,{...l,tone:o,corners:d,title:e,description:n,action:r,className:s,children:a})},"n",0,function({label:e,value:n,icon:a,trend:l,spark:c,meter:u,delta:g,tone:f="primary",className:p,testId:x}){let y=!g||g.value>=0===(g.positiveIsGood??!0);return(0,t.jsxs)(i.f,{tone:f,className:(0,o.f)("overflow-hidden",p),testId:x,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:e}),a&&(0,t.jsx)("span",{className:"text-primary/60",children:a})]}),(0,t.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,t.jsx)("div",{className:(0,o.f)("num text-2xl font-bold","primary"===f?"text-primary neon-text":d.T[f]),children:n}),g&&0!==g.value&&(0,t.jsxs)("span",{className:(0,o.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",y?"text-success":"text-danger"),children:[g.value>0?(0,t.jsx)(r.f,{className:"h-3 w-3"}):(0,t.jsx)(s,{className:"h-3 w-3"}),Math.abs(g.value).toFixed(+!Number.isInteger(g.value)),g.unit]})]}),l&&(0,t.jsx)("div",{className:(0,o.f)("mt-1 text-[11px]",l.positive?"text-success":"text-danger"),children:l.value}),void 0!==u&&(0,t.jsx)(h,{value:u,className:"mt-3",label:e}),c&&c.length>1&&(0,t.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,t.jsx)(m,{values:c,tone:f,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},54149,21176,e=>{var t=e.i(43476),n=e.i(71645),a=e.i(78571),s=e.i(35084);e.s(["f",0,function({value:e,max:r=100,label:o,sublabel:i,tone:d,thresholds:l=s.q,higherIsBetter:c=!1,size:h=140,display:u,ticks:m=!0,hideLabel:g=!1,className:f,testId:p}){let x=(0,n.useId)().replace(/:/g,""),y="number"==typeof e&&Number.isFinite(e),v=y?Math.max(0,Math.min(100,e/(r||1)*100)):0,N=d??(y?c?(0,s.Z)(100-v,l):(0,s.Z)(v,l):"muted"),E=Math.max(4,Math.round(h/16)),b=50-E/2-4,w=2*Math.PI*b,_=.75*w,j=_*v/100,R=h>=140,T=u??(y?`${Math.round(v)}%`:"—"),A=m?Array.from({length:11},(e,n)=>{let a=(135+270*n/10)*Math.PI/180,s=50-(n%5==0?4:2.5);return(0,t.jsx)("line",{x1:50+48.5*Math.cos(a),y1:50+48.5*Math.sin(a),x2:50+s*Math.cos(a),y2:50+s*Math.sin(a),stroke:"var(--color-border-strong)",strokeWidth:.8},n)}):null;return(0,t.jsxs)("div",{role:"img","aria-label":`${o}: ${T}`,"data-testid":p,className:(0,a.f)("relative inline-flex flex-col items-center",f),style:{width:h},children:[(0,t.jsxs)("svg",{viewBox:"0 0 100 100",width:h,height:h,"aria-hidden":"true",className:"overflow-visible",children:[R&&(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:`g${x}`,x:"-30%",y:"-30%",width:"160%",height:"160%",children:[(0,t.jsx)("feGaussianBlur",{stdDeviation:"2.2",result:"blur"}),(0,t.jsxs)("feMerge",{children:[(0,t.jsx)("feMergeNode",{in:"blur"}),(0,t.jsx)("feMergeNode",{in:"SourceGraphic"})]})]})}),A,(0,t.jsx)("circle",{cx:50,cy:50,r:b,fill:"none",stroke:"var(--color-border)",strokeWidth:E,strokeLinecap:"round",strokeDasharray:`${_} ${w}`,transform:"rotate(135 50 50)"}),(0,t.jsx)("circle",{cx:50,cy:50,r:b,fill:"none",stroke:s.v[N],strokeWidth:E,strokeLinecap:"round",transform:"rotate(135 50 50)",filter:R?`url(#g${x})`:void 0,style:{"--dash":`${j} ${w}`},className:"[stroke-dasharray:var(--dash)] transition-[stroke-dasharray] duration-1000 ease-out-expo starting:[stroke-dasharray:0_1000]"})]}),(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center",style:{height:h},children:[(0,t.jsx)("span",{className:(0,a.f)("num font-bold leading-none",s.T[N],R&&s.z[N]),style:{fontSize:Math.max(12,.2*h)},children:T}),i&&(0,t.jsx)("span",{className:"num mt-1 text-text-muted",style:{fontSize:Math.max(9,.075*h)},children:i})]}),!g&&(0,t.jsx)("span",{className:"-mt-[10%] text-center text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:o})]})}],54149);var r=e.i(70703),o=e.i(65369);let i=(0,r.default)(()=>e.A(1321),{loadableGenerated:{modules:[69944]},ssr:!1,loading:()=>(0,t.jsx)(o.l,{className:"h-[180px] w-full"})});e.s(["f",0,i],21176)},3062,e=>{var t=e.i(43476),n=e.i(78571),a=e.i(35084);let s={primary:"[--panel-corner-color:color-mix(in_srgb,var(--color-primary)_60%,transparent)]",accent:"[--panel-corner-color:color-mix(in_srgb,var(--color-accent)_70%,transparent)]",success:"[--panel-corner-color:color-mix(in_srgb,var(--color-success)_60%,transparent)]",warning:"[--panel-corner-color:color-mix(in_srgb,var(--color-warning)_70%,transparent)]",danger:"[--panel-corner-color:color-mix(in_srgb,var(--color-danger)_70%,transparent)]",info:"[--panel-corner-color:color-mix(in_srgb,var(--color-info)_60%,transparent)]",muted:"[--panel-corner-color:var(--color-border-strong)]"},r={primary:"[--glow-hover-color:var(--color-glow)]",accent:"[--glow-hover-color:var(--color-glow-accent)]",success:"[--glow-hover-color:var(--color-glow-success)]",warning:"[--glow-hover-color:var(--color-glow-warning)]",danger:"[--glow-hover-color:var(--color-glow-danger)]",info:"[--glow-hover-color:var(--color-glow)]",muted:"[--glow-hover-color:var(--color-glow)]"},o={primary:"hover:border-primary/30",accent:"hover:border-accent/40",success:"hover:border-success/30",warning:"hover:border-warning/40",danger:"hover:border-danger/40",info:"hover:border-info/30",muted:"hover:border-border-strong"},i={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:d=!0,interactive:l=!0,hero:c=!1,title:h,description:u,icon:m,action:g,as:f="div",padding:p="md",testId:x,className:y,children:v,...N}){return(0,t.jsxs)(f,{...N,"data-testid":x??N["data-testid"],className:(0,n.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",i[p],d&&"panel-corners",d&&s[e],l&&"glow-hover",l&&r[e],l&&o[e],c&&"grid-bg overflow-hidden bg-surface/80",y),children:[(h||g||m)&&(0,t.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[m&&(0,t.jsx)("span",{className:(0,n.f)("mt-0.5 shrink-0",a.T[e]),children:m}),(0,t.jsxs)("div",{className:"min-w-0",children:[h&&(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:h}),u&&(0,t.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:u})]})]}),g]}),v]})}])},65369,e=>{var t=e.i(43476),n=e.i(78571);function a({className:e}){return(0,t.jsx)("div",{"aria-hidden":"true",className:(0,n.f)("skeleton h-3 w-full",e)})}e.s(["l",0,a,"g",0,function({count:e=4,className:s}){return(0,t.jsx)("div",{role:"status","aria-label":"Loading",className:(0,n.f)("grid gap-4 sm:grid-cols-2 lg:grid-cols-4",s),children:Array.from({length:e},(e,n)=>(0,t.jsxs)("div",{className:"panel-corners rounded-panel border border-border bg-surface p-5",children:[(0,t.jsx)(a,{className:"h-2 w-1/2"}),(0,t.jsx)(a,{className:"mt-4 h-7 w-2/3"}),(0,t.jsx)(a,{className:"mt-3 h-1 w-full opacity-60"})]},n))})},"F",0,function({rows:e=5,cols:s=4,className:r}){return(0,t.jsxs)("div",{role:"status","aria-label":"Loading",className:(0,n.f)("overflow-hidden rounded-panel border border-border",r),children:[(0,t.jsx)("div",{className:"flex gap-4 border-b border-border bg-surface px-4 py-3",children:Array.from({length:s},(e,n)=>(0,t.jsx)(a,{className:"h-2 flex-1 opacity-60"},n))}),Array.from({length:e},(e,r)=>(0,t.jsx)("div",{className:"flex gap-4 border-b border-border/50 px-4 py-3 last:border-0",children:Array.from({length:s},(e,s)=>(0,t.jsx)(a,{className:(0,n.f)("h-3 flex-1",(r+s)%3==0&&"max-w-[60%]")},s))},r))]})},"Q",0,function({lines:e=3,className:s}){let r=["w-full","w-11/12","w-4/5","w-2/3","w-3/4"];return(0,t.jsx)("div",{role:"status","aria-label":"Loading",className:(0,n.f)("space-y-2",s),children:Array.from({length:e},(e,n)=>(0,t.jsx)(a,{className:r[n%r.length]},n))})}])},75723,e=>{var t=e.i(43476),n=e.i(78571),a=e.i(46670);let s={success:"bg-success shadow-[0_0_6px_var(--color-success)]",warning:"bg-warning shadow-[0_0_6px_var(--color-warning)]",danger:"bg-danger shadow-[0_0_6px_var(--color-danger)]",info:"bg-info shadow-[0_0_6px_var(--color-info)]",default:"bg-text-muted"},r={success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info",default:"bg-text-muted"},o=new Set(["ONLINE","RUNNING","ACTIVE","HEALTHY","CRITICAL","UPDATING","PROVISIONING"]);e.s(["f",0,function({status:e,pulse:i,size:d="sm",className:l,label:c}){let h=(0,a.k)(e),u=i??o.has(e.toUpperCase()),m="xs"===d?"h-1.5 w-1.5":"h-2 w-2";return(0,t.jsxs)("span",{className:(0,n.f)("relative inline-flex shrink-0",m,l),role:c?"img":void 0,"aria-label":c,"aria-hidden":!c||void 0,children:[u&&(0,t.jsx)("span",{className:(0,n.f)("absolute inset-0 rounded-full animate-halo",r[h])}),(0,t.jsx)("span",{className:(0,n.f)("relative inline-flex rounded-full",m,s[h])})]})}])},71417,e=>{e.s(["L",0,function(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(1))} ${["B","KB","MB","GB","TB"][t]}`},"C",0,function(e){return e?("string"==typeof e?new Date(e):e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}])},79432,e=>{var t=e.i(56420);let n={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],79432)},9347,e=>{var t=e.i(56420);let n={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],9347)},75775,e=>{var t=e.i(56420);let n={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],75775)},82022,e=>{var t=e.i(56420);let n={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],82022)},57665,e=>{var t=e.i(56420);let n={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],57665)},86207,14098,e=>{var t=e.i(56420);let n={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"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],86207);var s=e.i(43476),r=e.i(71645),o=e.i(68759),i=e.i(32568),d=e.i(82983),l=e.i(41220),c=e.i(32781);e.s(["E",0,function({open:e,node:t,onClose:n,onSaved:a}){let[h,u]=(0,r.useState)([]),[m,g]=(0,r.useState)(""),[f,p]=(0,r.useState)(!0),[x,y]=(0,r.useState)(!1),[v,N]=(0,r.useState)(""),[E,b]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e&&(N(""),g(t?.role?.id??""),p(!0),b(!0),(async()=>{try{let e=await d.f.roles.list();u(e.data??[])}catch{N("Failed to load roles")}finally{b(!1)}})())},[e,t?.role?.id]);let w=async()=>{if(t){y(!0),N("");try{let e=t.role?.id;e&&e!==m&&await d.f.roles.unassign(e,{nodeIds:[t.id]}),m&&await d.f.roles.assign(m,{nodeIds:[t.id],defer:!f});let s=m?h.find(e=>e.id===m)??null:null;a(s),n()}catch(e){N(e instanceof Error?e.message:"Failed to assign role")}finally{y(!1)}}},_=async()=>{if(t?.role){y(!0),N("");try{await d.f.roles.unassign(t.role.id,{nodeIds:[t.id]}),a(null),n()}catch(e){N(e instanceof Error?e.message:"Failed to unassign role")}finally{y(!1)}}},j=()=>{N(""),y(!1),n()};return(0,s.jsx)(i.n,{open:e,onClose:j,title:t?.role?"Change Role":"Assign Role",description:t?`Node: ${t.name}`:"",icon:(0,s.jsx)(l.f,{className:"h-5 w-5 text-primary"}),children:(0,s.jsxs)("div",{className:"space-y-4",children:[E?(0,s.jsxs)("div",{className:"flex items-center gap-2 py-4 text-xs text-text-muted",children:[(0,s.jsx)(c.f,{className:"h-4 w-4 animate-spin"}),"Loading roles…"]}):0===h.length?(0,s.jsx)("p",{className:"text-xs text-text-muted py-4",children:"No roles found. Create a role first on the Roles page."}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.G,{label:"Role",children:(0,s.jsxs)("select",{value:m,onChange:e=>g(e.target.value),className:i.N,children:[(0,s.jsx)("option",{value:"",children:"— No role —"}),h.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]})}),m&&(0,s.jsxs)("label",{className:"flex items-center gap-2 text-xs cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:f,onChange:e=>p(e.target.checked),className:"rounded border-border"}),"Apply role immediately"]})]}),v&&(0,s.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:v}),(0,s.jsxs)("div",{className:"flex justify-between pt-2",children:[(0,s.jsx)("div",{children:t?.role&&(0,s.jsx)(o.K,{variant:"secondary",size:"sm",onClick:()=>void _(),disabled:x,children:"Unassign Role"})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.K,{variant:"secondary",size:"sm",onClick:j,children:"Cancel"}),(0,s.jsx)(o.K,{size:"sm",onClick:()=>void w(),disabled:x||!m||0===h.length,icon:x?(0,s.jsx)(c.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:x?"Saving…":t?.role?"Change Role":"Assign Role"})]})]})]})})},"F",0,function({open:e,node:t,onClose:n,onSaved:a}){let[h,u]=(0,r.useState)(""),[m,g]=(0,r.useState)(""),[f,p]=(0,r.useState)(""),[x,y]=(0,r.useState)(!1),[v,N]=(0,r.useState)("");(0,r.useEffect)(()=>{if(t){u(t.name);try{let e=JSON.parse(t.tags);g(e.join(", "))}catch{g("")}p(t.status),N("")}},[t]);let E=async()=>{if(t&&h.trim()){y(!0),N("");try{let e=m.split(",").map(e=>e.trim()).filter(Boolean);await d.f.nodes.update(t.id,{name:h.trim(),tags:e,status:f.toUpperCase()}),a(),n()}catch(e){N(e instanceof Error?e.message:"Failed to update node")}finally{y(!1)}}},b=()=>{N(""),y(!1),n()};return(0,s.jsx)(i.n,{open:e,onClose:b,title:"Edit Node",description:t?`${t.hostname}`:"",icon:(0,s.jsx)(l.f,{className:"h-5 w-5 text-primary"}),children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(i.G,{label:"Name",required:!0,children:(0,s.jsx)("input",{type:"text",value:h,onChange:e=>u(e.target.value),className:i.W})}),(0,s.jsx)(i.G,{label:"Status",children:(0,s.jsxs)("select",{value:f,onChange:e=>p(e.target.value),className:i.N,children:[(0,s.jsx)("option",{value:"ONLINE",children:"ONLINE"}),(0,s.jsx)("option",{value:"OFFLINE",children:"OFFLINE"}),(0,s.jsx)("option",{value:"DEGRADED",children:"DEGRADED"}),(0,s.jsx)("option",{value:"PROVISIONING",children:"PROVISIONING"}),(0,s.jsx)("option",{value:"MAINTENANCE",children:"MAINTENANCE"})]})}),(0,s.jsxs)(i.G,{label:"Tags",children:[(0,s.jsx)("input",{type:"text",value:m,onChange:e=>g(e.target.value),placeholder:"web, production, us-east",className:i.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated list of tags"})]}),v&&(0,s.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:v}),(0,s.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,s.jsx)(o.K,{variant:"secondary",size:"sm",onClick:b,children:"Cancel"}),(0,s.jsx)(o.K,{size:"sm",onClick:()=>void E(),disabled:x||!h.trim(),icon:x?(0,s.jsx)(c.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:x?"Saving…":"Save Changes"})]})]})})},"M",0,function({open:e,onClose:t,onRegistered:n}){let[a,h]=(0,r.useState)(""),[u,m]=(0,r.useState)(""),[g,f]=(0,r.useState)("4100"),[p,x]=(0,r.useState)("linux"),[y,v]=(0,r.useState)("x86_64"),[N,E]=(0,r.useState)(""),[b,w]=(0,r.useState)(!1),[_,j]=(0,r.useState)(""),R=async()=>{if(a.trim()&&u.trim()){w(!0),j("");try{let e=N.split(",").map(e=>e.trim()).filter(Boolean);await d.f.nodes.register({name:a.trim(),hostname:u.trim(),ipAddress:u.trim(),port:Number(g)||4100,os:p,arch:y,tags:e,agentVersion:"2.1.0"}),n(),T()}catch(e){j(e instanceof Error?e.message:"Failed to register node")}finally{w(!1)}}},T=()=>{h(""),m(""),f("4100"),x("linux"),v("x86_64"),E(""),j(""),w(!1),t()};return(0,s.jsx)(i.n,{open:e,onClose:T,title:"Register Node",description:"Manually register a node already running the agent",icon:(0,s.jsx)(l.f,{className:"h-5 w-5 text-primary"}),children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(i.G,{label:"Node Name",required:!0,children:(0,s.jsx)("input",{type:"text",value:a,onChange:e=>h(e.target.value),placeholder:"web-server-01",className:i.W,autoFocus:!0})}),(0,s.jsx)(i.G,{label:"FQDN / Hostname",required:!0,children:(0,s.jsx)("input",{type:"text",value:u,onChange:e=>m(e.target.value),placeholder:"node-1.example.com",className:i.W})}),(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,s.jsx)(i.G,{label:"Port",children:(0,s.jsx)("input",{type:"number",value:g,onChange:e=>f(e.target.value),className:i.W})}),(0,s.jsx)(i.G,{label:"OS",children:(0,s.jsxs)("select",{value:p,onChange:e=>x(e.target.value),className:i.N,children:[(0,s.jsx)("option",{value:"linux",children:"Linux"}),(0,s.jsx)("option",{value:"darwin",children:"macOS"}),(0,s.jsx)("option",{value:"windows",children:"Windows"})]})}),(0,s.jsx)(i.G,{label:"Architecture",children:(0,s.jsxs)("select",{value:y,onChange:e=>v(e.target.value),className:i.N,children:[(0,s.jsx)("option",{value:"x86_64",children:"x86_64"}),(0,s.jsx)("option",{value:"aarch64",children:"aarch64"}),(0,s.jsx)("option",{value:"arm",children:"arm"})]})})]}),(0,s.jsxs)(i.G,{label:"Tags",children:[(0,s.jsx)("input",{type:"text",value:N,onChange:e=>E(e.target.value),placeholder:"web, production, us-east",className:i.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated"})]}),_&&(0,s.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:_}),(0,s.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,s.jsx)(o.K,{variant:"secondary",size:"sm",onClick:T,children:"Cancel"}),(0,s.jsx)(o.K,{size:"sm",onClick:()=>void R(),disabled:b||!a.trim()||!u.trim(),icon:b?(0,s.jsx)(c.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:b?"Registering…":"Register Node"})]})]})})}],14098)},25398,e=>{var t=e.i(56420);let n={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],25398)},90317,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var a={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return d},createSnapshot:function(){return h},getOrCreateGlobalAsyncLocalStorage:function(){return l}};for(var s in a)Object.defineProperty(n,s,{enumerable:!0,get:a[s]});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class o{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="u">typeof globalThis&&globalThis.AsyncLocalStorage;function d(){return i?new i:new o}function l(e){let t=Symbol.for(`@next/${e}@16.4.3`),n=globalThis;return n[t]??=d()}function c(e){return i?i.bind(e):o.bind(e)}function h(){return i?i.snapshot():function(e,...t){return e(...t)}}},42344,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorageInstance",{enumerable:!0,get:function(){return a}});let a=(0,e.r(90317).getOrCreateGlobalAsyncLocalStorage)("work-async-storage")},63599,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorage",{enumerable:!0,get:function(){return a.workAsyncStorageInstance}});let a=e.r(42344)},70703,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let a=e.r(55682)._(e.r(69093));function s(e,t){let n={};"function"==typeof e&&(n.loader=e);let s={...n,...t};return(0,a.default)({...s,modules:s.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},9885,(e,t,n)=>{function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return a}})},67585,(e,t,n)=>{e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return o}});let a=e.r(71645),s=e.r(74080);e.r(32061);let r=e.r(49354).createReactBrowserBailoutReason.bind(null,"next/dynamic");function o({children:e}){return(0,a.use)((0,s.browser)(r)),e}},69093,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return l}});let a=e.r(43476),s=e.r(71645),r=e.r(67585),o=e.r(52157);function i(e){return{default:e&&"default"in e?e.default:e}}let d={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},l=function(e){let t={...d,...e},n=(0,s.lazy)(()=>t.loader().then(i)),l=t.loading;function c(e){let i=l?(0,a.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,d=!t.ssr||!!t.loading,c=d?s.Suspense:s.Fragment,h=t.ssr?(0,a.jsxs)(a.Fragment,{children:["u"<typeof window?(0,a.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(n,{...e})]}):(0,a.jsx)(r.BailoutToCSRForNextDynamic,{children:(0,a.jsx)(n,{...e})});return(0,a.jsx)(c,{...d?{fallback:i}:{},children:h})}return c.displayName="LoadableComponent",c}},52157,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return d}});let a=e.r(43476),s=e.r(74080),r=e.r(63599),o=e.r(9885),i=e.r(43369);function d({moduleIds:e}){if("u">typeof window)return null;let t=r.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let a=t.reactLoadableManifest;for(let t of e){if(!a[t])continue;let e=a[t].files;n.push(...e)}}if(0===n.length)return null;let l=(0,i.getAssetTokenQuery)();return(0,a.jsx)(a.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${l}`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,s.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},49354,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var a={createReactBrowserBailoutReason:function(){return o},getReactBrowserBailoutReason:function(){return i},isNextBrowserBailoutError:function(){return d}};for(var s in a)Object.defineProperty(n,s,{enumerable:!0,get:a[s]});let r=Symbol.for("next.browser-bailout-reason");function o(e){return{$$typeof:r,reason:e}}function i(e){let t=e?.cause;return t?.$$typeof===r?t.reason:void 0}function d(e){return void 0!==i(e)}}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89458,e=>{var s=e.i(43476),a=e.i(71645),t=e.i(82983),r=e.i(4050),l=e.i(93999),n=e.i(68759),i=e.i(46670),c=e.i(31624),o=e.i(32568),d=e.i(84026),x=e.i(32781),m=e.i(77071),p=e.i(59659);function h({open:e,mode:r,role:l,onClose:i,onSaved:c}){let[u,g]=(0,a.useState)(""),[f,v]=(0,a.useState)(""),[b,j]=(0,a.useState)("active"),[N,y]=(0,a.useState)([]),[w,k]=(0,a.useState)(""),[C,_]=(0,a.useState)(""),[S,E]=(0,a.useState)([]),[A,I]=(0,a.useState)(!1),[D,M]=(0,a.useState)(!1),[F,z]=(0,a.useState)(""),[P,R]=(0,a.useState)(""),[L,$]=(0,a.useState)(!1),[T,O]=(0,a.useState)("restrictive"),[G,K]=(0,a.useState)(""),[U,W]=(0,a.useState)(!1),[H,V]=(0,a.useState)(""),[q,B]=(0,a.useState)([]),[J,Y]=(0,a.useState)("basic"),Z=(0,a.useCallback)(async()=>{try{let e=await t.f.library.files.list({pageSize:200});B((e.data??[]).map(e=>({id:e.id,name:e.name,fileName:e.fileName,mimeType:e.mimeType??""})))}catch{}},[]);(0,a.useEffect)(()=>{e&&Z()},[e,Z]),(0,a.useEffect)(()=>{"edit"===r&&l?(g(l.name),v(l.description),j(l.status),y(l.libraryFileIds),k(l.aptPackages.join(", ")),_(l.npmPackages.join(", ")),E(l.envConfig?Object.entries(l.envConfig).map(([e,s])=>({key:e,value:s})):l.envConfigKeys.map(e=>({key:e,value:""}))),I(l.dockerEnabled),M(l.dockerNonRoot),z(l.dockerImage??""),R((l.dockerVolumes??[]).join("\n")),$(l.firewallEnabled),O(l.firewallMode),K(l.firewallAllowRules.join(", "))):"create"===r&&(g(""),v(""),j("active"),y([]),k(""),_(""),E([{key:"OPENROUTER_API_KEY",value:""}]),I(!1),M(!1),z(""),R(""),$(!1),O("restrictive"),K("")),V(""),Y("basic")},[r,l]);let Q=e=>e.split(/[,\s]+/).map(e=>e.trim()).filter(Boolean),X=async()=>{if(!u.trim())return;W(!0),V("");let e={};for(let s of S)s.key.trim()&&(e[s.key.trim()]=s.value);let s={name:u.trim(),description:f.trim(),status:b,libraryFileIds:N,aptPackages:Q(w),npmPackages:Q(C),envConfig:e,dockerEnabled:A,dockerNonRoot:D,dockerImage:F.trim()||null,dockerVolumes:P.split(/[\n,]+/).map(e=>e.trim()).filter(Boolean),firewallEnabled:L,firewallMode:T,firewallAllowRules:Q(G)};try{"create"===r?await t.f.roles.create(s):l&&await t.f.roles.update(l.id,s),c(),ee()}catch(e){V(e instanceof Error?e.message:"Failed to save role")}finally{W(!1)}},ee=()=>{V(""),W(!1),i()},es=(e,s,a)=>{let t=[...S],r=t[e];r&&(t[e]={key:"key"===s?a:r.key,value:"value"===s?a:r.value}),E(t)},ea=e=>{y(s=>s.includes(e)?s.filter(s=>s!==e):[...s,e])},et=q.filter(e=>"application/x-magnus-skill"===e.mimeType),er=q.filter(e=>"application/x-magnus-cronjob"===e.mimeType);return(0,s.jsxs)(o.n,{open:e,onClose:ee,title:"create"===r?"Create Role":"Edit Role",description:"create"===r?"Define a reusable configuration for nodes":`Editing ${l?.name??""}`,icon:(0,s.jsx)(d.f,{className:"h-5 w-5 text-primary"}),className:"max-w-2xl",children:[(0,s.jsx)("div",{className:"flex gap-1 mb-4 border-b border-border pb-2",children:[{key:"basic",label:"Basic"},{key:"packages",label:"Packages & Env"},{key:"files",label:"Skills & Jobs"},{key:"docker",label:"Docker"},{key:"firewall",label:"Firewall"}].map(e=>(0,s.jsx)("button",{onClick:()=>Y(e.key),className:`px-3 py-1.5 text-xs font-bold rounded transition-all ${J===e.key?"bg-primary/10 text-primary border border-primary/50":"text-text-muted hover:text-text hover:bg-surface-hover border border-transparent"}`,children:e.label},e.key))}),(0,s.jsxs)("div",{className:"space-y-4 max-h-[60vh] overflow-y-auto pr-1",children:["basic"===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.G,{label:"Role Name",required:!0,children:(0,s.jsx)("input",{type:"text",value:u,onChange:e=>g(e.target.value),placeholder:"web-server",className:o.W,autoFocus:!0})}),(0,s.jsx)(o.G,{label:"Description",children:(0,s.jsx)("textarea",{value:f,onChange:e=>v(e.target.value),placeholder:"Standard web server role with Nginx and monitoring...",rows:3,className:o.M})}),(0,s.jsx)(o.G,{label:"Status",children:(0,s.jsxs)("select",{value:b,onChange:e=>j(e.target.value),className:o.N,children:[(0,s.jsx)("option",{value:"active",children:"Active"}),(0,s.jsx)("option",{value:"draft",children:"Draft"})]})})]}),"packages"===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.G,{label:"APT Packages",children:[(0,s.jsx)("input",{type:"text",value:w,onChange:e=>k(e.target.value),placeholder:"nginx, curl, htop, jq",className:o.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated package names"})]}),(0,s.jsxs)(o.G,{label:"NPM Global Packages",children:[(0,s.jsx)("input",{type:"text",value:C,onChange:e=>_(e.target.value),placeholder:"pm2, tsx",className:o.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated package names"})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,s.jsx)("label",{className:"text-[11px] font-bold uppercase tracking-wider text-text-muted",children:"Environment Variables"}),(0,s.jsxs)("button",{onClick:()=>{E([...S,{key:"",value:""}])},className:"flex items-center gap-1 text-xs text-primary hover:text-primary-hover",children:[(0,s.jsx)(m.f,{className:"h-3 w-3"})," Add"]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[S.map((e,a)=>(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("input",{type:"text",value:e.key,onChange:e=>es(a,"key",e.target.value),placeholder:"KEY_NAME",className:`${o.W} flex-1`}),(0,s.jsx)("input",{type:"password",value:e.value,onChange:e=>es(a,"value",e.target.value),placeholder:"value",className:`${o.W} flex-1`}),(0,s.jsx)("button",{onClick:()=>{E(S.filter((e,s)=>s!==a))},className:"text-text-muted hover:text-danger p-1",children:(0,s.jsx)(p.f,{className:"h-3.5 w-3.5"})})]},a)),0===S.length&&(0,s.jsx)("p",{className:"text-xs text-text-muted py-2",children:"No environment variables configured"})]})]})]}),"files"===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-[11px] font-bold uppercase tracking-wider text-text-muted mb-1.5",children:"Skills from Library"}),(0,s.jsx)("div",{className:"max-h-40 overflow-y-auto rounded border border-border bg-bg p-2 space-y-1",children:0===et.length?(0,s.jsx)("p",{className:"px-2 py-1 text-xs text-text-muted",children:"No skills in library — publish skills from the Skills page"}):et.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2 rounded px-2 py-1.5 hover:bg-surface-hover hover:shadow-[0_0_20px_var(--color-glow)] cursor-pointer transition-all",children:[(0,s.jsx)("input",{type:"checkbox",checked:N.includes(e.id),onChange:()=>ea(e.id),className:"accent-primary"}),(0,s.jsx)("span",{className:"text-xs",children:e.name}),(0,s.jsx)("span",{className:"text-xs text-text-muted ml-auto",children:e.fileName})]},e.id))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-[11px] font-bold uppercase tracking-wider text-text-muted mb-1.5",children:"Cron Jobs from Library"}),(0,s.jsx)("div",{className:"max-h-40 overflow-y-auto rounded border border-border bg-bg p-2 space-y-1",children:0===er.length?(0,s.jsx)("p",{className:"px-2 py-1 text-xs text-text-muted",children:"No cron jobs in library — publish jobs from the Cron page"}):er.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2 rounded px-2 py-1.5 hover:bg-surface-hover hover:shadow-[0_0_20px_var(--color-glow)] cursor-pointer transition-all",children:[(0,s.jsx)("input",{type:"checkbox",checked:N.includes(e.id),onChange:()=>ea(e.id),className:"accent-primary"}),(0,s.jsx)("span",{className:"text-xs",children:e.name}),(0,s.jsx)("span",{className:"text-xs text-text-muted ml-auto",children:e.fileName})]},e.id))})]})]}),"docker"===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.G,{label:"Docker Sandboxing",children:(0,s.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:A,onChange:e=>I(e.target.checked),className:"accent-primary h-4 w-4"}),(0,s.jsx)("span",{className:"text-xs",children:"Run workload inside Docker container"})]})}),A&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.G,{label:"Non-Root User",children:(0,s.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:D,onChange:e=>M(e.target.checked),className:"accent-primary h-4 w-4"}),(0,s.jsx)("span",{className:"text-xs",children:"Run as non-root user inside container"})]})}),(0,s.jsxs)(o.G,{label:"Custom Docker Image",children:[(0,s.jsx)("input",{type:"text",value:F,onChange:e=>z(e.target.value),placeholder:"node:22-slim (default)",className:o.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Leave empty for default node:22-slim"})]}),(0,s.jsxs)(o.G,{label:"Volume Mounts",children:[(0,s.jsx)("textarea",{value:P,onChange:e=>R(e.target.value),placeholder:"/host/path:/container/path (one per line)",rows:3,className:o.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"One volume mount per line, e.g. /mnt/data/output:/mnt/data/output"})]})]}),!A&&(0,s.jsx)("div",{className:"rounded border border-border bg-bg/50 p-4 text-center",children:(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Enable Docker sandboxing to run workloads in an isolated container with optional non-root user."})})]}),"firewall"===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.G,{label:"UFW Firewall",children:(0,s.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:L,onChange:e=>$(e.target.checked),className:"accent-primary h-4 w-4"}),(0,s.jsx)("span",{className:"text-xs",children:"Enable UFW firewall on the node"})]})}),L&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.G,{label:"Firewall Mode",children:(0,s.jsxs)("select",{value:T,onChange:e=>O(e.target.value),className:o.N,children:[(0,s.jsx)("option",{value:"restrictive",children:"Restrictive — Block private LAN, allow SSH + Magnus"}),(0,s.jsx)("option",{value:"permissive",children:"Permissive — Allow SSH + Magnus only"}),(0,s.jsx)("option",{value:"custom",children:"Custom — Define your own rules"})]})}),"restrictive"===T&&(0,s.jsxs)("div",{className:"rounded border border-warning/20 bg-warning/10 px-3 py-2 text-[11px] text-warning",children:[(0,s.jsx)("p",{className:"font-bold text-[10px] uppercase tracking-wider",children:"Auto-configured rules:"}),(0,s.jsxs)("ul",{className:"text-xs mt-1 space-y-0.5 text-warning/80",children:[(0,s.jsx)("li",{children:"• Allow SSH (port 22)"}),(0,s.jsx)("li",{children:"• Allow Magnus agent port (4100)"}),(0,s.jsx)("li",{children:"• Allow from control-api IP"}),(0,s.jsx)("li",{children:"• Deny 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16"})]})]}),"custom"===T&&(0,s.jsxs)(o.G,{label:"Custom Allow Rules",children:[(0,s.jsx)("input",{type:"text",value:G,onChange:e=>K(e.target.value),placeholder:"80/tcp, 443/tcp, 10.0.0.5",className:o.W}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Comma-separated. Port rules (80/tcp) or IP allow rules (10.0.0.5). SSH + Magnus agent are always allowed."})]})]}),!L&&(0,s.jsx)("div",{className:"rounded border border-border bg-bg/50 p-4 text-center",children:(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Enable UFW to firewall the node away from local networks while preserving Magnus agent communication."})})]})]}),H&&(0,s.jsx)("div",{className:"mt-4 rounded border border-danger/30 bg-danger/10 px-3 py-2 text-[11px] text-danger",children:H}),(0,s.jsxs)("div",{className:"flex justify-end gap-2 pt-4 mt-4 border-t border-border",children:[(0,s.jsx)(n.K,{variant:"secondary",size:"sm",onClick:ee,children:"Cancel"}),(0,s.jsx)(n.K,{size:"sm",onClick:()=>void X(),disabled:U||!u.trim(),icon:U?(0,s.jsx)(x.f,{className:"h-3.5 w-3.5 animate-spin"}):void 0,children:U?"Saving…":"create"===r?"Create Role":"Save Changes"})]})]})}var u=e.i(63376),g=e.i(15281),f=e.i(21357),v=e.i(56420);let b={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};b.node;let j=(0,v.f)(b);var N=e.i(41220),y=e.i(79258),w=e.i(26091);let k={name:"container",size:24,node:[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]]};k.node;let C=(0,v.f)(k);var _=e.i(82954),S=e.i(41120),E=e.i(67927),A=e.i(51757),I=e.i(83967),D=e.i(74544),M=e.i(99847);let F={name:"skip-forward",size:24,node:[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]]};F.node;let z=(0,v.f)(F);e.s(["default",0,function({initialRoles:e}){let{activeNode:o}=(0,r.l)(),[v,b]=(0,a.useState)(e),[k,F]=(0,a.useState)(null),[P,R]=(0,a.useState)([]),[L,$]=(0,a.useState)(!e.length),[T,O]=(0,a.useState)(e.length>0),[G,K]=(0,a.useState)(!1),[U,W]=(0,a.useState)("create"),[H,V]=(0,a.useState)(null),[q,B]=(0,a.useState)(!1),[J,Y]=(0,a.useState)([]),[Z,Q]=(0,a.useState)(!1),[X,ee]=(0,a.useState)(!1),es=(0,a.useCallback)(async()=>{try{let e=await t.f.roles.list();b(e.data??[])}catch{}finally{$(!1)}},[]),ea=(0,a.useCallback)(async e=>{try{let[s,a]=await Promise.all([t.f.roles.get(e),t.f.roles.applications.list({roleId:e})]),r=s.data;F(r),R(a.data??[])}catch{}},[]);(0,a.useEffect)(()=>{T?O(!1):es()},[es,o.id]),(0,a.useEffect)(()=>{if(!k)return;let e=setInterval(()=>{ea(k.id)},5e3);return()=>clearInterval(e)},[k,ea]);let et=()=>{W("create"),V(null),K(!0)},er=async e=>{if(confirm(`Delete role "${e.name}"? This will unassign all nodes.`))try{await t.f.roles.delete(e.id),k?.id===e.id&&F(null),await es()}catch{}},el=async()=>{await es(),k&&await ea(k.id)},en=async()=>{if(k&&0!==J.length){ee(!0);try{await t.f.roles.assign(k.id,{nodeIds:J,defer:Z}),B(!1),Y([]),await ea(k.id),await es()}catch{}finally{ee(!1)}}},ei=async e=>{if(k&&confirm("Unassign this node? This will remove the role configuration."))try{await t.f.roles.unassign(k.id,{nodeIds:[e]}),await ea(k.id),await es()}catch{}},ec=async()=>{if(k)try{await t.f.roles.apply(k.id),await ea(k.id)}catch{}};return(0,s.jsxs)(u.U,{className:"space-y-6",children:[(0,s.jsx)(u.z,{children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider",children:"Roles"}),(0,s.jsx)("p",{className:"mt-1 text-[11px] text-text-muted uppercase tracking-wider",children:"Define reusable node configurations with packages, files, Docker sandboxing, and firewall rules"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(n.K,{variant:"secondary",size:"sm",onClick:()=>void es(),icon:(0,s.jsx)(S.f,{className:"h-3.5 w-3.5"}),children:"Refresh"}),(0,s.jsx)(n.K,{size:"sm",onClick:et,icon:(0,s.jsx)(m.f,{className:"h-3.5 w-3.5"}),children:"New Role"})]})]})}),(0,s.jsx)(u.z,{children:(0,s.jsxs)("div",{className:"grid grid-cols-12 gap-6",children:[(0,s.jsx)("div",{className:"col-span-4",children:(0,s.jsx)(l.N,{children:L?(0,s.jsx)("div",{className:"flex justify-center py-8",children:(0,s.jsx)(x.f,{className:"h-6 w-6 animate-spin text-text-muted"})}):0===v.length?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)(d.f,{className:"mx-auto h-10 w-10 text-text-muted mb-2"}),(0,s.jsx)("p",{className:"text-[11px] text-text-muted",children:"No roles yet"}),(0,s.jsx)(n.K,{size:"sm",className:"mt-3",onClick:et,icon:(0,s.jsx)(m.f,{className:"h-3.5 w-3.5"}),children:"Create First Role"})]}):(0,s.jsx)("div",{className:"space-y-1",children:v.map(e=>(0,s.jsxs)("button",{onClick:()=>{F(e),ea(e.id)},className:`w-full text-left rounded px-3 py-3 transition-all ${k?.id===e.id?"bg-primary/10 border border-primary/50":"hover:bg-surface-hover hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] border border-transparent"}`,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,s.jsx)("span",{className:"text-[11px] font-bold",children:e.name}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(i.t,{variant:"active"===e.status?"success":"warning",children:e.status}),(0,s.jsx)(E.f,{className:"h-3.5 w-3.5 text-text-muted"})]})]}),e.description&&(0,s.jsx)("p",{className:"text-xs text-text-muted truncate mb-1.5",children:e.description}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.aptPackages.length>0&&(0,s.jsxs)("span",{className:"inline-flex items-center rounded bg-success/10 px-1.5 py-0.5 text-[10px] text-success",children:[e.aptPackages.length," apt"]}),e.npmPackages.length>0&&(0,s.jsxs)("span",{className:"inline-flex items-center rounded bg-warning/10 px-1.5 py-0.5 text-[10px] text-warning",children:[e.npmPackages.length," npm"]}),e.libraryFileIds.length>0&&(0,s.jsxs)("span",{className:"inline-flex items-center rounded bg-primary/10 px-1.5 py-0.5 text-[10px] text-primary",children:[e.libraryFileIds.length," library"]}),e.dockerEnabled&&(0,s.jsx)("span",{className:"inline-flex items-center rounded bg-primary/10 px-1.5 py-0.5 text-[10px] text-primary",children:"Docker"}),e.firewallEnabled&&(0,s.jsx)("span",{className:"inline-flex items-center rounded bg-warning/10 px-1.5 py-0.5 text-[10px] text-warning",children:"UFW"})]}),(0,s.jsxs)("span",{className:"text-xs text-text-muted flex items-center gap-1",children:[(0,s.jsx)(N.f,{className:"h-3 w-3"}),e._count?.nodes??0]})]})]},e.id))})})}),(0,s.jsx)("div",{className:"col-span-8",children:k?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)(l.N,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("h2",{className:"text-lg font-bold",children:k.name}),(0,s.jsx)(i.t,{variant:"active"===k.status?"success":"warning",children:k.status})]}),k.description&&(0,s.jsx)("p",{className:"text-[11px] text-text-muted mt-1",children:k.description})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(n.K,{variant:"secondary",size:"sm",onClick:()=>{W("edit"),V(k),K(!0)},icon:(0,s.jsx)(g.f,{className:"h-3.5 w-3.5"}),children:"Edit"}),(0,s.jsx)(n.K,{variant:"danger",size:"sm",onClick:()=>void er(k),icon:(0,s.jsx)(p.f,{className:"h-3.5 w-3.5"}),children:"Delete"})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("div",{className:"rounded border border-border bg-bg p-3 hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] transition-all",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(y.f,{className:"h-4 w-4 text-success"}),(0,s.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider",children:"Packages"})]}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:k.aptPackages.length>0?`apt: ${k.aptPackages.join(", ")}`:"No apt packages"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:k.npmPackages.length>0?`npm: ${k.npmPackages.join(", ")}`:"No npm packages"}),k.envConfigKeys.length>0&&(0,s.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:[k.envConfigKeys.length," env var(s): ",k.envConfigKeys.join(", ")]})]}),(0,s.jsxs)("div",{className:"rounded border border-border bg-bg p-3 hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] transition-all",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(w.f,{className:"h-4 w-4 text-primary"}),(0,s.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider",children:"Skills & Jobs"})]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[k.libraryFileIds.length," library item(s) assigned"]})]}),(0,s.jsxs)("div",{className:"rounded border border-border bg-bg p-3 hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] transition-all",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)(C,{className:"h-4 w-4 text-primary"}),(0,s.jsx)(_.f,{className:"h-4 w-4 text-warning"})]}),(0,s.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider",children:"Sandbox & Firewall"})]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Docker: ",k.dockerEnabled?`Enabled${k.dockerNonRoot?" (non-root)":""}`:"Disabled"]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted mt-0.5",children:["Firewall: ",k.firewallEnabled?`${k.firewallMode} mode`:"Disabled"]})]})]})]}),(0,s.jsxs)(l.N,{title:"Assigned Nodes",action:(0,s.jsxs)("div",{className:"flex gap-2",children:[(k.nodes?.length??0)>0&&(0,s.jsx)(n.K,{variant:"secondary",size:"sm",onClick:()=>void ec(),icon:(0,s.jsx)(S.f,{className:"h-3.5 w-3.5"}),children:"Re-apply All"}),(0,s.jsx)(n.K,{size:"sm",onClick:()=>B(!0),icon:(0,s.jsx)(m.f,{className:"h-3.5 w-3.5"}),children:"Assign Nodes"})]}),children:[k.nodes&&0!==k.nodes.length?(0,s.jsx)("div",{className:"space-y-1",children:k.nodes.map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between rounded border border-border bg-bg px-3 py-2 hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] transition-all",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(N.f,{className:"h-4 w-4 text-text-muted"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[11px] font-bold",children:e.name}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:e.hostname})]}),(0,s.jsx)(i.t,{variant:(0,i.k)(e.status),children:e.status})]}),(0,s.jsx)(n.K,{variant:"ghost",size:"sm",onClick:()=>void ei(e.id),icon:(0,s.jsx)(j,{className:"h-3.5 w-3.5"}),children:"Unassign"})]},e.id))}):(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)(N.f,{className:"mx-auto h-8 w-8 text-text-muted mb-2"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"No nodes assigned to this role"})]}),q&&(0,s.jsxs)("div",{className:"mt-4 rounded border border-primary/30 bg-primary/5 p-4",children:[(0,s.jsxs)("h4",{className:"text-[11px] font-bold uppercase tracking-wider mb-3",children:['Assign Nodes to "',k.name,'"']}),(0,s.jsx)(c.f,{value:J,onChange:e=>Y(e),multi:!0,showAll:!0,label:"Select nodes"}),(0,s.jsxs)("label",{className:"flex items-center gap-2 mt-3 cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:Z,onChange:e=>Q(e.target.checked),className:"accent-primary"}),(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"Defer application (assign only, don't apply yet)"})]}),(0,s.jsxs)("div",{className:"flex justify-end gap-2 mt-3",children:[(0,s.jsx)(n.K,{variant:"secondary",size:"sm",onClick:()=>{B(!1),Y([])},children:"Cancel"}),(0,s.jsx)(n.K,{size:"sm",onClick:()=>void en(),disabled:X||0===J.length,icon:X?(0,s.jsx)(x.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,s.jsx)(f.f,{className:"h-3.5 w-3.5"}),children:X?"Assigning…":`Assign ${J.length} Node(s)`})]})]})]}),(0,s.jsx)(l.N,{title:"Application History",description:"Recent role apply/remove operations",children:0===P.length?(0,s.jsx)("p",{className:"text-xs text-text-muted py-4 text-center",children:"No applications yet"}):(0,s.jsx)("div",{className:"space-y-3",children:P.slice(0,10).map(e=>(0,s.jsxs)("div",{className:"rounded border border-border bg-bg p-3 hover:border-primary/30 transition-all",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.t,{variant:"apply"===e.action?"info":"warning",children:e.action}),(0,s.jsx)("span",{className:"text-xs text-text-muted",children:e.node?.name??e.nodeId})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.t,{variant:(0,i.k)(e.status),children:e.status}),(0,s.jsx)("span",{className:"text-xs text-text-muted",children:new Date(e.createdAt).toLocaleString()})]})]}),e.steps.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:e.steps.map((e,a)=>(0,s.jsxs)("div",{className:"flex items-center gap-1.5 rounded bg-surface px-2 py-1",title:e.error??e.name,children:[(e=>{switch(e){case"completed":return(0,s.jsx)(A.f,{className:"h-3.5 w-3.5 text-success"});case"failed":return(0,s.jsx)(I.f,{className:"h-3.5 w-3.5 text-danger"});case"running":return(0,s.jsx)(x.f,{className:"h-3.5 w-3.5 text-primary animate-spin"});case"skipped":return(0,s.jsx)(z,{className:"h-3.5 w-3.5 text-text-muted"});default:return(0,s.jsx)(D.f,{className:"h-3.5 w-3.5 text-text-muted"})}})(e.status),(0,s.jsx)("span",{className:"text-[11px] text-text-muted",children:e.name})]},a))}),e.error&&(0,s.jsxs)("div",{className:"mt-2 flex items-start gap-1.5 text-xs text-danger",children:[(0,s.jsx)(M.f,{className:"h-3.5 w-3.5 mt-0.5 flex-shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:e.error})]})]},e.id))})})]}):(0,s.jsx)(l.N,{children:(0,s.jsxs)("div",{className:"text-center py-16",children:[(0,s.jsx)(d.f,{className:"mx-auto h-12 w-12 text-text-muted mb-3"}),(0,s.jsx)("p",{className:"text-[11px] text-text-muted",children:"Select a role to view details"})]})})})]})}),(0,s.jsx)(h,{open:G,mode:U,role:H,onClose:()=>K(!1),onSaved:()=>void el()})]})}],89458)},46670,e=>{var s=e.i(43476),a=e.i(78571);let t={default:"border-border text-text-muted",success:"border-success/40 text-success bg-success/5 shadow-[0_0_6px_rgba(0,255,65,0.15)]",warning:"border-warning/40 text-warning bg-warning/5 shadow-[0_0_6px_rgba(255,179,0,0.15)]",danger:"border-danger/40 text-danger bg-danger/5 shadow-[0_0_6px_rgba(255,23,68,0.15)]",info:"border-info/40 text-info bg-info/5 shadow-[0_0_6px_rgba(0,176,255,0.15)]"},r={default:"bg-text-muted",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"};e.s(["t",0,function({children:e,variant:l="default",className:n,dot:i=!1,pulse:c=!1}){return(0,s.jsxs)("span",{className:(0,a.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",t[l],n),children:[i&&(0,s.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[c&&(0,s.jsx)("span",{className:(0,a.f)("absolute inset-0 rounded-full animate-halo",r[l])}),(0,s.jsx)("span",{className:(0,a.f)("relative inline-flex h-1.5 w-1.5 rounded-full",r[l])})]}),e]})},"k",0,function(e){switch(e.toUpperCase()){case"ONLINE":case"COMPLETED":case"ACTIVE":case"RUNNING":case"INSTALLED":case"HEALTHY":return"success";case"DEGRADED":case"PAUSED":case"QUEUED":case"PENDING":case"INSTALLING":return"warning";case"OFFLINE":case"FAILED":case"ERROR":case"TIMEOUT":case"CANCELLED":case"DECOMMISSIONED":case"CRITICAL":return"danger";case"PROVISIONING":case"UPDATING":return"info";default:return"default"}}])},93999,51196,55427,e=>{var s=e.i(43476),a=e.i(56420);let t={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};t.node;let r=(0,a.f)(t);var l=e.i(75775),n=e.i(78571),i=e.i(3062),c=e.i(35084);let o={warning:"shadow-[0_0_6px_var(--color-warning)]",danger:"shadow-[0_0_8px_var(--color-danger)]",accent:"shadow-[0_0_6px_var(--color-accent)]",primary:"shadow-[0_0_6px_var(--color-primary)]"},d={xs:"h-1",sm:"h-1.5",md:"h-2"};function x({value:e,max:a=100,tone:t,thresholds:r=c.q,label:l,size:i="xs",showValue:m=!1,valueLabel:p,glow:h,className:u,testId:g}){let f="number"==typeof e&&Number.isFinite(e),v=f?Math.max(0,Math.min(100,e/(a||1)*100)):0,b=t??(f?(0,c.Z)(v,r):"muted"),j=h||!t&&f&&v>=r.warn,N=p??(f?`${v.toFixed(+(v<10&&v>0))}%`:"—");return(0,s.jsxs)("div",{className:(0,n.f)("flex min-w-0 items-center gap-2",u),"data-testid":g,children:[(0,s.jsx)("div",{role:"meter","aria-label":l,"aria-valuemin":0,"aria-valuemax":a,"aria-valuenow":f?e:void 0,"aria-valuetext":N,className:(0,n.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[i]),children:(0,s.jsx)("div",{style:{"--meter":`${v}%`},className:(0,n.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",c.H[b],j&&o[b])})}),m&&(0,s.jsx)("span",{className:(0,n.f)("num w-11 shrink-0 text-right text-[11px]",f?c.T[b]:"text-text-muted"),children:N})]})}e.s(["f",0,x],51196);var m=e.i(71645);function p({values:e,tone:a="primary",width:t=160,height:r=32,area:l=!0,max:i,percent:o=!1,threshold:d,live:x=!0,emptyLabel:h="not enough data",className:u,testId:g,label:f,stretch:v=!1}){let b=`spark${(0,m.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,s.jsx)("div",{className:(0,n.f)("flex h-8 items-center text-xs italic text-text-muted",u),"data-testid":g,children:h});let j=c.v[a],N=i??(o?Math.max(100,...e):Math.max(...e,d??0)||1),y=r-4,w=t/(e.length-1),k=e=>2+y-Math.max(0,e)/N*y,C=e.map((e,s)=>[s*w,k(e)]),_=C.map(([e,s])=>`${e.toFixed(1)},${s.toFixed(1)}`).join(" "),S=C[C.length-1];return(0,s.jsxs)("svg",{width:v?"100%":t,height:r,viewBox:`0 0 ${t} ${r}`,preserveAspectRatio:v?"none":void 0,className:(0,n.f)("block overflow-visible",u),"data-testid":g,role:f?"img":void 0,"aria-label":f,"aria-hidden":!f||void 0,children:[l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:b,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:j,stopOpacity:.35}),(0,s.jsx)("stop",{offset:"100%",stopColor:j,stopOpacity:0})]})}),(0,s.jsx)("polygon",{points:`0,${r} ${_} ${t},${r}`,fill:`url(#${b})`})]}),void 0!==d&&(0,s.jsx)("line",{x1:0,x2:t,y1:k(d),y2:k(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,s.jsx)("polyline",{fill:"none",stroke:j,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:_}),x&&!v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:S[0],cy:S[1],r:2.5,fill:j,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,s.jsx)("circle",{cx:S[0],cy:S[1],r:2,fill:j})]})]})}e.s(["f",0,p],55427),e.s(["N",0,function({title:e,description:a,children:t,className:r,action:l,tone:n,corners:c=!1,...o}){return(0,s.jsx)(i.f,{...o,tone:n,corners:c,title:e,description:a,action:l,className:r,children:t})},"n",0,function({label:e,value:a,icon:t,trend:o,spark:d,meter:m,delta:h,tone:u="primary",className:g,testId:f}){let v=!h||h.value>=0===(h.positiveIsGood??!0);return(0,s.jsxs)(i.f,{tone:u,className:(0,n.f)("overflow-hidden",g),testId:f,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:e}),t&&(0,s.jsx)("span",{className:"text-primary/60",children:t})]}),(0,s.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,s.jsx)("div",{className:(0,n.f)("num text-2xl font-bold","primary"===u?"text-primary neon-text":c.T[u]),children:a}),h&&0!==h.value&&(0,s.jsxs)("span",{className:(0,n.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",v?"text-success":"text-danger"),children:[h.value>0?(0,s.jsx)(l.f,{className:"h-3 w-3"}):(0,s.jsx)(r,{className:"h-3 w-3"}),Math.abs(h.value).toFixed(+!Number.isInteger(h.value)),h.unit]})]}),o&&(0,s.jsx)("div",{className:(0,n.f)("mt-1 text-[11px]",o.positive?"text-success":"text-danger"),children:o.value}),void 0!==m&&(0,s.jsx)(x,{value:m,className:"mt-3",label:e}),d&&d.length>1&&(0,s.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,s.jsx)(p,{values:d,tone:u,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{var s=e.i(43476),a=e.i(78571),t=e.i(35084);let r={primary:"[--panel-corner-color:color-mix(in_srgb,var(--color-primary)_60%,transparent)]",accent:"[--panel-corner-color:color-mix(in_srgb,var(--color-accent)_70%,transparent)]",success:"[--panel-corner-color:color-mix(in_srgb,var(--color-success)_60%,transparent)]",warning:"[--panel-corner-color:color-mix(in_srgb,var(--color-warning)_70%,transparent)]",danger:"[--panel-corner-color:color-mix(in_srgb,var(--color-danger)_70%,transparent)]",info:"[--panel-corner-color:color-mix(in_srgb,var(--color-info)_60%,transparent)]",muted:"[--panel-corner-color:var(--color-border-strong)]"},l={primary:"[--glow-hover-color:var(--color-glow)]",accent:"[--glow-hover-color:var(--color-glow-accent)]",success:"[--glow-hover-color:var(--color-glow-success)]",warning:"[--glow-hover-color:var(--color-glow-warning)]",danger:"[--glow-hover-color:var(--color-glow-danger)]",info:"[--glow-hover-color:var(--color-glow)]",muted:"[--glow-hover-color:var(--color-glow)]"},n={primary:"hover:border-primary/30",accent:"hover:border-accent/40",success:"hover:border-success/30",warning:"hover:border-warning/40",danger:"hover:border-danger/40",info:"hover:border-info/30",muted:"hover:border-border-strong"},i={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:c=!0,interactive:o=!0,hero:d=!1,title:x,description:m,icon:p,action:h,as:u="div",padding:g="md",testId:f,className:v,children:b,...j}){return(0,s.jsxs)(u,{...j,"data-testid":f??j["data-testid"],className:(0,a.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",i[g],c&&"panel-corners",c&&r[e],o&&"glow-hover",o&&l[e],o&&n[e],d&&"grid-bg overflow-hidden bg-surface/80",v),children:[(x||h||p)&&(0,s.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[p&&(0,s.jsx)("span",{className:(0,a.f)("mt-0.5 shrink-0",t.T[e]),children:p}),(0,s.jsxs)("div",{className:"min-w-0",children:[x&&(0,s.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:x}),m&&(0,s.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:m})]})]}),h]}),b]})}])},31624,e=>{var s=e.i(43476),a=e.i(71645),t=e.i(82983),r=e.i(41220);e.s(["f",0,function({value:e,onChange:l,multi:n=!1,showAll:i=!1,label:c="Node",placeholder:o="Select a node…",className:d="",disabled:x=!1}){let[m,p]=(0,a.useState)([]),[h,u]=(0,a.useState)(!0);if((0,a.useEffect)(()=>{(async()=>{try{let e=(await t.f.nodes.list({pageSize:100})).data??[];p(e)}catch{}finally{u(!1)}})()},[]),n){let a=Array.isArray(e)?e:e?[e]:[],t=a.length===m.length&&m.length>0,n=m.filter(e=>"ONLINE"===e.status);return(0,s.jsxs)("div",{className:d,children:[c&&(0,s.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:c}),(0,s.jsx)("div",{className:"max-h-48 overflow-y-auto rounded border border-border bg-bg p-2 space-y-1",children:h?(0,s.jsx)("p",{className:"px-2 py-1 text-xs text-text-muted",children:"Loading nodes…"}):0===m.length?(0,s.jsx)("p",{className:"px-2 py-1 text-xs text-text-muted",children:"No nodes found"}):(0,s.jsxs)(s.Fragment,{children:[i&&n.length>0&&(0,s.jsxs)("label",{className:"flex items-center gap-2 rounded px-2 py-1.5 hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] hover:bg-surface-hover cursor-pointer border-b border-border mb-1 pb-2 transition-all",children:[(0,s.jsx)("input",{type:"checkbox",checked:t,onChange:()=>{t?l([]):l(n.map(e=>e.id))},disabled:x,className:"accent-primary"}),(0,s.jsx)(r.f,{className:"h-3.5 w-3.5 text-primary"}),(0,s.jsx)("span",{className:"text-xs font-bold",children:"All Nodes"}),(0,s.jsxs)("span",{className:"ml-auto text-[11px] text-text-muted",children:[n.length," online"]})]}),m.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2 rounded px-2 py-1.5 hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] hover:bg-surface-hover cursor-pointer transition-all",children:[(0,s.jsx)("input",{type:"checkbox",checked:a.includes(e.id),onChange:()=>{var s;return s=e.id,void l(a.includes(s)?a.filter(e=>e!==s):[...a,s])},disabled:x||"ONLINE"!==e.status,className:"accent-primary"}),(0,s.jsx)("span",{className:`inline-block h-2 w-2 rounded-full ${"ONLINE"===e.status?"bg-success":"DEGRADED"===e.status?"bg-warning":"bg-text-muted"}`}),(0,s.jsx)("span",{className:`text-xs ${"ONLINE"!==e.status?"text-text-muted":""}`,children:e.name}),(0,s.jsx)("span",{className:"ml-auto text-[11px] text-text-muted",children:e.hostname})]},e.id))]})})]})}let g=Array.isArray(e)?e[0]??"":e;return(0,s.jsxs)("div",{className:d,children:[c&&(0,s.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:c}),(0,s.jsxs)("select",{value:g,onChange:e=>l(e.target.value),disabled:x||h,className:"w-full rounded border border-border bg-bg px-3 py-2 text-xs outline-none focus:border-primary focus:shadow-[0_0_8px_var(--color-glow)] hover:border-primary/30 hover:shadow-[0_0_20px_var(--color-glow)] transition-all",children:[(0,s.jsx)("option",{value:"",children:h?"Loading nodes…":o}),m.map(e=>(0,s.jsxs)("option",{value:e.id,disabled:"ONLINE"!==e.status,children:[e.name," — ",e.hostname," (",e.status,")"]},e.id))]})]})}])},63376,e=>{var s=e.i(43476);e.s(["z",0,function({children:e,className:a}){return(0,s.jsx)("div",{className:`animate-page-in${a?` ${a}`:""}`,children:e})},"U",0,function({children:e,className:a}){return(0,s.jsx)("div",{className:a,children:e})}])},75775,e=>{var s=e.i(56420);let a={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],75775)},79258,e=>{var s=e.i(56420);let a={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],79258)},21357,e=>{var s=e.i(56420);let a={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};a.node;let t=(0,s.f)(a);e.s(["f",0,t],21357)}])})();
|