@q253595422/dsh-imagegen-video 1.7.8 → 1.8.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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,61 @@ detail is in `git log 9305f9f..HEAD`.
10
10
 
11
11
  ## Releases
12
12
 
13
+ ### 1.8.0 — multi-reference editing, a template drawer, and honest wait states
14
+
15
+ Four capabilities absorbed from upstream v1.8.0–v1.8.3, each ported file by file
16
+ against our own tree (the two histories share no ancestor). Everything below is
17
+ now this repository's code; the version number is ours.
18
+
19
+ - **Image editing takes up to five reference images.** The first stays in
20
+ `image` and the rest travel in `images`, so a single-reference provider still
21
+ sees exactly one image and every existing request shape is unchanged. The
22
+ engine half of this was already present and byte-identical to upstream; what
23
+ was missing was the panel: the form held one `refImage`, so the protocol could
24
+ never be reached from the UI. It now holds a list, with multi-select, drag,
25
+ paste, per-image removal, a preview with arrow-key paging, and the documented
26
+ limits (5 images, 10 MiB each, 16 MiB total) enforced in one place
27
+ (`reference-images.ts`) rather than in each entry point.
28
+ A model whose adapter takes only one reference is refused **before** submit
29
+ with the count it does support, instead of sending a request the upstream
30
+ would silently trim; in compare mode the strictest target wins.
31
+ - **The template library is a drawer, not a centred modal.** It docks to the
32
+ right edge at ~75% of the workspace, remembers its width in `localStorage`,
33
+ can be dragged from its left edge or expanded to the full workspace, goes
34
+ full-width on phones, searches across every library, and keeps the last 24
35
+ used templates for one-click reuse. A picked prompt can replace the composer
36
+ text or be appended to it. Two things upstream dropped were kept on purpose:
37
+ `favorites: null` still means "not loaded yet" (so a failed read shows an
38
+ unknown star and a retry, not a wall of un-favourited cards), and the shared
39
+ roving-tabindex helper still walks the source tabs.
40
+ - **Waiting looks like waiting.** A bounded SVG dot field (475 dots, 130 in the
41
+ compact variant) driven purely by CSS `animation-delay` — no timers, no React
42
+ updates — replaces the single spinner. In a multi-model comparison each card
43
+ gets its own field and its **own** elapsed time from that task's `startedAt`,
44
+ so four models no longer share one misleading clock. Failures and cancellations
45
+ stop only their own card; `prefers-reduced-motion` drops the animation.
46
+ - **Results are no longer cropped.** The result grid switched from `cover` to
47
+ `contain` with a zero-basis flex so a tall or wide image fits the space it has
48
+ instead of having its edges cut off. The ecommerce cards keep their `cover`
49
+ override — that rule is what stops a product shot from being letterboxed.
50
+
51
+ Two deliberate departures from upstream:
52
+
53
+ - **Desktop updates still explain themselves.** Upstream v1.8.2 restores
54
+ in-panel updates when the host exposes an install hook, and otherwise shows a
55
+ bare hint. We took the first half — `updateInstallTarget()` reports
56
+ `cli` / `host` / `host-managed`, and the `host` path installs the exact Release
57
+ tarball through the host and then verifies `application`, exit code, bundle
58
+ name and version, falling back to the installed manifest when an older host
59
+ omits the version (an unverifiable install is a failure, never a success) —
60
+ but kept `ManualUpdateRequiredError` for the managed case, because our panel
61
+ renders a copyable command from `details.tarballUrl` and a one-line hint would
62
+ lose that.
63
+ - **One primary label in the template detail view.** Upstream renames the button
64
+ to "Replace" once the composer holds text. Ours says "Use this prompt" in both
65
+ cases and adds a separate "Add" button only when there is something to append
66
+ to, so the primary action never changes meaning under the user.
67
+
13
68
  ### 1.7.8 — the manifest stops claiming a package the host already provides
14
69
 
15
70
  One packaging correction, no behaviour change.
package/README.md CHANGED
@@ -16,9 +16,28 @@
16
16
 
17
17
  <p><strong>在 DeepSeek Harness 里,生成、编辑、管理,一站完成;图片与视频同一套工作流。</strong></p>
18
18
  <p><strong>快速导航</strong></p>
19
- <p><a href="#quick-start">🚀 快速开始</a> · <a href="#canvas">无限画布</a> · <a href="#compose">片段拼接</a> · <a href="#ecommerce">电商套图</a> · <a href="#txt2img">文生图 / 图生图</a> · <a href="#txt2video">生视频</a> · <a href="#gallery">模板 / 画廊</a> · <a href="#configuration">模型配置</a> · <a href="#upstream">上游与授权</a></p>
19
+ <p><a href="#quick-start">🚀 快速开始</a> · <a href="#canvas">无限画布</a> · <a href="#compose">片段拼接</a> · <a href="#ecommerce">电商套图</a> · <a href="#txt2img">文生图 / 图生图</a> · <a href="#txt2video">生视频</a> · <a href="#gallery">模板 / 画廊</a> · <a href="#configuration">模型配置</a> · <a href="#community">交流群</a> · <a href="#upstream">上游与授权</a></p>
20
20
  </div>
21
21
 
22
+ <a id="sponsor"></a>
23
+ ## 赞助商
24
+
25
+ | 赞助商 | 简介与接入地址 |
26
+ | :---: | --- |
27
+ | <a href="https://api.closeai.hk/"><img src="docs/images/sponsor-yeazi.png" width="170" alt="椰子API" /></a> | **[椰子API](https://api.closeai.hk/)** — OpenAI 兼容的多模型网关。一个 API Key 同时覆盖 GPT Image 与 Gemini 图像模型,不必分别注册各家;在插件里就是一个普通渠道,不需要改代码。<br><br>`https://api.closeai.hk/v1` · Bearer API Key |
28
+ | <a href="https://api.metajing.cn/"><img src="docs/images/sponsor-metajing.png" width="170" alt="清衍 API" /></a> | **[清衍 API](https://api.metajing.cn/)** — 面向国内开发者的 AI API 中转站,站点自述支持 Claude、GPT、Gemini 等模型。<br><br>`https://api.metajing.cn/v1` · `Authorization: Bearer <key>` |
29
+ | <a href="https://github.com/ChisaAlter/WhaleIsle"><img src="docs/images/sponsor-whaleisle.png" width="170" alt="鲸屿 Whale Isle" /></a> | **[鲸屿 Whale Isle](https://github.com/ChisaAlter/WhaleIsle)** — 基于 DeepSeek Harness 的开源社区桌面客户端:AI 对话、终端与 Git、模型与 MCP 接入、主题壁纸与桌宠、用量统计,装好即可把本插件跑在桌面上。<br><br>Windows x64 · macOS Apple Silicon · MIT |
30
+ | <a href="https://github.com/jev-chat/jev-chat-jarvis"><img src="docs/images/sponsor-jevchat.png" width="170" alt="jev-chat" /></a> | **[jev-chat](https://github.com/jev-chat/jev-chat-jarvis)** — 聊天辅助决策工具:回复前先读懂对方意图与当下风险,再给出可一键填入的草稿,发不发由你。Android · Windows · macOS · iOS,MIT。<br><br>官网 `chatjevs.com` |
31
+ | <a href="https://mrday.one/"><img src="docs/images/sponsor-mrdayone.png" width="170" alt="Mr. Day One" /></a> | **[Mr. Day One](https://mrday.one/)** — AI 原生编辑器,把仓库、终端和诊断信息接进同一条智能体回路:改代码、跑测试、读报错、再复审结果。<br><br>`https://mrday.one` |
32
+ | <a href="https://harnesscatalog.com/"><img src="docs/images/sponsor-harnesscatalog.png" width="170" alt="Harness Catalog" /></a> | **[Harness Catalog](https://harnesscatalog.com/)** — DeepSeek Harness 插件目录:逐个评测、给出真实安装命令,并说明什么场景该用它。本项目已收录其中。<br><br>[dsh-imagegen-video 条目](https://harnesscatalog.com/plugins/dsh-imagegen-video/) |
33
+ | <a href="http://82.157.4.13/"><img src="docs/images/sponsor-leon.png" width="170" alt="莱昂 LEON" /></a> | **[莱昂 LEON](http://82.157.4.13/)** — AI 电商操盘手 × GEO 顾问:把电商一线经验蒸馏成可审计的方法论与 AI 工作流,提供 GEO 品牌托管、电商方法论体系搭建与多智能体工作流定制。<br><br>`http://82.157.4.13/` |
34
+
35
+ > **以上是赞助位,不是中立推荐。** 七项均由第三方独立维护:两家 API 网关的
36
+ > 可用模型、价格、限流与稳定性,桌面客户端、移动应用与编辑器的兼容性、稳定性
37
+ > 及其使用条款,顾问站点的服务内容与交付承诺,以及插件目录的收录与评价,均以
38
+ > 各自站点公告为准,本项目不做担保。配置网关后密钥会发送给对应服务,请按需
39
+ > 自行评估;不要用它们处理你不愿意交给第三方的内容。
40
+
22
41
  <a id="quick-start"></a>
23
42
  ## 快速开始
24
43
 
@@ -117,7 +136,7 @@ dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.8.tgz
117
136
 
118
137
  <a id="txt2img"></a>
119
138
 
120
- 输入提示词即可生成,也可上传参考图进行编辑;支持多张结果、比例与清晰度设置、任务队列、历史恢复和全屏预览。
139
+ 输入提示词即可生成,也可上传参考图进行编辑。图生图支持**多张参考图**(最多 5 张,单张 10 MiB、合计 16 MiB):可多选、拖拽或粘贴,逐张移除,缩略图里用方向键翻看。请求形状按协议族各自整形——第一张始终在 `image`,其余在 `images`,所以只接受单张的上游看到的仍是一张图;面板会在提交前就按模型能力拦下超额张数,而不是让上游默默截断。此外支持多张结果、比例与清晰度设置、任务队列、历史恢复和全屏预览。
121
140
 
122
141
  <div align="center">
123
142
  <img src="docs/images/image-generation-studio-four.png" alt="文生图与图生图工作台" width="100%" />
@@ -158,7 +177,7 @@ dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.8.tgz
158
177
 
159
178
  <a id="gallery"></a>
160
179
 
161
- 提示词模板库内置八个来源(精选案例、沧河、手绘、Prompt/Signal、evolink、itgoyo、songtianlun、youart),共三千余条,可搜索、筛选、收藏并直接带入生图。生成结果可在画廊中用标签和收藏继续整理;**删除是可撤销的**——被删的条目先进回收站,保留 30 天,期间可以逐条还原或一键清空,只有清空(或超过 30 天后的首次访问)才真正删除磁盘上的文件。
180
+ 提示词模板库内置八个来源(精选案例、沧河、手绘、Prompt/Signal、evolink、itgoyo、songtianlun、youart),共三千余条,可搜索、筛选、收藏并直接带入生图。模板库以**右侧抽屉**打开,约占工作区 75% 宽度:左边缘可拖动调宽(宽度记在本地),可一键铺满工作区,手机上自动全宽;搜索可限定当前来源或横跨全部来源;最近用过的 24 条留在「历史记录」里一键复用。选中的提示词可以**替换**输入框内容,也可以**追加**在后面。生成结果可在画廊中用标签和收藏继续整理;**删除是可撤销的**——被删的条目先进回收站,保留 30 天,期间可以逐条还原或一键清空,只有清空(或超过 30 天后的首次访问)才真正删除磁盘上的文件。
162
181
 
163
182
  <p align="center">
164
183
  <img src="docs/images/prompt-template-library.png" alt="提示词案例模板库" width="49%" />
@@ -198,6 +217,19 @@ dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.8.tgz
198
217
  内联 base64 均替换为占位符,API Key 只记「是否发送」)。
199
218
  生图与生视频写同一个缓冲:视频的提交 / 轮询 / 下载三条腿各自标记。
200
219
 
220
+ <a id="community"></a>
221
+ ## 交流群
222
+
223
+ 微信群「龙虾吹水🦞群」:使用问题、版本更新与画布玩法都可以在群里聊。
224
+
225
+ <div align="center">
226
+ <img src="docs/images/wechat-group-qr.png" alt="微信群「龙虾吹水🦞群」的加群二维码" width="360" />
227
+ </div>
228
+
229
+ > 二维码 7 天内有效(2026 年 10 月 25 日前)。过期或人数已满时,请改到
230
+ > [Issues](https://github.com/q253595422/dsh-imagegen-video/issues) 提问题,
231
+ > 并提醒维护者换一张新码。安全敏感的问题不要发在群里,也不要贴 API 密钥。
232
+
201
233
  <a id="upstream"></a>
202
234
  ## 上游与授权
203
235
 
@@ -26,11 +26,23 @@ registry 上的版本不可改写,所以这个修正只能体现为新版本
26
26
  - `pnpm run typecheck`、`pnpm test`(十一项离线检查)、`pnpm run test:negative`
27
27
  全绿;版本号两处(`package.json` 与 `src/protocol.ts` 的 `PLUGIN_VERSION`)
28
28
  由 `smoke.mjs` 断言一致。
29
- - 打包后装入隔离的 `DSH_HOME`:profile 解析到宿主自带的 schemastery,
30
- `lib/index.js` 正常导入。
31
- - 本版同时用来验证一件事:`release.yml` 里那个默认关闭的 npm job,在配好
32
- Trusted Publisher、并把仓库变量 `NPM_PUBLISH` 设为 `true` 之后,能否只靠
33
- GitHub OIDC 把包发出去——不依赖任何存在本机的 npm token。
29
+ - 打包后装入隔离的 `DSH_HOME`:只拉两个包(插件 + `lucide-react`),
30
+ profile 下没有 `schemastery` 副本,宿主自带的 3.18.4 被解析,
31
+ `lib/index.js` 正常导入(132 个导出,`CURRENT_VERSION` 1.7.8)。
32
+ - 本版也是**第一次由 CI 发布**:没有任何 npm token,走 GitHub OIDC,
33
+ 并附带 Sigstore provenance 签名(可在 npm 页面看到「Built and signed on
34
+ GitHub Actions」)。
35
+
36
+ ## 一个被修掉的假失败
37
+
38
+ 这一版的 CI 第一次跑是红的,而它其实是发布成功的:npm 打印了
39
+ `+ @q253595422/dsh-imagegen-video@1.7.8` 和 provenance,但 registry 的**读**
40
+ 路径直到 3 分 16 秒后才能看到这个版本,而当时回读窗口只有 60 秒。
41
+
42
+ 发布任务的回读窗口改成 5 分钟;窗口耗尽时的报错也分成两种说法——「我们发布
43
+ 了、npm 退出码 0」与「这次运行没发布过」——因为原来的措辞会把一次成功的发布
44
+ 指向凭据问题。`verify-pack.mjs` 现在断言这个窗口必须大于 4 分钟(阈值旁边写着
45
+ 3 分 16 秒这个实测值),反向套件用 6×10s 的旧循环证明这条断言会变红。
34
46
 
35
47
  ## 已知边界
36
48
 
@@ -38,3 +50,4 @@ registry 上的版本不可改写,所以这个修正只能体现为新版本
38
50
  schemastery,可以跳过。
39
51
  - 首次发布(1.7.7)走的是人工流程:npm 的 trusted publishing 只能挂在已存在
40
52
  的包上。从 1.7.8 起才由 CI 发布。
53
+ - 1.7.7 与 1.7.8 之间没有功能差异,**只有包清单的归属关系不同**。