@anxi78/dsh-yuanbao 0.2.0 → 0.2.1
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 +14 -21
- package/README_EN.md +13 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
基于 [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) (dsh) 的元宝 IM 通道插件,将元宝开放平台 WebSocket 消息接入 dsh agent runtime。
|
|
6
6
|
|
|
7
|
+
npm: [`@anxi78/dsh-yuanbao`](https://www.npmjs.com/package/@anxi78/dsh-yuanbao)
|
|
8
|
+
|
|
7
9
|
> **⚠️ 本仓库是定制分支**
|
|
8
10
|
>
|
|
9
11
|
> 上游:[YuanbaoTeam/dsh-yuanbao](https://github.com/YuanbaoTeam/dsh-yuanbao)
|
|
@@ -197,14 +199,14 @@ git merge upstream/main
|
|
|
197
199
|
|
|
198
200
|
## 安装
|
|
199
201
|
|
|
200
|
-
### 方式一:从 npm registry
|
|
202
|
+
### 方式一:从 npm registry 安装(推荐)
|
|
201
203
|
|
|
202
204
|
```bash
|
|
203
|
-
#
|
|
204
|
-
dsh plugin --profile
|
|
205
|
+
# 安装到 web profile
|
|
206
|
+
dsh plugin --profile web add @anxi78/dsh-yuanbao
|
|
205
207
|
|
|
206
208
|
# 启动
|
|
207
|
-
dsh --profile
|
|
209
|
+
dsh --profile web
|
|
208
210
|
```
|
|
209
211
|
|
|
210
212
|
### 方式二:本地路径安装
|
|
@@ -215,19 +217,11 @@ cd /path/to/dsh-yuanbao
|
|
|
215
217
|
pnpm install
|
|
216
218
|
pnpm build
|
|
217
219
|
|
|
218
|
-
# 安装到
|
|
219
|
-
|
|
220
|
-
pnpm dsh plugin --profile yuanbao add /path/to/dsh-yuanbao
|
|
220
|
+
# 安装到 web profile
|
|
221
|
+
dsh plugin --profile web add /path/to/dsh-yuanbao
|
|
221
222
|
|
|
222
223
|
# 启动
|
|
223
|
-
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
如果需要和 Web UI 一起使用,也可以安装到 `web` profile:
|
|
227
|
-
|
|
228
|
-
```bash
|
|
229
|
-
pnpm dsh plugin --profile web add /path/to/dsh-yuanbao
|
|
230
|
-
pnpm dsh --profile web
|
|
224
|
+
dsh --profile web
|
|
231
225
|
```
|
|
232
226
|
|
|
233
227
|
## 环境变量
|
|
@@ -372,7 +366,7 @@ agent-default-model:
|
|
|
372
366
|
```yaml
|
|
373
367
|
- insert:
|
|
374
368
|
- id: dsh-yuanbao
|
|
375
|
-
name: 'dsh-yuanbao'
|
|
369
|
+
name: '@anxi78/dsh-yuanbao'
|
|
376
370
|
config:
|
|
377
371
|
provider: openai
|
|
378
372
|
model: gpt-4o-mini
|
|
@@ -413,7 +407,7 @@ agent-default-model:
|
|
|
413
407
|
```yaml
|
|
414
408
|
- insert:
|
|
415
409
|
- id: dsh-yuanbao
|
|
416
|
-
name: 'dsh-yuanbao'
|
|
410
|
+
name: '@anxi78/dsh-yuanbao'
|
|
417
411
|
config:
|
|
418
412
|
appKey: !!js process.env.YUANBAO_APP_KEY ?? ''
|
|
419
413
|
appSecret: !!js process.env.YUANBAO_APP_SECRET ?? ''
|
|
@@ -519,10 +513,9 @@ pnpm build
|
|
|
519
513
|
# watch
|
|
520
514
|
pnpm dev
|
|
521
515
|
|
|
522
|
-
# 本地安装到
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
pnpm dsh --profile yuanbao
|
|
516
|
+
# 本地安装到 web profile
|
|
517
|
+
dsh plugin --profile web add /path/to/dsh-yuanbao
|
|
518
|
+
dsh --profile web
|
|
526
519
|
```
|
|
527
520
|
|
|
528
521
|
## License
|
package/README_EN.md
CHANGED
|
@@ -21,14 +21,14 @@ Yuanbao User → Yuanbao WebSocket Gateway → dsh-yuanbao → ctx.agents → ds
|
|
|
21
21
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
|
-
### Option 1: Install from npm registry
|
|
24
|
+
### Option 1: Install from npm registry (recommended)
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
# Install into
|
|
28
|
-
dsh plugin --profile
|
|
27
|
+
# Install into the web profile
|
|
28
|
+
dsh plugin --profile web add @anxi78/dsh-yuanbao
|
|
29
29
|
|
|
30
30
|
# Start
|
|
31
|
-
dsh --profile
|
|
31
|
+
dsh --profile web
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Option 2: Install from local path
|
|
@@ -39,15 +39,14 @@ cd /path/to/dsh-yuanbao
|
|
|
39
39
|
pnpm install
|
|
40
40
|
pnpm build
|
|
41
41
|
|
|
42
|
-
# Install into
|
|
43
|
-
|
|
44
|
-
pnpm dsh plugin --profile yuanbao add /path/to/dsh-yuanbao
|
|
42
|
+
# Install into the web profile
|
|
43
|
+
dsh plugin --profile web add /path/to/dsh-yuanbao
|
|
45
44
|
|
|
46
45
|
# Start
|
|
47
|
-
|
|
46
|
+
dsh --profile web
|
|
48
47
|
```
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
The `web` profile is the one used together with the Web UI:
|
|
51
50
|
|
|
52
51
|
```bash
|
|
53
52
|
pnpm dsh plugin --profile web add /path/to/dsh-yuanbao
|
|
@@ -196,7 +195,7 @@ You can also explicitly set the model in `cordis.patch.yml` for `dsh-yuanbao`, o
|
|
|
196
195
|
```yaml
|
|
197
196
|
- insert:
|
|
198
197
|
- id: dsh-yuanbao
|
|
199
|
-
name: 'dsh-yuanbao'
|
|
198
|
+
name: '@anxi78/dsh-yuanbao'
|
|
200
199
|
config:
|
|
201
200
|
provider: openai
|
|
202
201
|
model: gpt-4o-mini
|
|
@@ -235,7 +234,7 @@ Default bundle patch:
|
|
|
235
234
|
```yaml
|
|
236
235
|
- insert:
|
|
237
236
|
- id: dsh-yuanbao
|
|
238
|
-
name: 'dsh-yuanbao'
|
|
237
|
+
name: '@anxi78/dsh-yuanbao'
|
|
239
238
|
config:
|
|
240
239
|
appKey: !!js process.env.YUANBAO_APP_KEY ?? ''
|
|
241
240
|
appSecret: !!js process.env.YUANBAO_APP_SECRET ?? ''
|
|
@@ -326,10 +325,9 @@ pnpm build
|
|
|
326
325
|
# Watch
|
|
327
326
|
pnpm dev
|
|
328
327
|
|
|
329
|
-
# Install locally into
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
pnpm dsh --profile yuanbao
|
|
328
|
+
# Install locally into the web profile
|
|
329
|
+
dsh plugin --profile web add /path/to/dsh-yuanbao
|
|
330
|
+
dsh --profile web
|
|
333
331
|
```
|
|
334
332
|
|
|
335
333
|
## License
|
package/package.json
CHANGED