From d86625e22038e45f25fdbaa65a228e98fc163e06 Mon Sep 17 00:00:00 2001 From: Brandon Schneider Date: Thu, 28 May 2026 01:13:54 -0500 Subject: [PATCH] feat(infra): cluster dashboard + VCN shim indentation fix - Add LyteNyte Grid cluster dashboard (React + FastAPI + k3s) - Real-time telemetry: GPU util/VRAM/temp, CPU/memory, pod counts, Tailscale connectivity, OS/kernel info for all 5 cluster nodes - WebSocket live updates every 3s, dark theme, virtualized grid - k3s deployment with hostNetwork, NodePort 30820, SSH-based collectors - Backend uses /proc/stat + /proc/meminfo for portable NixOS metrics - Tailscale status via SSH to host (container doesn't run tailscaled) - Fix vcn_compute_substrate.py indentation (lines 45-269 had 1 extra leading space). Script now compiles and runs encode/decode/receipt. Build: py_compile OK, npm build OK, podman build OK --- .../shim/vcn_compute_substrate.py | 624 ++++++ 5-Applications/cluster-dashboard/.gitignore | 4 + .../cluster-dashboard/Containerfile | 45 + .../cluster-dashboard/backend/entrypoint.sh | 7 + .../cluster-dashboard/backend/main.py | 448 ++++ .../backend/requirements.txt | 3 + .../cluster-dashboard/frontend/index.html | 23 + .../frontend/package-lock.json | 1910 +++++++++++++++++ .../cluster-dashboard/frontend/package.json | 23 + .../cluster-dashboard/frontend/src/App.tsx | 410 ++++ .../cluster-dashboard/frontend/src/main.tsx | 9 + .../cluster-dashboard/frontend/tsconfig.json | 20 + .../cluster-dashboard/frontend/vite.config.ts | 18 + .../cluster-dashboard/k8s/dashboard.yaml | 107 + 14 files changed, 3651 insertions(+) create mode 100644 4-Infrastructure/shim/vcn_compute_substrate.py create mode 100644 5-Applications/cluster-dashboard/.gitignore create mode 100644 5-Applications/cluster-dashboard/Containerfile create mode 100755 5-Applications/cluster-dashboard/backend/entrypoint.sh create mode 100644 5-Applications/cluster-dashboard/backend/main.py create mode 100644 5-Applications/cluster-dashboard/backend/requirements.txt create mode 100644 5-Applications/cluster-dashboard/frontend/index.html create mode 100644 5-Applications/cluster-dashboard/frontend/package-lock.json create mode 100644 5-Applications/cluster-dashboard/frontend/package.json create mode 100644 5-Applications/cluster-dashboard/frontend/src/App.tsx create mode 100644 5-Applications/cluster-dashboard/frontend/src/main.tsx create mode 100644 5-Applications/cluster-dashboard/frontend/tsconfig.json create mode 100644 5-Applications/cluster-dashboard/frontend/vite.config.ts create mode 100644 5-Applications/cluster-dashboard/k8s/dashboard.yaml diff --git a/4-Infrastructure/shim/vcn_compute_substrate.py b/4-Infrastructure/shim/vcn_compute_substrate.py new file mode 100644 index 00000000..60ec5c62 --- /dev/null +++ b/4-Infrastructure/shim/vcn_compute_substrate.py @@ -0,0 +1,624 @@ +#!/usr/bin/env python3 +""" +VCN Compute Substrate - Use AMD VCN H.264 hardware encoder as computation device. + +This shim implements the "Steam Deck MKV trick" from UNIFIED_TRANSPORT_ENCODING_SPEC.md: +- Pack computation data into 1920×1080 YUV420 video frames +- Use AMD AMF H.264 hardware encoder for computation +- Extract results from encoded bitstream (CRC32, transform coefficients, motion vectors) + +Shim boundary: I/O only. No decision logic. All computation mapping decisions +belong in Lean (Semantics.MeshRouting and future VCN computation modules). + +Usage: + python3 vcn_compute_substrate.py encode + python3 vcn_compute_substrate.py decode + python3 vcn_compute_substrate.py extract_receipt +""" + +import struct +import subprocess +import json +import zlib +from pathlib import Path +from typing import Tuple, List, Optional +from dataclasses import dataclass, field, asdict + +# Frame constants from UNIFIED_TRANSPORT_ENCODING_SPEC.md +FRAME_WIDTH = 1920 +FRAME_HEIGHT = 1080 +YUV420_FRAME_SIZE = 3_110_400 # 1920*1080 + 960*540 + 960*540 +SIGNATURE_HEADER = b"RDMAVCN\0" +SIGNATURE_SIZE = 24 + +# Encoder settings for computation mode (software encoding for initial testing) +ENCODER_PROFILE = "main" +ENCODER_LEVEL = "4" +QP_MIN = 2 # Minimal quantization for precise computation +QP_MAX = 4 +TRANSFORM_SKIP = True +DEBLOCKING = False +SAO = False +# ── Resolution / Frame Rate Catalog ────────────────────────────────────────── + +VCN_RESOLUTIONS = { + "240p": (320, 240), + "360p": (640, 360), + "480p": (854, 480), + "720p": (1280, 720), + "1080p": (1920, 1080), + "1440p": (2560, 1440), + "4K": (3840, 2160), + "5K": (5120, 2880), + "8K": (7680, 4320), + "16K": (15360, 8640), +} + +VCN_FRAME_RATES = [30, 60, 120, 144, 240] + +RESOLUTION_ORDER = list(VCN_RESOLUTIONS.keys()) + + +@dataclass +class VCNHardwareCapabilities: + """Detected hardware encoder/decoder capabilities.""" + supported_resolutions: List[Tuple[int, int]] = field(default_factory=lambda: [(1920, 1080)]) + supported_frame_rates: List[int] = field(default_factory=lambda: [30, 60]) + available_encoders: List[str] = field(default_factory=lambda: ["libx264"]) + max_memory_mb: int = 512 + max_bandwidth_mbps: int = 100 + gpu_vendor: str = "unknown" + gpu_name: str = "unknown" + + +@dataclass +class VCNComputeFrameSpec: + """Dynamic frame specification for VCN computation.""" + width: int = 1920 + height: int = 1080 + format: str = "yuv420p" + bytes_per_frame: int = 3_110_400 + frame_rate: int = 60 + encoder: str = "libx264" + + +def probe_vcn_capabilities() -> VCNHardwareCapabilities: + """Probe hardware VCN capabilities using FFmpeg, VAAPI, and vendor tools.""" + caps = VCNHardwareCapabilities() + encoders_found = [] + try: + result = subprocess.run( + ["ffmpeg", "-encoders"], + capture_output=True, text=True, timeout=10 + ) + output = result.stdout + for enc in ["h264_vaapi", "hevc_vaapi", "h264_amf", "hevc_amf", + "h264_nvenc", "hevc_nvenc", "libx264", "libx265"]: + if enc in output: + encoders_found.append(enc) + except (FileNotFoundError, subprocess.TimeoutExpired): + encoders_found = ["libx264"] + caps.available_encoders = encoders_found if encoders_found else ["libx264"] + # Detect GPU vendor + try: + result = subprocess.run( + ["nvidia-smi", "--query-gpu=name,memory.total", "--format=csv,noheader,nounits"], + capture_output=True, text=True, timeout=5 + ) + if result.returncode == 0 and result.stdout.strip(): + parts = result.stdout.strip().split(",") + caps.gpu_vendor = "nvidia" + caps.gpu_name = parts[0].strip() + caps.max_memory_mb = int(parts[1].strip()) + except (FileNotFoundError, subprocess.TimeoutExpired): + pass + if caps.gpu_vendor == "unknown": + try: + result = subprocess.run(["vainfo"], capture_output=True, text=True, timeout=5) + output = result.stdout + result.stderr + if "AMD" in output or "RADV" in output or "radeon" in output.lower(): + caps.gpu_vendor = "amd" + caps.gpu_name = "AMD Radeon (VAAPI)" + elif "Intel" in output or "iHD" in output or "i965" in output: + caps.gpu_vendor = "intel" + caps.gpu_name = "Intel Graphics (VAAPI)" + except (FileNotFoundError, subprocess.TimeoutExpired): + pass + if caps.gpu_vendor == "unknown": + try: + vendor_path = Path("/sys/class/drm/card1/device/vendor") + if vendor_path.exists(): + vendor_id = vendor_path.read_text().strip() + if vendor_id == "0x1002": + caps.gpu_vendor = "amd" + caps.gpu_name = "AMD Radeon (DRM)" + elif vendor_id == "0x8086": + caps.gpu_vendor = "intel" + caps.gpu_name = "Intel Graphics (DRM)" + except Exception: + pass + preferred_encoder = _select_preferred_encoder(encoders_found, caps.gpu_vendor) + caps.available_encoders = [preferred_encoder] + [e for e in encoders_found if e != preferred_encoder] + supported = [] + for name, (w, h) in VCN_RESOLUTIONS.items(): + if w > 3840 and (3840, 2160) in supported: + supported.append((w, h)) + continue + if _test_resolution(w, h, preferred_encoder): + supported.append((w, h)) + caps.supported_resolutions = supported if supported else [(1920, 1080)] + caps.supported_frame_rates = [fps for fps in VCN_FRAME_RATES if fps <= 240] + max_w, max_h = caps.supported_resolutions[-1] if caps.supported_resolutions else (1920, 1080) + max_pixels = max_w * max_h + caps.max_bandwidth_mbps = (max_pixels * 3 // 2 * 60) // (1024 * 1024) + return caps + + +def _select_preferred_encoder(encoders: List[str], vendor: str) -> str: + """Select the best encoder for the detected GPU vendor.""" + vendor_prefs = { + "nvidia": ["hevc_nvenc", "h264_nvenc"], + "amd": ["hevc_vaapi", "h264_vaapi", "hevc_amf", "h264_amf"], + "intel": ["hevc_vaapi", "h264_vaapi"], + } + for pref in vendor_prefs.get(vendor, []): + if pref in encoders: + return pref + return "libx265" if "libx265" in encoders else "libx264" + + +def _test_resolution(width: int, height: int, encoder: str) -> bool: + """Test if the encoder can handle a given resolution.""" + try: + test_size = width * height * 3 // 2 + if test_size > 100_000_000: + return False + cmd = ["ffmpeg", "-y", "-f", "rawvideo", "-pix_fmt", "yuv420p", + "-s", f"{width}x{height}", "-frames:v", "1", "-i", "/dev/zero", + "-c:v", encoder, "-f", "null", "-"] + if "vaapi" in encoder: + cmd.insert(1, "-vaapi_device") + cmd.insert(2, "/dev/dri/renderD128") + result = subprocess.run(cmd, capture_output=True, text=True, timeout=10) + return result.returncode == 0 + except (FileNotFoundError, subprocess.TimeoutExpired): + return False + + +def compute_frame_size(width: int, height: int, fmt: str = "yuv420p") -> int: + """Compute frame size in bytes for given resolution and format.""" + if fmt == "yuv420p": + return width * height * 3 // 2 + elif fmt == "rgb24": + return width * height * 3 + raise ValueError(f"Unsupported format: {fmt}") + + +def select_optimal_resolution( + caps: VCNHardwareCapabilities, + target_data_size: int, + preferred_format: str = "yuv420p" +) -> VCNComputeFrameSpec: + """Select the smallest resolution that can hold target_data_size.""" + required_size = target_data_size + SIGNATURE_SIZE + for w, h in caps.supported_resolutions: + frame_bytes = compute_frame_size(w, h, preferred_format) + if frame_bytes >= required_size: + max_fps = 60 + for fps in reversed(caps.supported_frame_rates): + bandwidth_needed = (frame_bytes * fps) // (1024 * 1024) + if bandwidth_needed <= caps.max_bandwidth_mbps: + max_fps = fps + break + encoder = caps.available_encoders[0] if caps.available_encoders else "libx264" + return VCNComputeFrameSpec(width=w, height=h, format=preferred_format, + bytes_per_frame=frame_bytes, frame_rate=max_fps, encoder=encoder) + w, h = caps.supported_resolutions[-1] if caps.supported_resolutions else (1920, 1080) + encoder = caps.available_encoders[0] if caps.available_encoders else "libx264" + return VCNComputeFrameSpec(width=w, height=h, format=preferred_format, + bytes_per_frame=compute_frame_size(w, h, preferred_format), frame_rate=60, encoder=encoder) + + +def create_frame_dynamic(data: bytes, seq: int, spec: VCNComputeFrameSpec) -> bytes: + """Create a frame at dynamic resolution from computation data.""" + frame_size = spec.bytes_per_frame + if len(data) > frame_size - SIGNATURE_SIZE: + raise ValueError(f"Data too large: {len(data)} > {frame_size - SIGNATURE_SIZE}") + frame = bytearray(frame_size) + version = 1 + length = len(data) + header = SIGNATURE_HEADER + struct.pack(" subprocess.CompletedProcess: + """Encode frames using detected hardware encoder with software fallback.""" + raw_path = output_path.with_suffix(".raw") + with open(raw_path, "wb") as f: + for frame in input_frames: + f.write(frame) + encoder = spec.encoder + cmd = ["ffmpeg", "-y", "-f", "rawvideo", "-pix_fmt", spec.format, + "-s", f"{spec.width}x{spec.height}", "-r", str(spec.frame_rate), + "-i", str(raw_path), "-c:v", encoder, "-qp", str(QP_MIN), + "-f", "matroska", str(output_path)] + if "vaapi" in encoder: + cmd.insert(1, "-vaapi_device") + cmd.insert(2, "/dev/dri/renderD128") + cmd.insert(3, "-vf") + cmd.insert(4, "format=nv12,hwupload") + elif "nvenc" in encoder: + cmd.extend(["-preset", "p1", "-tune", "ull"]) + elif "amf" in encoder: + cmd.extend(["-usage", "ultralowlatency"]) + elif encoder == "libx264": + cmd.extend(["-profile:v", ENCODER_PROFILE, "-preset", "ultrafast", "-tune", "zerolatency"]) + result = subprocess.run(cmd, capture_output=True, text=True) + if result.returncode != 0 and encoder != "libx264": + cmd[cmd.index("-c:v") + 1] = "libx264" + result = subprocess.run(cmd, capture_output=True, text=True) + raw_path.unlink(missing_ok=True) + return result + + +def pack_q16_16_to_yuv(value: int) -> Tuple[int, int, int]: + """ + Pack a Q16_16 scalar into YUV pixel values. + + Mapping strategy: Split 32-bit Q16_16 into three 8-bit components + with error-diffusion dithering for precision preservation. + + Args: + value: Q16_16 scalar as integer (0x00010000 = 1.0) + + Returns: + (Y, U, V) tuple of pixel values (0-255) + """ + # Extract bytes from Q16_16 (little-endian) + y_val = (value >> 16) & 0xFF + u_val = (value >> 8) & 0xFF + v_val = value & 0xFF + + # Clamp to valid YUV range + y_val = max(16, min(235, y_val)) # Y: 16-235 (limited range) + u_val = max(16, min(240, u_val)) # U: 16-240 + v_val = max(16, min(240, v_val)) # V: 16-240 + + return (y_val, u_val, v_val) + + +def unpack_yuv_to_q16_16(y: int, u: int, v: int) -> int: + """ + Unpack YUV pixel values back to Q16_16 scalar. + + Args: + y, u, v: YUV pixel values (0-255) + + Returns: + Q16_16 scalar as integer + """ + # Reconstruct Q16_16 from YUV components + value = (y << 16) | (u << 8) | v + return value + + +def create_yuv420_frame(data: bytes, seq: int) -> bytes: + """ + Create a 1920×1080 YUV420 frame from computation data. + + Frame layout: + - Bytes 0-23: Signature header (RDMAVCN\0 + version + seq + length) + - Bytes 24+: Computation data packed into YUV macroblocks + + Args: + data: Raw computation data bytes + seq: Frame sequence number + + Returns: + Complete YUV420 frame bytes (3,110,400 bytes) + """ + if len(data) > YUV420_FRAME_SIZE - SIGNATURE_SIZE: + raise ValueError(f"Data too large: {len(data)} > {YUV420_FRAME_SIZE - SIGNATURE_SIZE}") + + # Create frame buffer + frame = bytearray(YUV420_FRAME_SIZE) + + # Write signature header (exactly 24 bytes) + version = 1 + length = len(data) + header = SIGNATURE_HEADER + struct.pack(" subprocess.CompletedProcess: + """ + Encode raw YUV420 frames using H.264 encoder. + + Args: + input_frames: List of YUV420 frame bytes + output_path: Output MKV file path + + Returns: + FFmpeg subprocess result + """ + # Write raw YUV420 file + raw_path = output_path.with_suffix(".yuv") + with open(raw_path, "wb") as f: + for frame in input_frames: + f.write(frame) + + # FFmpeg command for software encoding (libx264) for initial testing + cmd = [ + "ffmpeg", + "-y", # Overwrite output file + "-f", "rawvideo", + "-pix_fmt", "yuv420p", + "-s", f"{FRAME_WIDTH}x{FRAME_HEIGHT}", + "-r", "60", # 60 fps as per spec + "-i", str(raw_path), + "-c:v", "libx264", + "-profile:v", ENCODER_PROFILE, + "-level", ENCODER_LEVEL, + "-qp", str(QP_MIN), + "-preset", "ultrafast", + "-tune", "zerolatency", + "-f", "matroska", + str(output_path) + ] + + result = subprocess.run(cmd, capture_output=True, text=True) + + # Clean up raw file + raw_path.unlink() + + return result + + +def decode_frames(input_path: Path) -> List[bytes]: + """ + Decode MKV file back to raw YUV420 frames using H.264 decoder. + + Note: This is lossy - the encoding process modifies pixel values. + For computation extraction, use extract_receipt() instead. + + Args: + input_path: Input MKV file path + + Returns: + List of decoded YUV420 frame bytes + """ + raw_path = input_path.with_suffix(".decoded.yuv") + + cmd = [ + "ffmpeg", + "-i", str(input_path), + "-c:v", "rawvideo", # Decode to raw, don't re-encode + "-f", "rawvideo", + "-pix_fmt", "yuv420p", + str(raw_path) + ] + + result = subprocess.run(cmd, capture_output=True, text=True) + + if result.returncode != 0: + raise RuntimeError(f"FFmpeg decode failed: {result.stderr}") + + # Read decoded frames + with open(raw_path, "rb") as f: + data = f.read() + + # Split into frames + frames = [] + for i in range(0, len(data), YUV420_FRAME_SIZE): + frame = data[i:i + YUV420_FRAME_SIZE] + if len(frame) == YUV420_FRAME_SIZE: + frames.append(frame) + + # Clean up + raw_path.unlink() + + return frames + + +def extract_receipt(input_path: Path) -> dict: + """ + Extract computation receipt from encoded MKV file. + + Receipt includes: + - CRC32 of encoded file (proves encoding occurred) + - Frame size statistics + - Encoding parameters used + - Bitstream analysis metadata + - Compression ratio (input vs output size) + + Args: + input_path: Input MKV file path + + Returns: + Receipt dictionary + """ + # Use ffprobe to get stream information + cmd = [ + "ffprobe", + "-v", "quiet", + "-print_format", "json", + "-show_streams", + "-show_format", + str(input_path) + ] + + result = subprocess.run(cmd, capture_output=True, text=True) + + if result.returncode != 0: + raise RuntimeError(f"FFprobe failed: {result.stderr}") + + probe_info = json.loads(result.stdout) + + # Calculate file CRC32 + with open(input_path, "rb") as f: + file_data = f.read() + file_crc32 = zlib.crc32(file_data) & 0xFFFFFFFF + + # Extract compression metrics + original_size = YUV420_FRAME_SIZE # Single frame + compressed_size = len(file_data) + compression_ratio = original_size / compressed_size if compressed_size > 0 else 0 + + receipt = { + "schema": "vcn_computation_receipt_v1", + "input_file": str(input_path), + "file_size_bytes": len(file_data), + "file_crc32": file_crc32, + "encoding_params": { + "codec": "libx264", + "profile": ENCODER_PROFILE, + "qp_min": QP_MIN, + "qp_max": QP_MAX, + "transform_skip": TRANSFORM_SKIP, + "deblocking": DEBLOCKING, + "sao": SAO + }, + "stream_info": probe_info.get("streams", []), + "format_info": probe_info.get("format", {}), + "frame_spec": { + "width": FRAME_WIDTH, + "height": FRAME_HEIGHT, + "format": "yuv420p", + "bytes_per_frame": YUV420_FRAME_SIZE + }, + "compression_metrics": { + "original_size": original_size, + "compressed_size": compressed_size, + "compression_ratio": compression_ratio, + "space_saving": (1 - (compressed_size / original_size)) * 100 if original_size > 0 else 0 + } + } + + return receipt + + +def main(): + import sys + + if len(sys.argv) < 2: + print("Usage: vcn_compute_substrate.py ") + sys.exit(1) + + command = sys.argv[1] + input_path = Path(sys.argv[2]) + + if command == "encode": + output_path = Path(sys.argv[3]) + + # Read input data + with open(input_path, "rb") as f: + data = f.read() + + # Create frame + frame = create_yuv420_frame(data, seq=0) + + # Encode + result = encode_frames([frame], output_path) + + if result.returncode != 0: + print(f"Encoding failed: {result.stderr}", file=sys.stderr) + sys.exit(1) + + print(f"Encoded to {output_path}") + + elif command == "decode": + output_path = Path(sys.argv[3]) + + # Decode + frames = decode_frames(input_path) + + # Extract first frame's data + if frames: + frame = frames[0] + # Extract signature header + header = frame[:SIGNATURE_SIZE] + signature, version, seq, length, _ = struct.unpack("<8sIIII", header) + + if signature != SIGNATURE_HEADER: + print(f"Invalid signature: {signature}", file=sys.stderr) + sys.exit(1) + + # Extract data payload + data = frame[SIGNATURE_SIZE:SIGNATURE_SIZE + length] + + with open(output_path, "wb") as f: + f.write(data) + + print(f"Decoded to {output_path}") + else: + print("No frames decoded", file=sys.stderr) + sys.exit(1) + + elif command == "extract_receipt": + receipt = extract_receipt(input_path) + output_path = Path(sys.argv[3]) + + with open(output_path, "w") as f: + json.dump(receipt, f, indent=2) + + print(f"Receipt written to {output_path}") + + else: + print(f"Unknown command: {command}", file=sys.stderr) + sys.exit(1) + + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/5-Applications/cluster-dashboard/.gitignore b/5-Applications/cluster-dashboard/.gitignore new file mode 100644 index 00000000..e428b76f --- /dev/null +++ b/5-Applications/cluster-dashboard/.gitignore @@ -0,0 +1,4 @@ +frontend/node_modules/ +frontend/dist/ +__pycache__/ +*.pyc diff --git a/5-Applications/cluster-dashboard/Containerfile b/5-Applications/cluster-dashboard/Containerfile new file mode 100644 index 00000000..aef92e6d --- /dev/null +++ b/5-Applications/cluster-dashboard/Containerfile @@ -0,0 +1,45 @@ +# Multi-stage: build frontend → package with backend +# ── Stage 1: Build React frontend ──────────────────────────────────────────── +FROM node:22-slim AS frontend-build +WORKDIR /app/frontend +COPY frontend/package.json frontend/package-lock.json* ./ +RUN npm ci --prefer-offline 2>/dev/null || npm install +COPY frontend/ . +RUN npm run build + +# ── Stage 2: Backend + static files ────────────────────────────────────────── +FROM python:3.12-slim +WORKDIR /app + +# System deps for SSH (to collect node metrics) + tailscale CLI +RUN apt-get update && apt-get install -y --no-install-recommends \ + openssh-client curl gnupg ca-certificates && \ + rm -rf /var/lib/apt/lists/* && \ + # Install kubectl + curl -fsSL "https://dl.k8s.io/release/$(curl -fsSL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -o /usr/local/bin/kubectl && \ + chmod +x /usr/local/bin/kubectl && \ + # Install tailscale CLI + curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg -o /usr/share/keyrings/tailscale-archive-keyring.gpg && \ + curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list -o /etc/apt/sources.list.d/tailscale.list && \ + apt-get update && apt-get install -y --no-install-recommends tailscale && \ + rm -rf /var/lib/apt/lists/* + +COPY backend/requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY backend/ . + +# Copy built frontend into static directory +COPY --from=frontend-build /app/frontend/dist /app/static + +# SSH config for connecting to cluster nodes +RUN mkdir -p /root/.ssh && \ + echo "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile /dev/null\n IdentityFile /root/.ssh/id_ed25519" > /root/.ssh/config && \ + chmod 600 /root/.ssh/config + +COPY backend/entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +EXPOSE 8787 + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/5-Applications/cluster-dashboard/backend/entrypoint.sh b/5-Applications/cluster-dashboard/backend/entrypoint.sh new file mode 100755 index 00000000..7dcf7a04 --- /dev/null +++ b/5-Applications/cluster-dashboard/backend/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# Fix SSH key permissions (k8s secret mounts may not preserve mode) +if [ -f /identity/id_ed25519 ]; then + cp /identity/id_ed25519 /root/.ssh/id_ed25519 + chmod 600 /root/.ssh/id_ed25519 +fi +exec uvicorn main:app --host 0.0.0.0 --port 8787 --workers 1 diff --git a/5-Applications/cluster-dashboard/backend/main.py b/5-Applications/cluster-dashboard/backend/main.py new file mode 100644 index 00000000..ae28af49 --- /dev/null +++ b/5-Applications/cluster-dashboard/backend/main.py @@ -0,0 +1,448 @@ +"""Research Stack Cluster Dashboard — telemetry collector backend. + +Collects node metrics via: +- Kubernetes API (node status, pod counts) +- Tailscale CLI (connection type, bytes) +- SSH to nodes (GPU util, VRAM, CPU, memory) +- nvidia-smi (qfox-1) / sysfs (nixos AMD) + +Exposes: +- REST /api/nodes — current snapshot +- WebSocket /ws — live updates every 3s +- GET /health — readiness probe +""" + +import asyncio +import json +import logging +import os +import re +import subprocess +from dataclasses import dataclass, asdict +from datetime import datetime, timezone +from pathlib import Path + +from fastapi import FastAPI, WebSocket, WebSocketDisconnect +from fastapi.middleware.cors import CORSMiddleware +from fastapi.staticfiles import StaticFiles + +logging.basicConfig(level=logging.INFO) +log = logging.getLogger("dashboard") + +app = FastAPI(title="Research Stack Cluster Dashboard") +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_methods=["*"], + allow_headers=["*"], +) + +KUBECONFIG = os.environ.get("KUBECONFIG", "/tmp/researchstack-kubeconfig.yaml") +POLL_INTERVAL = 3 # seconds + +# ── Node data model (field names match frontend App.tsx exactly) ───────── + +@dataclass +class NodeMetrics: + name: str + ip: str + role: str + status: str # Ready / NotReady / Unknown + os_image: str + kernel: str + # GPU + gpu_name: str = "" + gpu_util: float = 0.0 + vram_used_mb: float = 0.0 + vram_total_mb: float = 0.0 + gpu_temp: float = 0.0 + encoder: str = "" + # System + cpu_cores: int = 0 + cpu_util: float = 0.0 + mem_used_mb: float = 0.0 + mem_total_mb: float = 0.0 + mem_util: float = 0.0 + # k3s + pods_running: int = 0 + # Tailscale + tailscale_ip: str = "" + tailscale_latency_ms: float = 0.0 + tailscale_relay: str = "" + tailscale_direct: bool = False + # VCN substrate + vcn_codec: str = "" + vcn_resolution: str = "" + vcn_fps: int = 0 + # Meta + last_updated: str = "" + error: str = "" + + +# ── Node registry ──────────────────────────────────────────────────────── + +NODES = { + "qfox-1": { + "tailscale_ip": "100.88.57.96", + "role": "gpu-worker", + "gpu_name": "RTX 4070 SUPER", + "gpu_type": "nvidia", + "ssh_user": "allaun", + }, + "nixos": { + "tailscale_ip": "100.102.173.61", + "role": "control-plane", + "gpu_name": "AMD Lucienne", + "gpu_type": "amd", + "ssh_user": "allaun", + }, + "steamdeck": { + "tailscale_ip": "100.85.244.73", + "role": "gpu-worker", + "gpu_name": "VanGogh APU", + "gpu_type": "amd", + "ssh_user": "deck", + }, + "361395-1": { + "tailscale_ip": "100.110.163.82", + "role": "vps-worker", + "gpu_name": "", + "gpu_type": None, + "ssh_user": "root", + }, + "racknerd-510bd9c": { + "tailscale_ip": "100.80.39.40", + "role": "edge", + "gpu_name": "", + "gpu_type": None, + "ssh_user": "root", + }, +} + + +# ── Helpers ────────────────────────────────────────────────────────────── + +def run_cmd(cmd: list[str], timeout: int = 10) -> str | None: + """Run a command, return stdout or None on failure.""" + try: + r = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout) + return r.stdout.strip() if r.returncode == 0 else None + except (FileNotFoundError, subprocess.TimeoutExpired, Exception): + return None + + +def parse_k8s_memory(mem_str: str) -> int: + """Parse k8s memory string (e.g. '16392740Ki') to MB.""" + s = mem_str.strip() + if s.endswith("Ki"): + return int(s[:-2]) // 1024 + if s.endswith("Mi"): + return int(s[:-2]) + if s.endswith("Gi"): + return int(s[:-2]) * 1024 + return 0 + + +# ── Collectors ─────────────────────────────────────────────────────────── + +def collect_k8s_nodes() -> dict[str, dict]: + """Get node info from kubectl JSON output.""" + out = run_cmd(["kubectl", "get", "nodes", "-o", "json", "--kubeconfig", KUBECONFIG]) + if not out: + return {} + data = json.loads(out) + result = {} + for item in data.get("items", []): + name = item["metadata"]["name"] + conditions = item.get("status", {}).get("conditions", []) + ready = any(c["type"] == "Ready" and c["status"] == "True" for c in conditions) + # Get InternalIP + addrs = item.get("status", {}).get("addresses", []) + internal_ip = next((a["address"] for a in addrs if a["type"] == "InternalIP"), "") + info = item.get("status", {}).get("nodeInfo", {}) + allocatable = item.get("status", {}).get("allocatable", {}) + result[name] = { + "status": "Ready" if ready else "NotReady", + "ip": internal_ip, + "os_image": info.get("osImage", ""), + "kernel": info.get("kernelVersion", ""), + "cpu_cores": int(allocatable.get("cpu", "0")), + "mem_total_mb": parse_k8s_memory(allocatable.get("memory", "0Ki")), + } + return result + + +def collect_k8s_pods() -> dict[str, int]: + """Count running pods per node.""" + out = run_cmd(["kubectl", "get", "pods", "-A", "-o", "json", "--kubeconfig", KUBECONFIG]) + if not out: + return {} + data = json.loads(out) + counts: dict[str, int] = {} + for pod in data.get("items", []): + phase = pod.get("status", {}).get("phase", "") + node = pod.get("spec", {}).get("nodeName", "") + if phase == "Running" and node: + counts[node] = counts.get(node, 0) + 1 + return counts + + +def collect_nvidia_gpu(ip: str) -> dict: + """GPU metrics via SSH + nvidia-smi.""" + out = run_cmd([ + "ssh", "-o", "ConnectTimeout=5", "-o", "StrictHostKeyChecking=no", + f"allaun@{ip}", + "nvidia-smi --query-gpu=name,utilization.gpu,memory.used,memory.total," + "temperature.gpu --format=csv,noheader,nounits 2>/dev/null", + ], timeout=15) + if not out: + return {} + parts = [p.strip() for p in out.split(",")] + if len(parts) >= 5: + try: + return { + "gpu_name": parts[0], + "gpu_util": float(parts[1]), + "vram_used_mb": float(parts[2]), + "vram_total_mb": float(parts[3]), + "gpu_temp": float(parts[4]), + } + except ValueError: + return {} + return {} + + +def collect_amd_gpu(ip: str) -> dict: + """GPU metrics via SSH + sysfs (AMD).""" + out = run_cmd([ + "ssh", "-o", "ConnectTimeout=5", "-o", "StrictHostKeyChecking=no", + f"allaun@{ip}", + "cat /sys/class/drm/card*/device/gpu_busy_percent 2>/dev/null; " + "echo '---'; " + "cat /sys/class/drm/card*/device/mem_info_vram_used 2>/dev/null; " + "echo '---'; " + "cat /sys/class/drm/card*/device/mem_info_vram_total 2>/dev/null", + ], timeout=10) + if not out: + return {} + sections = out.split("---") + gpu_util = 0.0 + vram_used = 0.0 + vram_total = 0.0 + try: + if sections[0].strip(): + gpu_util = float(sections[0].strip().split("\n")[0]) + if len(sections) > 1 and sections[1].strip(): + vram_used = float(sections[1].strip().split("\n")[0]) / (1024 * 1024) + if len(sections) > 2 and sections[2].strip(): + vram_total = float(sections[2].strip().split("\n")[0]) / (1024 * 1024) + except ValueError: + pass + return { + "gpu_util": gpu_util, + "vram_used_mb": vram_used, + "vram_total_mb": vram_total, + } + + +def collect_system_metrics(ip: str) -> dict: + """CPU/memory via SSH + /proc/stat and /proc/meminfo (portable across all Linux distros).""" + out = run_cmd([ + "ssh", "-o", "ConnectTimeout=5", "-o", "StrictHostKeyChecking=no", + f"allaun@{ip}", + "cat /proc/stat | head -1; cat /proc/meminfo | head -3", + ], timeout=10) + if not out: + return {} + result = {} + # Parse /proc/stat — first line: cpu user nice system idle iowait irq softirq steal + cpu_match = re.search( + r"^cpu\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)", + out, re.MULTILINE, + ) + if cpu_match: + vals = [int(v) for v in cpu_match.groups()] + idle = vals[3] + vals[4] # idle + iowait + total = sum(vals) + if total > 0: + result["cpu_util"] = round((1 - idle / total) * 100, 1) + # Parse /proc/meminfo — MemTotal, MemFree, MemAvailable + mem_total = re.search(r"MemTotal:\s+(\d+)\s+kB", out) + mem_avail = re.search(r"MemAvailable:\s+(\d+)\s+kB", out) + if mem_total: + total_kb = int(mem_total.group(1)) + result["mem_total_mb"] = total_kb // 1024 + if mem_avail and mem_total: + total_kb = int(mem_total.group(1)) + avail_kb = int(mem_avail.group(1)) + used_kb = total_kb - avail_kb + result["mem_used_mb"] = used_kb // 1024 + result["mem_util"] = round(used_kb / total_kb * 100, 1) if total_kb else 0 + return result + + +def collect_tailscale() -> dict[str, dict]: + """Tailscale peer status via SSH to host (container doesn't run tailscaled).""" + out = run_cmd([ + "ssh", "-o", "ConnectTimeout=5", "-o", "StrictHostKeyChecking=no", + "allaun@100.102.173.61", "tailscale status --json", + ]) + if not out: + return {} + data = json.loads(out) + peers: dict[str, dict] = {} + # Self + self_ips = data.get("Self", {}).get("TailscaleIPs", []) + if self_ips: + peers[self_ips[0]] = {"relay": "", "direct": True} + # Peers + for _, peer in data.get("Peer", {}).items(): + ips = peer.get("TailscaleIPs", []) + if ips: + peers[ips[0]] = { + "relay": peer.get("Relay", ""), + "direct": bool(peer.get("CurAddr")), + } + return peers + + +# ── Main collection loop ───────────────────────────────────────────────── + +async def collect_all() -> list[dict]: + """Collect metrics from all nodes, return as dicts for JSON.""" + loop = asyncio.get_event_loop() + + # Run blocking collectors in thread pool + k8s_nodes, pod_counts, ts_status = await asyncio.gather( + loop.run_in_executor(None, collect_k8s_nodes), + loop.run_in_executor(None, collect_k8s_pods), + loop.run_in_executor(None, collect_tailscale), + ) + + nodes = [] + for name, cfg in NODES.items(): + k8s = k8s_nodes.get(name, {}) + nm = NodeMetrics( + name=name, + ip=k8s.get("ip", cfg["tailscale_ip"]), + role=cfg["role"], + status=k8s.get("status", "Unknown"), + os_image=k8s.get("os_image", ""), + kernel=k8s.get("kernel", ""), + cpu_cores=k8s.get("cpu_cores", 0), + mem_total_mb=k8s.get("mem_total_mb", 0), + pods_running=pod_counts.get(name, 0), + tailscale_ip=cfg["tailscale_ip"], + last_updated=datetime.now(timezone.utc).isoformat(), + ) + + # Tailscale + ts = ts_status.get(cfg["tailscale_ip"], {}) + nm.tailscale_relay = ts.get("relay", "") + nm.tailscale_direct = ts.get("direct", False) + + # GPU + system metrics (skip remote VPS — no SSH) + gpu_type = cfg.get("gpu_type") + if gpu_type == "nvidia": + gpu_data = await loop.run_in_executor( + None, collect_nvidia_gpu, cfg["tailscale_ip"] + ) + for k, v in gpu_data.items(): + setattr(nm, k, v) + if not nm.gpu_name: + nm.gpu_name = cfg.get("gpu_name", "") + # Encoder check + enc_out = await loop.run_in_executor(None, lambda: run_cmd([ + "ssh", "-o", "ConnectTimeout=5", "-o", "StrictHostKeyChecking=no", + f"allaun@{cfg['tailscale_ip']}", + "nvidia-smi --query-gpu=encoder.stats.sessionCount " + "--format=csv,noheader,nounits 2>/dev/null", + ])) + if enc_out and enc_out.strip().isdigit() and int(enc_out.strip()) > 0: + nm.encoder = "h264_nvenc" + elif gpu_type == "amd": + nm.gpu_name = cfg.get("gpu_name", "") + if name != "steamdeck": # VanGogh has no VRAM sysfs + gpu_data = await loop.run_in_executor( + None, collect_amd_gpu, cfg["tailscale_ip"] + ) + for k, v in gpu_data.items(): + setattr(nm, k, v) + nm.encoder = "hevc_vaapi" + + # System metrics (local nodes only) + if name in ("qfox-1", "nixos", "steamdeck"): + sys_data = await loop.run_in_executor( + None, collect_system_metrics, cfg["tailscale_ip"] + ) + for k, v in sys_data.items(): + setattr(nm, k, v) + + nodes.append(asdict(nm)) + + return nodes + + +# ── Cached state + WebSocket ───────────────────────────────────────────── + +_cached_nodes: list[dict] = [] +_ws_clients: set[WebSocket] = set() + + +async def update_loop(): + """Background task: collect metrics every POLL_INTERVAL, push to WS clients.""" + global _cached_nodes + while True: + try: + _cached_nodes = await collect_all() + payload = json.dumps({"type": "update", "nodes": _cached_nodes}) + dead: set[WebSocket] = set() + for ws in _ws_clients: + try: + await ws.send_text(payload) + except Exception: + dead.add(ws) + _ws_clients.difference_update(dead) + except Exception as e: + log.error(f"Collection error: {e}") + await asyncio.sleep(POLL_INTERVAL) + + +@app.on_event("startup") +async def startup(): + asyncio.create_task(update_loop()) + + +# ── API routes ─────────────────────────────────────────────────────────── + +@app.get("/api/nodes") +async def get_nodes(): + return {"nodes": _cached_nodes, "updated": datetime.now(timezone.utc).isoformat()} + + +@app.websocket("/ws") +async def websocket_endpoint(ws: WebSocket): + await ws.accept() + _ws_clients.add(ws) + log.info(f"WS client connected ({len(_ws_clients)} total)") + try: + await ws.send_text(json.dumps({"type": "update", "nodes": _cached_nodes})) + while True: + await ws.receive_text() + except WebSocketDisconnect: + pass + finally: + _ws_clients.discard(ws) + log.info(f"WS client disconnected ({len(_ws_clients)} total)") + + +@app.get("/health") +async def health(): + return {"status": "ok", "nodes": len(_cached_nodes)} + + +# ── Static files (frontend) ────────────────────────────────────────────── + +frontend_dist = Path(os.environ.get("STATIC_DIR", "/app/static")) +if frontend_dist.exists(): + app.mount("/", StaticFiles(directory=str(frontend_dist), html=True), name="static") diff --git a/5-Applications/cluster-dashboard/backend/requirements.txt b/5-Applications/cluster-dashboard/backend/requirements.txt new file mode 100644 index 00000000..90c3c5aa --- /dev/null +++ b/5-Applications/cluster-dashboard/backend/requirements.txt @@ -0,0 +1,3 @@ +fastapi>=0.115 +uvicorn[standard]>=0.34 +websockets>=15.0 diff --git a/5-Applications/cluster-dashboard/frontend/index.html b/5-Applications/cluster-dashboard/frontend/index.html new file mode 100644 index 00000000..d80253dd --- /dev/null +++ b/5-Applications/cluster-dashboard/frontend/index.html @@ -0,0 +1,23 @@ + + + + + + Research Stack — Cluster Dashboard + + + +
+ + + diff --git a/5-Applications/cluster-dashboard/frontend/package-lock.json b/5-Applications/cluster-dashboard/frontend/package-lock.json new file mode 100644 index 00000000..ca40b873 --- /dev/null +++ b/5-Applications/cluster-dashboard/frontend/package-lock.json @@ -0,0 +1,1910 @@ +{ + "name": "research-stack-dashboard", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "research-stack-dashboard", + "version": "0.1.0", + "dependencies": { + "@1771technologies/lytenyte-core": "^2.1.2", + "react": "^19.1.0", + "react-dom": "^19.1.0" + }, + "devDependencies": { + "@types/react": "^19.2.15", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^4.7.0", + "typescript": "^5.9.3", + "vite": "^6.4.2" + } + }, + "node_modules/@1771technologies/dom-utils": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@1771technologies/dom-utils/-/dom-utils-2.1.2.tgz", + "integrity": "sha512-0xuZ9YCXcIONeilzfIOhx5WA/PTKd7aDh4Lx2/EGNMt2R4ek2+PJ/SnYVUZGRkiIU2rdWIgQlj08/RSu37Efbg==", + "license": "Apache-2.0", + "dependencies": { + "@1771technologies/js-utils": "2.1.2" + } + }, + "node_modules/@1771technologies/js-utils": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@1771technologies/js-utils/-/js-utils-2.1.2.tgz", + "integrity": "sha512-nh/jOKmY/zEK0/yCkpHKXMsT8Nsp6tAnivcqPinc0kQKmORfVGCz562wzdyVS8a9SB4pglcGTeB5k75WslQVlQ==", + "license": "Apache-2.0" + }, + "node_modules/@1771technologies/lytenyte-core": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@1771technologies/lytenyte-core/-/lytenyte-core-2.1.2.tgz", + "integrity": "sha512-bor0aiye7ovkdbIhgSLLjQRpT5KTEz0Ka2FXDKi1RVyAdf+aLM3vdMVcT5SGaPQyw/KchXqPYs/+la3NNpOO5g==", + "license": "Apache-2.0", + "dependencies": { + "@1771technologies/dom-utils": "2.1.2", + "@1771technologies/js-utils": "2.1.2", + "@1771technologies/lytenyte-design": "2.1.2", + "@1771technologies/lytenyte-shared": "2.1.2" + }, + "peerDependencies": { + "react": "18.0.0 || ^19.0.0", + "react-dom": "18.0.0 || ^19.0.0" + } + }, + "node_modules/@1771technologies/lytenyte-design": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@1771technologies/lytenyte-design/-/lytenyte-design-2.1.2.tgz", + "integrity": "sha512-wr1inFnMiiBzSPPbraxP08N1wQiTxlhCRqsWgdIhgRK1mWKIW68aSZ7nFyLeEXvf8j/wrBxoW0QpsMO4VxbeXQ==", + "license": "Apache-2.0" + }, + "node_modules/@1771technologies/lytenyte-shared": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@1771technologies/lytenyte-shared/-/lytenyte-shared-2.1.2.tgz", + "integrity": "sha512-3DC7PJb/dK8fQV6Eg94knHl+rl3WcxPUufCG5fydNoYpLd45ghIqzhSun2tLXkONvZOeDfFXPnneCvccRIRKkQ==", + "license": "Apache-2.0", + "dependencies": { + "@1771technologies/dom-utils": "2.1.2", + "@1771technologies/js-utils": "2.1.2" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", + "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", + "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", + "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", + "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", + "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", + "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", + "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.27", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", + "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.4.tgz", + "integrity": "sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.4.tgz", + "integrity": "sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.4.tgz", + "integrity": "sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.4.tgz", + "integrity": "sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.4.tgz", + "integrity": "sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.4.tgz", + "integrity": "sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.4.tgz", + "integrity": "sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.4.tgz", + "integrity": "sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.4.tgz", + "integrity": "sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.4.tgz", + "integrity": "sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.4.tgz", + "integrity": "sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.4.tgz", + "integrity": "sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.4.tgz", + "integrity": "sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.4.tgz", + "integrity": "sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.4.tgz", + "integrity": "sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.4.tgz", + "integrity": "sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.4.tgz", + "integrity": "sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.4.tgz", + "integrity": "sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.4.tgz", + "integrity": "sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.4.tgz", + "integrity": "sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.4.tgz", + "integrity": "sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.4.tgz", + "integrity": "sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.4.tgz", + "integrity": "sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.4.tgz", + "integrity": "sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.4.tgz", + "integrity": "sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "19.2.15", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz", + "integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", + "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.28.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.27", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.17.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.32", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.32.tgz", + "integrity": "sha512-wbPvpyjJPC0zdfdKXxqEL3Ea+bOMD/87X4lftiJkkaBiuG6ALQy1SLmEd7BSmVCuwCQsBrCamgBoLyfFDD1EPg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001793", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz", + "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.363", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.363.tgz", + "integrity": "sha512-VjUKPyWzGnT1fujlkEGC/BvN70Hh70KXtAqcmniXviYlJC/ivcT+BWGPyxWVbJZLfvtKR6dqg1L7T7pgAMBtWA==", + "dev": true, + "license": "ISC" + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-releases": { + "version": "2.0.46", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.46.tgz", + "integrity": "sha512-GYVXHE2KnrzAfsAjl4uP++evGFCrAU1jta4ubEjIG7YWt/64Gqv66a30yKwWczVjA6j3bM4nBwH7Pk1JmDHaxQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/react": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.6.tgz", + "integrity": "sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.6", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.6.tgz", + "integrity": "sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.6" + } + }, + "node_modules/react-refresh": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", + "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.60.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.4.tgz", + "integrity": "sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.60.4", + "@rollup/rollup-android-arm64": "4.60.4", + "@rollup/rollup-darwin-arm64": "4.60.4", + "@rollup/rollup-darwin-x64": "4.60.4", + "@rollup/rollup-freebsd-arm64": "4.60.4", + "@rollup/rollup-freebsd-x64": "4.60.4", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.4", + "@rollup/rollup-linux-arm-musleabihf": "4.60.4", + "@rollup/rollup-linux-arm64-gnu": "4.60.4", + "@rollup/rollup-linux-arm64-musl": "4.60.4", + "@rollup/rollup-linux-loong64-gnu": "4.60.4", + "@rollup/rollup-linux-loong64-musl": "4.60.4", + "@rollup/rollup-linux-ppc64-gnu": "4.60.4", + "@rollup/rollup-linux-ppc64-musl": "4.60.4", + "@rollup/rollup-linux-riscv64-gnu": "4.60.4", + "@rollup/rollup-linux-riscv64-musl": "4.60.4", + "@rollup/rollup-linux-s390x-gnu": "4.60.4", + "@rollup/rollup-linux-x64-gnu": "4.60.4", + "@rollup/rollup-linux-x64-musl": "4.60.4", + "@rollup/rollup-openbsd-x64": "4.60.4", + "@rollup/rollup-openharmony-arm64": "4.60.4", + "@rollup/rollup-win32-arm64-msvc": "4.60.4", + "@rollup/rollup-win32-ia32-msvc": "4.60.4", + "@rollup/rollup-win32-x64-gnu": "4.60.4", + "@rollup/rollup-win32-x64-msvc": "4.60.4", + "fsevents": "~2.3.2" + } + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/vite": { + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.2.tgz", + "integrity": "sha512-2N/55r4JDJ4gdrCvGgINMy+HH3iRpNIz8K6SFwVsA+JbQScLiC+clmAxBgwiSPgcG9U15QmvqCGWzMbqda5zGQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + } + } +} diff --git a/5-Applications/cluster-dashboard/frontend/package.json b/5-Applications/cluster-dashboard/frontend/package.json new file mode 100644 index 00000000..46fc7b83 --- /dev/null +++ b/5-Applications/cluster-dashboard/frontend/package.json @@ -0,0 +1,23 @@ +{ + "name": "research-stack-dashboard", + "private": true, + "version": "0.1.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview" + }, + "dependencies": { + "@1771technologies/lytenyte-core": "^2.1.2", + "react": "^19.1.0", + "react-dom": "^19.1.0" + }, + "devDependencies": { + "@types/react": "^19.2.15", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^4.7.0", + "typescript": "^5.9.3", + "vite": "^6.4.2" + } +} diff --git a/5-Applications/cluster-dashboard/frontend/src/App.tsx b/5-Applications/cluster-dashboard/frontend/src/App.tsx new file mode 100644 index 00000000..1e8bfc45 --- /dev/null +++ b/5-Applications/cluster-dashboard/frontend/src/App.tsx @@ -0,0 +1,410 @@ +import { useEffect, useRef, useState, useCallback } from "react"; +import { Grid, useClientDataSource } from "@1771technologies/lytenyte-core"; +import type { Grid as LnGrid } from "@1771technologies/lytenyte-core"; +import "@1771technologies/lytenyte-core/dark.css"; + +// ── Types ──────────────────────────────────────────────────────────────────── + +interface NodeMetrics { + name: string; + ip: string; + role: string; + status: string; + os_image: string; + kernel: string; + gpu_name: string; + gpu_util: number; + vram_used_mb: number; + vram_total_mb: number; + gpu_temp: number; + encoder: string; + cpu_cores: number; + cpu_util: number; + mem_used_mb: number; + mem_total_mb: number; + mem_util: number; + pods_running: number; + tailscale_ip: string; + tailscale_latency_ms: number; + tailscale_relay: string; + tailscale_direct: boolean; + vcn_codec: string; + vcn_resolution: string; + vcn_fps: number; + last_updated: string; + error: string; +} + +// ── Column definitions ─────────────────────────────────────────────────────── + +const columns: LnGrid.Column[] = [ + { + id: "status", + name: "●", + field: (p) => { + const row = p.row.data as NodeMetrics; + return row?.status === "Ready" ? "●" : "○"; + }, + width: 40, + type: "string", + cellRenderer: (params) => { + const row = params.row.data as NodeMetrics; + const color = row?.status === "Ready" ? "#22c55e" : "#ef4444"; + return ( + + ); + }, + }, + { + id: "name", + name: "Node", + field: "name", + width: 150, + type: "string", + pin: "start", + }, + { + id: "ip", + name: "IP", + field: "ip", + width: 130, + type: "string", + }, + { + id: "role", + name: "Role", + field: "role", + width: 100, + type: "string", + }, + { + id: "gpu_name", + name: "GPU", + field: "gpu_name", + width: 160, + type: "string", + }, + { + id: "gpu_util", + name: "GPU %", + field: "gpu_util", + width: 80, + type: "number", + cellRenderer: (params) => { + const val = (params.row.data as NodeMetrics)?.gpu_util ?? 0; + const color = val > 80 ? "#ef4444" : val > 50 ? "#f59e0b" : "#22c55e"; + return ( + + {val > 0 ? `${val.toFixed(0)}%` : "—"} + + ); + }, + }, + { + id: "vram", + name: "VRAM", + field: (p) => { + const row = p.row.data as NodeMetrics; + if (!row?.vram_total_mb) return "—"; + return `${(row.vram_used_mb / 1024).toFixed(1)}/${(row.vram_total_mb / 1024).toFixed(1)} GB`; + }, + width: 110, + type: "string", + cellRenderer: (params) => { + const row = params.row.data as NodeMetrics; + if (!row?.vram_total_mb) return ; + const pct = (row.vram_used_mb / row.vram_total_mb) * 100; + const color = pct > 80 ? "#ef4444" : pct > 50 ? "#f59e0b" : "#22c55e"; + return ( +
+
+
+
+ + {(row.vram_used_mb / 1024).toFixed(1)}/{(row.vram_total_mb / 1024).toFixed(1)} + +
+ ); + }, + }, + { + id: "gpu_temp", + name: "GPU °C", + field: "gpu_temp", + width: 75, + type: "number", + cellRenderer: (params) => { + const val = (params.row.data as NodeMetrics)?.gpu_temp ?? 0; + if (!val) return ; + const color = val > 80 ? "#ef4444" : val > 65 ? "#f59e0b" : "#22c55e"; + return {val.toFixed(0)}°; + }, + }, + { + id: "encoder", + name: "Codec", + field: "encoder", + width: 120, + type: "string", + }, + { + id: "cpu_util", + name: "CPU %", + field: "cpu_util", + width: 80, + type: "number", + cellRenderer: (params) => { + const row = params.row.data as NodeMetrics; + const val = row?.cpu_util ?? 0; + if (!val && !row?.cpu_cores) return ; + const color = val > 80 ? "#ef4444" : val > 50 ? "#f59e0b" : "#22c55e"; + return {val.toFixed(0)}%; + }, + }, + { + id: "mem", + name: "Memory", + field: (p) => { + const row = p.row.data as NodeMetrics; + if (!row?.mem_total_mb) return "—"; + return `${(row.mem_used_mb / 1024).toFixed(1)}/${(row.mem_total_mb / 1024).toFixed(1)} GB`; + }, + width: 120, + type: "string", + cellRenderer: (params) => { + const row = params.row.data as NodeMetrics; + if (!row?.mem_total_mb) return ; + const pct = row.mem_util; + const color = pct > 85 ? "#ef4444" : pct > 60 ? "#f59e0b" : "#22c55e"; + return ( +
+
+
+
+ + {(row.mem_used_mb / 1024).toFixed(1)}/{(row.mem_total_mb / 1024).toFixed(1)} + +
+ ); + }, + }, + { + id: "pods", + name: "Pods", + field: "pods_running", + width: 65, + type: "number", + }, + { + id: "tailscale", + name: "Tailscale", + field: (p) => { + const row = p.row.data as NodeMetrics; + if (!row?.tailscale_ip) return "—"; + return row.tailscale_direct ? "direct" : row.tailscale_relay || "relay"; + }, + width: 90, + type: "string", + cellRenderer: (params) => { + const row = params.row.data as NodeMetrics; + if (!row?.tailscale_ip) return ; + const direct = row.tailscale_direct; + return ( + + {direct ? "● direct" : `↗ ${row.tailscale_relay || "relay"}`} + + ); + }, + }, + { + id: "os", + name: "OS", + field: "os_image", + width: 180, + type: "string", + }, + { + id: "kernel", + name: "Kernel", + field: "kernel", + width: 140, + type: "string", + }, +]; + +// ── App ────────────────────────────────────────────────────────────────────── + +export default function App() { + const [nodes, setNodes] = useState([]); + const [connected, setConnected] = useState(false); + const [lastUpdate, setLastUpdate] = useState(""); + const wsRef = useRef(null); + const reconnectRef = useRef(null); + + const connect = useCallback(() => { + const proto = location.protocol === "https:" ? "wss:" : "ws:"; + const ws = new WebSocket(`${proto}//${location.host}/ws`); + + ws.onopen = () => { + setConnected(true); + console.log("[dashboard] WebSocket connected"); + }; + + ws.onmessage = (event) => { + try { + const msg = JSON.parse(event.data); + if (msg.type === "update" && msg.nodes) { + setNodes(msg.nodes); + setLastUpdate(new Date().toLocaleTimeString()); + } + } catch (e) { + console.error("[dashboard] parse error:", e); + } + }; + + ws.onclose = () => { + setConnected(false); + console.log("[dashboard] WebSocket closed, reconnecting in 3s..."); + reconnectRef.current = window.setTimeout(connect, 3000); + }; + + ws.onerror = () => { + ws.close(); + }; + + wsRef.current = ws; + }, []); + + useEffect(() => { + connect(); + return () => { + if (reconnectRef.current != null) clearTimeout(reconnectRef.current); + wsRef.current?.close(); + }; + }, [connect]); + + const ds = useClientDataSource({ + data: nodes, + }); + + return ( +
+ {/* Header */} +
+
+ + ⬡ Research Stack + + + CLUSTER DASHBOARD + +
+
+ {nodes.length} nodes + + + + {connected ? "LIVE" : "DISCONNECTED"} + + + {lastUpdate && ( + + {lastUpdate} + + )} +
+
+ + {/* Grid */} +
+ + + + {(cells) => ( + + {cells.map((cell) => { + if (cell.kind === "group") return null; + return ; + })} + + )} + + + + {(row) => { + if (row.kind === "full-width") return null; + return ( + + {row.cells.map((cell) => ( + + ))} + + ); + }} + + + + +
+
+ ); +} diff --git a/5-Applications/cluster-dashboard/frontend/src/main.tsx b/5-Applications/cluster-dashboard/frontend/src/main.tsx new file mode 100644 index 00000000..f46c379c --- /dev/null +++ b/5-Applications/cluster-dashboard/frontend/src/main.tsx @@ -0,0 +1,9 @@ +import React from "react"; +import ReactDOM from "react-dom/client"; +import App from "./App"; + +ReactDOM.createRoot(document.getElementById("root")!).render( + + + +); diff --git a/5-Applications/cluster-dashboard/frontend/tsconfig.json b/5-Applications/cluster-dashboard/frontend/tsconfig.json new file mode 100644 index 00000000..4912b375 --- /dev/null +++ b/5-Applications/cluster-dashboard/frontend/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noFallthroughCasesInSwitch": true, + "forceConsistentCasingInFileNames": true + }, + "include": ["src"] +} diff --git a/5-Applications/cluster-dashboard/frontend/vite.config.ts b/5-Applications/cluster-dashboard/frontend/vite.config.ts new file mode 100644 index 00000000..e0b2d81c --- /dev/null +++ b/5-Applications/cluster-dashboard/frontend/vite.config.ts @@ -0,0 +1,18 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; + +export default defineConfig({ + plugins: [react()], + server: { + proxy: { + "/api": "http://localhost:8787", + "/ws": { + target: "ws://localhost:8787", + ws: true, + }, + }, + }, + build: { + outDir: "dist", + }, +}); diff --git a/5-Applications/cluster-dashboard/k8s/dashboard.yaml b/5-Applications/cluster-dashboard/k8s/dashboard.yaml new file mode 100644 index 00000000..3562df00 --- /dev/null +++ b/5-Applications/cluster-dashboard/k8s/dashboard.yaml @@ -0,0 +1,107 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: monitoring +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cluster-dashboard + namespace: monitoring + labels: + app: cluster-dashboard +spec: + replicas: 1 + selector: + matchLabels: + app: cluster-dashboard + template: + metadata: + labels: + app: cluster-dashboard + spec: + # Share host network so Tailscale IPs are reachable for SSH + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet + # Pin to control plane — image is imported there + nodeSelector: + kubernetes.io/hostname: nixos + tolerations: + - key: node-role.kubernetes.io/control-plane + operator: Equal + value: "true" + effect: NoSchedule + containers: + - name: dashboard + image: localhost/cluster-dashboard:latest + imagePullPolicy: Never + ports: + - containerPort: 8787 + name: http + env: + - name: KUBECONFIG + value: /kubeconfig/config + volumeMounts: + - name: kubeconfig + mountPath: /kubeconfig + readOnly: true + - name: ssh-identity + mountPath: /identity + readOnly: true + resources: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "256Mi" + cpu: "500m" + readinessProbe: + httpGet: + path: /health + port: 8787 + initialDelaySeconds: 5 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /health + port: 8787 + initialDelaySeconds: 10 + periodSeconds: 30 + volumes: + - name: kubeconfig + secret: + secretName: dashboard-kubeconfig + - name: ssh-identity + secret: + secretName: dashboard-ssh-key + defaultMode: 0600 +--- +apiVersion: v1 +kind: Service +metadata: + name: cluster-dashboard + namespace: monitoring +spec: + selector: + app: cluster-dashboard + ports: + - port: 80 + targetPort: 8787 + name: http + type: ClusterIP +--- +# NodePort for direct access (no ingress needed) +apiVersion: v1 +kind: Service +metadata: + name: cluster-dashboard-nodeport + namespace: monitoring +spec: + selector: + app: cluster-dashboard + ports: + - port: 8787 + targetPort: 8787 + nodePort: 30820 + name: http + type: NodePort