bpmax-cli 0.2.1-beta.8 → 0.2.1-beta.80

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.
Files changed (191) hide show
  1. package/README.md +30 -7
  2. package/dist/bin.js +41627 -11178
  3. package/dist/bin.js.map +1 -1
  4. package/package.json +12 -5
  5. package/scripts/install-skills.mjs +27 -60
  6. package/scripts/run-source-cli.mjs +145 -0
  7. package/skills/bpmax-ai-taskbook/SKILL.md +13 -1
  8. package/skills/bpmax-ai-taskbook/references/blueprint-taskbook-gates.md +121 -0
  9. package/skills/bpmax-ai-taskbook/references/taskbook-template.md +42 -2
  10. package/skills/bpmax-api-platform-editor/SKILL.md +24 -31
  11. package/skills/bpmax-api-platform-editor/agents/openai.yaml +2 -2
  12. package/skills/bpmax-api-platform-editor/references/platform-api-map.md +2 -2
  13. package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +3 -3
  14. package/skills/bpmax-approval-matrix/SKILL.md +54 -2
  15. package/skills/bpmax-blueprint-doc-workflow/SKILL.md +15 -2
  16. package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +8 -0
  17. package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +13 -0
  18. package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-modeling-review.xml +23 -0
  19. package/skills/bpmax-blueprint-doc-workflow/references/sample-paragraph-flow-details.xml +27 -0
  20. package/skills/bpmax-blueprint-doc-workflow/references/sample-pass.xml +45 -28
  21. package/skills/bpmax-blueprint-doc-workflow/references/source-traceability-and-flow-modeling.md +115 -0
  22. package/skills/bpmax-blueprint-doc-workflow/scripts/lint_blueprint_doc.py +386 -5
  23. package/skills/bpmax-bug-reporting/SKILL.md +72 -0
  24. package/skills/bpmax-builder-shared/SKILL.md +1 -0
  25. package/skills/bpmax-builder-shared/configuration-impact-review.md +76 -0
  26. package/skills/bpmax-builder-shared/template_script_hard_rules.py +3 -1
  27. package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +16 -0
  28. package/skills/bpmax-business-skill/SKILL.md +3 -1
  29. package/skills/bpmax-cli/SKILL.md +46 -0
  30. package/skills/bpmax-config-latest/SKILL.md +4 -0
  31. package/skills/bpmax-console-template-editor/SKILL.md +113 -523
  32. package/skills/bpmax-console-template-editor/agents/openai.yaml +2 -2
  33. package/skills/bpmax-console-template-editor/references/full-detail-guide.md +45 -0
  34. package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +13 -12
  35. package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +299 -78
  36. package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +344 -30
  37. package/skills/bpmax-dataset-field-template-editor/SKILL.md +131 -594
  38. package/skills/bpmax-dataset-field-template-editor/references/full-detail-guide.md +570 -0
  39. package/skills/bpmax-dataset-field-template-editor/references/nested-field-patterns.md +8 -8
  40. package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +1 -1
  41. package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +11 -77
  42. package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +4 -57
  43. package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +2 -0
  44. package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +4 -78
  45. package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +3 -89
  46. package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +14 -0
  47. package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +2 -0
  48. package/skills/bpmax-dataset-template-editor/SKILL.md +123 -778
  49. package/skills/bpmax-dataset-template-editor/references/dataset-script-runtime-matrix.md +11 -0
  50. package/skills/bpmax-dataset-template-editor/references/full-detail-guide.md +753 -0
  51. package/skills/bpmax-dataset-template-editor/references/runtime-gotchas.md +12 -0
  52. package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +1 -0
  53. package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +2 -2
  54. package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +8 -1
  55. package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +9 -90
  56. package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +8 -1
  57. package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +8 -1
  58. package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +1 -2
  59. package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +8 -1
  60. package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +8 -1
  61. package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +6 -40
  62. package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +18 -4
  63. package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +2 -2
  64. package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +13 -9
  65. package/skills/bpmax-e2e-flow-test-operator/SKILL.md +174 -546
  66. package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +2 -3
  67. package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +181 -15
  68. package/skills/bpmax-e2e-flow-test-operator/references/browser-action-dsl.md +167 -0
  69. package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +15 -7
  70. package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +589 -0
  71. package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +12 -8
  72. package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +4 -4
  73. package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +1 -1
  74. package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +3 -1
  75. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +7 -5
  76. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +2 -2
  77. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +5 -1
  78. package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +71 -0
  79. package/skills/bpmax-e2e-flow-test-operator-v2/SKILL.md +64 -0
  80. package/skills/bpmax-e2e-flow-test-operator-v2/agents/openai.yaml +7 -0
  81. package/skills/bpmax-e2e-flow-test-operator-v2/references/automation-generation-pipeline.md +33 -0
  82. package/skills/bpmax-e2e-flow-test-operator-v2/references/autonomous-execution.md +40 -0
  83. package/skills/bpmax-e2e-flow-test-operator-v2/references/batch-generation-and-execution.md +17 -0
  84. package/skills/bpmax-e2e-flow-test-operator-v2/references/browser-action-runner.md +19 -0
  85. package/skills/bpmax-e2e-flow-test-operator-v2/references/browser-recording-and-replay.md +95 -0
  86. package/skills/bpmax-e2e-flow-test-operator-v2/references/form-script-generation.md +41 -0
  87. package/skills/bpmax-e2e-flow-test-operator-v2/references/identity-and-failure-routing.md +90 -0
  88. package/skills/bpmax-e2e-flow-test-operator-v2/references/multi-request-mutation.md +9 -0
  89. package/skills/bpmax-e2e-flow-test-operator-v2/references/scenario-coverage-generation.md +17 -0
  90. package/skills/bpmax-e2e-flow-test-operator-v2/references/scoped-execution.md +13 -0
  91. package/skills/bpmax-e2e-flow-test-operator-v2/references/step-restartability-and-state.md +23 -0
  92. package/skills/bpmax-e2e-flow-test-operator-v2/references/test-assets-and-evidence.md +9 -0
  93. package/skills/bpmax-e2e-flow-test-operator-v2/references/test-data-and-selector-contract.md +51 -0
  94. package/skills/bpmax-e2e-flow-test-operator-v2/references/test-preflight-and-confirmation.md +32 -0
  95. package/skills/bpmax-filter-template-editor/SKILL.md +114 -551
  96. package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +18 -18
  97. package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +21 -0
  98. package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +29 -26
  99. package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +19 -2
  100. package/skills/bpmax-filter-template-editor/references/full-detail-guide.md +56 -0
  101. package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +10 -9
  102. package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +7 -57
  103. package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +4 -48
  104. package/skills/bpmax-flow/SKILL.md +2 -0
  105. package/skills/bpmax-flow-detail-template-editor/SKILL.md +53 -0
  106. package/skills/bpmax-flow-template-editor/SKILL.md +129 -1123
  107. package/skills/bpmax-flow-template-editor/agents/openai.yaml +2 -2
  108. package/skills/bpmax-flow-template-editor/references/diff-strategy.md +3 -3
  109. package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +9 -9
  110. package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +2 -1
  111. package/skills/bpmax-flow-template-editor/references/full-detail-guide.md +1158 -0
  112. package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +1 -1
  113. package/skills/bpmax-flow-template-editor/references/payload-checklist.md +2 -0
  114. package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +17 -0
  115. package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +8 -3
  116. package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +7 -7
  117. package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +2 -2
  118. package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +12 -2
  119. package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +7 -23
  120. package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +1 -1
  121. package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +19 -75
  122. package/skills/bpmax-form-template-editor/SKILL.md +138 -1151
  123. package/skills/bpmax-form-template-editor/agents/openai.yaml +2 -2
  124. package/skills/bpmax-form-template-editor/references/dynamic-field-state.md +167 -0
  125. package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +51 -51
  126. package/skills/bpmax-form-template-editor/references/full-detail-guide.md +1115 -0
  127. package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +4 -4
  128. package/skills/bpmax-form-template-editor/references/payload-checklist.md +3 -1
  129. package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +6 -0
  130. package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +8 -0
  131. package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +42 -19
  132. package/skills/bpmax-functional-test-design/LICENSE.upstream +24 -0
  133. package/skills/bpmax-functional-test-design/SKILL.md +80 -0
  134. package/skills/bpmax-functional-test-design/agents/openai.yaml +4 -0
  135. package/skills/bpmax-functional-test-design/references/bpmax-test-suite-output.md +95 -0
  136. package/skills/bpmax-functional-test-design/references/decision-table-testing.md +50 -0
  137. package/skills/bpmax-functional-test-design/references/domain-testing.md +43 -0
  138. package/skills/bpmax-functional-test-design/references/state-transition-testing.md +47 -0
  139. package/skills/bpmax-functional-test-design/references/technique-selection.md +38 -0
  140. package/skills/bpmax-functional-test-design/references/use-case-testing.md +55 -0
  141. package/skills/bpmax-group-model-editor/SKILL.md +24 -0
  142. package/skills/bpmax-home-portal-editor/SKILL.md +81 -0
  143. package/skills/bpmax-icon-catalog/SKILL.md +18 -0
  144. package/skills/bpmax-icon-catalog/agents/openai.yaml +4 -0
  145. package/skills/bpmax-icon-catalog/assets/ri-icons.json +3140 -0
  146. package/skills/bpmax-icon-catalog/references/source-contract.md +3 -0
  147. package/skills/bpmax-list-template-editor/SKILL.md +131 -466
  148. package/skills/bpmax-list-template-editor/agents/openai.yaml +2 -2
  149. package/skills/bpmax-list-template-editor/references/content-config-shape.md +16 -4
  150. package/skills/bpmax-list-template-editor/references/full-detail-guide.md +461 -0
  151. package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +6 -9
  152. package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +1 -1
  153. package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +50 -2
  154. package/skills/bpmax-list-template-editor/references/special-formats.md +5 -2
  155. package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +9 -78
  156. package/skills/bpmax-memory-protocol/SKILL.md +7 -6
  157. package/skills/bpmax-nav-config-editor/SKILL.md +14 -17
  158. package/skills/bpmax-nav-config-editor/agents/openai.yaml +2 -2
  159. package/skills/bpmax-nav-config-editor/references/api-workflow.md +2 -2
  160. package/skills/bpmax-nav-config-editor/references/runtime-probing.md +11 -12
  161. package/skills/bpmax-page-composition-template-editor/SKILL.md +315 -0
  162. package/skills/bpmax-page-composition-template-editor/examples/presets/catalog.json +41 -0
  163. package/skills/bpmax-page-composition-template-editor/examples/presets/full-capability-workbench.json +294 -0
  164. package/skills/bpmax-page-composition-template-editor/examples/presets/project-detail-step-panel.json +184 -0
  165. package/skills/bpmax-page-composition-template-editor/examples/presets/project-list-quick-process.json +177 -0
  166. package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-dashboard.json +400 -0
  167. package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-visual-light.json +214 -0
  168. package/skills/bpmax-page-composition-template-editor/examples/presets/step-related-projects.json +184 -0
  169. package/skills/bpmax-page-composition-template-editor/references/resource-api.md +9 -0
  170. package/skills/bpmax-plugin-config/SKILL.md +55 -5
  171. package/skills/bpmax-project/SKILL.md +37 -1
  172. package/skills/bpmax-project-detail-template-editor/SKILL.md +13 -39
  173. package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +2 -2
  174. package/skills/bpmax-role-editor/SKILL.md +11 -30
  175. package/skills/bpmax-shared/SKILL.md +19 -9
  176. package/skills/bpmax-team-editor/SKILL.md +27 -0
  177. package/skills/bpmax-ui-ux-audit/LICENSE.upstream +23 -0
  178. package/skills/bpmax-ui-ux-audit/SKILL.md +42 -0
  179. package/skills/bpmax-ui-ux-audit/agents/openai.yaml +4 -0
  180. package/skills/bpmax-ui-ux-audit/references/audit-framework.md +39 -0
  181. package/skills/bpmax-ui-ux-audit/references/bpmax-ux-findings.md +56 -0
  182. package/skills/bpmax-user/SKILL.md +33 -1
  183. package/skills/bpmax-user-mock-operator/SKILL.md +58 -56
  184. package/skills/bpmax-user-mock-operator/agents/openai.yaml +2 -2
  185. package/skills/bpmax-user-mock-operator/scripts/chrome_identity_bridge.mjs +1766 -0
  186. package/skills/bpmax-user-model-editor/SKILL.md +24 -0
  187. package/skills/bpmax-workspace-editor/SKILL.md +1 -0
  188. package/skills/form-control-library/references/form-template-submit-schema.md +3 -1
  189. package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +0 -37
  190. package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +0 -136
  191. package/skills/bpmax-user-mock-operator/tests/test_user_mock_operator.py +0 -138
package/README.md CHANGED
@@ -18,6 +18,8 @@ bpmax-cli update
18
18
 
19
19
  The update command checks the npm registry for `bpmax-cli`, runs `npm install -g bpmax-cli@<version>` when auto-update is available, and then installs the bundled skills. Set `BPMAX_CLI_REGISTRY_URL` to use a private registry. Set `BPMAX_CLI_NO_UPDATE_NOTIFIER=1` or `BPMAX_CLI_NO_SKILLS_NOTIFIER=1` to suppress startup notices.
20
20
 
21
+ When developing or validating migrations against a source checkout, run `npm link` once from that checkout or invoke `node "$BPMAX_CLI_HOME/scripts/run-source-cli.mjs"`. The source entrypoint rebuilds stale `dist` output and synchronizes bundled Skills before executing the command, so migration subprocesses cannot silently keep using an older globally installed CLI.
22
+
21
23
  ## First-time setup
22
24
 
23
25
  After installation, bpmax-cli prints an agent-oriented setup hint. The expected flow is: ask the user to directly input any BPMAX page URL in the target workspace, then run setup with that URL after the user replies.
@@ -136,7 +138,7 @@ bpmax-cli step actions 15690 --project-id 13097 --format json
136
138
  bpmax-cli step requirements 15690 --project-id 13097 --format json
137
139
  ```
138
140
 
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.
141
+ `step context` reports the project/step URL, current user ownership, parsed actions, current-step input requirements, form evidence, and `identity_unverified`. Owner/assignee fields are authoritative for processability; `step.user_id` is diagnostic-only and cannot override a conflicting owner. `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
142
 
141
143
  Submit step actions through a dry-run first:
142
144
 
@@ -180,6 +182,8 @@ Use typed project search for high-volume reads, candidate lookup, form-field loo
180
182
  bpmax-cli project search --profile yuanrong --body @project-search-query.json --page 1 --page-size 20 --format json
181
183
  ```
182
184
 
185
+ `project search`, `project list`, and the compatibility alias `es project-search` send pagination in the `/project/list` request body as `page` and `page_size`. For older CLI versions, put `page` and `page_size` directly in the `--body` JSON to avoid repeated first-page reads.
186
+
183
187
  ```json
184
188
  {
185
189
  "data_set_key": "budget_project",
@@ -196,6 +200,8 @@ bpmax-cli project search --profile yuanrong --body @project-search-query.json --
196
200
 
197
201
  Raw Elasticsearch DTOs are intentionally not supported through `bpmax-cli project search` or `bpmax-cli es project-search`. `huanpingtong-server` does not expose `/api/project/raw-es-search` as a public endpoint, and legacy `/api/project/<id>` routing can fall through to project creation. If the payload contains a top-level `body` field, the CLI fails before sending any request.
198
202
 
203
+ Each `/project/list` filter uses the field-oriented `{ "type": "<ES query type>", "value": ... }` contract. The CLI also accepts a scalar shorthand such as `"current_flow_step_name": "方案review"` and normalizes it to a strict `term` filter. Invalid object shapes fail before HTTP instead of being silently ignored by the server.
204
+
199
205
  Use a project search body instead:
200
206
 
201
207
  ```json
@@ -282,6 +288,10 @@ Recipe execution is intentionally limited to bpmax-cli subcommands. It does not
282
288
 
283
289
  The project-owned skills live under `skills/`.
284
290
 
291
+ Use `bpmax-functional-test-design` to derive traceable functional test cases from BPMAX requirements with equivalence classes and boundaries, decision tables, state transitions, and end-to-end use cases. It designs cases and maps them toward `.ai_test`; real browser and workflow execution remains the responsibility of `bpmax-e2e-flow-test-operator`.
292
+
293
+ Use `bpmax-ui-ux-audit` to review BPMAX forms, lists, details, approval pages, and full journeys with current-run evidence. Every confirmed experience issue is a severity-rated BUG, and E2E completion is gated by the structured UX findings plus `test-suite lint-report`.
294
+
285
295
  Running `npm install` or `npm run install:skills` copies project skills into detected local agent skill directories, including:
286
296
 
287
297
  - `~/.codex/skills`
@@ -317,6 +327,7 @@ bpmax-cli --config-dir <config_dir> bbs ensure <skill-key> --agent <agent> --pro
317
327
  ```
318
328
 
319
329
  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`.
330
+ For Codex and other directory-based agents, these BBS commands install into the current working directory's agent Skill root, such as `./.codex/skills`, rather than a user-level global root. For OpenClaw, the CLI resolves the configured agent with `openclaw agents list --json` and installs into that agent's `<workspace>/skills` directory.
320
331
 
321
332
  For mutating raw API calls, `bpmax-cli api` requires `--confirm-mutating` and supports `--data @file.json`. Raw API calls to `POST /project` or `POST /project/<anything>` are blocked even with `--confirm-mutating`; the only project POST allowed in raw mode is the read-style `/project/list`. Search projects through `bpmax-cli project search`, and create projects through `bpmax-cli project create --flow-id <id> --json <json>` so the CLI can run form-template checks and choose safe direct submit or handoff. Prefer typed commands such as `step submit` for workflow state changes.
322
333
 
@@ -327,19 +338,19 @@ Workspace configuration is also typed. Use `bpmax-cli config workspace export --
327
338
  `bpmax-cli test-suite` manages local `.ai_test` case assets for BPMAX E2E regression work:
328
339
 
329
340
  ```bash
330
- bpmax-cli test-suite lint --root .ai_test/suite_draft --latest-proof .codex/tmp/ai_test_suite/latest-yaditest-proof.json
331
- bpmax-cli test-suite lint --root .ai_test/suite_draft --latest-proof .codex/tmp/ai_test_suite/latest-yaditest-proof.json --explain
341
+ bpmax-cli test-suite lint --root .ai_test/suite_draft --scenario <scenario_id> --latest-proof .codex/tmp/ai_test_suite/latest-yaditest-proof.json
342
+ bpmax-cli test-suite lint --root .ai_test/suite_draft --scenario <scenario_id> --latest-proof .codex/tmp/ai_test_suite/latest-yaditest-proof.json --explain
332
343
  bpmax-cli test-suite review init --scenario <scenario_id> --draft-root .ai_test/suite_draft --latest-proof <proof.json>
333
344
  bpmax-cli test-suite review repair --scenario <scenario_id> --draft-root .ai_test/suite_draft --latest-proof <proof.json>
334
345
  bpmax-cli test-suite review explain
335
346
  bpmax-cli test-suite index --root .ai_test/suite --latest-proof .codex/tmp/ai_test_suite/latest-yaditest-proof.json
336
347
  bpmax-cli test-suite draft-update --scenario <scenario_id> --replace --latest-proof <proof.json>
337
- bpmax-cli test-suite promote --scenario <scenario_id> --replace --latest-proof <proof.json>
348
+ bpmax-cli test-suite promote --scenario <scenario_id> [--scenario <same_flow_scenario_id> ...] --replace --latest-proof <proof.json>
338
349
  bpmax-cli test-suite next-report-dir --root .ai_test/report --create
339
350
  bpmax-cli test-suite lint-report --root .ai_test/report
340
351
  ```
341
352
 
342
- The suite commands are local file operations. `lint`, `index`, `draft-update`, and `promote` require a `latest-*` proof JSON so case assets stay tied to a verified sysconfig baseline. Use `lint --explain` or `review explain` to print the required `review.json` schema. `review init` creates a minimal draft review file, and `review repair` fills missing schema fields without replacing existing review text. Promote also requires `review.json` with the required review perspectives and zero unresolved P0/P1 findings. Copy operations return a diff summary plus `.copy_diff/last.diff` so agents can review changed files and case IDs before overwriting.
353
+ The suite commands are local file operations. `lint`, `index`, `draft-update`, and `promote` require a `latest-*` proof JSON so case assets stay tied to a verified sysconfig baseline. In a shared suite, repeat `--scenario` to lint only the scenarios owned by the current flow; omitting it keeps the full-suite governance check. Scoped output reports `scope=selected_scenarios` and must not be treated as proof that unrelated flows pass. Use `lint --explain` or `review explain` to print the required `review.json` schema. `review init` creates a minimal draft review file, and `review repair` fills missing schema fields without replacing existing review text. Promote also requires `review.json` with the required review perspectives and zero unresolved P0/P1 findings. Repeating `--scenario` on promote preflights every scenario from one `flow_type` before any directory is copied. Copy operations return a diff summary plus `.copy_diff/last.diff` so agents can review changed files and case IDs before overwriting.
343
354
 
344
355
  Project detail template runtime defaults are explicit: `bpmax-cli config project-detail-template export --id 0` exports the global default template only. For `/project_detail/0/<project_id>` runtime behavior, first resolve the flow default:
345
356
 
@@ -426,18 +437,30 @@ BPMAX Business Skills (BBS) are standard skill zip packages hosted by a BPMAX en
426
437
  Sync only the lightweight catalog into an agent:
427
438
 
428
439
  ```bash
429
- bpmax-cli --config-dir <config_dir> bbs sync --agent openclaw --profile yuanrong --format json
440
+ bpmax-cli --config-dir <config_dir> bbs sync --agent openclaw --openclaw-agent-id <agent-id> --profile yuanrong --format json
430
441
  ```
431
442
 
432
443
  Install or update a business skill only when it is needed:
433
444
 
434
445
  ```bash
435
- bpmax-cli --config-dir <config_dir> bbs ensure <skill-key> --agent openclaw --profile yuanrong --format json
446
+ bpmax-cli --config-dir <config_dir> bbs ensure <skill-key> --agent openclaw --openclaw-agent-id <agent-id> --profile yuanrong --format json
436
447
  ```
437
448
 
449
+ The catalog and lazily installed BBS packages stay isolated by agent/project. Directory-based agents use the current project root, such as `./.codex/skills`. OpenClaw uses the selected agent's `<workspace>/skills`; when multiple OpenClaw agents exist, pass `--openclaw-agent-id` (or provide trusted `OPENCLAW_AGENT_ID`) so the CLI can select one safely.
450
+
438
451
  Publish a BBS:
439
452
 
440
453
  ```bash
441
454
  bpmax-cli bbs create --name "预算查询" --scene "预算分析" --zip ./skill.zip --profile yuanrong --format json
442
455
  bpmax-cli bbs upgrade <skill-key> --zip ./skill.zip --release-note "..." --profile yuanrong --format json
443
456
  ```
457
+
458
+ ### 列出所有角色
459
+
460
+ ```bash
461
+ bpmax-cli role list --profile <profile> --format json
462
+ ```
463
+
464
+ 返回当前 profile 所属组织的全部未删除角色(JSON 数组),不受列表分页上限限制。
465
+ 使用现有 `config.role.export` capability,需 API Key 已授权配置读取能力;不要求本地配置工作区。
466
+ 支持通用 `--format` 输出选项,例如 `table`、`json`、`ndjson`。