@mealsea/dsh-prompt-enhance 1.0.0 → 1.0.1
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 +12 -0
- package/README.md +17 -6
- package/docs/AUDIT-1.0.0.md +76 -0
- package/docs/DETAIL.md +4 -3
- package/docs/RELEASE.md +140 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
本项目遵循 [Semantic Versioning](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## [1.0.1] - 2026-12-05
|
|
6
|
+
|
|
7
|
+
### 变更
|
|
8
|
+
|
|
9
|
+
- 同步仓库文档进 npm 包:`README` 安装段新增 `dsh plugin add @mealsea/dsh-prompt-enhance@1.0.1`,补充 `docs/RELEASE.md`(staged publishing 流程)与 `docs/AUDIT-1.0.0.md`(发布前检查)。
|
|
10
|
+
- 运行时文件与 1.0.0 完全一致(`client.js` / `index.js` / `locale` / `cordis.patch.yml` 无改动),仅文档与版本号变化。
|
|
11
|
+
|
|
5
12
|
## [1.0.0] - 2026-12-05
|
|
6
13
|
|
|
7
14
|
首个公开版本。
|
|
8
15
|
|
|
16
|
+
### 发布
|
|
17
|
+
|
|
18
|
+
- npm:`@mealsea/dsh-prompt-enhance@1.0.0`(2026-12-05 通过 staged publishing 发布并审批;`dist.integrity` 见 `docs/RELEASE.md`)。
|
|
19
|
+
- GitHub Release:`v1.0.0`(预构建 `prompt-enhance-1.0.0.tgz` / `.zip`)。
|
|
20
|
+
|
|
9
21
|
### 新增
|
|
10
22
|
|
|
11
23
|
- 输入框工具行的「✨ 优化提示词」芯片;点开先进入**确认态**(不调用模型、不产生 token),点「开始优化」才发起改写。
|
package/README.md
CHANGED
|
@@ -44,12 +44,13 @@ Composer tool row: [+] [permissions] [Sparkles Improve prompt] [model v]
|
|
|
44
44
|
|
|
45
45
|
## Install
|
|
46
46
|
|
|
47
|
-
1.
|
|
48
|
-
2.
|
|
47
|
+
1. **npm (recommended)**: `dsh plugin add @mealsea/dsh-prompt-enhance@1.0.0` ([package page](https://www.npmjs.com/package/@mealsea/dsh-prompt-enhance)).
|
|
48
|
+
2. Grab the prebuilt `prompt-enhance-*.tgz` from the [latest release](https://github.com/MEALSEA/prompt-enhance/releases/latest) and run `dsh plugin add ./prompt-enhance-*.tgz`; or extract it and point `install_bundle` at the extracted directory.
|
|
49
|
+
3. Or place this repository anywhere on disk (called `<repo>` below) and install the bundle from the DSH Plugin Manager: `install_bundle` with the **absolute path** of `<repo>` (needs approval; affects the whole profile).
|
|
49
50
|
- You can also download a release asset (`prompt-enhance-*.tgz` or the source zip) and pass the extracted directory's absolute path to `install_bundle`.
|
|
50
51
|
- Editing the profile's bundle dependency by hand works too, but Plugin Manager is the supported path.
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
4. Refresh the page and the **Improve prompt** chip appears in the composer tool row.
|
|
53
|
+
5. If you only change `index.js` (the host half) afterwards, disable and re-enable `include:prompt-enhance` in the Plugin Manager to reload it; a full DSH restart is not required.
|
|
53
54
|
|
|
54
55
|
## Usage
|
|
55
56
|
|
|
@@ -135,9 +136,19 @@ Current assertion counts: `host` 56, `smoke` 201. The tests never touch a real b
|
|
|
135
136
|
```
|
|
136
137
|
|
|
137
138
|
5. Publish the GitHub release: `gh release create v1.0.1 dist/prompt-enhance-1.0.1.tgz dist/prompt-enhance-1.0.1.zip --notes-file <notes>`.
|
|
138
|
-
6.
|
|
139
|
+
6. Publish to npm with staged publishing (no 2FA token flag needed for the upload; approval needs 2FA):
|
|
139
140
|
|
|
140
|
-
|
|
141
|
+
```bash
|
|
142
|
+
node scripts/publish.mjs check # preflight: manifest, patch name, files, secrets
|
|
143
|
+
node scripts/publish.mjs stage # optional: inspect the tarball in dist/
|
|
144
|
+
npm stage publish .pkg --access public --tag latest
|
|
145
|
+
npm stage approve <stage-id> # needs OTP or the browser link npm prints
|
|
146
|
+
node scripts/publish.mjs verify # registry metadata + tarball integrity
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Staged versions expire; approve promptly after staging.
|
|
150
|
+
|
|
151
|
+
> The repository manifest stays `@local/prompt-enhance` with `private: true` because it is also installed as a local path bundle; `scripts/publish.mjs` produces the npm-shaped artifact under `@mealsea/dsh-prompt-enhance` and rewrites the bundle patch to that name. npm has `1.0.0` published on 2026-12-05.
|
|
141
152
|
|
|
142
153
|
## Changelog
|
|
143
154
|
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# 发布前检查报告(1.0.0 / staged npm)
|
|
2
|
+
|
|
3
|
+
- 检查时间:2026-12-05 23:5x(Asia/Shanghai);**24:0x 复核更新**
|
|
4
|
+
- 检查人:DSH agent(只读检查;未执行任何不可逆操作)
|
|
5
|
+
- 当前结论:**npm `1.0.0` 已发布并通过 integrity 校验;本地制品可发布;catalog PR 仅剩"仓库年龄"门禁(约 22h 自动转绿)。**
|
|
6
|
+
|
|
7
|
+
> 复核更正:本文初稿判定"staging 记录消失、发布未完成"有误。实际上 `1.0.0` 于 **15:51:18** 被 approve 并发布,stage 记录随即被消费(`npm stage list` 变空、`stage view` 404 都属正常)。`npm view` 当时返回 404 是因为查询发生在发布前;现在 registry 返回 200、`dist-tags.latest=1.0.0`。
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 一、检查对象
|
|
12
|
+
|
|
13
|
+
| # | 对象 | 为什么查 |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| A | 本地仓库与源码 | 版本、提交、tag 与 HEAD 是否一致;运行时文件是否被后续提交改动 |
|
|
16
|
+
| B | 构建制品(`.pkg/` + `dist/*.tgz`) | 真正会被上传的字节:清单、patch 名、文件清单、密钥 |
|
|
17
|
+
| C | npm 侧状态(staging / registry) | 暂存记录是否存在、能否 approve、registry 上是否可见 |
|
|
18
|
+
| D | GitHub Release 资产 | 文档与 catalog 指向的 tarball 是否可下载 |
|
|
19
|
+
| E | Catalog 提交(PR #21280) | 条目字段、CI 结论、失败原因归属 |
|
|
20
|
+
| F | 文档一致性 | README / README.en / docs/RELEASE.md / CHANGELOG 是否与当前事实相符 |
|
|
21
|
+
|
|
22
|
+
## 二、检查标准(通过条件)
|
|
23
|
+
|
|
24
|
+
- **A**:`git status` 干净;`HEAD == origin/main`;tag `v1.0.0` 可解析;`v1.0.0..HEAD` 不含 `client.js`/`index.js`/`cordis.patch.yml`/`locale/**`/`package.json`(运行时无变化);`test/host.mjs` 56 项、`test/smoke.mjs` 201 项通过。
|
|
25
|
+
- **B**:`node scripts/publish.mjs check` 退出码 0;staged `name=@mealsea/dsh-prompt-enhance`、`version=1.0.0`、无 `private`、`publishConfig.access=public`;`cordis.patch.yml` 的 `name` 为公共包名;必需文件齐全;密钥/本机路径扫描零命中。
|
|
26
|
+
- **C**:`npm stage list` 至少 1 条;`npm stage view <id>` 可读且状态可推进;`npm view @mealsea/dsh-prompt-enhance version` 返回 1.0.0(发布后)。
|
|
27
|
+
- **D**:`curl -I -L` 对 release tarball 返回 2xx。
|
|
28
|
+
- **E**:PR diff 仅新增 `data/plugins/MEALSEA__prompt-enhance.yml`;`check` 作业 pass;`Submission gate` 的失败若与条目本身无关则允许等待。
|
|
29
|
+
- **F**:文档描述与 A–E 的实测事实一致(机制、版本、端口/路径、是否已发布)。
|
|
30
|
+
|
|
31
|
+
## 三、检查结果
|
|
32
|
+
|
|
33
|
+
| # | 对象 | 结果 | 证据 |
|
|
34
|
+
| --- | --- | --- | --- |
|
|
35
|
+
| A1 | 工作区干净 | ✅ | `git status --porcelain` 无输出 |
|
|
36
|
+
| A2 | HEAD 与远端一致 | ✅ | `HEAD=e268f62 origin/main=e268f62` |
|
|
37
|
+
| A3 | tag 存在 | ✅(但落后) | `v1.0.0 -> 172d37c`,HEAD 为 `e268f62`;`v1.0.0..HEAD` 仅改动 `.gitignore/README*/docs/RELEASE.md/scripts/publish.mjs`,**运行时文件无改动** |
|
|
38
|
+
| A4 | 测试 | ✅ | host 56 项、smoke 201 项通过 |
|
|
39
|
+
| B1 | 预检脚本 | ✅ | `check passed: manifest, patch name, files, exports and secret scan` |
|
|
40
|
+
| B2 | 制品规模 | ⚠️ 已变化 | 首次(staged 那次)`15 files / 114807 B / sha256 95b9a635…`;加入 `docs/RELEASE.md` 后 `16 files / 117113 B / sha256 770c5fe9…`;再加入本报告后 `17 files / 120129 B / sha256 740df07f…`——**每改一次 `docs/`,制品 hash 就变,staged 的内容随即过期** |
|
|
41
|
+
| C1 | staging 记录 | ✅ 已消费 | 15:46:37 stage(id `396ef527-…`)→ 15:51:18 approve 发布;之后 `npm stage list` 为空、`stage view` 404 均属正常 |
|
|
42
|
+
| C2 | registry 可见性 | ✅ 已发布 | 直接查 registry:`http=200`,`name=@mealsea/dsh-prompt-enhance`,`dist-tags={"latest":"1.0.0"}`,`versions=0.0.0-stage,1.0.0`,`modified=15:51:19`;`publish.mjs verify` 通过(下载 tarball、sha512 与 `dist.integrity` 一致、解包后 `cordis.patch.yml` 名为公共包名) |
|
|
43
|
+
| D1 | Release 资产可下载 | ✅ | `curl -I -L` → `http=200`(重定向到 release-assets.githubusercontent.com) |
|
|
44
|
+
| E1 | PR 结构 | ✅ | diff 仅 7 行新增条目文件 |
|
|
45
|
+
| E2 | PR 可合并 | ✅ | `mergeable=MERGEABLE`,`check` 作业 `SUCCESS` |
|
|
46
|
+
| E3 | Submission gate | ⚠️ 非我方问题 | check-run summary:`repository is 0.1 days old (needs 1) — … should clear in about 22h`(该 run 的 headBranch 为 `main`,仓库级门禁,其他 PR 同时段同样失败) |
|
|
47
|
+
| F1 | README 发布说明 | ✅ 已修正 | 两份 README 安装段新增 `dsh plugin add @mealsea/dsh-prompt-enhance@1.0.0`,并删除"未发布/需 bypass token"的旧描述 |
|
|
48
|
+
| F2 | RELEASE.md 阶段 1 | ✅ 已修正 | 顶部补"已发布"状态与制品 hash;阶段 1 改为 `npm stage publish` + `npm stage approve` + `verify` 流程与"尽快 approve"注意 |
|
|
49
|
+
| F3 | CHANGELOG | ✅ 已补 | `1.0.0` 新增「发布」小节:npm 包名、staged 发布、GitHub Release 资产 |
|
|
50
|
+
|
|
51
|
+
## 四、发现的问题(按优先级)
|
|
52
|
+
|
|
53
|
+
1. **P0 — 已解决:staging → approve 已闭环。** 15:46:37 暂存成功(id `396ef527-93b6-4b6d-99c2-6782961943af`,status `validating`),15:51:18 由 approve 发布为 `1.0.0`;npm 在 staged publishing 期间会创建一个 `0.0.0-stage` 占位版本(描述为 "Temporary package placeholder for staged publishing"),不要对外引用。**教训**:stage 与 approve 之间不要改 `docs/`,否则制品 hash 变化导致暂存内容过期(见 B2)。
|
|
54
|
+
2. **P1 — 文档与事实不符。** 已确定可行的路径是「staged publish(无需 2FA 绕过)+ approve(需要 2FA)」,README/RELEASE 仍按"直发需要 bypass token"叙述。**处理**:发布成功后一次性改 README.md、README.en.md、docs/RELEASE.md、CHANGELOG。
|
|
55
|
+
3. **P2 — tag 落后 HEAD。** 不影响 npm 制品内容(运行时零差异),但 Release 资产与 HEAD 文档不同源。**处理**:不移动已发布 tag;在 Release 说明里注明制品基于 `172d37c`。
|
|
56
|
+
4. **P2 — `docs/` 进入 npm 包导致制品漂移。** 每次改文档 hash 都变(本轮已发生两次),staged 版本随之失效。**处理**:发布窗口内冻结 `docs/`;或从 `publish.mjs` 的拷贝清单中去掉 `docs/`(包内仍保留 `docs/DETAIL.md` 供插件详情页,见 `meta.detail`),发布后再补文档。
|
|
57
|
+
5. **P3 — catalog 门禁。** 仅"仓库年龄 0.1 天",约 22 小时后自动转绿,无需重开 PR。
|
|
58
|
+
|
|
59
|
+
## 五、交付物
|
|
60
|
+
|
|
61
|
+
- 本报告:`docs/AUDIT-1.0.0.md`(对象 / 标准 / 结果 / 问题 / 建议)。
|
|
62
|
+
- 可复跑证据命令:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git status --porcelain && git rev-parse --short HEAD origin/main
|
|
66
|
+
git diff --name-only v1.0.0..HEAD -- client.js index.js cordis.patch.yml locale package.json
|
|
67
|
+
node test/host.mjs && node test/smoke.mjs
|
|
68
|
+
node scripts/publish.mjs check
|
|
69
|
+
npm stage list && npm stage view <stage-id>
|
|
70
|
+
npm view @mealsea/dsh-prompt-enhance version dist.tarball dist.integrity
|
|
71
|
+
curl -sI -L -o /dev/null -w '%{http_code}\n' https://github.com/MEALSEA/prompt-enhance/releases/download/v1.0.0/prompt-enhance-1.0.0.tgz
|
|
72
|
+
gh pr view 21280 --repo awesome-dsh-plugin/awesome-dsh-plugin --json state,mergeable,statusCheckRollup
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- 已完成的修复:①npm `1.0.0` 已发布并校验通过;②README / README.en / CHANGELOG / RELEASE.md 已按"staged publishing + 已发布"同步;③`docs/RELEASE.md` 顶部已固化制品 sha256/shasum 与 stage id。
|
|
76
|
+
- 仍待处理:①catalog `Submission gate` 等仓库满 1 天(约 22h,自动转绿);②若希望 npm 制品包含最新 `docs/`,需发 `1.0.1`(本次未发)。
|
package/docs/DETAIL.md
CHANGED
|
@@ -32,9 +32,10 @@
|
|
|
32
32
|
## 安装
|
|
33
33
|
|
|
34
34
|
1. 工作区里已有完整包(`package.json` + `dsh.bundle.patch`)。
|
|
35
|
-
2.
|
|
36
|
-
3.
|
|
37
|
-
4.
|
|
35
|
+
2. 从 npm 安装:`dsh plugin add @mealsea/dsh-prompt-enhance@1.0.0`(包页 <https://www.npmjs.com/package/@mealsea/dsh-prompt-enhance>)。
|
|
36
|
+
3. 或本地安装:用 `plugin_manager` 的 `install_bundle`,`target` 传本包**绝对目录**;安装影响整个 profile,需要审批。
|
|
37
|
+
4. 以返回的 `application` 为准:`applied` 表示已生效;`restart-required` 表示要重启才能加载新的 JS 模块。
|
|
38
|
+
5. 在 Plugins 列表里确认标题/描述/图标;然后在任意会话里看工具行。
|
|
38
39
|
|
|
39
40
|
## 验证清单
|
|
40
41
|
|
package/docs/RELEASE.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# 分阶段发布手册(npm + GitHub + Catalog)
|
|
2
|
+
|
|
3
|
+
**当前状态(2026-12-05 更新):1.0.0 已发布到 npm,阶段 1、2 完成。**
|
|
4
|
+
|
|
5
|
+
- npm:`@mealsea/dsh-prompt-enhance@1.0.0`(`dist-tags.latest`),staged id `396ef527-93b6-4b6d-99c2-6782961943af` 于 15:46:37 创建、15:51:18 审批发布,随后 stage 记录被消费(`npm stage list` 为空属正常)。
|
|
6
|
+
- 制品:15 files / 114807 B / `sha256=95b9a63520f07be17af5792e1215fad8d20b22466a8aaf343062f0b94a7107c2`、`shasum=27c303ed0656361fa1526240e3f2e0e579df0604`;`node scripts/publish.mjs verify` 已通过(tarball 与 `dist.integrity` 一致)。
|
|
7
|
+
- npm 会为 staged publishing 保留一个 `0.0.0-stage` 占位版本(说明为 "Temporary package placeholder for staged publishing"),不要对外引用;`latest` 指向 `1.0.0`。
|
|
8
|
+
- 注意:发布出去的制品是**暂存时刻的 15 文件版本**;此后仓库 `docs/` 有新增(`RELEASE.md`、`AUDIT-1.0.0.md`),两者不同源但不影响运行时。
|
|
9
|
+
|
|
10
|
+
本文件把「发布」拆成可单独审批、可单独回滚的阶段。阶段 1 是唯一会写入 registry 的一步。
|
|
11
|
+
|
|
12
|
+
- 仓库:<https://github.com/MEALSEA/prompt-enhance>
|
|
13
|
+
- 发布名:`@mealsea/dsh-prompt-enhance`
|
|
14
|
+
- 版本:`1.0.0`(npm 版本号一旦发布不可复用)
|
|
15
|
+
- Catalog:`awesome-dsh-plugin/awesome-dsh-plugin` PR #21280(已开,无需因 npm 发布而改动,见阶段 4)
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 0. 预检(已通过,本地,无副作用)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
node scripts/publish.mjs check
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
它做四件事并逐条断言:
|
|
26
|
+
|
|
27
|
+
1. 生成 `.pkg/`(仓库清单仍是 `@local/prompt-enhance` + `private`,供本地路径安装);
|
|
28
|
+
2. `npm pack` 出 `dist/mealsea-dsh-prompt-enhance-1.0.0.tgz`;
|
|
29
|
+
3. 校验:包名/版本/`private` 已移除/`publishConfig.access=public`/`dsh.bundle.patch`/`exports` 完整;
|
|
30
|
+
4. **把 `cordis.patch.yml` 里的 `@local/prompt-enhance` 改写为 `@mealsea/dsh-prompt-enhance`**——
|
|
31
|
+
否则从 registry 安装后插件树无法解析到该模块(这是本地路径安装与 npm 安装最容易踩的差异)。
|
|
32
|
+
|
|
33
|
+
同时做密钥/本机路径扫描(`npm_`、`ghp_`、`sk-`、私钥块、`C:\Users\`、`D:\<目录>\`)。
|
|
34
|
+
|
|
35
|
+
本次结果:`15 files`、`114807 bytes`、`sha256=95b9a63520f07be17af5792e1215fad8d20b22466a8aaf343062f0b94a7107c2`。
|
|
36
|
+
|
|
37
|
+
**审批点 A**:确认包名、版本、README(英文版作为 npm 首页)、LICENSE 与上述文件清单。
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 1. 发布到 npm(唯一不可逆步骤)
|
|
42
|
+
|
|
43
|
+
推荐 **staged publishing**:上传不要求 token 具备 2FA 绕过,把 proof-of-presence 推迟到 approve。
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
node scripts/publish.mjs check # 预检(见阶段 0)
|
|
47
|
+
npm stage publish .pkg --access public --tag latest
|
|
48
|
+
npm stage list # 取 stage id,确认 status
|
|
49
|
+
npm stage approve <stage-id> # 需要 OTP,或打开 npm 打印的浏览器链接
|
|
50
|
+
node scripts/publish.mjs verify # 阶段 2
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
要点:
|
|
54
|
+
|
|
55
|
+
- `approve` 必须由账号持有人完成 2FA(CLI 会打印 `https://www.npmjs.com/auth/cli/...`;也可用 `--otp=<6位>`)。
|
|
56
|
+
- **stage 之后尽快 approve**:本仓库第一次尝试时,stage 记录在 approve 后才被消费;期间任何 `docs/` 改动都会让制品 hash 变化(见 `docs/AUDIT-1.0.0.md` B2)。
|
|
57
|
+
- 备选:token 若具备 `bypass_2fa: true`,可直接 `node scripts/publish.mjs publish`。
|
|
58
|
+
|
|
59
|
+
**审批点 B**:由账号持有人完成 approve(本次已执行:15:46:37 stage → 15:51:18 published)。
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 2. 校验 registry 制品(只读)
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
node scripts/publish.mjs verify
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
断言链:
|
|
70
|
+
|
|
71
|
+
1. `npm view @mealsea/dsh-prompt-enhance version` = `1.0.0`;
|
|
72
|
+
2. 下载 `dist.tarball`,重算 `sha512` 与 `dist.integrity` 一致(防止镜像/传输损坏);
|
|
73
|
+
3. 解包到 `dist/verify/`,确认 `package.json` 的 name/version;
|
|
74
|
+
4. 确认发布出去的 `cordis.patch.yml` 命名的是 `@mealsea/dsh-prompt-enhance`。
|
|
75
|
+
|
|
76
|
+
任一条失败 → 走阶段 6 的「72 小时内 unpublish」。
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 3. 文档与仓库同步(有副作用,仅本仓库)
|
|
81
|
+
|
|
82
|
+
- `README.md` / `README.en.md` 的安装段新增一行:
|
|
83
|
+
`dsh plugin add @mealsea/dsh-prompt-enhance@1.0.0`(或 `npm i -g` 后本地路径安装);
|
|
84
|
+
- `CHANGELOG.md` 的 `1.0.0` 条目追加「Published to npm」;
|
|
85
|
+
- `docs/DETAIL.md` 安装章节补 npm 方式;
|
|
86
|
+
- `package.json` 的 `repository`/`homepage` 保持不变(仓库清单不指向 npm 名)。
|
|
87
|
+
|
|
88
|
+
命令:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
git add -A && git commit -m "docs: install from npm" && git push
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**审批点 C**:确认文案后再推送(推送会触发 CI)。
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 4. Catalog 联动(预期零改动)
|
|
99
|
+
|
|
100
|
+
catalog 规则明确写着「**不要**在条目里写 `npm:`,npm 映射由 registry 采集」,
|
|
101
|
+
因此 PR #21280 保持原样;其 `probe-npm.mjs` 在下一轮探测时自动把
|
|
102
|
+
`https://github.com/MEALSEA/prompt-enhance` 映射到 `@mealsea/dsh-prompt-enhance`,
|
|
103
|
+
市场卡片会从「Release tarball 安装」升级为「npm 安装」。
|
|
104
|
+
|
|
105
|
+
需要人工确认的只有一件事:PR 的 `check` 作业转绿(仓库需创建满 1 天,该检查会自行重跑)。
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 5. GitHub Release 说明(可选)
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
gh release edit v1.0.0 --notes-file dist/RELEASE_NOTES.md
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
在说明里追加 npm 安装行与 `dist.integrity` 里的 hash,便于用户校验。
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## 6. 回滚矩阵
|
|
120
|
+
|
|
121
|
+
| 阶段 | 失败/需要撤回时 |
|
|
122
|
+
| --- | --- |
|
|
123
|
+
| 阶段 1 发布失败 | 无副作用;`.pkg/` 与 `dist/*.tgz` 保留,可直接重试 |
|
|
124
|
+
| 阶段 2 制品校验失败 | `npm unpublish @mealsea/dsh-prompt-enhance@1.0.0 --force`(**72 小时内**);超时则 `npm deprecate` 并升 `1.0.1` |
|
|
125
|
+
| 阶段 3 文档有误 | `git revert` + push;npm 包已发布不受影响 |
|
|
126
|
+
| 阶段 4 catalog 条目错误 | 编辑 PR 的 `data/plugins/MEALSEA__prompt-enhance.yml` |
|
|
127
|
+
| 阶段 5 Release 说明错误 | `gh release edit` 覆盖 |
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 审批清单(请逐项确认)
|
|
132
|
+
|
|
133
|
+
1. 包名 `@mealsea/dsh-prompt-enhance`、版本 `1.0.0` 是否可以发布;
|
|
134
|
+
2. npm 首页使用 `README.en.md` 是否可以;
|
|
135
|
+
3. `cordis.patch.yml` 在 npm 制品中改写为公共包名——是否同意(本地安装仍用 `@local/prompt-enhance`);
|
|
136
|
+
4. 阶段 1 的执行方式:先配 Bypass 2FA,还是本次用 OTP;
|
|
137
|
+
5. 阶段 3 的 README 安装文案是否先给我看;
|
|
138
|
+
6. 是否需要我把阶段 1→2 合并成「一次执行、失败即停」的脚本调用。
|
|
139
|
+
|
|
140
|
+
批准后我只执行阶段 1 与阶段 2,其余阶段等你逐段点头。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mealsea/dsh-prompt-enhance",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "DeepSeek Harness plugin: rewrites the composer draft in place with your own model, previews the result, and writes it back only after you confirm.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "MEALSEA",
|