dsh-image-gen 0.1.1 → 0.1.2

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/package.json CHANGED
@@ -1,122 +1,124 @@
1
- {
2
- "name": "dsh-image-gen",
3
- "version": "0.1.1",
4
- "description": "Bring ChatGPT-like image generation to DeepSeek Harness — Gemini, OpenAI, Seedream & more.",
5
- "type": "module",
6
- "author": "shanliuling",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/shanliuling/dsh-image-gen.git"
10
- },
11
- "bugs": {
12
- "url": "https://github.com/shanliuling/dsh-image-gen/issues"
13
- },
14
- "homepage": "https://github.com/shanliuling/dsh-image-gen#readme",
15
- "main": "lib/index.js",
16
- "types": "lib/types/index.d.ts",
17
- "exports": {
18
- ".": {
19
- "types": "./lib/types/index.d.ts",
20
- "default": "./lib/index.js"
21
- },
22
- "./client": {
23
- "types": "./lib/types/client/index.d.ts",
24
- "default": "./lib/client.js"
25
- },
26
- "./package.json": "./package.json"
27
- },
28
- "files": [
29
- "lib/index.js",
30
- "lib/client.js",
31
- "lib/client.js.map",
32
- "lib/types/**/*.d.ts",
33
- "skills/**/*.md",
34
- "cordis.patch.yml",
35
- "README.md",
36
- "README.zh-CN.md",
37
- "README.en.md",
38
- "LICENSE"
39
- ],
40
- "dsh": {
41
- "bundle": {
42
- "patch": "./cordis.patch.yml"
43
- },
44
- "client": {
45
- "inject": [
46
- "@deepseek-ai/dsh-client-connection",
47
- "@deepseek-ai/dsh-api-remotes",
48
- "@deepseek-ai/dsh-client-runtime",
49
- "@deepseek-ai/dsh-client-ui-settings",
50
- "@deepseek-ai/dsh-client-ui-settings-plugins",
51
- "@deepseek-ai/dsh-client-ui-tool"
52
- ],
53
- "platform": "web"
54
- }
55
- },
56
- "engines": {
57
- "node": "^22.19.0 || >=24.0.0"
58
- },
59
- "license": "MIT",
60
- "keywords": [
61
- "deepseek",
62
- "deepseek-harness",
63
- "dsh",
64
- "dsh-plugin",
65
- "ai-agent",
66
- "image-generation",
67
- "ai-image-generation",
68
- "multimodal",
69
- "gemini",
70
- "openai",
71
- "openai-compatible",
72
- "seedream",
73
- "volcengine",
74
- "byok",
75
- "cordis"
76
- ],
77
- "peerDependencies": {
78
- "@deepseek-ai/cordis": ">=4.0.0 <5",
79
- "@deepseek-ai/dsh-attachment": ">=0.1.0-rc.5 <0.2.0",
80
- "@deepseek-ai/dsh-api-remotes": ">=0.1.0-rc.5 <0.2.0",
81
- "@deepseek-ai/dsh-client-connection": ">=0.1.0-rc.5 <0.2.0",
82
- "@deepseek-ai/dsh-client-runtime": ">=0.1.0-rc.5 <0.2.0",
83
- "@deepseek-ai/dsh-client-ui-settings": ">=0.1.0-rc.5 <0.2.0",
84
- "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.0-rc.5 <0.2.0",
85
- "@deepseek-ai/dsh-client-ui-slots": ">=0.1.0-rc.5 <0.2.0",
86
- "@deepseek-ai/dsh-client-ui-tool": ">=0.1.0-rc.5 <0.2.0",
87
- "@deepseek-ai/dsh-credentials": ">=0.1.0-rc.5 <0.2.0",
88
- "@deepseek-ai/dsh-host-webserver": ">=0.1.0-rc.5 <0.2.0",
89
- "@deepseek-ai/dsh-settings": ">=0.1.0-rc.5 <0.2.0",
90
- "@deepseek-ai/dsh-tools": ">=0.1.0-rc.5 <0.2.0",
91
- "@deepseek-ai/schemastery": ">=3.18.0 <4",
92
- "react": ">=18.2.0 <19"
93
- },
94
- "devDependencies": {
95
- "@deepseek-ai/cordis": "4.0.1",
96
- "@deepseek-ai/dsh-attachment": "0.1.0-rc.6",
97
- "@deepseek-ai/dsh-api-remotes": "0.1.0-rc.6",
98
- "@deepseek-ai/dsh-client-connection": "0.1.0-rc.6",
99
- "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
100
- "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.6",
101
- "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.0-rc.6",
102
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
103
- "@deepseek-ai/dsh-client-ui-tool": "0.1.0-rc.6",
104
- "@deepseek-ai/dsh-credentials": "0.1.0-rc.6",
105
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.6",
106
- "@deepseek-ai/dsh-settings": "0.1.0-rc.6",
107
- "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
108
- "@deepseek-ai/schemastery": "3.18.1",
109
- "@types/node": "^22.20.0",
110
- "@types/react": "~18.3.1",
111
- "react": "^18.2.0",
112
- "tsdown": "^0.22.2",
113
- "typescript": "^6.0.3",
114
- "vitest": "^4.1.8"
115
- },
116
- "scripts": {
117
- "typecheck": "tsc --noEmit",
118
- "build": "tsc && tsdown",
119
- "test": "vitest run",
120
- "pack:check": "pnpm pack --dry-run"
121
- }
122
- }
1
+ {
2
+ "name": "dsh-image-gen",
3
+ "version": "0.1.2",
4
+ "description": "Bring ChatGPT-like image generation to DeepSeek Harness — Gemini, OpenAI, Seedream & more.",
5
+ "type": "module",
6
+ "author": "shanliuling",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/shanliuling/dsh-image-gen.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/shanliuling/dsh-image-gen/issues"
13
+ },
14
+ "homepage": "https://github.com/shanliuling/dsh-image-gen#readme",
15
+ "main": "lib/index.js",
16
+ "types": "lib/types/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./lib/types/index.d.ts",
20
+ "default": "./lib/index.js"
21
+ },
22
+ "./client": {
23
+ "types": "./lib/types/client/index.d.ts",
24
+ "default": "./lib/client.js"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
28
+ "files": [
29
+ "lib/index.js",
30
+ "lib/client.js",
31
+ "lib/client.js.map",
32
+ "lib/types/**/*.d.ts",
33
+ "skills/**/*.md",
34
+ "cordis.patch.yml",
35
+ "README.md",
36
+ "README.zh-CN.md",
37
+ "LICENSE"
38
+ ],
39
+ "dsh": {
40
+ "bundle": {
41
+ "patch": "./cordis.patch.yml"
42
+ },
43
+ "client": {
44
+ "inject": [
45
+ "@deepseek-ai/dsh-client-connection",
46
+ "@deepseek-ai/dsh-api-remotes",
47
+ "@deepseek-ai/dsh-client-runtime",
48
+ "@deepseek-ai/dsh-client-ui-settings",
49
+ "@deepseek-ai/dsh-client-ui-settings-plugins",
50
+ "@deepseek-ai/dsh-client-ui-tool",
51
+ "@deepseek-ai/dsh-client-locale"
52
+ ],
53
+ "platform": "web"
54
+ }
55
+ },
56
+ "scripts": {
57
+ "typecheck": "tsc --noEmit",
58
+ "build": "tsc && tsdown",
59
+ "prepare": "pnpm run build",
60
+ "test": "vitest run",
61
+ "pack:check": "pnpm pack --dry-run"
62
+ },
63
+ "engines": {
64
+ "node": "^22.19.0 || >=24.0.0"
65
+ },
66
+ "license": "MIT",
67
+ "keywords": [
68
+ "deepseek",
69
+ "deepseek-harness",
70
+ "dsh",
71
+ "dsh-plugin",
72
+ "ai-agent",
73
+ "image-generation",
74
+ "ai-image-generation",
75
+ "multimodal",
76
+ "gemini",
77
+ "openai",
78
+ "openai-compatible",
79
+ "seedream",
80
+ "volcengine",
81
+ "byok",
82
+ "cordis"
83
+ ],
84
+ "peerDependencies": {
85
+ "@deepseek-ai/cordis": ">=4.0.0 <5",
86
+ "@deepseek-ai/dsh-attachment": ">=0.1.0-rc.5 <0.2.0",
87
+ "@deepseek-ai/dsh-api-remotes": ">=0.1.0-rc.5 <0.2.0",
88
+ "@deepseek-ai/dsh-client-connection": ">=0.1.0-rc.5 <0.2.0",
89
+ "@deepseek-ai/dsh-client-runtime": ">=0.1.0-rc.5 <0.2.0",
90
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.1.0-rc.5 <0.2.0",
91
+ "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.0-rc.5 <0.2.0",
92
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.0-rc.5 <0.2.0",
93
+ "@deepseek-ai/dsh-client-ui-tool": ">=0.1.0-rc.5 <0.2.0",
94
+ "@deepseek-ai/dsh-credentials": ">=0.1.0-rc.5 <0.2.0",
95
+ "@deepseek-ai/dsh-host-webserver": ">=0.1.0-rc.5 <0.2.0",
96
+ "@deepseek-ai/dsh-settings": ">=0.1.0-rc.5 <0.2.0",
97
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.5 <0.2.0",
98
+ "@deepseek-ai/schemastery": ">=3.18.0 <4",
99
+ "react": ">=18.2.0 <19"
100
+ },
101
+ "devDependencies": {
102
+ "@deepseek-ai/cordis": "4.0.1",
103
+ "@deepseek-ai/dsh-attachment": "0.1.0-rc.6",
104
+ "@deepseek-ai/dsh-api-remotes": "0.1.0-rc.6",
105
+ "@deepseek-ai/dsh-client-connection": "0.1.0-rc.6",
106
+ "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
107
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.6",
108
+ "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.0-rc.6",
109
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
110
+ "@deepseek-ai/dsh-client-ui-tool": "0.1.0-rc.6",
111
+ "@deepseek-ai/dsh-credentials": "0.1.0-rc.6",
112
+ "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.6",
113
+ "@deepseek-ai/dsh-settings": "0.1.0-rc.6",
114
+ "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
115
+ "@deepseek-ai/schemastery": "3.18.1",
116
+ "@types/node": "^22.20.0",
117
+ "@types/react": "~18.3.1",
118
+ "react": "^18.2.0",
119
+ "tsdown": "^0.22.2",
120
+ "typescript": "^6.0.3",
121
+ "vitest": "^4.1.8"
122
+ },
123
+ "packageManager": "pnpm@11.7.0"
124
+ }
package/README.en.md DELETED
@@ -1,158 +0,0 @@
1
- <div align="center">
2
-
3
- # 🎨 dsh-image-gen
4
-
5
- ### Native Image Generation Plugin for DeepSeek Harness (DSH)
6
-
7
- **Bring ChatGPT-like image generation into DeepSeek Harness conversation flows.**
8
-
9
- Supports Google Gemini, OpenAI Images, OpenAI Compatible APIs, ByteDance Seedream / Volcengine Ark.
10
-
11
- [![npm version](https://img.shields.io/npm/v/dsh-image-gen.svg?style=flat-square&color=blue)](https://www.npmjs.com/package/dsh-image-gen)
12
- [![DSH Plugin](https://img.shields.io/badge/Plugin%20For-DeepSeek%20Harness-6366f1?style=flat-square)](https://github.com/deepseek-ai)
13
- [![npm downloads](https://img.shields.io/npm/dm/dsh-image-gen.svg?style=flat-square&color=emerald)](https://www.npmjs.com/package/dsh-image-gen)
14
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](LICENSE)
15
-
16
- **English** | [简体中文](README.md)
17
-
18
- <br />
19
-
20
- <p align="center">💬 <b>Just prompt your DeepSeek Harness Agent:</b></p>
21
-
22
- ```text
23
- Install the image generation plugin by running: pnpm dsh plugin --profile web add dsh-image-gen
24
- ```
25
-
26
- <p align="center"><sub>(Or run manually in terminal: <code>pnpm dsh plugin --profile web add dsh-image-gen</code>)</sub></p>
27
-
28
- <br />
29
-
30
- <p align="center">Once installed, configure your API Key in DSH Settings and prompt your Agent:</p>
31
-
32
- ```text
33
- Create an illustration of a cyberpunk cat in a neon rainy street.
34
- ```
35
-
36
- <p align="center">The Agent will automatically invoke <code>generate_image</code> and render the generated image directly in the conversation flow.</p>
37
-
38
- <br />
39
-
40
- <img src="docs/assets/chat-preview.png" alt="Conversational image generation preview" width="820" />
41
-
42
- </div>
43
-
44
- ---
45
-
46
- ## 💡 What Problem Does It Solve?
47
-
48
- **`dsh-image-gen` is an open-source multimodal image generation bundle built specifically for DeepSeek Harness (DSH).**
49
-
50
- DeepSeek Harness already lets Agents dispatch tools to accomplish complex tasks; this plugin equips DSH with native **multimodal image generation capabilities**:
51
-
52
- ```mermaid
53
- graph LR
54
- A[User Prompt] --> B[DeepSeek Harness Agent]
55
- B --> C[generate_image Tool]
56
- C --> D[Gemini / OpenAI / Seedream]
57
- D --> E[Image Payload]
58
- E --> F[Conversation Stream]
59
- ```
60
-
61
- ---
62
-
63
- ## 🚀 Quick Start
64
-
65
- ### 1. Install Plugin
66
-
67
- Run the following command in your DeepSeek Harness workspace root:
68
-
69
- ```bash
70
- # Recommended: Install and register plugin via pnpm
71
- pnpm dsh plugin --profile web add dsh-image-gen
72
-
73
- # If dsh is installed globally:
74
- dsh plugin --profile web add dsh-image-gen
75
- ```
76
-
77
- <details>
78
- <summary><b>🛠️ Advanced Installation (Git Repository / Local Dev)</b></summary>
79
-
80
- ```bash
81
- # Option B: Direct install from GitHub repo
82
- pnpm dsh plugin --profile web add git+https://github.com/shanliuling/dsh-image-gen.git
83
-
84
- # Option C: Local clone for development
85
- git clone https://github.com/shanliuling/dsh-image-gen.git
86
- pnpm dsh plugin --profile web add ./dsh-image-gen
87
- ```
88
-
89
- </details>
90
-
91
- ### 2. Configure API Key
92
-
93
- Open DSH Web UI (default `http://localhost:3080`):
94
-
95
- 1. Go to **Settings → Plugins → Image generation**.
96
- 2. Select your Provider, enter your API Key, and click **Save**.
97
-
98
- <div align="center">
99
- <img src="docs/assets/settings-preview.png" alt="Settings Card Preview" width="720" />
100
- </div>
101
-
102
- ### 3. Start Generating Images in Chat
103
-
104
- Simply prompt in the chat input:
105
-
106
- ```text
107
- Generate a minimalist illustration of a modern architectural living room.
108
- ```
109
-
110
- The Agent will automatically invoke `generate_image` and render the result in the conversation.
111
-
112
- ---
113
-
114
- ## ✨ Key Features
115
-
116
- - 💬 **In-Conversation Image Generation**: No need to switch between external websites or manually copy prompts; ask your Agent naturally.
117
- - 🎨 **Multi-Provider Support**: Out-of-the-box support for Google Gemini, OpenAI Images, OpenAI Compatible APIs (OneAPI, NewAPI), and ByteDance Seedream / Volcengine Ark. Models and endpoints can be customized directly in the settings UI.
118
- - 🔑 **BYOK (Bring Your Own Key)**: Uses your own API credentials securely managed through DSH's write-isolated `credentials` service. Keys are never saved in plain text on the frontend.
119
- - 🖼️ **Durable Session Attachments**: Images are attached to DSH's native Attachment / Conversation system and remain visible when returning to historical sessions.
120
- - ⚙️ **Native Settings UI**: Change providers, API keys, models, and endpoints directly inside the DSH Web UI without manual config file editing.
121
-
122
- ---
123
-
124
- ## 📦 Supported Providers
125
-
126
- | Provider | Default Model | Default Endpoint / Base URL |
127
- | :--- | :--- | :--- |
128
- | **Google Gemini** | `gemini-3.1-flash-image` | `https://generativelanguage.googleapis.com/v1beta/interactions` |
129
- | **OpenAI Images** | `gpt-image-2` | `https://api.openai.com/v1` |
130
- | **OpenAI Compatible** | Custom | Custom Base URL |
131
- | **ByteDance Seedream / Volcengine** | `doubao-seedream-5-0-260128` | `https://ark.cn-beijing.volces.com/api/v3` |
132
-
133
- ---
134
-
135
- ## 🛠️ Development
136
-
137
- ```bash
138
- # Clone repository
139
- git clone https://github.com/shanliuling/dsh-image-gen.git
140
- cd dsh-image-gen
141
-
142
- # Install dependencies and build
143
- pnpm install
144
- pnpm run typecheck
145
- pnpm run test
146
- pnpm run build
147
-
148
- # Check package payload
149
- pnpm run pack:check
150
- ```
151
-
152
- ---
153
-
154
- ## 📄 License
155
-
156
- This project is licensed under the [MIT License](LICENSE).
157
-
158
- If this plugin helps you, consider giving it a ⭐️ **Star**!