Milestone (b): repo lookup and file selection

- Hub API client: resolve revision to SHA, paginated recursive file tree,
  gated-access probe, readable error mapping
- Add-model page with quant quick-select, fnmatch-compatible include/exclude
  globs, selection summary and free-space hint
- Models stored pinned to the reviewed SHA with full file list and selection rule
- Library list, model detail page, remove (never-downloaded models only)
- Worker reports MODELS_DIR free space; unit tests for selection logic

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-05 15:39:45 +02:00
1 parent 891e496157
commit 8f7ac60ccf
35 files changed
+2567 -19

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { Badge } from "@/components/ui/badge";
import type { ModelStatus } from "@/lib/db/schema";
const LABELS: Record<ModelStatus, { label: string; variant: "default" | "secondary" | "destructive" | "outline" }> = {
pending: { label: "not downloaded", variant: "outline" },
downloading: { label: "downloading", variant: "secondary" },
ready: { label: "ok", variant: "default" },
incomplete: { label: "missing files", variant: "destructive" },
failed: { label: "failed", variant: "destructive" },
deleting: { label: "deleting", variant: "secondary" },
};
export function ModelStatusBadge({ status }: { status: ModelStatus }) {
const { label, variant } = LABELS[status];
return <Badge variant={variant}>{label}</Badge>;
}