dsh-image-gen 0.6.5 → 0.6.8
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 +52 -14
- package/README.md +53 -15
- package/docs/assets/readme/canvas-edit.webp +0 -0
- package/docs/assets/readme/canvas-generate.webp +0 -0
- package/docs/assets/readme/chat-generate.webp +0 -0
- package/docs/assets/readme/hero-en.webp +0 -0
- package/docs/assets/readme/hero-zh.webp +0 -0
- package/docs/assets/readme/other-features.webp +0 -0
- package/docs/assets/readme/workflow-overview-en.webp +0 -0
- package/docs/assets/readme/workflow-overview.webp +0 -0
- package/lib/client.js +644 -390
- package/lib/client.js.map +1 -1
- package/lib/index.js +200 -37
- package/lib/types/client/conversation-image-revisions.d.ts +2 -2
- package/lib/types/client/gallery-view.d.ts +4 -0
- package/lib/types/client/multi-model-compare.d.ts +3 -3
- package/lib/types/client/provider-pill.d.ts +1 -1
- package/lib/types/client/studio-view.d.ts +4 -0
- package/lib/types/client/tl/canvas-sync.d.ts +3 -3
- package/lib/types/client/tl/conversation-landings.d.ts +33 -0
- package/lib/types/client/tl/studio-tl-canvas.d.ts +2 -0
- package/lib/types/client/tl/tl-canvas-bridge.d.ts +12 -32
- package/lib/types/shared.d.ts +16 -4
- package/lib/types/studio.d.ts +3 -2
- package/lib/types/subscription/manager.d.ts +15 -0
- package/lib/types/subscription/vendors/antigravity.d.ts +10 -1
- package/lib/types/subscription/vendors/codex.d.ts +2 -0
- package/lib/types/subscription/vendors/grok.d.ts +2 -0
- package/lib/types/subscription.d.ts +7 -5
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
### Native AI image creation suite for DeepSeek Harness
|
|
12
12
|
|
|
13
|
-
<p><b>In-chat generation and editing · Studio batch creation · Multi-model comparison · 500+ prompt inspirations · Gallery management · Local ComfyUI · Subscription no-key</b></p>
|
|
13
|
+
<p><b>AI Creative Canvas · In-chat generation and editing · Studio batch creation · Multi-model comparison · 500+ prompt inspirations · Gallery management · Local ComfyUI · Subscription no-key</b></p>
|
|
14
14
|
|
|
15
15
|
<p>
|
|
16
16
|
<a href="https://www.npmjs.com/package/dsh-image-gen"><img src="https://img.shields.io/npm/v/dsh-image-gen?style=flat-square&color=4f6ef7" alt="npm version" /></a>
|
|
@@ -31,11 +31,29 @@
|
|
|
31
31
|
|
|
32
32
|
<br />
|
|
33
33
|
|
|
34
|
+
<img src="docs/assets/readme/canvas-generate.webp" alt="Sketching on the infinite canvas and generating a final image through conversation" width="46%" />
|
|
35
|
+
<img src="docs/assets/readme/canvas-edit.webp" alt="Continuing to edit and iterate through conversation based on existing results" width="46%" />
|
|
36
|
+
<br />
|
|
37
|
+
<sub>Left: Sketch and place reference images on the canvas, then generate through conversation. · Right: Keep iterating on existing results through conversation.</sub>
|
|
38
|
+
|
|
39
|
+
<br />
|
|
40
|
+
|
|
41
|
+
<img src="docs/assets/readme/chat-generate.webp" alt="Generating images directly in conversation" width="46%" />
|
|
42
|
+
<img src="docs/assets/readme/other-features.webp" alt="Studio batch creation, inspiration library, gallery and more" width="46%" />
|
|
43
|
+
<br />
|
|
44
|
+
<sub>Left: Describe and generate images right in the conversation. · Right: Studio batch creation, inspiration library, gallery, and more.</sub>
|
|
45
|
+
|
|
34
46
|
</div>
|
|
35
47
|
|
|
36
48
|
**A complete AI image creation workflow for DeepSeek Harness.**
|
|
37
49
|
|
|
38
|
-
`dsh-image-gen` goes far beyond basic in-chat image generation. It brings **continuous
|
|
50
|
+
`dsh-image-gen` goes far beyond basic in-chat image generation. It brings **in-chat generation with continuous editing**, an **AI creative canvas**, **Studio batch creation**, **side-by-side multi-model comparison**, a **prompt inspiration library**, and **local ComfyUI** workflows into DSH.
|
|
51
|
+
|
|
52
|
+
It supports mainstream cloud image models and private local workflows, works with BYOK (bring your own key) or subscription accounts, and can isolate generated assets by workspace.
|
|
53
|
+
|
|
54
|
+
> **Already paying for ChatGPT, Grok, or Google? Just sign in and start generating—no separate API key purchase needed.**
|
|
55
|
+
|
|
56
|
+
Supports: Gemini · OpenAI / Compatible · Seedream · DashScope · Grok Imagine · GLM-Image · Local ComfyUI
|
|
39
57
|
|
|
40
58
|
```bash
|
|
41
59
|
pnpm dsh plugin --profile web add dsh-image-gen@latest
|
|
@@ -43,18 +61,19 @@ pnpm dsh plugin --profile web add dsh-image-gen@latest
|
|
|
43
61
|
|
|
44
62
|
> **Update notice:** This release includes major changes. Existing users should update to the latest version.
|
|
45
63
|
|
|
46
|
-
<img src="docs/assets/readme/workflow-overview.webp" alt="dsh-image-gen complete AI image creation workflow" width="100%" />
|
|
64
|
+
<img src="docs/assets/readme/workflow-overview-en.webp" alt="dsh-image-gen complete AI image creation workflow" width="100%" />
|
|
47
65
|
|
|
48
66
|
---
|
|
49
67
|
|
|
50
|
-
## One plugin,
|
|
68
|
+
## One plugin, the complete AI image creation workflow
|
|
51
69
|
|
|
52
70
|
| Entry | Best for | What you can do |
|
|
53
71
|
| :--- | :--- | :--- |
|
|
54
|
-
| 💬 **Chat** |
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
72
|
+
| 💬 **Chat** | Expressing ideas quickly | Text-to-image, image-to-image, continuous editing, and revision iteration |
|
|
73
|
+
| ✏️ **Canvas** | Expressing visual creativity | Sketch-to-image, reference composition, spatial creation, and continuous refinement |
|
|
74
|
+
| 🎛️ **Studio** | Fine-grained control over creation parameters | Batch generation, multi-image reference, and advanced parameter tuning |
|
|
75
|
+
| ✨ **Inspiration** | Finding creative direction | Prompt examples, style exploration, and one-click reuse |
|
|
76
|
+
| 🖼️ **Gallery** | Managing generated results | Search, favorite, download, and reuse |
|
|
58
77
|
|
|
59
78
|
---
|
|
60
79
|
|
|
@@ -98,7 +117,7 @@ After restarting DSH, open:
|
|
|
98
117
|
|
|
99
118
|
Choose a Provider, enter your API key, and adjust the model, Endpoint / Base URL, and workspace-save options as needed. Once the key is stored, click **Test connection** to verify it, or **Fetch models** to pull every image-capable model the provider offers—no manual lookups needed. For ComfyUI, enter an address reachable by the DSH Host and import an **API Format Workflow JSON** file.
|
|
100
119
|
|
|
101
|
-
Already paying for ChatGPT, Grok, or Google? No API key needed: expand the matching subscription Provider row, click **Sign in** and complete the authorization in your browser, then start generating right away.
|
|
120
|
+
Already paying for ChatGPT, Grok, or Google? No API key needed: expand the matching subscription Provider row, click **Sign in** and complete the authorization in your browser, then start generating (and editing) right away.
|
|
102
121
|
|
|
103
122
|
### 3. Start creating
|
|
104
123
|
|
|
@@ -147,6 +166,25 @@ For more precise parameter control, open **Gallery** from the conversation heade
|
|
|
147
166
|
|
|
148
167
|
<br />
|
|
149
168
|
|
|
169
|
+
### ✏️ From sketch to image: AI creative canvas
|
|
170
|
+
|
|
171
|
+
Express your ideas on an infinite canvas and turn drafts, compositions, and thoughts into real images through conversation.
|
|
172
|
+
|
|
173
|
+
- Freely sketch, add reference materials, and organize your ideas on the canvas.
|
|
174
|
+
- Talk to the AI in natural language to turn a draft into a finished piece.
|
|
175
|
+
- Keep editing, refining, and exploring new directions from existing results—your creative process is preserved so every exploration stays iterable.
|
|
176
|
+
|
|
177
|
+
<br />
|
|
178
|
+
|
|
179
|
+
<div align="center">
|
|
180
|
+
<img src="docs/assets/readme/canvas-generate.webp" alt="Sketching on the infinite canvas and generating a final image through conversation" width="46%" />
|
|
181
|
+
<img src="docs/assets/readme/canvas-edit.webp" alt="Continuing to edit and iterate through conversation based on existing results" width="46%" />
|
|
182
|
+
<br />
|
|
183
|
+
<sub>Left: Sketch and place reference images on the canvas, then generate through conversation. · Right: Keep iterating on existing results through conversation.</sub>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<br />
|
|
187
|
+
|
|
150
188
|
### 🎛️ Studio batch creation
|
|
151
189
|
|
|
152
190
|
- Support multiple reference images, and generate multiple candidates at a time.
|
|
@@ -239,13 +277,13 @@ Bring private image generation on your local GPU directly into Agent conversatio
|
|
|
239
277
|
| **xAI Grok Imagine** | ✅ | ⚠️ Limited | ✅ | ✅ |
|
|
240
278
|
| **Zhipu GLM-Image** | ✅ | — | ✅ | ✅ |
|
|
241
279
|
| **Local ComfyUI** | ✅ | ✅ Single | — | — |
|
|
242
|
-
| **ChatGPT subscription (key-free)** | ✅ |
|
|
243
|
-
| **Grok subscription (key-free)** | ✅ |
|
|
244
|
-
| **Google subscription (key-free)** | ✅ |
|
|
280
|
+
| **ChatGPT subscription (key-free)** | ✅ | ✅ Multiple | ✅ | ✅ |
|
|
281
|
+
| **Grok subscription (key-free)** | ✅ | ✅ Multiple | ✅ | ✅ |
|
|
282
|
+
| **Google subscription (key-free)** | ✅ | ✅ Multiple | ✅ | ✅ |
|
|
245
283
|
|
|
246
|
-
> Studio and multi-model comparison currently support cloud Providers only. Multi-model comparison uses the model configured for each Provider in Settings.
|
|
284
|
+
> Studio and multi-model comparison currently support cloud Providers only (subscription channels included). Multi-model comparison uses the model configured for each Provider in Settings.
|
|
247
285
|
> Zhipu GLM-Image does not support image-to-image upstream. xAI image editing goes through the OpenAI-compatible protocol (multipart); some gateways may need further adaptation.
|
|
248
|
-
> Subscription channels work through account sign-in (no API key). They
|
|
286
|
+
> Subscription channels work through account sign-in (no API key). They support in-chat text-to-image / image-to-image, Studio batch generation, and multi-model comparison; edits ride each channel's edit endpoint with channel-default parameters (up to 5 reference images).
|
|
249
287
|
|
|
250
288
|
<details>
|
|
251
289
|
<summary><strong>Current default models and endpoints (all configurable)</strong></summary>
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
### DeepSeek Harness 的原生 AI 图像创作套件
|
|
12
12
|
|
|
13
|
-
<p><b
|
|
13
|
+
<p><b>AI 创作画布 · 对话生图与编辑 · Studio 批量创作 · 多模型对比 · 500+ Prompt 灵感 · 图库管理 · 本地 ComfyUI · 订阅免 Key</b></p>
|
|
14
14
|
|
|
15
15
|
<p>
|
|
16
16
|
<a href="https://www.npmjs.com/package/dsh-image-gen"><img src="https://img.shields.io/npm/v/dsh-image-gen?style=flat-square&color=4f6ef7" alt="npm version" /></a>
|
|
@@ -31,11 +31,29 @@
|
|
|
31
31
|
|
|
32
32
|
<br />
|
|
33
33
|
|
|
34
|
+
<img src="docs/assets/readme/canvas-generate.webp" alt="在无限画布中绘制草稿,并通过对话生成成图" width="46%" />
|
|
35
|
+
<img src="docs/assets/readme/canvas-edit.webp" alt="基于已有结果继续对话修改,在画布中持续迭代创作" width="46%" />
|
|
36
|
+
<br />
|
|
37
|
+
<sub>左:在画布中绘制草稿、摆放参考图,并通过对话生成成图。 · 右:基于已有结果继续对话修改,在画布中持续迭代创作。</sub>
|
|
38
|
+
|
|
39
|
+
<br />
|
|
40
|
+
|
|
41
|
+
<img src="docs/assets/readme/chat-generate.webp" alt="在对话中直接描述并生成图片" width="46%" />
|
|
42
|
+
<img src="docs/assets/readme/other-features.webp" alt="工作台批量创作、灵感库与图库等更多功能" width="46%" />
|
|
43
|
+
<br />
|
|
44
|
+
<sub>左:在对话中直接描述并生成图片。 · 右:工作台批量创作、灵感库与图库等更多功能。</sub>
|
|
45
|
+
|
|
34
46
|
</div>
|
|
35
47
|
|
|
36
48
|
**为 DeepSeek Harness 带来完整的 AI 图像创作工作流。**
|
|
37
49
|
|
|
38
|
-
`dsh-image-gen` 不只是简单的对话生图,而是为 DSH
|
|
50
|
+
`dsh-image-gen` 不只是简单的对话生图,而是为 DSH 补齐从 **对话生成与连续修图**、**AI 创作画布**、**Studio 批量创作**、**多模型横向对比**,到 **Prompt 灵感库** 与 **本地 ComfyUI** 的完整图像创作能力。
|
|
51
|
+
|
|
52
|
+
支持主流云端图像模型与本地私有化工作流,既可使用 BYOK(自带 Key),也支持通过订阅账号直接使用,生成结果支持按工作区隔离存储。
|
|
53
|
+
|
|
54
|
+
> **已有 ChatGPT、Grok 或 Google 订阅?直接登录即可生图,无需额外购买 API Key。**
|
|
55
|
+
|
|
56
|
+
支持:Gemini · OpenAI / Compatible · Seedream · DashScope · Grok Imagine · GLM-Image · 本地 ComfyUI
|
|
39
57
|
|
|
40
58
|
```bash
|
|
41
59
|
pnpm dsh plugin --profile web add dsh-image-gen@latest
|
|
@@ -47,14 +65,15 @@ pnpm dsh plugin --profile web add dsh-image-gen@latest
|
|
|
47
65
|
|
|
48
66
|
---
|
|
49
67
|
|
|
50
|
-
##
|
|
68
|
+
## 一个插件,覆盖完整 AI 图像创作流程
|
|
51
69
|
|
|
52
|
-
| 入口 | 最适合
|
|
53
|
-
| :------------ |
|
|
54
|
-
| 💬 **对话** |
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
70
|
+
| 入口 | 最适合 | 你可以做什么 |
|
|
71
|
+
| :------------ | :--------------- | :--------------------------------------- |
|
|
72
|
+
| 💬 **对话** | 快速表达想法 | 文生图、图生图、连续编辑、版本迭代 |
|
|
73
|
+
| ✏️ **画布** | 表达视觉创意 | 草稿生成、参考图组合、空间创作、持续修改 |
|
|
74
|
+
| 🎛️ **工作台** | 精细控制创作参数 | 批量生成、多图参考、高级参数调整 |
|
|
75
|
+
| ✨ **灵感** | 寻找创作方向 | Prompt 案例、风格探索、一键复用 |
|
|
76
|
+
| 🖼️ **图库** | 管理生成结果 | 搜索、收藏、下载、重新使用 |
|
|
58
77
|
|
|
59
78
|
---
|
|
60
79
|
|
|
@@ -98,7 +117,7 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
98
117
|
|
|
99
118
|
选择 Provider,填写自己的 API Key,并按需调整模型、Endpoint / Base URL 与工作区保存选项。填好 Key 后可点击**「测试连接」**验证可用性,或点击**「拉取模型」**一键获取该厂商支持的全部生图模型,无需手动查文档。使用 ComfyUI 时,请填写 DSH Host 可访问的服务地址,并导入 **API Format Workflow JSON**。
|
|
100
119
|
|
|
101
|
-
已有 ChatGPT、Grok 或 Google 订阅?无需填写 API Key:展开对应的订阅 Provider
|
|
120
|
+
已有 ChatGPT、Grok 或 Google 订阅?无需填写 API Key:展开对应的订阅 Provider 行,点击**「登录」**并在浏览器完成授权,即可直接开始文生图与图生图。
|
|
102
121
|
|
|
103
122
|
### 3. 开始创作
|
|
104
123
|
|
|
@@ -147,6 +166,25 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
147
166
|
|
|
148
167
|
<br />
|
|
149
168
|
|
|
169
|
+
### ✏️ 从草稿到成图:AI 创作画布
|
|
170
|
+
|
|
171
|
+
在无限画布中表达你的创意,通过对话将草稿、构图和想法转化为真实图片。
|
|
172
|
+
|
|
173
|
+
- 在画布中自由绘制草稿、添加参考素材并组织创意。
|
|
174
|
+
- 通过自然语言与 AI 对话,让草稿快速变成完整作品。
|
|
175
|
+
- 基于已有结果持续编辑、修改和生成新的方向,保留创作过程,让每一次探索都可以继续迭代。
|
|
176
|
+
|
|
177
|
+
<br />
|
|
178
|
+
|
|
179
|
+
<div align="center">
|
|
180
|
+
<img src="docs/assets/readme/canvas-generate.webp" alt="在无限画布中绘制草稿,并通过对话生成成图" width="46%" />
|
|
181
|
+
<img src="docs/assets/readme/canvas-edit.webp" alt="基于已有结果继续对话修改,在画布中持续迭代创作" width="46%" />
|
|
182
|
+
<br />
|
|
183
|
+
<sub>左:在画布中绘制草稿、摆放参考图,并通过对话生成成图。 · 右:基于已有结果继续对话修改,在画布中持续迭代创作。</sub>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<br />
|
|
187
|
+
|
|
150
188
|
### 🎛️ Studio 批量创作
|
|
151
189
|
|
|
152
190
|
- 支持多张参考图,一次生成多张候选图。
|
|
@@ -239,13 +277,13 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
239
277
|
| **xAI Grok Imagine** | ✅ | ⚠️ 有限 | ✅ | ✅ |
|
|
240
278
|
| **智谱 GLM-Image** | ✅ | — | ✅ | ✅ |
|
|
241
279
|
| **Local ComfyUI** | ✅ | ✅ 单图 | — | — |
|
|
242
|
-
| **ChatGPT 订阅(免 Key)** | ✅ |
|
|
243
|
-
| **Grok 订阅(免 Key)** | ✅ |
|
|
244
|
-
| **Google 订阅(免 Key)** | ✅ |
|
|
280
|
+
| **ChatGPT 订阅(免 Key)** | ✅ | ✅ 多图 | ✅ | ✅ |
|
|
281
|
+
| **Grok 订阅(免 Key)** | ✅ | ✅ 多图 | ✅ | ✅ |
|
|
282
|
+
| **Google 订阅(免 Key)** | ✅ | ✅ 多图 | ✅ | ✅ |
|
|
245
283
|
|
|
246
|
-
> Studio 与多模型对比目前只支持云端 Provider
|
|
284
|
+
> Studio 与多模型对比目前只支持云端 Provider(含订阅通道);多模型对比调用的是各 Provider 在设置中已配置的模型。
|
|
247
285
|
> 智谱 GLM-Image 上游本身不支持图生图;xAI 图生图走 OpenAI 兼容协议(multipart),部分网关可能需等待后续适配。
|
|
248
|
-
> 订阅通道通过账号登录使用(免 API Key
|
|
286
|
+
> 订阅通道通过账号登录使用(免 API Key),支持对话文生图 / 图生图、Studio 批量生成与多模型对比;图生图走各订阅渠道的编辑接口,参数为通道默认(最多 5 张参考图)。
|
|
249
287
|
|
|
250
288
|
<details>
|
|
251
289
|
<summary><strong>当前默认模型与 Endpoint(均可修改)</strong></summary>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|