Commit Graph
11 Commits
Author SHA1 Message Date
科林_Cyril Pilgrim 8a274ad02a refactor(core): simplify workflow identification and update default ui port
Motivation:
1. Maintaining a redundant 'workflow_id' in schema.json was error-prone and confusing for users.
2. The previous default port 8189 frequently collided with other AI services or ComfyUI instances during multi-server deployment.

Implementation:
1. Revoked 'workflow_id' reliance in schema logic; the system now strictly uses the directory name as the unique identifier.
2. Updated default web UI port to 18189 and added support for the 'OPENCLAW_UI_PORT' environment variable across scripts and settings.
3. Synchronized documentation and UI launcher scripts to reflect these changes.
2026-03-12 15:39:17 +08:00
科林_Cyril Pilgrim 425cdd0db4 feat(ui): refactor data structure and enhance configuration migration
Motivation:
The previous data structure for workflows and schemas lacked cohesion and was difficult to maintain manually. Additionally, a more robust and flexible migration system was needed to transfer skill configurations across different environments.

Implementation:
1. Unified the data hierarchy into a directory-based structure: 'data/<server>/<workflow>/'.
2. Enhanced 'transfer_manager.py' and 'transfer_bundle.py' for environmental-aware configuration migration.
3. Updated frontend JS/CSS and Flask routes to support the new directory-centric asset management.
4. Revamped English and Chinese READMEs to prioritize safe installation and clear configuration workflows.
2026-03-12 15:05:40 +08:00
科林_Cyril Pilgrim f3a9919814 feat(ui): add configuration export and import flow
Motivation:
Allows users to easily migrate or back up their skill configurations, server settings, and workflow mappings across different environments, improving setup mobility.

Implementation:
Developed a bundle system in scripts/shared/transfer_bundle.py and scripts/transfer_manager.py for state serialization. Integrated this into the Flask backend and frontend UI, adding components for export/import actions with pre-check validation. Refactored README files to document the migration path and refined the installation guide.
2026-03-12 12:05:59 +08:00
科林_Cyril Pilgrim d4388a5b41 fix(core): improve multi-server configuration and security
Motivation:
To prevent path traversal via server/workflow identifiers and ensure relative path consistency for output directories across different server environments.

Implementation:
- Added is_valid_identifier validation to comfyui_client and server_manager.
- Standardized default output_dir to relative './outputs' in config and settings.
2026-03-08 23:28:14 +08:00
科林_Cyril Pilgrim bc4097ac2d refactor(backend): support multi-server workflow isolation and registry mapping
Motivation:
The backend previously assumed a single global ComfyUI server, making it impossible to switch between environments or add remote nodes.

Implementation:
Refactored UIStorageService and scripts to organize workflows into server-specific subdirectories. Introduced ServerModel and runtime configuration loader to handle multi-server routing.
2026-03-08 17:40:03 +08:00
lgldlk 3f11d2efd0 refactor: update ComfyUI client 2026-03-08 01:31:54 +08:00
lgldlk 9dfd8b6646 feat: add shared utility modules 2026-03-08 01:31:26 +08:00
科林_Cyril Pilgrim 357001d082 docs: update registry list command instructions to include --agent flag
Motivation:
配合 registry.py 的输出模式重构,显式要求大模型/集成节点侧使用附加参数以获取深层暴露参数,避免参数解析丢失。

Implementation:
- 分别在 SKILL.md、README.md 以及 README.zh.md 的集成和指引区块中追加了 --agent 标签声明。
2026-03-07 23:59:50 +08:00
科林_Cyril Pilgrim 5b190f7f53 feat(scripts): format registry list command output with JSON indentation
Motivation:
原先 registry.py 输出的均为一行未经格式化的压缩 JSON,对于在终端直接调用命令的人类用户而言缺乏可读性且难以审查工作流结构。

Implementation:
- 在脚本 scripts/registry.py 打印输出的 json.dumps 方法中追加 indent=2 参数,以保证在终端呈现出优美的嵌套层级和换行,同时不会影响大模型将结果作为标准 JSON 进行解析。
2026-03-07 23:56:12 +08:00
科林_Cyril Pilgrim 8aae5ad119 feat(ui/registry): implement native UI, i18n system and workflow toggle control
Motivation:
消除对繁重前端框架及外部 CDN 依赖的诉求,以大幅减少构建体积并提升原生性能;同时通过纯原生的中英双语切换和配置面板层级的工作流开关,增强 Agent 调度能力的安全过滤与本地化体验。

Implementation:
- 移除 Vite 静态资产库,全面起用零依赖的原生 HTML、基于 CSS 关键帧的 Toast 及 JS DOM 控制重构面板逻辑。
- 加入基于 localStorage 数据缓存、无侵入更新的纯原生即时多语言字典。
- 后端 (app.py) 增设对于工作流配置的 'enabled' 判断及支持热插拔修改的 API '/toggle' 接口。
- 基础侧 (registry.py) 修改字典表遍历条件,实现对无效/弃用配置在大模型面前的物理隔离。
- 重构全量技能模板 (SKILL.md) 为英文并替换绝对路径为相对路径以利于发布。
2026-03-07 23:26:59 +08:00
科林_Cyril Pilgrim 33beec15d9 feat: scaffold ComfyUI OpenClaw skill and document workflow requirements
- add runnable local bridge (registry/client/ui scaffold)\n- add sample workflow/schema structure and dependencies\n- document API-format export requirement\n- document Save Image end-node requirement for stable outputs
2026-03-07 14:24:35 +08:00