Skip to content

Commit d49951b

Browse files
authored
Merge pull request #26 from omdsh-dev/codex/npm-readme-release
docs: publish npm install guidance for 1.4.2
2 parents edca410 + 68ef655 commit d49951b

5 files changed

Lines changed: 26 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
# Changelog
22

33
## [Unreleased]
4+
5+
## [1.4.2] - 2026-08-24
6+
### 文档
7+
- 在中英文 README 中补充原生 `npm install @changfenhuang/dsh-annotation` 命令,并明确它只添加 Node 依赖;安装并激活 DSH 插件仍使用 `dsh plugin add`
8+
- 产品站安装命令同步改为 npm 公开包。
9+
10+
## [1.4.1] - 2026-08-18
411
### 发布
512
- npm 发布作用域改为个人账号 `@changfenhuang/dsh-annotation`;GitHub 仓库继续保留在 `omdsh-dev` 组织。同步更新运行时模块标识、资源路由和安装文档,不保留旧 npm 名称兼容层。
613

714
### 修复
815
- **斜杠命令不再被批注拼稿降级(issue #20**:有待发送批注时输入 `/goal` 等命令并回车,v1.4.1 会把批注块前置进草稿,破坏 DSH 输入机的命令 token 前缀(watchClaim 释放声明),命令被降级为普通消息发出、goal 无法启用。现在命令草稿原样放行、不拼批注,批注保留并随下一条普通消息附带,同时弹 toast 提示(zh/en)。
16+
- **恢复 Cmd/Ctrl+Enter 纯批注直接发送(issue #17**:v1.3.18 为修 issue #10 把修饰键 Enter 全部排除,导致空草稿时 Cmd/Ctrl+Enter 无法直接发送纯批注。现仅在草稿为空时接管 Cmd/Ctrl+Enter,并在 capture 阶段主动 `submit('queue')`,避免 composer 的 accelerated 路径在「运行中 + 有排队消息」时误走 steerQueue 而把批注块留在输入框;草稿已有文字时仍交由 composer 处理,保留宿主的 Queue / Steer 策略。
917
### 兼容性
1018
- **dsh 0.1.0-rc.8**:确认浏览器模块加载、会话作用域、输入提交、语言切换及批注依赖的页面锚点均保持兼容;无需增加兼容层,`npm run check` 全通过。
1119
- **dsh 0.1.1-rc.2**:确认浏览器模块加载、会话作用域、输入提交、语言订阅及页面锚点契约仍保持兼容;无需增加兼容层,`npm run check` 3/3 通过,并在 rc.2 真实 Web 页面确认脚本加载与样式注入。
1220

13-
## [1.4.1] - 2026-08-18
14-
### 修复
15-
- **恢复 Cmd/Ctrl+Enter 纯批注直接发送(issue #17**:v1.3.18 为修 issue #10 把修饰键 Enter 全部排除,导致空草稿时 Cmd/Ctrl+Enter 无法直接发送纯批注。现仅在草稿为空时接管 Cmd/Ctrl+Enter,并在 capture 阶段主动 `submit('queue')`,避免 composer 的 accelerated 路径在「运行中 + 有排队消息」时误走 steerQueue 而把批注块留在输入框;草稿已有文字时仍交由 composer 处理,保留宿主的 Queue / Steer 策略。
16-
1721
## [1.4.0] - 2026-08-18
1822
### 新功能
1923
- **语言跟随 DSH(issue #11**:接入 `@deepseek-ai/dsh-client-locale``locale` 服务(`ctx.locale.getSnapshot().active` + `subscribe()`),UI 文案与批注协议块按 `zh`/`en` 双语生成与实时切换;气泡隐藏手术与反解析同时兼容 `提问:`/`Ask:``批注:`/`Note: ` 及「问题:」老格式,历史消息跨语言切换可解析;回复芯片保持语言中立的 `Annotation N`;locale 服务缺失时回退 zh,行为与旧版一致。

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ dsh plugin --profile web add .
6565
# restart the web service — see "Restarting the web service" below
6666
```
6767

68+
To add it only as a Node dependency in an existing project:
69+
70+
```sh
71+
npm install @changfenhuang/dsh-annotation
72+
```
73+
74+
> `npm install` only adds the dependency; it does not register the plugin with DSH. Use `dsh plugin add` above when installing it into DSH.
75+
6876
| Do | Don't |
6977
|----|------|
7078
| Only `dsh plugin add` / only write `bundles` | **Never** insert the same id again in the profile/home `cordis.patch.yml` |

README.zh-CN.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ dsh plugin --profile web add .
6565
# 重启 web —— 见下方「重启 web 服务」
6666
```
6767

68+
如果只想把它作为 Node 依赖加入现有项目:
69+
70+
```sh
71+
npm install @changfenhuang/dsh-annotation
72+
```
73+
74+
> `npm install` 只添加依赖,不会把插件注册到 DSH;在 DSH 中使用时仍应执行上面的 `dsh plugin add`
75+
6876
|| 不做 |
6977
|----|------|
7078
|`dsh plugin add` / 只写 `bundles` | **不要**再在 profile/home `cordis.patch.yml` insert 同 id |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@changfenhuang/dsh-annotation",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"type": "module",
55
"description": "DSH Web selection-annotation plugin: select assistant text, annotate (optional), and press Enter to send the annotation block with your message — the model replies to each annotation by number, with hoverable chips in the reply.",
66
"main": "lib/index.js",

site/assets/index-Ddlr1q1c.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)