@dickpy/dsh-imagegen 1.2.3 → 1.4.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.
Files changed (45) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +203 -181
  3. package/cordis.patch.yml +8 -8
  4. package/docs/images/multi-model-comparison.png +0 -0
  5. package/lib/client.js +2711 -1318
  6. package/lib/client.js.map +1 -1
  7. package/lib/index.js +830 -155
  8. package/package.json +70 -68
  9. package/src/agent-image-tools.ts +418 -316
  10. package/src/client/ImageGenPanel.tsx +1703 -1476
  11. package/src/client/SettingsCard.tsx +936 -648
  12. package/src/client/TemplateLibrary.tsx +336 -336
  13. package/src/client/api.ts +193 -193
  14. package/src/client/channels-form.ts +263 -0
  15. package/src/client/controller.ts +46 -46
  16. package/src/client/conversation-sync.ts +14 -0
  17. package/src/client/css-modules.d.ts +5 -5
  18. package/src/client/helpers.ts +33 -33
  19. package/src/client/image-toolview.module.css +73 -73
  20. package/src/client/image-toolview.tsx +170 -152
  21. package/src/client/index.ts +32 -22
  22. package/src/client/locales.ts +610 -484
  23. package/src/client/mount.tsx +185 -96
  24. package/src/client/panel.module.css +1713 -1445
  25. package/src/client/settings-card.module.css +1023 -536
  26. package/src/client/settings-form.ts +336 -336
  27. package/src/client/settings-scope.ts +298 -250
  28. package/src/client/sidebar-entry.ts +148 -102
  29. package/src/client/templates.module.css +453 -453
  30. package/src/engine.ts +520 -464
  31. package/src/gallery-store.ts +286 -280
  32. package/src/generation-runtime.ts +79 -48
  33. package/src/history-store.ts +250 -238
  34. package/src/image-format.ts +11 -0
  35. package/src/image-models.ts +19 -19
  36. package/src/index.ts +318 -212
  37. package/src/model-catalog.ts +115 -0
  38. package/src/presets.ts +71 -0
  39. package/src/prompt-enhancer.ts +137 -79
  40. package/src/protocol.ts +338 -253
  41. package/src/routes.ts +916 -738
  42. package/src/task-queue.ts +113 -103
  43. package/src/templates/cases.json +10196 -10196
  44. package/src/templates-store.ts +278 -278
  45. package/src/updater.ts +117 -117
package/package.json CHANGED
@@ -1,72 +1,74 @@
1
- {
2
- "name": "@dickpy/dsh-imagegen",
3
- "description": "AI 鐢熷浘 (image generation) plugin for the dsh web GUI: text-to-image and image-to-image through a configurable OpenAI-compatible endpoint (gpt-image-2 / grok-imagine-image / nanobanana series / seedream-5.0-pro / dall-e-3, with native xAI Grok Imagine, Google Nano Banana and ByteDance Seedream request shaping), with a settings card for api_url / api_key and a sidebar entry opening a split-pane generation studio.",
4
- "version": "1.2.3",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "exports": {
8
- ".": "./lib/index.js",
9
- "./client": "./lib/client.js",
10
- "./package.json": "./package.json"
11
- },
12
- "dsh": {
13
- "bundle": {
14
- "patch": "./cordis.patch.yml"
15
- },
16
- "client": {
17
- "inject": [
1
+ {
2
+ "name": "@dickpy/dsh-imagegen",
3
+ "description": "AI image generation plugin for the dsh web GUI: text-to-image and image-to-image through configurable provider channels (gpt-image-2 / grok-imagine-image / nanobanana series / seedream-5.0-pro / dall-e-3, with native xAI Grok Imagine, Google Nano Banana and ByteDance Seedream request shaping), with per-channel model catalogs and a New Session / Image Generation tab entry opening a three-column studio beside the native conversation.",
4
+ "version": "1.4.0",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "exports": {
8
+ ".": "./lib/index.js",
9
+ "./client": "./lib/client.js",
10
+ "./package.json": "./package.json"
11
+ },
12
+ "dsh": {
13
+ "bundle": {
14
+ "patch": "./cordis.patch.yml"
15
+ },
16
+ "client": {
17
+ "inject": [
18
18
  "@deepseek-ai/dsh-client-runtime",
19
19
  "@deepseek-ai/dsh-client-connection",
20
+ "@deepseek-ai/dsh-client-ui-conversation",
20
21
  "@deepseek-ai/dsh-client-ui-settings",
21
- "@deepseek-ai/dsh-client-ui-tool"
22
- ],
23
- "platform": "web"
24
- }
25
- },
26
- "dependencies": {
27
- "schemastery": "^3.18.0"
28
- },
29
- "devDependencies": {
30
- "@deepseek-ai/cordis": "^4.0.1",
31
- "@deepseek-ai/dsh-attachment": "0.1.0-rc.7",
32
- "@deepseek-ai/dsh-client-connection": "0.1.0-rc.7",
33
- "@deepseek-ai/dsh-client-locale": "0.1.0-rc.7",
34
- "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.7",
22
+ "@deepseek-ai/dsh-client-ui-tool"
23
+ ],
24
+ "platform": "web"
25
+ }
26
+ },
27
+ "dependencies": {
28
+ "schemastery": "^3.18.0"
29
+ },
30
+ "devDependencies": {
31
+ "@deepseek-ai/cordis": "^4.0.1",
32
+ "@deepseek-ai/dsh-attachment": "0.1.0-rc.7",
33
+ "@deepseek-ai/dsh-client-connection": "0.1.0-rc.7",
34
+ "@deepseek-ai/dsh-client-locale": "0.1.0-rc.7",
35
+ "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.7",
35
36
  "@deepseek-ai/dsh-client-ui-primitives": "0.1.0-rc.7",
36
- "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.7",
37
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.7",
38
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.7",
39
- "@deepseek-ai/dsh-llm": "0.1.0-rc.7",
40
- "@deepseek-ai/dsh-settings": "0.1.0-rc.7",
41
- "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.7",
42
- "@deepseek-ai/dsh-tools": "0.1.0-rc.7",
43
- "@types/node": "^22.20.0",
44
- "@types/react": "~18.3.1",
45
- "@types/react-dom": "^18.3.5",
46
- "jsdom": "25.0.1",
47
- "lightningcss": "1.32.0",
48
- "react": "^18.3.1",
49
- "react-dom": "^18.3.1",
50
- "schemastery": "^3.18.0",
51
- "tsdown": "0.22.2",
52
- "typescript": "~5.7.2"
53
- },
54
- "files": [
55
- "lib",
56
- "src",
57
- "cordis.patch.yml",
58
- "docs",
59
- "README.md"
60
- ],
61
- "license": "Apache-2.0",
62
- "repository": {
63
- "type": "git",
64
- "url": "git+https://github.com/dickpy/dsh-imagegen.git"
65
- },
66
- "scripts": {
67
- "build": "tsdown",
68
- "watch": "tsdown --watch",
69
- "typecheck": "tsc --noEmit",
70
- "fetch-templates": "node scripts/fetch-templates.mjs"
71
- }
72
- }
37
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.7",
38
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.7",
39
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.7",
40
+ "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.7",
41
+ "@deepseek-ai/dsh-llm": "0.1.0-rc.7",
42
+ "@deepseek-ai/dsh-settings": "0.1.0-rc.7",
43
+ "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.7",
44
+ "@deepseek-ai/dsh-tools": "0.1.0-rc.7",
45
+ "@types/node": "^22.20.0",
46
+ "@types/react": "~18.3.1",
47
+ "@types/react-dom": "^18.3.5",
48
+ "jsdom": "25.0.1",
49
+ "lightningcss": "1.32.0",
50
+ "react": "^18.3.1",
51
+ "react-dom": "^18.3.1",
52
+ "schemastery": "^3.18.0",
53
+ "tsdown": "0.22.2",
54
+ "typescript": "~5.7.2"
55
+ },
56
+ "files": [
57
+ "lib",
58
+ "src",
59
+ "cordis.patch.yml",
60
+ "docs",
61
+ "README.md"
62
+ ],
63
+ "license": "Apache-2.0",
64
+ "repository": {
65
+ "type": "git",
66
+ "url": "git+https://github.com/dickpy/dsh-imagegen.git"
67
+ },
68
+ "scripts": {
69
+ "build": "tsdown",
70
+ "watch": "tsdown --watch",
71
+ "typecheck": "tsc --noEmit",
72
+ "fetch-templates": "node scripts/fetch-templates.mjs"
73
+ }
74
+ }