Compare commits
4 Commits
feature/ll
...
fix/dashbo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f35fd71348 | ||
| 5448d81fe5 | |||
|
|
3dc57f5eaf | ||
| 1b2c5e8508 |
20
.env.example
20
.env.example
@@ -1,7 +1,25 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# GPU-Node environment
|
||||
# ---------------------------------------------------------------------------
|
||||
# Copy this file to `.env` and fill in the values before running
|
||||
# `docker compose up -d` or `START_GPU_NODE.bat`.
|
||||
#
|
||||
# IMPORTANT: HOST_PROJECT_PATH must be set here, otherwise:
|
||||
# - `ssh` container entrypoint will exit with "HOST_PROJECT_PATH is not set"
|
||||
# - After server reboot, Docker daemon will try to restart it forever
|
||||
# (restart: always), but it will keep failing
|
||||
# - Only `tailscale` (which doesn't need HOST_PROJECT_PATH) will come up
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
TAILSCALE_HOSTNAME=gpu-node
|
||||
TS_AUTHKEY=
|
||||
WEBDAV_USER=operator
|
||||
WEBDAV_PASS=
|
||||
|
||||
# Absolute path to the GPU-Node directory ON THE HOST.
|
||||
# On WSL: /home/<user>/projects/GPU-Node
|
||||
# On Windows+WSL: the WSL path (not the Windows path) of the project dir
|
||||
HOST_PROJECT_PATH=
|
||||
|
||||
LLAMA_MODEL=model.gguf
|
||||
LLAMA_EXTRA_ARGS=
|
||||
LLAMA_EXTRA_ARGS=
|
||||
|
||||
75
RESTART_WSL.bat
Normal file
75
RESTART_WSL.bat
Normal file
@@ -0,0 +1,75 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
echo ========================================
|
||||
echo RESTART WSL + GPU NODE
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
REM ----- Step 1: check if WSL is running -----
|
||||
echo [1/4] Checking WSL state...
|
||||
wsl --list --running | findstr /R /C:"Ubuntu" /C:"ubuntu" /C:"Default" >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo WSL is not running. Starting it...
|
||||
wsl --list --verbose >nul 2>&1
|
||||
REM Touch WSL to make sure the distro is awake
|
||||
wsl bash -c "echo started" >nul 2>&1
|
||||
) else (
|
||||
echo WSL is already running.
|
||||
)
|
||||
|
||||
REM ----- Step 2: shut down WSL -----
|
||||
echo.
|
||||
echo [2/4] Shutting down WSL...
|
||||
wsl --shutdown
|
||||
if errorlevel 1 (
|
||||
echo WARNING: wsl --shutdown returned an error.
|
||||
goto :error
|
||||
)
|
||||
|
||||
REM Wait for WSL to fully terminate
|
||||
timeout /t 3 /nobreak >nul
|
||||
|
||||
REM ----- Step 3: start WSL again -----
|
||||
echo.
|
||||
echo [3/4] Starting WSL...
|
||||
REM Get WSL path of this script's directory
|
||||
set "WIN_DIR=%~dp0"
|
||||
set "WIN_DIR_TRIMMED=%WIN_DIR:~0,-1%"
|
||||
for /f "delims=" %%i in ('wsl wslpath -u "%WIN_DIR_TRIMMED%"') do set "WSL_DIR=%%i"
|
||||
|
||||
REM Trigger WSL to start (any command will wake it up)
|
||||
wsl bash -c "echo WSL awake"
|
||||
if errorlevel 1 (
|
||||
echo ERROR: failed to start WSL.
|
||||
goto :error
|
||||
)
|
||||
|
||||
echo WSL path: %WSL_DIR%
|
||||
|
||||
REM ----- Step 4: ensure Docker is up and start GPU node containers -----
|
||||
echo.
|
||||
echo [4/4] Starting Docker services...
|
||||
wsl bash -c "cd '%WSL_DIR%' && docker compose up -d"
|
||||
if errorlevel 1 (
|
||||
echo ERROR: docker compose up failed.
|
||||
goto :error
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo WSL restarted + GPU node started
|
||||
echo ========================================
|
||||
echo.
|
||||
wsl bash -c "docker ps --filter 'name=gpu-node-'"
|
||||
echo.
|
||||
pause
|
||||
exit /b 0
|
||||
|
||||
:error
|
||||
echo.
|
||||
echo ========================================
|
||||
echo FAILED — see errors above
|
||||
echo ========================================
|
||||
pause
|
||||
exit /b 1
|
||||
@@ -1,3 +1,10 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# Validate HOST_PROJECT_PATH early — if it's empty, the `ssh` container will
|
||||
# exit with "HOST_PROJECT_PATH is not set" and after a server reboot only
|
||||
# tailscale will come back (because ssh keeps crash-looping on restart: always).
|
||||
# ---------------------------------------------------------------------------
|
||||
# ${HOST_PROJECT_PATH:?ERROR: HOST_PROJECT_PATH must be set in .env — see .env.example}
|
||||
|
||||
name: ${TAILSCALE_HOSTNAME:-gpu-node}
|
||||
|
||||
services:
|
||||
|
||||
31
dashboard/.dockerignore
Normal file
31
dashboard/.dockerignore
Normal file
@@ -0,0 +1,31 @@
|
||||
# VCS
|
||||
.git
|
||||
.gitignore
|
||||
|
||||
# Deps
|
||||
node_modules
|
||||
.pnp
|
||||
.pnp.*
|
||||
|
||||
# Build artifacts
|
||||
.next
|
||||
out
|
||||
build
|
||||
|
||||
# Misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.env
|
||||
.env*.local
|
||||
.idea
|
||||
.vscode
|
||||
|
||||
# Scripts / docs (README not needed in image)
|
||||
README.md
|
||||
*.md
|
||||
|
||||
# Don't accidentally bring the parent repo
|
||||
../.git
|
||||
@@ -1,4 +1,4 @@
|
||||
# syntax=docker/dockerfile:1.7
|
||||
# syntax=docker/dockerfile:1.4
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Stage 1: Install deps & build Next.js standalone output
|
||||
@@ -7,31 +7,25 @@ FROM node:20-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies (use yarn or npm — package-lock.json optional)
|
||||
COPY package.json ./
|
||||
COPY package-lock.json* ./
|
||||
COPY yarn.lock* ./
|
||||
# Copy only manifests first for better layer caching.
|
||||
# NOTE: legacy Docker builder (no BuildKit) fails on `COPY <wildcard>` when no
|
||||
# file matches the pattern, so we list files explicitly here.
|
||||
COPY package.json package-lock.json ./
|
||||
|
||||
RUN if [ -f yarn.lock ]; then \
|
||||
yarn install --frozen-lockfile; \
|
||||
elif [ -f package-lock.json ]; then \
|
||||
npm ci; \
|
||||
else \
|
||||
npm install; \
|
||||
fi
|
||||
RUN npm ci --no-audit --no-fund
|
||||
|
||||
# Copy sources and build
|
||||
COPY tsconfig.json next.config.ts next-env.d.ts postcss.config.mjs .eslintrc.json ./
|
||||
# Copy sources and build.
|
||||
# NOTE: `next-env.d.ts` is auto-generated by Next.js and is gitignored, so it
|
||||
# may not exist in a fresh checkout. We create it as an empty file here so the
|
||||
# COPY doesn't fail; `next build` will overwrite it with the correct content.
|
||||
RUN touch next-env.d.ts
|
||||
COPY tsconfig.json next.config.ts postcss.config.mjs .eslintrc.json ./
|
||||
COPY src ./src
|
||||
COPY public ./public
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN if [ -f yarn.lock ]; then \
|
||||
yarn build; \
|
||||
else \
|
||||
npm run build; \
|
||||
fi
|
||||
RUN npm run build
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Stage 2: Runtime — Alpine + Node + docker-cli + docker compose plugin
|
||||
@@ -50,7 +44,7 @@ RUN apk add --no-cache \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy standalone Next.js build output
|
||||
# Copy standalone Next.js build output (with node_modules baked in)
|
||||
COPY --from=builder --chown=dash:dash /app/.next/standalone ./
|
||||
COPY --from=builder --chown=dash:dash /app/.next/static ./.next/static
|
||||
COPY --from=builder --chown=dash:dash /app/public ./public
|
||||
|
||||
484
dashboard/package-lock.json
generated
484
dashboard/package-lock.json
generated
@@ -17,7 +17,7 @@
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.1.1",
|
||||
"lucide-react": "^0.456.0",
|
||||
"next": "16.0.0",
|
||||
"next": "16.4.3",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
"tailwind-merge": "^2.5.4"
|
||||
@@ -28,7 +28,7 @@
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"eslint": "^9.14.0",
|
||||
"eslint-config-next": "16.0.0",
|
||||
"eslint-config-next": "16.4.3",
|
||||
"postcss": "^8.4.49",
|
||||
"tailwindcss": "^4.0.0-beta.3",
|
||||
"typescript": "^5.6.3"
|
||||
@@ -180,9 +180,9 @@
|
||||
}
|
||||
},
|
||||
"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==",
|
||||
"version": "7.29.11",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz",
|
||||
"integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
@@ -224,13 +224,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/parser": {
|
||||
"version": "7.29.9",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",
|
||||
"integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
|
||||
"version": "7.29.11",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.11.tgz",
|
||||
"integrity": "sha512-OZ6+oaK7GMyg3IfCpj8JOmn8n+w2rJbDT0LLfVDTLb1ZFeKDh3AiNELgCMUw175IJHSkLl74hG0M0VLsvx+gag==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/types": "^7.29.8"
|
||||
"@babel/types": "^7.29.11"
|
||||
},
|
||||
"bin": {
|
||||
"parser": "bin/babel-parser.js"
|
||||
@@ -274,13 +274,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/types": {
|
||||
"version": "7.29.8",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
|
||||
"integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
|
||||
"version": "7.29.11",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",
|
||||
"integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/helper-string-parser": "^7.29.7",
|
||||
"@babel/helper-string-parser": "^7.29.11",
|
||||
"@babel/helper-validator-identifier": "^7.29.7"
|
||||
},
|
||||
"engines": {
|
||||
@@ -579,9 +579,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-darwin-arm64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
|
||||
"integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
|
||||
"integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -591,19 +591,19 @@
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-darwin-arm64": "1.2.4"
|
||||
"@img/sharp-libvips-darwin-arm64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-darwin-x64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
|
||||
"integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
|
||||
"integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -613,19 +613,38 @@
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-darwin-x64": "1.2.4"
|
||||
"@img/sharp-libvips-darwin-x64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-freebsd-wasm32": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
|
||||
"integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
],
|
||||
"dependencies": {
|
||||
"@img/sharp-wasm32": "0.35.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-darwin-arm64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
|
||||
"integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
|
||||
"integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -639,9 +658,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-darwin-x64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
|
||||
"integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
|
||||
"integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -655,9 +674,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-arm": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
|
||||
"integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
|
||||
"integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
@@ -674,9 +693,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-arm64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
|
||||
"integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
|
||||
"integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -693,9 +712,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-ppc64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
|
||||
"integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
|
||||
"integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
@@ -712,9 +731,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-riscv64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
|
||||
"integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
|
||||
"integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
@@ -731,9 +750,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-s390x": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
|
||||
"integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
|
||||
"integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
@@ -750,9 +769,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-x64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
|
||||
"integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
|
||||
"integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -769,9 +788,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linuxmusl-arm64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
|
||||
"integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
|
||||
"integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -788,9 +807,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linuxmusl-x64": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
|
||||
"integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
|
||||
"integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -807,9 +826,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-arm": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
|
||||
"integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
|
||||
"integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
@@ -822,19 +841,19 @@
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-arm": "1.2.4"
|
||||
"@img/sharp-libvips-linux-arm": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-arm64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
|
||||
"integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
|
||||
"integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -847,19 +866,19 @@
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-arm64": "1.2.4"
|
||||
"@img/sharp-libvips-linux-arm64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-ppc64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
|
||||
"integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
|
||||
"integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
@@ -872,19 +891,19 @@
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-ppc64": "1.2.4"
|
||||
"@img/sharp-libvips-linux-ppc64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-riscv64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
|
||||
"integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
|
||||
"integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
@@ -897,19 +916,19 @@
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-riscv64": "1.2.4"
|
||||
"@img/sharp-libvips-linux-riscv64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-s390x": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
|
||||
"integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
|
||||
"integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
@@ -922,19 +941,19 @@
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-s390x": "1.2.4"
|
||||
"@img/sharp-libvips-linux-s390x": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-x64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",
|
||||
"integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
|
||||
"integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -947,19 +966,19 @@
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-x64": "1.2.4"
|
||||
"@img/sharp-libvips-linux-x64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linuxmusl-arm64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",
|
||||
"integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
|
||||
"integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -972,19 +991,19 @@
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.2.4"
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linuxmusl-x64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",
|
||||
"integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
|
||||
"integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -997,38 +1016,54 @@
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.2.4"
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-wasm32": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",
|
||||
"integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",
|
||||
"cpu": [
|
||||
"wasm32"
|
||||
],
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
|
||||
"integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@emnapi/runtime": "^1.7.0"
|
||||
"@emnapi/runtime": "^1.11.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-webcontainers-wasm32": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
|
||||
"integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
|
||||
"cpu": [
|
||||
"wasm32"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@img/sharp-wasm32": "0.35.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-arm64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",
|
||||
"integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
|
||||
"integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -1038,16 +1073,16 @@
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-ia32": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",
|
||||
"integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
|
||||
"integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
@@ -1057,16 +1092,16 @@
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": "^20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-x64": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
|
||||
"integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
|
||||
"integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -1076,7 +1111,7 @@
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
@@ -1155,25 +1190,58 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/env": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-16.0.0.tgz",
|
||||
"integrity": "sha512-s5j2iFGp38QsG1LWRQaE2iUY3h1jc014/melHFfLdrsMJPqxqDQwWNwyQTcNoUSGZlCVZuM7t7JDMmSyRilsnA==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-16.4.3.tgz",
|
||||
"integrity": "sha512-a7tz1QCcWWkwC/rPJcPMJk/UNRu9CFhDd3OHYE5hddbJrs8BqRTalxI6GlKCWEGzRLHN+S/B7a4PAHCtm25aBQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@next/eslint-plugin-next": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.0.0.tgz",
|
||||
"integrity": "sha512-IB7RzmmtrPOrpAgEBR1PIQPD0yea5lggh5cq54m51jHjjljU80Ia+czfxJYMlSDl1DPvpzb8S9TalCc0VMo9Hw==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.4.3.tgz",
|
||||
"integrity": "sha512-oxuC06wt/71h6ACYCV9GbKOfnf5a7VlRe/p80YHTut15TNgDEmynDnaq8t/xhy5rlvk7dhItIPs6H3rvIM4kyw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "4.9.1",
|
||||
"fast-glob": "3.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@next/eslint-plugin-next/node_modules/@eslint-community/eslint-utils": {
|
||||
"version": "4.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
|
||||
"integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"eslint-visitor-keys": "^3.4.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/eslint"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@next/eslint-plugin-next/node_modules/eslint-visitor-keys": {
|
||||
"version": "3.4.3",
|
||||
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
|
||||
"integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/eslint"
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-darwin-arm64": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.0.0.tgz",
|
||||
"integrity": "sha512-/CntqDCnk5w2qIwMiF0a9r6+9qunZzFmU0cBX4T82LOflE72zzH6gnOjCwUXYKOBlQi8OpP/rMj8cBIr18x4TA==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.4.3.tgz",
|
||||
"integrity": "sha512-4yq5EXBt+VDtAZwTyfijaFp5D2C5oz3Ikw5a2kiX2K9nw72vrZX2q5UuAlkPtUMO1tQz6JTKpaKWjS7OOefTDQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -1187,9 +1255,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-darwin-x64": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.0.0.tgz",
|
||||
"integrity": "sha512-hB4GZnJGKa8m4efvTGNyii6qs76vTNl+3dKHTCAUaksN6KjYy4iEO3Q5ira405NW2PKb3EcqWiRaL9DrYJfMHg==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.4.3.tgz",
|
||||
"integrity": "sha512-1Rvkn/LUhnEF8WxnRkOrqGhbwXui1bkWFxONKIbN+r7C+9KHDSZ+iUoj4CzymVMWUyZIyx9szcb9+kbKhD500A==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -1203,9 +1271,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-arm64-gnu": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.0.0.tgz",
|
||||
"integrity": "sha512-E2IHMdE+C1k+nUgndM13/BY/iJY9KGCphCftMh7SXWcaQqExq/pJU/1Hgn8n/tFwSoLoYC/yUghOv97tAsIxqg==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.4.3.tgz",
|
||||
"integrity": "sha512-dCKpXErGg3abUM6t5JTJV/ottVBTStJB5lRJTbgdUdQaQ+jNHiK56Hsc0YAEg/rinSh42hYG3HWiYmEMdilnxg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -1222,9 +1290,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-arm64-musl": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.0.0.tgz",
|
||||
"integrity": "sha512-xzgl7c7BVk4+7PDWldU+On2nlwnGgFqJ1siWp3/8S0KBBLCjonB6zwJYPtl4MUY7YZJrzzumdUpUoquu5zk8vg==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.4.3.tgz",
|
||||
"integrity": "sha512-WwYbhWkhYBvBtib1K4W0kL8MW2snBD2A5b3SN4vPpqalZbZs5+bQ1yzAdepVoOqrFfEW3dmREy4Zs1MrWcrFbw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -1241,9 +1309,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-x64-gnu": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.0.0.tgz",
|
||||
"integrity": "sha512-sdyOg4cbiCw7YUr0F/7ya42oiVBXLD21EYkSwN+PhE4csJH4MSXUsYyslliiiBwkM+KsuQH/y9wuxVz6s7Nstg==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.4.3.tgz",
|
||||
"integrity": "sha512-QymWvfUwDEC5/lpJOsxX5VAbyoR2D13+2Jsjz4be7gT4LPqEgdpkeLIR/HFfCLgKzoMhpJbp6I/JnogyNZHcaA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -1260,9 +1328,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-linux-x64-musl": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.0.0.tgz",
|
||||
"integrity": "sha512-IAXv3OBYqVaNOgyd3kxR4L3msuhmSy1bcchPHxDOjypG33i2yDWvGBwFD94OuuTjjTt/7cuIKtAmoOOml6kfbg==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.4.3.tgz",
|
||||
"integrity": "sha512-Vmjd9D7DpA4Vv3cUlr82QWgJD/BQZmns801vtC5VWHg6jCIA4a5vMKpQnfrM2pyCrp2eV0ENdUg4PlN3bAc2Yw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -1279,9 +1347,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-win32-arm64-msvc": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.0.0.tgz",
|
||||
"integrity": "sha512-bmo3ncIJKUS9PWK1JD9pEVv0yuvp1KPuOsyJTHXTv8KDrEmgV/K+U0C75rl9rhIaODcS7JEb6/7eJhdwXI0XmA==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.4.3.tgz",
|
||||
"integrity": "sha512-lG1pPdPLk7gTyGb00n5JIMLdBJgjb+UEhSdZvFbhUMg0DyC6z4B7RnpSKF9VCd4imkLObVbXOFA0kFCpw7yFow==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -1295,9 +1363,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@next/swc-win32-x64-msvc": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.0.0.tgz",
|
||||
"integrity": "sha512-O1cJbT+lZp+cTjYyZGiDwsOjO3UHHzSqobkPNipdlnnuPb1swfcuY6r3p8dsKU4hAIEO4cO67ZCfVVH/M1ETXA==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.4.3.tgz",
|
||||
"integrity": "sha512-NmQC9RkJdnPXRaMxtkCzobB3teVjqF33oSOnwDfi+XYGWWYpt+xlGK3mtktSKLbdjwaWbJu2OkkMiRFGUUncKg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -2020,9 +2088,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@swc/helpers": {
|
||||
"version": "0.5.15",
|
||||
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz",
|
||||
"integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==",
|
||||
"version": "0.5.23",
|
||||
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",
|
||||
"integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"tslib": "^2.8.0"
|
||||
@@ -3331,7 +3399,6 @@
|
||||
"version": "2.11.32",
|
||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.32.tgz",
|
||||
"integrity": "sha512-UvuxFU9P3hM29LrQdwu0cD6w6/+SFr+UlB9s/knI7+O2rK9xFxKUwSDWxGdbbqQ9/V7BJ5s0NI5nQAE4uJp3gQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"baseline-browser-mapping": "dist/cli.cjs"
|
||||
@@ -4056,21 +4123,21 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-config-next": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.0.0.tgz",
|
||||
"integrity": "sha512-DWKT1YAO9ex2rK0/EeiPpKU++ghTiG59z6m08/ReLRECOYIaEv17maSCYT8zmFQLwIrY5lhJ+iaJPQdT4sJd4g==",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.4.3.tgz",
|
||||
"integrity": "sha512-j9IqBma6abp800frdUURaizYMgXOK+jNGyq6CsYcM9AxpSJs5D/TgMNGeAmRUilZvA7g9V1Tr71gNg9/SVTuMQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@next/eslint-plugin-next": "16.0.0",
|
||||
"@next/eslint-plugin-next": "16.4.3",
|
||||
"eslint-import-resolver-node": "^0.3.6",
|
||||
"eslint-import-resolver-typescript": "^3.5.2",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.0",
|
||||
"eslint-plugin-react": "^7.37.0",
|
||||
"eslint-plugin-react-hooks": "^7.0.0",
|
||||
"eslint-plugin-react-hooks": "^7.1.0",
|
||||
"globals": "16.4.0",
|
||||
"typescript-eslint": "^8.46.0"
|
||||
"typescript-eslint": "^8.56.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": ">=9.0.0",
|
||||
@@ -5966,16 +6033,16 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/next": {
|
||||
"version": "16.0.0",
|
||||
"resolved": "https://registry.npmjs.org/next/-/next-16.0.0.tgz",
|
||||
"integrity": "sha512-nYohiNdxGu4OmBzggxy9rczmjIGI+TpR5vbKTsE1HqYwNm1B+YSiugSrFguX6omMOKnDHAmBPY4+8TNJk0Idyg==",
|
||||
"deprecated": "This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/CVE-2025-66478 for more details.",
|
||||
"version": "16.4.3",
|
||||
"resolved": "https://registry.npmjs.org/next/-/next-16.4.3.tgz",
|
||||
"integrity": "sha512-OqxKTGi9u80FydydsMNYNjnuje9Au+kvHlt2GZ//ftdpDHm1dxKqAaENoOOTX5wKzn+9vaKUNIfZeyZUuLhCnA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@next/env": "16.0.0",
|
||||
"@swc/helpers": "0.5.15",
|
||||
"@next/env": "16.4.3",
|
||||
"@swc/helpers": "0.5.23",
|
||||
"baseline-browser-mapping": "^2.9.19",
|
||||
"caniuse-lite": "^1.0.30001579",
|
||||
"postcss": "8.4.31",
|
||||
"postcss": "8.5.23",
|
||||
"styled-jsx": "5.1.6"
|
||||
},
|
||||
"bin": {
|
||||
@@ -5985,15 +6052,15 @@
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@next/swc-darwin-arm64": "16.0.0",
|
||||
"@next/swc-darwin-x64": "16.0.0",
|
||||
"@next/swc-linux-arm64-gnu": "16.0.0",
|
||||
"@next/swc-linux-arm64-musl": "16.0.0",
|
||||
"@next/swc-linux-x64-gnu": "16.0.0",
|
||||
"@next/swc-linux-x64-musl": "16.0.0",
|
||||
"@next/swc-win32-arm64-msvc": "16.0.0",
|
||||
"@next/swc-win32-x64-msvc": "16.0.0",
|
||||
"sharp": "^0.34.4"
|
||||
"@next/swc-darwin-arm64": "16.4.3",
|
||||
"@next/swc-darwin-x64": "16.4.3",
|
||||
"@next/swc-linux-arm64-gnu": "16.4.3",
|
||||
"@next/swc-linux-arm64-musl": "16.4.3",
|
||||
"@next/swc-linux-x64-gnu": "16.4.3",
|
||||
"@next/swc-linux-x64-musl": "16.4.3",
|
||||
"@next/swc-win32-arm64-msvc": "16.4.3",
|
||||
"@next/swc-win32-x64-msvc": "16.4.3",
|
||||
"sharp": "^0.35.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@opentelemetry/api": "^1.1.0",
|
||||
@@ -6019,9 +6086,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/next/node_modules/postcss": {
|
||||
"version": "8.4.31",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
|
||||
"integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",
|
||||
"version": "8.5.23",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz",
|
||||
"integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "opencollective",
|
||||
@@ -6038,9 +6105,9 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"nanoid": "^3.3.6",
|
||||
"picocolors": "^1.0.0",
|
||||
"source-map-js": "^1.0.2"
|
||||
"nanoid": "^3.3.16",
|
||||
"picocolors": "^1.1.1",
|
||||
"source-map-js": "^1.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10 || ^12 || >=14"
|
||||
@@ -6759,48 +6826,53 @@
|
||||
}
|
||||
},
|
||||
"node_modules/sharp": {
|
||||
"version": "0.34.5",
|
||||
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
|
||||
"integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",
|
||||
"hasInstallScript": true,
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
|
||||
"integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@img/colour": "^1.0.0",
|
||||
"@img/colour": "^1.1.0",
|
||||
"detect-libc": "^2.1.2",
|
||||
"semver": "^7.7.3"
|
||||
"semver": "^7.8.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-darwin-arm64": "0.34.5",
|
||||
"@img/sharp-darwin-x64": "0.34.5",
|
||||
"@img/sharp-libvips-darwin-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-darwin-x64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-arm": "1.2.4",
|
||||
"@img/sharp-libvips-linux-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-ppc64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-riscv64": "1.2.4",
|
||||
"@img/sharp-libvips-linux-s390x": "1.2.4",
|
||||
"@img/sharp-libvips-linux-x64": "1.2.4",
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.2.4",
|
||||
"@img/sharp-linux-arm": "0.34.5",
|
||||
"@img/sharp-linux-arm64": "0.34.5",
|
||||
"@img/sharp-linux-ppc64": "0.34.5",
|
||||
"@img/sharp-linux-riscv64": "0.34.5",
|
||||
"@img/sharp-linux-s390x": "0.34.5",
|
||||
"@img/sharp-linux-x64": "0.34.5",
|
||||
"@img/sharp-linuxmusl-arm64": "0.34.5",
|
||||
"@img/sharp-linuxmusl-x64": "0.34.5",
|
||||
"@img/sharp-wasm32": "0.34.5",
|
||||
"@img/sharp-win32-arm64": "0.34.5",
|
||||
"@img/sharp-win32-ia32": "0.34.5",
|
||||
"@img/sharp-win32-x64": "0.34.5"
|
||||
"@img/sharp-darwin-arm64": "0.35.5",
|
||||
"@img/sharp-darwin-x64": "0.35.5",
|
||||
"@img/sharp-freebsd-wasm32": "0.35.5",
|
||||
"@img/sharp-libvips-darwin-arm64": "1.3.4",
|
||||
"@img/sharp-libvips-darwin-x64": "1.3.4",
|
||||
"@img/sharp-libvips-linux-arm": "1.3.4",
|
||||
"@img/sharp-libvips-linux-arm64": "1.3.4",
|
||||
"@img/sharp-libvips-linux-ppc64": "1.3.4",
|
||||
"@img/sharp-libvips-linux-riscv64": "1.3.4",
|
||||
"@img/sharp-libvips-linux-s390x": "1.3.4",
|
||||
"@img/sharp-libvips-linux-x64": "1.3.4",
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.3.4",
|
||||
"@img/sharp-linux-arm": "0.35.5",
|
||||
"@img/sharp-linux-arm64": "0.35.5",
|
||||
"@img/sharp-linux-ppc64": "0.35.5",
|
||||
"@img/sharp-linux-riscv64": "0.35.5",
|
||||
"@img/sharp-linux-s390x": "0.35.5",
|
||||
"@img/sharp-linux-x64": "0.35.5",
|
||||
"@img/sharp-linuxmusl-arm64": "0.35.5",
|
||||
"@img/sharp-linuxmusl-x64": "0.35.5",
|
||||
"@img/sharp-webcontainers-wasm32": "0.35.5",
|
||||
"@img/sharp-win32-arm64": "0.35.5",
|
||||
"@img/sharp-win32-ia32": "0.35.5",
|
||||
"@img/sharp-win32-x64": "0.35.5"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/node": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/sharp/node_modules/semver": {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "16.0.0",
|
||||
"next": "16.4.3",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
"lucide-react": "^0.456.0",
|
||||
@@ -32,6 +32,6 @@
|
||||
"@tailwindcss/postcss": "^4.0.0-beta.3",
|
||||
"postcss": "^8.4.49",
|
||||
"eslint": "^9.14.0",
|
||||
"eslint-config-next": "16.0.0"
|
||||
"eslint-config-next": "16.4.3"
|
||||
}
|
||||
}
|
||||
|
||||
25
dashboard/src/app/api/comfy/models/add/route.ts
Normal file
25
dashboard/src/app/api/comfy/models/add/route.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { addComfyModel } from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
|
||||
/**
|
||||
* POST /api/comfy/models/add
|
||||
* Body: { url: string, type: string }
|
||||
* Queues a model download via model-worker.
|
||||
*/
|
||||
export async function POST(req: NextRequest) {
|
||||
const body = (await req.json()) as { url?: string; type?: string };
|
||||
if (!body.url || !body.type) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: "url and type required" },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
const result = await addComfyModel(body.url, body.type);
|
||||
return NextResponse.json(
|
||||
{ ok: result.ok, output: result.output, error: result.error },
|
||||
{ status: result.ok ? 200 : 500 }
|
||||
);
|
||||
}
|
||||
25
dashboard/src/app/api/comfy/models/rm/route.ts
Normal file
25
dashboard/src/app/api/comfy/models/rm/route.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { removeComfyModel } from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
|
||||
/**
|
||||
* POST /api/comfy/models/rm
|
||||
* Body: { filename: string, type?: string }
|
||||
* Removes a comfy model from disk via model-worker.
|
||||
*/
|
||||
export async function POST(req: NextRequest) {
|
||||
const body = (await req.json()) as { filename?: string; type?: string };
|
||||
if (!body.filename) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: "filename required" },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
const result = await removeComfyModel(body.filename, body.type);
|
||||
return NextResponse.json(
|
||||
{ ok: result.ok, output: result.output, error: result.error },
|
||||
{ status: result.ok ? 200 : 500 }
|
||||
);
|
||||
}
|
||||
18
dashboard/src/app/api/comfy/models/route.ts
Normal file
18
dashboard/src/app/api/comfy/models/route.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { listComfyModels } from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
|
||||
/**
|
||||
* GET /api/comfy/models?type=<optional>
|
||||
* Lists comfy models via `docker exec model-worker python3 /app/worker.py list [type]`.
|
||||
*/
|
||||
export async function GET(req: NextRequest) {
|
||||
const type = req.nextUrl.searchParams.get("type") || undefined;
|
||||
const result = await listComfyModels(type);
|
||||
return NextResponse.json(
|
||||
{ ok: result.ok, models: result.models, raw: result.raw, error: result.error },
|
||||
{ status: result.ok ? 200 : 500 }
|
||||
);
|
||||
}
|
||||
17
dashboard/src/app/api/comfy/queue/route.ts
Normal file
17
dashboard/src/app/api/comfy/queue/route.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { getComfyQueue } from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
|
||||
/**
|
||||
* GET /api/comfy/queue
|
||||
* Returns current download queue via `docker exec model-worker python3 /app/worker.py queue`.
|
||||
*/
|
||||
export async function GET() {
|
||||
const result = await getComfyQueue();
|
||||
return NextResponse.json(
|
||||
{ ok: result.ok, queue: result.queue, raw: result.raw, error: result.error },
|
||||
{ status: result.ok ? 200 : 500 }
|
||||
);
|
||||
}
|
||||
62
dashboard/src/app/api/comfy/route.ts
Normal file
62
dashboard/src/app/api/comfy/route.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import {
|
||||
startService,
|
||||
stopService,
|
||||
restartService,
|
||||
getServiceLogs,
|
||||
type ServiceRole,
|
||||
} from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
export const maxDuration = 120;
|
||||
|
||||
/**
|
||||
* POST /api/comfy
|
||||
* Body: { action: "start" | "stop" | "restart" }
|
||||
*
|
||||
* Start / stop / restart ComfyUI. Optional `extraArgs` for start (passed
|
||||
* through COMFY_EXTRA_ARGS env var).
|
||||
*/
|
||||
export async function POST(req: NextRequest) {
|
||||
const body = (await req.json()) as {
|
||||
action: "start" | "stop" | "restart";
|
||||
extraArgs?: string;
|
||||
};
|
||||
|
||||
const role: ServiceRole = "comfyui";
|
||||
|
||||
if (body.action === "start") {
|
||||
if (body.extraArgs) {
|
||||
process.env.COMFY_EXTRA_ARGS = body.extraArgs;
|
||||
}
|
||||
const result = await startService(role);
|
||||
return NextResponse.json(result, { status: result.ok ? 200 : 500 });
|
||||
}
|
||||
|
||||
if (body.action === "stop") {
|
||||
const result = await stopService(role);
|
||||
return NextResponse.json(result, { status: result.ok ? 200 : 500 });
|
||||
}
|
||||
|
||||
if (body.action === "restart") {
|
||||
const result = await restartService(role);
|
||||
return NextResponse.json(result, { status: result.ok ? 200 : 500 });
|
||||
}
|
||||
|
||||
return NextResponse.json({ error: "unknown action" }, { status: 400 });
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/comfy?logs=1&tail=500
|
||||
* Returns comfyui logs.
|
||||
*/
|
||||
export async function GET(req: NextRequest) {
|
||||
const withLogs = req.nextUrl.searchParams.get("logs");
|
||||
if (withLogs) {
|
||||
const tail = Number(req.nextUrl.searchParams.get("tail") || 500);
|
||||
const logs = await getServiceLogs("comfyui", tail);
|
||||
return NextResponse.json({ ok: true, logs });
|
||||
}
|
||||
return NextResponse.json({ ok: true });
|
||||
}
|
||||
@@ -1,10 +1,29 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { listModels } from "@/lib/docker";
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { deleteModel, listModels } from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
|
||||
export async function GET() {
|
||||
/**
|
||||
* DELETE /api/models?name=foo.gguf
|
||||
*
|
||||
* Removes a .gguf file from gpu/llama_models/.
|
||||
*/
|
||||
export async function DELETE(req: NextRequest) {
|
||||
const name = req.nextUrl.searchParams.get("name");
|
||||
if (!name) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: "name query param required" },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
const result = await deleteModel(name);
|
||||
if (!result.ok) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: result.error },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
const models = await listModels();
|
||||
return NextResponse.json({ models });
|
||||
return NextResponse.json({ ok: true, models });
|
||||
}
|
||||
|
||||
58
dashboard/src/app/api/models/upload/route.ts
Normal file
58
dashboard/src/app/api/models/upload/route.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { saveUploadedModel, listModels } from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
export const maxDuration = 600;
|
||||
|
||||
/**
|
||||
* POST /api/models/upload
|
||||
*
|
||||
* Accepts a multipart/form-data upload with a single "file" field.
|
||||
* Saves to gpu/llama_models/<filename>. Returns updated model list.
|
||||
*
|
||||
* Body:
|
||||
* multipart/form-data
|
||||
* - file: <.gguf file>
|
||||
*/
|
||||
export async function POST(req: NextRequest) {
|
||||
const contentType = req.headers.get("content-type") || "";
|
||||
if (!contentType.includes("multipart/form-data")) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: "expected multipart/form-data" },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
const form = await req.formData();
|
||||
const file = form.get("file");
|
||||
if (!file || !(file instanceof File)) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: "missing 'file' field" },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
|
||||
const buffer = Buffer.from(await file.arrayBuffer());
|
||||
const result = await saveUploadedModel(file.name, buffer);
|
||||
if (!result.ok) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: result.error },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
|
||||
const models = await listModels();
|
||||
return NextResponse.json({
|
||||
ok: true,
|
||||
path: result.path,
|
||||
models,
|
||||
});
|
||||
} catch (err) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: (err as Error).message },
|
||||
{ status: 500 }
|
||||
);
|
||||
}
|
||||
}
|
||||
91
dashboard/src/app/api/services/[role]/route.ts
Normal file
91
dashboard/src/app/api/services/[role]/route.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import {
|
||||
startService,
|
||||
stopService,
|
||||
restartService,
|
||||
removeService,
|
||||
getServiceLogs,
|
||||
type ServiceRole,
|
||||
} from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
export const maxDuration = 120;
|
||||
|
||||
const VALID_ROLES: ServiceRole[] = [
|
||||
"llama",
|
||||
"comfyui",
|
||||
"model-worker",
|
||||
"webdav",
|
||||
"ssh",
|
||||
"ssh-companion",
|
||||
"gpu-test",
|
||||
"dashboard",
|
||||
];
|
||||
|
||||
function parseRole(role: string): ServiceRole | null {
|
||||
return (VALID_ROLES as string[]).includes(role)
|
||||
? (role as ServiceRole)
|
||||
: null;
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /api/services/<role>?action=logs&tail=500
|
||||
* Returns logs for the given service.
|
||||
*
|
||||
* POST /api/services/<role>
|
||||
* Body: { action: "start" | "stop" | "restart" | "remove" }
|
||||
*/
|
||||
export async function GET(
|
||||
req: NextRequest,
|
||||
{ params }: { params: Promise<{ role: string }> }
|
||||
) {
|
||||
const { role: roleRaw } = await params;
|
||||
const role = parseRole(roleRaw);
|
||||
if (!role) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: `invalid role: ${roleRaw}` },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
const tail = Number(req.nextUrl.searchParams.get("tail") || 500);
|
||||
const logs = await getServiceLogs(role, tail);
|
||||
return NextResponse.json({ ok: true, logs });
|
||||
}
|
||||
|
||||
export async function POST(
|
||||
req: NextRequest,
|
||||
{ params }: { params: Promise<{ role: string }> }
|
||||
) {
|
||||
const { role: roleRaw } = await params;
|
||||
const role = parseRole(roleRaw);
|
||||
if (!role) {
|
||||
return NextResponse.json(
|
||||
{ ok: false, error: `invalid role: ${roleRaw}` },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
|
||||
const body = (await req.json()) as {
|
||||
action: "start" | "stop" | "restart" | "remove";
|
||||
};
|
||||
|
||||
if (body.action === "start") {
|
||||
const r = await startService(role);
|
||||
return NextResponse.json(r, { status: r.ok ? 200 : 500 });
|
||||
}
|
||||
if (body.action === "stop") {
|
||||
const r = await stopService(role);
|
||||
return NextResponse.json(r, { status: r.ok ? 200 : 500 });
|
||||
}
|
||||
if (body.action === "restart") {
|
||||
const r = await restartService(role);
|
||||
return NextResponse.json(r, { status: r.ok ? 200 : 500 });
|
||||
}
|
||||
if (body.action === "remove") {
|
||||
const r = await removeService(role);
|
||||
return NextResponse.json(r, { status: r.ok ? 200 : 500 });
|
||||
}
|
||||
|
||||
return NextResponse.json({ error: "unknown action" }, { status: 400 });
|
||||
}
|
||||
94
dashboard/src/app/api/status/stream/route.ts
Normal file
94
dashboard/src/app/api/status/stream/route.ts
Normal file
@@ -0,0 +1,94 @@
|
||||
import { listContainers, getLlamaHealth, NODE_INSTANCE } from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
export const maxDuration = 300;
|
||||
|
||||
/**
|
||||
* Server-Sent Events stream for status updates.
|
||||
*
|
||||
* Replaces fetch-polling — client opens a single EventSource connection
|
||||
* and receives a `status` event every N seconds with the full status
|
||||
* payload. SSE was chosen over WebSocket because:
|
||||
* - one-way (server → client) is all we need for status pushes
|
||||
* - works through any HTTP proxy (Tailscale serve) without WS upgrade
|
||||
* - built into the browser (EventSource API), no extra deps
|
||||
* - keeps Next.js standalone output (smaller docker image)
|
||||
*
|
||||
* Client usage:
|
||||
* const es = new EventSource("/api/status/stream");
|
||||
* es.addEventListener("status", (e) => {
|
||||
* const data = JSON.parse(e.data);
|
||||
* ...
|
||||
* });
|
||||
*/
|
||||
export async function GET() {
|
||||
const encoder = new TextEncoder();
|
||||
|
||||
const stream = new ReadableStream<Uint8Array>({
|
||||
async start(controller) {
|
||||
const send = (event: string, data: unknown) => {
|
||||
try {
|
||||
controller.enqueue(
|
||||
encoder.encode(
|
||||
`event: ${event}\ndata: ${JSON.stringify(data)}\n\n`
|
||||
)
|
||||
);
|
||||
} catch {
|
||||
/* stream closed */
|
||||
}
|
||||
};
|
||||
|
||||
// Initial hello so the client knows the stream is alive
|
||||
send("hello", {
|
||||
instance: NODE_INSTANCE,
|
||||
ts: Date.now(),
|
||||
});
|
||||
|
||||
// Push status immediately (don't wait for the first interval)
|
||||
const pushStatus = async () => {
|
||||
try {
|
||||
const [containers, llamaHealth] = await Promise.all([
|
||||
listContainers(),
|
||||
getLlamaHealth(),
|
||||
]);
|
||||
send("status", {
|
||||
instance: NODE_INSTANCE,
|
||||
containers,
|
||||
llamaHealth,
|
||||
timestamp: new Date().toISOString(),
|
||||
});
|
||||
} catch (err) {
|
||||
send("error", { message: (err as Error).message });
|
||||
}
|
||||
};
|
||||
|
||||
await pushStatus();
|
||||
|
||||
const interval = setInterval(pushStatus, 4000);
|
||||
|
||||
// Cleanup when client disconnects
|
||||
// The controller.close() is called when the consumer cancels the stream
|
||||
// ( AbortController / EventSource.close() on the client side).
|
||||
// We use the `cancel` method below.
|
||||
// Store interval on the controller via closure.
|
||||
(controller as unknown as { _interval?: NodeJS.Timeout })._interval =
|
||||
interval;
|
||||
},
|
||||
cancel(controller) {
|
||||
const interval = (
|
||||
controller as unknown as { _interval?: NodeJS.Timeout }
|
||||
)._interval;
|
||||
if (interval) clearInterval(interval);
|
||||
},
|
||||
});
|
||||
|
||||
return new Response(stream, {
|
||||
headers: {
|
||||
"Content-Type": "text/event-stream; charset=utf-8",
|
||||
"Cache-Control": "no-cache, no-transform",
|
||||
"Connection": "keep-alive",
|
||||
"X-Accel-Buffering": "no",
|
||||
},
|
||||
});
|
||||
}
|
||||
33
dashboard/src/app/api/system/route.ts
Normal file
33
dashboard/src/app/api/system/route.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { sleepMode, wakeMode, updateNode } from "@/lib/docker";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
export const runtime = "nodejs";
|
||||
export const maxDuration = 600;
|
||||
|
||||
/**
|
||||
* POST /api/system
|
||||
* Body: { action: "sleep" | "wake" | "update" }
|
||||
*
|
||||
* Mirrors `gpuctl sleep|wake|update` CLI commands.
|
||||
*/
|
||||
export async function POST(req: NextRequest) {
|
||||
const body = (await req.json()) as { action: "sleep" | "wake" | "update" };
|
||||
|
||||
if (body.action === "sleep") {
|
||||
const result = await sleepMode();
|
||||
return NextResponse.json(result, { status: result.ok ? 200 : 500 });
|
||||
}
|
||||
|
||||
if (body.action === "wake") {
|
||||
const result = await wakeMode();
|
||||
return NextResponse.json(result, { status: result.ok ? 200 : 500 });
|
||||
}
|
||||
|
||||
if (body.action === "update") {
|
||||
const result = await updateNode();
|
||||
return NextResponse.json(result, { status: result.ok ? 200 : 500 });
|
||||
}
|
||||
|
||||
return NextResponse.json({ error: "unknown action" }, { status: 400 });
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -618,3 +618,414 @@ export async function getLlamaHealth(): Promise<{
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Generic service control (start / stop / restart / remove / logs)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export type ServiceRole =
|
||||
| "llama"
|
||||
| "comfyui"
|
||||
| "model-worker"
|
||||
| "webdav"
|
||||
| "ssh"
|
||||
| "ssh-companion"
|
||||
| "gpu-test"
|
||||
| "dashboard"
|
||||
| "tailscale";
|
||||
|
||||
const COMPOSE_PROFILES: Partial<Record<ServiceRole, string>> = {
|
||||
llama: "llama",
|
||||
comfyui: "comfy",
|
||||
"gpu-test": "test",
|
||||
// ssh-companion / model-worker / webdav need the `wake` profile when
|
||||
// starting from scratch, but `docker compose up -d <svc>` with explicit
|
||||
// service name overrides the profile check at the compose level.
|
||||
"ssh-companion": "wake",
|
||||
"model-worker": "wake",
|
||||
webdav: "wake",
|
||||
};
|
||||
|
||||
export async function startService(
|
||||
role: ServiceRole
|
||||
): Promise<StartResult> {
|
||||
const profile = COMPOSE_PROFILES[role];
|
||||
const args = ["up", "-d", "--force-recreate", role];
|
||||
if (profile) args.unshift("--profile", profile);
|
||||
const res = await runCompose(args, {});
|
||||
return {
|
||||
ok: res.code === 0,
|
||||
message:
|
||||
res.code === 0 ? `${role} started` : `Failed to start ${role}`,
|
||||
logs: res.stdout + (res.stderr ? `\n${res.stderr}` : ""),
|
||||
};
|
||||
}
|
||||
|
||||
export async function stopService(role: ServiceRole): Promise<StartResult> {
|
||||
// For profile services, we need to pass --profile too so compose knows about them
|
||||
const profile = COMPOSE_PROFILES[role];
|
||||
const args = ["stop", role];
|
||||
if (profile) args.unshift("--profile", profile);
|
||||
const res = await runCompose(args, {});
|
||||
return {
|
||||
ok: res.code === 0,
|
||||
message: res.code === 0 ? `${role} stopped` : `Failed to stop ${role}`,
|
||||
logs: res.stdout + (res.stderr ? `\n${res.stderr}` : ""),
|
||||
};
|
||||
}
|
||||
|
||||
export async function restartService(
|
||||
role: ServiceRole
|
||||
): Promise<StartResult> {
|
||||
const profile = COMPOSE_PROFILES[role];
|
||||
const args = ["restart", role];
|
||||
if (profile) args.unshift("--profile", profile);
|
||||
const res = await runCompose(args, {});
|
||||
return {
|
||||
ok: res.code === 0,
|
||||
message: res.code === 0 ? `${role} restarted` : `Failed to restart ${role}`,
|
||||
logs: res.stdout + (res.stderr ? `\n${res.stderr}` : ""),
|
||||
};
|
||||
}
|
||||
|
||||
export async function removeService(
|
||||
role: ServiceRole
|
||||
): Promise<StartResult> {
|
||||
// For services that the dashboard might want to nuke (e.g. llama), do a
|
||||
// hard `docker rm -f` on the container found via labels. This avoids
|
||||
// the profile problem entirely.
|
||||
const name = await getServiceContainerName(role);
|
||||
if (!name) {
|
||||
return { ok: false, message: `${role} not found`, logs: "" };
|
||||
}
|
||||
try {
|
||||
await execAsync(`docker rm -f ${name}`, {
|
||||
maxBuffer: 1 * 1024 * 1024,
|
||||
});
|
||||
return {
|
||||
ok: true,
|
||||
message: `${role} removed`,
|
||||
logs: `removed ${name}`,
|
||||
};
|
||||
} catch (err) {
|
||||
return {
|
||||
ok: false,
|
||||
message: `Failed to remove ${role}`,
|
||||
logs: (err as Error).message,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function getServiceContainerName(
|
||||
role: ServiceRole
|
||||
): Promise<string | null> {
|
||||
// Map service roles to docker-compose labels
|
||||
const labelRole =
|
||||
role === "ssh" ? "ssh-main" : role === "ssh-companion" ? "ssh-companion" : role;
|
||||
try {
|
||||
const { stdout } = await execAsync(
|
||||
`docker ps -a --filter label=node.role=${labelRole} --filter label=node.instance=${NODE_INSTANCE} --format {{.Names}}`,
|
||||
{ maxBuffer: 1 * 1024 * 1024 }
|
||||
);
|
||||
return String(stdout).trim().split("\n")[0] || null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export async function getServiceLogs(
|
||||
role: ServiceRole,
|
||||
tail: number = 500
|
||||
): Promise<string> {
|
||||
const name = await getServiceContainerName(role);
|
||||
if (!name) return `[${role} container not found]`;
|
||||
try {
|
||||
const { stdout } = await execAsync(`docker logs --tail ${tail} ${name}`, {
|
||||
maxBuffer: 16 * 1024 * 1024,
|
||||
});
|
||||
return String(stdout);
|
||||
} catch (err) {
|
||||
return `[failed: ${(err as Error).message}]`;
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// ComfyUI model worker proxy (mirrors `gpuctl comfy models ...`)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
async function modelWorkerExec(
|
||||
...args: string[]
|
||||
): Promise<{ ok: boolean; output: string; error: string }> {
|
||||
const container = await getServiceContainerName("model-worker");
|
||||
if (!container) {
|
||||
return {
|
||||
ok: false,
|
||||
output: "",
|
||||
error: "model-worker container not found",
|
||||
};
|
||||
}
|
||||
try {
|
||||
const quoted = args.map((a) => `'${a.replace(/'/g, "'\\''")}'`).join(" ");
|
||||
const { stdout, stderr } = await execAsync(
|
||||
`docker exec ${container} python3 /app/worker.py ${quoted}`,
|
||||
{ maxBuffer: 8 * 1024 * 1024 }
|
||||
);
|
||||
return {
|
||||
ok: true,
|
||||
output: String(stdout),
|
||||
error: String(stderr),
|
||||
};
|
||||
} catch (err) {
|
||||
const e = err as {
|
||||
stdout?: string | Buffer;
|
||||
stderr?: string | Buffer;
|
||||
message: string;
|
||||
};
|
||||
return {
|
||||
ok: false,
|
||||
output: e.stdout ? String(e.stdout) : "",
|
||||
error: e.stderr ? String(e.stderr) : e.message,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export interface ComfyModelEntry {
|
||||
type: string;
|
||||
filename: string;
|
||||
sizeBytes?: number;
|
||||
sizeHuman?: string;
|
||||
}
|
||||
|
||||
export async function listComfyModels(
|
||||
type?: string
|
||||
): Promise<{ ok: boolean; models: ComfyModelEntry[]; raw: string; error?: string }> {
|
||||
const args = ["list"];
|
||||
if (type) args.push(type);
|
||||
const res = await modelWorkerExec(...args);
|
||||
if (!res.ok) {
|
||||
return { ok: false, models: [], raw: res.output, error: res.error };
|
||||
}
|
||||
// worker.py outputs JSON; parse it
|
||||
try {
|
||||
const parsed = JSON.parse(res.output);
|
||||
const arr: ComfyModelEntry[] = Array.isArray(parsed)
|
||||
? parsed
|
||||
: parsed.models || parsed.items || [];
|
||||
return { ok: true, models: arr, raw: res.output };
|
||||
} catch {
|
||||
// Probably plain text
|
||||
return { ok: true, models: [], raw: res.output };
|
||||
}
|
||||
}
|
||||
|
||||
export interface ComfyQueueEntry {
|
||||
id: number;
|
||||
action: string;
|
||||
model_type: string;
|
||||
filename: string;
|
||||
url?: string;
|
||||
status: string;
|
||||
progress?: number;
|
||||
downloaded_bytes?: number;
|
||||
total_bytes?: number;
|
||||
error?: string;
|
||||
created_at?: string;
|
||||
started_at?: string;
|
||||
finished_at?: string;
|
||||
}
|
||||
|
||||
export async function getComfyQueue(): Promise<{
|
||||
ok: boolean;
|
||||
queue: ComfyQueueEntry[];
|
||||
raw: string;
|
||||
error?: string;
|
||||
}> {
|
||||
const res = await modelWorkerExec("queue");
|
||||
if (!res.ok) return { ok: false, queue: [], raw: res.output, error: res.error };
|
||||
try {
|
||||
const parsed = JSON.parse(res.output);
|
||||
const arr: ComfyQueueEntry[] = Array.isArray(parsed)
|
||||
? parsed
|
||||
: parsed.jobs || parsed.queue || [];
|
||||
return { ok: true, queue: arr, raw: res.output };
|
||||
} catch {
|
||||
return { ok: true, queue: [], raw: res.output };
|
||||
}
|
||||
}
|
||||
|
||||
export async function addComfyModel(
|
||||
url: string,
|
||||
type: string
|
||||
): Promise<{ ok: boolean; output: string; error?: string }> {
|
||||
const res = await modelWorkerExec("add", url, type);
|
||||
return { ok: res.ok, output: res.output, error: res.error };
|
||||
}
|
||||
|
||||
export async function removeComfyModel(
|
||||
filename: string,
|
||||
type?: string
|
||||
): Promise<{ ok: boolean; output: string; error?: string }> {
|
||||
const args = ["rm", filename];
|
||||
if (type) args.push(type);
|
||||
const res = await modelWorkerExec(...args);
|
||||
return { ok: res.ok, output: res.output, error: res.error };
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// System actions (sleep / wake / update)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export async function sleepMode(): Promise<StartResult> {
|
||||
// Equivalent of `gpuctl sleep`:
|
||||
// - keep tailscale + (ssh-main OR ssh-companion), whichever is running
|
||||
// - remove: llama, comfyui, gpu-test, model-worker, webdav, dashboard
|
||||
// - remove the *other* ssh role container
|
||||
const main = await getServiceContainerName("ssh");
|
||||
const companion = await getServiceContainerName("ssh-companion");
|
||||
|
||||
let keepRole: "ssh" | "ssh-companion" | "ssh";
|
||||
let removeRole: "ssh" | "ssh-companion" | null = null;
|
||||
|
||||
if (main) {
|
||||
keepRole = "ssh";
|
||||
removeRole = "ssh-companion";
|
||||
} else if (companion) {
|
||||
keepRole = "ssh-companion";
|
||||
removeRole = "ssh";
|
||||
} else {
|
||||
// Neither running — start ssh-main
|
||||
const r = await startService("ssh");
|
||||
if (!r.ok) return r;
|
||||
keepRole = "ssh";
|
||||
removeRole = "ssh-companion";
|
||||
}
|
||||
|
||||
const toRemove: ServiceRole[] = [
|
||||
"llama",
|
||||
"comfyui",
|
||||
"gpu-test",
|
||||
"model-worker",
|
||||
"webdav",
|
||||
"dashboard",
|
||||
];
|
||||
if (removeRole) toRemove.push(removeRole);
|
||||
|
||||
const logs: string[] = [];
|
||||
for (const role of toRemove) {
|
||||
const name = await getServiceContainerName(role);
|
||||
if (name) {
|
||||
try {
|
||||
await execAsync(`docker rm -f ${name}`, { maxBuffer: 1 * 1024 * 1024 });
|
||||
logs.push(`removed ${role} (${name})`);
|
||||
} catch (err) {
|
||||
logs.push(`failed to remove ${role}: ${(err as Error).message}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
ok: true,
|
||||
message: `Sleep mode: keeping tailscale + ${keepRole}`,
|
||||
logs: logs.join("\n"),
|
||||
};
|
||||
}
|
||||
|
||||
export async function wakeMode(): Promise<StartResult> {
|
||||
// Equivalent of `gpuctl wake`:
|
||||
// - swap ssh role (start the OTHER ssh service + model-worker + webdav + dashboard)
|
||||
// We can detect which one is currently running from inside the dashboard
|
||||
// container via SSH_ROLE env (set in compose.yaml). But for simplicity we
|
||||
// always start ssh-companion + model-worker + webdav + dashboard.
|
||||
// If user is already on ssh-companion, starting it again is a no-op.
|
||||
const sshRole = process.env.SSH_ROLE || "main";
|
||||
const targetSsh = sshRole === "main" ? "ssh-companion" : "ssh";
|
||||
|
||||
const res = await runCompose(
|
||||
["--profile", "wake", "up", "-d", targetSsh, "model-worker", "webdav", "dashboard"],
|
||||
{}
|
||||
);
|
||||
return {
|
||||
ok: res.code === 0,
|
||||
message: res.code === 0
|
||||
? `Wake mode: started ${targetSsh} + model-worker + webdav + dashboard`
|
||||
: "Failed to wake",
|
||||
logs: res.stdout + (res.stderr ? `\n${res.stderr}` : ""),
|
||||
};
|
||||
}
|
||||
|
||||
export async function updateNode(): Promise<StartResult> {
|
||||
// Equivalent of `gpuctl update`:
|
||||
// - run build.sh
|
||||
// - swap ssh role + restart model-worker
|
||||
// The build.sh runs on the HOST (or inside the ssh container). We try to
|
||||
// exec it via the ssh-main container.
|
||||
const sshRole = process.env.SSH_ROLE || "main";
|
||||
const targetSsh = sshRole === "main" ? "ssh-companion" : "ssh";
|
||||
|
||||
// Build images
|
||||
try {
|
||||
const { stdout, stderr } = await execAsync(
|
||||
`sh ${PROJECT_DIR}/build.sh`,
|
||||
{
|
||||
cwd: PROJECT_DIR,
|
||||
env: composeEnv(),
|
||||
maxBuffer: 32 * 1024 * 1024,
|
||||
timeout: 600000,
|
||||
}
|
||||
);
|
||||
const buildLog = String(stdout) + String(stderr);
|
||||
|
||||
// Now restart target ssh + model-worker + dashboard
|
||||
const res = await runCompose(
|
||||
["--profile", "wake", "up", "-d", "--force-recreate", targetSsh, "model-worker", "dashboard"],
|
||||
{}
|
||||
);
|
||||
return {
|
||||
ok: res.code === 0,
|
||||
message: res.code === 0
|
||||
? `Update complete: rebuilt + restarted ${targetSsh} + model-worker + dashboard`
|
||||
: "Build OK, restart failed",
|
||||
logs: buildLog + "\n---\n" + res.stdout + res.stderr,
|
||||
};
|
||||
} catch (err) {
|
||||
return {
|
||||
ok: false,
|
||||
message: "Build failed",
|
||||
logs: (err as Error).message,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Model upload (.gguf)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export async function saveUploadedModel(
|
||||
filename: string,
|
||||
data: Buffer
|
||||
): Promise<{ ok: boolean; path: string; error?: string }> {
|
||||
// Sanitize filename — only allow .gguf extension, no path traversal
|
||||
const safe = path.basename(filename).replace(/[^\w.\-]/g, "_");
|
||||
if (!safe.toLowerCase().endsWith(".gguf")) {
|
||||
return { ok: false, path: "", error: "Only .gguf files are allowed" };
|
||||
}
|
||||
const full = path.join(LLAMA_MODELS_DIR, safe);
|
||||
await fs.writeFile(full, data);
|
||||
return { ok: true, path: full };
|
||||
}
|
||||
|
||||
export async function deleteModel(
|
||||
filename: string
|
||||
): Promise<{ ok: boolean; error?: string }> {
|
||||
const safe = path.basename(filename).replace(/[^\w.\-]/g, "_");
|
||||
if (!safe.toLowerCase().endsWith(".gguf")) {
|
||||
return { ok: false, error: "Only .gguf files are allowed" };
|
||||
}
|
||||
const full = path.join(LLAMA_MODELS_DIR, safe);
|
||||
try {
|
||||
await fs.unlink(full);
|
||||
return { ok: true };
|
||||
} catch (err) {
|
||||
return { ok: false, error: (err as Error).message };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,9 @@ Usage:
|
||||
gpuctl stop <service>
|
||||
gpuctl restart <service>
|
||||
gpuctl logs <service>
|
||||
|
||||
Services: llama, comfy, model-worker, webdav, dashboard,
|
||||
ssh-main, ssh-companion, gpu-test
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
@@ -32,15 +32,17 @@ update_ssh() {
|
||||
echo "Rebuilding images..."
|
||||
sh "$PROJECT_DIR/build.sh"
|
||||
|
||||
echo "Restarting: $TARGET_SSH_SERVICE + model-worker"
|
||||
echo "Restarting: $TARGET_SSH_SERVICE + model-worker + dashboard"
|
||||
|
||||
HOST_PROJECT_PATH="$HOST_PROJECT_PATH" \
|
||||
docker compose \
|
||||
-f "$COMPOSE_FILE" \
|
||||
--profile wake \
|
||||
up -d \
|
||||
--force-recreate \
|
||||
"$TARGET_SSH_SERVICE" \
|
||||
model-worker
|
||||
model-worker \
|
||||
dashboard
|
||||
}
|
||||
|
||||
stop_service() {
|
||||
@@ -113,7 +115,7 @@ sleep_mode() {
|
||||
echo "Entering sleep mode for instance: $NODE_INSTANCE"
|
||||
echo "Keeping: tailscale + $KEEP_SSH_ROLE"
|
||||
|
||||
for ROLE in llama comfyui gpu-test model-worker webdav; do
|
||||
for ROLE in llama comfyui gpu-test model-worker webdav dashboard; do
|
||||
CTR=$(get_service_container "$ROLE" 2>/dev/null) || true
|
||||
[ -n "$CTR" ] && docker rm -f "$CTR" 2>/dev/null || true
|
||||
done
|
||||
@@ -149,15 +151,17 @@ wake_mode() {
|
||||
echo "Entering wake mode for instance: $NODE_INSTANCE"
|
||||
echo "Current SSH role: $SSH_ROLE"
|
||||
echo "Host project: $HOST_PROJECT_PATH"
|
||||
echo "Starting: $TARGET_SSH_SERVICE + model-worker + webdav"
|
||||
echo "Starting: $TARGET_SSH_SERVICE + model-worker + webdav + dashboard"
|
||||
|
||||
HOST_PROJECT_PATH="$HOST_PROJECT_PATH" \
|
||||
docker compose \
|
||||
-f "$COMPOSE_FILE" \
|
||||
--profile wake \
|
||||
up -d \
|
||||
"$TARGET_SSH_SERVICE" \
|
||||
model-worker \
|
||||
webdav
|
||||
webdav \
|
||||
dashboard
|
||||
|
||||
echo
|
||||
echo "Containers:"
|
||||
|
||||
Reference in New Issue
Block a user