@hivemagnus/magnus-ui 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/apps/dashboard/.next/BUILD_ID +1 -1
- package/dist/app/apps/dashboard/.next/build-manifest.json +269 -269
- package/dist/app/apps/dashboard/.next/prerender-manifest.json +3 -3
- package/dist/app/apps/dashboard/.next/required-server-files.json +2 -2
- package/dist/app/apps/dashboard/.next/server/app/_global-error/page/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/_global-error/page.js +2 -2
- 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 +2 -2
- package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/api-docs/page/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/audit/page.js +3 -3
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page.js +3 -3
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/fleet-timeline/page.js +3 -3
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/hermes-drift/page.js +3 -3
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/hermes-security/page.js +2 -2
- 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.nft.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/incidents/page/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/incidents/page.js +3 -3
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/library/page.js +3 -3
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/mission-control/page.js +3 -3
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/nodes/[nodeId]/page/react-loadable-manifest.json +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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/nodes/page.js +3 -3
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/page/react-loadable-manifest.json +1 -1
- package/dist/app/apps/dashboard/.next/server/app/page.js +3 -3
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/retention/page.js +3 -3
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/roles/page.js +3 -3
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/[caseId]/page.js +2 -2
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/page.js +2 -2
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/entities/page.js +2 -2
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/events/page.js +2 -2
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/evidence/page.js +2 -2
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/page.js +3 -3
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/policies/page.js +2 -2
- 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/build-manifest.json +7 -7
- package/dist/app/apps/dashboard/.next/server/app/security-fusion/sources/page.js +2 -2
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/build-manifest.json +7 -7
- 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/chunks/[root-of-the-server]__0ywmf3079vsm1._.js +8 -8
- package/dist/app/apps/dashboard/.next/server/chunks/[root-of-the-server]__15bjnu5yieigz._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/[turbopack]_runtime.js +7 -9
- package/dist/app/apps/dashboard/.next/server/chunks/_0-w_jq1-cxsud._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0_fjgwmia8tfa._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0cz-sjd6cade0._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0h965a-fek_i1._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0j68riv96qwg8._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0jaugku4pdkak._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0jvoc4-ta3zc0._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0rpixw8k9f_1q._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0s788ryrplkp6._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0ss4gyka2xwtu._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0ti6qpnzqaoee._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_0z1bwl42i7kyh._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_109zj-srrib-n._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_1bbph2o31ut9-._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_1bnwf9dhenncq._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_1di30nby6-dr0._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_1e42zgily9-_5._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_1j9ys57oirxn5._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/_1xodprib7qa_j._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/_1xoy6p0t2si_y._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_0_mv4bximoofw._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_0u9pfz6tlfjqv._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_1ovxb0oub71q-._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_next_0g8xe7c6fvfgl._.js +6 -6
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_next_1_14bcs2pb4w8._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/node_modules_undici_0153f0xi5kile._.js +9 -9
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0072bik_zyvuk._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__01cf6gneqbonz._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__01z86atsfgouz._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0278xh6fxduzw._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__036zs-5_yuyxb._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__041ccocdmkgg6._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1hvw-xurgk_w7._.js → [root-of-the-server]__04hi33lhtvr4k._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0s8_75r7q5ncn._.js → [root-of-the-server]__04py15r6s88mn._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__06giq9g4me8eh._.js +2 -2
- 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]__0__af2nyy0175._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ac_glv9qg7_s._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0d9d-dh1yx1hi._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0qioz334gz2yb._.js → [root-of-the-server]__0degu9u1azz71._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ewkfypbfusfk._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0fpn05b9fp43i._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0g8bkchofl2-r._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1cn39fmih92c0._.js → [root-of-the-server]__0hkl39n6k8s99._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0hqhb23em35gm._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0iw8wbnpx0-ny._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ka88eh7v1c6k._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0kimthfi8yo91._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0lte6rpogn44m._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0m74tldgpzxjy._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__1z4qvf1ek2qp1._.js → [root-of-the-server]__0o_3rvim51sh4._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0pmeznk95qzb_._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0pnutls6_8lle._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0py1t7q9ntzgc._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0qtv2uoutzl-3._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0s_a6o17v27n8._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0vsd8ezb2wh-q._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0wsvm9s-rtmzo._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1-h1t4i4zgqk_._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__105kpqp7-ylav._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__11dfa-8pfbhwz._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[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]__12ez0gk_feqb-._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__12rw5-k-87pcu._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__150z4kg7b_lzo._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__162yt_hrj1icm._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__19dmibalml_q2._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1b52j7srra3w_._.js +3 -0
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1bbyh10jp8j2x._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__161e6kss8f2-u._.js → [root-of-the-server]__1duyqypa9ty8o._.js} +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1eg2b5aisrnx2._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1esvp2dhqc7wf._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1iieuibgbitpd._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1kzh8p2efekf5._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1n3nkuw3uylha._.js +9 -9
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1uiv7zid6iqiw._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[turbopack]_runtime.js +7 -9
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_012-2t-30l6d8._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_02sxg7r2xx3fw._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_03dvnngovohcl._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_03sjr-ap-gkjv._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_04b4h6ckhi7bi._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_05jgcyutq4wip._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_05momtnhs2or_._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_09eslmbj9l4sq._.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/_0eccfdt1lz-7r._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0f2d8_ost6s2f._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0f89fican-_s9._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0fge-mr3ok0j9._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0k4-_ys6s6-93._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0ksgpljzuxnqa._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0m10ijdnp_m7u._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0mrryagvuzvz1._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0oa-ld-qc1g36._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0pncxy--oro8t._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0raw_gngl90-7._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0tyfybw4cwmxv._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0vz8cqmro1opv._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0wh_e2bpxcaf4._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0wo8_14v-72ut._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0x273l378qwem._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0zrtbhvhztqnh._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0zsjpnu4iitoz._.js +11 -11
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_116hh5tv78jrt._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_168tm22non34k._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1ak59i88-3fpc._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1bmfhogvdqhft._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1bybbae25qp_3._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1cz7r_30vhnj_._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1gea_-jzyj2pi._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1ircn2sooizal._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1ktxzfxegaxf2._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1ml_bvfb1fitq._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1nd-0is101z6p._.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/_1t81cm4foc6ob._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1uyq8tg0700tm._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1v0z-sm708czr._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1ws-h-7v_11t8._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/_20ln5i8p8muqj._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_00d_i343yrcpk._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_02daq208wahsf._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_04ntcy2oh44-_._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_05j1zzjo6sijc._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_0gs_s688kgg1i._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_138fu3pss1hww._.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_incidents_0kkhq3tvurjja._.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/chunks/ssr/apps_dashboard_src_components_ui_1qtx04oto4780._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_components_ui_1v4uddmhlllbd._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_0gxlxpuufujz9._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_11f8_4aw8657-._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_188b8ag_m5vfr._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_1unf5c-k6rle8._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_08o95oocj431k._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0fsvfwwqw-2hi._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0h7ztf89f407u._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0ppk2v83khj58._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0ut3n9th3gffy._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1wnnq70cs49fi._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_06ob4w68jmryj._.js +4 -4
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_0-amwqbrge23p._.js +6 -0
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_0n6z_kn7rdm9s._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_0tg97786c_yac._.js +14 -0
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_112u6z88a3g80._.js +5 -5
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_19r-juqja1ice._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_1khq67j4vo9y4._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_client_components_0bew68i643j53._.js +2 -2
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_client_components_0p8s4lhdi0ir6._.js +1 -1
- package/dist/app/apps/dashboard/.next/server/middleware-build-manifest.js +269 -269
- 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/028ezuxrvvye_.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/05p7s0xtb3koa.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/075pph9rij45g.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/0diifaom2d_cn.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/0f9vroowginda.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/0jd62jw1t6xu7.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/0lxf5l-ugq-09.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/10sblx9kmg2o-.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/11d-a975loj77.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/13mwv5xf7s8jd.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/14tua164t_7uj.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/16uyp1ymdlvpq.js +22 -0
- package/dist/app/apps/dashboard/.next/static/chunks/17jgal4mw939y.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/18_bv2qqvy9p8.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1ex_snjj19-om.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1ij544xwbs-1c.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1j5vpju4k1wlj.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1k2w3nq2-wg_-.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1kmml-dozyyi6.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1lcbad6cestqa.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1oiypigu7jtvk.js +6 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1ua2kfq9s-me6.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/1uj8oezn_z82c.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/24ckx_jboufc6.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/28zpgt1trm_m4.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/2p26kwyyzgqph.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/2re4mp6xbi3y8.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/30npcziw-f8ld.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3153ier_x5pc9.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/31hx4x8k9707e.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/34mzv0h7jkx20.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/37kstof-v-jwi.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3bc5f99de0_hu.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3cw8xs2dab1g-.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3gjll_bse9v1f.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3l8w-h8da7s_r.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3m8d_tlzqof67.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3ntnj6ts2r3e2.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3ntoa0tsmhr29.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3q_hrnx0n1u8u.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3t6i_3lvi_934.js +1 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3xilfs--e4ap1.js +4 -0
- package/dist/app/apps/dashboard/.next/static/chunks/3y705tc4v-41-.js +31 -0
- package/dist/app/apps/dashboard/.next/static/chunks/{turbopack-3-ry682tkyiqk.js → turbopack-2u1d16houkiyo.js} +1 -1
- package/dist/app/apps/dashboard/package.json +3 -3
- package/dist/app/apps/dashboard/server.js +1 -1
- package/dist/app/node_modules/@next/env/package.json +1 -1
- package/dist/app/node_modules/next/dist/build/swc/index.js +1 -1
- package/dist/app/node_modules/next/dist/compiled/fast-jwt/index.js +3 -0
- package/dist/app/node_modules/next/dist/compiled/fast-jwt/package.json +1 -0
- package/dist/app/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +23 -23
- package/dist/app/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +23 -23
- package/dist/app/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +1 -1
- package/dist/app/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +7 -7
- package/dist/app/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/dist/app/node_modules/next/dist/server/api-utils/node/api-resolver.js +8 -5
- package/dist/app/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +8 -2
- package/dist/app/node_modules/next/dist/server/app-render/app-render.js +52 -14
- package/dist/app/node_modules/next/dist/server/app-render/async-local-storage.js +1 -1
- package/dist/app/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +19 -3
- package/dist/app/node_modules/next/dist/server/app-render/turbopack-bootstrap-script.js +50 -0
- package/dist/app/node_modules/next/dist/server/base-server.js +8 -0
- package/dist/app/node_modules/next/dist/server/config.js +1 -1
- package/dist/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +59 -10
- package/dist/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/app/node_modules/next/dist/server/dev/turbopack-utils.js +15 -0
- package/dist/app/node_modules/next/dist/server/image-optimizer/detect-content-type.js +24 -20
- package/dist/app/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/dist/app/node_modules/next/dist/server/lib/dev-bundler-service.js +3 -0
- package/dist/app/node_modules/next/dist/server/lib/router-server.js +1 -1
- package/dist/app/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/dist/app/node_modules/next/dist/server/lib/trace/tracer.js +1 -1
- package/dist/app/node_modules/next/dist/server/next-server.js +10 -2
- package/dist/app/node_modules/next/dist/server/render.js +2 -2
- package/dist/app/node_modules/next/dist/server/route-modules/app-page/parse-request-headers.js +1 -2
- package/dist/app/node_modules/next/dist/server/send-response.js +12 -0
- package/dist/app/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +69 -6
- package/dist/app/node_modules/next/dist/server/web/adapter.js +5 -1
- package/dist/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/app/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/dist/app/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/dist/app/node_modules/next/package.json +10 -10
- package/package.json +3 -3
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0u4u25c8d4au2._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0x67wrk-d31vw._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__10wimxdiuhwkh._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1ahzgkyahgmyu._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1cmuf8lak2vgu._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__1fbbgiqn6yq7g._.js +0 -3
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_0janj0i6dqko7._.js +0 -6
- package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_next_dist_1qrfck6kfdp-h._.js +0 -14
- package/dist/app/apps/dashboard/.next/static/chunks/0-o74znen4827.js +0 -31
- package/dist/app/apps/dashboard/.next/static/chunks/056gjh9s9d494.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/07zeb7uafp9tj.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/0ercz8dn1s4v0.js +0 -4
- package/dist/app/apps/dashboard/.next/static/chunks/0glmunl3umirf.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/0s2cptn1mmf6r.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/0u2muyrfswytk.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/12i2-pii2jlbk.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/14bd0r0xfbmnv.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/14r8nrwm46g5y.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/14xa55ba4bno2.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/19r460os_h04_.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/1ctoa0o88h7is.js +0 -6
- package/dist/app/apps/dashboard/.next/static/chunks/1fdfjc2q68p6m.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/1ngx2zdgd1b2v.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/1uazzcd91pwfh.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/1ybllyg38cy3-.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/25tziha662tl6.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/27f2f2ypobqqa.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/290o5i-on1sqk.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/29i5vf0fvu1f6.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/29ihu80s46p9r.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/2_iljjf5r-5t5.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/2celzsawjzhy9.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/2fvlbj5gqk-mf.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/2hoi73vy1wqpo.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/2kshtklg2en8k.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/2ksz5ltjd7lss.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/2o_4mj_bjm4ws.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/2tcnztotjzug4.js +0 -22
- package/dist/app/apps/dashboard/.next/static/chunks/30ckv3d3pj-t7.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/347d5q-1yj217.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/34kjyfaw5u2xm.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/36ygg8xpaqvup.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/3e8h01gu614n_.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/3ltx1we1130yf.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/3p1snl20jh4fy.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/3ttfy0pu3se2-.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/3wo0br3rxneiv.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/3y43u3ijms4qh.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/42onvq6nokjl2.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/456iu476-9vw_.js +0 -1
- package/dist/app/apps/dashboard/.next/static/chunks/45c1z9-q8c5n4.js +0 -1
- package/dist/app/node_modules/next/dist/compiled/jsonwebtoken/index.js +0 -11
- package/dist/app/node_modules/next/dist/compiled/jsonwebtoken/package.json +0 -1
- package/dist/app/node_modules/next/dist/lib/semver-noop.js +0 -18
- /package/dist/app/apps/dashboard/.next/static/{24AiYFyjaUGx2yS4XkihB → oKQRUCxlfzzmJF1Kc7dpz}/_buildManifest.js +0 -0
- /package/dist/app/apps/dashboard/.next/static/{24AiYFyjaUGx2yS4XkihB → oKQRUCxlfzzmJF1Kc7dpz}/_clientMiddlewareManifest.js +0 -0
- /package/dist/app/apps/dashboard/.next/static/{24AiYFyjaUGx2yS4XkihB → oKQRUCxlfzzmJF1Kc7dpz}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77759,e=>{"use strict";var r=e.i(43476),a=e.i(71645),t=e.i(93999),s=e.i(68759),l=e.i(46670),n=e.i(31624),o=e.i(82983),i=e.i(71417),c=e.i(66595),d=e.i(32781),x=e.i(21357),u=e.i(56420);let h={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};h.node;let m=(0,u.f)(h);var p=e.i(63376);e.s(["default",0,function(){let[e,u]=(0,a.useState)([]),[h,g]=(0,a.useState)(!1),[f,v]=(0,a.useState)(""),[b,w]=(0,a.useState)(""),[j,N]=(0,a.useState)(""),[y,k]=(0,a.useState)(!1),[_,E]=(0,a.useState)(0),S=(0,a.useRef)(null),I=async()=>{g(!0);try{let e={limit:200};f&&(e.search=f),b&&(e.nodeId=b),j&&(e.level=j);let r=(await o.f.logs.query(e)).data;u(r.logs)}catch{}finally{g(!1)}},L=(0,a.useCallback)(()=>{S.current&&(S.current.abort(),S.current=null),k(!1)},[]),A=(0,a.useCallback)(()=>{S.current&&S.current.abort();let e=new AbortController;S.current=e,k(!0),E(0),u([]);let r=new URLSearchParams;b&&r.set("nodeIds",b),j&&r.set("levels",j);let a=r.toString(),t=`/api/proxy/logs/stream${a?`?${a}`:""}`,s=o.f.getAuthHeaders();s.Accept="text/event-stream",(async()=>{try{let r=await fetch(t,{method:"GET",headers:s,signal:e.signal,cache:"no-store"});if(!r.ok||!r.body){console.error("SSE connection failed:",r.status),k(!1);return}let a=r.body.getReader(),l=new TextDecoder,n="";for(;;){let{done:e,value:r}=await a.read();if(e)break;let t=(n+=l.decode(r,{stream:!0})).split("\n");for(let e of(n=t.pop()??"",t))if(e.startsWith("data:")){let r=e.slice(5).trim();if(!r)continue;try{let e=JSON.parse(r);u(r=>{let a=[e,...r];return a.length>500?a.slice(0,500):a}),E(e=>e+1)}catch{}}}}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;console.error("SSE stream error:",e instanceof Error?e.message:"Unknown")}finally{k(!1)}})()},[b,j]);return(0,a.useEffect)(()=>()=>{S.current&&S.current.abort()},[]),(0,r.jsxs)(p.U,{className:"space-y-6",children:[(0,r.jsx)(p.z,{children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider",children:"Log Explorer"}),(0,r.jsx)("p",{className:"mt-1 text-[11px] text-text-muted uppercase tracking-wider",children:"Search and browse logs from all Magnus nodes"})]})}),(0,r.jsx)(p.z,{children:(0,r.jsx)(t.N,{children:(0,r.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:"Search"}),(0,r.jsx)("input",{type:"text",value:f,onChange:e=>v(e.target.value),placeholder:"Search log messages…",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)] transition-all",onKeyDown:e=>"Enter"===e.key&&!y&&void I(),disabled:y})]}),(0,r.jsx)("div",{className:"w-48",children:(0,r.jsx)(n.f,{value:b,onChange:e=>w(Array.isArray(e)?e[0]??"":e),label:"Node",placeholder:"All nodes"})}),(0,r.jsxs)("div",{className:"w-28",children:[(0,r.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:"Level"}),(0,r.jsxs)("select",{value:j,onChange:e=>N(e.target.value),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)] transition-all",children:[(0,r.jsx)("option",{value:"",children:"All"}),(0,r.jsx)("option",{value:"debug",children:"Debug"}),(0,r.jsx)("option",{value:"info",children:"Info"}),(0,r.jsx)("option",{value:"warn",children:"Warn"}),(0,r.jsx)("option",{value:"error",children:"Error"}),(0,r.jsx)("option",{value:"fatal",children:"Fatal"})]})]}),(0,r.jsxs)(s.K,{onClick:()=>void I(),disabled:h||y,children:[h?(0,r.jsx)(d.f,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(c.f,{className:"h-4 w-4"}),"Search"]}),y?(0,r.jsxs)(s.K,{onClick:L,variant:"danger",children:[(0,r.jsx)(m,{className:"h-4 w-4"}),"Stop"]}):(0,r.jsxs)(s.K,{onClick:A,variant:"success",children:[(0,r.jsx)(x.f,{className:"h-4 w-4"}),"Live Tail"]})]})})}),(0,r.jsx)(p.z,{children:(0,r.jsxs)(t.N,{title:y?`Live Tail (${_} received)`:`Logs (${e.length})`,children:[y&&(0,r.jsxs)("div",{className:"mb-2 flex items-center gap-2 text-[11px] text-success",children:[(0,r.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-success opacity-75"}),(0,r.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-success"})]}),"Streaming logs in real-time…"]}),0===e.length?(0,r.jsx)("div",{className:"py-8 text-center text-[11px] text-text-muted",children:h?"Searching…":y?"Waiting for incoming logs…":"Run a search to view logs."}):(0,r.jsx)("div",{className:"max-h-[600px] space-y-1 overflow-y-auto text-[11px]",children:e.map((e,a)=>{let t="error"===e.level||"fatal"===e.level?"border-l-danger":"warn"===e.level?"border-l-warning":"info"===e.level?"border-l-primary":"border-l-border";return(0,r.jsxs)("div",{className:`flex gap-3 rounded px-2 py-1 hover:bg-surface-hover border-l-2 ${t} transition-colors`,children:[(0,r.jsx)("span",{className:"flex-shrink-0 text-text-muted",children:(0,i.C)(e.timestamp)}),(0,r.jsx)(l.t,{variant:(0,l.k)(e.level.toUpperCase()),className:"flex-shrink-0 text-[10px]",children:e.level.toUpperCase()}),(0,r.jsxs)("span",{className:"flex-shrink-0 text-primary/60",children:["[",e.source,"]"]}),(0,r.jsx)("span",{className:"break-all text-text",children:e.message})]},e.id||`live-${a}`)})})]})})]})}],77759)},46670,e=>{"use strict";var r=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)]"},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:l="default",className:n,dot:o=!1,pulse:i=!1}){return(0,r.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:[o&&(0,r.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[i&&(0,r.jsx)("span",{className:(0,a.f)("absolute inset-0 rounded-full animate-halo",s[l])}),(0,r.jsx)("span",{className:(0,a.f)("relative inline-flex h-1.5 w-1.5 rounded-full",s[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=>{"use strict";var r=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 s=(0,a.f)(t);var l=e.i(75775),n=e.i(78571),o=e.i(3062),i=e.i(35084);let c={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:s=i.q,label:l,size:o="xs",showValue:u=!1,valueLabel:h,glow:m,className:p,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,i.Z)(v,s):"muted"),w=m||!t&&f&&v>=s.warn,j=h??(f?`${v.toFixed(+(v<10&&v>0))}%`:"—");return(0,r.jsxs)("div",{className:(0,n.f)("flex min-w-0 items-center gap-2",p),"data-testid":g,children:[(0,r.jsx)("div",{role:"meter","aria-label":l,"aria-valuemin":0,"aria-valuemax":a,"aria-valuenow":f?e:void 0,"aria-valuetext":j,className:(0,n.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[o]),children:(0,r.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",i.H[b],w&&c[b])})}),u&&(0,r.jsx)("span",{className:(0,n.f)("num w-11 shrink-0 text-right text-[11px]",f?i.T[b]:"text-text-muted"),children:j})]})}e.s(["f",0,x],51196);var u=e.i(71645);function h({values:e,tone:a="primary",width:t=160,height:s=32,area:l=!0,max:o,percent:c=!1,threshold:d,live:x=!0,emptyLabel:m="not enough data",className:p,testId:g,label:f,stretch:v=!1}){let b=`spark${(0,u.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,r.jsx)("div",{className:(0,n.f)("flex h-8 items-center text-xs italic text-text-muted",p),"data-testid":g,children:m});let w=i.v[a],j=o??(c?Math.max(100,...e):Math.max(...e,d??0)||1),N=s-4,y=t/(e.length-1),k=e=>2+N-Math.max(0,e)/j*N,_=e.map((e,r)=>[r*y,k(e)]),E=_.map(([e,r])=>`${e.toFixed(1)},${r.toFixed(1)}`).join(" "),S=_[_.length-1];return(0,r.jsxs)("svg",{width:v?"100%":t,height:s,viewBox:`0 0 ${t} ${s}`,preserveAspectRatio:v?"none":void 0,className:(0,n.f)("block overflow-visible",p),"data-testid":g,role:f?"img":void 0,"aria-label":f,"aria-hidden":!f||void 0,children:[l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:b,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:w,stopOpacity:.35}),(0,r.jsx)("stop",{offset:"100%",stopColor:w,stopOpacity:0})]})}),(0,r.jsx)("polygon",{points:`0,${s} ${E} ${t},${s}`,fill:`url(#${b})`})]}),void 0!==d&&(0,r.jsx)("line",{x1:0,x2:t,y1:k(d),y2:k(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,r.jsx)("polyline",{fill:"none",stroke:w,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:E}),x&&!v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:S[0],cy:S[1],r:2.5,fill:w,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,r.jsx)("circle",{cx:S[0],cy:S[1],r:2,fill:w})]})]})}e.s(["f",0,h],55427),e.s(["N",0,function({title:e,description:a,children:t,className:s,action:l,tone:n,corners:i=!1,...c}){return(0,r.jsx)(o.f,{...c,tone:n,corners:i,title:e,description:a,action:l,className:s,children:t})},"n",0,function({label:e,value:a,icon:t,trend:c,spark:d,meter:u,delta:m,tone:p="primary",className:g,testId:f}){let v=!m||m.value>=0===(m.positiveIsGood??!0);return(0,r.jsxs)(o.f,{tone:p,className:(0,n.f)("overflow-hidden",g),testId:f,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:e}),t&&(0,r.jsx)("span",{className:"text-primary/60",children:t})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,r.jsx)("div",{className:(0,n.f)("num text-2xl font-bold","primary"===p?"text-primary neon-text":i.T[p]),children:a}),m&&0!==m.value&&(0,r.jsxs)("span",{className:(0,n.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",v?"text-success":"text-danger"),children:[m.value>0?(0,r.jsx)(l.f,{className:"h-3 w-3"}):(0,r.jsx)(s,{className:"h-3 w-3"}),Math.abs(m.value).toFixed(+!Number.isInteger(m.value)),m.unit]})]}),c&&(0,r.jsx)("div",{className:(0,n.f)("mt-1 text-[11px]",c.positive?"text-success":"text-danger"),children:c.value}),void 0!==u&&(0,r.jsx)(x,{value:u,className:"mt-3",label:e}),d&&d.length>1&&(0,r.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,r.jsx)(h,{values:d,tone:p,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{"use strict";var r=e.i(43476),a=e.i(78571),t=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)]"},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"},o={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:i=!0,interactive:c=!0,hero:d=!1,title:x,description:u,icon:h,action:m,as:p="div",padding:g="md",testId:f,className:v,children:b,...w}){return(0,r.jsxs)(p,{...w,"data-testid":f??w["data-testid"],className:(0,a.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",o[g],i&&"panel-corners",i&&s[e],c&&"glow-hover",c&&l[e],c&&n[e],d&&"grid-bg overflow-hidden bg-surface/80",v),children:[(x||m||h)&&(0,r.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[h&&(0,r.jsx)("span",{className:(0,a.f)("mt-0.5 shrink-0",t.T[e]),children:h}),(0,r.jsxs)("div",{className:"min-w-0",children:[x&&(0,r.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:x}),u&&(0,r.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:u})]})]}),m]}),b]})}])},31624,e=>{"use strict";var r=e.i(43476),a=e.i(71645),t=e.i(82983),s=e.i(41220);e.s(["f",0,function({value:e,onChange:l,multi:n=!1,showAll:o=!1,label:i="Node",placeholder:c="Select a node…",className:d="",disabled:x=!1}){let[u,h]=(0,a.useState)([]),[m,p]=(0,a.useState)(!0);if((0,a.useEffect)(()=>{(async()=>{try{let e=(await t.f.nodes.list({pageSize:100})).data??[];h(e)}catch{}finally{p(!1)}})()},[]),n){let a=Array.isArray(e)?e:e?[e]:[],t=a.length===u.length&&u.length>0,n=u.filter(e=>"ONLINE"===e.status);return(0,r.jsxs)("div",{className:d,children:[i&&(0,r.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:i}),(0,r.jsx)("div",{className:"max-h-48 overflow-y-auto rounded border border-border bg-bg p-2 space-y-1",children:m?(0,r.jsx)("p",{className:"px-2 py-1 text-xs text-text-muted",children:"Loading nodes…"}):0===u.length?(0,r.jsx)("p",{className:"px-2 py-1 text-xs text-text-muted",children:"No nodes found"}):(0,r.jsxs)(r.Fragment,{children:[o&&n.length>0&&(0,r.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,r.jsx)("input",{type:"checkbox",checked:t,onChange:()=>{t?l([]):l(n.map(e=>e.id))},disabled:x,className:"accent-primary"}),(0,r.jsx)(s.f,{className:"h-3.5 w-3.5 text-primary"}),(0,r.jsx)("span",{className:"text-xs font-bold",children:"All Nodes"}),(0,r.jsxs)("span",{className:"ml-auto text-[11px] text-text-muted",children:[n.length," online"]})]}),u.map(e=>(0,r.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,r.jsx)("input",{type:"checkbox",checked:a.includes(e.id),onChange:()=>{var r;return r=e.id,void l(a.includes(r)?a.filter(e=>e!==r):[...a,r])},disabled:x||"ONLINE"!==e.status,className:"accent-primary"}),(0,r.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,r.jsx)("span",{className:`text-xs ${"ONLINE"!==e.status?"text-text-muted":""}`,children:e.name}),(0,r.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,r.jsxs)("div",{className:d,children:[i&&(0,r.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:i}),(0,r.jsxs)("select",{value:g,onChange:e=>l(e.target.value),disabled:x||m,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,r.jsx)("option",{value:"",children:m?"Loading nodes…":c}),u.map(e=>(0,r.jsxs)("option",{value:e.id,disabled:"ONLINE"!==e.status,children:[e.name," — ",e.hostname," (",e.status,")"]},e.id))]})]})}])},63376,e=>{"use strict";var r=e.i(43476);e.s(["z",0,function({children:e,className:a}){return(0,r.jsx)("div",{className:`animate-page-in${a?` ${a}`:""}`,children:e})},"U",0,function({children:e,className:a}){return(0,r.jsx)("div",{className:a,children:e})}])},71417,e=>{"use strict";e.s(["L",0,function(e){if(0===e)return"0 B";let r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,r)).toFixed(1))} ${["B","KB","MB","GB","TB"][r]}`},"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"}):"—"}])},75775,e=>{"use strict";var r=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,r.f)(a);e.s(["f",0,t],75775)},21357,e=>{"use strict";var r=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,r.f)(a);e.s(["f",0,t],21357)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7809,e=>{"use strict";var s=e.i(43476),t=e.i(71645),a=e.i(82983),r=e.i(93999),l=e.i(46670),i=e.i(68759),n=e.i(32568),c=e.i(63376),o=e.i(78571),d=e.i(12092),x=e.i(41120),m=e.i(77071),u=e.i(59659),h=e.i(28523),p=e.i(21357),f=e.i(74544),v=e.i(41220),g=e.i(32781),j=e.i(4139),b=e.i(53138);let N="[AI]",w=[{label:"Every 15 minutes",value:"*/15 * * * *"},{label:"Every 30 minutes",value:"*/30 * * * *"},{label:"Every hour",value:"0 * * * *"},{label:"Every 6 hours",value:"0 */6 * * *"},{label:"Daily at midnight",value:"0 0 * * *"},{label:"Custom…",value:"__custom__"}];function y({open:e,onClose:r,onCreated:l,nodes:c,skills:d}){let[x,u]=(0,t.useState)(""),[h,p]=(0,t.useState)(""),[f,v]=(0,t.useState)(""),[j,k]=(0,t.useState)(w[2].value),[_,C]=(0,t.useState)(""),[S,E]=(0,t.useState)(!1),[I,A]=(0,t.useState)(null),D="__custom__"===j?_:j;async function $(e){if(e.preventDefault(),A(null),!x.trim()||!h||!f||!D.trim())return void A("All fields are required.");let s=d.find(e=>e.name===f),t=s?.entryPoint??"run.sh",i=`~/.magnus/skills/${f}/${t}`;E(!0);try{await a.f.cron.create({name:`${N} ${x.trim()}`,description:`Scheduled analysis job: run ${f} skill`,nodeId:h,schedule:D.trim(),command:i,args:[],timeoutSeconds:300}),l(),r(),L()}catch(e){A(e instanceof Error?e.message:"Failed to create cron job.")}finally{E(!1)}}function L(){u(""),p(""),v(""),k(w[2].value),C(""),A(null)}return(0,s.jsx)(n.n,{open:e,title:"New Scheduled Skill Job",onClose:()=>{r(),L()},children:(0,s.jsxs)("form",{onSubmit:$,className:"space-y-4",children:[I&&(0,s.jsxs)("div",{className:"flex items-center gap-2 rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:[(0,s.jsx)(b.f,{className:"h-3.5 w-3.5 shrink-0"}),I]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-xs font-medium text-text-muted",children:"Job Name"}),(0,s.jsx)("input",{className:n.W,type:"text",placeholder:"e.g. Log Analyzer — Prod",value:x,onChange:e=>u(e.target.value),required:!0}),(0,s.jsxs)("p",{className:"mt-1 text-[10px] text-text-muted",children:["Will be prefixed with ",(0,s.jsx)("code",{className:"text-primary/80",children:N})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-xs font-medium text-text-muted",children:"Target Node"}),(0,s.jsxs)("select",{className:n.W,value:h,onChange:e=>p(e.target.value),required:!0,children:[(0,s.jsx)("option",{value:"",children:"Select a node…"}),c.map(e=>(0,s.jsxs)("option",{value:e.id,children:[e.name," (",e.hostname,") — ",e.status]},e.id))]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-xs font-medium text-text-muted",children:"Skill"}),(0,s.jsxs)("select",{className:n.W,value:f,onChange:e=>v(e.target.value),required:!0,children:[(0,s.jsx)("option",{value:"",children:"Select a skill…"}),d.map(e=>(0,s.jsxs)("option",{value:e.name,children:[e.name," — ",e.description]},e.name))]}),f&&(0,s.jsxs)("p",{className:"mt-1 text-[10px] font-mono text-text-muted",children:["Command: ",(0,s.jsxs)("span",{className:"text-primary/80",children:["~/.magnus/skills/",f,"/",d.find(e=>e.name===f)?.entryPoint??"run.sh"]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-xs font-medium text-text-muted",children:"Schedule"}),(0,s.jsx)("select",{className:n.W,value:j,onChange:e=>k(e.target.value),children:w.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))}),"__custom__"===j&&(0,s.jsx)("input",{className:(0,o.f)(n.W,"mt-2 font-mono"),type:"text",placeholder:"Cron expression, e.g. 0 */4 * * *",value:_,onChange:e=>C(e.target.value),required:!0})]}),(0,s.jsxs)("div",{className:"flex justify-end gap-2 pt-1",children:[(0,s.jsx)(i.K,{type:"button",variant:"ghost",size:"sm",onClick:()=>{r(),L()},children:"Cancel"}),(0,s.jsxs)(i.K,{type:"submit",variant:"primary",size:"sm",disabled:S,children:[S?(0,s.jsx)(g.f,{className:"h-4 w-4 mr-2 animate-spin"}):(0,s.jsx)(m.f,{className:"h-4 w-4 mr-2"}),"Create Job"]})]})]})})}function k(){let[e,n]=(0,t.useState)([]),[c,d]=(0,t.useState)([]),[b,k]=(0,t.useState)([]),[_,C]=(0,t.useState)(!0),[S,E]=(0,t.useState)(!1),[I,A]=(0,t.useState)(null),[D,$]=(0,t.useState)(null),L=(0,t.useCallback)(async()=>{C(!0);try{let[e,s,t]=await Promise.allSettled([a.f.cron.list(),a.f.nodes.list(),a.f.skills.list()]);if("fulfilled"===e.status){let s=e.value.data??[];n(s.filter(e=>e.name.startsWith(N)))}"fulfilled"===s.status&&d(s.value.data??[]),"fulfilled"===t.status&&k(t.value.data??[])}finally{C(!1)}},[]);async function T(e){A(e);try{await a.f.cron.delete(e),n(s=>s.filter(s=>s.id!==e))}finally{A(null)}}async function z(e){let s="active"===e.status?"paused":"active";$(e.id);try{await a.f.cron.update(e.id,{status:s}),n(t=>t.map(t=>t.id===e.id?{...t,status:s}:t))}finally{$(null)}}return(0,t.useEffect)(()=>{L()},[L]),(0,s.jsxs)(r.N,{className:"p-5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-sm font-semibold uppercase tracking-wider text-text",children:"Skill Cron Jobs"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:"Deterministic cron jobs that run node skills and record results in Magnus command history."})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.K,{variant:"ghost",size:"sm",onClick:L,disabled:_,children:(0,s.jsx)(x.f,{className:(0,o.f)("h-4 w-4",_&&"animate-spin")})}),(0,s.jsxs)(i.K,{variant:"primary",size:"sm",onClick:()=>E(!0),children:[(0,s.jsx)(m.f,{className:"h-4 w-4 mr-2"}),"Add Job"]})]})]}),_?(0,s.jsxs)("div",{className:"flex items-center gap-2 text-text-muted py-6",children:[(0,s.jsx)(g.f,{className:"h-4 w-4 animate-spin"}),(0,s.jsx)("span",{className:"text-sm",children:"Loading…"})]}):0===e.length?(0,s.jsxs)("div",{className:"rounded border border-dashed border-border py-8 text-center",children:[(0,s.jsx)(j.f,{className:"h-8 w-8 mx-auto mb-3 text-text-muted/40"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"No scheduled skill jobs yet."}),(0,s.jsx)("p",{className:"text-xs text-text-muted/60 mt-1",children:"Click “Add Job” to create a skill-based analysis cron job."})]}):(0,s.jsx)("div",{className:"space-y-2 mt-3",children:e.map(e=>{var t,a;let r;return(0,s.jsxs)("div",{className:(0,o.f)("flex items-start gap-3 rounded border border-border px-3 py-2.5 transition-colors","paused"===e.status&&"opacity-60"),children:[(0,s.jsx)("div",{className:"mt-1 shrink-0",children:"active"===e.status?(0,s.jsx)("span",{className:"block h-2 w-2 rounded-full bg-success"}):"error"===e.status?(0,s.jsx)("span",{className:"block h-2 w-2 rounded-full bg-danger"}):(0,s.jsx)("span",{className:"block h-2 w-2 rounded-full bg-text-muted/40"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text",children:e.name.replace(/^\[AI\]\s*/,"")}),(0,s.jsx)(l.t,{variant:"default",className:"text-[10px]",children:e.status})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mt-1 flex-wrap",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1 text-[11px] text-text-muted",children:[(0,s.jsx)(f.f,{className:"h-3 w-3"}),(t=e.schedule,(r=w.find(e=>e.value===t))&&"__custom__"!==r.value?r.label:t)]}),(0,s.jsxs)("span",{className:"flex items-center gap-1 text-[11px] text-text-muted",children:[(0,s.jsx)(v.f,{className:"h-3 w-3"}),(a=e.nodeId,c.find(e=>e.id===a)?.name??a)]}),e.lastRunAt&&(0,s.jsxs)("span",{className:"text-[11px] text-text-muted/70",children:["Last run: ",new Date(e.lastRunAt).toLocaleString()]})]}),(0,s.jsx)("p",{className:"mt-0.5 text-[10px] font-mono text-text-muted/60 truncate",children:e.command})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,s.jsx)(i.K,{variant:"ghost",size:"sm",onClick:()=>z(e),disabled:D===e.id||"error"===e.status,title:"active"===e.status?"Pause":"Resume",className:"h-7 w-7 p-0",children:D===e.id?(0,s.jsx)(g.f,{className:"h-3.5 w-3.5 animate-spin"}):"active"===e.status?(0,s.jsx)(h.f,{className:"h-3.5 w-3.5"}):(0,s.jsx)(p.f,{className:"h-3.5 w-3.5"})}),(0,s.jsx)(i.K,{variant:"ghost",size:"sm",onClick:()=>T(e.id),disabled:I===e.id,title:"Delete",className:"h-7 w-7 p-0 text-danger/70 hover:text-danger",children:I===e.id?(0,s.jsx)(g.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,s.jsx)(u.f,{className:"h-3.5 w-3.5"})})]})]},e.id)})}),(0,s.jsx)(y,{open:S,onClose:()=>E(!1),onCreated:L,nodes:c,skills:b})]})}e.s(["default",0,function(){return(0,s.jsxs)(c.U,{children:[(0,s.jsx)(c.z,{children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded border border-primary/30 bg-primary/10",children:(0,s.jsx)(d.f,{className:"h-5 w-5 text-primary"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-lg font-bold uppercase tracking-widest text-text",children:"Operations"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Configure scheduled skill analysis jobs"})]})]})}),(0,s.jsx)(c.z,{children:(0,s.jsx)(k,{})})]})}])},46670,e=>{"use strict";var s=e.i(43476),t=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)]"},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:i,dot:n=!1,pulse:c=!1}){return(0,s.jsxs)("span",{className:(0,t.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",a[l],i),children:[n&&(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,t.f)("absolute inset-0 rounded-full animate-halo",r[l])}),(0,s.jsx)("span",{className:(0,t.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=>{"use strict";var s=e.i(43476),t=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 r=(0,t.f)(a);var l=e.i(75775),i=e.i(78571),n=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:t=100,tone:a,thresholds:r=c.q,label:l,size:n="xs",showValue:m=!1,valueLabel:u,glow:h,className:p,testId:f}){let v="number"==typeof e&&Number.isFinite(e),g=v?Math.max(0,Math.min(100,e/(t||1)*100)):0,j=a??(v?(0,c.Z)(g,r):"muted"),b=h||!a&&v&&g>=r.warn,N=u??(v?`${g.toFixed(+(g<10&&g>0))}%`:"—");return(0,s.jsxs)("div",{className:(0,i.f)("flex min-w-0 items-center gap-2",p),"data-testid":f,children:[(0,s.jsx)("div",{role:"meter","aria-label":l,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":v?e:void 0,"aria-valuetext":N,className:(0,i.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[n]),children:(0,s.jsx)("div",{style:{"--meter":`${g}%`},className:(0,i.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",c.H[j],b&&o[j])})}),m&&(0,s.jsx)("span",{className:(0,i.f)("num w-11 shrink-0 text-right text-[11px]",v?c.T[j]:"text-text-muted"),children:N})]})}e.s(["f",0,x],51196);var m=e.i(71645);function u({values:e,tone:t="primary",width:a=160,height:r=32,area:l=!0,max:n,percent:o=!1,threshold:d,live:x=!0,emptyLabel:h="not enough data",className:p,testId:f,label:v,stretch:g=!1}){let j=`spark${(0,m.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,s.jsx)("div",{className:(0,i.f)("flex h-8 items-center text-xs italic text-text-muted",p),"data-testid":f,children:h});let b=c.v[t],N=n??(o?Math.max(100,...e):Math.max(...e,d??0)||1),w=r-4,y=a/(e.length-1),k=e=>2+w-Math.max(0,e)/N*w,_=e.map((e,s)=>[s*y,k(e)]),C=_.map(([e,s])=>`${e.toFixed(1)},${s.toFixed(1)}`).join(" "),S=_[_.length-1];return(0,s.jsxs)("svg",{width:g?"100%":a,height:r,viewBox:`0 0 ${a} ${r}`,preserveAspectRatio:g?"none":void 0,className:(0,i.f)("block overflow-visible",p),"data-testid":f,role:v?"img":void 0,"aria-label":v,"aria-hidden":!v||void 0,children:[l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:j,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:b,stopOpacity:.35}),(0,s.jsx)("stop",{offset:"100%",stopColor:b,stopOpacity:0})]})}),(0,s.jsx)("polygon",{points:`0,${r} ${C} ${a},${r}`,fill:`url(#${j})`})]}),void 0!==d&&(0,s.jsx)("line",{x1:0,x2:a,y1:k(d),y2:k(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,s.jsx)("polyline",{fill:"none",stroke:b,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:C}),x&&!g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:S[0],cy:S[1],r:2.5,fill:b,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,s.jsx)("circle",{cx:S[0],cy:S[1],r:2,fill:b})]})]})}e.s(["f",0,u],55427),e.s(["N",0,function({title:e,description:t,children:a,className:r,action:l,tone:i,corners:c=!1,...o}){return(0,s.jsx)(n.f,{...o,tone:i,corners:c,title:e,description:t,action:l,className:r,children:a})},"n",0,function({label:e,value:t,icon:a,trend:o,spark:d,meter:m,delta:h,tone:p="primary",className:f,testId:v}){let g=!h||h.value>=0===(h.positiveIsGood??!0);return(0,s.jsxs)(n.f,{tone:p,className:(0,i.f)("overflow-hidden",f),testId:v,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}),a&&(0,s.jsx)("span",{className:"text-primary/60",children:a})]}),(0,s.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,s.jsx)("div",{className:(0,i.f)("num text-2xl font-bold","primary"===p?"text-primary neon-text":c.T[p]),children:t}),h&&0!==h.value&&(0,s.jsxs)("span",{className:(0,i.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",g?"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,i.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)(u,{values:d,tone:p,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{"use strict";var s=e.i(43476),t=e.i(78571),a=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)]"},i={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"},n={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:u,action:h,as:p="div",padding:f="md",testId:v,className:g,children:j,...b}){return(0,s.jsxs)(p,{...b,"data-testid":v??b["data-testid"],className:(0,t.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",n[f],c&&"panel-corners",c&&r[e],o&&"glow-hover",o&&l[e],o&&i[e],d&&"grid-bg overflow-hidden bg-surface/80",g),children:[(x||h||u)&&(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:[u&&(0,s.jsx)("span",{className:(0,t.f)("mt-0.5 shrink-0",a.T[e]),children:u}),(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]}),j]})}])},63376,e=>{"use strict";var s=e.i(43476);e.s(["z",0,function({children:e,className:t}){return(0,s.jsx)("div",{className:`animate-page-in${t?` ${t}`:""}`,children:e})},"U",0,function({children:e,className:t}){return(0,s.jsx)("div",{className:t,children:e})}])},75775,e=>{"use strict";var s=e.i(56420);let t={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],75775)},28523,e=>{"use strict";var s=e.i(56420);let t={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],28523)},21357,e=>{"use strict";var s=e.i(56420);let t={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"}]]};t.node;let a=(0,s.f)(t);e.s(["f",0,a],21357)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87027,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(93999),a=e.i(68759),i=e.i(46670),n=e.i(32568),c=e.i(82983),l=e.i(4050),o=e.i(71417),d=e.i(41120),x=e.i(26091),p=e.i(49882),m=e.i(63376);function u(){return new Date().toISOString().slice(0,10)}function h(e){if("string"==typeof e)try{return JSON.parse(e)}catch{return{raw:e}}return e??{}}function g(e){return e.includes("delete")||e.includes("decommission")||e.includes("cancel")?"danger":e.includes("create")||e.includes("register")||e.includes("deploy")||e.includes("push")?"success":e.includes("update")||e.includes("assign")?"warning":"info"}e.s(["default",0,function({initialEvents:e,initialDays:f}){let{activeNode:b}=(0,l.l)(),[v,j]=(0,r.useState)(e),[N,w]=(0,r.useState)(!1),[y,k]=(0,r.useState)("unverified"),[_,I]=(0,r.useState)(null),[T,E]=(0,r.useState)(f),[C,S]=(0,r.useState)(u()),[M,O]=(0,r.useState)(!0),A=(0,r.useCallback)(async()=>{try{let e=(await c.f.audit.days()).data;E(e)}catch{}},[]),D=(0,r.useCallback)(async e=>{try{w(!0);let t=await c.f.audit.list({pageSize:200,date:e});j(t.data);let r=t.meta;k(r?.verification?.state??"unverified")}catch{k("unverified")}finally{w(!1)}},[]);(0,r.useEffect)(()=>{M&&O(!1),A(),D(C)},[b.id]),(0,r.useEffect)(()=>{M||D(C)},[C]);let L=_?h(_.details):{},$=T.includes(u())?T:[u(),...T];return(0,t.jsxs)(m.U,{className:"space-y-6",children:[(0,t.jsx)(m.z,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider",children:"Audit Log"}),(0,t.jsx)("p",{className:"mt-1 text-[11px] text-text-muted uppercase tracking-wider",children:"Fleet actions with verified or explicitly partial legacy integrity"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.f,{className:"h-4 w-4 text-primary/60"}),(0,t.jsx)("select",{value:C,onChange:e=>{S(e.target.value)},className:"rounded border border-border bg-bg px-3 py-1.5 text-xs text-text focus:border-primary focus:outline-none focus:shadow-[0_0_8px_var(--color-glow)] transition-all",children:$.map(e=>(0,t.jsx)("option",{value:e,children:e===u()?`Today (${e})`:e},e))})]}),(0,t.jsx)(a.K,{variant:"secondary",size:"sm",icon:(0,t.jsx)(d.f,{className:"h-3.5 w-3.5"}),onClick:()=>{A(),D(C)},children:"Refresh"})]})]})}),(0,t.jsx)(m.z,{children:(0,t.jsxs)(s.N,{children:[(0,t.jsxs)("p",{role:"status",className:"mb-4 text-xs",children:["Chain: ",y,". Legacy partial signatures do not protect targets, details, actor type or IP address."]}),N?(0,t.jsx)("div",{className:"py-8 text-center text-[11px] text-text-muted",children:"Loading audit trail…"}):0===v.length?(0,t.jsxs)("div",{className:"py-8 text-center text-[11px] text-text-muted",children:["No audit events for ",C,"."]}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-[11px]",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-primary/20 text-left text-[10px] font-bold uppercase tracking-[0.15em] text-text-muted",children:[(0,t.jsx)("th",{className:"pb-3 pr-4",children:"Timestamp"}),(0,t.jsx)("th",{className:"pb-3 pr-4",children:"Action"}),(0,t.jsx)("th",{className:"pb-3 pr-4",children:"Actor"}),(0,t.jsx)("th",{className:"pb-3 pr-4",children:"Target"}),(0,t.jsx)("th",{className:"pb-3",children:"Integrity"}),(0,t.jsx)("th",{className:"pb-3",children:"Details"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-border/50",children:v.map(e=>(0,t.jsxs)("tr",{className:"hover:bg-surface-hover cursor-pointer transition-colors",onClick:()=>I(e),children:[(0,t.jsx)("td",{className:"py-3 pr-4 text-text-muted",children:(0,o.C)(e.timestamp)}),(0,t.jsx)("td",{className:"py-3 pr-4",children:(0,t.jsx)(i.t,{variant:g(e.action),children:e.action})}),(0,t.jsxs)("td",{className:"py-3 pr-4 text-text-muted",children:[(0,t.jsxs)("span",{className:"text-[11px]",children:[e.actorId.slice(0,10),"…"]}),(0,t.jsxs)("span",{className:"ml-1 text-[10px]",children:["(",e.actorType,")"]})]}),(0,t.jsxs)("td",{className:"py-3 pr-4 text-text-muted",children:[e.targetType,":",e.targetId.slice(0,10)]}),(0,t.jsx)("td",{children:e.verificationState??"unverified"}),(0,t.jsx)("td",{className:"max-w-[200px] truncate py-3 text-[11px] text-text-muted",children:JSON.stringify("string"==typeof e.details?h(e.details):e.details)})]},e.id))})]})})]})}),(0,t.jsx)(n.n,{open:!!_,onClose:()=>I(null),title:"Audit Event",description:_?.action??"",icon:(0,t.jsx)(x.f,{className:"h-5 w-5 text-primary"}),className:"max-w-2xl",children:_&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"rounded border border-border bg-bg p-3",children:[(0,t.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-1",children:"Action"}),(0,t.jsx)(i.t,{variant:g(_.action),children:_.action})]}),(0,t.jsxs)("div",{className:"rounded border border-border bg-bg p-3",children:[(0,t.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-1",children:"Timestamp"}),(0,t.jsx)("p",{className:"text-xs",children:(0,o.C)(_.timestamp)})]}),(0,t.jsxs)("div",{className:"rounded border border-border bg-bg p-3",children:[(0,t.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-1",children:"Actor"}),(0,t.jsx)("p",{className:"text-xs",children:_.actorId}),(0,t.jsx)("p",{className:"text-[10px] text-text-muted",children:_.actorType})]}),(0,t.jsxs)("div",{className:"rounded border border-border bg-bg p-3",children:[(0,t.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-1",children:"Target"}),(0,t.jsx)("p",{className:"text-xs",children:_.targetId}),(0,t.jsx)("p",{className:"text-[10px] text-text-muted",children:_.targetType})]})]}),(0,t.jsxs)("div",{className:"rounded border border-border bg-bg p-3",children:[(0,t.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-1",children:"Event ID"}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:_.id})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-wider text-text-muted mb-2",children:"Details"}),0===Object.keys(L).length?(0,t.jsx)("p",{className:"text-[11px] text-text-muted italic",children:"No additional details"}):(0,t.jsx)("div",{className:"rounded border border-border bg-bg p-3 space-y-2",children:Object.entries(L).map(([e,r])=>(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"text-[11px] font-bold text-primary min-w-[100px] shrink-0",children:e}),(0,t.jsx)("span",{className:"text-[11px] text-text-muted break-all",children:"object"==typeof r?JSON.stringify(r,null,2):String(r)})]},e))})]}),(0,t.jsx)("div",{className:"flex justify-end pt-2",children:(0,t.jsx)(a.K,{variant:"secondary",size:"sm",onClick:()=>I(null),children:"Close"})})]})})]})}])},46670,e=>{"use strict";var t=e.i(43476),r=e.i(78571);let s={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)]"},a={default:"bg-text-muted",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"};e.s(["t",0,function({children:e,variant:i="default",className:n,dot:c=!1,pulse:l=!1}){return(0,t.jsxs)("span",{className:(0,r.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",s[i],n),children:[c&&(0,t.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[l&&(0,t.jsx)("span",{className:(0,r.f)("absolute inset-0 rounded-full animate-halo",a[i])}),(0,t.jsx)("span",{className:(0,r.f)("relative inline-flex h-1.5 w-1.5 rounded-full",a[i])})]}),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=>{"use strict";var t=e.i(43476),r=e.i(56420);let s={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};s.node;let a=(0,r.f)(s);var i=e.i(75775),n=e.i(78571),c=e.i(3062),l=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:r=100,tone:s,thresholds:a=l.q,label:i,size:c="xs",showValue:p=!1,valueLabel:m,glow:u,className:h,testId:g}){let f="number"==typeof e&&Number.isFinite(e),b=f?Math.max(0,Math.min(100,e/(r||1)*100)):0,v=s??(f?(0,l.Z)(b,a):"muted"),j=u||!s&&f&&b>=a.warn,N=m??(f?`${b.toFixed(+(b<10&&b>0))}%`:"—");return(0,t.jsxs)("div",{className:(0,n.f)("flex min-w-0 items-center gap-2",h),"data-testid":g,children:[(0,t.jsx)("div",{role:"meter","aria-label":i,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":f?e:void 0,"aria-valuetext":N,className:(0,n.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[c]),children:(0,t.jsx)("div",{style:{"--meter":`${b}%`},className:(0,n.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",l.H[v],j&&o[v])})}),p&&(0,t.jsx)("span",{className:(0,n.f)("num w-11 shrink-0 text-right text-[11px]",f?l.T[v]:"text-text-muted"),children:N})]})}e.s(["f",0,x],51196);var p=e.i(71645);function m({values:e,tone:r="primary",width:s=160,height:a=32,area:i=!0,max:c,percent:o=!1,threshold:d,live:x=!0,emptyLabel:u="not enough data",className:h,testId:g,label:f,stretch:b=!1}){let v=`spark${(0,p.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,t.jsx)("div",{className:(0,n.f)("flex h-8 items-center text-xs italic text-text-muted",h),"data-testid":g,children:u});let j=l.v[r],N=c??(o?Math.max(100,...e):Math.max(...e,d??0)||1),w=a-4,y=s/(e.length-1),k=e=>2+w-Math.max(0,e)/N*w,_=e.map((e,t)=>[t*y,k(e)]),I=_.map(([e,t])=>`${e.toFixed(1)},${t.toFixed(1)}`).join(" "),T=_[_.length-1];return(0,t.jsxs)("svg",{width:b?"100%":s,height:a,viewBox:`0 0 ${s} ${a}`,preserveAspectRatio:b?"none":void 0,className:(0,n.f)("block overflow-visible",h),"data-testid":g,role:f?"img":void 0,"aria-label":f,"aria-hidden":!f||void 0,children:[i&&(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:j,stopOpacity:.35}),(0,t.jsx)("stop",{offset:"100%",stopColor:j,stopOpacity:0})]})}),(0,t.jsx)("polygon",{points:`0,${a} ${I} ${s},${a}`,fill:`url(#${v})`})]}),void 0!==d&&(0,t.jsx)("line",{x1:0,x2:s,y1:k(d),y2:k(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,t.jsx)("polyline",{fill:"none",stroke:j,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:I}),x&&!b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:T[0],cy:T[1],r:2.5,fill:j,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,t.jsx)("circle",{cx:T[0],cy:T[1],r:2,fill:j})]})]})}e.s(["f",0,m],55427),e.s(["N",0,function({title:e,description:r,children:s,className:a,action:i,tone:n,corners:l=!1,...o}){return(0,t.jsx)(c.f,{...o,tone:n,corners:l,title:e,description:r,action:i,className:a,children:s})},"n",0,function({label:e,value:r,icon:s,trend:o,spark:d,meter:p,delta:u,tone:h="primary",className:g,testId:f}){let b=!u||u.value>=0===(u.positiveIsGood??!0);return(0,t.jsxs)(c.f,{tone:h,className:(0,n.f)("overflow-hidden",g),testId:f,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}),s&&(0,t.jsx)("span",{className:"text-primary/60",children:s})]}),(0,t.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,t.jsx)("div",{className:(0,n.f)("num text-2xl font-bold","primary"===h?"text-primary neon-text":l.T[h]),children:r}),u&&0!==u.value&&(0,t.jsxs)("span",{className:(0,n.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",b?"text-success":"text-danger"),children:[u.value>0?(0,t.jsx)(i.f,{className:"h-3 w-3"}):(0,t.jsx)(a,{className:"h-3 w-3"}),Math.abs(u.value).toFixed(+!Number.isInteger(u.value)),u.unit]})]}),o&&(0,t.jsx)("div",{className:(0,n.f)("mt-1 text-[11px]",o.positive?"text-success":"text-danger"),children:o.value}),void 0!==p&&(0,t.jsx)(x,{value:p,className:"mt-3",label:e}),d&&d.length>1&&(0,t.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,t.jsx)(m,{values:d,tone:h,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{"use strict";var t=e.i(43476),r=e.i(78571),s=e.i(35084);let a={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)]"},i={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"},c={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:l=!0,interactive:o=!0,hero:d=!1,title:x,description:p,icon:m,action:u,as:h="div",padding:g="md",testId:f,className:b,children:v,...j}){return(0,t.jsxs)(h,{...j,"data-testid":f??j["data-testid"],className:(0,r.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",c[g],l&&"panel-corners",l&&a[e],o&&"glow-hover",o&&i[e],o&&n[e],d&&"grid-bg overflow-hidden bg-surface/80",b),children:[(x||u||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,r.f)("mt-0.5 shrink-0",s.T[e]),children:m}),(0,t.jsxs)("div",{className:"min-w-0",children:[x&&(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:x}),p&&(0,t.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:p})]})]}),u]}),v]})}])},63376,e=>{"use strict";var t=e.i(43476);e.s(["z",0,function({children:e,className:r}){return(0,t.jsx)("div",{className:`animate-page-in${r?` ${r}`:""}`,children:e})},"U",0,function({children:e,className:r}){return(0,t.jsx)("div",{className:r,children:e})}])},71417,e=>{"use strict";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"}):"—"}])},75775,e=>{"use strict";var t=e.i(56420);let r={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],75775)},49882,e=>{"use strict";var t=e.i(56420);let r={name:"calendar",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]};r.node;let s=(0,t.f)(r);e.s(["f",0,s],49882)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99594,e=>{"use strict";var t=e.i(43476),a=e.i(64971),s=e.i(71645),r=e.i(93999),i=e.i(68759),l=e.i(31624),n=e.i(32568),o=e.i(82983),c=e.i(56420);let d={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};d.node;let x=(0,c.f)(d);var m=e.i(26091);let h={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};h.node;let p=(0,c.f)(h);var u=e.i(32781),f=e.i(49817),g=e.i(41120),v=e.i(89360),b=e.i(29600);let y={name:"file-image",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]};y.node;let j=(0,c.f)(y),w={name:"file-archive",size:24,node:[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]]};w.node;let N=(0,c.f)(w);function k({open:e,onClose:a,nodeId:r,currentPath:l,onSelect:c,runAsUser:d}){let[h,y]=(0,s.useState)(l||"~"),[w,C]=(0,s.useState)(""),[_,S]=(0,s.useState)([]),[z,M]=(0,s.useState)(!1),[$,E]=(0,s.useState)(null),L=(0,s.useCallback)(async e=>{if(r){M(!0),E(null);try{let t=`cd ${JSON.stringify(e)} 2>/dev/null || cd ~ ; echo "CWD:$(pwd)" ; ls -laF --time-style=long-iso 2>/dev/null || ls -laF 2>/dev/null`,a=d?`runuser -l ${d} -c ${"'"+t.replace(/'/g,"'\\''")+"'"}`:t,s=(await o.f.quickCommand.exec(r,{command:a,args:[],timeoutSeconds:10})).data;if(!s){E("Failed to list directory"),M(!1);return}if(0!==s.exitCode&&!s.stdout){E(s.stderr||`Failed to list directory (exit ${s.exitCode})`),M(!1);return}let i=s.stdout.split("\n").filter(Boolean),l=i.find(e=>e.startsWith("CWD:")),n=l?l.replace("CWD:","").trim():e;C(n),y(n);let c=[];for(let e of i){if(e.startsWith("CWD:")||e.startsWith("total "))continue;let t=e.split(/\s+/);if(t.length<8)continue;let a=t[0]??"",s=t[4]??"0",r=`${t[5]??""} ${t[6]??""}`,i=t.slice(7).join(" ");if(!i||"."===i||".."===i)continue;let l=a.startsWith("l"),n=l?i.split(" -> ")[0]??i:i,o=n.replace(/[/@*|]$/,""),d=n.endsWith("/")||l&&i.endsWith("/"),x=a.startsWith("d")||d;c.push({name:o,isDirectory:x,size:s,permissions:a,modified:r})}c.sort((e,t)=>e.isDirectory!==t.isDirectory?e.isDirectory?-1:1:e.name.localeCompare(t.name)),S(c)}catch(e){E(e instanceof Error?e.message:"Failed to browse files")}finally{M(!1)}}},[r,d]);(0,s.useEffect)(()=>{if(e&&r){let e=l||"~";y(e),L(e)}},[e,r]);let D=e=>{L("/"===w?`/${e}`:`${w}/${e}`)},F=e=>{c("/"===w?`/${e}`:`${w}/${e}`),a()};return e?(0,t.jsx)(n.n,{open:e,onClose:a,title:"Browse Files",description:w||h,icon:(0,t.jsx)(x,{className:"h-5 w-5 text-primary"}),className:"max-w-2xl",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.K,{variant:"ghost",size:"sm",onClick:()=>{L(w.replace(/\/[^/]+\/?$/,"")||"/")},disabled:z||"/"===w,title:"Go up",children:(0,t.jsx)(p,{className:"h-4 w-4"})}),(0,t.jsx)(i.K,{variant:"ghost",size:"sm",onClick:()=>void L("~"),disabled:z,title:"Home directory",children:(0,t.jsx)(f.f,{className:"h-4 w-4"})}),(0,t.jsx)(i.K,{variant:"ghost",size:"sm",onClick:()=>void L(w||h),disabled:z,title:"Refresh",children:(0,t.jsx)(g.f,{className:`h-4 w-4 ${z?"animate-spin":""}`})}),(0,t.jsx)("div",{className:"flex-1 rounded border border-border bg-bg px-3 py-1.5 text-xs text-text-muted truncate",children:w||h})]}),$&&(0,t.jsx)("div",{className:"rounded bg-danger/10 border border-danger/30 p-3",children:(0,t.jsx)("p",{className:"text-xs text-danger",children:$})}),(0,t.jsx)("div",{className:"h-96 overflow-y-auto rounded border border-border",children:z?(0,t.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,t.jsx)(u.f,{className:"h-6 w-6 animate-spin text-text-muted"})}):0===_.length?(0,t.jsx)("div",{className:"py-8 text-center text-xs text-text-muted",children:"Empty directory"}):(0,t.jsxs)("table",{className:"w-full text-xs",children:[(0,t.jsx)("thead",{className:"sticky top-0 bg-surface z-10",children:(0,t.jsxs)("tr",{className:"border-b border-border text-[10px] font-bold uppercase tracking-[0.15em] text-text-muted",children:[(0,t.jsx)("th",{className:"px-3 py-2 text-left",children:"Name"}),(0,t.jsx)("th",{className:"px-3 py-2 text-right w-24",children:"Size"}),(0,t.jsx)("th",{className:"px-3 py-2 text-right w-40 hidden sm:table-cell",children:"Modified"})]})}),(0,t.jsx)("tbody",{children:_.map(e=>{var a;let s;return(0,t.jsxs)("tr",{className:"border-b border-border/50 hover:bg-surface-hover hover:shadow-[0_0_20px_var(--color-glow)] cursor-pointer transition-all",onClick:()=>e.isDirectory?D(e.name):F(e.name),onDoubleClick:()=>e.isDirectory?D(e.name):F(e.name),children:[(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[function(e,a){if(a)return(0,t.jsx)(x,{className:"h-4 w-4 text-warning shrink-0"});let s=e.split(".").pop()?.toLowerCase()??"";return["ts","tsx","js","jsx","py","sh","json","yaml","yml","toml"].includes(s)?(0,t.jsx)(v.f,{className:"h-4 w-4 text-primary shrink-0"}):["png","jpg","jpeg","gif","svg","webp","ico"].includes(s)?(0,t.jsx)(j,{className:"h-4 w-4 text-accent shrink-0"}):["tar","gz","zip","bz2","xz","deb","rpm"].includes(s)?(0,t.jsx)(N,{className:"h-4 w-4 text-warning shrink-0"}):["md","txt","log","conf","cfg","ini","env"].includes(s)?(0,t.jsx)(m.f,{className:"h-4 w-4 text-success shrink-0"}):(0,t.jsx)(b.f,{className:"h-4 w-4 text-text-muted shrink-0"})}(e.name,e.isDirectory),(0,t.jsxs)("span",{className:e.isDirectory?"font-bold text-warning":"",children:[e.name,e.isDirectory?"/":""]})]})}),(0,t.jsx)("td",{className:"px-3 py-2 text-right text-xs text-text-muted",children:e.isDirectory?"—":isNaN(s=parseInt(a=e.size,10))?a:s<1024?`${s} B`:s<1048576?`${(s/1024).toFixed(1)} KB`:s<0x40000000?`${(s/1048576).toFixed(1)} MB`:`${(s/0x40000000).toFixed(1)} GB`}),(0,t.jsx)("td",{className:"px-3 py-2 text-right text-xs text-text-muted hidden sm:table-cell",children:e.modified})]},e.name)})})]})}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:"Click a folder to navigate into it. Click a file to select it."})]})}):null}var C=e.i(46670),_=e.i(71417),S=e.i(70533),z=e.i(66595),M=e.i(15170),$=e.i(5015),E=e.i(63676);function L({open:e,onClose:a,onSelect:r,title:l}){let[c,d]=(0,s.useState)([]),[x,h]=(0,s.useState)(""),[p,u]=(0,s.useState)(!1),f=(0,s.useCallback)(async()=>{u(!0);try{let e={pageSize:"100"};x&&(e.query=x);let t=await o.f.library.files.list(e);d(t.data)}catch{}finally{u(!1)}},[x]);(0,s.useEffect)(()=>{e&&f()},[e,f]),(0,s.useEffect)(()=>{if(!e)return;let t=setTimeout(()=>{f()},300);return()=>clearTimeout(t)},[x,e,f]);let g=async e=>{try{let t=(await o.f.library.files.get(e.id)).data;r({id:t.id,name:t.name,fileName:t.fileName,content:t.content}),a()}catch{}};return(0,t.jsx)(n.n,{open:e,onClose:a,title:l??"Load from Library",description:"Select a library file to load into the editor",icon:(0,t.jsx)(S.f,{className:"h-5 w-5 text-primary"}),className:"max-w-2xl",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(z.f,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-muted"}),(0,t.jsx)("input",{type:"text",value:x,onChange:e=>h(e.target.value),placeholder:"Search library files…",className:"w-full rounded border border-border bg-bg py-2 pl-10 pr-4 text-xs text-text placeholder:text-text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary focus:shadow-[0_0_8px_var(--color-glow)] transition-all",autoFocus:!0}),x&&(0,t.jsx)("button",{onClick:()=>h(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-text-muted hover:text-text",children:(0,t.jsx)(E.X,{className:"h-3.5 w-3.5"})})]}),(0,t.jsx)("div",{className:"max-h-80 overflow-y-auto rounded border border-border divide-y divide-border",children:p?(0,t.jsx)("div",{className:"py-8 text-center text-xs text-text-muted",children:"Loading…"}):0===c.length?(0,t.jsx)("div",{className:"py-8 text-center text-xs text-text-muted",children:x?"No files match your search":"No library files yet"}):c.map(e=>{var a,s;return(0,t.jsxs)("button",{onClick:()=>void g(e),className:"flex w-full items-center gap-3 px-4 py-3 text-left transition-all hover:bg-surface-hover hover:shadow-[0_0_20px_var(--color-glow)]",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded bg-primary/10 text-primary shrink-0",children:(a=e.mimeType).startsWith("image/")?(0,t.jsx)(M.f,{className:"h-4 w-4"}):"application/json"===a?(0,t.jsx)($.f,{className:"h-4 w-4"}):"text/markdown"===a||"text/plain"===a?(0,t.jsx)(m.f,{className:"h-4 w-4"}):(0,t.jsx)(b.f,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-bold truncate",children:e.name}),(0,t.jsx)("span",{className:"text-xs text-text-muted",children:e.fileName})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(0,t.jsx)(C.t,{children:{"text/markdown":"Markdown","text/plain":"Text","application/json":"JSON","application/pdf":"PDF","image/png":"PNG","image/jpeg":"JPEG","image/svg+xml":"SVG"}[s=e.mimeType]??s.split("/")[1]?.toUpperCase()??"File"}),(0,t.jsx)("span",{className:"text-xs text-text-muted",children:(0,_.L)(e.sizeBytes)}),e.category&&(0,t.jsx)("span",{className:"inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-xs",style:{backgroundColor:`${e.category.color}20`,color:e.category.color},children:e.category.name})]})]}),(0,t.jsx)("span",{className:"text-xs text-text-muted shrink-0",children:(0,_.C)(e.updatedAt)})]},e.id)})}),(0,t.jsx)("div",{className:"flex justify-end pt-1",children:(0,t.jsx)(i.K,{variant:"secondary",size:"sm",onClick:a,children:"Cancel"})})]})})}function D({open:e,onClose:a,fileName:r,content:l,onSaved:c}){let[d,x]=(0,s.useState)(""),[m,h]=(0,s.useState)(!1),[p,u]=(0,s.useState)("");(0,s.useEffect)(()=>{e&&(x(r.replace(/\.[^/.]+$/,"")||""),u(""))},[e,r]);let f=async()=>{if(d.trim()){h(!0),u("");try{await o.f.library.files.create({name:d.trim(),fileName:r||`${d.trim()}.md`,mimeType:r.endsWith(".json")?"application/json":"text/markdown",content:l}),c(),a()}catch(e){u(e instanceof Error?e.message:"Failed to save to library")}finally{h(!1)}}};return(0,t.jsx)(n.n,{open:e,onClose:a,title:"Save to Library",description:"Save the current editor content as a library file",icon:(0,t.jsx)(S.f,{className:"h-5 w-5 text-primary"}),children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[11px] font-bold uppercase tracking-wider text-text-muted mb-1.5",children:"Display Name"}),(0,t.jsx)("input",{type:"text",value:d,onChange:e=>x(e.target.value),placeholder:"e.g. SOUL",className:"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text placeholder:text-text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary focus:shadow-[0_0_8px_var(--color-glow)] transition-all",autoFocus:!0})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[11px] font-bold uppercase tracking-wider text-text-muted mb-1.5",children:"File Name"}),(0,t.jsx)("input",{type:"text",value:r,disabled:!0,className:"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text-muted"})]}),(0,t.jsxs)("p",{className:"text-xs text-text-muted",children:["Content size: ",(0,_.L)(new TextEncoder().encode(l).length)]}),p&&(0,t.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger",children:p}),(0,t.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,t.jsx)(i.K,{variant:"secondary",size:"sm",onClick:a,children:"Cancel"}),(0,t.jsx)(i.K,{size:"sm",onClick:()=>void f(),disabled:m||!d.trim(),children:m?"Saving…":"Save to Library"})]})]})})}var F=e.i(56522),A=e.i(62368),I=e.i(69644),T=e.i(56423),O=e.i(84026),P=e.i(63376);e.s(["default",0,function(){let[e,n]=(0,s.useState)(""),[c,d]=(0,s.useState)(""),[x,h]=(0,s.useState)(""),[p,f]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!1),[b,y]=(0,s.useState)(null),[j,w]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1),[_,z]=(0,s.useState)(!1),[M,$]=(0,s.useState)(null),[E,B]=(0,s.useState)(!0),[U,K]=(0,s.useState)(null),G=async(e,t)=>{if(e&&"object"==typeof e&&"response"in e)try{let t=await (0,a.O)(e),s=t?.error&&"object"==typeof t.error?t.error?.message:void 0;if(s)return s;let r=t?.data;if(Array.isArray(r)){let e=r.filter(e=>"failed"===e.status);if(e.length>0)return e.map(e=>e.error||"Unknown error").join("; ")}}catch{}return e instanceof Error?"Failed to fetch"===e.message?"Control node unreachable":e.message:t},W=async t=>{let a=t??c;if(e&&a){f(!0),y(null);try{let t=(await o.f.files.read(e,a)).data;h(t.content)}catch(t){let e=await G(t,"Could not read file from node");y(`Read failed: ${e}`),h("")}finally{f(!1)}}},H=async()=>{if(e&&c){f(!0),v(!1),y(null);try{let t=(await o.f.files.update({nodeIds:[e],filePath:c,content:x,createIfMissing:!0,backup:E})).data,a=t?.filter(e=>"failed"===e.status)??[];if(a.length>0){let e=a.map(e=>e.error||"Unknown error").join("; ");y(`Push failed: ${e}`)}else v(!0),setTimeout(()=>v(!1),3e3)}catch(t){let e=await G(t,"Could not push file to node");y(`Push failed: ${e}`)}finally{f(!1)}}},R=async()=>{if(e&&c){f(!0),y(null),K(null);try{let t=await o.f.files.update({nodeIds:[e],filePath:c,content:x,createIfMissing:!0,backup:E,previewOnly:!0});K(t.data)}catch(t){let e=await G(t,"Could not preview file update");y(`Preview failed: ${e}`)}finally{f(!1)}}},V=async()=>{if(M&&x)try{await o.f.library.files.update(M,{content:x}),v(!0),setTimeout(()=>v(!1),3e3)}catch{z(!0)}else z(!0)};return(0,t.jsxs)(P.U,{className:"space-y-6",children:[(0,t.jsx)(P.z,{children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider",children:"File Manager"}),(0,t.jsx)("p",{className:"mt-1 text-[11px] text-text-muted uppercase tracking-wider",children:"Read and update Magnus workspace files across nodes"})]})}),(0,t.jsx)(P.z,{children:(0,t.jsxs)(r.N,{title:"Target",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,t.jsx)(l.f,{value:e,onChange:e=>n(Array.isArray(e)?e[0]??"":e),label:"Node",placeholder:"Select a node…"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:"File Path"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("div",{onClick:()=>e&&w(!0),className:`flex-1 flex items-center gap-2 rounded border border-border bg-bg px-3 py-2 text-xs cursor-pointer hover:border-primary/40 hover:shadow-[0_0_8px_var(--color-glow)] transition-all ${!e?"opacity-50 cursor-not-allowed":""}`,children:[(0,t.jsx)(m.f,{className:"h-3.5 w-3.5 text-text-muted shrink-0"}),(0,t.jsx)("span",{className:c?"":"text-text-muted",children:c||"Browse to select a file…"})]}),(0,t.jsx)(i.K,{variant:"secondary",size:"sm",onClick:()=>w(!0),disabled:!e,title:"Browse files on node",children:(0,t.jsx)(I.f,{className:"h-4 w-4"})})]})]}),(0,t.jsx)("div",{className:"flex items-end gap-2",children:(0,t.jsxs)(i.K,{variant:"secondary",onClick:()=>void W(),disabled:p||!e||!c,children:[(0,t.jsx)(A.f,{className:"h-4 w-4"}),"Pull"]})})]}),(0,t.jsxs)("label",{className:"mt-4 inline-flex items-center gap-2 text-[11px] uppercase tracking-wider text-text-muted",children:[(0,t.jsx)("input",{type:"checkbox",checked:E,onChange:e=>B(e.target.checked)}),"Create remote backup before write"]})]})}),(0,t.jsx)(k,{open:j,onClose:()=>w(!1),nodeId:e,currentPath:"~",onSelect:e=>{d(e),W(e)},runAsUser:null}),b&&(0,t.jsx)(P.z,{children:(0,t.jsxs)("div",{className:"rounded border border-danger/40 bg-danger/5 px-4 py-3 text-[11px] text-danger flex items-center justify-between shadow-[0_0_8px_rgba(255,23,68,0.15)]",children:[(0,t.jsx)("span",{children:b}),(0,t.jsx)("button",{onClick:()=>y(null),className:"ml-4 text-danger hover:text-danger/80 text-[10px] uppercase tracking-wider",children:"Dismiss"})]})}),U&&(0,t.jsx)(P.z,{children:(0,t.jsxs)("div",{className:"rounded border border-primary/30 bg-primary/5 px-4 py-3 text-[11px] uppercase tracking-wider text-primary",children:["Policy: ",U.policy," · targets: ",U.targetCount," · backup: ",U.backupPlanned?"planned":"off"," · bytes: ",U.contentBytes]})}),(0,t.jsx)(P.z,{children:(0,t.jsxs)(r.N,{title:"File Editor",action:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[g&&(0,t.jsx)("span",{className:"text-xs text-success",children:"Saved!"}),(0,t.jsxs)(i.K,{variant:"secondary",size:"sm",onClick:()=>C(!0),children:[(0,t.jsx)(T.f,{className:"h-3.5 w-3.5"}),"Load from Library"]}),(0,t.jsxs)(i.K,{variant:"secondary",size:"sm",onClick:()=>void V(),disabled:!x,children:[(0,t.jsx)(S.f,{className:"h-3.5 w-3.5"}),M?"Save to Library":"Save as Library File"]}),(0,t.jsxs)(i.K,{variant:"secondary",size:"sm",onClick:()=>void R(),disabled:p||!e||!c,children:[(0,t.jsx)(O.f,{className:"h-3.5 w-3.5"}),"Preview"]}),(0,t.jsxs)(i.K,{size:"sm",onClick:()=>void H(),disabled:p||!e,children:[p?(0,t.jsx)(u.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(F.f,{className:"h-3.5 w-3.5"}),"Push to Node"]})]}),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/50 pb-3 mb-3",children:[(0,t.jsx)(m.f,{className:"h-4 w-4 text-primary"}),(0,t.jsx)("span",{className:"text-[11px] text-primary",children:c||"No file selected"})]}),(0,t.jsx)("textarea",{value:x,onChange:e=>h(e.target.value),placeholder:"File content will appear here after pulling from a node…",rows:20,className:"w-full rounded border border-border bg-bg p-4 text-xs leading-relaxed outline-none focus:border-primary focus:shadow-[0_0_12px_var(--color-glow)] transition-all text-text"})]})}),(0,t.jsx)(L,{open:N,onClose:()=>C(!1),onSelect:e=>{h(e.content),$(e.id),c||d(e.fileName)}}),(0,t.jsx)(D,{open:_,onClose:()=>z(!1),fileName:c.split("/").pop()??(c||"untitled.md"),content:x,onSaved:()=>{v(!0),setTimeout(()=>v(!1),3e3)}})]})}],99594)},46670,e=>{"use strict";var t=e.i(43476),a=e.i(78571);let s={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:i="default",className:l,dot:n=!1,pulse:o=!1}){return(0,t.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",s[i],l),children:[n&&(0,t.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[o&&(0,t.jsx)("span",{className:(0,a.f)("absolute inset-0 rounded-full animate-halo",r[i])}),(0,t.jsx)("span",{className:(0,a.f)("relative inline-flex h-1.5 w-1.5 rounded-full",r[i])})]}),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=>{"use strict";var t=e.i(43476),a=e.i(56420);let s={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};s.node;let r=(0,a.f)(s);var i=e.i(75775),l=e.i(78571),n=e.i(3062),o=e.i(35084);let c={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:s,thresholds:r=o.q,label:i,size:n="xs",showValue:m=!1,valueLabel:h,glow:p,className:u,testId:f}){let g="number"==typeof e&&Number.isFinite(e),v=g?Math.max(0,Math.min(100,e/(a||1)*100)):0,b=s??(g?(0,o.Z)(v,r):"muted"),y=p||!s&&g&&v>=r.warn,j=h??(g?`${v.toFixed(+(v<10&&v>0))}%`:"—");return(0,t.jsxs)("div",{className:(0,l.f)("flex min-w-0 items-center gap-2",u),"data-testid":f,children:[(0,t.jsx)("div",{role:"meter","aria-label":i,"aria-valuemin":0,"aria-valuemax":a,"aria-valuenow":g?e:void 0,"aria-valuetext":j,className:(0,l.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[n]),children:(0,t.jsx)("div",{style:{"--meter":`${v}%`},className:(0,l.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",o.H[b],y&&c[b])})}),m&&(0,t.jsx)("span",{className:(0,l.f)("num w-11 shrink-0 text-right text-[11px]",g?o.T[b]:"text-text-muted"),children:j})]})}e.s(["f",0,x],51196);var m=e.i(71645);function h({values:e,tone:a="primary",width:s=160,height:r=32,area:i=!0,max:n,percent:c=!1,threshold:d,live:x=!0,emptyLabel:p="not enough data",className:u,testId:f,label:g,stretch:v=!1}){let b=`spark${(0,m.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,t.jsx)("div",{className:(0,l.f)("flex h-8 items-center text-xs italic text-text-muted",u),"data-testid":f,children:p});let y=o.v[a],j=n??(c?Math.max(100,...e):Math.max(...e,d??0)||1),w=r-4,N=s/(e.length-1),k=e=>2+w-Math.max(0,e)/j*w,C=e.map((e,t)=>[t*N,k(e)]),_=C.map(([e,t])=>`${e.toFixed(1)},${t.toFixed(1)}`).join(" "),S=C[C.length-1];return(0,t.jsxs)("svg",{width:v?"100%":s,height:r,viewBox:`0 0 ${s} ${r}`,preserveAspectRatio:v?"none":void 0,className:(0,l.f)("block overflow-visible",u),"data-testid":f,role:g?"img":void 0,"aria-label":g,"aria-hidden":!g||void 0,children:[i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:b,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:y,stopOpacity:.35}),(0,t.jsx)("stop",{offset:"100%",stopColor:y,stopOpacity:0})]})}),(0,t.jsx)("polygon",{points:`0,${r} ${_} ${s},${r}`,fill:`url(#${b})`})]}),void 0!==d&&(0,t.jsx)("line",{x1:0,x2:s,y1:k(d),y2:k(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,t.jsx)("polyline",{fill:"none",stroke:y,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:_}),x&&!v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:S[0],cy:S[1],r:2.5,fill:y,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,t.jsx)("circle",{cx:S[0],cy:S[1],r:2,fill:y})]})]})}e.s(["f",0,h],55427),e.s(["N",0,function({title:e,description:a,children:s,className:r,action:i,tone:l,corners:o=!1,...c}){return(0,t.jsx)(n.f,{...c,tone:l,corners:o,title:e,description:a,action:i,className:r,children:s})},"n",0,function({label:e,value:a,icon:s,trend:c,spark:d,meter:m,delta:p,tone:u="primary",className:f,testId:g}){let v=!p||p.value>=0===(p.positiveIsGood??!0);return(0,t.jsxs)(n.f,{tone:u,className:(0,l.f)("overflow-hidden",f),testId:g,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}),s&&(0,t.jsx)("span",{className:"text-primary/60",children:s})]}),(0,t.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,t.jsx)("div",{className:(0,l.f)("num text-2xl font-bold","primary"===u?"text-primary neon-text":o.T[u]),children:a}),p&&0!==p.value&&(0,t.jsxs)("span",{className:(0,l.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",v?"text-success":"text-danger"),children:[p.value>0?(0,t.jsx)(i.f,{className:"h-3 w-3"}):(0,t.jsx)(r,{className:"h-3 w-3"}),Math.abs(p.value).toFixed(+!Number.isInteger(p.value)),p.unit]})]}),c&&(0,t.jsx)("div",{className:(0,l.f)("mt-1 text-[11px]",c.positive?"text-success":"text-danger"),children:c.value}),void 0!==m&&(0,t.jsx)(x,{value:m,className:"mt-3",label:e}),d&&d.length>1&&(0,t.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,t.jsx)(h,{values:d,tone:u,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{"use strict";var t=e.i(43476),a=e.i(78571),s=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)]"},i={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)]"},l={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"},n={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:o=!0,interactive:c=!0,hero:d=!1,title:x,description:m,icon:h,action:p,as:u="div",padding:f="md",testId:g,className:v,children:b,...y}){return(0,t.jsxs)(u,{...y,"data-testid":g??y["data-testid"],className:(0,a.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",n[f],o&&"panel-corners",o&&r[e],c&&"glow-hover",c&&i[e],c&&l[e],d&&"grid-bg overflow-hidden bg-surface/80",v),children:[(x||p||h)&&(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:[h&&(0,t.jsx)("span",{className:(0,a.f)("mt-0.5 shrink-0",s.T[e]),children:h}),(0,t.jsxs)("div",{className:"min-w-0",children:[x&&(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:x}),m&&(0,t.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:m})]})]}),p]}),b]})}])},31624,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(82983),r=e.i(41220);e.s(["f",0,function({value:e,onChange:i,multi:l=!1,showAll:n=!1,label:o="Node",placeholder:c="Select a node…",className:d="",disabled:x=!1}){let[m,h]=(0,a.useState)([]),[p,u]=(0,a.useState)(!0);if((0,a.useEffect)(()=>{(async()=>{try{let e=(await s.f.nodes.list({pageSize:100})).data??[];h(e)}catch{}finally{u(!1)}})()},[]),l){let a=Array.isArray(e)?e:e?[e]:[],s=a.length===m.length&&m.length>0,l=m.filter(e=>"ONLINE"===e.status);return(0,t.jsxs)("div",{className:d,children:[o&&(0,t.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:o}),(0,t.jsx)("div",{className:"max-h-48 overflow-y-auto rounded border border-border bg-bg p-2 space-y-1",children:p?(0,t.jsx)("p",{className:"px-2 py-1 text-xs text-text-muted",children:"Loading nodes…"}):0===m.length?(0,t.jsx)("p",{className:"px-2 py-1 text-xs text-text-muted",children:"No nodes found"}):(0,t.jsxs)(t.Fragment,{children:[n&&l.length>0&&(0,t.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,t.jsx)("input",{type:"checkbox",checked:s,onChange:()=>{s?i([]):i(l.map(e=>e.id))},disabled:x,className:"accent-primary"}),(0,t.jsx)(r.f,{className:"h-3.5 w-3.5 text-primary"}),(0,t.jsx)("span",{className:"text-xs font-bold",children:"All Nodes"}),(0,t.jsxs)("span",{className:"ml-auto text-[11px] text-text-muted",children:[l.length," online"]})]}),m.map(e=>(0,t.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,t.jsx)("input",{type:"checkbox",checked:a.includes(e.id),onChange:()=>{var t;return t=e.id,void i(a.includes(t)?a.filter(e=>e!==t):[...a,t])},disabled:x||"ONLINE"!==e.status,className:"accent-primary"}),(0,t.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,t.jsx)("span",{className:`text-xs ${"ONLINE"!==e.status?"text-text-muted":""}`,children:e.name}),(0,t.jsx)("span",{className:"ml-auto text-[11px] text-text-muted",children:e.hostname})]},e.id))]})})]})}let f=Array.isArray(e)?e[0]??"":e;return(0,t.jsxs)("div",{className:d,children:[o&&(0,t.jsx)("label",{className:"mb-1 block text-[11px] font-bold uppercase tracking-wider text-text-muted",children:o}),(0,t.jsxs)("select",{value:f,onChange:e=>i(e.target.value),disabled:x||p,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,t.jsx)("option",{value:"",children:p?"Loading nodes…":c}),m.map(e=>(0,t.jsxs)("option",{value:e.id,disabled:"ONLINE"!==e.status,children:[e.name," — ",e.hostname," (",e.status,")"]},e.id))]})]})}])},63376,e=>{"use strict";var t=e.i(43476);e.s(["z",0,function({children:e,className:a}){return(0,t.jsx)("div",{className:`animate-page-in${a?` ${a}`:""}`,children:e})},"U",0,function({children:e,className:a}){return(0,t.jsx)("div",{className:a,children:e})}])},71417,e=>{"use strict";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"}):"—"}])},75775,e=>{"use strict";var t=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 s=(0,t.f)(a);e.s(["f",0,s],75775)},89360,e=>{"use strict";var t=e.i(56420);let a={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],89360)},29600,e=>{"use strict";var t=e.i(56420);let a={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],29600)},69644,e=>{"use strict";var t=e.i(56420);let a={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],69644)},49817,e=>{"use strict";var t=e.i(56420);let a={name:"house",size:24,node:[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],aliases:["home"]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],49817)},15170,5015,e=>{"use strict";var t=e.i(56420);let a={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],15170);let r={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],5015)},56522,e=>{"use strict";var t=e.i(56420);let a={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],56522)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10362,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(71567),r=e.i(41220),n=e.i(82303),i=e.i(82983),l=e.i(93999),o=e.i(46670),c=e.i(63376),d=e.i(96146);function x(e){return"not_installed"!==e.status}e.s(["default",0,function(){let[e,m]=(0,s.useState)([]),[u,h]=(0,s.useState)([]),[f,p]=(0,s.useState)(!0),[g,v]=(0,s.useState)("");(0,s.useEffect)(()=>{let e=!0;return async function(){p(!0),v("");try{let[t,s]=await Promise.all([i.f.hermes.installations(),i.f.hermes.profiles()]);if(!e)return;m((t.data??[]).filter(x)),h(s.data??[])}catch(t){e&&v(t instanceof Error?t.message:"Failed to load Hermes profiles")}finally{e&&p(!1)}}(),()=>{e=!1}},[]);let b=(0,s.useMemo)(()=>{let e=new Map;for(let t of u)e.set(t.installationId,[...e.get(t.installationId)??[],t]);return e},[u]),j=e.reduce((e,t)=>e+(b.get(t.id)?.length??t.profiles?.length??0),0);return(0,t.jsxs)(c.U,{className:"space-y-6",children:[(0,t.jsx)(c.z,{children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-lg font-bold uppercase tracking-wider text-primary",children:"Hermes Profiles"}),(0,t.jsx)("p",{className:"mt-1 text-[11px] uppercase tracking-wider text-text-muted",children:f?"Loading profiles...":`${j} profile${1===j?"":"s"} from ${e.length} detected installation${1===e.length?"":"s"}`})]}),(0,t.jsx)(n.f,{className:"h-6 w-6 text-primary"})]})}),g&&(0,t.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 p-4 text-xs text-danger",children:g}),(0,t.jsx)(c.z,{children:(0,t.jsxs)("div",{className:"grid gap-4 xl:grid-cols-2",children:[e.map(e=>{let s=b.get(e.id)??e.profiles??[];return(0,t.jsx)(l.N,{title:e.displayName??e.hostname,description:`${e.hostname} \xb7 ${e.hermesHome}`,action:(0,t.jsx)(d.F,{installation:e}),children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 text-[11px] text-text-muted",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block uppercase tracking-wider text-text-muted/70",children:"Status"}),(0,t.jsx)(o.t,{variant:(0,o.k)(e.status),children:e.status})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block uppercase tracking-wider text-text-muted/70",children:"Version"}),(0,t.jsx)("span",{className:"font-mono text-text",children:e.version??"unknown"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block uppercase tracking-wider text-text-muted/70",children:"Config"}),(0,t.jsx)("span",{className:"font-mono text-text",children:e.configuration?.configPath??`${e.hermesHome}/config.yaml`})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block uppercase tracking-wider text-text-muted/70",children:"Model Router"}),(0,t.jsx)(o.t,{variant:e.configuration?.magnusRouterConfigured?"success":"warning",children:e.configuration?.magnusRouterConfigured?"Hive primary":"not configured"})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[s.map(e=>(0,t.jsxs)("div",{className:"rounded border border-border/50 bg-bg/50 p-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm font-medium text-text",children:[(0,t.jsx)(a.f,{className:"h-3.5 w-3.5 text-primary"}),e.name]}),(0,t.jsx)("p",{className:"mt-1 font-mono text-[10px] text-text-muted",children:e.profileHome||"profile home unknown"})]}),e.isDefault&&(0,t.jsx)(o.t,{variant:"info",children:"default"})]}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-3 text-[11px] text-text-muted",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block uppercase tracking-wider text-text-muted/70",children:"Gateway"}),(0,t.jsx)(o.t,{variant:(0,o.k)(e.gatewayStatus),children:e.gatewayStatus})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block uppercase tracking-wider text-text-muted/70",children:"Provider"}),(0,t.jsx)("span",{className:"text-text",children:e.providerSummary??"unknown"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block uppercase tracking-wider text-text-muted/70",children:"Model"}),(0,t.jsx)("span",{className:"text-text",children:e.modelSummary??"unknown"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block uppercase tracking-wider text-text-muted/70",children:"API Server"}),(0,t.jsx)(o.t,{variant:e.apiServerEnabled?"success":"default",children:e.apiServerEnabled?`enabled:${e.apiServerPort??"?"}`:"disabled"})]})]})]},e.id)),0===s.length&&(0,t.jsx)("div",{className:"rounded border border-border/50 bg-bg/50 p-4 text-xs text-text-muted",children:"No profiles were reported by this running Hermes Agent."})]})]})},e.id)}),!f&&0===e.length&&(0,t.jsxs)("div",{className:"rounded border border-border bg-surface p-8 text-center text-xs text-text-muted xl:col-span-2",children:[(0,t.jsx)(r.f,{className:"mx-auto mb-2 h-5 w-5 text-primary"}),"No detected Hermes Agent installations are available yet."]})]})})]})}])},96146,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(62368),r=e.i(32781),n=e.i(41120),i=e.i(25398),l=e.i(56522),o=e.i(66794),c=e.i(82983),d=e.i(68759),x=e.i(32568);function m(e){return`${e.type} ${e.status}`}function u(e,t){if(!e.data)throw Error(e.error?.message??t);return e.data}function h({label:e,busyLabel:a,icon:n,disabled:i,onRun:l}){let[o,c]=(0,s.useState)(!1),[x,u]=(0,s.useState)(""),[f,p]=(0,s.useState)("");async function g(){c(!0),p(""),u("");try{let e=await l();u(m(e))}catch(t){p(t instanceof Error?t.message:`${e} failed`)}finally{c(!1)}}return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-1",children:[(0,t.jsx)(d.K,{size:"sm",variant:"secondary",disabled:o||i,onClick:()=>void g(),icon:o?(0,t.jsx)(r.f,{className:"h-3.5 w-3.5 animate-spin"}):n,children:o?a:e}),x&&(0,t.jsx)("span",{className:"text-[10px] text-success",children:x}),f&&(0,t.jsx)("span",{className:"max-w-56 text-[10px] leading-4 text-danger",children:f})]})}e.s(["B",0,function({installation:e,profiles:s}){var a;let r=(a=s??e.profiles,a?.length?a.find(e=>e.isDefault)??a[0]??null:null);return(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(h,{label:"Hermes Update",busyLabel:"Updating",icon:(0,t.jsx)(n.f,{className:"h-3.5 w-3.5"}),onRun:()=>c.f.hermes.update(e.id).then(e=>u(e,"Hermes update failed"))}),(0,t.jsx)(h,{label:"Gateway Restart",busyLabel:"Restarting",icon:(0,t.jsx)(i.f,{className:"h-3.5 w-3.5"}),disabled:!r,onRun:()=>r?c.f.hermes.gatewayAction(r.id,"restart").then(e=>u(e,"Gateway restart failed")):Promise.reject(Error("No Hermes profile is available for gateway restart"))})]})},"F",0,function({installation:e}){let[a,n]=(0,s.useState)(!1),[i,h]=(0,s.useState)(!1),[f,p]=(0,s.useState)(!1),[g,v]=(0,s.useState)(null),[b,j]=(0,s.useState)(""),[w,N]=(0,s.useState)(""),[y,k]=(0,s.useState)(""),[_,S]=(0,s.useState)(""),E=(0,s.useMemo)(()=>b!==w,[b,w]);async function $(){p(!0),k(""),S("");try{let t=await c.f.hermes.updateConfig(e.id,{configYaml:b});N(b),S(m(u(t,"Failed to save Hermes config")))}catch(e){k(e instanceof Error?e.message:"Failed to save Hermes config")}finally{p(!1)}}return(0,s.useEffect)(()=>{if(!a)return;let t=!0;return async function(){h(!0),k(""),S("");try{let s=await c.f.hermes.config(e.id);if(!t)return;let a=u(s,"Failed to load Hermes config");v(a),j(a.configYaml),N(a.configYaml)}catch(e){t&&k(e instanceof Error?e.message:"Failed to load Hermes config")}finally{t&&h(!1)}}(),()=>{t=!1}},[e.id,a]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.K,{size:"sm",variant:"secondary",onClick:()=>n(!0),icon:(0,t.jsx)(o.f,{className:"h-3.5 w-3.5"}),children:"Config"}),(0,t.jsx)(x.n,{open:a,onClose:()=>n(!1),title:`${e.displayName??e.hostname} Config`,description:"Running Hermes Agent config.yaml from the remote installation.",icon:(0,t.jsx)(o.f,{className:"h-5 w-5 text-primary"}),className:"max-h-[92vh] max-w-[calc(100vw-1.5rem)] overflow-hidden bg-[#06060d] p-4 sm:max-w-5xl sm:p-6",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-[11px] text-text-muted",children:[(0,t.jsx)("span",{className:"font-mono",children:g?.path??e.configuration?.configPath??`${e.hermesHome}/config.yaml`}),(0,t.jsx)("span",{children:g?.exists===!1?"new config file":`last synced ${g?.lastSyncedAt?new Date(g.lastSyncedAt).toLocaleString():"unknown"}`})]}),y&&(0,t.jsx)("div",{className:"rounded border border-danger/30 bg-danger/10 p-3 text-xs text-danger",children:y}),_&&(0,t.jsx)("div",{className:"rounded border border-success/30 bg-success/10 p-3 text-xs text-success",children:_}),i?(0,t.jsxs)("div",{className:"flex h-72 items-center justify-center rounded border border-border bg-bg text-xs text-text-muted",children:[(0,t.jsx)(r.f,{className:"mr-2 h-4 w-4 animate-spin"})," Loading config..."]}):(0,t.jsx)("textarea",{value:b,onChange:e=>j(e.target.value),spellCheck:!1,placeholder:"# config.yaml is empty on this Hermes Agent",className:"h-[54vh] min-h-72 w-full resize-none rounded border border-border bg-bg p-3 font-mono text-[11px] leading-5 text-text outline-none placeholder:text-text-muted/60 focus:border-primary sm:h-[58vh]","aria-label":"Hermes config YAML"}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(d.K,{size:"sm",variant:"primary",disabled:i||f||!E,onClick:()=>void $(),icon:f?(0,t.jsx)(r.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(l.f,{className:"h-3.5 w-3.5"}),children:f?"Saving":"Save Config"})})]})})]})},"C",0,function({installation:e}){return(0,t.jsx)(h,{label:"Install",busyLabel:"Installing",icon:(0,t.jsx)(a.f,{className:"h-3.5 w-3.5"}),onRun:()=>c.f.hermes.configure(e.id).then(e=>u(e,"Router install failed"))})}])},46670,e=>{"use strict";var t=e.i(43476),s=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)]"},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:n="default",className:i,dot:l=!1,pulse:o=!1}){return(0,t.jsxs)("span",{className:(0,s.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",a[n],i),children:[l&&(0,t.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[o&&(0,t.jsx)("span",{className:(0,s.f)("absolute inset-0 rounded-full animate-halo",r[n])}),(0,t.jsx)("span",{className:(0,s.f)("relative inline-flex h-1.5 w-1.5 rounded-full",r[n])})]}),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=>{"use strict";var t=e.i(43476),s=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 r=(0,s.f)(a);var n=e.i(75775),i=e.i(78571),l=e.i(3062),o=e.i(35084);let c={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:s=100,tone:a,thresholds:r=o.q,label:n,size:l="xs",showValue:m=!1,valueLabel:u,glow:h,className:f,testId:p}){let g="number"==typeof e&&Number.isFinite(e),v=g?Math.max(0,Math.min(100,e/(s||1)*100)):0,b=a??(g?(0,o.Z)(v,r):"muted"),j=h||!a&&g&&v>=r.warn,w=u??(g?`${v.toFixed(+(v<10&&v>0))}%`:"—");return(0,t.jsxs)("div",{className:(0,i.f)("flex min-w-0 items-center gap-2",f),"data-testid":p,children:[(0,t.jsx)("div",{role:"meter","aria-label":n,"aria-valuemin":0,"aria-valuemax":s,"aria-valuenow":g?e:void 0,"aria-valuetext":w,className:(0,i.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[l]),children:(0,t.jsx)("div",{style:{"--meter":`${v}%`},className:(0,i.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",o.H[b],j&&c[b])})}),m&&(0,t.jsx)("span",{className:(0,i.f)("num w-11 shrink-0 text-right text-[11px]",g?o.T[b]:"text-text-muted"),children:w})]})}e.s(["f",0,x],51196);var m=e.i(71645);function u({values:e,tone:s="primary",width:a=160,height:r=32,area:n=!0,max:l,percent:c=!1,threshold:d,live:x=!0,emptyLabel:h="not enough data",className:f,testId:p,label:g,stretch:v=!1}){let b=`spark${(0,m.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,t.jsx)("div",{className:(0,i.f)("flex h-8 items-center text-xs italic text-text-muted",f),"data-testid":p,children:h});let j=o.v[s],w=l??(c?Math.max(100,...e):Math.max(...e,d??0)||1),N=r-4,y=a/(e.length-1),k=e=>2+N-Math.max(0,e)/w*N,_=e.map((e,t)=>[t*y,k(e)]),S=_.map(([e,t])=>`${e.toFixed(1)},${t.toFixed(1)}`).join(" "),E=_[_.length-1];return(0,t.jsxs)("svg",{width:v?"100%":a,height:r,viewBox:`0 0 ${a} ${r}`,preserveAspectRatio:v?"none":void 0,className:(0,i.f)("block overflow-visible",f),"data-testid":p,role:g?"img":void 0,"aria-label":g,"aria-hidden":!g||void 0,children:[n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:b,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:j,stopOpacity:.35}),(0,t.jsx)("stop",{offset:"100%",stopColor:j,stopOpacity:0})]})}),(0,t.jsx)("polygon",{points:`0,${r} ${S} ${a},${r}`,fill:`url(#${b})`})]}),void 0!==d&&(0,t.jsx)("line",{x1:0,x2:a,y1:k(d),y2:k(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,t.jsx)("polyline",{fill:"none",stroke:j,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:S}),x&&!v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:E[0],cy:E[1],r:2.5,fill:j,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,t.jsx)("circle",{cx:E[0],cy:E[1],r:2,fill:j})]})]})}e.s(["f",0,u],55427),e.s(["N",0,function({title:e,description:s,children:a,className:r,action:n,tone:i,corners:o=!1,...c}){return(0,t.jsx)(l.f,{...c,tone:i,corners:o,title:e,description:s,action:n,className:r,children:a})},"n",0,function({label:e,value:s,icon:a,trend:c,spark:d,meter:m,delta:h,tone:f="primary",className:p,testId:g}){let v=!h||h.value>=0===(h.positiveIsGood??!0);return(0,t.jsxs)(l.f,{tone:f,className:(0,i.f)("overflow-hidden",p),testId:g,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,i.f)("num text-2xl font-bold","primary"===f?"text-primary neon-text":o.T[f]),children:s}),h&&0!==h.value&&(0,t.jsxs)("span",{className:(0,i.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",v?"text-success":"text-danger"),children:[h.value>0?(0,t.jsx)(n.f,{className:"h-3 w-3"}):(0,t.jsx)(r,{className:"h-3 w-3"}),Math.abs(h.value).toFixed(+!Number.isInteger(h.value)),h.unit]})]}),c&&(0,t.jsx)("div",{className:(0,i.f)("mt-1 text-[11px]",c.positive?"text-success":"text-danger"),children:c.value}),void 0!==m&&(0,t.jsx)(x,{value:m,className:"mt-3",label:e}),d&&d.length>1&&(0,t.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,t.jsx)(u,{values:d,tone:f,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{"use strict";var t=e.i(43476),s=e.i(78571),a=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)]"},n={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)]"},i={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"},l={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:o=!0,interactive:c=!0,hero:d=!1,title:x,description:m,icon:u,action:h,as:f="div",padding:p="md",testId:g,className:v,children:b,...j}){return(0,t.jsxs)(f,{...j,"data-testid":g??j["data-testid"],className:(0,s.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",l[p],o&&"panel-corners",o&&r[e],c&&"glow-hover",c&&n[e],c&&i[e],d&&"grid-bg overflow-hidden bg-surface/80",v),children:[(x||h||u)&&(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:[u&&(0,t.jsx)("span",{className:(0,s.f)("mt-0.5 shrink-0",a.T[e]),children:u}),(0,t.jsxs)("div",{className:"min-w-0",children:[x&&(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:x}),m&&(0,t.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:m})]})]}),h]}),b]})}])},63376,e=>{"use strict";var t=e.i(43476);e.s(["z",0,function({children:e,className:s}){return(0,t.jsx)("div",{className:`animate-page-in${s?` ${s}`:""}`,children:e})},"U",0,function({children:e,className:s}){return(0,t.jsx)("div",{className:s,children:e})}])},75775,e=>{"use strict";var t=e.i(56420);let s={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],75775)},25398,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],25398)},56522,e=>{"use strict";var t=e.i(56420);let s={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};s.node;let a=(0,t.f)(s);e.s(["f",0,a],56522)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53721,63646,e=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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=>{"use strict";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.2"}),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=>{"use strict";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)=>{"use strict";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.5`),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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,76256,e=>{"use strict";var r=e.i(43476),t=e.i(71645),s=e.i(22016),a=e.i(79432),n=e.i(75775),i=e.i(71567),l=e.i(9584),o=e.i(15331),c=e.i(41220),d=e.i(82983),x=e.i(46670),m=e.i(93999),p=e.i(63376);e.s(["default",0,function(){let[e,u]=(0,t.useState)([]),[h,g]=(0,t.useState)(!0),[f,v]=(0,t.useState)("");(0,t.useEffect)(()=>{let e=!0;return d.f.ardent.installations().then(r=>{e&&u(r.data??[])}).catch(r=>{e&&v(r instanceof Error?r.message:"Ardent inventory is unavailable")}).finally(()=>{e&&g(!1)}),()=>{e=!1}},[]);let b=e.filter(e=>e.installed&&e.reachable),j=b.flatMap(e=>e.profiles.map(r=>({...r,node:e}))),N=j.filter(e=>e.running).length,w=e.filter(e=>!e.reachable).length+j.filter(e=>!e.running||e.error).length;return(0,r.jsxs)(p.U,{className:"space-y-6",children:[(0,r.jsx)(p.z,{children:(0,r.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-[0.3em] text-primary/60",children:"Agent runtime"}),(0,r.jsx)("h1",{className:"mt-1 text-xl font-bold uppercase tracking-wider text-text",children:"Magnus Ardent"}),(0,r.jsx)("p",{className:"mt-2 max-w-2xl text-xs leading-5 text-text-muted",children:"Inspect the Ardent agent runtime across managed nodes. Each signal comes from the node and its authenticated profile API."})]}),(0,r.jsxs)(s.default,{href:"/ardent/installations",className:"inline-flex items-center gap-2 rounded border border-primary/40 bg-primary/10 px-3 py-2 text-[11px] font-semibold uppercase tracking-wider text-primary hover:bg-primary/20",children:["Open installations ",(0,r.jsx)(n.f,{className:"h-3.5 w-3.5"})]})]})}),f&&(0,r.jsx)("div",{role:"alert",className:"rounded border border-danger/40 bg-danger/10 p-4 text-xs text-danger",children:f}),(0,r.jsx)(p.z,{children:(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-3",children:[(0,r.jsxs)("div",{className:"rounded border border-border/60 bg-surface p-4",children:[(0,r.jsx)(c.f,{className:"h-4 w-4 text-primary"}),(0,r.jsx)("p",{className:"mt-3 text-2xl font-semibold tabular-nums text-text",children:h||f?"—":b.length}),(0,r.jsx)("p",{className:"text-[10px] uppercase tracking-widest text-text-muted",children:"Installed nodes"})]}),(0,r.jsxs)("div",{className:"rounded border border-border/60 bg-surface p-4",children:[(0,r.jsx)(a.f,{className:"h-4 w-4 text-accent"}),(0,r.jsx)("p",{className:"mt-3 text-2xl font-semibold tabular-nums text-text",children:h||f?"—":N}),(0,r.jsx)("p",{className:"text-[10px] uppercase tracking-widest text-text-muted",children:"Running profiles"})]}),(0,r.jsxs)("div",{className:"rounded border border-border/60 bg-surface p-4",children:[(0,r.jsx)(o.f,{className:"h-4 w-4 text-text-muted"}),(0,r.jsx)("p",{className:"mt-3 text-2xl font-semibold tabular-nums text-text",children:h||f?"—":w}),(0,r.jsx)("p",{className:"text-[10px] uppercase tracking-widest text-text-muted",children:"Needs attention"})]})]})}),(0,r.jsx)(p.z,{children:(0,r.jsx)(m.N,{title:"Profiles",description:"Current profile observations from managed nodes",children:h?(0,r.jsx)("p",{className:"text-xs text-text-muted",children:"Checking profiles…"}):f?(0,r.jsx)("p",{className:"text-xs leading-5 text-text-muted",children:"Profile status is unavailable until the Magnus Control API responds."}):j.length?(0,r.jsx)("div",{className:"space-y-3",children:j.map(e=>{let t;return(0,r.jsxs)("div",{className:"space-y-3 rounded border border-border/60 p-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-text",children:e.name}),(0,r.jsxs)("p",{className:"mt-1 font-mono text-[11px] text-text-muted",children:[e.node.hostname," · ",e.id," · Ardent ",e.node.version??"version unknown"]})]}),(0,r.jsx)(x.t,{variant:(0,x.k)(e.running?"running":"stopped"),children:e.running?"Running":"Stopped"})]}),(0,r.jsx)("div",{className:"grid gap-px overflow-hidden rounded border border-border/60 bg-border/60 sm:grid-cols-3",children:[{label:"Backend",value:e.backend??"Unknown",icon:i.f},{label:"A2A",value:e.a2aEnabled?"Configured":"Disabled",icon:o.f},{label:"Channels",value:(t=Object.entries(e.channels).filter(([,e])=>e).map(([e])=>e)).length?t.join(", "):"None",icon:l.f}].map(e=>(0,r.jsxs)("div",{className:"bg-bg/80 px-3 py-3",children:[(0,r.jsx)(e.icon,{className:"h-3.5 w-3.5 text-primary/70"}),(0,r.jsx)("p",{className:"mt-2 text-[10px] uppercase tracking-wider text-text-muted",children:e.label}),(0,r.jsx)("p",{className:"mt-0.5 text-xs font-medium capitalize text-text",children:e.value})]},e.label))}),e.error&&(0,r.jsx)("p",{role:"alert",className:"text-xs text-danger",children:e.error}),(0,r.jsxs)(s.default,{href:`/ardent/profiles/${encodeURIComponent(`${e.node.nodeId}~${e.id}`)}`,className:"inline-flex items-center gap-1 text-[11px] font-semibold uppercase tracking-wider text-primary hover:underline",children:["Open profile ",(0,r.jsx)(n.f,{className:"h-3 w-3"})]})]},`${e.node.nodeId}:${e.id}`)})}):(0,r.jsx)("p",{className:"text-xs leading-5 text-text-muted",children:"No Ardent profiles were detected. Create one on the Profiles page, or review node inventory for installation or connection errors."})})})]})}])},46670,e=>{"use strict";var r=e.i(43476),t=e.i(78571);let s={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)]"},a={default:"bg-text-muted",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"};e.s(["t",0,function({children:e,variant:n="default",className:i,dot:l=!1,pulse:o=!1}){return(0,r.jsxs)("span",{className:(0,t.f)("inline-flex items-center gap-1.5 rounded-chip border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider",s[n],i),children:[l&&(0,r.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-1.5 w-1.5",children:[o&&(0,r.jsx)("span",{className:(0,t.f)("absolute inset-0 rounded-full animate-halo",a[n])}),(0,r.jsx)("span",{className:(0,t.f)("relative inline-flex h-1.5 w-1.5 rounded-full",a[n])})]}),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=>{"use strict";var r=e.i(43476),t=e.i(56420);let s={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};s.node;let a=(0,t.f)(s);var n=e.i(75775),i=e.i(78571),l=e.i(3062),o=e.i(35084);let c={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:t=100,tone:s,thresholds:a=o.q,label:n,size:l="xs",showValue:m=!1,valueLabel:p,glow:u,className:h,testId:g}){let f="number"==typeof e&&Number.isFinite(e),v=f?Math.max(0,Math.min(100,e/(t||1)*100)):0,b=s??(f?(0,o.Z)(v,a):"muted"),j=u||!s&&f&&v>=a.warn,N=p??(f?`${v.toFixed(+(v<10&&v>0))}%`:"—");return(0,r.jsxs)("div",{className:(0,i.f)("flex min-w-0 items-center gap-2",h),"data-testid":g,children:[(0,r.jsx)("div",{role:"meter","aria-label":n,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":f?e:void 0,"aria-valuetext":N,className:(0,i.f)("relative flex-1 overflow-hidden rounded-full bg-border/70",d[l]),children:(0,r.jsx)("div",{style:{"--meter":`${v}%`},className:(0,i.f)("h-full w-(--meter) rounded-full transition-[width] duration-700 ease-out-expo starting:w-0",o.H[b],j&&c[b])})}),m&&(0,r.jsx)("span",{className:(0,i.f)("num w-11 shrink-0 text-right text-[11px]",f?o.T[b]:"text-text-muted"),children:N})]})}e.s(["f",0,x],51196);var m=e.i(71645);function p({values:e,tone:t="primary",width:s=160,height:a=32,area:n=!0,max:l,percent:c=!1,threshold:d,live:x=!0,emptyLabel:u="not enough data",className:h,testId:g,label:f,stretch:v=!1}){let b=`spark${(0,m.useId)().replace(/:/g,"")}`;if(e.length<2)return(0,r.jsx)("div",{className:(0,i.f)("flex h-8 items-center text-xs italic text-text-muted",h),"data-testid":g,children:u});let j=o.v[t],N=l??(c?Math.max(100,...e):Math.max(...e,d??0)||1),w=a-4,y=s/(e.length-1),k=e=>2+w-Math.max(0,e)/N*w,_=e.map((e,r)=>[r*y,k(e)]),I=_.map(([e,r])=>`${e.toFixed(1)},${r.toFixed(1)}`).join(" "),E=_[_.length-1];return(0,r.jsxs)("svg",{width:v?"100%":s,height:a,viewBox:`0 0 ${s} ${a}`,preserveAspectRatio:v?"none":void 0,className:(0,i.f)("block overflow-visible",h),"data-testid":g,role:f?"img":void 0,"aria-label":f,"aria-hidden":!f||void 0,children:[n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:b,x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:j,stopOpacity:.35}),(0,r.jsx)("stop",{offset:"100%",stopColor:j,stopOpacity:0})]})}),(0,r.jsx)("polygon",{points:`0,${a} ${I} ${s},${a}`,fill:`url(#${b})`})]}),void 0!==d&&(0,r.jsx)("line",{x1:0,x2:s,y1:k(d),y2:k(d),stroke:"var(--color-warning)",strokeOpacity:.5,strokeDasharray:"3 3",strokeWidth:1}),(0,r.jsx)("polyline",{fill:"none",stroke:j,strokeWidth:1.5,vectorEffect:"non-scaling-stroke",strokeLinejoin:"round",strokeLinecap:"round",points:I}),x&&!v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:E[0],cy:E[1],r:2.5,fill:j,className:"origin-center animate-halo [transform-box:fill-box]"}),(0,r.jsx)("circle",{cx:E[0],cy:E[1],r:2,fill:j})]})]})}e.s(["f",0,p],55427),e.s(["N",0,function({title:e,description:t,children:s,className:a,action:n,tone:i,corners:o=!1,...c}){return(0,r.jsx)(l.f,{...c,tone:i,corners:o,title:e,description:t,action:n,className:a,children:s})},"n",0,function({label:e,value:t,icon:s,trend:c,spark:d,meter:m,delta:u,tone:h="primary",className:g,testId:f}){let v=!u||u.value>=0===(u.positiveIsGood??!0);return(0,r.jsxs)(l.f,{tone:h,className:(0,i.f)("overflow-hidden",g),testId:f,children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-[0.15em] text-text-muted",children:e}),s&&(0,r.jsx)("span",{className:"text-primary/60",children:s})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-2",children:[(0,r.jsx)("div",{className:(0,i.f)("num text-2xl font-bold","primary"===h?"text-primary neon-text":o.T[h]),children:t}),u&&0!==u.value&&(0,r.jsxs)("span",{className:(0,i.f)("num mb-1 inline-flex items-center gap-0.5 text-[11px]",v?"text-success":"text-danger"),children:[u.value>0?(0,r.jsx)(n.f,{className:"h-3 w-3"}):(0,r.jsx)(a,{className:"h-3 w-3"}),Math.abs(u.value).toFixed(+!Number.isInteger(u.value)),u.unit]})]}),c&&(0,r.jsx)("div",{className:(0,i.f)("mt-1 text-[11px]",c.positive?"text-success":"text-danger"),children:c.value}),void 0!==m&&(0,r.jsx)(x,{value:m,className:"mt-3",label:e}),d&&d.length>1&&(0,r.jsx)("div",{className:"-mx-5 -mb-5 mt-3 opacity-80",children:(0,r.jsx)(p,{values:d,tone:h,width:240,height:28,stretch:!0,live:!1})})]})}],93999)},3062,e=>{"use strict";var r=e.i(43476),t=e.i(78571),s=e.i(35084);let a={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)]"},n={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)]"},i={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"},l={none:"",sm:"p-3",md:"p-5",lg:"p-6"};e.s(["f",0,function({tone:e="primary",corners:o=!0,interactive:c=!0,hero:d=!1,title:x,description:m,icon:p,action:u,as:h="div",padding:g="md",testId:f,className:v,children:b,...j}){return(0,r.jsxs)(h,{...j,"data-testid":f??j["data-testid"],className:(0,t.f)("relative rounded-panel border border-border bg-surface transition-colors duration-300",l[g],o&&"panel-corners",o&&a[e],c&&"glow-hover",c&&n[e],c&&i[e],d&&"grid-bg overflow-hidden bg-surface/80",v),children:[(x||u||p)&&(0,r.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[p&&(0,r.jsx)("span",{className:(0,t.f)("mt-0.5 shrink-0",s.T[e]),children:p}),(0,r.jsxs)("div",{className:"min-w-0",children:[x&&(0,r.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider",children:x}),m&&(0,r.jsx)("p",{className:"mt-0.5 text-[11px] text-text-muted",children:m})]})]}),u]}),b]})}])},63376,e=>{"use strict";var r=e.i(43476);e.s(["z",0,function({children:e,className:t}){return(0,r.jsx)("div",{className:`animate-page-in${t?` ${t}`:""}`,children:e})},"U",0,function({children:e,className:t}){return(0,r.jsx)("div",{className:t,children:e})}])},79432,e=>{"use strict";var r=e.i(56420);let t={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"}]]};t.node;let s=(0,r.f)(t);e.s(["f",0,s],79432)},75775,e=>{"use strict";var r=e.i(56420);let t={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};t.node;let s=(0,r.f)(t);e.s(["f",0,s],75775)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66398,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(18566),s=e.i(82983),l=e.i(56522),n=e.i(63676),c=e.i(77071),o=e.i(59659);let d=["node.offline","node.degraded","node.recovered","node.upgrade_not_ready","command.failed","deploy.failed","upgrade.failed","ai.heartbeat","ai.anomaly"];e.s(["WebhookForm",0,function({endpoint:e}){let i=(0,r.useRouter)(),x=!!e,u=(()=>{if(!e)return[];try{return JSON.parse(e.events)}catch{return[]}})(),[m,b]=(0,a.useState)(e?.name??""),[p,g]=(0,a.useState)(""),[h,f]=(0,a.useState)(e?.type??"generic"),[v,y]=(0,a.useState)(""),[j,k]=(0,a.useState)(!1),[N,w]=(0,a.useState)(u),[C,S]=(0,a.useState)([]),[M,R]=(0,a.useState)(!1),[T,H]=(0,a.useState)(e?.retries??3),[U,A]=(0,a.useState)(e?.timeoutMs??1e4),[L,O]=(0,a.useState)(!1),[V,q]=(0,a.useState)(""),z=async t=>{if(t.preventDefault(),m.trim()&&(x||p.trim())){O(!0),q("");try{let t={};for(let e of C)e.key.trim()&&(t[e.key.trim()]=e.value);if(x){let a={name:m.trim(),...p.trim()?{url:p.trim()}:{},type:h,events:N,retries:T,timeoutMs:U};j?a.secret=null:v&&(a.secret=v),M&&(a.headers=t),await s.f.webhooks.update(e.id,a)}else{let e={name:m.trim(),url:p.trim(),type:h,events:N,headers:t,retries:T,timeoutMs:U};v&&(e.secret=v),await s.f.webhooks.create(e)}i.push("/webhooks"),i.refresh()}catch{q("Failed to save webhook. Check the URL and try again.")}finally{O(!1)}}};return(0,t.jsxs)("form",{onSubmit:z,className:"space-y-6 max-w-2xl",children:[V&&(0,t.jsx)("div",{className:"rounded-lg border border-danger/30 bg-danger/5 p-4 text-sm text-danger",children:V}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs uppercase tracking-wider text-text-muted mb-2",children:"Name"}),(0,t.jsx)("input",{type:"text",value:m,onChange:e=>b(e.target.value),required:!0,placeholder:"My Webhook",className:"w-full text-sm bg-bg border border-border/50 rounded-lg px-3 py-2 text-text focus:outline-none focus:border-accent/50"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs uppercase tracking-wider text-text-muted mb-2",children:"URL"}),(0,t.jsx)("input",{type:"url",value:p,onChange:e=>g(e.target.value),required:!0,placeholder:x?`Leave blank to keep ${e.url}`:"https://example.com/webhook",className:"w-full text-sm bg-bg border border-border/50 rounded-lg px-3 py-2 text-text font-mono focus:outline-none focus:border-accent/50"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs uppercase tracking-wider text-text-muted mb-2",children:"Type"}),(0,t.jsxs)("select",{value:h,onChange:e=>f(e.target.value),className:"text-sm bg-bg border border-border/50 rounded-lg px-3 py-2 text-text focus:outline-none focus:border-accent/50",children:[(0,t.jsx)("option",{value:"generic",children:"Generic"}),(0,t.jsx)("option",{value:"slack",children:"Slack"}),(0,t.jsx)("option",{value:"discord",children:"Discord"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-xs uppercase tracking-wider text-text-muted mb-2",children:["Secret ",x&&(0,t.jsxs)("span",{className:"normal-case text-text-muted/60",children:["(",e.secretConfigured?"configured; ":"","leave empty to keep current)"]})]}),(0,t.jsx)("input",{type:"password",value:v,onChange:e=>{y(e.target.value),k(!1)},placeholder:x?"••••••••":"HMAC signing secret (optional)",className:"w-full text-sm bg-bg border border-border/50 rounded-lg px-3 py-2 text-text focus:outline-none focus:border-accent/50"}),x&&e.secretConfigured&&(0,t.jsx)("button",{type:"button",onClick:()=>{y(""),k(!0)},className:"mt-2 text-xs text-danger hover:text-danger",children:j?"Signing secret will be cleared":"Clear saved signing secret"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-xs uppercase tracking-wider text-text-muted mb-2",children:["Events ",(0,t.jsx)("span",{className:"normal-case text-text-muted/60",children:"(empty = all events)"})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:d.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{w(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},className:`text-xs px-2.5 py-1 rounded-full border transition-colors ${N.includes(e)?"border-accent/50 bg-accent/10 text-accent":"border-border/50 bg-surface text-text-muted hover:text-text"}`,children:e},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-xs uppercase tracking-wider text-text-muted mb-2",children:["Custom Headers",x&&e.headersConfigured&&!M&&(0,t.jsx)("span",{className:"normal-case text-text-muted/60",children:" (configured; values are write-only)"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[C.map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"text",value:e.key,onChange:e=>{S(C.map((t,r)=>r===a?{key:e.target.value,value:t.value}:t)),R(!0)},placeholder:"Header name",className:"flex-1 text-xs bg-bg border border-border/50 rounded px-2 py-1.5 text-text focus:outline-none focus:border-accent/50"}),(0,t.jsx)("input",{type:"text",value:e.value,onChange:e=>{S(C.map((t,r)=>r===a?{key:t.key,value:e.target.value}:t)),R(!0)},placeholder:"Value",className:"flex-1 text-xs bg-bg border border-border/50 rounded px-2 py-1.5 text-text focus:outline-none focus:border-accent/50"}),(0,t.jsx)("button",{type:"button",onClick:()=>{S(C.filter((e,t)=>t!==a)),R(!0)},className:"text-danger hover:text-danger p-1",children:(0,t.jsx)(o.f,{className:"h-3 w-3"})})]},a)),(0,t.jsxs)("button",{type:"button",onClick:()=>{S([...C,{key:"",value:""}]),R(!0)},className:"flex items-center gap-1 text-xs text-accent hover:text-accent/80",children:[(0,t.jsx)(c.f,{className:"h-3 w-3"})," Add header"]}),x&&e.headersConfigured&&(0,t.jsx)("button",{type:"button",onClick:()=>{S([]),R(!0)},className:"ml-3 text-xs text-danger hover:text-danger",children:"Clear saved headers"})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs uppercase tracking-wider text-text-muted mb-2",children:"Retries"}),(0,t.jsx)("input",{type:"number",min:0,max:10,value:T,onChange:e=>H(Number(e.target.value)),className:"w-full text-sm bg-bg border border-border/50 rounded-lg px-3 py-2 text-text focus:outline-none focus:border-accent/50"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs uppercase tracking-wider text-text-muted mb-2",children:"Timeout (ms)"}),(0,t.jsx)("input",{type:"number",min:1e3,max:6e4,step:1e3,value:U,onChange:e=>A(Number(e.target.value)),className:"w-full text-sm bg-bg border border-border/50 rounded-lg px-3 py-2 text-text focus:outline-none focus:border-accent/50"})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 pt-2",children:[(0,t.jsxs)("button",{type:"submit",disabled:L||!m.trim()||!p.trim(),className:"flex items-center gap-2 text-sm px-4 py-2 rounded-lg bg-accent/20 text-accent hover:bg-accent/30 disabled:opacity-50 transition-colors",children:[(0,t.jsx)(l.f,{className:"h-4 w-4"})," ",x?"Update":"Create"]}),(0,t.jsxs)("button",{type:"button",onClick:()=>i.push("/webhooks"),className:"flex items-center gap-1 text-sm px-4 py-2 rounded-lg text-text-muted hover:text-text transition-colors",children:[(0,t.jsx)(n.X,{className:"h-4 w-4"})," Cancel"]})]})]})}])},56522,e=>{"use strict";var t=e.i(56420);let a={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};a.node;let r=(0,t.f)(a);e.s(["f",0,r],56522)}]);
|