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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "bpmax-api-platform-editor"
3
- description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平台、实例配置和 API 代理配置,并通过系统 API 文档页完成标准调试闭环。只要用户提到“新建集成平台”“编辑集成平台”“编辑实例配置”“编辑接口代理”“调试系统API”“改 link_system 配置”“调试 api-docs/system_api”“构造 api_platform / api_platform_instance / api_proxy 数据”或等价表达,就应使用这个 skill。它优先复用当前浏览器登录态和真实页面请求骨架,结合本地 think_api_platform / think_api_proxy 镜像与线上页面事实,完成平台、实例、API、实体绑定相关配置的读取、修改、保存回读和文档页调试验证。"
3
+ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 集成平台、实例配置和 API 代理配置,并完成系统 API 标准调试闭环。只要用户提到“新建集成平台”“编辑集成平台”“编辑实例配置”“编辑接口代理”“调试系统API”“改 link_system 配置”“调试 api-docs/system_api”“构造 api_platform / api_platform_instance / api_proxy 数据”或等价表达,就应使用这个 skill。它以 typed CLI profile、线上接口回读、本地 think_api_platform / think_api_proxy 镜像和调试证据为依据,完成平台、实例、API、实体绑定相关配置的读取、修改、保存回读和验证。"
4
4
  ---
5
5
 
6
6
  # BPMAX API Platform Editor
@@ -19,13 +19,13 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
19
19
  - 不得以历史脏配置、顺手修复、统一风格、编辑器自动补字段、方便调试为理由修改需求外配置。
20
20
 
21
21
  ## 何时使用
22
- - 用户已经在浏览器打开 BPMAX 系统集成页面、实例编辑页、API 编辑页或系统 API 文档调试页。
22
+ - 用户需要通过 bpmax-cli typed config 管理 BPMAX 系统集成平台、实例、API 或代理配置。
23
23
  - 用户要新增、编辑或核对集成平台、实例、API 代理、响应映射。
24
- - 用户希望直接复用当前登录态和页面上下文,不手动找鉴权。
24
+ - 用户需要使用当前 CLI profile、capability 和线上回读结果完成配置闭环。
25
25
  - 用户要求把接口配置完后再在系统 API 文档页完成真实调试。
26
26
 
27
27
  ## 前置条件
28
- - 用户必须先打开以下任一页面:
28
+ - 先通过 CLI profile/capability 和目标参数确认以下任一对象:
29
29
  - `.../w:<workspace>/link_system`
30
30
  - `.../w:<workspace>/link_system/detail?system=<platform_key>`
31
31
  - `.../w:<workspace>/link_system/instance/edit?system=<platform_key>&id=<id>`
@@ -42,7 +42,7 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
42
42
 
43
43
  ## 脚本化闭环(第二阶段)
44
44
  - 当前 skill 已补齐最小脚本化闭环,临时工件统一放在 `.codex/tmp/api-platform-editor/`:
45
- - `contracts/`:浏览器 `copy as fetch/curl` 或 HAR 导出的真实写契约
45
+ - `contracts/`:typed CLI adapter 的 operation plan、capability 和 readback 契约
46
46
  - `raw/`、`work/`、`meta/`:导出线上对象、人工编辑工作副本、确认状态
47
47
  - `submit/`:最终提交包
48
48
  - `result/`:提交响应、回读、verify、doc-debug 验收记录
@@ -55,9 +55,8 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
55
55
  5. 先 dry-run:`bpmax-cli config api-platform submit --id <same-id> --payload <submit-file> --profile <profile> --format json`
56
56
  6. 用户确认后再执行 `--confirm "submit api-platform <same-id>"`
57
57
  7. 如果是实例或 API 变更,再执行文档页真实调试验收
58
- - 当前仍必须保留浏览器参与的环节:
59
- - 抓真实保存请求
60
- - 在系统 API 文档页点击“发送请求”
58
+ - 当前仍必须保留页面参与的环节:
59
+ - 在系统 API 文档页点击“发送请求”做真实调试
61
60
  - 最终页面刷新验收
62
61
  - `doc-debug` 层只负责导出上下文和记录验收结果,不替代浏览器真实调试。
63
62
 
@@ -80,8 +79,8 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
80
79
  - 如果停在“已改配置但未完成文档页调试”或“调试失败待排查”,结束前写 `session_state`。
81
80
 
82
81
  ## 核心原则
83
- - 优先复用当前浏览器页面的同域授权上下文,不要先假设有独立 API Key。
84
- - 浏览器实时线上页面、实时接口返回、当前页面真实请求体优先于本地 `think_api_platform`、`think_api_proxy` 镜像;本地配置只作为候选和结构参考,不能覆盖线上事实。
82
+ - 优先使用 bpmax-cli typed config 的当前 profile/auth/capability,不得把页面会话凭据作为配置读取或写入凭据。
83
+ - typed CLI 线上回读、实时接口返回和只读页面验收优先于本地 `think_api_platform`、`think_api_proxy` 镜像;本地配置只作为候选和结构参考,不能覆盖线上事实。
85
84
  - 平台、实例、API、实体绑定必须分层处理,不要把它们混成一份“总配置”。
86
85
  - 已验证的读取接口优先级:
87
86
  - 平台:`GET /api/api_platform`、`GET /api/api_platform/by_key/:platform_key`
@@ -92,7 +91,7 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
92
91
  - `/w:<workspace>/api-docs/system_api/<apiId>?system=<platform_key>`
93
92
  - 不把 API 编辑页里的调试区作为标准验收路径
94
93
  - 只要涉及实例脚本、签名、`request_schema`、响应映射或示例变更,就必须在文档调试页复测。
95
- - 实施保存时,先抓当前页面真实保存请求并落到 `contracts/<layer>.<mode>.json`,再用脚本 build/submit;不要预先硬编码未验证的写接口形状。
94
+ - 实施保存时,先通过 typed CLI adapter 的 operation plan、capability 和 readback 契约确认写入范围,再 build/submit;不要预先硬编码未验证的写接口形状。
96
95
  - 除非用户明确要求,线上验证结果不手动回写本地配置镜像;本地仓库只更新 skill 和文档。
97
96
 
98
97
  ## 工作流
@@ -106,14 +105,11 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
106
105
  - 如果是 `/api-docs/system_api/<id>?system=...`,按文档调试页处理。
107
106
  - 进入配置构造前,先按平台、实例、API 和调试目标检索一次 Mem0。
108
107
 
109
- ### 2. 获取授权上下文
110
- - 浏览器页面上下文只用于只读检查、抓取真实写契约和最终页面验收;真实远端写入必须回到 `bpmax-cli config api-platform submit`。
111
- - 必要时读取:
112
- - `document.cookie`
113
- - `localStorage`
114
- - `sessionStorage`
115
- - 当前页面最近的同域接口请求头
116
- - 不得用页面内同域请求直接保存配置,也不得退化成终端 `curl` 手搓写请求。
108
+ ### 2. 获取 CLI 上下文
109
+ - 使用当前 `bpmax-cli` profile、capability 和线上 readback 作为授权与事实来源。
110
+ - 浏览器页面只用于只读检查和最终页面验收;真实远端写入必须回到 `bpmax-cli config api-platform submit`。
111
+ - 不读取或复用浏览器 Cookie、浏览器存储、手工请求头或旧脚本环境变量。
112
+ - 不得用页面会话请求直接保存配置,也不得退化成终端手搓写请求。
117
113
 
118
114
  ### 3. 检索本地候选
119
115
  - 只要需求涉及已有平台或已有 API,先检索本地镜像:
@@ -155,7 +151,7 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
155
151
  - API:`api_key`、`name`、`method`、`path`、`request_schema`、`response_schema`、`request_example`、`response_example`
156
152
 
157
153
  ### 5. 构造目标 payload
158
- - 以当前页面真实返回体或真实保存请求骨架为基准,不要从零伪造全量 schema。
154
+ - 以 typed CLI export/readback 的线上返回体和 build 输出为基准,不要从零伪造全量 schema。
159
155
  - 平台层只改用户明确要求的字段:
160
156
  - 名称
161
157
  - `platform_key`
@@ -193,18 +189,15 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
193
189
  - 不要把实例特有逻辑硬塞进单条 API 定义里
194
190
 
195
191
  ### 6. 提交方式
196
- - 平台、实例、API 的最终保存接口与 payload 形状,必须以当前页面真实保存请求为准。
197
- - 写契约抓取脚本:
198
- - `scripts/capture_write_contract.py`
199
- - 对 `api` 层,如果同时改了 `api_proxy_entity_binding`,必须额外提供 binding 保存请求或 HAR 片段
200
- - 在没有抓到真实保存请求前:
201
- - 可以读取
202
- - 可以分析
203
- - 可以构造候选改动
204
- - 但不要在 skill 文档里提前硬编码未验证写链路
192
+ - 平台、实例、API 的最终保存接口与 payload 形状,必须以 typed CLI adapter 的 build 输出、operation plan、capability 和回读结果为准。
205
193
  - 标准保存链路必须走 typed CLI:
206
194
  - `bpmax-cli config api-platform build/submit/verify`
207
195
  - 提交前必须确认 submit payload 的 operation plan 只包含本次范围内的 platform / instance / api / response_binding 操作。
196
+ - 在 typed CLI adapter 不能给出明确写入计划前:
197
+ - 可以读取
198
+ - 可以分析
199
+ - 可以构造候选改动
200
+ - 但不得用页面会话请求、网络抓包或手工接口调用替代 typed CLI 写入链路
208
201
  - API 创建且带响应映射时,执行顺序固定为:
209
202
  - `api_proxy -> binding -> readback`
210
203
 
@@ -234,7 +227,7 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
234
227
  - 响应映射
235
228
  - 文档调试
236
229
  - 明确告诉用户本次读到的核心接口。
237
- - 如果抓到了真实保存请求,要明确说明保存是通过哪条真实页面链路完成的。
230
+ - 明确说明本次 typed CLI submit 的 operation plan、确认文本、回读 hash 和 verify 结果。
238
231
  - 如果做了文档页调试,要明确说明:
239
232
  - 用的是哪条文档页 URL
240
233
  - 选择了哪个实例环境
@@ -246,7 +239,7 @@ description: "用于在 BPMAX 的系统集成页面中创建或编辑集成平
246
239
  - 在 API 编辑页看到调试区就直接把它当唯一验收页。
247
240
  - 跳过文档调试页,不验证实例脚本是否真正参与请求。
248
241
  - 只改本地镜像,不核对线上真实对象。
249
- - 未抓真实保存请求,就先假设写接口路径和请求体形状。
242
+ - 绕过 typed CLI adapter 的 operation plan,就先假设写接口路径和请求体形状。
250
243
  - 只提交 `api_proxy`,却不提交或不回读 `api_proxy_entity_binding`。
251
244
  - 把实例专属签名、认证、包装逻辑直接写死进 API schema。
252
245
  - 只改 `response_schema`,却不核对 `api_proxy_entity_binding`。
@@ -1,4 +1,4 @@
1
1
  interface:
2
2
  display_name: "BPMAX API Platform Editor"
3
- short_description: "在浏览器里创建或编辑 BPMAX 集成平台、实例和 API 配置"
4
- default_prompt: "使用 $bpmax-api-platform-editor 根据当前浏览器系统集成页或系统 API 文档页,创建或编辑 BPMAX 集成平台、实例配置和 API 代理,并通过文档页完成调试验证。"
3
+ short_description: "通过 bpmax-cli typed config 创建或编辑 BPMAX 集成平台、实例和 API 配置"
4
+ default_prompt: "使用 $bpmax-api-platform-editor 通过 bpmax-cli typed config 创建或编辑 BPMAX 集成平台、实例配置和 API 代理,并通过线上接口回读完成调试验证。"
@@ -48,5 +48,5 @@
48
48
  - API 文档页:`/w:store_mgr/api-docs/system_api/18?system=dynamic`
49
49
 
50
50
  ## 说明
51
- - 页面读到的线上对象优先级高于本地 `think_api_*` 镜像。
52
- - 写接口未在本参考中硬编码;实际编辑时必须先抓页面真实保存请求。
51
+ - typed CLI 线上回读和只读页面验收优先级高于本地 `think_api_*` 镜像。
52
+ - 写接口未在本参考中硬编码;实际编辑时必须以 typed CLI adapter 的 build 输出、operation plan 和 verify/readback 为准。
@@ -5,7 +5,7 @@
5
5
  2. 检索 Mem0 和本地镜像,找已有平台、实例、API 骨架。
6
6
  3. 读取线上真实对象。
7
7
  4. 明确本次变更落在哪一层。
8
- 5. 以真实返回体或真实保存请求骨架构造改动。
8
+ 5. 以 typed CLI export/readback 的线上对象和 build 输出构造改动。
9
9
  6. 保存后立刻回读线上对象。
10
10
  7. 打开文档调试页完成真实调试。
11
11
  8. 必要时再查看调用日志页补充证据。
@@ -27,6 +27,6 @@
27
27
  - 文档调试页真实请求符合预期
28
28
 
29
29
  ## 暂未固化的内容
30
- - 平台、实例、API 的写接口路径和最终 payload 形状
30
+ - 平台、实例、API 的 typed CLI adapter 写入契约、operation plan 和 readback 字段
31
31
 
32
- 这些内容必须在实际保存动作发生时,从浏览器真实请求中提取,再按事实更新 skill。
32
+ 这些内容必须在 typed CLI build/submit/verify 链路中确认,再按事实更新 skill。不得从页面会话请求、网络抓包或手工接口调用中反推写入路径。
@@ -44,13 +44,44 @@ bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
44
44
 
45
45
  2. Matrix app:
46
46
 
47
+ 完整矩阵定义优先使用聚合生命周期命令。矩阵定义必须同时包含表单、`category=matrix` 流程、数据集、带 `ProjectDetailEdit` 修改操作的列表、筛选器和工作区绑定;流程至少保留一个名为“生效中/进行中”或 `status=1` 的维护环节:
48
+
49
+ ```bash
50
+ bpmax-cli matrix app create --workspace <workspace> --name "<matrix name>" \
51
+ --form-work <form-work.json> --flow-work <flow-work.json> \
52
+ --dataset-work <dataset-work.json> --list-work <list-work.json> \
53
+ --filter-work <filter-work.json> --format json
54
+ bpmax-cli matrix app create --workspace <workspace> --name "<matrix name>" \
55
+ --form-work <form-work.json> --flow-work <flow-work.json> \
56
+ --dataset-work <dataset-work.json> --list-work <list-work.json> \
57
+ --filter-work <filter-work.json> \
58
+ --confirm "create matrix app <matrix name> in <workspace>" --format json
59
+ bpmax-cli matrix app readback --workspace <workspace> --flow-type <matrix_flow_type> --format json
60
+ ```
61
+
62
+ 编辑矩阵定义时,用 typed config build 产物组成 batch manifest,再执行聚合更新;更新成功后命令会对完整矩阵对象图做 exact readback:
63
+
64
+ ```bash
65
+ bpmax-cli matrix app update --workspace <workspace> --flow-type <matrix_flow_type> --manifest <manifest.json> --format json
66
+ ```
67
+
68
+ 删除默认先 dry-run,确认对象图和删除顺序后才执行:
69
+
70
+ ```bash
71
+ bpmax-cli matrix app delete --workspace <workspace> --flow-type <matrix_flow_type> --format json
72
+ bpmax-cli matrix app delete --workspace <workspace> --flow-type <matrix_flow_type> \
73
+ --confirm "delete matrix app <matrix_flow_type> from <workspace>" --format json
74
+ ```
75
+
76
+ `matrix app create/update/delete/readback` 是完整维护入口。下面的 `config flow-app create` 只保留为通用流程应用底层能力,单独使用时不会创建矩阵数据集、列表或筛选器:
77
+
47
78
  ```bash
48
79
  bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>"
49
80
  bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>" --confirm "create flow-app <matrix name> in <workspace>" --evidence-out .codex/tmp/matrix-target-context.csv --response-out .codex/tmp/matrix-flow-app-create.response.json
50
81
  bpmax-cli config flow-app context --workspace <workspace> --flow <matrix_flow_type> --evidence-out .codex/tmp/matrix-target-context.csv --format json
51
82
  ```
52
83
 
53
- `flow-app create` 确认执行必须同时保留 `--response-out` 和 `--evidence-out`。`config flow-app context` 的 `target_context.evidence_status` 必须是 `verified`,且 `missing_context` 必须为空,才允许进入规则记录 seed、主流程 `matrix_owner` 接入或导航配置。该 evidence 是矩阵应用的 apply-ready 上下文,必须记录 `flow_type`、`flow_template_id`、`form_template_id`、`form_template_draft_id`、`workspace_key` 和 `workspace_readback_hash`。
84
+ 若使用底层 `flow-app create`,确认执行必须同时保留 `--response-out` 和 `--evidence-out`。`config flow-app context` 的 `target_context.evidence_status` 必须是 `verified`,且 `missing_context` 必须为空,才允许进入规则记录 seed、主流程 `matrix_owner` 接入或导航配置。该 evidence 是矩阵应用的 apply-ready 上下文,必须记录 `flow_type`、`flow_template_id`、`form_template_id`、`form_template_draft_id`、`workspace_key` 和 `workspace_readback_hash`。
54
85
 
55
86
  3. Matrix rule records:
56
87
 
@@ -69,6 +100,13 @@ bpmax-cli project create --profile <profile> --flow-type <matrix_flow_type> --js
69
100
 
70
101
  5. Verification:
71
102
 
103
+ Submit 前先做分层 lint/readback:
104
+
105
+ ```bash
106
+ bpmax-cli matrix app inspect --flow-type <matrix_flow_type> --workspace <workspace> --profile <profile> --format json
107
+ bpmax-cli matrix consumer lint --flow-type <business_flow_type> --node <node_id> --profile <profile> --format json
108
+ ```
109
+
72
110
  - Matrix app is visible in the target workspace.
73
111
  - Matrix rule project exists online with real approver fields.
74
112
  - Business flow create/submit reaches the matrix-owned step.
@@ -79,7 +117,21 @@ bpmax-cli project create --profile <profile> --flow-type <matrix_flow_type> --js
79
117
  bpmax-cli matrix owner-resolve --profile <profile> --flow-type <business_flow_type> --node <node_id> --project-id <project_id> --format json
80
118
  ```
81
119
 
82
- The diagnostic only reports node-side `matrix_owner` config paths and project form context. It does not create matrix rule records and does not replace browser/runtime E2E verification.
120
+ `owner-resolve` 必须调用平台 `/project/predicted_path`,不再只做静态配置解析。它会返回指定节点的 `predicted_owners`,但仍不代替真实多用户页面验收。
121
+
122
+ 最终聚合 gate 必须一次对账矩阵应用、表单/列表/筛选模板、workspace 绑定、线上规则记录、审批人有效状态、消费节点和 owner resolver:
123
+
124
+ ```bash
125
+ bpmax-cli matrix verify \
126
+ --matrix-flow-type <matrix_flow_type> \
127
+ --consumer-flow-type <business_flow_type> \
128
+ --node <node_id> --project-id <project_id> \
129
+ --approver-field <owner_field> \
130
+ --workspace <workspace> \
131
+ --profile <profile> --format json
132
+ ```
133
+
134
+ 任一层缺失都不得宣称“审批矩阵已可用”。
83
135
 
84
136
  ## Stop Conditions
85
137
 
@@ -19,6 +19,7 @@ Use these skills as needed; this skill orchestrates them and does not replace th
19
19
  - `bpmax-memory-protocol`: read project/domain memory before non-trivial BPMAX blueprint work and store important decisions afterward.
20
20
  - `lark-doc`: create, fetch, update, and verify Feishu Docx documents. Always use `--api-version v2`.
21
21
  - `lark-whiteboard`: inspect or update existing Feishu whiteboards when a diagram must be edited after creation.
22
+ - `bpmax-approval-matrix`: use when approval, handler, CC, escalation, or child-flow routing depends on maintainable multi-dimensional rules; distinguish blueprint decision tables from an implemented BPMAX matrix application.
22
23
  - BPMAX repo/API skills: inspect existing flows, forms, data sets, lists, details, permissions, navigation, and integrations before writing implementation claims.
23
24
 
24
25
  ## Workflow
@@ -26,10 +27,12 @@ Use these skills as needed; this skill orchestrates them and does not replace th
26
27
  1. **Ground the inputs**
27
28
  - Read all user-provided docs, screenshots, Feishu links, local files, and BPMAX config/API sources.
28
29
  - Search Mem0 for prior project terms, naming decisions, flow ownership, and forbidden wording.
30
+ - Extract every explicit user adjustment separately from source facts. Preserve accepted human modeling decisions; when they conflict with a source artifact, expose the conflict and final decision instead of silently reverting either side.
29
31
  - Extract business scope, target users, main lifecycle, related flows, public support objects, AI/agent boundaries, and acceptance criteria.
30
32
 
31
33
  2. **Draft the blueprint**
32
34
  - Use `references/blueprint-structure.md` for the document skeleton.
35
+ - Use `references/source-traceability-and-flow-modeling.md` to build the source-logic mapping, manual-adjustment register, main-flow stage map, parallel-scenario modeling decisions, approval/matrix assessment, PC/H5 navigation, and permission design before drafting flow chapters.
33
36
  - Treat flows as the primary structure. Data sets, forms, lists, details, dashboards, automations, and permissions must attach to an owning flow unless they are genuinely shared support objects.
34
37
  - Use `references/per-flow-required-structure.md` for every flow section. Each flow must be independently complete.
35
38
  - Put each flow diagram in a Feishu whiteboard block such as `<whiteboard type="mermaid">...</whiteboard>`. Do not use Mermaid code blocks in final docs.
@@ -52,11 +55,13 @@ Use these skills as needed; this skill orchestrates them and does not replace th
52
55
  ```
53
56
  If the skill was installed under another agent root, set `BPMAX_BLUEPRINT_DOC_WORKFLOW_SKILL_DIR` to that skill directory before running the lint.
54
57
  - If project-specific wording matters, add `--require-term` and `--forbid-term`.
58
+ - Export and visually inspect every whiteboard against the source-logic mapping. A non-empty resource block or successful lint does not prove branch, sequence, parallel launch, or merge correctness.
55
59
  - Fix every lint error and rerun until it passes, unless the user explicitly accepts a known exception.
56
60
 
57
61
  5. **Final response**
58
62
  - Return the Feishu document title and URL.
59
- - Summarize the flows covered, whiteboard diagram count, and lint result.
63
+ - List every flow with a `complete`, `incomplete`, or `blocked` conclusion; summarize whiteboard count, visual inspection, and lint result.
64
+ - Summarize preserved manual adjustments and any conflicts with source artifacts.
60
65
  - State any business assumptions or unresolved confirmation items.
61
66
  - Mention Feishu/lark auth or version blockers if they affected delivery.
62
67
 
@@ -69,7 +74,14 @@ Use these skills as needed; this skill orchestrates them and does not replace th
69
74
  - Flow nodes must represent business-meaningful action/state changes that require a human or AI Agent to handle. A valid node should make clear who/what handles it and what business state changes after it.
70
75
  - Apply Occam's razor to workflow design: keep diagrams and node tables as simple as possible, avoid redundant steps, and do not make pure system automation, notifications, data sync, field copying, or background script execution a standalone flow node. Put these in the automation/writeback column of the relevant business node instead.
71
76
  - Main-flow diagrams must not expand child-flow internals. Represent each child flow as a special-styled node inside the parent flow, such as a `subroutine` node or a node with a distinct class/style, and document the child-flow details only in that child flow's own complete section.
77
+ - When the source lifecycle spans multiple business phases, the main flow must be divided into named stages with explicit entry, exit, and stage-completion conditions.
78
+ - Every parallel source scenario must have an explicit modeling decision: reuse one parameterized child flow, create separate child-flow types, or keep it in the parent flow. The decision must state participant differences, data/form differences, lifecycle differences, merge conditions, and the reason.
79
+ - Blueprint routing/decision matrices are mandatory when conditions affect approvers, handlers, child-flow creation, escalation, merge, or writeback. A formal BPMAX matrix application is optional and must not be claimed as online without implementation/readback evidence.
80
+ - Every flow must have separate PC and H5 navigation rows. An unsupported terminal still requires an explicit non-applicability row with hidden-entry behavior and acceptance.
81
+ - Permission design must cover create, view, edit, delete, submit, approve, navigation visibility, and field visibility/editability by step and role. Unauthorized behavior must be explicit.
82
+ - Source-node coverage, manual adjustments, stage decomposition, parallel modeling, and matrix assessment must be documented in tables and reviewed before claiming source completeness.
72
83
  - Form templates must only contain fields that users or AI Agents need to view, fill, confirm, or edit in that form. Do not put system-written state fields, read-only project references, auto-created child-flow links, or internal relationship fields in business forms; document them in the flow data set, automation, and writeback sections instead.
84
+ - Per-flow creation, node, form, data set, view, automation, completion, and implementation-boundary details must be tables, not paragraph-only summaries.
73
85
  - AI/agent content must include trigger, input, output, human confirmation, and fallback. AI must not be described as final approver for key business decisions.
74
86
  - Do not park business-specific data sets/forms/lists globally. Shared support sections are for genuinely shared objects only.
75
87
  - Default implementation boundary labels are exactly:
@@ -80,8 +92,9 @@ Use these skills as needed; this skill orchestrates them and does not replace th
80
92
  ## References
81
93
 
82
94
  - Read `references/blueprint-structure.md` before drafting a new blueprint or restructuring a document.
95
+ - Read `references/source-traceability-and-flow-modeling.md` before interpreting a source flowchart or applying user modeling adjustments.
83
96
  - Read `references/per-flow-required-structure.md` before writing or lint-fixing flow sections.
84
97
 
85
98
  ## Lint Script
86
99
 
87
- `scripts/lint_blueprint_doc.py` checks a fetched Feishu Docx JSON or XML file for blueprint structure, per-flow completeness, whiteboard diagrams, forbidden Mermaid code blocks, implementation boundary labels, AI confirmation/fallback language, and project-specific required/forbidden terms.
100
+ `scripts/lint_blueprint_doc.py` checks a fetched Feishu Docx JSON or XML file for source traceability, manual-adjustment records, stage/parallel/matrix semantics, separate PC/H5 navigation, permission and field-access coverage, per-flow detail tables, whiteboard diagrams, forbidden Mermaid code blocks, implementation boundary labels, AI confirmation/fallback language, and project-specific required/forbidden terms.
@@ -15,6 +15,11 @@ Use this structure for BPMAX blueprint方案 documents unless the user provides
15
15
 
16
16
  3. **总体业务架构**
17
17
  - Main lifecycle.
18
+ - Source flow logic mapping and completeness review.
19
+ - Manual adjustment register.
20
+ - Main-flow stage map.
21
+ - Parallel-scenario modeling decisions.
22
+ - Approval/decision matrix assessment.
18
23
  - Related flows.
19
24
  - Public support objects.
20
25
  - BPMAX configuration object map.
@@ -30,6 +35,8 @@ Use this structure for BPMAX blueprint方案 documents unless the user provides
30
35
  - The first flow should be the end-to-end main lifecycle when the business has one.
31
36
 
32
37
  6. **权限、导航、集成与自动化**
38
+ - A `PC/H5 导航设计` table with separate PC and H5 rows for every flow, including target users, entry/menu, route/page, visibility permission, and acceptance.
39
+ - A `权限设计` table covering flow/project actions, field visibility/editability by step and role, navigation visibility, denied/read-only behavior, and acceptance.
33
40
  - Cross-flow permission rules, menus, Feishu/OpenClaw/API integration, automation logging, retry/fallback.
34
41
  - Flow-specific automation remains in the owning flow section.
35
42
 
@@ -48,6 +55,7 @@ Use this structure for BPMAX blueprint方案 documents unless the user provides
48
55
 
49
56
  - Use Docx XML through `lark-cli docs ... --api-version v2`.
50
57
  - Use tables for field dictionaries, node configuration, writeback rules, and implementation boundaries.
58
+ - Use tables for source traceability, manual adjustments, main-flow stages, parallel modeling decisions, approval/decision matrix assessment, PC/H5 navigation, permission design, and all per-flow implementation details.
51
59
  - Use `<whiteboard type="mermaid">...</whiteboard>` or another Feishu whiteboard resource block for process diagrams.
52
60
  - Avoid code blocks for diagrams in final output.
53
61
  - When updating existing docs, prefer block-level precise updates and preserve existing resource tokens.
@@ -22,6 +22,7 @@ Every BPMAX blueprint flow chapter must be independently complete. A reader shou
22
22
  - Related/external flow links when needed.
23
23
 
24
24
  3. **开始节点与创建表单**
25
+ - Use a table.
25
26
  - Start node name.
26
27
  - Creation form name.
27
28
  - Creator role.
@@ -40,6 +41,7 @@ Every BPMAX blueprint flow chapter must be independently complete. A reader shou
40
41
  - Do not include system-only fields in form templates. Examples that belong in data set/writeback notes instead of forms: `当前阶段` with source `系统写入`, `关联选题子流程` project references created automatically, `关联筹备子流程` project references created automatically, read-only child-flow links, internal relationship IDs, and other fields whose editable role is only `系统`.
41
42
 
42
43
  6. **流程数据集**
44
+ - Use a table.
43
45
  - Data set purpose.
44
46
  - Key fields.
45
47
  - Status fields.
@@ -49,14 +51,22 @@ Every BPMAX blueprint flow chapter must be independently complete. A reader shou
49
51
  - System-written state fields, child-flow references, parent-flow references, internal relationship IDs, and other read-only linkage fields should be described here, not in the form template section.
50
52
 
51
53
  7. **列表/筛选/详情/看板入口**
54
+ - Use a table.
55
+ - Design PC and H5 separately. If one terminal is not applicable, state the reason and hidden/blocked behavior explicitly.
52
56
  - Target users.
53
57
  - List columns or cards.
54
58
  - Filters.
55
59
  - Detail page sections.
56
60
  - Dashboard or operational view if applicable.
57
61
  - Action buttons.
62
+ - Navigation visibility and the matching row in the document-level `PC/H5 导航设计` table.
63
+
64
+ ### Permission Coverage
65
+
66
+ Every flow must also appear in the document-level `权限设计` table. Cover create, view, edit, delete, submit, approve, and navigation permissions; field visibility/editability by flow step and user/role; and the hidden, read-only, or forbidden behavior for unauthorized users.
58
67
 
59
68
  8. **自动化与 AI/agent**
69
+ - Use a table.
60
70
  - Trigger point.
61
71
  - Input data.
62
72
  - Output draft/suggestion/card/writeback.
@@ -65,12 +75,14 @@ Every BPMAX blueprint flow chapter must be independently complete. A reader shou
65
75
  - Audit log requirements.
66
76
 
67
77
  9. **办结口径与下游联动**
78
+ - Use a table.
68
79
  - Completion criteria.
69
80
  - Final status.
70
81
  - Written history/status fields.
71
82
  - Downstream flows or views affected.
72
83
 
73
84
  10. **BPMAX 实现边界**
85
+ - Use a table.
74
86
  - Use exactly these labels:
75
87
  - `BPMAX 配置可实现`
76
88
  - `配置 + 脚本/API/现有插件`
@@ -96,3 +108,4 @@ Every BPMAX blueprint flow chapter must be independently complete. A reader shou
96
108
  - A diagram that uses configuration objects as main business states.
97
109
  - A diagram that turns background automation into separate business nodes.
98
110
  - A workflow with redundant confirmation, transfer, or waiting nodes that do not change business state or require human/AI Agent handling.
111
+ - Paragraph-only summaries for creation, nodes, forms, data sets, views, automation, completion, or implementation boundaries.
@@ -0,0 +1,23 @@
1
+ <title>缺少建模审计表示例</title>
2
+ <h1>1. 蓝图定位与目标</h1>
3
+ <h1>2. BPMAX 实施总规则</h1>
4
+ <h1>3. 总体业务架构</h1>
5
+ <h1>4. 公共支撑配置</h1>
6
+ <h1>5. 流程一:主流程</h1>
7
+ <h2>5.1 业务目标与适用场景</h2>
8
+ <h2>5.2 流程模板</h2>
9
+ <whiteboard type="mermaid">flowchart TD
10
+ A[开始:创建申请] --&gt; B[完成]</whiteboard>
11
+ <p>创建表单。</p>
12
+ <h2>5.3 开始节点与创建表单</h2><table><tr><td>创建</td></tr></table>
13
+ <h2>5.4 环节配置</h2><table><tr><td>处理</td></tr></table>
14
+ <h2>5.5 表单模板</h2><table><tr><td>字段</td></tr></table>
15
+ <h2>5.6 流程数据集</h2><table><tr><td>写回</td></tr></table>
16
+ <h2>5.7 列表/筛选/详情/看板入口</h2><table><tr><td>列表</td></tr></table>
17
+ <h2>5.8 自动化与 AI/agent</h2><table><tr><td>触发、输入、输出、人工确认、异常兜底</td></tr></table>
18
+ <h2>5.9 办结口径与下游联动</h2><table><tr><td>办结归档</td></tr></table>
19
+ <h2>5.10 BPMAX 实现边界</h2><table><tr><td>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务</td></tr></table>
20
+ <h1>6. BPMAX 可配置能力与需定制能力边界</h1>
21
+ <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
22
+ <h1>7. 一期验收路径、风险与待确认事项</h1>
23
+ <p>验收、风险、待确认。</p>
@@ -0,0 +1,27 @@
1
+ <title>段落化流程细节示例</title>
2
+ <h1>1. 蓝图定位与目标</h1>
3
+ <h1>2. BPMAX 实施总规则</h1>
4
+ <h1>3. 总体业务架构</h1>
5
+ <h2>3.1 源流程逻辑映射与完整性核对</h2><table><tr><td>已覆盖</td></tr></table>
6
+ <h2>3.2 人工调整记录</h2><table><tr><td>无人工调整</td></tr></table>
7
+ <h2>3.3 主流程阶段划分</h2><table><tr><td>阶段一</td></tr></table>
8
+ <h2>3.4 并行场景建模决策</h2><table><tr><td>无并行场景</td></tr></table>
9
+ <h2>3.5 审批/决策矩阵评估</h2><table><tr><td>蓝图规则矩阵;正式 BPMAX 矩阵不采用</td></tr></table>
10
+ <h1>4. 公共支撑配置</h1>
11
+ <h1>5. 流程一:主流程</h1>
12
+ <h2>5.1 业务目标与适用场景</h2>
13
+ <h2>5.2 流程模板</h2>
14
+ <whiteboard type="mermaid">flowchart TD
15
+ A[开始:创建申请] --&gt; B[完成]</whiteboard>
16
+ <h2>5.3 开始节点与创建表单</h2><p>创建表单。</p>
17
+ <h2>5.4 环节配置</h2><p>环节由负责人处理。</p>
18
+ <h2>5.5 表单模板</h2><p>字段为名称。</p>
19
+ <h2>5.6 流程数据集</h2><p>数据集负责写回。</p>
20
+ <h2>5.7 列表/筛选/详情/看板入口</h2><p>提供列表、筛选、详情和看板入口。</p>
21
+ <h2>5.8 自动化与 AI/agent</h2><p>触发、输入、输出、人工确认、异常兜底。</p>
22
+ <h2>5.9 办结口径与下游联动</h2><p>办结后归档。</p>
23
+ <h2>5.10 BPMAX 实现边界</h2><p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
24
+ <h1>6. BPMAX 可配置能力与需定制能力边界</h1>
25
+ <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
26
+ <h1>7. 一期验收路径、风险与待确认事项</h1>
27
+ <p>验收、风险、待确认。</p>
@@ -5,6 +5,16 @@
5
5
  <p>流程优先,流程图使用飞书画板。</p>
6
6
  <h1>3. 总体业务架构</h1>
7
7
  <p>主流程与联动流程。</p>
8
+ <h2>3.1 源流程逻辑映射与完整性核对</h2>
9
+ <table><tr><th>源节点</th><th>蓝图位置</th><th>状态</th></tr><tr><td>申请</td><td>主流程阶段一</td><td>已覆盖</td></tr></table>
10
+ <h2>3.2 人工调整记录</h2>
11
+ <table><tr><th>调整</th><th>最终决策</th></tr><tr><td>无人工调整</td><td>按源流程建模</td></tr></table>
12
+ <h2>3.3 主流程阶段划分</h2>
13
+ <table><tr><th>阶段</th><th>入口</th><th>出口</th></tr><tr><td>阶段一:申请处理</td><td>提交申请</td><td>处理完成</td></tr></table>
14
+ <h2>3.4 并行场景建模决策</h2>
15
+ <table><tr><th>场景</th><th>建模选择</th><th>原因</th></tr><tr><td>辅助处理</td><td>拆分为不同子流程</td><td>独立生命周期</td></tr></table>
16
+ <h2>3.5 审批/决策矩阵评估</h2>
17
+ <table><tr><th>决策范围</th><th>条件</th><th>处理人/审批人来源</th><th>结果/下一步</th><th>维护责任人</th><th>蓝图规则矩阵</th><th>正式 BPMAX 矩阵</th><th>运行态验收</th></tr><tr><td>处理人路由</td><td>申请类型</td><td>负责人角色</td><td>进入处理环节</td><td>流程管理员</td><td>需要,落实为流程条件</td><td>本期不采用</td><td>真实用户 owner 解析与页面审批</td></tr></table>
8
18
  <h1>4. 公共支撑配置</h1>
9
19
  <p>共享组织、用户模型和自动化日志。</p>
10
20
  <h1>5. 流程一:主流程</h1>
@@ -13,43 +23,50 @@
13
23
  <h2>5.2 流程模板</h2>
14
24
  <whiteboard type="mermaid">flowchart TD
15
25
  A[开始节点:创建申请表单] --&gt; B[处理]</whiteboard>
16
- <p>开始节点:创建申请表单。创建表单由申请人填写。</p>
17
- <h2>5.3 环节配置说明</h2>
26
+ <h2>5.3 开始节点与创建表单</h2>
27
+ <table><tr><th>开始节点</th><th>创建表单</th><th>角色</th></tr><tr><td>创建申请</td><td>申请表单</td><td>申请人</td></tr></table>
28
+ <h2>5.4 环节配置说明</h2>
18
29
  <table><tr><th>环节</th><th>角色</th></tr><tr><td>处理</td><td>负责人</td></tr></table>
19
- <h2>5.4 表单模板</h2>
30
+ <h2>5.5 表单模板</h2>
20
31
  <table><tr><th>字段</th><th>类型</th></tr><tr><td>名称</td><td>文本</td></tr></table>
21
- <h2>5.5 流程数据集</h2>
22
- <p>流程数据集包含状态、关联字段和写回规则。</p>
23
- <h2>5.6 列表/筛选/详情/看板入口</h2>
24
- <p>列表、筛选、详情、看板、入口。</p>
25
- <h2>5.7 自动化与 AI/agent</h2>
26
- <p>AI 触发、输入、输出、人工确认、异常兜底。</p>
27
- <h2>5.8 办结口径与下游联动</h2>
28
- <p>办结后归档并下游联动。</p>
29
- <h2>5.9 BPMAX 实现边界</h2>
30
- <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
32
+ <h2>5.6 流程数据集</h2>
33
+ <table><tr><th>字段组</th><th>写回</th></tr><tr><td>状态</td><td>处理完成</td></tr></table>
34
+ <h2>5.7 列表/筛选/详情/看板入口</h2>
35
+ <table><tr><th>入口</th><th>用户</th></tr><tr><td>申请列表</td><td>申请人</td></tr></table>
36
+ <h2>5.8 自动化与 AI/agent</h2>
37
+ <table><tr><th>触发</th><th>输入</th><th>输出</th><th>人工确认</th><th>异常兜底</th></tr><tr><td>提交后</td><td>申请数据</td><td>建议</td><td>负责人</td><td>转人工</td></tr></table>
38
+ <h2>5.9 办结口径与下游联动</h2>
39
+ <table><tr><th>办结</th><th>下游联动</th></tr><tr><td>处理完成</td><td>归档</td></tr></table>
40
+ <h2>5.10 BPMAX 实现边界</h2>
41
+ <table><tr><th>BPMAX 配置可实现</th><th>配置 + 脚本/API/现有插件</th><th>需定制插件/外部服务</th></tr><tr><td>流程</td><td>自动化</td><td>无</td></tr></table>
31
42
  <h1>6. 流程二:辅助流程</h1>
32
43
  <h2>6.1 业务目标与适用场景</h2>
33
44
  <p>业务目标与适用场景。</p>
34
45
  <h2>6.2 流程模板</h2>
35
46
  <whiteboard type="mermaid">flowchart TD
36
47
  A[开始节点:创建辅助表单] --&gt; B[办结]</whiteboard>
37
- <p>开始节点:创建辅助表单。创建表单由管理员填写。</p>
38
- <h2>6.3 环节配置说明</h2>
48
+ <h2>6.3 开始节点与创建表单</h2>
49
+ <table><tr><th>开始节点</th><th>创建表单</th><th>角色</th></tr><tr><td>创建辅助任务</td><td>辅助表单</td><td>管理员</td></tr></table>
50
+ <h2>6.4 环节配置说明</h2>
39
51
  <table><tr><th>环节</th><th>角色</th></tr><tr><td>办结</td><td>管理员</td></tr></table>
40
- <h2>6.4 表单模板</h2>
52
+ <h2>6.5 表单模板</h2>
41
53
  <table><tr><th>字段</th><th>类型</th></tr><tr><td>名称</td><td>文本</td></tr></table>
42
- <h2>6.5 流程数据集</h2>
43
- <p>流程数据集包含状态和写回规则。</p>
44
- <h2>6.6 列表/筛选/详情/看板入口</h2>
45
- <p>列表、筛选、详情、看板、入口。</p>
46
- <h2>6.7 自动化与 AI/agent</h2>
47
- <p>AI 触发、输入、输出、人工确认、异常兜底。</p>
48
- <h2>6.8 办结口径与下游联动</h2>
49
- <p>办结口径和下游联动。</p>
50
- <h2>6.9 BPMAX 实现边界</h2>
51
- <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
52
- <h1>7. BPMAX 可配置能力与需定制能力边界</h1>
54
+ <h2>6.6 流程数据集</h2>
55
+ <table><tr><th>字段组</th><th>写回</th></tr><tr><td>状态</td><td>辅助流程完成</td></tr></table>
56
+ <h2>6.7 列表/筛选/详情/看板入口</h2>
57
+ <table><tr><th>入口</th><th>用户</th></tr><tr><td>辅助列表</td><td>管理员</td></tr></table>
58
+ <h2>6.8 自动化与 AI/agent</h2>
59
+ <table><tr><th>触发</th><th>输入</th><th>输出</th><th>人工确认</th><th>异常兜底</th></tr><tr><td>创建后</td><td>辅助数据</td><td>建议</td><td>管理员</td><td>转人工</td></tr></table>
60
+ <h2>6.9 办结口径与下游联动</h2>
61
+ <table><tr><th>办结</th><th>下游联动</th></tr><tr><td>辅助任务完成</td><td>回写主流程</td></tr></table>
62
+ <h2>6.10 BPMAX 实现边界</h2>
63
+ <table><tr><th>BPMAX 配置可实现</th><th>配置 + 脚本/API/现有插件</th><th>需定制插件/外部服务</th></tr><tr><td>子流程</td><td>回写</td><td>无</td></tr></table>
64
+ <h1>7. 权限与导航设计</h1>
65
+ <h2>7.1 PC/H5 导航设计</h2>
66
+ <table><tr><th>流程</th><th>终端</th><th>目标用户</th><th>入口/菜单</th><th>路由/页面</th><th>可见权限</th><th>验收</th></tr><tr><td>主流程</td><td>PC</td><td>申请人、负责人</td><td>工作台/申请列表</td><td>/project?flow_type=main</td><td>具备流程查看权限时显示</td><td>有权限用户可进入,无权限用户隐藏</td></tr><tr><td>主流程</td><td>H5</td><td>申请人、负责人</td><td>移动工作台/申请列表</td><td>/h5/project?flow_type=main</td><td>具备流程查看权限时显示</td><td>移动端可进入并完成查看</td></tr><tr><td>辅助流程</td><td>PC</td><td>管理员</td><td>工作台/辅助列表</td><td>/project?flow_type=aux</td><td>管理员角色可见</td><td>管理员可进入,其他用户隐藏</td></tr><tr><td>辅助流程</td><td>H5</td><td>不适用:仅后台管理员处理</td><td>不提供 H5 入口</td><td>不适用:仅 PC 后台页面</td><td>H5 隐藏</td><td>移动端无入口且不能访问</td></tr></table>
67
+ <h2>7.2 权限设计</h2>
68
+ <table><tr><th>流程</th><th>对象/字段</th><th>环节</th><th>用户/角色</th><th>可见</th><th>可编辑</th><th>操作权限</th><th>验收</th></tr><tr><td>主流程</td><td>流程项目与导航</td><td>全流程</td><td>申请人、负责人、管理员</td><td>按角色和项目关系可见</td><td>按当前环节只读或可编辑</td><td>创建、查看、编辑、删除、提交、审批、导航均按角色授权;无权限禁止</td><td>分别使用有权限与无权限用户验证</td></tr><tr><td>主流程</td><td>申请表字段</td><td>创建、处理</td><td>申请人、负责人</td><td>字段按环节可见</td><td>申请人创建时可编辑,负责人处理时部分字段只读</td><td>字段查看与编辑受控;无权限字段隐藏</td><td>逐环节验证字段可见和可编辑状态</td></tr><tr><td>辅助流程</td><td>流程项目与导航</td><td>全流程</td><td>管理员</td><td>仅管理员可见</td><td>处理环节可编辑</td><td>创建、查看、编辑、删除、提交、审批、导航均仅管理员可用;其他用户禁止</td><td>管理员成功、普通用户无权限</td></tr><tr><td>辅助流程</td><td>辅助表字段</td><td>创建、办结</td><td>管理员</td><td>字段仅管理员可见</td><td>创建时可编辑,办结后只读</td><td>字段查看与编辑受控;其他用户字段隐藏</td><td>验证办结前后字段权限变化</td></tr></table>
69
+ <h1>8. BPMAX 可配置能力与需定制能力边界</h1>
53
70
  <p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
54
- <h1>8. 一期验收路径、风险与待确认事项</h1>
71
+ <h1>9. 一期验收路径、风险与待确认事项</h1>
55
72
  <p>验收、风险、待确认。</p>