dsh-image-gen 0.1.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/package.json ADDED
@@ -0,0 +1,113 @@
1
+ {
2
+ "name": "dsh-image-gen",
3
+ "version": "0.1.0",
4
+ "description": "Installable multi-provider image generation bundle for DeepSeek Harness",
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
+ ],
52
+ "platform": "web"
53
+ }
54
+ },
55
+ "engines": {
56
+ "node": "^22.19.0 || >=24.0.0"
57
+ },
58
+ "license": "MIT",
59
+ "keywords": [
60
+ "deepseek-harness",
61
+ "dsh",
62
+ "gemini",
63
+ "openai",
64
+ "seedream",
65
+ "image-generation",
66
+ "cordis"
67
+ ],
68
+ "peerDependencies": {
69
+ "@deepseek-ai/cordis": ">=4.0.0 <5",
70
+ "@deepseek-ai/dsh-attachment": ">=0.1.0-rc.5 <0.2.0",
71
+ "@deepseek-ai/dsh-api-remotes": ">=0.1.0-rc.5 <0.2.0",
72
+ "@deepseek-ai/dsh-client-connection": ">=0.1.0-rc.5 <0.2.0",
73
+ "@deepseek-ai/dsh-client-runtime": ">=0.1.0-rc.5 <0.2.0",
74
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.1.0-rc.5 <0.2.0",
75
+ "@deepseek-ai/dsh-client-ui-settings-plugins": ">=0.1.0-rc.5 <0.2.0",
76
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.1.0-rc.5 <0.2.0",
77
+ "@deepseek-ai/dsh-client-ui-tool": ">=0.1.0-rc.5 <0.2.0",
78
+ "@deepseek-ai/dsh-credentials": ">=0.1.0-rc.5 <0.2.0",
79
+ "@deepseek-ai/dsh-host-webserver": ">=0.1.0-rc.5 <0.2.0",
80
+ "@deepseek-ai/dsh-settings": ">=0.1.0-rc.5 <0.2.0",
81
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.5 <0.2.0",
82
+ "@deepseek-ai/schemastery": ">=3.18.0 <4",
83
+ "react": ">=18.2.0 <19"
84
+ },
85
+ "devDependencies": {
86
+ "@deepseek-ai/cordis": "4.0.1",
87
+ "@deepseek-ai/dsh-attachment": "0.1.0-rc.6",
88
+ "@deepseek-ai/dsh-api-remotes": "0.1.0-rc.6",
89
+ "@deepseek-ai/dsh-client-connection": "0.1.0-rc.6",
90
+ "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
91
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.6",
92
+ "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.0-rc.6",
93
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
94
+ "@deepseek-ai/dsh-client-ui-tool": "0.1.0-rc.6",
95
+ "@deepseek-ai/dsh-credentials": "0.1.0-rc.6",
96
+ "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.6",
97
+ "@deepseek-ai/dsh-settings": "0.1.0-rc.6",
98
+ "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
99
+ "@deepseek-ai/schemastery": "3.18.1",
100
+ "@types/node": "^22.20.0",
101
+ "@types/react": "~18.3.1",
102
+ "react": "^18.2.0",
103
+ "tsdown": "^0.22.2",
104
+ "typescript": "^6.0.3",
105
+ "vitest": "^4.1.8"
106
+ },
107
+ "scripts": {
108
+ "typecheck": "tsc --noEmit",
109
+ "build": "tsc && tsdown",
110
+ "test": "vitest run",
111
+ "pack:check": "pnpm pack --dry-run"
112
+ }
113
+ }
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: install-dsh-image-gen
3
+ description: Install, configure, verify, or remove the dsh-image-gen Bundle in a DeepSeek Harness Web profile. Use when a user wants Google, OpenAI-compatible relay, or Seedream image generation in DSH, cannot find the Image generation settings card, or needs help testing generate_image.
4
+ ---
5
+
6
+ # Install DSH Image Gen
7
+
8
+ 1. Confirm `dsh` runs and record `dsh --version`.
9
+ 2. Ask which Web profile to change if the user did not name one. Default to `web` only when that profile already exists.
10
+ 3. Install the pinned package or repository spec the user provides:
11
+
12
+ ```sh
13
+ dsh plugin --profile <profile> add <package-or-git-spec>
14
+ ```
15
+
16
+ 4. If pnpm blocks the Git dependency's `prepare` script, explain that the allowance executes repository code during installation. Add only the exact package key pnpm reports to the profile's `pnpm-workspace.yaml`, then retry after the user approves.
17
+ 5. Verify `dsh --profile <profile> --dump-config` contains the `dsh-image-gen` layer and `image-gen` row.
18
+ 6. Start the profile. If port 3080 is already in use, identify the existing DSH process before stopping anything.
19
+ 7. In Settings > Plugins > Plugin configuration > Image generation, select Google, OpenAI-compatible relay, or Seedream, then save its API key. Never print, read back, or commit the key.
20
+ 8. Test with “生成一张戴墨镜的赛博朋克猫图片”. Confirm one `generate_image` call succeeds and its image renders in the conversation.
21
+
22
+ For removal, run `dsh plugin --profile <profile> remove dsh-image-gen`. Do not delete the user's credentials unless they explicitly request it.