bpmax-cli 0.1.36 → 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/README.md CHANGED
@@ -128,6 +128,30 @@ bpmax-cli project get 13097 --format json
128
128
  bpmax-cli step get 15690 --format json
129
129
  ```
130
130
 
131
+ Before advancing or rejecting a step, inspect the safe context and available actions:
132
+
133
+ ```bash
134
+ bpmax-cli step context 15690 --project-id 13097 --format json
135
+ bpmax-cli step actions 15690 --project-id 13097 --format json
136
+ bpmax-cli step requirements 15690 --project-id 13097 --format json
137
+ ```
138
+
139
+ `step context` reports the project/step URL, current user ownership, parsed actions, current-step input requirements, form evidence, and `identity_unverified`. `step requirements` focuses on current-step bound form fields, required inputs, existing values, missing required inputs, and a submit payload template. If project and step form values are empty, do not advance from an ES keyword or attachment-text match alone.
140
+
141
+ Submit step actions through a dry-run first:
142
+
143
+ ```bash
144
+ bpmax-cli step submit 15690 \
145
+ --project-id 13097 \
146
+ --action approve \
147
+ --label "通过" \
148
+ --data '{"form":{"manager_opinion":"同意"}}' \
149
+ --comments "确认推进" \
150
+ --format json
151
+ ```
152
+
153
+ The command only calls `PUT /api/step/:id?action=<action>` when `--confirm <text>` is present and safety checks pass. Confirmed submits are refused when current-step required inputs are missing.
154
+
131
155
  Filter pending steps at the API query level instead of pulling all pages locally:
132
156
 
133
157
  ```bash
@@ -267,6 +291,8 @@ bpmax-cli --config-dir <config_dir> bbs ensure <skill-key> --agent <agent> --pro
267
291
 
268
292
  Use `bbs sync` when there is no local/catalog match, then check again before falling back to generic flow/project/API commands. `bbs sync` installs only the catalog skill; individual business skills are installed lazily with `bbs ensure`.
269
293
 
294
+ For mutating raw API calls, `bpmax-cli api` requires `--confirm-mutating` and supports `--data @file.json`. Prefer typed commands such as `step submit` for workflow state changes.
295
+
270
296
  If `aily-skillhub` is available in `PATH`, the installer also runs:
271
297
 
272
298
  ```bash