未固定版本的 npm 包会在诊断时直接执行
原文依据:3 处所有命令都使用 `npx -y @insforge/cli`,没有指定版本或完整性值。`-y` 会自动接受 npm 安装提示,因此实际运行的代码取决于调用时注册表提供的包版本。
如果包、发布账户或依赖链被入侵,代码可在登录了 InsForge、并可能能读取项目文件和环境变量的代理环境中执行。
这是实际执行要求,不是示例警告。所有诊断均通过未固定版本的 `@insforge/cli` 运行,`npx -y` 还会自动接受安装提示;因此一旦执行,用户会运行 npm 当时解析到的包代码。源码未提供版本或完整性固定。用户可要求作者固定并审查版本,或限制 npm 网络访问。
**Always use `npx -y @insforge/cli`** — never install the CLI globally.查看另外 2 个位置
```bashnpx -y @insforge/cli diagnose --ai "<issue description>"```All commands run via `npx -y @insforge/cli ...`. The `(command)` shown next to each primitive is the actual CLI command — primitive names are concept labels, **not** CLI subcommand names (e.g., "DB health" is `diagnose db`, not `diagnose db-health`; "Policies" is `db policies`, not `diagnose policies`).