dsh-image-gen 0.6.1 → 0.6.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 +12 -2
- package/README.md +13 -3
- package/lib/client.js +548 -21
- package/lib/client.js.map +1 -1
- package/lib/index.js +1421 -103
- package/lib/types/client/index.d.ts +4 -0
- package/lib/types/client/provider-pill.d.ts +1 -1
- package/lib/types/client/tl/diagram-landing.d.ts +75 -0
- package/lib/types/client/tl/diagram-layout.d.ts +76 -0
- package/lib/types/client/tl/diagram-measure.d.ts +40 -0
- package/lib/types/config.d.ts +24 -0
- package/lib/types/diagram.d.ts +42 -0
- package/lib/types/openai-compatible.d.ts +15 -0
- package/lib/types/shared.d.ts +16 -1
- package/lib/types/subscription/blob.d.ts +23 -0
- package/lib/types/subscription/loopback.d.ts +11 -0
- package/lib/types/subscription/manager.d.ts +94 -0
- package/lib/types/subscription/oauth.d.ts +25 -0
- package/lib/types/subscription/subscription-route.d.ts +5 -0
- package/lib/types/subscription/vendors/antigravity.d.ts +66 -0
- package/lib/types/subscription/vendors/codex.d.ts +30 -0
- package/lib/types/subscription/vendors/grok.d.ts +32 -0
- package/lib/types/subscription.d.ts +42 -0
- package/lib/types/test-route.d.ts +9 -0
- 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</b></p>
|
|
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>
|
|
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>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
**A complete AI image creation workflow for DeepSeek Harness.**
|
|
37
37
|
|
|
38
|
-
`dsh-image-gen` goes far beyond basic in-chat image generation. It brings **continuous natural-language editing**, **Studio batch creation**, **side-by-side multi-model comparison**, a **500+ prompt inspiration library**, and **local ComfyUI** workflows into DSH. It supports **Google Gemini, OpenAI Images / Compatible, ByteDance Seedream, Aliyun DashScope, xAI Grok Imagine, Zhipu GLM-Image**, and private local workflows. It
|
|
38
|
+
`dsh-image-gen` goes far beyond basic in-chat image generation. It brings **continuous natural-language editing**, **Studio batch creation**, **side-by-side multi-model comparison**, a **500+ prompt inspiration library**, and **local ComfyUI** workflows into DSH. It supports **Google Gemini, OpenAI Images / Compatible, ByteDance Seedream, Aliyun DashScope, xAI Grok Imagine, Zhipu GLM-Image**, and private local workflows. It supports both BYOK (bring your own key) and **subscription accounts without any API key**, and can isolate generated assets by workspace. Already paying for ChatGPT, Grok, or Google? Just sign in and start generating—no separate API key purchase needed.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
pnpm dsh plugin --profile web add dsh-image-gen@latest
|
|
@@ -98,6 +98,8 @@ After restarting DSH, open:
|
|
|
98
98
|
|
|
99
99
|
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
100
|
|
|
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.
|
|
102
|
+
|
|
101
103
|
### 3. Start creating
|
|
102
104
|
|
|
103
105
|
Describe the image you want directly in chat:
|
|
@@ -237,9 +239,13 @@ Bring private image generation on your local GPU directly into Agent conversatio
|
|
|
237
239
|
| **xAI Grok Imagine** | ✅ | ⚠️ Limited | ✅ | ✅ |
|
|
238
240
|
| **Zhipu GLM-Image** | ✅ | — | ✅ | ✅ |
|
|
239
241
|
| **Local ComfyUI** | ✅ | ✅ Single | — | — |
|
|
242
|
+
| **ChatGPT subscription (key-free)** | ✅ | — | — | — |
|
|
243
|
+
| **Grok subscription (key-free)** | ✅ | — | — | — |
|
|
244
|
+
| **Google subscription (key-free)** | ✅ | — | — | — |
|
|
240
245
|
|
|
241
246
|
> Studio and multi-model comparison currently support cloud Providers only. Multi-model comparison uses the model configured for each Provider in Settings.
|
|
242
247
|
> 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 currently support in-chat text-to-image only; for editing, Studio, and multi-model comparison, use an API-key Provider.
|
|
243
249
|
|
|
244
250
|
<details>
|
|
245
251
|
<summary><strong>Current default models and endpoints (all configurable)</strong></summary>
|
|
@@ -254,6 +260,9 @@ Bring private image generation on your local GPU directly into Agent conversatio
|
|
|
254
260
|
| xAI Grok Imagine | `grok-imagine-image` | `https://api.x.ai/v1` |
|
|
255
261
|
| Zhipu GLM-Image | `glm-image` | `https://open.bigmodel.cn/api/paas/v4` |
|
|
256
262
|
| Local ComfyUI | Imported API Workflow | `http://127.0.0.1:8188` |
|
|
263
|
+
| ChatGPT subscription | `gpt-image-2.5-flare` (channel-fixed) | Account sign-in, no configuration |
|
|
264
|
+
| Grok subscription | `grok-imagine-image-2.0` (channel-fixed) | Account sign-in, no configuration |
|
|
265
|
+
| Google subscription | `gemini-3-pro-image` (channel-fixed) | Account sign-in, no configuration |
|
|
257
266
|
|
|
258
267
|
</details>
|
|
259
268
|
|
|
@@ -262,6 +271,7 @@ Bring private image generation on your local GPU directly into Agent conversatio
|
|
|
262
271
|
## Data and Privacy
|
|
263
272
|
|
|
264
273
|
- **BYOK:** API keys are stored through the DSH Credentials service and are never displayed in plaintext on the settings page.
|
|
274
|
+
- **Subscription sign-in:** Subscription tokens are saved in DSH Credentials after your authorized sign-in, fully isolated from API keys; the browser side never touches a token.
|
|
265
275
|
- **Cloud requests:** The prompt and reference images used for a request are sent to the selected Provider. Follow that Provider's terms of service.
|
|
266
276
|
- **Local ComfyUI:** Requests are sent to the configured ComfyUI address.
|
|
267
277
|
- **Workspace files:** When workspace saving is enabled, chat results are written to disk; Studio saves only the candidates you select.
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
### DeepSeek Harness 的原生 AI 图像创作套件
|
|
12
12
|
|
|
13
|
-
<p><b>对话生图与编辑 · Studio 批量创作 · 多模型对比 · 500+ Prompt 灵感 · 图库管理 · 本地 ComfyUI</b></p>
|
|
13
|
+
<p><b>对话生图与编辑 · 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>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
**为 DeepSeek Harness 带来完整的 AI 图像创作工作流。**
|
|
37
37
|
|
|
38
|
-
`dsh-image-gen` 不只是简单的对话生图,而是为 DSH 补齐了从**自然语言连续修图**、**Studio 批量创作**、**多模型横向对比**,到 **500+ Prompt 灵感库**与**本地 ComfyUI** 的全流程能力。支持 **Google Gemini、OpenAI Images / Compatible、ByteDance Seedream、Aliyun DashScope、xAI Grok Imagine、智谱 GLM-Image**
|
|
38
|
+
`dsh-image-gen` 不只是简单的对话生图,而是为 DSH 补齐了从**自然语言连续修图**、**Studio 批量创作**、**多模型横向对比**,到 **500+ Prompt 灵感库**与**本地 ComfyUI** 的全流程能力。支持 **Google Gemini、OpenAI Images / Compatible、ByteDance Seedream、Aliyun DashScope、xAI Grok Imagine、智谱 GLM-Image** 及本地私有化工作流,支持 BYOK(自带 Key)与**订阅账号免 Key** 两种方式,生成结果支持按工作区隔离存储。已有 ChatGPT、Grok 或 Google 订阅?登录账号即可直接生图,无需单独购买 API Key。
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
pnpm dsh plugin --profile web add dsh-image-gen@latest
|
|
@@ -98,6 +98,8 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
98
98
|
|
|
99
99
|
选择 Provider,填写自己的 API Key,并按需调整模型、Endpoint / Base URL 与工作区保存选项。填好 Key 后可点击**「测试连接」**验证可用性,或点击**「拉取模型」**一键获取该厂商支持的全部生图模型,无需手动查文档。使用 ComfyUI 时,请填写 DSH Host 可访问的服务地址,并导入 **API Format Workflow JSON**。
|
|
100
100
|
|
|
101
|
+
已有 ChatGPT、Grok 或 Google 订阅?无需填写 API Key:展开对应的订阅 Provider 行,点击**「登录」**并在浏览器完成授权,即可直接开始生图。
|
|
102
|
+
|
|
101
103
|
### 3. 开始创作
|
|
102
104
|
|
|
103
105
|
在聊天框中直接描述你想要的图片:
|
|
@@ -237,9 +239,13 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
237
239
|
| **xAI Grok Imagine** | ✅ | ⚠️ 有限 | ✅ | ✅ |
|
|
238
240
|
| **智谱 GLM-Image** | ✅ | — | ✅ | ✅ |
|
|
239
241
|
| **Local ComfyUI** | ✅ | ✅ 单图 | — | — |
|
|
242
|
+
| **ChatGPT 订阅(免 Key)** | ✅ | — | — | — |
|
|
243
|
+
| **Grok 订阅(免 Key)** | ✅ | — | — | — |
|
|
244
|
+
| **Google 订阅(免 Key)** | ✅ | — | — | — |
|
|
240
245
|
|
|
241
246
|
> Studio 与多模型对比目前只支持云端 Provider;多模型对比调用的是各 Provider 在设置中已配置的模型。
|
|
242
247
|
> 智谱 GLM-Image 上游本身不支持图生图;xAI 图生图走 OpenAI 兼容协议(multipart),部分网关可能需等待后续适配。
|
|
248
|
+
> 订阅通道通过账号登录使用(免 API Key),目前仅支持对话文生图;编辑、Studio 与多模型对比请使用 API Key 类 Provider。
|
|
243
249
|
|
|
244
250
|
<details>
|
|
245
251
|
<summary><strong>当前默认模型与 Endpoint(均可修改)</strong></summary>
|
|
@@ -252,8 +258,11 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
252
258
|
| ByteDance Seedream | `doubao-seedream-5-0-260128` | `https://ark.cn-beijing.volces.com/api/v3` |
|
|
253
259
|
| Aliyun DashScope | `qwen-image-3.0` | `https://dashscope.aliyuncs.com/api/v1` |
|
|
254
260
|
| xAI Grok Imagine | `grok-imagine-image` | `https://api.x.ai/v1` |
|
|
255
|
-
| 智谱 GLM-Image | `glm-image` | `https://open.bigmodel.cn/api/paas/v4`
|
|
261
|
+
| 智谱 GLM-Image | `glm-image` | `https://open.bigmodel.cn/api/paas/v4` |
|
|
256
262
|
| Local ComfyUI | 用户导入的 API Workflow | `http://127.0.0.1:8188` |
|
|
263
|
+
| ChatGPT 订阅 | `gpt-image-2.5-flare`(通道固定) | 账号登录,无需配置 |
|
|
264
|
+
| Grok 订阅 | `grok-imagine-image-2.0`(通道固定) | 账号登录,无需配置 |
|
|
265
|
+
| Google 订阅 | `gemini-3-pro-image`(通道固定) | 账号登录,无需配置 |
|
|
257
266
|
|
|
258
267
|
</details>
|
|
259
268
|
|
|
@@ -262,6 +271,7 @@ pnpm dsh plugin --profile web add ./dsh-image-gen
|
|
|
262
271
|
## 数据与隐私
|
|
263
272
|
|
|
264
273
|
- **BYOK**:API Key 通过 DSH Credentials 服务保存,设置页不会回显 Key 明文。
|
|
274
|
+
- **订阅登录**:订阅账号令牌经你授权登录后保存于 DSH Credentials,与 API Key 完全隔离,浏览器侧不接触令牌。
|
|
265
275
|
- **云端请求**:Prompt 与本次使用的参考图会发送给所选 Provider,请遵守对应服务条款。
|
|
266
276
|
- **本地 ComfyUI**:请求发送到用户配置的 ComfyUI 地址。
|
|
267
277
|
- **工作区文件**:开启工作区保存后,对话结果会落盘;Studio 仅保存用户选中的候选图。
|