dsh-image-gen 0.2.3 → 0.2.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 +2 -2
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/lib/client.js +458 -70
- package/lib/client.js.map +1 -1
- package/lib/index.js +238 -41
- package/lib/types/client/gallery-store.d.ts +2 -0
- package/lib/types/client/gallery-view.d.ts +2 -0
- package/lib/types/client/image-result-node.d.ts +70 -0
- package/lib/types/client/index.d.ts +16 -2
- package/lib/types/comfyui-workflow.d.ts +13 -2
- package/lib/types/comfyui.d.ts +22 -5
- package/lib/types/config.d.ts +15 -6
- package/lib/types/shared.d.ts +31 -0
- package/package.json +3 -2
package/README.en.md
CHANGED
|
@@ -96,7 +96,7 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
96
96
|
Open DSH Web (`http://localhost:3080`):
|
|
97
97
|
|
|
98
98
|
1. Navigate to **Settings → Plugins → Image generation**.
|
|
99
|
-
2. Select a Provider. Enter an API key for cloud providers; for local ComfyUI, enter its URL and import an API Format Workflow JSON using `{{prompt}}` for the prompt and optional `{{seed}}` for the seed.
|
|
99
|
+
2. Select a Provider. Enter an API key for cloud providers; for local ComfyUI, enter its URL and import an API Format Workflow JSON using `{{prompt}}` for the prompt and optional `{{seed}}` for the seed. For image editing, put `{{image}}` (exactly once) in the LoadImage `image` input; the plugin uploads the source image and fills in the stored filename. ComfyUI supports importing multiple named workflows with one active at a time, and the Agent can also pick one by name via the optional `workflow` tool parameter.
|
|
100
100
|
3. Optionally enable **Save to workspace** (enabled by default) and specify subfolder, then click **Save**.
|
|
101
101
|
|
|
102
102
|
<div align="center">
|
|
@@ -145,7 +145,7 @@ Click the **`[Gallery]`** Tab in the top navigation bar to browse and search all
|
|
|
145
145
|
| **OpenAI Compatible** | Custom | Custom Base URL |
|
|
146
146
|
| **ByteDance Seedream / Volcengine Ark** | `doubao-seedream-5-0-260128` | `https://ark.cn-beijing.volces.com/api/v3` |
|
|
147
147
|
| **Aliyun DashScope / Wanx** | `wanx2.1-t2i-turbo` | `https://dashscope.aliyuncs.com/api/v1` |
|
|
148
|
-
| **Local ComfyUI (text-to-image
|
|
148
|
+
| **Local ComfyUI (text-to-image & image-to-image)** | Imported API Format Workflow | `http://127.0.0.1:8188` |
|
|
149
149
|
|
|
150
150
|
---
|
|
151
151
|
|
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
97
97
|
打开 DSH Web 页面(默认 `http://localhost:3080`):
|
|
98
98
|
|
|
99
99
|
1. 进入 **Settings → Plugins → Image generation**。
|
|
100
|
-
2. 选择 Provider;云端 Provider 填写 API Key,本地 ComfyUI 填写地址并导入 API Format Workflow JSON(提示词位置使用 `{{prompt}}`,种子可选用 `{{seed}}
|
|
100
|
+
2. 选择 Provider;云端 Provider 填写 API Key,本地 ComfyUI 填写地址并导入 API Format Workflow JSON(提示词位置使用 `{{prompt}}`,种子可选用 `{{seed}}`;图生图工作流在 LoadImage 的 `image` 输入中使用 `{{image}}`,调用时插件会自动上传源图并回填文件名,仅允许出现一次)。ComfyUI 支持导入多个命名工作流并选择当前使用的一个,Agent 也可以在调用时通过 `workflow` 参数按名称指定。
|
|
101
101
|
3. 可按需开启 **保存到工作区**(默认开启)并自定义子目录,点击 **保存** 即可。
|
|
102
102
|
|
|
103
103
|
<div align="center">
|
|
@@ -152,7 +152,7 @@ Agent 会调用 `edit_image`,复用当前会话中的图片继续修改。
|
|
|
152
152
|
| **OpenAI Compatible** | 自定义 | 自定义 Base URL |
|
|
153
153
|
| **ByteDance Seedream / 火山方舟** | `doubao-seedream-5-0-260128` | `https://ark.cn-beijing.volces.com/api/v3` |
|
|
154
154
|
| **Aliyun DashScope / Qwen Image** | `qwen-image-3.0` | `https://dashscope.aliyuncs.com/api/v1` |
|
|
155
|
-
| **Local ComfyUI
|
|
155
|
+
| **Local ComfyUI(文生图 + 图生图)** | 用户导入的 API Format Workflow | `http://127.0.0.1:8188` |
|
|
156
156
|
|
|
157
157
|
---
|
|
158
158
|
|
package/README.zh-CN.md
CHANGED
|
@@ -93,7 +93,7 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
93
93
|
打开 DSH Web 页面(默认 `http://localhost:3080`):
|
|
94
94
|
|
|
95
95
|
1. 进入 **Settings → Plugins → Image generation**。
|
|
96
|
-
2. 选择 Provider;云端 Provider 填写 API Key,本地 ComfyUI 填写地址并导入 API Format Workflow JSON(提示词位置使用 `{{prompt}}`,种子可选用 `{{seed}}
|
|
96
|
+
2. 选择 Provider;云端 Provider 填写 API Key,本地 ComfyUI 填写地址并导入 API Format Workflow JSON(提示词位置使用 `{{prompt}}`,种子可选用 `{{seed}}`;图生图工作流在 LoadImage 的 `image` 输入中使用 `{{image}}`,调用时插件会自动上传源图并回填文件名,仅允许出现一次)。ComfyUI 支持导入多个命名工作流并选择当前使用的一个,Agent 也可以在调用时通过 `workflow` 参数按名称指定。
|
|
97
97
|
3. 可按需开启 **保存到工作区**(默认开启)并自定义子目录,点击 **保存** 即可。
|
|
98
98
|
|
|
99
99
|
<div align="center">
|
|
@@ -142,7 +142,7 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
142
142
|
| **OpenAI Compatible** | 自定义 | 自定义 Base URL |
|
|
143
143
|
| **ByteDance Seedream / 火山方舟** | `doubao-seedream-5-0-260128` | `https://ark.cn-beijing.volces.com/api/v3` |
|
|
144
144
|
| **Aliyun DashScope / 通义万相** | `wanx2.1-t2i-turbo` | `https://dashscope.aliyuncs.com/api/v1` |
|
|
145
|
-
| **Local ComfyUI
|
|
145
|
+
| **Local ComfyUI(文生图 + 图生图)** | 用户导入的 API Format Workflow | `http://127.0.0.1:8188` |
|
|
146
146
|
|
|
147
147
|
---
|
|
148
148
|
|