@chenacc/dsh-agentbridge 0.4.0 → 0.4.2

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 CHANGED
@@ -1,10 +1,26 @@
1
1
  # @chenacc/dsh-agentbridge
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@chenacc/dsh-agentbridge?color=2f6f7e)](https://www.npmjs.com/package/@chenacc/dsh-agentbridge)
4
+ [![license](https://img.shields.io/badge/license-MIT-blue)](./LICENSE)
5
+ [![stars](https://img.shields.io/github/stars/chenacc1/agentbridge?style=social)](https://github.com/chenacc1/agentbridge/stargazers)
6
+
3
7
  AgentBridge 的 DSH Desktop 集成插件。在某个项目会话里执行 `/phone`,把**屏幕上那一条** live Agent 会话接到手机控制台:手机扫码后可以发消息、审批、切换模型、停止任务,桌面与手机看到同一份事件流。
4
8
 
9
+ ![手机端控制台:扫码后接管的是屏幕上那一条会话](./assets/hero-phone.jpg)
10
+
11
+ 一条命令装进当前 profile:
12
+
13
+ ```powershell
14
+ cd "$env:USERPROFILE\.dsh\profiles\desktop"; pnpm add @chenacc/dsh-agentbridge@latest
15
+ ```
16
+
17
+ 重启 DSH Desktop,在项目会话里输入 `/phone`——二维码默认就是公网地址,手机用流量也能打开。
18
+
5
19
  - 精确绑定当前会话:会话 ID、项目目录、provider / 模型都取自真实会话,不是新建一个"类似的"会话。
6
20
  - 电脑始终是唯一执行端:凭据和文件访问留在本机,手机只下发命令。
7
21
 
22
+ > 觉得有用就给主仓库点个 star:[chenacc1/agentbridge](https://github.com/chenacc1/agentbridge) —— 不影响任何功能。
23
+
8
24
  ## 前置条件(重要)
9
25
 
10
26
  这个插件**只是一个桥接层**,真正的服务端是本机运行的 AgentBridge 桥(默认 `http://127.0.0.1:8787`)。
Binary file
Binary file
package/lib/index.js CHANGED
@@ -1218,6 +1218,10 @@ function apply(ctx) {
1218
1218
  `会话:${agent.session.id}`,
1219
1219
  `模型:${model}`,
1220
1220
  pairingAddressNote(registration.pairing.url),
1221
+ // A one-line, no-strings ask. Nothing fires on the user's behalf —
1222
+ // market ranking reads stars, so this is where a willing user can
1223
+ // help without leaving the conversation.
1224
+ "觉得有用就给项目点个星:https://github.com/chenacc1/agentbridge(不影响任何功能)",
1221
1225
  ].join("\n\n"),
1222
1226
  };
1223
1227
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chenacc/dsh-agentbridge",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "AgentBridge for DSH Desktop: run /phone in a conversation to pair a phone console with that exact live Agent.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,7 +12,9 @@
12
12
  "lib/index.js",
13
13
  "cordis.patch.yml",
14
14
  "README.md",
15
- "LICENSE"
15
+ "LICENSE",
16
+ "assets/icon.png",
17
+ "assets/hero-phone.jpg"
16
18
  ],
17
19
  "keywords": [
18
20
  "dsh-plugin",
@@ -44,7 +46,7 @@
44
46
  }
45
47
  },
46
48
  "dependencies": {
47
- "@chenacc/agentbridge": "^0.2.0"
49
+ "@chenacc/agentbridge": "^0.2.1"
48
50
  },
49
51
  "peerDependencies": {
50
52
  "@deepseek-ai/dsh-commands": "^0.1.0-rc.7",