@dickpy/dsh-imagegen 1.0.6 → 1.0.7
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 +4 -4
- package/lib/client.js +102 -103
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +11 -11
- package/src/client/index.ts +126 -127
- package/src/protocol.ts +1 -1
package/README.md
CHANGED
|
@@ -48,13 +48,13 @@ DeepSeek Harness (DSH) Web GUI 的 AI 生图插件。它通过宿主进程安全
|
|
|
48
48
|
把下面提示词直接粘贴给 **DSH**(或 Codex / 其他 coding agent)执行即可:
|
|
49
49
|
|
|
50
50
|
```text
|
|
51
|
-
用 dsh plugin --profile web add @dickpy/dsh-imagegen@1.0.
|
|
51
|
+
用 dsh plugin --profile web add @dickpy/dsh-imagegen@1.0.7 安装 AI 生图插件(profile 名按实际修改),完成后重启 dsh web。
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
### 方式二:npm 安装(推荐)
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
dsh plugin --profile web add @dickpy/dsh-imagegen@1.0.
|
|
57
|
+
dsh plugin --profile web add @dickpy/dsh-imagegen@1.0.7
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
dsh 会自动把插件注册进 profile 的 bundle 清单(无需手动改 cordis.patch.yml),重启 dsh web 即可。
|
|
@@ -62,10 +62,10 @@ dsh 会自动把插件注册进 profile 的 bundle 清单(无需手动改 cord
|
|
|
62
62
|
### 方式三:聚合包(tarball)安装
|
|
63
63
|
|
|
64
64
|
从 [GitHub Releases](https://github.com/dickpy/dsh-imagegen/releases) 下载发布产物
|
|
65
|
-
(如 `dickpy-dsh-imagegen-1.0.
|
|
65
|
+
(如 `dickpy-dsh-imagegen-1.0.7.tgz`),然后:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
dsh plugin --profile web add <下载路径>/dickpy-dsh-imagegen-1.0.
|
|
68
|
+
dsh plugin --profile web add <下载路径>/dickpy-dsh-imagegen-1.0.7.tgz
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
重启 dsh web。
|
package/lib/client.js
CHANGED
|
@@ -12,7 +12,7 @@ window.__ModuleLoader__.load({
|
|
|
12
12
|
let _deepseek_ai_dsh_client_runtime_client = require("@deepseek-ai/dsh-client-runtime/client");
|
|
13
13
|
//#region src/protocol.ts
|
|
14
14
|
/** Published package version shared by the host updater and the client UI. */
|
|
15
|
-
const PLUGIN_VERSION = "1.0.
|
|
15
|
+
const PLUGIN_VERSION = "1.0.7";
|
|
16
16
|
/** Same-origin route family (loopback-only, mirroring the dsh-ssh fence). */
|
|
17
17
|
const SETTINGS_API = {
|
|
18
18
|
describe: "/api/dsh-imagegen/settings/describe",
|
|
@@ -409,100 +409,100 @@ window.__ModuleLoader__.load({
|
|
|
409
409
|
document.head.appendChild(tag);
|
|
410
410
|
}
|
|
411
411
|
var panel_module_css_default = {
|
|
412
|
-
"
|
|
413
|
-
"bigSpinner": "Yvqh9W_bigSpinner",
|
|
414
|
-
"hiddenFile": "Yvqh9W_hiddenFile",
|
|
415
|
-
"updateRelease": "Yvqh9W_updateRelease",
|
|
416
|
-
"panelSubtitle": "Yvqh9W_panelSubtitle",
|
|
417
|
-
"historyMain": "Yvqh9W_historyMain",
|
|
418
|
-
"view": "Yvqh9W_view",
|
|
419
|
-
"historyAction": "Yvqh9W_historyAction",
|
|
420
|
-
"entryLabel": "Yvqh9W_entryLabel",
|
|
421
|
-
"historyEmpty": "Yvqh9W_historyEmpty",
|
|
422
|
-
"connectionDot": "Yvqh9W_connectionDot",
|
|
423
|
-
"canvasState": "Yvqh9W_canvasState",
|
|
424
|
-
"uploadBox": "Yvqh9W_uploadBox",
|
|
425
|
-
"canvasStateTitle": "Yvqh9W_canvasStateTitle",
|
|
426
|
-
"lightboxClose": "Yvqh9W_lightboxClose",
|
|
427
|
-
"lightboxImage": "Yvqh9W_lightboxImage",
|
|
428
|
-
"download": "Yvqh9W_download",
|
|
429
|
-
"entryIcon": "Yvqh9W_entryIcon",
|
|
430
|
-
"canvas": "Yvqh9W_canvas",
|
|
412
|
+
"panel": "Yvqh9W_panel",
|
|
431
413
|
"panelHeader": "Yvqh9W_panelHeader",
|
|
432
|
-
"config": "Yvqh9W_config",
|
|
433
|
-
"generateInner": "Yvqh9W_generateInner",
|
|
434
|
-
"grid": "Yvqh9W_grid",
|
|
435
|
-
"history": "Yvqh9W_history",
|
|
436
|
-
"lightboxCopy": "Yvqh9W_lightboxCopy",
|
|
437
|
-
"historyTitle": "Yvqh9W_historyTitle",
|
|
438
|
-
"paramGroup": "Yvqh9W_paramGroup",
|
|
439
|
-
"spinner": "Yvqh9W_spinner",
|
|
440
|
-
"modePill": "Yvqh9W_modePill",
|
|
441
|
-
"canvasError": "Yvqh9W_canvasError",
|
|
442
|
-
"uploadHint": "Yvqh9W_uploadHint",
|
|
443
414
|
"reference": "Yvqh9W_reference",
|
|
444
|
-
"zoomHint": "Yvqh9W_zoomHint",
|
|
445
|
-
"canvasHistoryTag": "Yvqh9W_canvasHistoryTag",
|
|
446
|
-
"lightboxTool": "Yvqh9W_lightboxTool",
|
|
447
|
-
"promptFooter": "Yvqh9W_promptFooter",
|
|
448
|
-
"lightbox": "Yvqh9W_lightbox",
|
|
449
|
-
"canvasEmptyIcon": "Yvqh9W_canvasEmptyIcon",
|
|
450
|
-
"lightboxZoomLevel": "Yvqh9W_lightboxZoomLevel",
|
|
451
|
-
"modelWrap": "Yvqh9W_modelWrap",
|
|
452
|
-
"updateText": "Yvqh9W_updateText",
|
|
453
|
-
"prompt": "Yvqh9W_prompt",
|
|
454
|
-
"historyHeader": "Yvqh9W_historyHeader",
|
|
455
415
|
"updateBanner": "Yvqh9W_updateBanner",
|
|
456
|
-
"
|
|
457
|
-
"
|
|
458
|
-
"optionGrid": "Yvqh9W_optionGrid",
|
|
459
|
-
"historyPrompt": "Yvqh9W_historyPrompt",
|
|
460
|
-
"promptCount": "Yvqh9W_promptCount",
|
|
461
|
-
"modelSelect": "Yvqh9W_modelSelect",
|
|
462
|
-
"canvasBody": "Yvqh9W_canvasBody",
|
|
463
|
-
"lightboxScaleFrame": "Yvqh9W_lightboxScaleFrame",
|
|
464
|
-
"lightboxMeta": "Yvqh9W_lightboxMeta",
|
|
465
|
-
"panelHeading": "Yvqh9W_panelHeading",
|
|
466
|
-
"historyThumb": "Yvqh9W_historyThumb",
|
|
467
|
-
"historyInfo": "Yvqh9W_historyInfo",
|
|
468
|
-
"referenceImage": "Yvqh9W_referenceImage",
|
|
469
|
-
"entry": "Yvqh9W_entry",
|
|
470
|
-
"optionPill": "Yvqh9W_optionPill",
|
|
471
|
-
"paramLabel": "Yvqh9W_paramLabel",
|
|
472
|
-
"historyClear": "Yvqh9W_historyClear",
|
|
473
|
-
"panel": "Yvqh9W_panel",
|
|
474
|
-
"panelTitle": "Yvqh9W_panelTitle",
|
|
475
|
-
"historyThumbPlaceholder": "Yvqh9W_historyThumbPlaceholder",
|
|
416
|
+
"lightboxDownload": "Yvqh9W_lightboxDownload",
|
|
417
|
+
"updateText": "Yvqh9W_updateText",
|
|
476
418
|
"studio": "Yvqh9W_studio",
|
|
419
|
+
"hiddenFile": "Yvqh9W_hiddenFile",
|
|
420
|
+
"uploadHint": "Yvqh9W_uploadHint",
|
|
477
421
|
"referenceActions": "Yvqh9W_referenceActions",
|
|
478
|
-
"
|
|
479
|
-
"
|
|
422
|
+
"paramLabel": "Yvqh9W_paramLabel",
|
|
423
|
+
"entryLabel": "Yvqh9W_entryLabel",
|
|
480
424
|
"imageCaption": "Yvqh9W_imageCaption",
|
|
481
|
-
"
|
|
482
|
-
"
|
|
483
|
-
"
|
|
484
|
-
"
|
|
425
|
+
"panelTitle": "Yvqh9W_panelTitle",
|
|
426
|
+
"historyHeader": "Yvqh9W_historyHeader",
|
|
427
|
+
"card": "Yvqh9W_card",
|
|
428
|
+
"optionGrid": "Yvqh9W_optionGrid",
|
|
485
429
|
"historyList": "Yvqh9W_historyList",
|
|
486
430
|
"historyItem": "Yvqh9W_historyItem",
|
|
487
|
-
"lightboxIndex": "Yvqh9W_lightboxIndex",
|
|
488
|
-
"lightboxFigure": "Yvqh9W_lightboxFigure",
|
|
489
|
-
"optionRow": "Yvqh9W_optionRow",
|
|
490
|
-
"card": "Yvqh9W_card",
|
|
491
431
|
"footer": "Yvqh9W_footer",
|
|
492
|
-
"
|
|
432
|
+
"updateActions": "Yvqh9W_updateActions",
|
|
433
|
+
"modelLabel": "Yvqh9W_modelLabel",
|
|
434
|
+
"config": "Yvqh9W_config",
|
|
435
|
+
"canvasStateTitle": "Yvqh9W_canvasStateTitle",
|
|
436
|
+
"dshImageGenSpin": "Yvqh9W_dshImageGenSpin",
|
|
437
|
+
"spinner": "Yvqh9W_spinner",
|
|
438
|
+
"historyEmpty": "Yvqh9W_historyEmpty",
|
|
439
|
+
"canvasBody": "Yvqh9W_canvasBody",
|
|
493
440
|
"canvasMeta": "Yvqh9W_canvasMeta",
|
|
494
|
-
"lightboxStage": "Yvqh9W_lightboxStage",
|
|
495
|
-
"modeRow": "Yvqh9W_modeRow",
|
|
496
|
-
"configScroll": "Yvqh9W_configScroll",
|
|
497
|
-
"historyMeta": "Yvqh9W_historyMeta",
|
|
498
441
|
"image": "Yvqh9W_image",
|
|
442
|
+
"lightboxScaleFrame": "Yvqh9W_lightboxScaleFrame",
|
|
443
|
+
"canvas": "Yvqh9W_canvas",
|
|
444
|
+
"lightboxTools": "Yvqh9W_lightboxTools",
|
|
445
|
+
"lightboxTool": "Yvqh9W_lightboxTool",
|
|
446
|
+
"paramGroup": "Yvqh9W_paramGroup",
|
|
447
|
+
"canvasStateHint": "Yvqh9W_canvasStateHint",
|
|
448
|
+
"historyClear": "Yvqh9W_historyClear",
|
|
449
|
+
"historyMain": "Yvqh9W_historyMain",
|
|
450
|
+
"grid": "Yvqh9W_grid",
|
|
451
|
+
"lightboxFigure": "Yvqh9W_lightboxFigure",
|
|
452
|
+
"lightboxCopy": "Yvqh9W_lightboxCopy",
|
|
499
453
|
"lightboxCaptionRow": "Yvqh9W_lightboxCaptionRow",
|
|
500
454
|
"lightboxCaption": "Yvqh9W_lightboxCaption",
|
|
501
455
|
"lightboxActions": "Yvqh9W_lightboxActions",
|
|
456
|
+
"generateButton": "Yvqh9W_generateButton",
|
|
502
457
|
"lightboxEdit": "Yvqh9W_lightboxEdit",
|
|
503
|
-
"
|
|
458
|
+
"lightboxNav": "Yvqh9W_lightboxNav",
|
|
459
|
+
"historyAction": "Yvqh9W_historyAction",
|
|
460
|
+
"canvasError": "Yvqh9W_canvasError",
|
|
461
|
+
"lightboxMeta": "Yvqh9W_lightboxMeta",
|
|
462
|
+
"history": "Yvqh9W_history",
|
|
463
|
+
"promptCount": "Yvqh9W_promptCount",
|
|
464
|
+
"historyTitle": "Yvqh9W_historyTitle",
|
|
465
|
+
"historyThumbPlaceholder": "Yvqh9W_historyThumbPlaceholder",
|
|
466
|
+
"prompt": "Yvqh9W_prompt",
|
|
467
|
+
"historyMeta": "Yvqh9W_historyMeta",
|
|
468
|
+
"modePill": "Yvqh9W_modePill",
|
|
469
|
+
"entry": "Yvqh9W_entry",
|
|
470
|
+
"generateInner": "Yvqh9W_generateInner",
|
|
471
|
+
"zoomHint": "Yvqh9W_zoomHint",
|
|
472
|
+
"lightboxZoomLevel": "Yvqh9W_lightboxZoomLevel",
|
|
473
|
+
"lightboxIndex": "Yvqh9W_lightboxIndex",
|
|
474
|
+
"paramHint": "Yvqh9W_paramHint",
|
|
475
|
+
"lightbox": "Yvqh9W_lightbox",
|
|
476
|
+
"lightboxImage": "Yvqh9W_lightboxImage",
|
|
504
477
|
"connectionStatus": "Yvqh9W_connectionStatus",
|
|
505
|
-
"
|
|
478
|
+
"referenceImage": "Yvqh9W_referenceImage",
|
|
479
|
+
"promptFooter": "Yvqh9W_promptFooter",
|
|
480
|
+
"connectionDot": "Yvqh9W_connectionDot",
|
|
481
|
+
"historyInfo": "Yvqh9W_historyInfo",
|
|
482
|
+
"uploadBox": "Yvqh9W_uploadBox",
|
|
483
|
+
"canvasEmptyIcon": "Yvqh9W_canvasEmptyIcon",
|
|
484
|
+
"view": "Yvqh9W_view",
|
|
485
|
+
"entryIcon": "Yvqh9W_entryIcon",
|
|
486
|
+
"lightboxClose": "Yvqh9W_lightboxClose",
|
|
487
|
+
"download": "Yvqh9W_download",
|
|
488
|
+
"modelSelect": "Yvqh9W_modelSelect",
|
|
489
|
+
"historyPrompt": "Yvqh9W_historyPrompt",
|
|
490
|
+
"uploadIcon": "Yvqh9W_uploadIcon",
|
|
491
|
+
"canvasHistoryTag": "Yvqh9W_canvasHistoryTag",
|
|
492
|
+
"historyActions": "Yvqh9W_historyActions",
|
|
493
|
+
"panelHeading": "Yvqh9W_panelHeading",
|
|
494
|
+
"panelSubtitle": "Yvqh9W_panelSubtitle",
|
|
495
|
+
"historyThumb": "Yvqh9W_historyThumb",
|
|
496
|
+
"modeRow": "Yvqh9W_modeRow",
|
|
497
|
+
"canvasState": "Yvqh9W_canvasState",
|
|
498
|
+
"configScroll": "Yvqh9W_configScroll",
|
|
499
|
+
"modelWrap": "Yvqh9W_modelWrap",
|
|
500
|
+
"lightboxStage": "Yvqh9W_lightboxStage",
|
|
501
|
+
"optionRow": "Yvqh9W_optionRow",
|
|
502
|
+
"updateRelease": "Yvqh9W_updateRelease",
|
|
503
|
+
"imageCard": "Yvqh9W_imageCard",
|
|
504
|
+
"optionPill": "Yvqh9W_optionPill",
|
|
505
|
+
"bigSpinner": "Yvqh9W_bigSpinner"
|
|
506
506
|
};
|
|
507
507
|
//#endregion
|
|
508
508
|
//#region src/client/ImageGenPanel.tsx
|
|
@@ -2100,35 +2100,35 @@ window.__ModuleLoader__.load({
|
|
|
2100
2100
|
document.head.appendChild(tag);
|
|
2101
2101
|
}
|
|
2102
2102
|
var settings_card_module_css_default = {
|
|
2103
|
-
"
|
|
2104
|
-
"
|
|
2105
|
-
"badges": "i1cc5G_badges",
|
|
2106
|
-
"input": "i1cc5G_input",
|
|
2103
|
+
"notExposed": "i1cc5G_notExposed",
|
|
2104
|
+
"chevron": "i1cc5G_chevron",
|
|
2107
2105
|
"label": "i1cc5G_label",
|
|
2108
|
-
"head": "i1cc5G_head",
|
|
2109
|
-
"field": "i1cc5G_field",
|
|
2110
2106
|
"headText": "i1cc5G_headText",
|
|
2111
|
-
"
|
|
2112
|
-
"pending": "i1cc5G_pending",
|
|
2113
|
-
"notExposed": "i1cc5G_notExposed",
|
|
2114
|
-
"badge": "i1cc5G_badge",
|
|
2107
|
+
"select": "i1cc5G_select",
|
|
2115
2108
|
"inputInvalid": "i1cc5G_inputInvalid",
|
|
2116
|
-
"
|
|
2117
|
-
"versionLabel": "i1cc5G_versionLabel",
|
|
2118
|
-
"reset": "i1cc5G_reset",
|
|
2119
|
-
"hint": "i1cc5G_hint",
|
|
2120
|
-
"chevron": "i1cc5G_chevron",
|
|
2109
|
+
"invalid": "i1cc5G_invalid",
|
|
2121
2110
|
"description": "i1cc5G_description",
|
|
2122
|
-
"readOnly": "i1cc5G_readOnly",
|
|
2123
2111
|
"footer": "i1cc5G_footer",
|
|
2124
|
-
"
|
|
2125
|
-
"select": "i1cc5G_select",
|
|
2112
|
+
"discard": "i1cc5G_discard",
|
|
2126
2113
|
"save": "i1cc5G_save",
|
|
2127
|
-
"
|
|
2128
|
-
"
|
|
2114
|
+
"name": "i1cc5G_name",
|
|
2115
|
+
"hint": "i1cc5G_hint",
|
|
2116
|
+
"versionValue": "i1cc5G_versionValue",
|
|
2117
|
+
"readOnly": "i1cc5G_readOnly",
|
|
2118
|
+
"badges": "i1cc5G_badges",
|
|
2119
|
+
"reset": "i1cc5G_reset",
|
|
2120
|
+
"badge": "i1cc5G_badge",
|
|
2129
2121
|
"card": "i1cc5G_card",
|
|
2130
|
-
"
|
|
2131
|
-
"
|
|
2122
|
+
"input": "i1cc5G_input",
|
|
2123
|
+
"head": "i1cc5G_head",
|
|
2124
|
+
"body": "i1cc5G_body",
|
|
2125
|
+
"field": "i1cc5G_field",
|
|
2126
|
+
"pending": "i1cc5G_pending",
|
|
2127
|
+
"failed": "i1cc5G_failed",
|
|
2128
|
+
"chevronOpen": "i1cc5G_chevronOpen",
|
|
2129
|
+
"header": "i1cc5G_header",
|
|
2130
|
+
"versionRow": "i1cc5G_versionRow",
|
|
2131
|
+
"versionLabel": "i1cc5G_versionLabel"
|
|
2132
2132
|
};
|
|
2133
2133
|
//#endregion
|
|
2134
2134
|
//#region src/client/SettingsCard.tsx
|
|
@@ -2700,8 +2700,7 @@ window.__ModuleLoader__.load({
|
|
|
2700
2700
|
const settingsCard = new ImageGenSettingsCardController(scope);
|
|
2701
2701
|
ctx.slots.inject("settings.plugin.item", () => ctx.slots.register({
|
|
2702
2702
|
name: "settings.plugin.item",
|
|
2703
|
-
|
|
2704
|
-
order: 30,
|
|
2703
|
+
key: "dsh-imagegen",
|
|
2705
2704
|
locale: NS,
|
|
2706
2705
|
inject: () => settingsCard.inject()
|
|
2707
2706
|
}, ImageGenSettingsCard));
|