dsh-comfyui-canvas 0.1.13 → 0.1.14

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  本仓库变更记录(与版本号对应)。
4
4
 
5
+ ## [0.1.14] - 2026-12-04
6
+
7
+ ### Fixed
8
+ - 桥接前端 `bridge.js`:修复 ComfyUI 1.59.x 下 `setup()` 早于 `app.graph` 构造完成导致 `if (!graph) return` 提前退出的问题——原本会让初始上报与写命令监听同时未注册,所有写命令超时。改为等待 graph 就绪后再一次性注册(含幂等保护与 ~15s 超时上限),读写恢复正常。
9
+
10
+ ### Changed
11
+ - 仓库地址从已失效的 GitHub(`wbin0001/dsh-comfyui-canvas`)迁移到 CNB(`Loxi009/dsh-comfyui-canvas`):`package.json` 的 repository/homepage/bugs、README 徽章与 clone 地址同步更新。
12
+ - 版本对齐 0.1.14(插件 package.json + 桥接节点 version.json + README 徽章)。
13
+
5
14
  ## [0.1.13] - 2026-10-01
6
15
 
7
16
  ### Fixed
package/README.md CHANGED
@@ -3,8 +3,7 @@
3
3
  > [中文](README.zh.md) · English
4
4
 
5
5
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
- [![Version](https://img.shields.io/badge/version-0.1.13-brightgreen.svg)](https://github.com/wbin0001/dsh-comfyui-canvas/releases)
7
- [![GitHub Stars](https://img.shields.io/github/stars/wbin0001/dsh-comfyui-canvas.svg?style=social)](https://github.com/wbin0001/dsh-comfyui-canvas)
6
+ [![Version](https://img.shields.io/badge/version-0.1.14-brightgreen.svg)](https://cnb.cool/Loxi009/dsh-comfyui-canvas/-/releases)
8
7
  [![DSH](https://img.shields.io/badge/DSH-v0.1.x-blueviolet.svg)](https://github.com/DeepSeek-Harness/DSH)
9
8
  [![ComfyUI](https://img.shields.io/badge/ComfyUI-0.34+-orange.svg)](https://github.com/comfyanonymous/ComfyUI)
10
9
  [![Canvas](https://img.shields.io/badge/canvas-split--screen-teal.svg)](docs/architecture.html)
@@ -98,9 +97,9 @@ Then restart ComfyUI and load the canvas page once (the injected `bridge.js` rep
98
97
  # option 1: pull the npm package and copy the bridge out of it
99
98
  npm pack dsh-comfyui-canvas && tar -xzf dsh-comfyui-canvas-*.tgz && cp -r package/comfyui-bridge/ComfyUI-DSH-Canvas <ComfyUI>/custom_nodes/
100
99
 
101
- # option 2: sparse-checkout just the bridge from the GitHub repo
100
+ # option 2: sparse-checkout just the bridge from the CNB repo
102
101
  cd <ComfyUI>/custom_nodes
103
- git clone --depth 1 --filter=blob:none --sparse https://github.com/wbin0001/dsh-comfyui-canvas.git
102
+ git clone --depth 1 --filter=blob:none --sparse https://cnb.cool/Loxi009/dsh-comfyui-canvas.git
104
103
  cd dsh-comfyui-canvas && git sparse-checkout set comfyui-bridge/ComfyUI-DSH-Canvas
105
104
  mv comfyui-bridge/ComfyUI-DSH-Canvas ../ComfyUI-DSH-Canvas && cd .. && rm -rf dsh-comfyui-canvas
106
105
  ```
package/README.zh.md CHANGED
@@ -3,8 +3,7 @@
3
3
  > 中文 · [English](README.md)
4
4
 
5
5
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
- [![Version](https://img.shields.io/badge/version-0.1.13-brightgreen.svg)](https://github.com/wbin0001/dsh-comfyui-canvas/releases)
7
- [![GitHub Stars](https://img.shields.io/github/stars/wbin0001/dsh-comfyui-canvas.svg?style=social)](https://github.com/wbin0001/dsh-comfyui-canvas)
6
+ [![Version](https://img.shields.io/badge/version-0.1.14-brightgreen.svg)](https://cnb.cool/Loxi009/dsh-comfyui-canvas/-/releases)
8
7
  [![DSH](https://img.shields.io/badge/DSH-v0.1.x-blueviolet.svg)](https://github.com/DeepSeek-Harness/DSH)
9
8
  [![ComfyUI](https://img.shields.io/badge/ComfyUI-0.34+-orange.svg)](https://github.com/comfyanonymous/ComfyUI)
10
9
  [![Canvas](https://img.shields.io/badge/canvas-split--screen-teal.svg)](docs/architecture.html)
@@ -104,7 +103,7 @@ npm pack dsh-comfyui-canvas && tar -xzf dsh-comfyui-canvas-*.tgz && cp -r packag
104
103
 
105
104
  # 方式 2:从 GitHub 仓库稀疏检出桥接节点目录
106
105
  cd <ComfyUI>/custom_nodes
107
- git clone --depth 1 --filter=blob:none --sparse https://github.com/wbin0001/dsh-comfyui-canvas.git
106
+ git clone --depth 1 --filter=blob:none --sparse https://cnb.cool/Loxi009/dsh-comfyui-canvas.git
108
107
  cd dsh-comfyui-canvas && git sparse-checkout set comfyui-bridge/ComfyUI-DSH-Canvas
109
108
  mv comfyui-bridge/ComfyUI-DSH-Canvas ../ComfyUI-DSH-Canvas && cd .. && rm -rf dsh-comfyui-canvas
110
109
  ```
@@ -713,8 +713,18 @@ function postResult(cmdId, ok, raw) {
713
713
  app.registerExtension({
714
714
  name: "ComfyUI-DSH-Canvas",
715
715
  setup() {
716
- const graph = app.graph;
717
- if (!graph) return;
716
+ // v0.1.14 fix: on ComfyUI 1.59.x the extension setup() may run before
717
+ // app.graph is constructed. The old `if (!graph) return;` then skipped
718
+ // BOTH the initial report and the write-command listener registration,
719
+ // so no frontend ever executed commands and every write timed out.
720
+ // Defer the whole wiring until the graph exists instead of bailing out.
721
+ // Guarded + capped so it installs exactly once and never polls forever.
722
+ let dshInstalled = false;
723
+ const dshInstall = () => {
724
+ if (dshInstalled) return true;
725
+ const graph = app.graph;
726
+ if (!graph) return false;
727
+ dshInstalled = true;
718
728
 
719
729
  // M0: report on canvas changes, preserving any existing handler.
720
730
  // The arrow keeps `this` from the setup scope; forward the graph itself so
@@ -798,5 +808,15 @@ app.registerExtension({
798
808
 
799
809
  // Initial report once the canvas is ready.
800
810
  setTimeout(report, 1500);
811
+ return true;
812
+ };
813
+
814
+ if (dshInstall()) return;
815
+ // app.graph not ready yet - poll briefly (up to ~15s) until ComfyUI
816
+ // finishes constructing it, then install the same wiring once.
817
+ let dshTries = 0;
818
+ const dshWait = setInterval(() => {
819
+ if (dshInstall() || ++dshTries >= 150) clearInterval(dshWait);
820
+ }, 100);
801
821
  },
802
822
  });
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "ComfyUI-DSH-Canvas",
3
- "version": "0.1.13"
3
+ "version": "0.1.14"
4
4
  }
package/package.json CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "dsh-comfyui-canvas",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Give DeepSeek Harness agents live control of your ComfyUI canvas (local or cloud): embed it as a split-screen tab, then read/edit/run workflows, debug errors, fetch output images, and batch-sweep parameters straight from the chat. Ships the ComfyUI-side bridge node.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/wbin0001/dsh-comfyui-canvas.git"
10
+ "url": "git+https://cnb.cool/Loxi009/dsh-comfyui-canvas.git"
11
+ },
12
+ "homepage": "https://cnb.cool/Loxi009/dsh-comfyui-canvas",
13
+ "bugs": {
14
+ "url": "https://cnb.cool/Loxi009/dsh-comfyui-canvas/-/issues"
11
15
  },
12
- "homepage": "https://github.com/wbin0001/dsh-comfyui-canvas",
13
16
  "files": [
14
17
  "LICENSE",
15
18
  "README.md",