Release 0.16.0: new look, search, remove files, easier deploy
Release / release (push) Successful in 4m33s

- Dot-matrix "Creation of Adam" page banners behind a floating menu,
  glass cards and tables, library header with live stats, table toolbar
  with pagination, Cmd/Ctrl+K search across models, endpoints, runs,
  tags, settings and actions.
- Remove single files from a model (selection + disk, via a worker job).
- Containers start as root to prepare folders and drop to PUID:PGID;
  AUTH_SECRET is generated when unset; sandbox runs as nobody;
  KANAME_IMAGE and image docs in the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-30 14:06:46 +01:00
1 parent c6bcb514e6
commit 5becfc47a0
53 files changed
+1869 -468

No files matched your search

+20 -8
View File
@@ -1,21 +1,33 @@
import { auth } from "@/auth";
import { listLibrary } from "@/lib/library";
import { listLocalFolders } from "@/lib/local-folders";
import { getWorkerStatus } from "@/lib/worker-status";
import { AddModelPanel } from "./add-model-panel";
import { LibraryTop } from "./library-top";
import { LibraryView } from "./library-view";
export const dynamic = "force-dynamic";
export default async function LibraryPage() {
const [rows, worker, folders] = await Promise.all([listLibrary(), getWorkerStatus(), listLocalFolders()]);
export default async function LibraryPage({ searchParams }: PageProps<"/">) {
const [rows, worker, folders, session] = await Promise.all([listLibrary(), getWorkerStatus(), listLocalFolders(), auth()]);
return (
<div className="flex flex-col gap-4">
{/* Opens by default while the library is empty and there's nothing on disk to import. */}
<AddModelPanel
freeBytes={worker.online ? worker.modelsDirFreeBytes : null}
defaultOpen={rows.length === 0 && folders.length === 0}
folders={folders.map((f) => ({ path: f.path, commit: f.commit, files: f.files, fileCount: f.fileCount, totalBytes: f.totalBytes }))}
{/* The form opens by default while the library is empty and there's nothing on disk to import,
and with ?add=1 (the ⌘K palette's "Add model"). */}
<LibraryTop
worker={worker}
defaultOpen={(rows.length === 0 && folders.length === 0) || (await searchParams).add === "1"}
hero={{
name: session?.user?.name ?? null,
models: rows.length,
libraryBytes: rows.reduce((s, r) => s + r.presentBytes, 0),
updates: rows.filter((r) => r.updateAvailable && (r.hubState === "available" || !r.hubState)).length,
goneFromHub: rows.filter((r) => r.hubState === "repo_missing" || r.hubState === "commit_missing").length,
}}
panel={{
freeBytes: worker.online ? worker.modelsDirFreeBytes : null,
folders: folders.map((f) => ({ path: f.path, commit: f.commit, files: f.files, fileCount: f.fileCount, totalBytes: f.totalBytes })),
}}
/>
{rows.length > 0 && <LibraryView rows={rows} />}
</div>