4 Commits
Author SHA1 Message Date
JiDe Zhang f15b9e3d20 refactor: Remove BinaryFileUploader node completely
1. Remove BinaryFileUploader class definition from py/nodes.py
2. Remove related imports and registrations from __init__.py
3. Update README.md to remove Binary File Uploader documentation
4. Update preliminary-design.md and detailed-design.md design descriptions
5. Update test files to remove BinaryFileUploader tests
6. Keep historical documents as change records

This simplifies the node architecture by removing the upload functionality.
Users can now use BinaryFileLoader node with file paths for more direct
file handling approach, which is more consistent with ComfyUI patterns.

refactor: 完全删除 BinaryFileUploader 节点

1. 从 py/nodes.py 中删除 BinaryFileUploader 类定义
2. 从 __init__.py 中删除相关的导入和注册
3. 更新 README.md 删除 Binary File Uploader 文档
4. 更新 preliminary-design.md 和 detailed-design.md 设计描述
5. 更新测试文件删除 BinaryFileUploader 测试
6. 保留历史文档作为变更记录

这通过删除上传功能简化了节点架构。用户现在可以使用 BinaryFileLoader
节点配合文件路径进行更直接的文件处理,这与 ComfyUI 模式更加一致.
2025-06-09 12:11:36 +08:00
JiDe Zhang d84c59814d fix: Binary File Loader now outputs direct binary data
Modified BinaryFileLoader to return binary content directly instead of
wrapped in dictionary structure. Updated related components and documentation.

- BinaryFileLoader: Return bytes directly, not {'content': bytes, ...}
- BinaryFileSaver: Handle direct binary data input
- BinaryFileUploader: Return direct binary data
- Updated all tests and documentation to reflect new behavior
- Simplified interface: users access binary_data directly

修复二进制文件加载器直接输出二进制数据

修改 BinaryFileLoader 直接返回二进制内容而不是包装在字典结构中。
更新了相关组件和文档。

- BinaryFileLoader: 直接返回 bytes,而不是 {'content': bytes, ...}
- BinaryFileSaver: 处理直接的二进制数据输入
- BinaryFileUploader: 返回直接的二进制数据
- 更新所有测试和文档以反映新行为
- 简化接口:用户直接访问 binary_data
2025-06-06 15:10:37 +08:00
JiDe Zhang 277586348c fix: Update BinaryFileLoader to output both binary data and file path
- Add file_path as second output to BinaryFileLoader node
- Change output name from 'dci_file_path' to 'file_path' for better genericity
- Update return types to ('BINARY_DATA', 'STRING')
- Update return names to ('binary_data', 'file_path')
- Modify load_binary_file method to return tuple with file path
- Update error handling to return empty string for file path on failure
- Update test files to handle new dual output interface
- Update documentation in README.md and detailed-design.md

This change makes BinaryFileLoader more useful by providing both the loaded
binary data and the source file path, enabling better workflow connectivity
in ComfyUI. The generic 'file_path' name reflects that this node can load
any binary file format, not just DCI files.

修复:更新BinaryFileLoader节点同时输出二进制数据和文件路径

- 为BinaryFileLoader节点添加file_path作为第二个输出
- 将输出名称从'dci_file_path'改为'file_path'以提高通用性
- 更新返回类型为('BINARY_DATA', 'STRING')
- 更新返回名称为('binary_data', 'file_path')
- 修改load_binary_file方法返回包含文件路径的元组
- 更新错误处理,失败时为文件路径返回空字符串
- 更新测试文件以处理新的双输出接口
- 更新README.md和detailed-design.md中的文档

此更改通过提供加载的二进制数据和源文件路径,使BinaryFileLoader更加有用,
在ComfyUI中实现更好的工作流连接性。通用的'file_path'名称反映了此节点
可以加载任何二进制文件格式,而不仅仅是DCI文件。
2025-06-05 21:05:40 +08:00
JiDe Zhang fcccf0da29 refactor: Reorganize project structure following ComfyUI-Easy-Use best practices 2025-06-04 16:44:33 +08:00