Commit Graph
2 Commits
Author SHA1 Message Date
JiDe Zhang 8b5b02d9c6 fix: resolve node connectivity issues by unifying BINARY_DATA type
DCIPreviewNode and BinaryFileSaver could not connect to DCIFileNode output
due to data type mismatch. This change unifies all binary data handling
to use the BINARY_DATA type consistently across all nodes.

Changes:
- Change DCIFileNode output type from DCI_BINARY_DATA to BINARY_DATA
- Remove unused DCI_BINARY_DATA type from codebase and documentation
- Update all related documentation and test files
- Add connectivity tests to verify the fix
- Simplify data type system for better node compatibility

This ensures all DCI-related nodes can properly connect and work together
in ComfyUI workflows.
2025-06-09 15:46:42 +08:00
JiDe Zhang 57d780292a fix: Improve ComfyUI custom node implementation following best practices
- Add unique DCI_ prefix to all node names to avoid conflicts
- Define custom data types (DCI_IMAGE_DATA, DCI_BINARY_DATA, BINARY_DATA)
- Replace bare except statements with specific exception handling
- Improve folder_paths import error handling with proper fallbacks
- Update install scripts to use recommended 'python -m pip' invocation
- Update documentation to reflect node naming changes
- Add comprehensive test suite for node registration validation

修复:按照最佳实践改进ComfyUI自定义节点实现

- 为所有节点名称添加唯一的DCI_前缀以避免冲突
- 定义自定义数据类型(DCI_IMAGE_DATA, DCI_BINARY_DATA, BINARY_DATA)
- 将裸except语句替换为具体的异常处理
- 改进folder_paths导入错误处理,提供适当的回退方案
- 更新安装脚本使用推荐的'python -m pip'调用方式
- 更新文档以反映节点命名变更
- 添加全面的节点注册验证测试套件
2025-06-04 17:22:37 +08:00