dsh-composer-ux 0.1.2 → 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 +14 -0
- package/README.md +26 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
|
|
12
|
+
## [0.1.3] — 2026-09-13
|
|
13
|
+
|
|
14
|
+
### 变更
|
|
15
|
+
- **发布到 npm**:`dsh-composer-ux` 已上架 <https://www.npmjs.com/package/dsh-composer-ux>,安装命令简化为 `dsh plugin --profile <profile> add dsh-composer-ux`(预构建产物,安装期不执行任何代码);README 的安装一节改为 npm 优先,GitHub 安装作为等价备选保留。
|
|
16
|
+
- 包内 `repository` 字段指回 https://github.com/fangwen9527/dsh-composer-ux ,便于插件市场把 npm 包与仓库关联(下载量展示据此生效)。
|
|
17
|
+
- 功能代码无改动(`lib/` 与 0.1.2 一致),26 项宿主行为测试保持全绿。
|
|
18
|
+
|
|
5
19
|
## [0.1.2] — 2026-09-12
|
|
6
20
|
|
|
7
21
|
### 修复
|
package/README.md
CHANGED
|
@@ -20,19 +20,34 @@ DeepSeek Harness Web 输入体验增强插件:
|
|
|
20
20
|
|
|
21
21
|
## 安装
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
```sh
|
|
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 名即可。)
|
|
32
|
+
|
|
33
|
+
<details>
|
|
34
|
+
<summary>其它安装方式(GitHub 源码 / 锁定 commit / 本地目录)</summary>
|
|
24
35
|
|
|
25
36
|
```sh
|
|
26
|
-
# GitHub
|
|
27
|
-
dsh plugin --profile
|
|
37
|
+
# 从 GitHub 安装(等价;lib/ 构建产物已提交,没有 prepare 脚本,因此不需要 pnpm 的构建授权)
|
|
38
|
+
dsh plugin --profile web add github:fangwen9527/dsh-composer-ux
|
|
28
39
|
|
|
29
40
|
# 锁定 commit 安装(更安全:后续推送无法悄悄改变实际运行的内容)
|
|
30
|
-
dsh plugin --profile
|
|
41
|
+
dsh plugin --profile web add github:fangwen9527/dsh-composer-ux#<commit-sha>
|
|
31
42
|
|
|
32
|
-
#
|
|
33
|
-
dsh plugin --profile
|
|
43
|
+
# 本地目录 / 源码开发(等价于 link;改完 src/ 先跑 node build.mjs)
|
|
44
|
+
dsh plugin --profile web add <你克隆或解压出来的目录>
|
|
34
45
|
```
|
|
35
46
|
|
|
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>
|
|
50
|
+
|
|
36
51
|
装完按 DSH 提示重启一次(Host 半的插件代码只在进程启动时 import),客户端半刷新页面即生效。
|
|
37
52
|
|
|
38
53
|
**发现渠道**:仓库已打官方发现用的 [`dsh-plugin`](https://github.com/topics/dsh-plugin) topic(另带 `deepseek-harness` / `cordis` / `dsh` / `opencode` 等关键词);社区目录(mydsh.dev、dshbase.com、dsplugin.app)按该 topic 自动同步收录。仓库里的 `cordis.patch.yml` 就是随包发布的组合层文件,`dsh.bundle.patch` 指向它即可。
|
|
@@ -72,7 +87,7 @@ OpenCode 的接口要求客户端在每次请求里带上一个稳定的会话 I
|
|
|
72
87
|
|
|
73
88
|
## 结构
|
|
74
89
|
|
|
75
|
-
|
|
90
|
+
仓库根目录(克隆或解压出来即是):
|
|
76
91
|
|
|
77
92
|
```
|
|
78
93
|
dsh-composer-ux/
|
|
@@ -112,16 +127,16 @@ $env:DSH_REPO_PATH='D:/DeepSeek Harness'; node build.mjs
|
|
|
112
127
|
## 加载(从 DSH 源码检出)
|
|
113
128
|
|
|
114
129
|
```sh
|
|
115
|
-
cd
|
|
116
|
-
pnpm dsh web --patch
|
|
130
|
+
cd <你的 DeepSeek Harness 检出目录>
|
|
131
|
+
pnpm dsh web --patch <本仓库的绝对路径>/cordis.dev.patch.yml
|
|
117
132
|
```
|
|
118
133
|
|
|
119
|
-
|
|
134
|
+
把尖括号替换成你的真实路径;插件行的 `name` 必须是 `file:///` 形式的绝对 URL(Windows 下 `D:/...` 裸路径无法被 ESM loader 导入)。该文件只在本机存在(已 gitignore),内容如下:
|
|
120
135
|
|
|
121
136
|
```yaml
|
|
122
137
|
- insert:
|
|
123
138
|
- id: composer-ux
|
|
124
|
-
name: 'file
|
|
139
|
+
name: 'file:///<本仓库的绝对路径>/lib/index.js'
|
|
125
140
|
```
|
|
126
141
|
|
|
127
142
|
## 开发时热更新
|