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:
1 parent
891e496157
commit
8f7ac60ccf
35 files changed
+2567
-19
No files matched your search
@@ -6,6 +6,33 @@ step 1 (Hugging Face downloader) is released as a minor version.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [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/<rev>` 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.
|
||||
|
||||
Reference in new issue
Block a user