Commit Graph
12 Commits
Author SHA1 Message Date
HuangYuChuh 79ce4627db test: remove test for deleted comfyui_client.py script 2026-04-01 11:19:27 +08:00
科林 KELINandGitHub cbee24f850 fix: duplicate nodes losing parameters due to schema name collision (#87) (#88)
Root cause: when a workflow has multiple nodes of the same type (e.g. two
GeminiNanoBanana2), extract_schema_params gave them identical parameter
names (e.g. both "seed"). build_final_schema deduped them, but the
unique names were never synced back to ui_parameters. When the frontend
saved using ui_parameters, the duplicate names caused one parameter to
silently overwrite the other.

Changes:
- Refactor _get_auto_mapping to only decide exposure/required, not naming
- Add _assign_parameter_names for global context-aware naming:
  - Single node of a type → simple name (seed, prompt)
  - Multiple nodes → disambiguate with node title or node_id
- Add sync_names_back option to build_final_schema so ui_parameters
  and parameters stay consistent
- Enrich descriptions with node context for duplicate types

Closes #87
2026-03-30 16:01:31 +08:00
d883e0ab0c feat: add workflow dependency checker and installer (#76)
Add a three-tier dependency detection system for ComfyUI workflows:
1. ComfyUI Manager API — node status + import-fail diagnostics
2. ComfyUI Registry API — cloud search for unknown nodes
3. extension-node-map.json — offline fallback

Features:
- Detect missing custom nodes (not_installed / import_fail / unknown)
- Detect missing model files with auto-download support via Manager
- i18n text report formatting (zh/en) with UNIX-style layout
- Three-strategy node installer (Manager queue → cm-cli → git clone)
- Model download via Manager /manager/queue/install_model
- CLI command `check-deps` for Agent integration
- REST API endpoints with locale parameter
- 28 unit tests covering all detection and formatting logic

Co-authored-by: Kelin <kelin@KelindeMacBook-Air.local>
2026-03-30 00:27:00 +08:00
Kelin 2b81876738 fix(schema): support ComfyUI subgraph node IDs in schema extraction
ComfyUI subgraph workflows use colon-separated node IDs like "14:10"
instead of plain integers. The previous int() coercion crashed on
these IDs with ValueError. Store node_id as string throughout the
schema pipeline to support both plain and subgraph workflows.
2026-03-24 13:48:07 +08:00
ChroniCat 9042b0e86e fix(client): finalize history when queued job disappears 2026-03-23 15:08:07 +08:00
Kelin e83a5cb278 Revert "fix(ui): continue userdata fallback probes on empty results"
This reverts commit edc4948a3c.
2026-03-21 11:55:26 +08:00
Kelin 76973cd286 Revert "test(ui): restore workflow import regression coverage"
This reverts commit bf8228e559.
2026-03-21 11:55:26 +08:00
Kelin bf8228e559 test(ui): restore workflow import regression coverage 2026-03-21 11:51:43 +08:00
Kelin edc4948a3c fix(ui): continue userdata fallback probes on empty results 2026-03-21 11:50:09 +08:00
Kelin 85e3584904 chore: remove unused workflow import tests 2026-03-18 15:31:55 +08:00
Kelin b6fb9274ef fix(ui): correct workflow import edge cases 2026-03-18 09:28:22 +08:00
lgldlk fbba943f40 test(ui): cover workflow bulk import helpers 2026-03-18 02:07:48 +08:00