@huaqiu/component-gen-server 0.6.13 → 0.6.17
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/lib/index.d.mts +1 -0
- package/lib/index.mjs +1 -0
- package/lib/standalone.mjs +1 -0
- package/package.json +5 -5
- package/src/backend.ts +1 -1
- package/src/jobs.ts +1 -0
package/lib/index.d.mts
CHANGED
|
@@ -127,6 +127,7 @@ interface ComponentGenBackend {
|
|
|
127
127
|
instruction?: string;
|
|
128
128
|
}, exec: GenerationExec): Promise<Record<string, unknown>>;
|
|
129
129
|
generateFootprint(args: {
|
|
130
|
+
imageDataUrl?: string;
|
|
130
131
|
packageType: string;
|
|
131
132
|
fileName?: string;
|
|
132
133
|
dimensions: Record<string, number>;
|
package/lib/index.mjs
CHANGED
|
@@ -316,6 +316,7 @@ async function runGeneration(store, backend, history, id, req, meta, onProgress)
|
|
|
316
316
|
}
|
|
317
317
|
progress("正在生成封装…");
|
|
318
318
|
const result = await backend.generateFootprint({
|
|
319
|
+
imageDataUrl: req.input.imageDataUrl,
|
|
319
320
|
packageType: req.input.packageType ?? "",
|
|
320
321
|
fileName: req.input.fileName,
|
|
321
322
|
dimensions: req.input.dimensions ?? {}
|
package/lib/standalone.mjs
CHANGED
|
@@ -323,6 +323,7 @@ async function runGeneration(store, backend, history, id, req, meta, onProgress)
|
|
|
323
323
|
}
|
|
324
324
|
progress("正在生成封装…");
|
|
325
325
|
const result = await backend.generateFootprint({
|
|
326
|
+
imageDataUrl: req.input.imageDataUrl,
|
|
326
327
|
packageType: req.input.packageType ?? "",
|
|
327
328
|
fileName: req.input.fileName,
|
|
328
329
|
dimensions: req.input.dimensions ?? {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaqiu/component-gen-server",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.mjs",
|
|
6
6
|
"types": "./lib/index.d.mts",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@deepseek-ai/dsh-home-paths": "^0.1.0-rc.0",
|
|
26
|
-
"@huaqiu/dsh-artifacts": "0.6.
|
|
27
|
-
"@huaqiu/dsh-auth": "0.6.
|
|
26
|
+
"@huaqiu/dsh-artifacts": "0.6.17",
|
|
27
|
+
"@huaqiu/dsh-auth": "0.6.17"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@deepseek-ai/dsh-host-webserver": "^0.2.1-rc.2",
|
|
31
|
-
"@huaqiu/dsh-tool-symbol-footprint": "^0.6.
|
|
31
|
+
"@huaqiu/dsh-tool-symbol-footprint": "^0.6.17"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"tsdown": "^0.22.14",
|
|
35
35
|
"typescript": "^5.9.0",
|
|
36
36
|
"vitest": "^4.1.0",
|
|
37
|
-
"@huaqiu/dsh-tool-symbol-footprint": "0.6.
|
|
37
|
+
"@huaqiu/dsh-tool-symbol-footprint": "0.6.17"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
package/src/backend.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface GenerationExec {
|
|
|
25
25
|
export interface ComponentGenBackend {
|
|
26
26
|
generateSymbol(args: { imageDataUrl: string; instruction?: string }, exec: GenerationExec): Promise<Record<string, unknown>>
|
|
27
27
|
extractFootprint(args: { imageDataUrl: string; packageType?: string; instruction?: string }, exec: GenerationExec): Promise<Record<string, unknown>>
|
|
28
|
-
generateFootprint(args: { packageType: string; fileName?: string; dimensions: Record<string, number> }, exec: GenerationExec): Promise<Record<string, unknown>>
|
|
28
|
+
generateFootprint(args: { imageDataUrl?: string; packageType: string; fileName?: string; dimensions: Record<string, number> }, exec: GenerationExec): Promise<Record<string, unknown>>
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export function kindLabel(kind: JobKind): 'symbol' | 'footprint' {
|
package/src/jobs.ts
CHANGED
|
@@ -200,6 +200,7 @@ export async function runGeneration(
|
|
|
200
200
|
progress('正在生成封装…')
|
|
201
201
|
const result = await backend.generateFootprint(
|
|
202
202
|
{
|
|
203
|
+
imageDataUrl: req.input.imageDataUrl,
|
|
203
204
|
packageType: req.input.packageType ?? '',
|
|
204
205
|
fileName: req.input.fileName,
|
|
205
206
|
dimensions: req.input.dimensions ?? {},
|