# Changelog All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); each milestone of step 1 (Hugging Face downloader) is released as a minor version. ## [Unreleased] ## [0.7.0] - 2026-10-06 First part of model testing: runtimes (llama.cpp, vLLM and your own images) and the Docker connection through a socket proxy. Starting containers with a model comes next. **Upgrade note:** `compose.yaml` has a new `docker-proxy` service and `DOCKER_HOST` on the worker; copy them from `deploy/compose.yaml`. ### Added - **Runtimes** (Settings → Runtimes): container images that serve models. Presets for the official llama.cpp CPU server (`ghcr.io/ggml-org/llama.cpp:server`) and vLLM CPU (`vllm/vllm-openai-cpu:v0.31.0`), plus your own images from any registry (e.g. patched forks) with an engine type (llama.cpp- or vLLM-compatible), environment, extra arguments, shared memory, device passthrough (only `/dev/dri…`, `/dev/kfd`) and an opt-in "NUMA tuning" switch (the `CAP_SYS_NICE` + `seccomp=unconfined` that vLLM recommends on CPU; off by default). - Pull and update runtime images from the UI, with progress and readable errors. - Docker host card: Docker version, CPU model and features (AVX2, AVX-512, AMX, …), memory, and the network and models source the worker detected from its own container. - `docker-proxy` service (`tecnativa/docker-socket-proxy:v0.5.0`) in both compose files; the worker reaches Docker only through it (`DOCKER_HOST`). New settings `DOCKER_HOST`, `KANAME_DOCKER_NETWORK`, `KANAME_MODELS_SOURCE` (see the wiki). ## [0.6.0] - 2026-10-06 Delete models (with their files), verify and deep verify, one-click repair, and update checks with a deliberate Update. Database migrations run automatically on start. ### Added - **Delete** any model (also failed or incomplete ones), with confirmation. By default the worker deletes its files from disk: only the repo's files and hf's `.cache`; files you put in the folder yourself are kept, empty folders are removed. Unchecked, only the library entry goes and the folder shows up under "Found in the models folder". - **Verify** a model: every selected file is checked for existence, size and the version hf recorded; reports missing files, size mismatches and extra files in the folder. **Deep verify** hashes every file (SHA-256 for LFS files, git blob SHA-1 for small files) against the Hub, with progress. - **Repair** re-downloads only what's missing or broken. Broken files are deleted before `hf` runs, because `hf` skips a file whose metadata matches without checking its content or size. - **Update checks:** the Hub check (every `UPDATE_CHECK_INTERVAL_HOURS` and "Check now") also resolves the tracked revision. If there's a newer commit, the model shows "update available" (badge in the library and a Status filter value, banner on the model page) with the selected files that changed, were added or were removed. **Update** is a deliberate action: it pins the new commit (the old one stays in the revision history), downloads changed and new files, and deletes files that are no longer selected once the download succeeded. - Download card: **Resume** for interrupted or cancelled downloads, **Retry** for failed ones. - Job names in the job list and job page: Download, Download more, Import, Repair, Update, Verify, Deep verify, Delete. ## [0.5.0] - 2026-10-06 Hugging Face style model pages, file labels, recommended files, importing models already on disk, and flagging models deleted from the Hub. Database migrations run automatically on start. ### Added - Model pages modeled on Hugging Face, built from cards: a header with org avatar, `org / name` with copy button, pills for task, format, architecture, language and license, your tags and a Hugging Face link; a content card with tabs: - **Files** (default): selected files with type icon, size, LFS marker and local state (downloaded, missing, size mismatch, …), a "on disk" progress summary, and the unselected repo files collapsed below; each file links to the Hub at the pinned commit - **Model card**: the repo's README at the pinned commit, rendered (sanitized HTML, relative links/images resolved to the Hub) - **Jobs**: download history - Custom tags are color-coded: automatic color from the name, or one you pick in Settings. - File labels in front of every file name: Model, MTP, Vision (mmproj), Draft, Adapter, imatrix, Config, Tokenizer, Template, Docs, Image, Git (detected from the file name). - Split files (`…-00001-of-00003.gguf`) are shown and selected as one entry with "N parts", the combined size and a combined status, in the Files tab, Add model, Download more and progress lists. - **Download more** in the Files tab: pick additional files (quick-select chips, checkboxes) and download them; they're added to the model's selection. Files already on disk are skipped. - **Settings** page (`/settings`), first section **Labels**: name and color per file label (with reset), and rename, recolor or delete your tags. Stored in a new `settings` table. - App icon (要). - Sidebar with download status/actions, local copy details (commit, path, patterns) and a model tree (base model → quantized/finetuned → this repo) listing other local models of the same base. - Hub metadata now includes the author's avatar and the relation to the base model; existing models are refetched once by the worker. - Models deleted from Hugging Face are flagged, never deleted locally: the worker checks every model every `UPDATE_CHECK_INTERVAL_HOURS` (and right after a failed download) whether the repo and the pinned commit still exist. A deleted repo (or one made private) or a rewritten history shows a warning badge in the library (searchable, and a value of the Status filter), a banner on the model page, and blocks new downloads and "Download more". "On the Hub" in the sidebar shows the last check, with "Check now". - **Import models already on disk:** the worker scans the models folder (at startup, every 2 minutes and on "Rescan") for `/` folders that aren't in the library. They're listed under "Found in the models folder"; **Import** opens Add model for that folder with the repo, the commit hf recorded (if any) and the files already there preselected, marked "on disk". The import job runs `hf download` into the existing folder: hf 2.1.1 hashes files it didn't download itself, keeps those that match and downloads only missing or different ones. Other files in the folder are left alone. Jobs show the purpose "import". - **Recommended files:** picking a quant (chip or checkbox) in Add model or Download more also selects the files that usually go with it, shown in a "Recommended with your quant" strip where each can be unchecked. They drop out again when you deselect the quant. Variants are matched: the MTP head or mmproj with the same quant if there is one, otherwise the best single one (mmproj: F16, BF16, Q8_0, F32); nothing is added if the model already has one of that kind. Which kinds (default: chat template, MTP, vision) is set in the new **Settings → Downloads**. - Create tags in Settings (name and color), before any model uses them. - Tag picker on the model page and in Add model: a dropdown with "Create new tag…" first, then your existing tags with their colors, and "Manage tags…". - Account menu in the header with your profile picture from the OIDC provider (initials as fallback): name and email, links to the settings, theme (system/light/dark) and sign out. ### Changed - Model URLs are the repo path, like on Hugging Face: `/unsloth/Qwen3-8B-GGUF` (case-insensitive, redirects to the canonical spelling). Old `/models/` links redirect. - The auth gate excludes only exact paths (`/login`, `/api/auth/…`), so org names like `loginx` can't bypass it. - Quant labels (library column, Quant filter, "Local copy") only count model weights, not MTP, mmproj or imatrix files. - Tags are no longer deleted automatically when no model uses them anymore; delete them in Settings. - Settings has separate pages for **File labels**, **Tags** and **Downloads**. - The selection bar at the bottom of Add model is a floating card like the rest of the page. - Header: app icon, navigation with icons and the current page highlighted. - Docs: full configuration reference and the NAS guide moved to the [wiki](https://git.linxweiler.xyz/pascallinxweiler/Kaname/wiki); the README keeps the quick install. ### Fixed - Hydration error in progress bars on non-English browsers (locale-dependent `aria-valuetext`). ## [0.4.0] - 2026-10-05 The app is now called **Kaname**; search, filters and tags. ### Added - Library search: every word must match the repo, author, model family, base model, architecture, quant, tags, Hub tags or status (e.g. `unsloth qwen`, `q4_k_m`, `roleplay`). - Library filters for Author, Family, Quant, Tag and Status (multi-select with counts, combinable, kept in the URL), removable filter chips and "N of M models". - Hub metadata per model: base model(s), architecture, license, pipeline tag and Hub tags. The "family" is the base model's org (an unsloth quant of Qwen3 → `Qwen`). Stored when a model is added; the worker fetches it for existing models on startup. - Custom tags: add/remove on the model page (with suggestions), set them when adding a model, click a tag in the library to filter. Tags are case-insensitive and deleted when unused. - Model page shows author, family, base model links, architecture, license and Hub tags. - README rewritten around a four-step install, with a banner and screenshots. ### Changed - Renamed the app from "Model Manager" to "Kaname". - `deploy/compose.yaml`: models go to a host folder (`KANAME_MODELS_DIR`, default `./models`; a NAS share mounted on the host works) instead of a Docker NFS volume, so the default setup needs no NAS. `NFS_SERVER`/`NFS_EXPORT` are gone. - `.env.example` is ordered by what you need to fill in; container-internal paths (`DATABASE_URL`, `MODELS_DIR`) are no longer in it because the image defaults are correct. ## [0.3.1] - 2026-10-05 Release pipeline, server deployment and a simpler library page. ### Added - Release pipeline (`.gitea/workflows/release.yaml`): a `vX.Y.Z` tag runs checks, pushes the Docker image to the Gitea registry (`X.Y.Z`, `X.Y`, `latest`) and creates a release from this changelog. - `deploy/compose.yaml` for the server, using the released image (`KANAME_VERSION` to pin). About 20 lines: the image now has an entrypoint with roles (`web`/`worker`), runs migrations itself under a file lock (no start-order dependency between the services) and has a built-in healthcheck. - Server storage: SQLite on a shared host folder (`KANAME_DATA_DIR`, bind mount for web and worker), models on an NFSv4 volume (`NFS_SERVER`, `NFS_EXPORT`) mounted only by the worker. - The container stops with a clear message if `/data` (or `/models` for the worker) isn't writable. - The app version is shown next to the app name (`APP_VERSION`, set at image build time). ### Changed - The library is the only main page: "Add model" opens the lookup/selection form inline (open by default while the library is empty). After adding, the form closes and the new model shows its download progress in the list. The separate `/models/new` page and its menu entry are gone. ## [0.3.0] - 2026-10-05 Milestone (c): worker and downloads with live progress. ### Added - Worker download queue: claims queued jobs (oldest first, one job per model, `MAX_CONCURRENT_DOWNLOADS` in parallel) and runs `hf download --revision --local-dir // --include …` with exact, glob-escaped paths. `HF_TOKEN` is passed via the environment only; the child gets a minimal environment (no web/OIDC secrets). - Progress from bytes on disk (final files + `.incomplete` files matched by etag), sampled every second: per job and per file bytes, %, speed (10 s window) and ETA. - stdout/stderr captured as the job log (ANSI stripped, token-like strings masked), viewable live and downloadable as text. - After `hf` exits 0, every file is checked (size + `.metadata` etag) before the job is `completed` and the model `ready`; otherwise the job fails with the list of missing files. - Failed jobs show the exit code and the last stderr lines. - Cancel (SIGTERM, SIGKILL after 10 s); graceful worker shutdown marks running jobs `interrupted`. - Leftover partial files are deleted before a run and after a cancelled/failed run (hf can't resume them). - Free-space check before starting a download. - Single-worker lease in the DB; a second worker waits instead of running the same jobs. - Live UI over SSE (`/api/stream`): progress in the library, download card and job history on the model page, job page with per-file progress and live log. "Add & download" queues the download right away. - Docker image (Node 24 + Python with pinned `huggingface_hub[hf_xet]==2.1.1`) and `compose.yaml` with `web` and `worker` services, `data` and `models` volumes, worker healthcheck. - `HF_HUB_DISABLE_XET` setting (default on, see README for why). ### Changed - Dates are rendered in the browser's timezone (the server may run in UTC). ### Notes - The spec assumed `hf download` resumes partial files. huggingface_hub 2.1.1 doesn't: re-running skips completed files but restarts unfinished ones. Documented in the README. ## [0.2.0] - 2026-10-05 Milestone (b): repo lookup and file selection. ### Added - "Add model" page: look up a Hub repo by ID or pasted URL (`/tree/` URLs pick up the revision), resolve the revision to its commit SHA and list all files with sizes. - File selection with checkboxes, quick-select chips per GGUF quant (flat repos, split files and folder-per-quant repos), and include/exclude glob fields with the same matching rules as `hf download` (Python `fnmatch`, `*` crosses folders, trailing `/` = whole folder). - Live selection summary (file count, total size) with free space on the models volume. - Models are stored pinned to the reviewed commit SHA, with the full file list (size, git blob SHA-1, LFS SHA-256) and the selection rule; checkbox picks are stored as escaped exact-path globs so the rule can be re-applied to newer revisions. - Library list (repo, selected quant, size, pinned `revision@sha`, status) and a model detail page. - Removing a model that was never downloaded. - Hub API client (`src/lib/hub`) with clear errors: invalid repo ID, repo not found (or private), revision not found, gated repo without token / without granted access (checked up front with a HEAD request), invalid token, rate limit, network errors. - Worker reports free/total space of `MODELS_DIR` with its heartbeat (migration `0001`). - Unit tests for glob matching and quant grouping (`npm test`, Node's built-in runner). ### Changed - `.gitattributes` keeps LF line endings in the repo (the app runs in Linux containers). ## [0.1.0] - 2026-10-05 Milestone (a): project skeleton and OIDC login. ### Added - Next.js 16 (App Router) + TypeScript + Tailwind v4 + shadcn/ui (Base UI) project. - OIDC login via Auth.js v5 (pinned `next-auth@5.0.0-beta.32`) with a generic provider (`pocket-id`), authorization code flow with PKCE, state and nonce. JWT sessions, 7 days. - Optional group gate `OIDC_ALLOWED_GROUPS` (requests the `groups` scope, fails closed when the claim is missing). - `src/proxy.ts` gates every page (redirect to `/login`) and API route (401); route handlers re-check the session (`withAuth`). - Login page with readable errors (access denied, misconfiguration) and safe `callbackUrl` handling. - Drizzle ORM schema on SQLite via libsql: `models`, `model_revisions`, `model_files`, `jobs`, `job_files`, `job_logs`, `worker_state`; initial migration in `drizzle/`. - Worker process skeleton (`src/worker`): applies migrations, marks stale running jobs as `interrupted` on startup, detects the `hf` CLI version, writes a heartbeat every 5 s. - Header badge showing whether the worker is online; `/api/status` endpoint. - Env validation with zod (`src/lib/env.ts`), `.env.example`. - `npm run dev` starts web and worker together.