bpmax-cli 0.2.1-beta.3 → 0.2.1-beta.31

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 (125) hide show
  1. package/README.md +7 -1
  2. package/dist/bin.js +16002 -7768
  3. package/dist/bin.js.map +1 -1
  4. package/package.json +6 -3
  5. package/scripts/run-source-cli.mjs +121 -0
  6. package/skills/bpmax-ai-taskbook/SKILL.md +2 -1
  7. package/skills/bpmax-api-platform-editor/SKILL.md +24 -31
  8. package/skills/bpmax-api-platform-editor/agents/openai.yaml +2 -2
  9. package/skills/bpmax-api-platform-editor/references/platform-api-map.md +2 -2
  10. package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +3 -3
  11. package/skills/bpmax-approval-matrix/SKILL.md +54 -2
  12. package/skills/bpmax-blueprint-doc-workflow/SKILL.md +87 -0
  13. package/skills/bpmax-blueprint-doc-workflow/agents/openai.yaml +4 -0
  14. package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +60 -0
  15. package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +98 -0
  16. package/skills/bpmax-blueprint-doc-workflow/references/sample-forbidden-term.xml +12 -0
  17. package/skills/bpmax-blueprint-doc-workflow/references/sample-mermaid-codeblock.xml +12 -0
  18. package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-boundary.xml +10 -0
  19. package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-whiteboard.xml +10 -0
  20. package/skills/bpmax-blueprint-doc-workflow/references/sample-pass.xml +55 -0
  21. package/skills/bpmax-blueprint-doc-workflow/scripts/lint_blueprint_doc.py +257 -0
  22. package/skills/bpmax-bug-reporting/SKILL.md +72 -0
  23. package/skills/bpmax-builder-shared/template_script_hard_rules.py +3 -1
  24. package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +16 -0
  25. package/skills/bpmax-cli/SKILL.md +39 -0
  26. package/skills/bpmax-config-latest/SKILL.md +4 -0
  27. package/skills/bpmax-console-template-editor/SKILL.md +109 -523
  28. package/skills/bpmax-console-template-editor/agents/openai.yaml +2 -2
  29. package/skills/bpmax-console-template-editor/references/full-detail-guide.md +45 -0
  30. package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +13 -12
  31. package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +65 -78
  32. package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +86 -30
  33. package/skills/bpmax-dataset-field-template-editor/SKILL.md +125 -594
  34. package/skills/bpmax-dataset-field-template-editor/references/full-detail-guide.md +570 -0
  35. package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +1 -1
  36. package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +11 -77
  37. package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +4 -57
  38. package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +2 -0
  39. package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +4 -78
  40. package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +3 -89
  41. package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +14 -0
  42. package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +2 -0
  43. package/skills/bpmax-dataset-template-editor/SKILL.md +113 -777
  44. package/skills/bpmax-dataset-template-editor/references/full-detail-guide.md +753 -0
  45. package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +1 -0
  46. package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +2 -2
  47. package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +8 -1
  48. package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +9 -90
  49. package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +8 -1
  50. package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +8 -1
  51. package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +1 -2
  52. package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +8 -1
  53. package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +8 -1
  54. package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +6 -40
  55. package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +8 -4
  56. package/skills/bpmax-e2e-flow-test-operator/SKILL.md +126 -533
  57. package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +0 -1
  58. package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +123 -9
  59. package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +6 -5
  60. package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +564 -0
  61. package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +4 -4
  62. package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +1 -1
  63. package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +3 -1
  64. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +7 -5
  65. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +2 -2
  66. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +5 -1
  67. package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +71 -0
  68. package/skills/bpmax-filter-template-editor/SKILL.md +110 -551
  69. package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +18 -18
  70. package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +29 -26
  71. package/skills/bpmax-filter-template-editor/references/full-detail-guide.md +56 -0
  72. package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +10 -9
  73. package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +7 -57
  74. package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +4 -48
  75. package/skills/bpmax-flow-template-editor/SKILL.md +113 -1084
  76. package/skills/bpmax-flow-template-editor/agents/openai.yaml +2 -2
  77. package/skills/bpmax-flow-template-editor/references/diff-strategy.md +3 -3
  78. package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +9 -9
  79. package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +2 -1
  80. package/skills/bpmax-flow-template-editor/references/full-detail-guide.md +1157 -0
  81. package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +1 -1
  82. package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +3 -3
  83. package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +7 -7
  84. package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +2 -2
  85. package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +2 -2
  86. package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +7 -23
  87. package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +1 -1
  88. package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +19 -75
  89. package/skills/bpmax-form-template-editor/SKILL.md +112 -1104
  90. package/skills/bpmax-form-template-editor/agents/openai.yaml +2 -2
  91. package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +51 -51
  92. package/skills/bpmax-form-template-editor/references/full-detail-guide.md +1108 -0
  93. package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +4 -4
  94. package/skills/bpmax-form-template-editor/references/payload-checklist.md +1 -1
  95. package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +8 -0
  96. package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +42 -19
  97. package/skills/bpmax-group-model-editor/SKILL.md +24 -0
  98. package/skills/bpmax-list-template-editor/SKILL.md +116 -466
  99. package/skills/bpmax-list-template-editor/agents/openai.yaml +2 -2
  100. package/skills/bpmax-list-template-editor/references/content-config-shape.md +16 -4
  101. package/skills/bpmax-list-template-editor/references/full-detail-guide.md +458 -0
  102. package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +6 -9
  103. package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +1 -1
  104. package/skills/bpmax-list-template-editor/references/special-formats.md +5 -2
  105. package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +9 -78
  106. package/skills/bpmax-memory-protocol/SKILL.md +7 -6
  107. package/skills/bpmax-nav-config-editor/SKILL.md +13 -17
  108. package/skills/bpmax-nav-config-editor/agents/openai.yaml +2 -2
  109. package/skills/bpmax-nav-config-editor/references/api-workflow.md +2 -2
  110. package/skills/bpmax-nav-config-editor/references/runtime-probing.md +11 -12
  111. package/skills/bpmax-plugin-config/SKILL.md +20 -4
  112. package/skills/bpmax-project/SKILL.md +35 -0
  113. package/skills/bpmax-project-detail-template-editor/SKILL.md +13 -39
  114. package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +2 -2
  115. package/skills/bpmax-role-editor/SKILL.md +7 -30
  116. package/skills/bpmax-shared/SKILL.md +11 -9
  117. package/skills/bpmax-team-editor/SKILL.md +27 -0
  118. package/skills/bpmax-user/SKILL.md +33 -1
  119. package/skills/bpmax-user-mock-operator/SKILL.md +20 -48
  120. package/skills/bpmax-user-mock-operator/agents/openai.yaml +2 -2
  121. package/skills/bpmax-user-model-editor/SKILL.md +24 -0
  122. package/skills/form-control-library/references/form-template-submit-schema.md +1 -1
  123. package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +0 -37
  124. package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +0 -136
  125. 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.
@@ -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",
@@ -364,7 +368,7 @@ bpmax-cli config readback dataset-field --id 5926 --format json
364
368
  bpmax-cli config flow-app context --workspace <workspace> --flow <flow_type_or_name> --evidence-out .codex/tmp/target-context.csv --format json
365
369
  ```
366
370
 
367
- `flow-app create` dry-run responses include `required_confirm`; automation should copy that exact value instead of reconstructing confirmation text. Typed create/submit responses expose stable `id`, `key`, and `readback_hint` fields for collectors.
371
+ `flow-app create` dry-run responses include `required_confirm`; automation should copy that exact value instead of reconstructing confirmation text. Direct typed create/submit responses expose stable top-level `id`, `key`, and `readback_hint` fields for collectors.
368
372
 
369
373
  Dataset relation fields and lifecycle actions are typed:
370
374
 
@@ -381,6 +385,8 @@ bpmax-cli config batch submit --manifest .codex/tmp/config-batch.json --continue
381
385
  bpmax-cli config batch readback --manifest .codex/tmp/config-readback-batch.json --continue-on-error --format json
382
386
  ```
383
387
 
388
+ Batch row `response_out` files are envelopes: read `ok`, `domain`, `id`, and `action` at the top level, and read typed command fields from `response.id`, `response.key`, and `response.readback_hint`. If a row stops at dry-run, copy `response.required_confirm` into the manifest row's `confirm` before retrying.
389
+
384
390
  ## BPMAX AI implementation taskbooks
385
391
 
386
392
  `bpmax-cli taskbook` manages local AI implementation taskbooks before configuration work is dispatched: