bpmax-cli 0.2.1-beta.31 → 0.2.1-beta.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmax-cli",
3
- "version": "0.2.1-beta.31",
3
+ "version": "0.2.1-beta.32",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -15,6 +15,8 @@ metadata:
15
15
  ## Agent 基础行为
16
16
 
17
17
  - 先应用 `../bpmax-shared/SKILL.md` 的命令发现、profile/auth 检查、全局参数、JSON 输出、URL 生成和原始 API 降级规则。
18
+ - 每次读取 CLI JSON 对象时都必须检查 `_notice`。出现 `_notice.update` 或 `_notice.skills` 时,先向用户简要说明当前版本、目标版本和更新渠道,再逐字执行其中的 `next_command`;更新失败则停止后续 BPMAX 配置或正式 E2E,不得继续混用旧 CLI 与旧 Skills。JSON 数组、NDJSON、table 和错误输出中的通知会写到 stderr,也必须读取。
19
+ - beta 版本只跟踪 npm `beta` 渠道,稳定版本只跟踪 `latest` 渠道。不要把 beta 与 stable 的比较结果混在一起,也不要自行改写通知返回的更新命令。
18
20
  - 未初始化时,不要直接编造 profile、config-dir 或 API Key;先要求用户提供 BPMAX workspace 页面 URL。Agent 多用户环境必须从可信 runtime metadata 读取稳定用户/会话 scope,优先使用 channel + peer/user,至少使用 user id,再运行:
19
21
 
20
22
  ```bash
@@ -41,6 +41,14 @@ node "$BPMAX_CLI_HOME/scripts/run-source-cli.mjs" ...
41
41
 
42
42
  禁止在同一次迁移中混用源码 CLI、旧全局 CLI 和不同版本 Skills。开始迁移前必须确认 `--version` 与 `$BPMAX_CLI_HOME/package.json` 一致,且命令输出不再出现 Skills out-of-sync notice。
43
43
 
44
+ ## Agent 更新通知
45
+
46
+ - 所有 Agent、OpenClaw、Aily、Codex 和自动化调用都必须读取 CLI 返回的 `_notice`,不能只读取业务字段。
47
+ - `_notice.update` 表示当前安装渠道存在更高版本;beta 安装跟踪 `beta`,稳定安装跟踪 `latest`。先展示 `current/latest/channel`,再执行返回的 `next_command`。
48
+ - `_notice.skills` 表示 bundled Skills 未安装或与 CLI 不匹配;必须先执行返回的 `next_command` 完成同步。
49
+ - JSON 对象中的通知位于 `_notice`;JSON 数组、NDJSON、table、pretty 和命令错误中的通知通过 stderr 输出。Agent 必须同时读取 stdout 和 stderr。
50
+ - 更新失败时停止后续配置提交和正式 E2E,并向用户展示结构化错误;不得静默忽略更新提示或继续使用旧 lint/Skill。
51
+
44
52
  ## 开始前检查
45
53
 
46
54
  任何 BPMAX CLI 场景都先做两步。本地终端可直接运行;Agent/飞书/OpenClaw/Aily 等多用户运行时必须使用 `init` 返回的 `next_commands.profile_list` 和 `next_commands.auth_status`,不要裸跑共享配置命令: