dsh-why-reject-me 0.3.2 → 0.3.3
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 +34 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
> 本项目的代码、测试与文档完全由 DeepSeek 搭建和维护。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
[](https://www.npmjs.com/package/dsh-why-reject-me)
|
|
10
|
+
|
|
11
|
+
状态:`v0.3.3`,已在 DSH Desktop `0.2.1-rc.5` 上完成真实审批验证,并验证了 npm 安装和让 Agent 从 GitHub 直接安装。
|
|
10
12
|
|
|
11
13
|
## 目录
|
|
12
14
|
|
|
@@ -55,26 +57,26 @@ DSH 原生审批只有「允许一次 / 拒绝」两个动作。模型只知道
|
|
|
55
57
|
|
|
56
58
|
## 安装
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
插件以包名 `dsh-why-reject-me` 发布在 npm;也可以从 GitHub 或本地目录安装。
|
|
59
61
|
|
|
60
62
|
### 前置条件
|
|
61
63
|
|
|
62
64
|
- **DSH Desktop**。插件在 DSH Desktop 内嵌的审批界面中运行,本项目也只在 Desktop 中验证;`dsh-TUI` 不使用这个面板。
|
|
63
65
|
- 在 DSH Desktop `0.2.1-rc.5` 上验证通过;其他版本见[兼容性](#兼容性)。
|
|
64
|
-
- 从 GitHub 安装需要本机有 **Git**,并且能访问 GitHub。
|
|
66
|
+
- 从 npm 安装不需要 Git;从 GitHub 安装需要本机有 **Git**,并且能访问 GitHub。
|
|
65
67
|
- 安装会修改当前 profile,**影响该 profile 下的所有会话**。
|
|
66
|
-
- 插件以 Host 插件身份在 DSH
|
|
68
|
+
- 插件以 Host 插件身份在 DSH 进程内运行;请只从本仓库、npm 上的 `dsh-why-reject-me` 或你信任的副本安装。
|
|
67
69
|
|
|
68
|
-
### 方式一:从
|
|
70
|
+
### 方式一:从 npm 安装(推荐)
|
|
69
71
|
|
|
70
72
|
**在 DSH Desktop 中:**
|
|
71
73
|
|
|
72
74
|
1. 打开 DSH Desktop,进入左侧 **Plugins(插件)** 页面。
|
|
73
75
|
2. 点 **Add plugin(添加插件)** → **Install a third-party plugin(安装第三方插件)**。
|
|
74
|
-
3.
|
|
76
|
+
3. 输入包名:
|
|
75
77
|
|
|
76
78
|
```text
|
|
77
|
-
|
|
79
|
+
dsh-why-reject-me
|
|
78
80
|
```
|
|
79
81
|
|
|
80
82
|
4. 点 **Install(安装)**。
|
|
@@ -87,14 +89,32 @@ DSH 原生审批只有「允许一次 / 拒绝」两个动作。模型只知道
|
|
|
87
89
|
|
|
88
90
|
```text
|
|
89
91
|
请在我的 DSH profile 中安装这个插件:
|
|
90
|
-
plugin_manager action=install_bundle target=
|
|
92
|
+
plugin_manager action=install_bundle target=dsh-why-reject-me
|
|
91
93
|
|
|
92
94
|
安装完成后确认 bundle 已启用,并告诉我是否需要重启 DSH Desktop。
|
|
93
95
|
```
|
|
94
96
|
|
|
95
97
|
如果当前会话没有 `plugin_manager`,改用 DSH Desktop 的 Plugins 页面。
|
|
96
98
|
|
|
97
|
-
###
|
|
99
|
+
### 方式二:从 GitHub 安装
|
|
100
|
+
|
|
101
|
+
适合想跟源码、或 npm 上暂时没有所需版本时。需要本机有 Git,并能访问 GitHub。
|
|
102
|
+
|
|
103
|
+
在 **Plugins → Add plugin** 中填写:
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
git+https://github.com/Jorgen233/dsh-why-reject-me.git
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Agent 等价写法:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
plugin_manager action=install_bundle target=git+https://github.com/Jorgen233/dsh-why-reject-me.git
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
安装、启用和重启步骤与方式一相同。
|
|
116
|
+
|
|
117
|
+
### 方式三:本地克隆 / 开发
|
|
98
118
|
|
|
99
119
|
适合需要改代码或调试插件,并且已经能取得仓库副本的情况。
|
|
100
120
|
|
|
@@ -114,14 +134,14 @@ G:\Dev\dsh-why-reject-me
|
|
|
114
134
|
|
|
115
135
|
### 更新
|
|
116
136
|
|
|
117
|
-
|
|
137
|
+
npm 安装:
|
|
118
138
|
|
|
119
139
|
```text
|
|
120
140
|
plugin_manager action=remove_bundle target=dsh-why-reject-me
|
|
121
|
-
plugin_manager action=install_bundle target=
|
|
141
|
+
plugin_manager action=install_bundle target=dsh-why-reject-me
|
|
122
142
|
```
|
|
123
143
|
|
|
124
|
-
在 DSH Desktop 中等价于:在 **Plugins** 里卸载后重新 **Add plugin
|
|
144
|
+
在 DSH Desktop 中等价于:在 **Plugins** 里卸载后重新 **Add plugin**。GitHub / 本地路径安装同理,把 target 换回对应的地址或路径即可。更新 Host 半后需要重启 DSH Desktop。
|
|
125
145
|
|
|
126
146
|
### 确认安装
|
|
127
147
|
|
|
@@ -209,7 +229,8 @@ plugin_manager action=remove_bundle target=dsh-why-reject-me
|
|
|
209
229
|
| 点拒绝后一直停在「正在提交原因…」 | Host 路由没有响应;重启 Desktop,并检查是否有代理或安全软件拦截同源 POST |
|
|
210
230
|
| 子代理会话没有输入框 | 预期行为,见[已知限制](#已知限制) |
|
|
211
231
|
| 刷新 Desktop 页面后草稿丢了 | 预期行为,草稿只存在页面内存中 |
|
|
212
|
-
|
|
|
232
|
+
| npm 安装提示找不到包 | 确认包已发布;镜像可能有同步延迟,换官方 registry 或稍后重试 |
|
|
233
|
+
| GitHub 安装失败或超时 | 确认本机有 Git、能访问 GitHub;改用 `npm` 安装,或本地克隆后填绝对路径 |
|
|
213
234
|
| 插件列表显示的不是英文名 | 升级到 `0.3.2` 或更新版本,并重启 Desktop 清除旧元数据缓存 |
|
|
214
235
|
| 和其他审批插件冲突 | 只保留一个接管 `conversation.composer` 的审批插件 |
|
|
215
236
|
|
package/package.json
CHANGED