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 +2 -1
- package/client.js +1 -1
- package/docs/architecture.md +1 -1
- package/docs/publishing.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -287,7 +287,7 @@ plugin_manager { "action": "install_bundle", "target": "<本仓库克隆路径>"
|
|
|
287
287
|
|
|
288
288
|
### 发布与分发
|
|
289
289
|
|
|
290
|
-
一条命令发版(门禁 →
|
|
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.
|
|
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__'
|
package/docs/architecture.md
CHANGED
|
@@ -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.
|
|
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
|
|
package/docs/publishing.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
- 同时改 `package.json` 的 `version` 与 `client.js` 的 `BUILD`,两者必须一致(CI 与契约测试都会拦);
|
|
8
8
|
- 门禁必须绿:`npm run check`(`verify-bundle` + 85 项契约测试);
|
|
9
9
|
- 代码注释/提交信息英文,文档中文;
|
|
10
|
-
-
|
|
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 |
|
|
42
|
-
| push |
|
|
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
|
-
|
|
58
|
+
每条提交只描述自己这次发布(`dsh-chat-embed <版本>: <summary>`)。项目长描述只留在历史第一条提交里,不再随版本重复。
|
|
59
59
|
|
|
60
60
|
### 手动等价步骤(脚本出问题时的兜底)
|
|
61
61
|
|
|
62
62
|
```powershell
|
|
63
63
|
npm run check # 1. 本地门禁
|
|
64
|
-
# 2.
|
|
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
|
-
|
|
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.
|
|
107
|
-
| npm | `dsh-chat-embed@0.6.
|
|
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.
|
|
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.
|
|
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",
|