dsh-comfyui-canvas 0.1.12 → 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,26 @@
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
+
14
+ ## [0.1.13] - 2026-10-01
15
+
16
+ ### Fixed
17
+ - `@deepseek-ai/dsh-tools` 与 `@deepseek-ai/schemastery` 改为必需 peer 依赖(移除 optional 标记)——修复 dsh.so 隔离沙盒安装时解析不到 DSH 运行时包导致的 L5 Web 冒烟 boot failed
18
+ - 离线/检测中启动卡片改为「嵌入面板」样式:不再用深色遮罩浮在背景上,卡片直接嵌在画布区
19
+
20
+ ### Changed
21
+ - README 顶部截图 01 替换为纵向长截图(DSH 内操作 ComfyUI 的连续画面)
22
+ - README 代码块中含 shell 高亮红色符号(`&&`、`<占位符>`)的 8 处从 `bash`/`powershell` 改标 `text`,消除 GitHub 深色主题下的异常红色
23
+ - 版本对齐 0.1.13(插件 package.json + 桥接节点 version.json / `__version__` + README 徽章)
24
+
5
25
  ## [0.1.12] - 2026-09-28
6
26
 
7
27
  ### Added
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.12-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)
@@ -58,7 +57,7 @@ dsh plugin add github:wbin0001/dsh-comfyui-canvas
58
57
 
59
58
  Or from a local checkout:
60
59
 
61
- ```bash
60
+ ```text
62
61
  # in your DSH profile
63
62
  pnpm add <path-to-this-package>
64
63
  ```
@@ -78,12 +77,12 @@ Requires the **ComfyUI install directory** in **Settings → ComfyUI Canvas** (o
78
77
  Manual copy is still supported (e.g. air-gapped machines) — the bridge ships **inside this package** at `comfyui-bridge/ComfyUI-DSH-Canvas`:
79
78
 
80
79
  **Windows (PowerShell / cmd):**
81
- ```powershell
80
+ ```text
82
81
  Copy-Item -Recurse (npm root -g)\dsh-comfyui-canvas\comfyui-bridge\ComfyUI-DSH-Canvas <ComfyUI>\custom_nodes\ComfyUI-DSH-Canvas
83
82
  ```
84
83
 
85
84
  **macOS / Linux (bash):**
86
- ```bash
85
+ ```text
87
86
  cp -r $(npm root -g)/dsh-comfyui-canvas/comfyui-bridge/ComfyUI-DSH-Canvas <ComfyUI>/custom_nodes/ComfyUI-DSH-Canvas
88
87
  ```
89
88
 
@@ -94,13 +93,13 @@ Then restart ComfyUI and load the canvas page once (the injected `bridge.js` rep
94
93
  `comfyui_setup_bridge` manages a **local** install (`comfyuiDir` is a local path). For a cloud / remote ComfyUI, install the bridge on the **cloud machine** — pick one:
95
94
 
96
95
  **A. SSH / console access (self-hosted cloud GPU box)** — on the cloud machine:
97
- ```bash
96
+ ```text
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.12-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)
@@ -62,7 +61,7 @@ dsh plugin add github:wbin0001/dsh-comfyui-canvas
62
61
 
63
62
  或本地安装:
64
63
 
65
- ```bash
64
+ ```text
66
65
  # 在 DSH profile 目录下
67
66
  pnpm add <本仓库路径>
68
67
  ```
@@ -82,12 +81,12 @@ Agent: comfyui_setup_bridge → { installed, version, upToDate, restartNote }
82
81
  手动复制仍然支持(如离线机器)——桥接节点**内嵌在本包** `comfyui-bridge/ComfyUI-DSH-Canvas`:
83
82
 
84
83
  **Windows(PowerShell / cmd):**
85
- ```powershell
84
+ ```text
86
85
  Copy-Item -Recurse (npm root -g)\dsh-comfyui-canvas\comfyui-bridge\ComfyUI-DSH-Canvas <ComfyUI>\custom_nodes\ComfyUI-DSH-Canvas
87
86
  ```
88
87
 
89
88
  **macOS / Linux(bash):**
90
- ```bash
89
+ ```text
91
90
  cp -r $(npm root -g)/dsh-comfyui-canvas/comfyui-bridge/ComfyUI-DSH-Canvas <ComfyUI>/custom_nodes/ComfyUI-DSH-Canvas
92
91
  ```
93
92
 
@@ -98,13 +97,13 @@ cp -r $(npm root -g)/dsh-comfyui-canvas/comfyui-bridge/ComfyUI-DSH-Canvas <Comfy
98
97
  `comfyui_setup_bridge` 管理的是**本机**安装(`comfyuiDir` 是本机路径)。云端 / 远程 ComfyUI 请在**云端机器**上装桥接节点——二选一:
99
98
 
100
99
  **A. 有 SSH / 控制台(自建云 GPU 机)**——在云机上执行:
101
- ```bash
100
+ ```text
102
101
  # 方式 1:拉取 npm 包,把其中的桥接节点解出来
103
102
  npm pack dsh-comfyui-canvas && tar -xzf dsh-comfyui-canvas-*.tgz && cp -r package/comfyui-bridge/ComfyUI-DSH-Canvas <ComfyUI>/custom_nodes/
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
  ```
@@ -9,7 +9,7 @@
9
9
 
10
10
  # Bridge release version. The DSH plugin compares this against its embedded
11
11
  # copy (see version.json) to decide whether an update is needed.
12
- __version__ = "0.1.12"
12
+ __version__ = "0.1.13"
13
13
 
14
14
  import os
15
15
  import time
@@ -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.12"
3
+ "version": "0.1.14"
4
4
  }
package/lib/client.js CHANGED
@@ -328,17 +328,18 @@ function ComfyUIControl(props) {
328
328
  // 在线:状态已并入顶栏圆点,这里不再渲染任何遮挡层。
329
329
  if (online === true) return null;
330
330
 
331
- // 离线/检测中:居中启动卡片。
331
+ // 离线/检测中:启动卡片以「嵌入面板」样式呈现——不再用深色遮罩浮在
332
+ // 背景上,卡片直接嵌在画布区(露出外层同色背景),看起来是布局的一部分。
332
333
  var wrapStyle = {
333
334
  position: "absolute", left: 0, top: 0, right: 0, bottom: 0,
334
335
  zIndex: 79, display: "flex", alignItems: "center", justifyContent: "center",
335
- background: "var(--dsw-alias-bg-mask-3,rgba(0,0,0,0.48))", padding: "24px",
336
+ padding: "24px", boxSizing: "border-box",
336
337
  };
337
338
  var cardStyle = {
338
339
  width: "min(460px, 100%)", padding: "20px",
339
340
  background: "var(--dsw-alias-bg-layer-2, #1f1f23)", color: "var(--dsw-alias-label-primary, #e8e8e8)",
340
341
  border: "1px solid var(--dsw-alias-border-l1, rgba(128,128,128,.25))",
341
- borderRadius: "12px", boxShadow: "0 8px 32px rgba(0,0,0,.4)", fontFamily: "inherit",
342
+ borderRadius: "12px", fontFamily: "inherit",
342
343
  // 内容纵向排列、全部居中:标题/说明/错误/按钮都在卡片中间,按钮与画布左右距离相等。
343
344
  display: "flex", flexDirection: "column", alignItems: "center", textAlign: "center",
344
345
  };
package/package.json CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "dsh-comfyui-canvas",
3
- "version": "0.1.12",
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",
@@ -38,9 +41,7 @@
38
41
  "@deepseek-ai/schemastery": ">=3.18.0"
39
42
  },
40
43
  "peerDependenciesMeta": {
41
- "@deepseek-ai/dsh-tools": { "optional": true },
42
- "@deepseek-ai/dsh-settings": { "optional": true },
43
- "@deepseek-ai/schemastery": { "optional": true }
44
+ "@deepseek-ai/dsh-settings": { "optional": true }
44
45
  },
45
46
  "scripts": {
46
47
  "check": "node --check lib/index.js && node --check lib/client.js",