@chenacc/dsh-agentbridge 0.1.0 → 0.2.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/README.md +16 -6
- package/lib/index.js +970 -829
- package/package.json +61 -58
package/README.md
CHANGED
|
@@ -7,16 +7,26 @@ AgentBridge 的 DSH Desktop 集成插件。在某个项目会话里执行 `/phon
|
|
|
7
7
|
|
|
8
8
|
## 前置条件(重要)
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
这个插件**只是一个桥接层**,真正的服务端是本机运行的 AgentBridge 桥(默认 `http://127.0.0.1:8787`)。
|
|
11
|
+
|
|
12
|
+
从 0.2.0 起,桥作为依赖随插件一起安装,**DSH Desktop 启动时插件会自己在后台把桥拉起来**,所以正常情况下你什么都不用敲,重启桌面后直接 `/phone` 就行。
|
|
13
|
+
|
|
14
|
+
只有自动启动失败时(沙箱限制、端口被占、装在非常规位置)才需要手动起桥:
|
|
11
15
|
|
|
12
16
|
```powershell
|
|
13
|
-
|
|
14
|
-
cd agentbridge
|
|
15
|
-
npm install
|
|
16
|
-
npm start # 或双击仓库里的「启动 AgentBridge.cmd」
|
|
17
|
+
npx @chenacc/agentbridge
|
|
17
18
|
```
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
想长期用、或要改配置(项目白名单、远程通道、通知推送):
|
|
21
|
+
|
|
22
|
+
```powershell
|
|
23
|
+
npm install -g @chenacc/agentbridge
|
|
24
|
+
agentbridge phone --agent claude
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
也可以从仓库跑:`git clone` → `npm install` → `npm start`。
|
|
28
|
+
|
|
29
|
+
桥起不来时 `/phone` 会把上面这些命令直接印在会话里,不会让你对着一个报错发呆。
|
|
20
30
|
|
|
21
31
|
要求:DSH Desktop 已安装(存在 `%USERPROFILE%\.dsh\profiles\desktop\package.json`),Node.js 22+。
|
|
22
32
|
|