dsh-devdock 2.5.0 → 3.0.0

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/PUBLISHING.md DELETED
@@ -1,175 +0,0 @@
1
- # 发布指南
2
-
3
- 本文记录本插件**如何发一个版本**,以及 npm 与插件市场当前的实际情况。
4
-
5
- ---
6
-
7
- ## 0. 当前发布状态
8
-
9
- | 渠道 | 状态 | 说明 |
10
- |---|---|---|
11
- | GitHub 仓库 | ✅ 已发布 | <https://github.com/QingJing5906/dsh-DevDock>(公开) |
12
- | GitHub Release `v1.0.0` | ✅ 已发布 | 含 `dsh-devdock-1.0.0.tgz` 附件 |
13
- | npm | ⬜ 待发布 | 需要 npm 账号;包名已定为 `dsh-devdock` |
14
- | DSH 插件市场 | ⬜ 待接入 | 本机 DSH 未配置任何市场索引;索引由用户自行添加 |
15
-
16
- ### 为什么包名不叫 `dsh-push`
17
-
18
- npm 上的 `dsh-push` 已被另一个用途无关的插件占用:
19
-
20
- - 维护者 `yp_wong`
21
- - 版本 `0.1.1`(2026-08-13 发布)
22
- - 用途:「Push DeepSeek Harness agent lifecycle notifications to configurable channels」
23
-
24
- 因此**发布包名**取 `dsh-devdock`,**GitHub 仓库名**仍是 `dsh-push`。
25
- 插件内部标识(工具名 `github_link`、路由 `/api/push/*`、cordis 挂载行、界面入口)不受影响,已有安装继续可用。
26
-
27
- ---
28
-
29
- ## 1. 发布到 npm
30
-
31
- ### 前置:一次性的账号准备
32
-
33
- ```powershell
34
- # 1. 注册(浏览器): https://www.npmjs.com/signup
35
- # 2. 登录(会写 ~/.npmrc)
36
- npm login
37
- # 3. 确认身份
38
- npm whoami
39
- ```
40
-
41
- > **2FA 是硬性要求**:npm 明确拒绝无 2FA 的发布
42
- > (`Two-factor authentication or granular access token with bypass 2fa enabled is required to publish packages`)。
43
- > 两条可行路径:
44
- >
45
- > 1. **交互式发布**(推荐):`npm login` 后执行 `npm publish`,终端会提示输入认证器里的 6 位码。
46
- > 2. **令牌发布**:在 npm → Access Tokens 创建 **Granular Access Token**,勾选
47
- > **Bypass two-factor authentication**,权限选 *Read and write*,只授权 `dsh-devdock`。
48
- > **没有勾选该选项的令牌只能读、不能发布**(已实测被 403 拒绝)。
49
- >
50
- > 令牌一律当作密码对待:不要贴进聊天、不要写进仓库;用完即删、怀疑泄漏立刻吊销。
51
-
52
- ### 每次发版
53
-
54
- ```powershell
55
- cd dsh-push
56
-
57
- # 1. 确认工作区干净、测试全过
58
- git status --short # 应为空
59
- npm test # 14 组测试 + 可达性审计
60
-
61
- # 2. 升版本号(遵循语义化版本)
62
- npm version patch # 修 bug:1.0.1 -> 1.0.2
63
- # npm version minor # 加功能:1.0.2 -> 1.1.0
64
- # npm version major # 破坏性变更:1.0.2 -> 2.0.0
65
-
66
- # 3. 先看会打包进什么(不发布)
67
- npm pack --dry-run
68
-
69
- # 4. 发布(prepublishOnly 会自动再跑一遍测试;会提示输入 2FA 码)
70
- npm publish
71
-
72
- # 5. 把 tag 推上去
73
- git push --follow-tags
74
- ```
75
-
76
- 发布后验证:
77
-
78
- ```powershell
79
- npm view dsh-devdock version
80
- npm view dsh-devdock dist.tarball
81
- ```
82
-
83
- > `prepublishOnly` 已配置为 `npm test`,所以测试不过就发不出去。
84
-
85
- ---
86
-
87
- ## 2. 发 GitHub Release
88
-
89
- 仓库已配置好,用插件本身或命令都可以。
90
-
91
- **用插件界面**:左侧栏 **Push** → 打开仓库管理 → **发布** → 新建发布
92
- (填标签名、标题、说明,可上传附件)。
93
-
94
- **用命令**:
95
-
96
- ```powershell
97
- cd dsh-push
98
- git tag -a v1.0.1 -m "dsh-devdock 1.0.1"
99
- git push origin v1.0.1
100
- npm pack # 生成 dsh-devdock-1.0.1.tgz
101
- # 然后在 GitHub 上创建 release 并上传该 tgz
102
- ```
103
-
104
- Release 说明建议包含:亮点、安装方式、权限要求、附件说明、`Full Changelog` 链接。
105
-
106
- ---
107
-
108
- ## 3. 接入 DSH 插件市场
109
-
110
- ### 现状
111
-
112
- 本机 `plugin_market list_indexes` 返回空数组,即**没有配置任何市场索引**。
113
- 市场索引的增删只有用户能做,插件无法自行注册。
114
-
115
- ### 市场通常怎么消费一个插件
116
-
117
- DSH 的插件市场索引指向 npm 包。因此顺序是:
118
-
119
- 1. 先把包发布到 npm(见第 1 节)
120
- 2. 再让市场索引收录 `dsh-devdock`
121
-
122
- ### 如果市场要求提交信息
123
-
124
- 准备这些字段(都已在 `package.json` 里):
125
-
126
- | 字段 | 值 |
127
- |---|---|
128
- | `name` | `dsh-devdock` |
129
- | `description` | DeepSeek Harness 的 GitHub 与 Git 管理插件:多账号登录切换、仓库浏览与管理、工作区版本树、一键推送、推送前 Agent 审查。 |
130
- | `keywords` | `dsh`, `dsh-plugin`, `deepseek-harness`, `github`, `git`, `push`, `version-control`, `code-review`, `agent`, `release` |
131
- | `repository` | https://github.com/QingJing5906/dsh-DevDock |
132
- | `license` | MIT |
133
-
134
- 仓库的 topics 已设置为:
135
- `dsh` · `dsh-plugin` · `deepseek-harness` · `github` · `git` · `push` · `code-review` · `agent` · `release` · `version-control`
136
-
137
- ### 本机添加一个市场索引
138
-
139
- 在 DSH 的插件市场设置里添加索引地址即可(只有用户能改)。添加后:
140
-
141
- ```powershell
142
- # 列出已配置的索引
143
- # (在 DSH 界面操作,或由宿主提供市场设置项)
144
- ```
145
-
146
- ---
147
-
148
- ## 4. 安装方式(面向使用者)
149
-
150
- ```powershell
151
- # 从 npm(发布之后)
152
- dsh plugin --profile desktop add dsh-devdock
153
-
154
- # 从本地目录
155
- dsh plugin --profile desktop add "<插件目录>\dsh-push"
156
-
157
- # 从 Release 附件
158
- # 下载 dsh-devdock-1.0.0.tgz 后
159
- npm install -g ./dsh-devdock-1.0.0.tgz
160
- ```
161
-
162
- 安装后:设置面板新增 **Push** 一页,左侧栏新增 **Push** 图标,右侧栏 `+` 菜单新增 **Push** 标签页,智能体获得 `github_link` 工具。
163
-
164
- ---
165
-
166
- ## 5. 发版检查清单
167
-
168
- - [ ] `git status --short` 为空
169
- - [ ] `npm test` 全绿(11 组测试 + 可达性审计)
170
- - [ ] `npm pack --dry-run` 里没有 `tests/`、没有 `.tgz`、没有 `state.json`
171
- - [ ] `CHANGELOG.md` 加了对应版本小节
172
- - [ ] `package.json` 的 `version` 与 `CHANGELOG` 一致
173
- - [ ] 推送前跑一次 **Agent 审查**
174
- - [ ] Release 说明里的安装命令与实际包名一致
175
- - [ ] `npm view dsh-devdock version` 返回新版本
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file