@dickpy/dsh-imagegen 1.5.7 → 1.5.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.md +5 -4
- package/lib/client.js +36358 -845
- package/lib/client.js.map +1 -1
- package/lib/index.js +3 -3
- package/package.json +82 -81
- package/src/canvas-store.ts +376 -375
- package/src/client/CanvasWorkspace.tsx +417 -77
- package/src/client/canvas-workspace.module.css +157 -33
- package/src/client/locales.ts +21 -12
- package/src/protocol.ts +580 -580
package/lib/index.js
CHANGED
|
@@ -41,7 +41,7 @@ function installSettingsSectionCompat(ctx, ns, schema, entry, hooks) {
|
|
|
41
41
|
/** Settings namespace this plugin owns (host settings seam + bridge). */
|
|
42
42
|
const IMAGEGEN_SETTINGS_NAMESPACE = "dsh-imagegen";
|
|
43
43
|
/** Published package version shared by the host updater and the client UI. */
|
|
44
|
-
const PLUGIN_VERSION = "1.5.
|
|
44
|
+
const PLUGIN_VERSION = "1.5.8";
|
|
45
45
|
/** Same-origin route family (loopback-only, mirroring the dsh-ssh fence). */
|
|
46
46
|
const SETTINGS_API = {
|
|
47
47
|
describe: "/api/dsh-imagegen/settings/describe",
|
|
@@ -2030,7 +2030,7 @@ function defaultDocument(id, title) {
|
|
|
2030
2030
|
y: 0,
|
|
2031
2031
|
k: 1
|
|
2032
2032
|
},
|
|
2033
|
-
background: "
|
|
2033
|
+
background: "flow",
|
|
2034
2034
|
nodes: [],
|
|
2035
2035
|
connections: [],
|
|
2036
2036
|
createdAt: now,
|
|
@@ -2060,7 +2060,7 @@ function isNode(value) {
|
|
|
2060
2060
|
function isDocument(value) {
|
|
2061
2061
|
if (value === null || typeof value !== "object") return false;
|
|
2062
2062
|
const document = value;
|
|
2063
|
-
return document.version === 2 && typeof document.id === "string" && typeof document.title === "string" && typeof document.revision === "number" && document.viewport !== null && typeof document.viewport === "object" && typeof document.viewport.x === "number" && typeof document.viewport.y === "number" && typeof document.viewport.k === "number" && (document.background === "dots" || document.background === "lines" || document.background === "diagonal" || document.background === "checker" || document.background === "blank" || document.background === "image") && (document.backgroundImage === void 0 || typeof document.backgroundImage === "string") && Array.isArray(document.nodes) && document.nodes.every(isNode) && Array.isArray(document.connections);
|
|
2063
|
+
return document.version === 2 && typeof document.id === "string" && typeof document.title === "string" && typeof document.revision === "number" && document.viewport !== null && typeof document.viewport === "object" && typeof document.viewport.x === "number" && typeof document.viewport.y === "number" && typeof document.viewport.k === "number" && (document.background === "dots" || document.background === "lines" || document.background === "diagonal" || document.background === "checker" || document.background === "blank" || document.background === "image" || document.background === "flow" || document.background === "aurora") && (document.backgroundImage === void 0 || typeof document.backgroundImage === "string") && Array.isArray(document.nodes) && document.nodes.every(isNode) && Array.isArray(document.connections);
|
|
2064
2064
|
}
|
|
2065
2065
|
/** Upgrade a v1 (image/text/annotation + edges) document to the v2 node-graph model.
|
|
2066
2066
|
* Images and text notes keep their geometry; annotation prompt cards become plain
|
package/package.json
CHANGED
|
@@ -1,81 +1,82 @@
|
|
|
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.5.
|
|
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
|
-
"@deepseek-ai/dsh-client-store",
|
|
19
|
-
"@deepseek-ai/dsh-api-remotes",
|
|
20
|
-
"@deepseek-ai/dsh-api-session-controller",
|
|
21
|
-
"@deepseek-ai/dsh-client-connection",
|
|
22
|
-
"@deepseek-ai/dsh-client-ui-conversation",
|
|
23
|
-
"@deepseek-ai/dsh-client-ui-renderer",
|
|
24
|
-
"@deepseek-ai/dsh-client-ui-settings",
|
|
25
|
-
"@deepseek-ai/dsh-client-ui-tool"
|
|
26
|
-
],
|
|
27
|
-
"platform": "web"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"@deepseek-ai/
|
|
36
|
-
"@deepseek-ai/dsh-api-
|
|
37
|
-
"@deepseek-ai/dsh-
|
|
38
|
-
"@deepseek-ai/dsh-
|
|
39
|
-
"@deepseek-ai/dsh-client-
|
|
40
|
-
"@deepseek-ai/dsh-client-
|
|
41
|
-
"@deepseek-ai/dsh-client-
|
|
42
|
-
"@deepseek-ai/dsh-client-ui-
|
|
43
|
-
"@deepseek-ai/dsh-client-ui-
|
|
44
|
-
"@deepseek-ai/dsh-client-ui-
|
|
45
|
-
"@deepseek-ai/dsh-client-ui-
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
48
|
-
"@deepseek-ai/dsh-
|
|
49
|
-
"@deepseek-ai/dsh-
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@
|
|
53
|
-
"@types/
|
|
54
|
-
"@types/react
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"react
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
}
|
|
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.5.8",
|
|
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
|
+
"@deepseek-ai/dsh-client-store",
|
|
19
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
20
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
21
|
+
"@deepseek-ai/dsh-client-connection",
|
|
22
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
23
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
24
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
25
|
+
"@deepseek-ai/dsh-client-ui-tool"
|
|
26
|
+
],
|
|
27
|
+
"platform": "web"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"lucide-react": "^1.41.0",
|
|
32
|
+
"schemastery": "^3.18.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
36
|
+
"@deepseek-ai/dsh-api-remotes": "0.1.2-alpha.2",
|
|
37
|
+
"@deepseek-ai/dsh-api-session-controller": "0.1.2-alpha.2",
|
|
38
|
+
"@deepseek-ai/dsh-attachment": "0.1.2-alpha.2",
|
|
39
|
+
"@deepseek-ai/dsh-client-connection": "0.1.2-alpha.2",
|
|
40
|
+
"@deepseek-ai/dsh-client-locale": "0.1.2-alpha.2",
|
|
41
|
+
"@deepseek-ai/dsh-client-store": "0.1.2-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.1.2-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.2-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.2-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.2-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-commands": "0.1.2-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.2-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-llm": "0.1.2-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-settings": "0.1.2-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.2-alpha.2",
|
|
52
|
+
"@deepseek-ai/dsh-tools": "0.1.2-alpha.2",
|
|
53
|
+
"@types/node": "^22.20.0",
|
|
54
|
+
"@types/react": "~18.3.1",
|
|
55
|
+
"@types/react-dom": "^18.3.5",
|
|
56
|
+
"jsdom": "25.0.1",
|
|
57
|
+
"lightningcss": "1.32.0",
|
|
58
|
+
"react": "^18.3.1",
|
|
59
|
+
"react-dom": "^18.3.1",
|
|
60
|
+
"schemastery": "^3.18.0",
|
|
61
|
+
"tsdown": "0.22.2",
|
|
62
|
+
"typescript": "~5.7.2"
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"lib",
|
|
66
|
+
"src",
|
|
67
|
+
"cordis.patch.yml",
|
|
68
|
+
"docs",
|
|
69
|
+
"README.md"
|
|
70
|
+
],
|
|
71
|
+
"license": "Apache-2.0",
|
|
72
|
+
"repository": {
|
|
73
|
+
"type": "git",
|
|
74
|
+
"url": "git+https://github.com/dickpy/dsh-imagegen.git"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"build": "tsdown",
|
|
78
|
+
"watch": "tsdown --watch",
|
|
79
|
+
"typecheck": "tsc --noEmit",
|
|
80
|
+
"fetch-templates": "node scripts/fetch-templates.mjs"
|
|
81
|
+
}
|
|
82
|
+
}
|