bpmax-cli 0.1.7 → 0.1.8

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.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -54,6 +54,23 @@ bpmax-cli auth status
54
54
  - 如果当前 profile 没有可用 API Key,先走 `auth login`
55
55
  - 如果用户明确指定环境,始终显式加 `--profile <name>`
56
56
 
57
+ ## Profile Recipes
58
+
59
+ 对环境强绑定、流程/表单强绑定的操作,不要直接沉淀到通用 `bpmax-*` skill。先检查当前 profile/workspace 是否已有本地 recipe:
60
+
61
+ ```bash
62
+ bpmax-cli recipe list --format table
63
+ bpmax-cli recipe show <name> --format json
64
+ ```
65
+
66
+ 规则:
67
+
68
+ - recipe 存储在 `~/.bpmax/profiles/<profile>/recipes/<workspace>/<recipe-name>/`
69
+ - 适合沉淀“创建店员”“发起某个固定业务流程”这类依赖具体环境 flow/template/key 的操作
70
+ - 执行 recipe 用 `bpmax-cli recipe run <name> --var key=value --vars '{...}' --yes`
71
+ - mutating recipe 必须显式 `--yes`
72
+ - 找不到 recipe 时,再走 flow/project/api 的通用发现流程,并建议用户把验证成功的操作沉淀为 profile recipe
73
+
57
74
  ## 配置与环境
58
75
 
59
76
  多环境 profile 管理统一走这里: