dsh-chat-embed 0.6.10 → 0.6.11

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
@@ -330,6 +330,7 @@ node scripts/release.mjs 0.6.7 --summary "..." --dry-run # 只看计划
330
330
 
331
331
  | 版本 | 变化 |
332
332
  | --- | --- |
333
+ | `0.6.11` | 补丁前的可写性判断从「不要尝试写入」改为「先执行,真被系统拒绝再给提权命令」:access(W_OK) 在 Windows 上可能误判,不该据此跳过尝试;并说明 DSH 授权弹窗与 Windows 提权是两条不同的闸 |
333
334
  | `0.6.10` | 修好「重启保持登录」整条链路:开关不再因 ctx 作用域错误静默失败、变成可双向切换(开启/还原)、设置菜单两行合一、预填任务说明重写;Host 半补上 inject 依赖,探针路由与 agent 工具终于生效 |
334
335
  | `0.6.9` | 设置菜单把「跨重启保持登录」与「检查补丁配置」合成一行(滑动开关 + 确认弹窗 + 新会话引导);发版改用 OIDC Trusted Publishing,不再保存 npm 令牌,并附带 provenance |
335
336
  | `0.6.8` | 去掉单提交策略:发版改为普通提交 + 普通推送,不再 --orphan 重写、reflog expire、gc --prune 与强推;恢复 git log/diff/blame/bisect,发版失败可 reset 回退,并为 OIDC provenance 扫清障碍 |
package/client.js CHANGED
@@ -115,7 +115,7 @@ window.__ModuleLoader__.load({
115
115
  let activeCtx = undefined
116
116
 
117
117
  /** Build identity, surfaced in the panel so a packaged app can be diagnosed. */
118
- const BUILD = '0.6.10'
118
+ const BUILD = '0.6.11'
119
119
 
120
120
  /** Where a re-applied instance finds the one it must take over from. */
121
121
  const INSTANCE_KEY = '__DSH_CHAT_EMBED_INSTANCE__'
@@ -289,7 +289,7 @@ let activeCtx = undefined
289
289
  patchTask: 'Apply the DSH desktop shell patch that keeps embedded chat logins across restarts.',
290
290
  patchTaskDir: 'Install directory',
291
291
  patchTaskCommand: 'Command',
292
- patchTaskReadonly: 'The install directory is not writable: do not attempt the write, just give me the command to run with administrator rights.',
292
+ patchTaskReadonly: 'The plugin reports this directory as not writable, which can be wrong: run it anyway and let the system answer. Only if the write is actually refused, hand me the command that needs administrator rights — do not work around it another way.',
293
293
  patchTaskNoSite: 'This shell version has no patch site, so the patch does not apply — explain why and change nothing else.',
294
294
  patchTaskVerify: 'When it is done, tell me how to verify (restart DSH, reopen the settings menu).',
295
295
  copyDiag: 'Copy diagnostics',
@@ -382,7 +382,7 @@ let activeCtx = undefined
382
382
  patchTask: '给 DSH 桌面版打上「跨重启保持登录」补丁。',
383
383
  patchTaskDir: '安装目录',
384
384
  patchTaskCommand: '命令',
385
- patchTaskReadonly: '安装目录不可写:不要尝试写入,把需要管理员权限执行的命令给我。',
385
+ patchTaskReadonly: '插件探测显示安装目录不可写(可能误判):照常执行,让系统自己回答。如果确实被拒绝写入,再把需要管理员权限的命令给我,不要用别的办法绕过。',
386
386
  patchTaskNoSite: '当前桌面壳版本找不到补丁点,补丁不适用——说明原因即可,不要改别的。',
387
387
  patchTaskVerify: '打好后告诉我怎么验证(重启 DSH,回设置菜单看状态)。',
388
388
  copyDiag: '复制诊断信息',
@@ -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.10**(`client.js` 约 3985 行,85 项契约测试)。
6
+ 当前实现:**v0.6.11**(`client.js` 约 3985 行,85 项契约测试)。
7
7
 
8
8
  > **架构一句话**:聊天页直接渲染在**席位的布局盒**里(`.dce-panel.dce-inline`,`width/height:100%`),几何完全交给 CSS;席位只有两个 —— 中央主面板(`main`)和右栏聊天 tab —— 二者互斥,**哪边点哪边接管**,切换时 guest 重建一次并回到上次会话。
9
9
 
@@ -137,8 +137,8 @@ Get-FileHash $env:TEMP\check\dsh-chat-embed-<版本>.tgz -Algorithm SHA256
137
137
  | --- | --- |
138
138
  | 仓库 | <https://github.com/poluce/dsh-chat-embed> |
139
139
  | Release | <https://github.com/poluce/dsh-chat-embed/releases> |
140
- | 分发包 | `dsh-chat-embed-0.6.10.tgz`(16 个文件,约 70 kB) |
141
- | npm | `dsh-chat-embed@0.6.10`(<https://www.npmjs.com/package/dsh-chat-embed>,维护者 `poluce_auto`) |
140
+ | 分发包 | `dsh-chat-embed-0.6.11.tgz`(16 个文件,约 70 kB) |
141
+ | npm | `dsh-chat-embed@0.6.11`(<https://www.npmjs.com/package/dsh-chat-embed>,维护者 `poluce_auto`) |
142
142
  | 商店图标 | `assets/icon-180.png`(180×180 PNG) |
143
143
  | 商店截图 | `assets/screenshots/` + 仓库根 `screenshots.json`(6 张) |
144
144
 
@@ -157,7 +157,7 @@ dsh plugin --profile desktop add git+https://github.com/poluce/dsh-chat-embed.gi
157
157
 
158
158
  1. 注册账号并完成邮箱验证:<https://www.npmjs.com/signup>;
159
159
  2. 本机登录:`npm login`(浏览器确认或一次性密码;开了 2FA 输入验证码);
160
- 3. 发布:`npm publish`(`prepack` 自动跑门禁;包名 `dsh-chat-embed` 已发布 `0.6.10`);
160
+ 3. 发布:`npm publish`(`prepack` 自动跑门禁;包名 `dsh-chat-embed` 已发布 `0.6.11`);
161
161
  4. 使用者随后只需:`dsh plugin --profile desktop add dsh-chat-embed`。
162
162
 
163
163
  ## 发布前后检查项
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-chat-embed",
3
- "version": "0.6.10",
3
+ "version": "0.6.11",
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",