Will Miao
40cbb2155c
refactor(baseModelApi): comment out failure message handling in bulk metadata refresh
2025-09-20 21:43:00 +08:00
Will Miao
a8d7070832
feat(civitai): enhance metadata fetching with error handling and cache validation
2025-09-20 21:35:34 +08:00
Will Miao
ab7266f3a4
fix(download_manager): streamline output directory retrieval by using settings directly, fixes #443
2025-09-20 08:12:14 +08:00
Will Miao
3053b13fcb
feat(metadata): enhance model processing with CivitAI metadata checks and new fields for archive DB status
2025-09-19 23:22:47 +08:00
Will Miao
f3544b3471
refactor(settings): replace getStorageItem with state.global.settings for default root retrieval
2025-09-19 22:57:05 +08:00
Will Miao
1610048974
refactor(metadata): update model fetching methods to return error messages alongside results
2025-09-19 16:36:34 +08:00
Will Miao
fc6f1bf95b
fix(lora_loader): remove unnecessary string stripping from lora names in loaders, fixes #441
2025-09-19 11:17:19 +08:00
Will Miao
67b274c1b2
feat(settings): add 'show_only_sfw' setting to manage content visibility
2025-09-18 21:55:21 +08:00
Will Miao
fb0d6b5641
feat(docs): add comprehensive documentation for LoRA Manager Civitai Extension, including features, installation, privacy, and usage guidelines
2025-09-18 19:33:47 +08:00
Will Miao
d30fbeb286
feat(example_images): add dedicated folder check and update settings handling for example images path, see #431
2025-09-18 19:22:29 +08:00
Will Miao
46e430ebbb
fix(utils): update API endpoint for fetching connected trigger words
2025-09-18 15:45:57 +08:00
Will Miao
bc4cd45fcb
fix(lora_manager): rename invalid hash folder removal to orphaned folders and update logging
2025-09-18 15:09:32 +08:00
Will Miao
bdc86ddf15
Refactor API endpoints to use '/api/lm/' prefix
...
- Updated all relevant routes in `stats_routes.py` and `update_routes.py` to include the new '/api/lm/' prefix for consistency.
- Modified API endpoint configurations in `apiConfig.js` to reflect the new structure, ensuring all CRUD and bulk operations are correctly routed.
- Adjusted fetch calls in various components and managers to utilize the updated API paths, including recipe, model, and example image operations.
- Ensured all instances of the old API paths were replaced with the new '/api/lm/' prefix across the codebase for uniformity and to prevent broken links.
2025-09-18 14:50:40 +08:00
Will Miao
ded17c1479
feat(routes): add model versions status endpoint and enhance metadata retrieval
2025-09-17 22:06:59 +08:00
Will Miao
933e2fc01d
feat(routes): integrate CivitAI model version retrieval for various model types
2025-09-17 15:47:30 +08:00
Will Miao
1cddeee264
style(autocomplete): remove font styles from dropdown for consistency
2025-09-17 11:04:51 +08:00
Will Miao
183c000080
Refactor ComfyUI: Remove legacy tags widget and related dynamic imports
...
- Deleted the legacy tags widget implementation from legacy_tags_widget.js.
- Updated trigger_word_toggle.js to directly import the new tags widget.
- Removed unused dynamic import functions and version checks from utils.js.
- Cleaned up lora_loader.js and lora_stacker.js by removing redundant node registration code.
2025-09-16 21:48:20 +08:00
Will Miao
adf7b6d4b2
chore(version): bump version to 0.9.3 in pyproject.toml
2025-09-16 18:55:59 +08:00
Will Miao
0566d50346
feat(middleware): add .mp4 to image extensions for cache control
2025-09-16 15:39:12 +08:00
Will Miao
4275dc3003
refactor(middleware): reorganize cache middleware into py directory and update import paths
2025-09-16 15:16:53 +08:00
Will Miao
30956aeefc
feat(middleware): add cache control middleware to manage response caching for image files
2025-09-16 15:05:31 +08:00
Will Miao
64e1dd3dd6
chore(release): update release notes for v0.9.3 with new features and bug fixes
2025-09-15 21:35:24 +08:00
Will Miao
0dc4b6f728
refactor(showcase): improve custom image identification logic in renderMediaItem and findLocalFile functions
2025-09-15 20:18:39 +08:00
Will Miao
86074c87d7
refactor(downloader): update download_to_memory calls to include response headers
2025-09-15 19:24:09 +08:00
Will Miao
6f9245df01
refactor(downloader): enhance download_to_memory to return response headers and improve error handling
2025-09-15 18:53:04 +08:00
Will Miao
4540e47055
refactor(baseModelApi): update example images path retrieval to use state settings
2025-09-15 18:07:22 +08:00
Will Miao
4bb8981e78
refactor(routes): update API endpoints for settings to use '/api/lm/settings', see #435
2025-09-15 16:22:59 +08:00
Will Miao
c49be91aa0
refactor(update_routes): exclude civitai folder from plugin update process
2025-09-15 16:04:20 +08:00
Will Miao
2b847039d4
refactor(settings-modal): adjust font size for path template preview
2025-09-15 15:38:01 +08:00
Will Miao
1147725fd7
feat(settings): add base model, author, and first tag option to download path templates
...
refactor(constants): reorder preset tag suggestions for consistency
2025-09-15 12:23:46 +08:00
Will Miao
26891e12a4
refactor(ExampleImagesManager): enhance path input handling with Enter key and blur events
2025-09-15 11:34:39 +08:00
Will Miao
2f7e44a76f
refactor(settings): Update synchronization logic
2025-09-15 10:30:06 +08:00
Will Miao
9366d3d2d0
feat: add API endpoint for fetching application settings and update frontend settings management
2025-09-14 22:57:17 +08:00
Will Miao
6b606a5cc8
refactor(CivArchiveModelMetadataProvider): remove session management and use downloader for HTTP requests
2025-09-13 20:04:41 +08:00
Will Miao
e5339c178a
fix: increase max-height for expanded sidebar tree children to improve visibility, fixes #403
2025-09-13 16:36:01 +08:00
Will Miao
1a76f74482
refactor(BaseModelRoutes): temporary comment out model description and creator checks
2025-09-13 13:07:25 +08:00
Will Miao
13f13eb095
fix: update preview versions keys for consistency in state management, fixes #406
2025-09-13 09:20:55 +08:00
Will Miao
125fdecd61
fix: handle missing download URL for primary file in metadata
2025-09-13 09:03:34 +08:00
Will Miao
d05076d258
feat: add CivArchive metadata provider and support for optional source parameter in downloads
2025-09-12 21:13:15 +08:00
Will Miao
00b77581fc
refactor(Downloader): change logger info statements to debug level for proxy usage
2025-09-12 15:20:34 +08:00
Will Miao
897787d17c
refactor(AutoComplete): simplify search term extraction and insertion logic
2025-09-12 14:35:25 +08:00
Will Miao
d5a280cf2b
fix: increase maxItems for autocomplete to improve user experience
2025-09-12 14:01:52 +08:00
Will Miao
a0c2d9b5ad
refactor: change logger info statements to debug level for improved logging granularity
2025-09-12 11:48:59 +08:00
Will Miao
e713bd1ca2
feat: add app-level proxy settings with UI integration and session management, fixes #382
2025-09-12 11:22:45 +08:00
Will Miao
beb8ff1dd1
refactor(ModelFileService): enhance auto-organize logic to track source directories for cleanup, see #407
2025-09-11 23:02:30 +08:00
Will Miao
6a8f0867d9
refactor: migrate auto_organize_models logic to service layer with dependency injection
2025-09-11 22:37:46 +08:00
Will Miao
51ad1c9a33
refactor(MetadataProcessor): comment out guidance parameter in generation params, fixes #425
2025-09-11 16:55:41 +08:00
Will Miao
8b4e3128ff
feat: add functionality to open file location from model modal and update translations, fixes #405
2025-09-11 15:54:32 +08:00
Will Miao
c66cbc800b
refactor: remove clear cache functionality and associated modal from settings manager
2025-09-11 15:21:06 +08:00
Will Miao
21941521a0
fix(sidebar): increase max-height for expanded sidebar tree children, see #403
2025-09-11 12:53:58 +08:00
Will Miao
0d33884052
refactor(ModelScanner): remove unused metadata fetching logic from model processing
2025-09-11 12:33:34 +08:00
Will Miao
415df49377
fix(SearchManager): update search options handling to modify relevant fields instead of replacing the entire object, see #415
2025-09-11 12:30:01 +08:00
Will Miao
f5f45002c7
fix(routes): skip tag check in model validation to allow empty tags
2025-09-11 12:10:00 +08:00
Will Miao
1edf7126bb
fix(routes): add support for metadata archive settings in model processing
2025-09-11 09:31:58 +08:00
Will Miao
a1a55a1002
feat(node_extractors): add PCTextEncode extractor to NODE_EXTRACTORS registry, fixes #424
2025-09-11 06:45:22 +08:00
Will Miao
45f5cb46bd
fix(utils): update base model retrieval to use model_data for consistency, fixes #423
2025-09-10 23:44:42 +08:00
Will Miao
1b5e608a27
fix(routes): enhance model processing to include checks for missing tags, description, and creator
2025-09-10 23:30:08 +08:00
Will Miao
a7df8ae15c
feat(civitai_client): enrich model version info with additional metadata
2025-09-10 23:28:19 +08:00
Will Miao
47ce0d0fe2
fix(model_scanner): comment out fetch missing metadata call to prevent potential issues
2025-09-10 22:08:44 +08:00
Will Miao
1fc8b45b68
feat(dependencies): add GitPython and aiosqlite to project dependencies
2025-09-10 20:33:45 +08:00
Will Miao
62f06302f0
refactor(routes): replace ModelMetadataProviderManager with get_default_metadata_provider in checkpoint, embedding, and lora routes
2025-09-10 20:29:26 +08:00
Will Miao
3e5cb223f3
refactor(metadata): remove outdated metadata provider summary documentation
2025-09-10 20:09:05 +08:00
Will Miao
4ee5b7481c
fix(downloader): set socket read timeout to 5 minutes for improved stability during large downloads
2025-09-10 18:49:35 +08:00
Will Miao
ba1ac58721
feat(metadata): trigger metadata provider update when enabling metadata archive database
2025-09-10 16:18:04 +08:00
Will Miao
a4fbeb6295
feat(metadata): update metadata archive management and remove provider priority settings
2025-09-10 15:55:29 +08:00
Will Miao
68f8871403
feat(metadata): add source tracking for SQLite metadata and implement Civitai API metadata validation
2025-09-10 11:20:58 +08:00
Will Miao
6fd74952b7
Refactor metadata handling to use unified provider system
...
- Replaced direct usage of Civitai client with a fallback metadata provider across all recipe parsers.
- Updated metadata service to improve initialization and error handling.
- Enhanced download manager to utilize a downloader service for file operations.
- Improved recipe scanner to fetch model information through the new metadata provider.
- Updated utility functions to streamline image downloading and processing.
- Added comprehensive logging and error handling for better debugging and reliability.
- Introduced `get_default_metadata_provider()` for simplified access to the default provider.
- Ensured backward compatibility with existing APIs and workflows.
2025-09-09 20:57:45 +08:00
Will Miao
1ea468cfc4
feat(metadata): enhance metadata archive management with download progress and status updates
2025-09-09 15:24:28 +08:00
Will Miao
14721c265f
Refactor download logic to use unified downloader service
...
- Introduced a new `Downloader` class to centralize HTTP/HTTPS download management.
- Replaced direct `aiohttp` session handling with the unified downloader in `MetadataArchiveManager`, `DownloadManager`, and `ExampleImagesProcessor`.
- Added support for resumable downloads, progress tracking, and error handling in the new downloader.
- Updated methods to utilize the downloader's capabilities for downloading files and images, improving code maintainability and readability.
2025-09-09 10:34:14 +08:00
Will Miao
821827a375
feat(metadata): implement metadata archive management and update settings for metadata providers
2025-09-08 22:41:17 +08:00
Will Miao
9ba3e2c204
feat(metadata): implement metadata providers and initialize metadata service
...
- Added ModelMetadataProvider and CivitaiModelMetadataProvider for handling model metadata.
- Introduced SQLiteModelMetadataProvider for SQLite database integration.
- Created metadata_service.py to initialize and configure metadata providers.
- Updated CivitaiClient to register as a metadata provider.
- Refactored download_manager to use the new download_file method.
- Added SQL schema for models, model_versions, and model_files.
- Updated requirements.txt to include aiosqlite.
2025-09-08 22:41:17 +08:00
Will Miao
d287883671
refactor(civitai): remove legacy get_model_description and _get_hash_from_civitai methods
2025-09-08 22:41:17 +08:00
Will Miao
ead34818db
feat(utils): implement forwardMiddleMouseToCanvas function and integrate it into JSON, LoRA, and Tags widgets, see #417
2025-09-08 21:49:16 +08:00
Will Miao
a060010b96
feat(loras_widget): add delayed preview tooltip for LoRA names, see #416
2025-09-08 21:03:22 +08:00
Will Miao
510d476323
feat(civitai): enhance LoRA matching by extracting hashes from metadata
2025-09-07 10:05:30 +08:00
Will Miao
1e7257fd53
fix(download): temporarily disable delay to speed up downloads
2025-09-06 18:47:18 +08:00
Will Miao
4ff1f51b1c
fix(docs): update portable package download link to version 0.9.2
2025-09-06 18:02:57 +08:00
Will Miao
74507cef05
feat(settings): add validation for settings.json to ensure required configuration is present
...
fix(usage_stats): handle initialization errors for usage statistics when no valid paths are configured, fixes #375
2025-09-06 17:39:51 +08:00
Will Miao
c23ab04d90
chore(release): update version to 0.9.2 and add release notes for bulk auto-organization feature
2025-09-06 14:38:00 +08:00
Will Miao
d50dde6cf6
refactor(i18n): remove legacy migration summary and transition to JSON format
2025-09-06 10:07:43 +08:00
Will Miao
fcb1fb39be
feat(controls): add toggleBulkMode functionality for Checkpoints and Embeddings pages
2025-09-06 08:15:18 +08:00
Will Miao
b0ef74f802
feat(LoraManager): add example images cleanup functionality to remove invalid or empty folders, see #402
2025-09-06 07:59:33 +08:00
Will Miao
f332aef41d
fix(BulkManager): prevent initialization on recipes page to avoid unnecessary processing
2025-09-05 22:45:23 +08:00
Will Miao
1f91a3da8e
fix(BulkManager): streamline cleanupBulkBaseModelModal to clear base model select options
2025-09-05 21:00:54 +08:00
Will Miao
16840c321d
feat(api): enhance fetchModelDescription to improve error handling and response parsing
2025-09-05 20:57:36 +08:00
Will Miao
c109e392ad
feat(auto-organize): add auto-organize functionality for selected models and update context menu
2025-09-05 20:51:30 +08:00
Will Miao
52d23d9b75
feat(constants): update model tags to include 'realistic', 'anime', 'toon', and 'furry'
2025-09-05 19:53:29 +08:00
Will Miao
4c4e6d7a7b
feat(release-notes): update version to 0.9.1 and enhance bulk operations documentation
2025-09-05 18:15:08 +08:00
Will Miao
03b6e78705
feat(locales): add bulk base model functionality in multiple languages and update toast messages
2025-09-05 18:00:21 +08:00
Will Miao
6dc2811af4
feat(bulk-modal): refactor bulk base model modal for improved UI and functionality, fixes 352
2025-09-05 17:36:54 +08:00
Will Miao
e6425dce32
feat(bulk-manager): enhance bulk mode handling by skipping actions when a modal is open
2025-09-05 17:07:57 +08:00
Will Miao
95e2ff5f1e
Implement centralized event management system with priority handling and state tracking
...
- Enhanced EventManager class to support priority-based event handling, conditional execution, and automatic cleanup.
- Integrated event management into BulkManager for global keyboard shortcuts and marquee selection events.
- Migrated mouse tracking and node selector events to UIHelpers for better coordination.
- Established global event handlers for context menu interactions and modal state management.
- Added comprehensive documentation for event management implementation and usage.
- Implemented initialization logic for event management, including error handling and cleanup on page unload.
2025-09-05 16:56:26 +08:00
Will Miao
92ac487128
feat(bulk-base-model): implement bulk base model setting functionality with UI and context menu integration
2025-09-05 14:07:03 +08:00
Will Miao
3250fa89cb
feat(selection): implement marquee selection for bulk operations
2025-09-05 11:24:48 +08:00
Will Miao
7475de366b
feat(context-menu): enhance bulk workflow options with append and replace actions
2025-09-05 11:24:48 +08:00
Will Miao
affb507b37
feat(sync): enhance translation key synchronization to remove obsolete keys
2025-09-05 11:24:48 +08:00
Will Miao
fb2b69b787
feat(tags): refactor preset tags to constants for better maintainability
2025-09-05 09:27:45 +08:00
Will Miao
29a05f6533
Move test_i18n.py to scripts folder
2025-09-05 08:48:20 +08:00
Will Miao
9fa3fac973
feat(locales): add bulk tag management translations for multiple languages
2025-09-05 08:43:01 +08:00
Will Miao
904b0d104a
feat(sync): add translation key synchronization script for locale management
2025-09-05 08:35:20 +08:00