Commit Graph

176 Commits

Author SHA1 Message Date
Adam Ladachowski 081bb3d371 Update README with unified search and TypeScript client
- Document unified search with --provider flag (civitai, hf, all)
- Add /api/search to server endpoints
- Add TypeScript client section (@saiden/tensors)
- Add public API info (tensors-api.saiden.dev)
- Update search options table with provider column

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 21:09:11 +01:00
Adam Ladachowski a47237e5f7 💬 Commit message: Update 2026-02-15 21:04:01, 1 files, 0 lines
📁 Files changed: 1
📝 Lines changed: 0

  • .coverage
2026-02-15 21:04:01 +01:00
Adam Ladachowski 87ab5c44bb Make console parameter optional in search_civitai
- Console is now optional for headless/server usage
- Progress spinner only shown when console is provided
- Error messages print only when console is provided

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 19:59:55 +01:00
Adam Ladachowski fb27f8a9b0 Fix formatting issues
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 19:57:55 +01:00
Adam Ladachowski 24aaca2a48 Fix lint ignores for test files
- Add PLC0415, ARG001, ARG005, F841 to test file ignores
- Remove now-redundant inline noqa comments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 19:56:49 +01:00
Adam Ladachowski 9f9f137f68 Unify CivitAI and HuggingFace search into single endpoint
- Add --provider flag to search command (civitai, hf, or all)
- Default to searching both providers simultaneously
- Add /api/search unified REST endpoint
- Map common parameters (sort, author, tag) across providers
- Remove separate `hf search` subcommand (use `search -P hf`)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 19:35:38 +01:00
Adam Ladachowski eb151dac8d Add Hugging Face Hub integration for safetensor files
- Add `tsr hf search` to search HF models with safetensor files
- Add `tsr hf get` to view model info and list safetensor files
- Add `tsr hf files` to list safetensor files in a model
- Add `tsr hf dl` to download safetensor files from HF

Uses official huggingface_hub library for API access.
Only safetensor files are supported (enforced at search and download).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 19:27:23 +01:00
Adam Ladachowski 29d96e2a00 Bump to v0.1.18, add icon and badges to README
- Add SVG icon with red rounded border "T"
- Add PyPI version, coverage, Python version, and license badges
- Remove video embed from README
- Center header with icon

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 19:13:47 +01:00
Adam Ladachowski e4fc392a90 Expand server test coverage from 66% to 73%
Add comprehensive tests for:
- Download routes helper functions (_format_size, _get_output_dir, _resolve_version_id)
- Background download task execution (success, failure, exception handling)
- Progress callback with different sizes (bytes, KB, MB, GB)
- Auto-linking downloaded files to CivitAI
- Database file lookup and linking with CivitAI matches
- CivitAI cache failure handling
- Gallery edge cases and metadata operations
- Server initialization and OpenAPI schema

Server module coverage now:
- auth.py: 100%
- civitai_routes.py: 98%
- db_routes.py: 97%
- download_routes.py: 98%
- gallery_routes.py: 98%
- gallery.py: 95%

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 19:11:25 +01:00
Adam Ladachowski a68ab90025 Bump version to 0.1.17 2026-02-15 18:58:27 +01:00
Adam Ladachowski f2df2bbefa 💬 Commit message: Update 2026-02-15 18:38:39, 2 files, 121 lines
📁 Files changed: 2
📝 Lines changed: 121

  • README.md
  • civitai_routes.py
2026-02-15 18:38:39 +01:00
Adam Ladachowski ab3660a175 💬 Commit message: Update 2026-02-15 18:22:20, 3 files, 101 lines
📁 Files changed: 3
📝 Lines changed: 101

  • config.py
  • __init__.py
  • auth.py
2026-02-15 18:22:20 +01:00
Adam Ladachowski 205e6dbdf2 💬 Commit message: Update 2026-02-15 18:14:49, 1 files, 39 lines
📁 Files changed: 1
📝 Lines changed: 39

  • cli.py
2026-02-15 18:14:49 +01:00
Adam Ladachowski 5f71710298 💬 Commit message: Update 2026-02-15 18:00:36, 4 files, 228 lines
📁 Files changed: 4
📝 Lines changed: 228

  • pyproject.toml
  • api.py
  • cli.py
  • config.py
2026-02-15 18:00:36 +01:00
Adam Ladachowski 1d41f924bf 💬 Commit message: Update 2026-02-15 17:55:57, 7 files, 47 lines
📁 Files changed: 7
📝 Lines changed: 47

  • pyproject.toml
  • __init__.py
  • civitai_routes.py
  • db_routes.py
  • download_routes.py
  • gallery_routes.py
  • uv.lock
2026-02-15 17:55:57 +01:00
Adam Ladachowski 0ce7744324 💬 Commit message: Update 2026-02-15 17:50:28, 6 files, 110 lines
📁 Files changed: 6
📝 Lines changed: 110

  • deploy.md
  • Dockerfile
  • Dockerfile.rocm
  • README.md
  • deploy.sh
  • cli.py
2026-02-15 17:50:28 +01:00
Adam Ladachowski 6fe4c11683 💬 Commit message: Update 2026-02-15 15:58:14, 1 files, 62 lines
📁 Files changed: 1
📝 Lines changed: 62

  • Dockerfile.rocm
2026-02-15 15:58:14 +01:00
Adam Ladachowski f510fa3b78 💬 Commit message: Update 2026-02-15 09:34:30, 1 files, 49 lines
📁 Files changed: 1
📝 Lines changed: 49

  • Dockerfile
2026-02-15 09:34:30 +01:00
Adam Ladachowski e4e733c651 💬 Commit message: Update 2026-02-15 09:11:32, 1 files, 60 lines
📁 Files changed: 1
📝 Lines changed: 60

  • Dockerfile
2026-02-15 09:11:32 +01:00
Adam Ladachowski 71af9f3d4b 💬 Commit message: Update 2026-02-15 08:56:49, 5 files, 971 lines
📁 Files changed: 5
📝 Lines changed: 971

  • package.json
  • comfy-client.ts
  • comfy.ts
  • tsconfig.json
  • tsconfig.node.json
2026-02-15 08:56:49 +01:00
Adam Ladachowski 688d824cac 💬 Commit message: Update 2026-02-15 08:56:42, 5 files, 971 lines
📁 Files changed: 5
📝 Lines changed: 971

  • package.json
  • comfy-client.ts
  • comfy.ts
  • tsconfig.json
  • tsconfig.node.json
2026-02-15 08:56:42 +01:00
Adam Ladachowski 1d1cd36594 💬 Commit message: Update 2026-02-15 08:34:49, 38 files, 4477 lines
📁 Files changed: 38
📝 Lines changed: 4477

  • deploy.md
  • .coverage
  • deploy.sh
  • cli.py
  • comfy.py
  • __init__.py
  • comfy_routes.py
  • index-BEOoAFTp.css
  • index-Wi7i1Rks.js
  • materialdesignicons-webfont-B7mPwVP_.ttf
  • materialdesignicons-webfont-CSr8KVlo.eot
  • materialdesignicons-webfont-Dp5v-WZN.woff2
  • materialdesignicons-webfont-PXm3-2wK.woff
  • index.html
  • vite.svg
  • .gitignore
  • extensions.json
  • README.md
  • index.html
  • package-lock.json
  • package.json
  • vite.svg
  • App.vue
  • client.ts
  • vue.svg
  • DownloadsPanel.vue
  • GalleryView.vue
  • GenerateView.vue
  • ModelCard.vue
  • SearchView.vue
  • main.ts
  • app.ts
  • index.ts
  • vite-env.d.ts
  • tsconfig.app.json
  • tsconfig.json
  • tsconfig.node.json
  • vite.config.ts
2026-02-15 08:34:49 +01:00
Adam Ladachowski 3638bd7d81 💬 Commit message: Update 2026-02-15 08:03:38, 10 files, 372 lines
📁 Files changed: 10
📝 Lines changed: 372

  • deploy.md
  • .coverage
  • deploy.sh
  • __init__.py
  • comfy_routes.py
  • index-BEOoAFTp.css
  • index-Wi7i1Rks.js
  • index.html
  • GenerateView.vue
  • app.ts
2026-02-15 08:03:38 +01:00
Adam Ladachowski 356d8fd156 💬 Commit message: Update 2026-02-15 06:21:35, 7 files, 1559 lines
📁 Files changed: 7
📝 Lines changed: 1559

  • .coverage
  • cli.py
  • __init__.py
  • conftest.py
  • test_client.py
  • test_generate.py
  • test_server.py
2026-02-15 06:21:35 +01:00
Adam Ladachowski c419e443ae 💬 Commit message: Update 2026-02-15 06:15:02, 11 files, 1240 lines
📁 Files changed: 11
📝 Lines changed: 1240

  • client.py
  • __init__.py
  • _http.py
  • generation.py
  • info.py
  • params.py
  • util.py
  • generate_routes.py
  • models_routes.py
  • routes.py
  • sd_client.py
2026-02-15 06:15:02 +01:00
Adam Ladachowski e016c01370 💬 Commit message: Update 2026-02-15 06:14:53, 5 files, 260 lines
📁 Files changed: 5
📝 Lines changed: 260

  • output.png
  • pyproject.toml
  • cli.py
  • comfy.py
  • uv.lock
2026-02-15 06:14:53 +01:00
Adam Ladachowski dfca42ac72 💬 Commit message: Update 2026-02-15 05:54:30, 3 files, 363 lines
📁 Files changed: 3
📝 Lines changed: 363

  • output.png
  • cli.py
  • comfy.py
2026-02-15 05:54:30 +01:00
Adam Ladachowski 8beb92d83a 💬 Commit message: Update 2026-02-15 05:34:38, 4 files, 75 lines
📁 Files changed: 4
📝 Lines changed: 75

  • .coverage
  • gguf.sh
  • cli.py
  • generate_routes.py
2026-02-15 05:34:38 +01:00
Adam Ladachowski 8b3e19d237 💬 Commit message: Update 2026-02-15 05:04:35, 10 files, 374 lines
📁 Files changed: 10
📝 Lines changed: 374

  • convert.sh
  • index-BQdjF_w0.css
  • index-CKJOpgtQ.js
  • index-DEHUU-Zz.js
  • index-Ljwp9hgM.css
  • index.html
  • App.vue
  • DownloadsPanel.vue
  • ModelCard.vue
  • app.ts
2026-02-15 05:04:35 +01:00
Adam Ladachowski 0cd3216125 💬 Commit message: Update 2026-02-15 00:07:11, 20 files, 231 lines
📁 Files changed: 20
📝 Lines changed: 231

  • .coverage
  • models.db
  • screenshot.png
  • tensors-deployed.png
  • tensors-dropdown.png
  • tensors-final.png
  • tensors-fixed.png
  • tensors-reloaded.png
  • tensors-ui.png
  • civitai_routes.py
  • generate_routes.py
  • models_routes.py
  • sd_client.py
  • index-BQdjF_w0.css
  • index-CKJOpgtQ.js
  • index-DmOZ-7Sw.js
  • index.html
  • GenerateView.vue
  • app.ts
  • index.ts
2026-02-15 00:07:11 +01:00
Adam Ladachowski 80faead7eb 💬 Commit message: Update 2026-02-14 22:47:41, 18 files, 494 lines
📁 Files changed: 18
📝 Lines changed: 494

  • deploy.md
  • TASK.md
  • justfile
  • deploy.sh
  • config.py
  • __init__.py
  • generate_routes.py
  • models_routes.py
  • routes.py
  • sd_client.py
  • index-CcuP2dTH.css
  • index-DmOZ-7Sw.js
  • index-J_qzb7Jl.js
  • index-QncGJEyk.css
  • index.html
  • client.ts
  • GenerateView.vue
  • app.ts
2026-02-14 22:47:41 +01:00
Adam Ladachowski b638ec9385 💬 Commit message: Update 2026-02-14 21:49:53, 1 files, 8 lines
📁 Files changed: 1
📝 Lines changed: 8

  • justfile
2026-02-14 21:49:53 +01:00
Adam Ladachowski 8353899cf0 💬 Commit message: Update 2026-02-14 21:47:42, 1 files, 110 lines
📁 Files changed: 1
📝 Lines changed: 110

  • STUFF.md
2026-02-14 21:47:42 +01:00
Adam Ladachowski c156f6826b 💬 Commit message: Update 2026-02-14 09:01:09, 7 files, 66 lines
📁 Files changed: 7
📝 Lines changed: 66

  • pyproject.toml
  • screenshot.png
  • client.ts
  • GalleryView.vue
  • SearchView.vue
  • index.ts
  • uv.lock
2026-02-14 09:01:09 +01:00
Adam Ladachowski de8bdf4825 Add explicit cmd to app.yml 2026-02-14 08:55:08 +01:00
Adam Ladachowski a20ec2885e Add custom Dockerfile for Tengu build 2026-02-14 08:54:39 +01:00
Adam Ladachowski c6da517b08 Add requirements.txt for Tengu build 2026-02-14 08:54:02 +01:00
Adam Ladachowski ab2ef4258b Add Tengu deployment config and LoRA support
- Add app.yml for Tengu PaaS deployment
- Fix LoRA parameter passing (separate param, not in prompt)
- Add default quality/negative prompts
- Update UI for LoRA selection

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-14 08:53:08 +01:00
Adam Ladachowski 120c4c68b0 💬 Commit message: Update 2026-02-14 07:13:36, 9 files, 312 lines
📁 Files changed: 9
📝 Lines changed: 312

  • api.py
  • download_routes.py
  • index-BIJHSBBO.js
  • index-D2fa7i11.css
  • index-Dd0b3iAi.js
  • index-lqI0My76.css
  • index.html
  • client.ts
  • ModelCard.vue
2026-02-14 07:13:36 +01:00
Adam Ladachowski c2f915c59c 💬 Commit message: Update 2026-02-14 07:10:06, 4 files, 12 lines
📁 Files changed: 4
📝 Lines changed: 12

  • index-D2fa7i11.css
  • index-Dd0b3iAi.js
  • index.html
  • GenerateView.vue
2026-02-14 07:10:06 +01:00
Adam Ladachowski bfe73808b8 💬 Commit message: Update 2026-02-14 07:04:24, 5 files, 12 lines
📁 Files changed: 5
📝 Lines changed: 12

  • screenshot.png
  • index-BsfOJ0lW.js
  • index-DUfzPzFk.css
  • index.html
  • GenerateView.vue
2026-02-14 07:04:24 +01:00
Adam Ladachowski 26e5b44c68 Fix Vue reactivity: use reactive() for message objects 2026-02-14 06:55:46 +01:00
Adam Ladachowski 374d3a0bee Add console logging to debug generation 2026-02-14 06:54:21 +01:00
Adam Ladachowski 8906bb8deb Rebuild UI assets 2026-02-14 06:53:51 +01:00
Adam Ladachowski e9480a18c2 Remove internal sd-server management, proxy to external sd-server
- Remove ProcessManager and process.py
- Add get_sd_server_url() config (env/config/default)
- Update routes to proxy to external sd-server URL
- Remove model switching (handled by external sd-server)
- Update CLI serve command
- Update tests for new architecture

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-14 06:39:35 +01:00
Adam Ladachowski be7cf0b6e7 💬 Commit message: Update 2026-02-14 05:32:51, 3 files, 113 lines
📁 Files changed: 3
📝 Lines changed: 113

  • reinstall.md
  • pyproject.toml
  • reinstall.py
2026-02-14 05:32:51 +01:00
Adam Ladachowski 9abb06abf4 💬 Commit message: Update 2026-02-14 05:02:03, 19 files, 158 lines
📁 Files changed: 19
📝 Lines changed: 158

  • tensors-3rows.png
  • tensors-all-sizes.png
  • tensors-final.png
  • tensors-fixed-align.png
  • tensors-fresh.png
  • tensors-labeled-rows.png
  • tensors-left-align.png
  • tensors-ratio-buttons.png
  • tensors-ratio-updated.png
  • tensors-ratio-v3.png
  • tensors-table-align.png
  • index-BPC1k--a.js
  • index-BvuF0jag.css
  • index-CP6ArsWF.css
  • index-CX4x_bxc.js
  • index.html
  • GenerateView.vue
  • app.ts
  • index.ts
2026-02-14 05:02:03 +01:00
Adam Ladachowski 5721ce223b 💬 Commit message: Update 2026-02-14 04:18:54, 32 files, 4255 lines
📁 Files changed: 32
📝 Lines changed: 4255

  • .coverage
  • __init__.py
  • index-BvuF0jag.css
  • index-CX4x_bxc.js
  • materialdesignicons-webfont-B7mPwVP_.ttf
  • materialdesignicons-webfont-CSr8KVlo.eot
  • materialdesignicons-webfont-Dp5v-WZN.woff2
  • materialdesignicons-webfont-PXm3-2wK.woff
  • index.html
  • vite.svg
  • .gitignore
  • extensions.json
  • README.md
  • index.html
  • package-lock.json
  • package.json
  • vite.svg
  • App.vue
  • client.ts
  • vue.svg
  • GalleryView.vue
  • GenerateView.vue
  • ModelCard.vue
  • SearchView.vue
  • main.ts
  • app.ts
  • index.ts
  • vite-env.d.ts
  • tsconfig.app.json
  • tsconfig.json
  • tsconfig.node.json
  • vite.config.ts
2026-02-14 04:18:54 +01:00
Adam Ladachowski 52b39a4f6b 💬 Commit message: Update 2026-02-14 03:41:07, 1 files, 278 lines
📁 Files changed: 1
📝 Lines changed: 278

  • index.html
2026-02-14 03:41:07 +01:00
Adam Ladachowski 1cad0fea94 💬 Commit message: Update 2026-02-14 03:29:49, 1 files, 21 lines
📁 Files changed: 1
📝 Lines changed: 21

  • index.html
2026-02-14 03:29:49 +01:00