Commit Graph

2 Commits

Author SHA1 Message Date
Claude
f35fd71348 fix(dashboard): next-env.d.ts missing in fresh checkout + CVE-2025-66478
## Root cause of build failure

`next-env.d.ts` is auto-generated by Next.js on first dev/build run and is
gitignored (per Next.js convention). On a fresh git checkout — e.g., when
the dashboard image is being built inside the ssh-main container after a
`git pull` — this file doesn't exist.

The Dockerfile had:
  COPY tsconfig.json next.config.ts next-env.d.ts postcss.config.mjs .eslintrc.json ./

Legacy Docker builder (no BuildKit) errors out:
  COPY failed: file not found in build context or excluded by .dockerignore:
  stat next-env.d.ts: file does not exist

## Fix

- Removed `next-env.d.ts` from the COPY line
- Added `RUN touch next-env.d.ts` before the build step (Next.js will
  overwrite it with correct content during `npm run build`)
- Removed `.eslintrc.json` from `.dockerignore` (it was being excluded
  but is needed by the COPY in Dockerfile)

## Security: CVE-2025-66478

`next@16.0.0` has a security vulnerability (CVE-2025-66478). Bumped:
  - next: 16.0.0 -> 16.4.3 (latest stable)
  - eslint-config-next: 16.0.0 -> 16.4.3

16.4.3 is the latest stable release and is fully backward-compatible with
the existing React 19 + TypeScript 5 + Tailwind 4 setup.

## Verified

- Clean build from scratch (rm -rf node_modules .next next-env.d.ts)
- `npm install` + `npm run build` succeed
- All 17 routes generated (1 page + 1 not-found + 15 API routes)
- Standalone output present (.next/standalone/server.js + .next/static)
2026-10-23 23:04:24 +00:00
Claude
c4a91972b3 feat: add llama dashboard for managing launch config via web UI
Adds a small Next.js dashboard as a new Docker service ()
that replaces the need to manually edit  and call  over SSH
every time you want to tweak llama launch parameters.

Features:
- Live status panel for all GPU-node containers (auto-refresh)
- Models list with file sizes, click-to-select active model
- Structured launch config form:
  * Model, ctx-size, parallel, batch-size, n-gpu-layers, threads
  * Context overflow (none / shift / evict)
  * Speculative decoding (spec-type, draft model, spec-draft-n-max)
  * Free-form extra args textarea for anything else
- Named presets (save / load / delete)
- Start / Restart / Stop / Remove llama actions
- Live streaming logs viewer (docker logs -f)
- GPU status (nvidia-smi via docker exec on llama)
- Auto-writes LLAMA_MODEL and LLAMA_EXTRA_ARGS back to .env so the
  existing workflow keeps working, and persists full structured config
  to gpu/dashboard/config.json for reload on next visit

Integration:
- New  service in compose.yaml (no profile, runs always)
- Mounts /var/run/docker.sock + HOST_PROJECT_PATH
- Tailscale serve exposes port 8090 -> dashboard:3000
- build.sh extended to build the dashboard image

Tech: Next.js 16 standalone, React 19, TypeScript 5, Tailwind 4,
shadcn-style components, Radix UI primitives.
2026-10-23 22:22:26 +00:00