bpmax-cli 0.1.37 → 0.1.38

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.37",
3
+ "version": "0.1.38",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,7 +38,7 @@ bpmax-cli init --agent <agent> --channel feishu --url "<BPMAX_URL>" --name local
38
38
  - 当前用户:读 `../bpmax-user/SKILL.md`
39
39
  - 流程列表、流程选项、流程详情:读 `../bpmax-flow/SKILL.md`
40
40
  - 项目列表、项目详情、我的待办、最小创建:读 `../bpmax-project/SKILL.md`
41
- - 环节推进、审批通过/拒绝、完成 step:读 `../bpmax-project/SKILL.md`,必须使用 `step context/actions/submit` 的安全链路
41
+ - 环节推进、审批通过/拒绝、完成 step:读 `../bpmax-project/SKILL.md`,必须使用 `step context/actions/requirements/submit` 的安全链路
42
42
  - 系统内页面 URL 生成:先读 `../bpmax-shared/SKILL.md` 的“系统内 URL 生成”
43
43
  - 本地 schema manifest:读 `../bpmax-schema/SKILL.md`
44
44
  - BPMAX Business Skills 查询、同步、安装、更新、卸载:读 `../bpmax-business-skill/SKILL.md`
@@ -86,6 +86,7 @@ bpmax-cli es project-search --body @query.json --format json
86
86
  bpmax-cli step get 2002 --format json
87
87
  bpmax-cli step context 2002 --project-id 1001 --format json
88
88
  bpmax-cli step actions 2002 --project-id 1001 --format json
89
+ bpmax-cli step requirements 2002 --project-id 1001 --format json
89
90
  bpmax-cli url project-detail 1001
90
91
  bpmax-cli url project-step 1001 --step-id 2002
91
92
  ```
@@ -97,6 +98,7 @@ bpmax-cli url project-step 1001 --step-id 2002
97
98
  ```bash
98
99
  bpmax-cli step context <step_id> --project-id <project_id> --format json
99
100
  bpmax-cli step actions <step_id> --project-id <project_id> --format json
101
+ bpmax-cli step requirements <step_id> --project-id <project_id> --format json
100
102
  ```
101
103
 
102
104
  执行规则:
@@ -105,13 +107,14 @@ bpmax-cli step actions <step_id> --project-id <project_id> --format json
105
107
  - `step context` 返回 `identity_unverified: true` 时停止;只有 ES 命中、附件文本命中、自然语言猜测姓名都不能作为推进依据
106
108
  - 必须确认 `current_user_can_process` 不是 `false`、`step_finished` 不是 `true`、`project_id` 与 step 匹配
107
109
  - 必须从 `step actions` 选择真实按钮语义,不能凭“推进一步”猜 `approve`
110
+ - 必须检查 `step requirements` 或 `step context.requirements`;如果 `missing_required_inputs` 非空,先补齐 `--data`,不要直接确认提交
108
111
  - 默认先 dry-run:
109
112
 
110
113
  ```bash
111
- bpmax-cli step submit <step_id> --project-id <project_id> --action approve --label "通过" --format json
114
+ bpmax-cli step submit <step_id> --project-id <project_id> --action approve --label "通过" --data '{"form":{"manager_opinion":"同意"}}' --format json
112
115
  ```
113
116
 
114
- - 只有用户确认具体项目、候选人/表单证据、动作按钮和 payload 后,才追加 `--confirm <确认文本>` 实际提交
117
+ - 只有用户确认具体项目、候选人/表单证据、动作按钮、当前环节必填内容和 payload 后,才追加 `--confirm <确认文本>` 实际提交
115
118
  - 提交失败时保留服务端错误原文,不要改用 raw API 绕过
116
119
 
117
120
  ## 查询规则