dsh-comfyui 0.3.0-beta.6 → 0.4.0
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 +9 -0
- package/README.md +9 -0
- package/client/client.js +140 -36
- package/client/client.js.map +1 -1
- package/lib/index.js +10 -9
- package/package.json +3 -8
package/lib/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { homedir } from 'node:os';
|
|
2
2
|
import { isAbsolute, join } from 'node:path';
|
|
3
|
-
import { installSettingsSection, settingsNamespace } from '@deepseek-ai/dsh-settings';
|
|
4
3
|
import { Config } from './config.js';
|
|
5
4
|
import { ComfyUIClient, CLIENT_ID } from './comfyui.js';
|
|
6
5
|
import { ComfyUIStore } from './store.js';
|
|
@@ -26,7 +25,7 @@ export { Config };
|
|
|
26
25
|
* apply).
|
|
27
26
|
*/
|
|
28
27
|
export const inject = ['tools'];
|
|
29
|
-
const COMFYUI_NS =
|
|
28
|
+
const COMFYUI_NS = 'comfyui';
|
|
30
29
|
/** object_info is large and changes only when nodes are (re)installed. */
|
|
31
30
|
const OBJECT_INFO_TTL_MS = 60_000;
|
|
32
31
|
let objectInfoCache;
|
|
@@ -319,13 +318,15 @@ export async function apply(ctx, entryConfig) {
|
|
|
319
318
|
// The settings section rides the plugin fiber: a host without a settings
|
|
320
319
|
// service simply never registers it, and the entry config stands as composed.
|
|
321
320
|
let source = () => resolved;
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
321
|
+
ctx.inject(['settings'], (settingsCtx) => {
|
|
322
|
+
settingsCtx.settings.installSection(ctx, COMFYUI_NS, Config, resolved, {
|
|
323
|
+
setSource: (current) => {
|
|
324
|
+
source = current;
|
|
325
|
+
},
|
|
326
|
+
onChange: () => {
|
|
327
|
+
Object.assign(resolved, source());
|
|
328
|
+
},
|
|
329
|
+
});
|
|
329
330
|
});
|
|
330
331
|
ctx.effect(() => {
|
|
331
332
|
const disposers = registerComfyUITools(ctx, runtime);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-comfyui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Let the DeepSeek Harness agent smartly drive a local or remote ComfyUI to generate anything, with workflow and asset management panels, per-workflow skill packs, a companion skill and a same-origin media proxy. / 让 DeepSeek Harness 的 Agent 智能驱动本地或远程 ComfyUI 生成任何内容。附带工作流、资产管理面板与技能包管理挂载。配套 skill 与同源媒体代理。",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -53,16 +53,11 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
56
|
-
"@deepseek-ai/dsh-settings": "^0.1.
|
|
57
|
-
},
|
|
58
|
-
"peerDependenciesMeta": {
|
|
59
|
-
"@deepseek-ai/dsh-settings": {
|
|
60
|
-
"optional": true
|
|
61
|
-
}
|
|
56
|
+
"@deepseek-ai/dsh-settings": "^0.1.2-alpha.4"
|
|
62
57
|
},
|
|
63
58
|
"devDependencies": {
|
|
64
59
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
65
|
-
"@deepseek-ai/dsh-settings": "^0.1.
|
|
60
|
+
"@deepseek-ai/dsh-settings": "^0.1.2-alpha.4",
|
|
66
61
|
"@types/node": "^24.0.0",
|
|
67
62
|
"@types/react": "~18.3.1",
|
|
68
63
|
"react": "^18.3.1",
|