bpmax-cli 0.1.35 → 0.1.37
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 +24 -0
- package/dist/bin.js +462 -60
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-cli/SKILL.md +1 -0
- package/skills/bpmax-project/SKILL.md +27 -0
package/README.md
CHANGED
|
@@ -128,6 +128,28 @@ 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
|
+
```
|
|
137
|
+
|
|
138
|
+
`step context` reports the project/step URL, current user ownership, parsed actions, form evidence, and `identity_unverified`. If project and step form values are empty, do not advance from an ES keyword or attachment-text match alone.
|
|
139
|
+
|
|
140
|
+
Submit step actions through a dry-run first:
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
bpmax-cli step submit 15690 \
|
|
144
|
+
--project-id 13097 \
|
|
145
|
+
--action approve \
|
|
146
|
+
--label "通过" \
|
|
147
|
+
--comments "确认推进" \
|
|
148
|
+
--format json
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The command only calls `PUT /api/step/:id?action=<action>` when `--confirm <text>` is present and safety checks pass.
|
|
152
|
+
|
|
131
153
|
Filter pending steps at the API query level instead of pulling all pages locally:
|
|
132
154
|
|
|
133
155
|
```bash
|
|
@@ -267,6 +289,8 @@ bpmax-cli --config-dir <config_dir> bbs ensure <skill-key> --agent <agent> --pro
|
|
|
267
289
|
|
|
268
290
|
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
291
|
|
|
292
|
+
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.
|
|
293
|
+
|
|
270
294
|
If `aily-skillhub` is available in `PATH`, the installer also runs:
|
|
271
295
|
|
|
272
296
|
```bash
|