dsh-chat-embed 0.6.7 → 0.6.8

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
@@ -287,7 +287,7 @@ plugin_manager { "action": "install_bundle", "target": "<本仓库克隆路径>"
287
287
 
288
288
  ### 发布与分发
289
289
 
290
- 一条命令发版(门禁 → 单提交 → 推送 → 等 CI → 发布 npm → 打 tag → 建 Release,中途失败可重跑续做):
290
+ 一条命令发版(门禁 → 提交 → 推送 → 等 CI → 发布 npm → 打 tag → 建 Release,中途失败可重跑续做):
291
291
 
292
292
  ```powershell
293
293
  node scripts/release.mjs 0.6.7 --summary "这次改了什么"
@@ -330,6 +330,7 @@ node scripts/release.mjs 0.6.7 --summary "..." --dry-run # 只看计划
330
330
 
331
331
  | 版本 | 变化 |
332
332
  | --- | --- |
333
+ | `0.6.8` | 去掉单提交策略:发版改为普通提交 + 普通推送,不再 --orphan 重写、reflog expire、gc --prune 与强推;恢复 git log/diff/blame/bisect,发版失败可 reset 回退,并为 OIDC provenance 扫清障碍 |
333
334
  | `0.6.7` | 发版脚本:一条命令完成 bump/gate/提交/推送/等 CI/发布/打 tag/建 release;新增 dependabot 自动维护固定 SHA 的 Action |
334
335
  | `0.6.6` | 元数据同步版:把 `engines.node` 收紧到 `>=22.14.0`、门禁脚本从 `prepublishOnly` 换成 `prepack`(同时覆盖 `npm pack` 与 `npm publish`)落到 npm 上;新增 CI 工作流(Node 22/24 跑门禁,并校验 tag 与 `BUILD` 一致)。无功能变化 |
335
336
  | `0.6.5` | 设置菜单标题与诊断卡片显示自身版本号;「检查补丁配置」改为一次性开关:不再内联渲染报告,而是打开新会话并把已知事实预填进输入框(借用 DSH「创建你的插件」的 `uiWorkspace.startSession` 用法) |
package/client.js CHANGED
@@ -103,7 +103,7 @@ window.__ModuleLoader__.load({
103
103
  let openRightTabImpl = () => {}
104
104
 
105
105
  /** Build identity, surfaced in the panel so a packaged app can be diagnosed. */
106
- const BUILD = '0.6.7'
106
+ const BUILD = '0.6.8'
107
107
 
108
108
  /** Where a re-applied instance finds the one it must take over from. */
109
109
  const INSTANCE_KEY = '__DSH_CHAT_EMBED_INSTANCE__'
@@ -3,7 +3,7 @@
3
3
  本文记录 `client.js` 里每一条**反直觉**的实现决策、支撑它的证据,以及升级桌面壳时必须重新验证的清单。
4
4
 
5
5
  目标运行环境:**`@deepseek-ai/dsh-desktop 0.2.2-rc.1`(Electron / Chromium)**。
6
- 当前实现:**v0.6.7**(`client.js` 约 3985 行,85 项契约测试)。
6
+ 当前实现:**v0.6.8**(`client.js` 约 3985 行,85 项契约测试)。
7
7
 
8
8
  > **架构一句话**:聊天页直接渲染在**席位的布局盒**里(`.dce-panel.dce-inline`,`width/height:100%`),几何完全交给 CSS;席位只有两个 —— 中央主面板(`main`)和右栏聊天 tab —— 二者互斥,**哪边点哪边接管**,切换时 guest 重建一次并回到上次会话。
9
9
 
@@ -7,7 +7,7 @@
7
7
  - 同时改 `package.json` 的 `version` 与 `client.js` 的 `BUILD`,两者必须一致(CI 与契约测试都会拦);
8
8
  - 门禁必须绿:`npm run check`(`verify-bundle` + 85 项契约测试);
9
9
  - 代码注释/提交信息英文,文档中文;
10
- - 仓库保持**单提交**:每次发版用 `--orphan` + `gc --prune=now` 重写历史后强推 master。**tag 不移动**——它标记的是已发布的那次提交。
10
+ - 提交历史正常累积,**不再重写**:发版就是一次普通提交 + 普通 push。tag 不移动——它标记的是当时发布的那次提交。
11
11
 
12
12
  ## CI
13
13
 
@@ -38,8 +38,8 @@ node scripts/release.mjs 0.6.7 --summary "一句话说明这次改了什么"
38
38
  | --- | --- | --- |
39
39
  | bump | 改 `package.json` / `client.js` 的 `BUILD` / README 版本历史 / 两份文档 | 值相同就不动 |
40
40
  | gate | `npm run check` | — |
41
- | commit | `--orphan` 重写 + `gc --prune=now`,保持单提交 | — |
42
- | push | 强推 master,触发 CI | — |
41
+ | commit | `git add -A` + 普通提交 | 工作树干净则跳过 |
42
+ | push | 推送 master,触发 CI | — |
43
43
  | ci | 等这次推送的 CI 跑完,红了就停 | — |
44
44
  | publish | `npm publish` | registry 上已有该版本则跳过 |
45
45
  | tag | 打 tag 并推送(CI 再校验一次) | tag 已存在则跳过 |
@@ -55,13 +55,13 @@ node scripts/release.mjs 0.6.7 --summary "..." --stop-after gate # 做完 bump+
55
55
  node scripts/release.mjs 0.6.7 --summary "..." --notes dist\notes.md # Release 用独立说明文件
56
56
  ```
57
57
 
58
- 提交信息由脚本从**当前那条提交**继承:保留原来的项目描述,只换标题里的版本号,并把 `--summary` 作为正文第一段。这样单提交里那份长描述不会因为发版而丢失。
58
+ 每条提交只描述自己这次发布(`dsh-chat-embed <版本>: <summary>`)。项目长描述只留在历史第一条提交里,不再随版本重复。
59
59
 
60
60
  ### 手动等价步骤(脚本出问题时的兜底)
61
61
 
62
62
  ```powershell
63
63
  npm run check # 1. 本地门禁
64
- # 2. --orphan 重写 + gc --prune=now + 强推 master
64
+ # 2. git add -A && git commit && git push
65
65
  gh run list --repo poluce/dsh-chat-embed --limit 1 # 3. 等 CI 绿
66
66
  npm publish # 4. 发布到 npm(prepack 会自动再跑一次门禁)
67
67
  git tag v<版本> # 5. 打 tag 并推送
@@ -95,7 +95,7 @@ Get-FileHash $env:TEMP\check\dsh-chat-embed-<版本>.tgz -Algorithm SHA256
95
95
  2. 该配置**必须在 2 天内完成首次成功发布**,否则过期;
96
96
  3. 需要 workflow 带 `id-token: write`、GitHub-hosted runner、npm CLI ≥ 11.5.1、Node ≥ 22.14.0(`engines` 已收紧)。
97
97
 
98
- ⚠️ 一个已知冲突:provenance 把包绑定到发布时的 commit SHA,而本仓库每次发版都重写历史并 `gc --prune=now`,旧版本的 commit 会变成不可达对象,npm 页面上"source commit"链接最终会失效。要么接受旧版本链接腐烂,要么保留历史。
98
+ 提交历史正常累积之后,provenance 里的 commit SHA 会长期可达,npm 页面上的"source commit"链接不会失效。
99
99
 
100
100
  ## 当前发布物
101
101
 
@@ -103,8 +103,8 @@ Get-FileHash $env:TEMP\check\dsh-chat-embed-<版本>.tgz -Algorithm SHA256
103
103
  | --- | --- |
104
104
  | 仓库 | <https://github.com/poluce/dsh-chat-embed> |
105
105
  | Release | <https://github.com/poluce/dsh-chat-embed/releases> |
106
- | 分发包 | `dsh-chat-embed-0.6.7.tgz`(16 个文件,约 70 kB) |
107
- | npm | `dsh-chat-embed@0.6.7`(<https://www.npmjs.com/package/dsh-chat-embed>,维护者 `poluce_auto`) |
106
+ | 分发包 | `dsh-chat-embed-0.6.8.tgz`(16 个文件,约 70 kB) |
107
+ | npm | `dsh-chat-embed@0.6.8`(<https://www.npmjs.com/package/dsh-chat-embed>,维护者 `poluce_auto`) |
108
108
  | 商店图标 | `assets/icon-180.png`(180×180 PNG) |
109
109
  | 商店截图 | `assets/screenshots/` + 仓库根 `screenshots.json`(6 张) |
110
110
 
@@ -123,7 +123,7 @@ dsh plugin --profile desktop add git+https://github.com/poluce/dsh-chat-embed.gi
123
123
 
124
124
  1. 注册账号并完成邮箱验证:<https://www.npmjs.com/signup>;
125
125
  2. 本机登录:`npm login`(浏览器确认或一次性密码;开了 2FA 输入验证码);
126
- 3. 发布:`npm publish`(`prepack` 自动跑门禁;包名 `dsh-chat-embed` 已发布 `0.6.7`);
126
+ 3. 发布:`npm publish`(`prepack` 自动跑门禁;包名 `dsh-chat-embed` 已发布 `0.6.8`);
127
127
  4. 使用者随后只需:`dsh plugin --profile desktop add dsh-chat-embed`。
128
128
 
129
129
  ## 发布前后检查项
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-chat-embed",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "author": "poluce <fishsummer@126.com>",
5
5
  "description": "Multi-tab AI chat embed for the DeepSeek Harness desktop app: DeepSeek, 豆包, ChatGPT, MiniMax, Kimi, Gemini and Grok, each signed in separately.",
6
6
  "type": "module",