@minonl/dia 0.0.15 → 0.0.17

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
@@ -78,6 +78,14 @@ dia version && dia doctor
78
78
 
79
79
  - 依赖:Node ≥ 24 或 Bun ≥ 1.2(见 `package.json` 的 `engines`)。
80
80
  - 安装只落盘:**不启停服务、不改宿主默认 agent**。
81
+ - **安装守卫**:`~/.local/bin/dia` 当前属于包管理器全局安装(npm/bun 的 `node_modules/@minonl/dia` 软链,
82
+ pnpm/yarn 的 shim 脚本,volta 的 bin —— 即会被脚本安装抢走)时,`install.sh` **拒绝并 exit 3,不改动任何文件**;
83
+ 确实想换脚本安装用 `DIA_ALLOW_SCRIPT_INSTALL=1 bash install.sh`,想留在 npm 安装用
84
+ `ln -sfn "$(npm prefix -g)/bin/dia" ~/.local/bin/dia`。只装到别处(不碰生效链接)用
85
+ `bash install.sh --home DIR --bin BINDIR`——`--home` 单独用只改安装目录,链接仍写默认 bin,守卫照旧生效。
86
+ 装完会打印 `effective: <实际生效的 dia> (<version>)`,顺带暴露 PATH 顺序问题。
87
+ - `install.sh` = **开发 / 离线通道**(从仓库构建时用);日常安装/升级一律 `npm i -g @minonl/dia@latest`。
88
+ - 内置能力(`dia-msg`)无需手动安装:首次 `persona add/render` 或 `dia collab enable` 自动装配,`dia doctor` 的 `bootstrap` 项会显示是否跟随包版本。
81
89
  - 装 persona(示例 dabo):`dia persona add dabo --from git+https://github.com/minonl/dabo-agent.git`
82
90
  - 卸载:`dia persona remove dabo`(只删带 `.dia-managed` 的产物)。
83
91