dsh-comfyui 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +4 -6
- package/README.md +4 -6
- package/client/client.js +329 -174
- package/client/client.js.map +1 -1
- package/lib/comfyui.d.ts +14 -3
- package/lib/comfyui.js +31 -10
- package/lib/skill.js +27 -3
- package/lib/tools.d.ts +21 -4
- package/lib/tools.js +260 -153
- package/package.json +7 -5
- package/lib/templates.d.ts +0 -36
- package/lib/templates.js +0 -84
package/README.en.md
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
>
|
|
21
21
|
> | dsh-comfyui | Paired DeepSeek Harness | Notes |
|
|
22
22
|
> | --- | --- | --- |
|
|
23
|
-
> | **0.5.x (latest, `latest` tag)** | **>= 0.1.2** (incl. 0.1.5 / 0.1.6 / 0.1.7 prereleases) | From 0.5.3 the settings page works with dsh 0.1.7's settings model (saves apply live, no restart) |
|
|
23
|
+
> | **0.5.x (latest, `latest` tag)** | **>= 0.1.2, < 0.3** (incl. 0.1.5 / 0.1.6 / 0.1.7 / 0.2.x prereleases) | From 0.5.3 the settings page works with dsh 0.1.7's settings model (saves apply live, no restart); from 0.5.5 it supports dsh 0.2.x |
|
|
24
24
|
> | **0.3.x (beta line, `beta` tag)** | **0.1.1** | On older dsh versions stay on the 0.3.x line |
|
|
25
25
|
>
|
|
26
26
|
> Install: `dsh plugin --profile web add dsh-comfyui` (latest 0.5.x) / `dsh plugin --profile web add dsh-comfyui@beta` (0.3.x for older hosts).
|
|
@@ -31,17 +31,16 @@
|
|
|
31
31
|
|
|
32
32
|
The agent drives ComfyUI directly, no canvas work needed:
|
|
33
33
|
|
|
34
|
-
- `
|
|
35
|
-
- `comfyui_object_info` — list the node definitions your ComfyUI server supports, so the agent can build valid workflows on the fly.
|
|
36
|
-
- `comfyui_workflow` — manage the plugin's runnable-workflow library: `list` (server address, local ComfyUI dirs, load-area media, per-workflow parameter lists), `run` (by id + parameter overrides), `skill` (on-demand read of a workflow's skill pack), `refresh` (re-derive a parameter snapshot).
|
|
34
|
+
- `comfyui_workflow` — **the main entry**: to generate, `list` the library and pick a workflow, then `run` it (by id + parameter overrides; misspelt keys are rejected, parameters not passed use their defaults). `list` also carries the server address, local ComfyUI dirs, load-area media and each workflow's parameter list; `skill` reads a workflow's skill pack on demand, `refresh` re-derives a parameter snapshot. `mode: "sync"` waits for the result, `mode: "async"` runs a background job (recommended for video/audio) — the agent ends its turn after submitting and is woken by the host on completion; once a run finishes, the agent pastes the ready-made Markdown media references from the result into its reply (the same for sync, async and PTC mode) with a one-sentence summary of what was generated; video/audio links get an inline player right below them.
|
|
37
35
|
- `comfyui_skill` — read and write workflow skill packs (`list` / `read` / `write` / `append` / `mkdir` / `rename` / `delete` / `enable` / `require`); the agent can write its lessons back into a pack and reuse them across sessions.
|
|
36
|
+
- `comfyui_object_info` + `comfyui_run` — **secondary**, for hand-written workflows only (temporary tests, or building a workflow for this environment): check the nodes and available models with `comfyui_object_info`, write the API JSON, run it with `comfyui_run`. Once it works, save it to the library with **New workflow** in the panel.
|
|
38
37
|
|
|
39
38
|
### UI panel
|
|
40
39
|
|
|
41
40
|
A right-docked panel with three tabs:
|
|
42
41
|
|
|
43
42
|
- **Workflows** — the runnable workflow library (create / edit / run / delete / import `.json`, tag classification with a dropdown filter); **preset export / import**: bundle selected workflows (all pre-selected; pack-bearing rows are annotated) with their parameters and skill packs into one `.zip` preset package — the completion notice reports what was actually packaged: workflow names, file name, size, and warnings; drag a preset package **onto the dialog** (or pick a file) to analyze it and import the selection, with skill packs restored byte-for-byte (thousand-file template packs included). Imports always create new workflows — nothing in the library is overwritten; auto-detects graphs saved on the ComfyUI server and can **extract** them into runnable workflows (whole / per component / main flow only when a canvas holds several independent flows).
|
|
44
|
-
- **Assets** — every generated result with preview, download, and hover-to-delete (also removes the file from the ComfyUI output directory).
|
|
43
|
+
- **Assets** — every generated result (cards show the workflow name and filename) with preview, download, and hover-to-delete (also removes the file from the ComfyUI output directory).
|
|
45
44
|
- **Queue** — live queue plus full history in five states, with delete / interrupt / rerun / clear / free-memory actions; plugin-submitted jobs show a progress bar and preview.
|
|
46
45
|
|
|
47
46
|
Clicking the "ComfyUI Panel" button in the session header probes the backend's connection to ComfyUI: when it cannot connect, the panel closes again (the button does not stay highlighted) and a toast at the top of the page explains why (with the concrete reason), asking you to start the local ComfyUI (so the backend can see its port) or check the remote server URL in settings; a healthy connection stays silent, with a brief "Connected" note only when it recovers from a failure.
|
|
@@ -117,7 +116,6 @@ For a remote ComfyUI behind an authenticated proxy, provide the key via credenti
|
|
|
117
116
|
|
|
118
117
|
- DeepSeek Harness (`web` / `desktop` profile)
|
|
119
118
|
- A running [ComfyUI](https://github.com/comfystack/ComfyUI) server (default `http://127.0.0.1:8188`)
|
|
120
|
-
- The `video` template needs [ComfyUI-WanVideoWrapper](https://github.com/kijai/ComfyUI-WanVideoWrapper) and Wan 2.1 models
|
|
121
119
|
|
|
122
120
|
## License
|
|
123
121
|
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
>
|
|
21
21
|
> | dsh-comfyui | 配对的 DeepSeek Harness | 说明 |
|
|
22
22
|
> | --- | --- | --- |
|
|
23
|
-
> | **0.5.x(最新,`latest` tag)** | **≥ 0.1.2**(含 0.1.5 / 0.1.6 / 0.1.7 预发布版) | 0.5.3 起兼容 dsh 0.1.7
|
|
23
|
+
> | **0.5.x(最新,`latest` tag)** | **≥ 0.1.2,< 0.3**(含 0.1.5 / 0.1.6 / 0.1.7 / 0.2.x 预发布版) | 0.5.3 起兼容 dsh 0.1.7 的设置机制(设置页保存直接生效,无需重启);0.5.5 起兼容 dsh 0.2.x |
|
|
24
24
|
> | **0.3.x(beta 线,`beta` tag)** | **0.1.1** | 老版本 dsh 请留在 0.3.x 线 |
|
|
25
25
|
>
|
|
26
26
|
> 安装:`dsh plugin --profile web add dsh-comfyui`(装最新 0.5.x)/ `dsh plugin --profile web add dsh-comfyui@beta`(老宿主装 0.3.x)。
|
|
@@ -31,17 +31,16 @@
|
|
|
31
31
|
|
|
32
32
|
Agent 直接驱动 ComfyUI,无需手动操作画布:
|
|
33
33
|
|
|
34
|
-
- `
|
|
35
|
-
- `comfyui_object_info` —— 列出服务器支持的节点定义,让 Agent 现场构造合法工作流。
|
|
36
|
-
- `comfyui_workflow` —— 管理插件工作流库:`list`(含服务器地址、本机 ComfyUI 目录、加载区素材、每个工作流的参数清单)、`run`(按 id 运行 + 参数覆盖)、`skill`(按需读取某工作流的技能包)、`refresh`(重算参数快照)。
|
|
34
|
+
- `comfyui_workflow` —— **主入口**:生成内容就先 `list` 挑库里的工作流,再 `run`(按 id 运行 + 参数覆盖,键名写错会被拒绝,未传的参数使用默认值)。`list` 还带服务器地址、本机 ComfyUI 目录、加载区素材和每个工作流的参数清单;`skill` 按需读取某工作流的技能包,`refresh` 重算参数快照。`mode: "sync"` 等待结果,`mode: "async"` 后台任务(视频/音频强烈建议)——提交后 Agent 直接结束本轮,完成时由宿主通知唤醒;生成完毕后统一由 Agent 把结果里的 Markdown 媒体引用贴进回复(同步、异步、PTC 模式一致),并用一句话说明生成了什么;视频/音频链接下方会自动出现内嵌播放器。
|
|
37
35
|
- `comfyui_skill` —— 读写工作流技能包(`list` / `read` / `write` / `append` / `mkdir` / `rename` / `delete` / `enable` / `require`),Agent 可把踩坑经验写回技能包,跨会话复用。
|
|
36
|
+
- `comfyui_object_info` + `comfyui_run` —— **次要**,只用于手写工作流(临时测试,或按本机环境新建工作流):先用 `comfyui_object_info` 查节点与可用模型,再手写 API JSON,用 `comfyui_run` 运行测试。测通后可在面板「新建工作流」存进库。
|
|
38
37
|
|
|
39
38
|
### UI 面板
|
|
40
39
|
|
|
41
40
|
右侧停靠面板,三个页签:
|
|
42
41
|
|
|
43
42
|
- **工作流** —— 可运行工作流库(新建 / 编辑 / 运行 / 删除 / 导入 `.json`,标签分类 + 下拉筛选);支持**预设导出 / 导入**:把选中的工作流(默认全选,带技能包的行有标注)连同参数与技能包打包成 `.zip` 预设包带走,导出完成后的回执显示实际打包的工作流名单、文件名、体积与警告;把预设包**拖进对话框**(或点选文件)即可整包分析、按需导入,技能包原样完整还原(上千文件的模板大包也没问题),始终创建为新工作流、不覆盖现有库;自动检测 ComfyUI 端保存的图工作流,支持**提取**为可运行工作流(画布含多个独立流程时可选整体 / 按分量 / 主流程)。
|
|
44
|
-
- **资产** ——
|
|
43
|
+
- **资产** —— 所有生成结果(卡片显示工作流名与文件名),预览、下载、悬停可删除(同步清理 ComfyUI 输出目录里的文件)。
|
|
45
44
|
- **队列** —— 实时队列 + 历史任务五态展示,支持删除 / 中断 / 重跑 / 清空 / 释放内存,插件提交的任务带进度条与预览。
|
|
46
45
|
|
|
47
46
|
点击会话头部的「ComfyUI 面板」按钮时会自动探测后端与 ComfyUI 的连接:连不上时面板自动收起(按钮不高亮),页面顶部弹出提醒(含具体原因),提示启动本机 ComfyUI(确保后端能检测到端口)或到设置页检查远程服务器地址;连接正常时静默,仅在不通→恢复时短暂显示「连接正常」。
|
|
@@ -117,7 +116,6 @@ dsh plugin --profile desktop add dsh-comfyui
|
|
|
117
116
|
|
|
118
117
|
- DeepSeek Harness(`web` / `desktop` profile)
|
|
119
118
|
- 一个运行中的 [ComfyUI](https://github.com/comfystack/ComfyUI) 服务器(默认 `http://127.0.0.1:8188`)
|
|
120
|
-
- `video` 模板需要 [ComfyUI-WanVideoWrapper](https://github.com/kijai/ComfyUI-WanVideoWrapper) 与 Wan 2.1 模型
|
|
121
119
|
|
|
122
120
|
## License
|
|
123
121
|
|