@minonl/dia 0.0.16 → 0.0.18
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 +5 -7
- package/dist/cli.js +402 -263
- package/docs/builtin-kit-design.md +65 -0
- package/docs/cli.md +2 -2
- package/docs/index.md +1 -0
- package/docs/status.md +2 -0
- package/kits/node/knowledge/pnpm.md +172 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,18 +72,16 @@ dia update --check # 查 npm 最新版;dia update 按安装方式升级(
|
|
|
72
72
|
git clone https://github.com/minonl/dia ~/repos/github/dia
|
|
73
73
|
cd ~/repos/github/dia
|
|
74
74
|
bun install && bun run build # 或 npm ci + npm run build(Node ≥ 24)
|
|
75
|
-
|
|
75
|
+
npm i -g . # 仍然走 npm 全局安装(与正式安装同一条路径)
|
|
76
76
|
dia version && dia doctor
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
- 依赖:Node ≥ 24 或 Bun ≥ 1.2(见 `package.json` 的 `engines`)。
|
|
80
80
|
- 安装只落盘:**不启停服务、不改宿主默认 agent**。
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
`bash install.sh --home DIR --bin BINDIR`——`--home` 单独用只改安装目录,链接仍写默认 bin,守卫照旧生效。
|
|
86
|
-
装完会打印 `effective: <实际生效的 dia> (<version>)`,顺带暴露 PATH 顺序问题。
|
|
81
|
+
- **升级只有一条路**:`npm i -g @minonl/dia@latest`(`dia update` 会走这条)。
|
|
82
|
+
- `bash install.sh` 仅用于**开发 / 离线**:它把包内容拷到 `~/.local/share/dia` 并改 `~/.local/bin/dia`;
|
|
83
|
+
当那条链接已属于包管理器安装时会被守卫拒绝(exit 3,零改动)。细节见 [install-guard-design.md](docs/install-guard-design.md)。
|
|
84
|
+
- 内置能力(`dia-msg`)无需手动安装:首次 `persona add/render` 或 `dia collab enable` 自动装配,`dia doctor` 的 `bootstrap` 项会显示是否跟随包版本。
|
|
87
85
|
- 装 persona(示例 dabo):`dia persona add dabo --from git+https://github.com/minonl/dabo-agent.git`
|
|
88
86
|
- 卸载:`dia persona remove dabo`(只删带 `.dia-managed` 的产物)。
|
|
89
87
|
|