@dickpy/dsh-imagegen 1.0.5 → 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 CHANGED
@@ -14,7 +14,13 @@ DeepSeek Harness (DSH) Web GUI 的 AI 生图插件。它通过宿主进程安全
14
14
 
15
15
  三栏工作台将参数、生成结果和历史记录放在同一视图中;生成的图片可预览、下载,并从历史记录恢复参数。
16
16
 
17
- ![AI 生图工作台(v1.0.5 结果画布)](docs/images/image-generation-studio.png)
17
+ **四图结果布局**
18
+
19
+ ![AI 生图工作台四图结果布局](docs/images/image-generation-studio-four.png)
20
+
21
+ **单图结果布局**
22
+
23
+ ![AI 生图工作台单图结果布局](docs/images/image-generation-studio-single.png)
18
24
 
19
25
  ### 独立配置卡片
20
26
 
@@ -42,13 +48,13 @@ DeepSeek Harness (DSH) Web GUI 的 AI 生图插件。它通过宿主进程安全
42
48
  把下面提示词直接粘贴给 **DSH**(或 Codex / 其他 coding agent)执行即可:
43
49
 
44
50
  ```text
45
- 用 dsh plugin --profile web add @dickpy/dsh-imagegen@1.0.5 安装 AI 生图插件(profile 名按实际修改),完成后重启 dsh web。
51
+ 用 dsh plugin --profile web add @dickpy/dsh-imagegen@1.0.7 安装 AI 生图插件(profile 名按实际修改),完成后重启 dsh web。
46
52
  ```
47
53
 
48
54
  ### 方式二:npm 安装(推荐)
49
55
 
50
56
  ```bash
51
- dsh plugin --profile web add @dickpy/dsh-imagegen@1.0.5
57
+ dsh plugin --profile web add @dickpy/dsh-imagegen@1.0.7
52
58
  ```
53
59
 
54
60
  dsh 会自动把插件注册进 profile 的 bundle 清单(无需手动改 cordis.patch.yml),重启 dsh web 即可。
@@ -56,10 +62,10 @@ dsh 会自动把插件注册进 profile 的 bundle 清单(无需手动改 cord
56
62
  ### 方式三:聚合包(tarball)安装
57
63
 
58
64
  从 [GitHub Releases](https://github.com/dickpy/dsh-imagegen/releases) 下载发布产物
59
- (如 `dickpy-dsh-imagegen-1.0.5.tgz`),然后:
65
+ (如 `dickpy-dsh-imagegen-1.0.7.tgz`),然后:
60
66
 
61
67
  ```bash
62
- dsh plugin --profile web add <下载路径>/dickpy-dsh-imagegen-1.0.5.tgz
68
+ dsh plugin --profile web add <下载路径>/dickpy-dsh-imagegen-1.0.7.tgz
63
69
  ```
64
70
 
65
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.5";
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
- "lightboxClose": "Yvqh9W_lightboxClose",
413
- "panelHeading": "Yvqh9W_panelHeading",
414
- "modelSelect": "Yvqh9W_modelSelect",
415
- "config": "Yvqh9W_config",
416
- "history": "Yvqh9W_history",
417
- "lightboxActions": "Yvqh9W_lightboxActions",
418
- "promptFooter": "Yvqh9W_promptFooter",
419
- "historyMeta": "Yvqh9W_historyMeta",
420
- "historyTitle": "Yvqh9W_historyTitle",
421
- "footer": "Yvqh9W_footer",
422
- "historyEmpty": "Yvqh9W_historyEmpty",
423
- "canvasBody": "Yvqh9W_canvasBody",
424
- "connectionStatus": "Yvqh9W_connectionStatus",
425
- "imageCaption": "Yvqh9W_imageCaption",
426
- "uploadHint": "Yvqh9W_uploadHint",
427
- "optionPill": "Yvqh9W_optionPill",
428
- "download": "Yvqh9W_download",
412
+ "panel": "Yvqh9W_panel",
413
+ "panelHeader": "Yvqh9W_panelHeader",
414
+ "reference": "Yvqh9W_reference",
415
+ "updateBanner": "Yvqh9W_updateBanner",
429
416
  "lightboxDownload": "Yvqh9W_lightboxDownload",
430
- "lightboxEdit": "Yvqh9W_lightboxEdit",
431
- "generateButton": "Yvqh9W_generateButton",
432
- "card": "Yvqh9W_card",
433
- "uploadBox": "Yvqh9W_uploadBox",
434
- "lightboxCaptionRow": "Yvqh9W_lightboxCaptionRow",
435
- "optionRow": "Yvqh9W_optionRow",
436
- "canvas": "Yvqh9W_canvas",
437
417
  "updateText": "Yvqh9W_updateText",
438
- "historyItem": "Yvqh9W_historyItem",
439
- "historyList": "Yvqh9W_historyList",
440
- "panelSubtitle": "Yvqh9W_panelSubtitle",
441
- "prompt": "Yvqh9W_prompt",
442
- "canvasStateHint": "Yvqh9W_canvasStateHint",
443
- "canvasHistoryTag": "Yvqh9W_canvasHistoryTag",
444
- "spinner": "Yvqh9W_spinner",
445
- "dshImageGenSpin": "Yvqh9W_dshImageGenSpin",
446
- "lightboxNav": "Yvqh9W_lightboxNav",
447
- "configScroll": "Yvqh9W_configScroll",
448
- "lightboxTools": "Yvqh9W_lightboxTools",
449
- "lightboxZoomLevel": "Yvqh9W_lightboxZoomLevel",
450
- "lightboxImage": "Yvqh9W_lightboxImage",
451
- "historyPrompt": "Yvqh9W_historyPrompt",
418
+ "studio": "Yvqh9W_studio",
419
+ "hiddenFile": "Yvqh9W_hiddenFile",
420
+ "uploadHint": "Yvqh9W_uploadHint",
421
+ "referenceActions": "Yvqh9W_referenceActions",
422
+ "paramLabel": "Yvqh9W_paramLabel",
423
+ "entryLabel": "Yvqh9W_entryLabel",
424
+ "imageCaption": "Yvqh9W_imageCaption",
452
425
  "panelTitle": "Yvqh9W_panelTitle",
426
+ "historyHeader": "Yvqh9W_historyHeader",
427
+ "card": "Yvqh9W_card",
428
+ "optionGrid": "Yvqh9W_optionGrid",
429
+ "historyList": "Yvqh9W_historyList",
430
+ "historyItem": "Yvqh9W_historyItem",
431
+ "footer": "Yvqh9W_footer",
453
432
  "updateActions": "Yvqh9W_updateActions",
454
433
  "modelLabel": "Yvqh9W_modelLabel",
455
- "historyClear": "Yvqh9W_historyClear",
434
+ "config": "Yvqh9W_config",
456
435
  "canvasStateTitle": "Yvqh9W_canvasStateTitle",
457
- "historyInfo": "Yvqh9W_historyInfo",
436
+ "dshImageGenSpin": "Yvqh9W_dshImageGenSpin",
437
+ "spinner": "Yvqh9W_spinner",
438
+ "historyEmpty": "Yvqh9W_historyEmpty",
439
+ "canvasBody": "Yvqh9W_canvasBody",
440
+ "canvasMeta": "Yvqh9W_canvasMeta",
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",
458
449
  "historyMain": "Yvqh9W_historyMain",
459
- "connectionDot": "Yvqh9W_connectionDot",
460
450
  "grid": "Yvqh9W_grid",
461
- "promptCount": "Yvqh9W_promptCount",
462
- "entryLabel": "Yvqh9W_entryLabel",
463
- "updateRelease": "Yvqh9W_updateRelease",
464
- "canvasState": "Yvqh9W_canvasState",
465
- "lightboxCaption": "Yvqh9W_lightboxCaption",
466
- "paramGroup": "Yvqh9W_paramGroup",
467
- "updateBanner": "Yvqh9W_updateBanner",
468
- "historyThumbPlaceholder": "Yvqh9W_historyThumbPlaceholder",
469
- "canvasError": "Yvqh9W_canvasError",
470
- "panelHeader": "Yvqh9W_panelHeader",
471
- "referenceImage": "Yvqh9W_referenceImage",
472
- "canvasEmptyIcon": "Yvqh9W_canvasEmptyIcon",
473
- "bigSpinner": "Yvqh9W_bigSpinner",
474
- "generateInner": "Yvqh9W_generateInner",
475
451
  "lightboxFigure": "Yvqh9W_lightboxFigure",
476
- "optionGrid": "Yvqh9W_optionGrid",
477
- "lightboxTool": "Yvqh9W_lightboxTool",
478
452
  "lightboxCopy": "Yvqh9W_lightboxCopy",
479
- "modelWrap": "Yvqh9W_modelWrap",
453
+ "lightboxCaptionRow": "Yvqh9W_lightboxCaptionRow",
454
+ "lightboxCaption": "Yvqh9W_lightboxCaption",
455
+ "lightboxActions": "Yvqh9W_lightboxActions",
456
+ "generateButton": "Yvqh9W_generateButton",
457
+ "lightboxEdit": "Yvqh9W_lightboxEdit",
458
+ "lightboxNav": "Yvqh9W_lightboxNav",
459
+ "historyAction": "Yvqh9W_historyAction",
460
+ "canvasError": "Yvqh9W_canvasError",
480
461
  "lightboxMeta": "Yvqh9W_lightboxMeta",
481
- "paramHint": "Yvqh9W_paramHint",
482
- "lightboxScaleFrame": "Yvqh9W_lightboxScaleFrame",
483
- "historyActions": "Yvqh9W_historyActions",
484
- "image": "Yvqh9W_image",
485
- "zoomHint": "Yvqh9W_zoomHint",
462
+ "history": "Yvqh9W_history",
463
+ "promptCount": "Yvqh9W_promptCount",
464
+ "historyTitle": "Yvqh9W_historyTitle",
465
+ "historyThumbPlaceholder": "Yvqh9W_historyThumbPlaceholder",
466
+ "prompt": "Yvqh9W_prompt",
467
+ "historyMeta": "Yvqh9W_historyMeta",
486
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",
477
+ "connectionStatus": "Yvqh9W_connectionStatus",
478
+ "referenceImage": "Yvqh9W_referenceImage",
479
+ "promptFooter": "Yvqh9W_promptFooter",
480
+ "connectionDot": "Yvqh9W_connectionDot",
481
+ "historyInfo": "Yvqh9W_historyInfo",
482
+ "uploadBox": "Yvqh9W_uploadBox",
483
+ "canvasEmptyIcon": "Yvqh9W_canvasEmptyIcon",
487
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",
488
495
  "historyThumb": "Yvqh9W_historyThumb",
489
- "historyHeader": "Yvqh9W_historyHeader",
490
- "imageCard": "Yvqh9W_imageCard",
491
- "lightboxIndex": "Yvqh9W_lightboxIndex",
492
- "panel": "Yvqh9W_panel",
493
- "studio": "Yvqh9W_studio",
494
- "lightboxStage": "Yvqh9W_lightboxStage",
495
496
  "modeRow": "Yvqh9W_modeRow",
496
- "canvasMeta": "Yvqh9W_canvasMeta",
497
- "paramLabel": "Yvqh9W_paramLabel",
498
- "entryIcon": "Yvqh9W_entryIcon",
499
- "entry": "Yvqh9W_entry",
500
- "reference": "Yvqh9W_reference",
501
- "historyAction": "Yvqh9W_historyAction",
502
- "lightbox": "Yvqh9W_lightbox",
503
- "referenceActions": "Yvqh9W_referenceActions",
504
- "hiddenFile": "Yvqh9W_hiddenFile",
505
- "uploadIcon": "Yvqh9W_uploadIcon"
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
- "versionRow": "i1cc5G_versionRow",
2104
- "body": "i1cc5G_body",
2105
- "badge": "i1cc5G_badge",
2103
+ "notExposed": "i1cc5G_notExposed",
2104
+ "chevron": "i1cc5G_chevron",
2105
+ "label": "i1cc5G_label",
2106
+ "headText": "i1cc5G_headText",
2107
+ "select": "i1cc5G_select",
2108
+ "inputInvalid": "i1cc5G_inputInvalid",
2109
+ "invalid": "i1cc5G_invalid",
2110
+ "description": "i1cc5G_description",
2106
2111
  "footer": "i1cc5G_footer",
2107
- "badges": "i1cc5G_badges",
2108
2112
  "discard": "i1cc5G_discard",
2113
+ "save": "i1cc5G_save",
2114
+ "name": "i1cc5G_name",
2115
+ "hint": "i1cc5G_hint",
2116
+ "versionValue": "i1cc5G_versionValue",
2109
2117
  "readOnly": "i1cc5G_readOnly",
2118
+ "badges": "i1cc5G_badges",
2110
2119
  "reset": "i1cc5G_reset",
2111
- "header": "i1cc5G_header",
2112
- "failed": "i1cc5G_failed",
2120
+ "badge": "i1cc5G_badge",
2113
2121
  "card": "i1cc5G_card",
2114
- "save": "i1cc5G_save",
2115
- "chevron": "i1cc5G_chevron",
2116
- "invalid": "i1cc5G_invalid",
2117
2122
  "input": "i1cc5G_input",
2123
+ "head": "i1cc5G_head",
2124
+ "body": "i1cc5G_body",
2118
2125
  "field": "i1cc5G_field",
2119
- "hint": "i1cc5G_hint",
2120
- "notExposed": "i1cc5G_notExposed",
2121
- "label": "i1cc5G_label",
2122
- "chevronOpen": "i1cc5G_chevronOpen",
2123
- "description": "i1cc5G_description",
2124
2126
  "pending": "i1cc5G_pending",
2125
- "select": "i1cc5G_select",
2126
- "name": "i1cc5G_name",
2127
- "versionLabel": "i1cc5G_versionLabel",
2128
- "headText": "i1cc5G_headText",
2129
- "versionValue": "i1cc5G_versionValue",
2130
- "inputInvalid": "i1cc5G_inputInvalid",
2131
- "head": "i1cc5G_head"
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
- id: "imagegen",
2704
- order: 30,
2703
+ key: "dsh-imagegen",
2705
2704
  locale: NS,
2706
2705
  inject: () => settingsCard.inject()
2707
2706
  }, ImageGenSettingsCard));