dsh-composer-ux 0.1.3 → 0.1.4
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 +7 -0
- package/README.md +24 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## [0.1.4] — 2026-09-13
|
|
6
|
+
|
|
7
|
+
### 文档
|
|
8
|
+
- **安装一节精简为两条命令**(安装 / 更新),GitHub 源码安装、锁定 commit、本地目录开发等做法收进折叠块——README 页面不再一上来就是四条命令。
|
|
9
|
+
- 移除 README 里的本机绝对路径,改为占位符,别人可以直接照抄。
|
|
10
|
+
- 功能代码无改动(`lib/` 与 0.1.3 一致),26 项宿主行为测试全绿。
|
|
11
|
+
|
|
5
12
|
## [0.1.3] — 2026-09-13
|
|
6
13
|
|
|
7
14
|
### 变更
|
package/README.md
CHANGED
|
@@ -20,23 +20,33 @@ DeepSeek Harness Web 输入体验增强插件:
|
|
|
20
20
|
|
|
21
21
|
## 安装
|
|
22
22
|
|
|
23
|
-
本插件按官方「[打包与安装插件](https://deepseek-harness.github.io/deepseek-harness/develop/basic/publish)」规范打包为可安装**组合包**(bundle):`package.json` 声明 `dsh.bundle.patch → ./cordis.patch.yml`,该层以**包名**插入插件行 `dsh-composer-ux`,装进 profile 后由 pnpm/Node 从 `node_modules` 解析到 `lib/index.js`。
|
|
24
|
-
|
|
25
23
|
```sh
|
|
26
|
-
#
|
|
27
|
-
dsh plugin --profile
|
|
24
|
+
# 安装
|
|
25
|
+
dsh plugin --profile web add dsh-composer-ux
|
|
26
|
+
|
|
27
|
+
# 更新到最新版
|
|
28
|
+
dsh plugin --profile web update dsh-composer-ux
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
npm 包:[dsh-composer-ux](https://www.npmjs.com/package/dsh-composer-ux) —— 预构建产物,安装期不在本地执行任何代码,也不需要 pnpm 的构建授权。(`--profile web` 换成你自己的 profile 名即可。)
|
|
28
32
|
|
|
33
|
+
<details>
|
|
34
|
+
<summary>其它安装方式(GitHub 源码 / 锁定 commit / 本地目录)</summary>
|
|
35
|
+
|
|
36
|
+
```sh
|
|
29
37
|
# 从 GitHub 安装(等价;lib/ 构建产物已提交,没有 prepare 脚本,因此不需要 pnpm 的构建授权)
|
|
30
|
-
dsh plugin --profile
|
|
38
|
+
dsh plugin --profile web add github:fangwen9527/dsh-composer-ux
|
|
31
39
|
|
|
32
40
|
# 锁定 commit 安装(更安全:后续推送无法悄悄改变实际运行的内容)
|
|
33
|
-
dsh plugin --profile
|
|
41
|
+
dsh plugin --profile web add github:fangwen9527/dsh-composer-ux#<commit-sha>
|
|
34
42
|
|
|
35
|
-
#
|
|
36
|
-
dsh plugin --profile
|
|
43
|
+
# 本地目录 / 源码开发(等价于 link;改完 src/ 先跑 node build.mjs)
|
|
44
|
+
dsh plugin --profile web add <你克隆或解压出来的目录>
|
|
37
45
|
```
|
|
38
46
|
|
|
39
|
-
|
|
47
|
+
本插件按官方「[打包与安装插件](https://deepseek-harness.github.io/deepseek-harness/develop/basic/publish)」规范打包为可安装**组合包**(bundle):`package.json` 声明 `dsh.bundle.patch → ./cordis.patch.yml`,该层以**包名**插入插件行 `dsh-composer-ux`,装进 profile 后由 pnpm/Node 从 `node_modules` 解析到 `lib/index.js`。
|
|
48
|
+
|
|
49
|
+
</details>
|
|
40
50
|
|
|
41
51
|
装完按 DSH 提示重启一次(Host 半的插件代码只在进程启动时 import),客户端半刷新页面即生效。
|
|
42
52
|
|
|
@@ -77,7 +87,7 @@ OpenCode 的接口要求客户端在每次请求里带上一个稳定的会话 I
|
|
|
77
87
|
|
|
78
88
|
## 结构
|
|
79
89
|
|
|
80
|
-
|
|
90
|
+
仓库根目录(克隆或解压出来即是):
|
|
81
91
|
|
|
82
92
|
```
|
|
83
93
|
dsh-composer-ux/
|
|
@@ -117,16 +127,16 @@ $env:DSH_REPO_PATH='D:/DeepSeek Harness'; node build.mjs
|
|
|
117
127
|
## 加载(从 DSH 源码检出)
|
|
118
128
|
|
|
119
129
|
```sh
|
|
120
|
-
cd
|
|
121
|
-
pnpm dsh web --patch
|
|
130
|
+
cd <你的 DeepSeek Harness 检出目录>
|
|
131
|
+
pnpm dsh web --patch <本仓库的绝对路径>/cordis.dev.patch.yml
|
|
122
132
|
```
|
|
123
133
|
|
|
124
|
-
|
|
134
|
+
把尖括号替换成你的真实路径;插件行的 `name` 必须是 `file:///` 形式的绝对 URL(Windows 下 `D:/...` 裸路径无法被 ESM loader 导入)。该文件只在本机存在(已 gitignore),内容如下:
|
|
125
135
|
|
|
126
136
|
```yaml
|
|
127
137
|
- insert:
|
|
128
138
|
- id: composer-ux
|
|
129
|
-
name: 'file
|
|
139
|
+
name: 'file:///<本仓库的绝对路径>/lib/index.js'
|
|
130
140
|
```
|
|
131
141
|
|
|
132
142
|
## 开发时热更新
|