@q253595422/dsh-imagegen-video 1.7.7 → 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 +72 -0
- package/README.md +44 -8
- package/docs/releases/v1.7.7.md +9 -5
- package/docs/releases/v1.7.8.md +53 -0
- package/lib/client.js +2617 -1824
- package/lib/client.js.map +1 -1
- package/lib/index.js +91 -7
- package/lib/locale-tables-chunk.js +60 -0
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,78 @@ 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
|
+
|
|
68
|
+
### 1.7.8 — the manifest stops claiming a package the host already provides
|
|
69
|
+
|
|
70
|
+
One packaging correction, no behaviour change.
|
|
71
|
+
|
|
72
|
+
- **`@deepseek-ai/schemastery` moved from `dependencies` to `peerDependencies`.**
|
|
73
|
+
It is not an implementation detail of this plugin — its `z` builds the config
|
|
74
|
+
schema the host validates — so the host's own copy is the one that must be
|
|
75
|
+
used. Declaring it as a dependency made every install pull a second copy of a
|
|
76
|
+
`@deepseek-ai/*` package alongside the host's, which is both the wrong
|
|
77
|
+
ownership relationship and the thing plugin directories list as a rule.
|
|
78
|
+
`devDependencies` still carries it, so local builds, typecheck and the whole
|
|
79
|
+
offline suite resolve it exactly as before; only the published manifest
|
|
80
|
+
changes. Verified by installing the packed tarball into an isolated
|
|
81
|
+
`DSH_HOME`: the profile pulls two packages instead of three (no second
|
|
82
|
+
schemastery), resolves the host's own 3.18.4, and `lib/index.js` imports
|
|
83
|
+
cleanly (132 exports, `CURRENT_VERSION` 1.7.8).
|
|
84
|
+
|
|
13
85
|
### 1.7.7 — deleting becomes undoable, the poster editor arrives, and the update chain stops lying
|
|
14
86
|
|
|
15
87
|
Three user-visible failures and one piece of upstream functionality, plus the
|
package/README.md
CHANGED
|
@@ -16,24 +16,47 @@
|
|
|
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
|
|
|
25
44
|
需要已安装 [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) 和 Node.js 20+。
|
|
26
45
|
|
|
27
|
-
|
|
46
|
+
安装包有两个来源:**npm registry**(推荐,包名即版本,`npm view` 能查、能被锁文件盯住)与 **GitHub Release 资产**(每次附带 `SHA256SUMS`)。
|
|
28
47
|
|
|
29
48
|
```bash
|
|
30
|
-
|
|
49
|
+
# npm(registry 直达)
|
|
50
|
+
dsh plugin --profile web add @q253595422/dsh-imagegen-video
|
|
51
|
+
|
|
52
|
+
# 或 GitHub Release 资产
|
|
53
|
+
dsh plugin --profile web add https://github.com/q253595422/dsh-imagegen-video/releases/download/v1.7.8/q253595422-dsh-imagegen-video-1.7.8.tgz
|
|
31
54
|
```
|
|
32
55
|
|
|
33
56
|
也可以先到 [Releases](https://github.com/q253595422/dsh-imagegen-video/releases) 页面下载 `.tgz`,再安装本地文件:
|
|
34
57
|
|
|
35
58
|
```bash
|
|
36
|
-
dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.
|
|
59
|
+
dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.8.tgz
|
|
37
60
|
```
|
|
38
61
|
|
|
39
62
|
> ⚠️ **不要与原版 `@dickpy/dsh-imagegen` 同时安装。** 两者注册的是同一套
|
|
@@ -47,7 +70,7 @@ dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.7.tgz
|
|
|
47
70
|
<summary><b>其他安装方式、升级与回滚</b></summary>
|
|
48
71
|
|
|
49
72
|
- **让 Agent 安装:**把上面的安装命令发给 DSH、Codex 或其他 coding agent。
|
|
50
|
-
- **指定版本:**把 URL 里的 `v1.7.
|
|
73
|
+
- **指定版本:**把 URL 里的 `v1.7.8` 与文件名里的版本号换成目标版本,或从 [GitHub Releases](https://github.com/q253595422/dsh-imagegen-video/releases) 下载对应版本的 tgz 后安装。
|
|
51
74
|
- **升级:**重复执行 `add` 命令指向新版本即可;插件也会在面板中提示新版本。更新后重启 `dsh web`。
|
|
52
75
|
- **DSH Desktop 用户:**宿主 CLI 不允许写入 `desktop` 这个 profile,所以面板不会假装去更新,而是直接给出可复制的命令和下载地址,由你自己执行——这与上游 issue #41 里「更新失败但看不到原因」是两回事。
|
|
53
76
|
- 渠道配置、历史记录和画廊数据保存在 DSH 宿主侧,正常升级不会清空。
|
|
@@ -113,7 +136,7 @@ dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.7.tgz
|
|
|
113
136
|
|
|
114
137
|
<a id="txt2img"></a>
|
|
115
138
|
|
|
116
|
-
|
|
139
|
+
输入提示词即可生成,也可上传参考图进行编辑。图生图支持**多张参考图**(最多 5 张,单张 10 MiB、合计 16 MiB):可多选、拖拽或粘贴,逐张移除,缩略图里用方向键翻看。请求形状按协议族各自整形——第一张始终在 `image`,其余在 `images`,所以只接受单张的上游看到的仍是一张图;面板会在提交前就按模型能力拦下超额张数,而不是让上游默默截断。此外支持多张结果、比例与清晰度设置、任务队列、历史恢复和全屏预览。
|
|
117
140
|
|
|
118
141
|
<div align="center">
|
|
119
142
|
<img src="docs/images/image-generation-studio-four.png" alt="文生图与图生图工作台" width="100%" />
|
|
@@ -154,7 +177,7 @@ dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.7.tgz
|
|
|
154
177
|
|
|
155
178
|
<a id="gallery"></a>
|
|
156
179
|
|
|
157
|
-
提示词模板库内置八个来源(精选案例、沧河、手绘、Prompt/Signal、evolink、itgoyo、songtianlun、youart
|
|
180
|
+
提示词模板库内置八个来源(精选案例、沧河、手绘、Prompt/Signal、evolink、itgoyo、songtianlun、youart),共三千余条,可搜索、筛选、收藏并直接带入生图。模板库以**右侧抽屉**打开,约占工作区 75% 宽度:左边缘可拖动调宽(宽度记在本地),可一键铺满工作区,手机上自动全宽;搜索可限定当前来源或横跨全部来源;最近用过的 24 条留在「历史记录」里一键复用。选中的提示词可以**替换**输入框内容,也可以**追加**在后面。生成结果可在画廊中用标签和收藏继续整理;**删除是可撤销的**——被删的条目先进回收站,保留 30 天,期间可以逐条还原或一键清空,只有清空(或超过 30 天后的首次访问)才真正删除磁盘上的文件。
|
|
158
181
|
|
|
159
182
|
<p align="center">
|
|
160
183
|
<img src="docs/images/prompt-template-library.png" alt="提示词案例模板库" width="49%" />
|
|
@@ -194,6 +217,19 @@ dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.7.tgz
|
|
|
194
217
|
内联 base64 均替换为占位符,API Key 只记「是否发送」)。
|
|
195
218
|
生图与生视频写同一个缓冲:视频的提交 / 轮询 / 下载三条腿各自标记。
|
|
196
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
|
+
|
|
197
233
|
<a id="upstream"></a>
|
|
198
234
|
## 上游与授权
|
|
199
235
|
|
|
@@ -202,7 +238,7 @@ dsh plugin --profile web add ./q253595422-dsh-imagegen-video-1.7.7.tgz
|
|
|
202
238
|
上游 v1.6.8 的全部改动逐条列在 [CHANGELOG.md](./CHANGELOG.md)。
|
|
203
239
|
|
|
204
240
|
> **本仓库是独立项目,不跟随上游版本线。** 上游源码只在 fork 时一次性取用(基线
|
|
205
|
-
> v1.6.8),此后本仓库按自己的节奏发版(当前 v1.7.
|
|
241
|
+
> v1.6.8),此后本仓库按自己的节奏发版(当前 v1.7.8)。上游后续版本的功能会**按需**
|
|
206
242
|
> 吸收进来——例如失败可查的诊断日志(上游 #38)——吸收后即为本仓库自己代码的一部分,
|
|
207
243
|
> 版本号仍是本仓库的。因为两边历史没有共同祖先,吸收是**逐文件移植**,不是 `git merge`。
|
|
208
244
|
|
package/docs/releases/v1.7.7.md
CHANGED
|
@@ -162,11 +162,15 @@ dsh plugin --profile web add <下载路径>/q253595422-dsh-imagegen-video-1.7.7.
|
|
|
162
162
|
|
|
163
163
|
### 已知边界(诚实说明)
|
|
164
164
|
|
|
165
|
-
- **npm
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
- **npm 包已发布(2026-10-18)。** `@q253595422/dsh-imagegen-video@1.7.7`
|
|
166
|
+
已在 registry 上,`shasum` 与 Release 资产 `910d6e37…` 一致。首次发布由人工
|
|
167
|
+
完成——npm 的 trusted publishing 只能挂在**已存在**的包上,所以这一步无法
|
|
168
|
+
交给 CI。1.7.7 是那一次人工发布的对象:它发布时用到的清单里
|
|
169
|
+
`@deepseek-ai/schemastery` 仍在 `dependencies`,这个归属问题在 1.7.8 修正。
|
|
170
|
+
随后为该包配好 Trusted Publisher(`npm trust github`,仓库
|
|
171
|
+
`q253595422/dsh-imagegen-video`,workflow `release.yml`,权限 publish +
|
|
172
|
+
stage publish)并把仓库变量 `NPM_PUBLISH` 设为 `true`;1.7.8 是第一条只靠
|
|
173
|
+
GitHub OIDC、不依赖本机 npm token 发出去的版本。
|
|
170
174
|
- **Desktop 的更新仍然是手动的**,这是上游 CLI 的设计,不是本插件能绕过的;
|
|
171
175
|
本版做到的是**不再假装能自动更新**,并把可执行的命令交到用户手上。
|
|
172
176
|
- 海报编辑器只做文字与 Logo 两层合成,**不是完整的排版工具**:
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# v1.7.8
|
|
2
|
+
|
|
3
|
+
一个打包归属修正,没有行为变化。它属于「安装一次就能看出差别」的那类改动:
|
|
4
|
+
装 1.7.7 会多拉一份宿主已经提供的包,装 1.7.8 不会。
|
|
5
|
+
|
|
6
|
+
## 改了什么
|
|
7
|
+
|
|
8
|
+
**`@deepseek-ai/schemastery` 从 `dependencies` 移到 `peerDependencies`。**
|
|
9
|
+
|
|
10
|
+
它不是本插件的实现细节——它的 `z` 构建的是**宿主拿去校验**的配置 schema,
|
|
11
|
+
所以必须用宿主那一份。把它声明成依赖,等于每次安装都在宿主的副本旁边再拉
|
|
12
|
+
一份 `@deepseek-ai/*`,既是错误的归属关系,也正是插件目录收录规则里点名
|
|
13
|
+
禁止的事。
|
|
14
|
+
|
|
15
|
+
`devDependencies` 仍然保留它,本地的构建、`tsc --noEmit` 与整套离线检查
|
|
16
|
+
解析路径与之前完全一致;变的只有发布出去的清单。
|
|
17
|
+
|
|
18
|
+
## 为什么要单独发一版
|
|
19
|
+
|
|
20
|
+
1.7.7 已经从 npm 装出去了,它的清单里 `schemastery` 仍在 `dependencies`。
|
|
21
|
+
registry 上的版本不可改写,所以这个修正只能体现为新版本,不能声称它对
|
|
22
|
+
1.7.7 也成立。
|
|
23
|
+
|
|
24
|
+
## 验证
|
|
25
|
+
|
|
26
|
+
- `pnpm run typecheck`、`pnpm test`(十一项离线检查)、`pnpm run test:negative`
|
|
27
|
+
全绿;版本号两处(`package.json` 与 `src/protocol.ts` 的 `PLUGIN_VERSION`)
|
|
28
|
+
由 `smoke.mjs` 断言一致。
|
|
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 的旧循环证明这条断言会变红。
|
|
46
|
+
|
|
47
|
+
## 已知边界
|
|
48
|
+
|
|
49
|
+
- 这一版**没有**用户可见的功能变化。如果你已经装好 1.7.7 且不在意多一份
|
|
50
|
+
schemastery,可以跳过。
|
|
51
|
+
- 首次发布(1.7.7)走的是人工流程:npm 的 trusted publishing 只能挂在已存在
|
|
52
|
+
的包上。从 1.7.8 起才由 CI 发布。
|
|
53
|
+
- 1.7.7 与 1.7.8 之间没有功能差异,**只有包清单的归属关系不同**。
|