dsh-bare-preset 0.1.0 → 0.1.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 +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
「裸模模式」agent 预设,做成一个**插件**(自己向 `agentPresets` 注册),顺手把宿主强加给 agent 的运行时开销一并剪掉。
|
|
4
4
|
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm: dsh-bare-preset@0.1.1
|
|
9
|
+
repo: https://github.com/DDDMUC/dsh-bare-preset
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
装法二选一:
|
|
13
|
+
|
|
14
|
+
1. **插件管理器**里搜 `dsh-bare-preset`,装上启用(这会往 profile 的 `dependencies` + `dsh.profile.bundles` 里登记)。
|
|
15
|
+
2. 手工改 `~/.dsh/profiles/<profile>/package.json`:`dependencies` 加
|
|
16
|
+
`"dsh-bare-preset": "0.1.1"`(或 `"github:DDDMUC/dsh-bare-preset"`),
|
|
17
|
+
`dsh.profile.bundles` 数组里加 `"dsh-bare-preset"`,然后重启。
|
|
18
|
+
|
|
19
|
+
重启后预设选择器里会出现 **「裸模模式」**(id `bare`),跟它开一个新会话即可。
|
|
20
|
+
|
|
5
21
|
## 为什么不用预设目录 + bundle patch
|
|
6
22
|
|
|
7
23
|
那些坑都踩过:bundle patch 里的行要注册进 registry,而 registry 用它**自己的** baseUrl 解析相对路径(`./persona-file.mjs` 直接 import 失败,预设从选择器里消失);`id` 必须是字符串;声明归属还要和「预设工作台」的运行时声明抢所有权。
|