bpmax-cli 0.2.1-beta.42 → 0.2.1-beta.44

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.42",
3
+ "version": "0.2.1-beta.44",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,6 +26,7 @@ bpmax-cli init --agent <agent> --channel feishu --url "<BPMAX_URL>" --name local
26
26
  - `init` 返回后,Agent 必须展示 `message_card.authorization_url` 和 `message_card.user_code` 给用户;用户确认短码后,逐字执行 `message_card.next_command`,不要从 `message_card.next_action` 自然语言里猜命令。
27
27
  - `profile`、`config_dir` 的最终值只以 `init` JSON 返回为准;不要自行拼接或复用 `local`/共享 `~/.bpmax`。后续检查优先复制 `next_commands.profile_list/auth_status/bbs_list`,不要裸跑 `config profile list`、`auth status` 或 `bbs list`。
28
28
  - 授权完成后,CLI 会基于当前 API Key 从 `huanpingtong-server` 探查可用 capability。不要假设所有命令可用;如果命令提示缺少 capability,先运行 `bpmax-cli --config-dir <config_dir> capabilities refresh --profile <profile> --format json`,仍缺失则停止并向用户说明当前账号无该 CLI 能力。
29
+ - 不得因为 API Key 未开启配置能力而停止流程枚举。浏览候选流程使用 `bpmax-cli flow list`(以及按需使用 `flow options/get`),由独立的 `flow.list` / `flow.options` / `flow.get` capability 和当前用户的流程读取权限决定;`configuration.manage` 仅作为流程模板配置写操作的门禁。
29
30
  - 如果授权完成输出 `next_commands.config_workspace_init`,需要配置工作区时必须复制该命令并补齐 `<env>` 与 `--workspace-dir <dir>`。该命令会从 BPMAX 平台配置库读取 Git 地址和 sysconfigdiff 凭据,clone 或绑定本地 workspace,并生成 `AGENTS.md`;不要用 `config-env add` 手写配置库账号密码。
30
31
  - 授权初始化与本地配置目录初始化是两个阶段。执行配置任务前必须先完成 `config workspace init`,再进入生成的 sysconfig 目录或其子目录;这里的“配置目录”不是 BPMAX 的 `w:xxx` 业务工作区。
31
32
  - 配置类命令由 CLI 自动校验当前目录:向上查找同时包含 `AGENTS.md`、`think_configuration/`、`think_flow/`、`think_form_template/` 的最近目录,并核对它是否绑定到当前 profile。用户不需要额外说“请检查当前目录”,Agent 也不得绕过或通过切换 profile 猜测环境。
@@ -30,6 +30,8 @@ bpmax-cli flow get --flow-id 123 --format json
30
30
  ## 路由规则
31
31
 
32
32
  - 流程枚举优先 `flow list`
33
+ - 流程枚举不要求 API Key 开启 `configuration.manage`。只要服务端授予独立的 `flow.list` capability,且当前用户的流程读取权限允许访问目标流程,就必须继续使用 `bpmax-cli flow list`;不得把“未开启配置能力”误判为“不能枚举流程模板”。
34
+ - `configuration.manage` 只约束流程模板创建、编辑、发布等配置写操作。需要浏览候选流程时,不得改走 `config flow-template export`,也不得要求用户仅为读取流程列表重新开启配置能力。
33
35
  - 只在需要单流程细节时才用 `flow get`
34
36
  - 需要读取创建选项或流程相关参数时,再用 `flow options`
35
37
  - 创建项目之前,必须用 `flow get` 或 `flow options` 获取流程表单结构,供 `project create` 的 `form` 映射和校验使用