bpmax-cli 0.2.1-beta.9 → 0.2.1-beta.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -7
- package/dist/bin.js +45782 -12836
- package/dist/bin.js.map +1 -1
- package/package.json +12 -5
- package/scripts/install-skills.mjs +27 -60
- package/scripts/run-source-cli.mjs +145 -0
- package/skills/bpmax-ai-taskbook/SKILL.md +17 -1
- package/skills/bpmax-ai-taskbook/references/blueprint-taskbook-gates.md +141 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +43 -3
- package/skills/bpmax-api-platform-editor/SKILL.md +24 -31
- package/skills/bpmax-api-platform-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-api-platform-editor/references/platform-api-map.md +2 -2
- package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +3 -3
- package/skills/bpmax-approval-matrix/SKILL.md +54 -2
- package/skills/bpmax-blueprint-doc-workflow/SKILL.md +38 -5
- package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +24 -8
- package/skills/bpmax-blueprint-doc-workflow/references/business-language.md +74 -0
- package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +13 -0
- package/skills/bpmax-blueprint-doc-workflow/references/review-and-confirmation-dialogue.md +70 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-modeling-review.xml +23 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-review-record.xml +72 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-paragraph-flow-details.xml +27 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-pass.xml +59 -35
- package/skills/bpmax-blueprint-doc-workflow/references/sample-system-identifier.xml +79 -0
- package/skills/bpmax-blueprint-doc-workflow/references/source-traceability-and-flow-modeling.md +115 -0
- package/skills/bpmax-blueprint-doc-workflow/scripts/lint_blueprint_doc.py +586 -5
- package/skills/bpmax-bug-reporting/SKILL.md +72 -0
- package/skills/bpmax-builder-shared/SKILL.md +1 -0
- package/skills/bpmax-builder-shared/configuration-impact-review.md +76 -0
- package/skills/bpmax-builder-shared/template_script_hard_rules.py +3 -1
- package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +16 -0
- package/skills/bpmax-business-skill/SKILL.md +3 -1
- package/skills/bpmax-cli/SKILL.md +46 -0
- package/skills/bpmax-config-latest/SKILL.md +4 -0
- package/skills/bpmax-console-template-editor/SKILL.md +113 -523
- package/skills/bpmax-console-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-console-template-editor/references/full-detail-guide.md +45 -0
- package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +13 -12
- package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +299 -78
- package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +344 -30
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +131 -594
- package/skills/bpmax-dataset-field-template-editor/references/full-detail-guide.md +570 -0
- package/skills/bpmax-dataset-field-template-editor/references/nested-field-patterns.md +8 -8
- package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +1 -1
- package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +11 -77
- package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +4 -57
- package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +2 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +4 -78
- package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +3 -89
- package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +14 -0
- package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +2 -0
- package/skills/bpmax-dataset-template-editor/SKILL.md +123 -778
- package/skills/bpmax-dataset-template-editor/references/dataset-script-runtime-matrix.md +11 -0
- package/skills/bpmax-dataset-template-editor/references/full-detail-guide.md +753 -0
- package/skills/bpmax-dataset-template-editor/references/runtime-gotchas.md +12 -0
- package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +1 -0
- package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +2 -2
- package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +9 -90
- package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +1 -2
- package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +8 -1
- package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +6 -40
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +18 -4
- package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +2 -2
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +13 -9
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +174 -546
- package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +2 -3
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +181 -15
- package/skills/bpmax-e2e-flow-test-operator/references/browser-action-dsl.md +169 -0
- package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +15 -7
- package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +589 -0
- package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +12 -8
- package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +4 -4
- package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +1 -1
- package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +3 -1
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +7 -5
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +2 -2
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +5 -1
- package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +71 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/SKILL.md +64 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/agents/openai.yaml +7 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/automation-generation-pipeline.md +33 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/autonomous-execution.md +40 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/batch-generation-and-execution.md +17 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/browser-action-runner.md +19 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/browser-recording-and-replay.md +95 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/form-script-generation.md +41 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/identity-and-failure-routing.md +92 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/multi-request-mutation.md +9 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/scenario-coverage-generation.md +17 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/scoped-execution.md +13 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/step-restartability-and-state.md +23 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-assets-and-evidence.md +9 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-data-and-selector-contract.md +51 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-preflight-and-confirmation.md +32 -0
- package/skills/bpmax-filter-template-editor/SKILL.md +114 -551
- package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +18 -18
- package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +21 -0
- package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +29 -26
- package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +19 -2
- package/skills/bpmax-filter-template-editor/references/full-detail-guide.md +56 -0
- package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +10 -9
- package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +7 -57
- package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +4 -48
- package/skills/bpmax-flow/SKILL.md +2 -0
- package/skills/bpmax-flow-detail-template-editor/SKILL.md +53 -0
- package/skills/bpmax-flow-template-editor/SKILL.md +140 -1137
- package/skills/bpmax-flow-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-flow-template-editor/references/diff-strategy.md +3 -3
- package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +9 -9
- package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +9 -1
- package/skills/bpmax-flow-template-editor/references/full-detail-guide.md +1162 -0
- package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +1 -1
- package/skills/bpmax-flow-template-editor/references/message-card-professional-standard.md +234 -0
- package/skills/bpmax-flow-template-editor/references/payload-checklist.md +2 -0
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +17 -0
- package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +8 -3
- package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +7 -7
- package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +2 -2
- package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +12 -2
- package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +7 -23
- package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +17 -0
- package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +1 -1
- package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +19 -75
- package/skills/bpmax-form-template-editor/SKILL.md +138 -1151
- package/skills/bpmax-form-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-form-template-editor/references/dynamic-field-state.md +167 -0
- package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +51 -51
- package/skills/bpmax-form-template-editor/references/full-detail-guide.md +1115 -0
- package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +4 -4
- package/skills/bpmax-form-template-editor/references/payload-checklist.md +3 -1
- package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +6 -0
- package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +8 -0
- package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +42 -19
- package/skills/bpmax-functional-test-design/LICENSE.upstream +24 -0
- package/skills/bpmax-functional-test-design/SKILL.md +80 -0
- package/skills/bpmax-functional-test-design/agents/openai.yaml +4 -0
- package/skills/bpmax-functional-test-design/references/bpmax-test-suite-output.md +95 -0
- package/skills/bpmax-functional-test-design/references/decision-table-testing.md +50 -0
- package/skills/bpmax-functional-test-design/references/domain-testing.md +43 -0
- package/skills/bpmax-functional-test-design/references/state-transition-testing.md +47 -0
- package/skills/bpmax-functional-test-design/references/technique-selection.md +38 -0
- package/skills/bpmax-functional-test-design/references/use-case-testing.md +55 -0
- package/skills/bpmax-group-model-editor/SKILL.md +24 -0
- package/skills/bpmax-home-portal-editor/SKILL.md +81 -0
- package/skills/bpmax-icon-catalog/SKILL.md +18 -0
- package/skills/bpmax-icon-catalog/agents/openai.yaml +4 -0
- package/skills/bpmax-icon-catalog/assets/ri-icons.json +3140 -0
- package/skills/bpmax-icon-catalog/references/source-contract.md +3 -0
- package/skills/bpmax-list-template-editor/SKILL.md +133 -466
- package/skills/bpmax-list-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +16 -4
- package/skills/bpmax-list-template-editor/references/full-detail-guide.md +461 -0
- package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +6 -9
- package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +1 -1
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +50 -2
- package/skills/bpmax-list-template-editor/references/special-formats.md +5 -2
- package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +9 -78
- package/skills/bpmax-memory-protocol/SKILL.md +7 -6
- package/skills/bpmax-nav-config-editor/SKILL.md +14 -17
- package/skills/bpmax-nav-config-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +2 -2
- package/skills/bpmax-nav-config-editor/references/runtime-probing.md +11 -12
- package/skills/bpmax-page-composition-template-editor/SKILL.md +398 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/catalog.json +41 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/full-capability-workbench.json +294 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-detail-step-panel.json +184 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-list-quick-process.json +177 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-dashboard.json +400 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-visual-light.json +214 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/step-related-projects.json +184 -0
- package/skills/bpmax-page-composition-template-editor/references/resource-api.md +9 -0
- package/skills/bpmax-plugin-config/SKILL.md +55 -5
- package/skills/bpmax-project/SKILL.md +37 -1
- package/skills/bpmax-project-detail-template-editor/SKILL.md +13 -39
- package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-role-editor/SKILL.md +11 -30
- package/skills/bpmax-shared/SKILL.md +19 -9
- package/skills/bpmax-team-editor/SKILL.md +27 -0
- package/skills/bpmax-ui-ux-audit/LICENSE.upstream +23 -0
- package/skills/bpmax-ui-ux-audit/SKILL.md +42 -0
- package/skills/bpmax-ui-ux-audit/agents/openai.yaml +4 -0
- package/skills/bpmax-ui-ux-audit/references/audit-framework.md +39 -0
- package/skills/bpmax-ui-ux-audit/references/bpmax-ux-findings.md +56 -0
- package/skills/bpmax-user/SKILL.md +33 -1
- package/skills/bpmax-user-mock-operator/SKILL.md +58 -56
- package/skills/bpmax-user-mock-operator/agents/openai.yaml +2 -2
- package/skills/bpmax-user-mock-operator/scripts/chrome_identity_bridge.mjs +1766 -0
- package/skills/bpmax-user-model-editor/SKILL.md +24 -0
- package/skills/bpmax-workspace-editor/SKILL.md +1 -0
- package/skills/form-control-library/references/form-template-submit-schema.md +3 -1
- package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +0 -37
- package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +0 -136
- 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: "
|
|
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
|
-
-
|
|
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
|
|
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
|
-
-
|
|
84
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
-
|
|
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: "
|
|
4
|
-
default_prompt: "使用 $bpmax-api-platform-editor
|
|
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
|
-
-
|
|
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
|
|
30
|
+
- 平台、实例、API 的 typed CLI adapter 写入契约、operation plan 和 readback 字段
|
|
31
31
|
|
|
32
|
-
|
|
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
|
|
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
|
-
|
|
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,20 +27,31 @@ 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.
|
|
36
|
+
- Use `references/business-language.md` for every sentence a business reader will see. Write in business language: no system identifiers, no variable names, no type names, no API paths, no script snippets in explanatory prose.
|
|
33
37
|
- 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
38
|
- Use `references/per-flow-required-structure.md` for every flow section. Each flow must be independently complete.
|
|
35
39
|
- Put each flow diagram in a Feishu whiteboard block such as `<whiteboard type="mermaid">...</whiteboard>`. Do not use Mermaid code blocks in final docs.
|
|
36
40
|
|
|
37
|
-
3. **
|
|
41
|
+
3. **Review the design, then confirm it with the user**
|
|
42
|
+
- Follow `references/review-and-confirmation-dialogue.md`.
|
|
43
|
+
- Review the drafted blueprint from a professional process-design stance, not just for section completeness. Run several independent sub agents in parallel, one per lens (业务流程合理性 / 业务人员视角 / 流程设计专业性 / 边界与落地性), so that no single pass can rationalize the whole draft.
|
|
44
|
+
- Each sub agent reads the blueprint **and** the source material, and reports only defects tied to a concrete business consequence, separating 设计错误 from 信息缺失.
|
|
45
|
+
- Every 信息缺失 finding becomes a question to the user. Ask in business language, with the realistic options and their implications; batch related questions; raise conflicts rather than silently resolving them. Never close an open business question by assuming an answer.
|
|
46
|
+
- Record every review finding and every answer in the document (`流程评审记录`, `业务确认问答`, `待确认事项`). Re-review the parts changed while answering questions.
|
|
47
|
+
- A flow that still depends on an unanswered question is `incomplete`, never `complete`.
|
|
48
|
+
|
|
49
|
+
4. **Create or update Feishu Docx**
|
|
38
50
|
- For new docs, use `lark-cli docs +create --api-version v2`.
|
|
39
51
|
- For updates, fetch the relevant outline/section first and use precise block operations where possible.
|
|
40
52
|
- Preserve existing resource blocks unless the user explicitly asks to replace them.
|
|
41
53
|
|
|
42
|
-
|
|
54
|
+
5. **Lint before claiming completion**
|
|
43
55
|
- Fetch the produced/updated doc:
|
|
44
56
|
```bash
|
|
45
57
|
lark-cli docs +fetch --api-version v2 --doc <DOC> --detail with-ids --format json > /tmp/blueprint-fetch.json
|
|
@@ -52,24 +64,42 @@ Use these skills as needed; this skill orchestrates them and does not replace th
|
|
|
52
64
|
```
|
|
53
65
|
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
66
|
- If project-specific wording matters, add `--require-term` and `--forbid-term`.
|
|
67
|
+
- 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
68
|
- Fix every lint error and rerun until it passes, unless the user explicitly accepts a known exception.
|
|
69
|
+
- Lint passing is a floor, not the finish line: it cannot judge whether the flow is right for the business, or whether the wording is understandable. Those two are covered by the review and the self-check in `references/business-language.md`.
|
|
56
70
|
|
|
57
|
-
|
|
71
|
+
6. **Final response**
|
|
58
72
|
- Return the Feishu document title and URL.
|
|
59
|
-
-
|
|
73
|
+
- List every flow with a `complete`, `incomplete`, or `blocked` conclusion; summarize whiteboard count, visual inspection, and lint result.
|
|
74
|
+
- Summarize preserved manual adjustments and any conflicts with source artifacts.
|
|
75
|
+
- Summarize the design review: which lenses ran, how many findings were raised, and what changed as a result.
|
|
76
|
+
- List the questions already answered by the user and the questions still open.
|
|
60
77
|
- State any business assumptions or unresolved confirmation items.
|
|
61
78
|
- Mention Feishu/lark auth or version blockers if they affected delivery.
|
|
62
79
|
|
|
63
80
|
## Hard Rules
|
|
64
81
|
|
|
65
82
|
- Final blueprint deliverables are Feishu Docx documents, not local Markdown, unless the user explicitly asks for local-only output.
|
|
83
|
+
- A drafted blueprint is not deliverable until it has been reviewed from a professional process-design stance by several independent sub agents, and every open business question has been either answered by the user or recorded as unresolved.
|
|
84
|
+
- Do not resolve an open business question by assuming an answer. Ask the user, in business language, with the realistic options and what each implies.
|
|
85
|
+
- Every review finding and every user answer must be recorded in the document (`流程评审记录`, `业务确认问答`, `待确认事项`). A decision that exists only in the conversation does not count.
|
|
86
|
+
- A flow that depends on an unanswered question is `incomplete`. Do not mark it `complete`.
|
|
87
|
+
- Write for business readers, not for implementers. Explanatory prose, node tables, and diagrams use business names only. No flow identifiers (`flow454372735`), form/template/list ids, data set keys, variable names (`ctx.$PROJECT`, `$CAN_DELETE`), type names (`sn_number`), API paths, script snippets, or `null`/`true`/`false` values.
|
|
88
|
+
- Identifiers belong only in the implementation table of the owning flow, in a dedicated column. The business name stays the same everywhere else, and one business object keeps one name across the whole document.
|
|
66
89
|
- Every business flow must have its own complete section. Do not make a flow rely on another section for fields, forms, writeback, AI behavior, or implementation boundary.
|
|
67
90
|
- Every flow must have a process diagram, and the diagram must be a Feishu whiteboard/resource block. Mermaid code blocks are draft-only and fail lint.
|
|
68
91
|
- A start node must name the creation action/form.
|
|
69
92
|
- 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
93
|
- 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
94
|
- 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.
|
|
95
|
+
- 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.
|
|
96
|
+
- 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.
|
|
97
|
+
- 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.
|
|
98
|
+
- 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.
|
|
99
|
+
- 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.
|
|
100
|
+
- Source-node coverage, manual adjustments, stage decomposition, parallel modeling, and matrix assessment must be documented in tables and reviewed before claiming source completeness.
|
|
72
101
|
- 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.
|
|
102
|
+
- Per-flow creation, node, form, data set, view, automation, completion, and implementation-boundary details must be tables, not paragraph-only summaries.
|
|
73
103
|
- 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
104
|
- Do not park business-specific data sets/forms/lists globally. Shared support sections are for genuinely shared objects only.
|
|
75
105
|
- Default implementation boundary labels are exactly:
|
|
@@ -80,8 +110,11 @@ Use these skills as needed; this skill orchestrates them and does not replace th
|
|
|
80
110
|
## References
|
|
81
111
|
|
|
82
112
|
- Read `references/blueprint-structure.md` before drafting a new blueprint or restructuring a document.
|
|
113
|
+
- Read `references/source-traceability-and-flow-modeling.md` before interpreting a source flowchart or applying user modeling adjustments.
|
|
114
|
+
- Read `references/review-and-confirmation-dialogue.md` before starting the design review, and again before writing the review/confirmation record.
|
|
115
|
+
- Read `references/business-language.md` before writing reader-facing prose, and run its self-check before delivery.
|
|
83
116
|
- Read `references/per-flow-required-structure.md` before writing or lint-fixing flow sections.
|
|
84
117
|
|
|
85
118
|
## Lint Script
|
|
86
119
|
|
|
87
|
-
`scripts/lint_blueprint_doc.py` checks a fetched Feishu Docx JSON or XML file for
|
|
120
|
+
`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, the review-and-confirmation record, system identifiers leaking into business prose, and project-specific required/forbidden terms.
|
|
@@ -15,31 +15,44 @@ 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.
|
|
21
26
|
|
|
22
|
-
4.
|
|
27
|
+
4. **设计评审与业务确认记录**
|
|
28
|
+
- `流程评审记录`: review lens, issue raised, conclusion (已修改 / 保持原设计 / 转为待确认), affected flow.
|
|
29
|
+
- `业务确认问答`: question, options offered, user's final answer, where it landed in the design.
|
|
30
|
+
- `待确认事项`: open question, impact of leaving it open, current handling.
|
|
31
|
+
- Follow `review-and-confirmation-dialogue.md`. These three tables are the only acceptable place for a design decision to live; a decision recorded solely in the conversation is not part of the blueprint.
|
|
32
|
+
|
|
33
|
+
5. **公共支撑配置**
|
|
23
34
|
- Only genuinely shared objects belong here.
|
|
24
35
|
- Examples: organization dictionary, BPMAX user model extensions, shared tool library, automation logs, role/navigation rules.
|
|
25
36
|
- Do not make public data sets independent business flows when the data belongs to a process.
|
|
26
37
|
|
|
27
|
-
|
|
38
|
+
6. **业务流程章节**
|
|
28
39
|
- Each business flow gets a full independent chapter.
|
|
29
40
|
- Use `per-flow-required-structure.md`.
|
|
30
41
|
- The first flow should be the end-to-end main lifecycle when the business has one.
|
|
31
42
|
|
|
32
|
-
|
|
43
|
+
7. **权限、导航、集成与自动化**
|
|
44
|
+
- A `PC/H5 导航设计` table with separate PC and H5 rows for every flow, including target users, entry/menu, route/page, visibility permission, and acceptance.
|
|
45
|
+
- A `权限设计` table covering flow/project actions, field visibility/editability by step and role, navigation visibility, denied/read-only behavior, and acceptance.
|
|
33
46
|
- Cross-flow permission rules, menus, Feishu/OpenClaw/API integration, automation logging, retry/fallback.
|
|
34
47
|
- Flow-specific automation remains in the owning flow section.
|
|
35
48
|
|
|
36
|
-
|
|
49
|
+
8. **BPMAX 可配置能力与需定制能力边界**
|
|
37
50
|
- Use the exact three labels:
|
|
38
51
|
- `BPMAX 配置可实现`
|
|
39
52
|
- `配置 + 脚本/API/现有插件`
|
|
40
53
|
- `需定制插件/外部服务`
|
|
41
54
|
|
|
42
|
-
|
|
55
|
+
9. **一期验收路径、风险与待确认事项**
|
|
43
56
|
- End-to-end acceptance path.
|
|
44
57
|
- Acceptance metrics.
|
|
45
58
|
- Risks and unresolved business decisions.
|
|
@@ -48,13 +61,16 @@ Use this structure for BPMAX blueprint方案 documents unless the user provides
|
|
|
48
61
|
|
|
49
62
|
- Use Docx XML through `lark-cli docs ... --api-version v2`.
|
|
50
63
|
- Use tables for field dictionaries, node configuration, writeback rules, and implementation boundaries.
|
|
64
|
+
- 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
65
|
- Use `<whiteboard type="mermaid">...</whiteboard>` or another Feishu whiteboard resource block for process diagrams.
|
|
52
66
|
- Avoid code blocks for diagrams in final output.
|
|
53
67
|
- When updating existing docs, prefer block-level precise updates and preserve existing resource tokens.
|
|
54
68
|
|
|
55
69
|
## Blueprint Tone
|
|
56
70
|
|
|
57
|
-
- Write for
|
|
58
|
-
- Be specific enough
|
|
59
|
-
- Use
|
|
71
|
+
- Write for the business reader: the department that owns the process, the approvers, and the front-line users. The implementer is a secondary reader who can translate business language into configuration.
|
|
72
|
+
- Be specific enough that a business person can confirm the rules without knowing the system: who does what, when, under which condition, and what happens afterwards.
|
|
73
|
+
- Use business names (流程名称、表单名称、角色、环节) in prose, node tables, and diagrams. Put exact identifiers only in the implementation table of the owning flow.
|
|
74
|
+
- See `business-language.md` for the wording rules and the self-check before delivery.
|
|
75
|
+
- Do not invent unconfirmed personal names or private data; use role names.
|
|
60
76
|
- Label uncertain items as “待业务确认” only in a dedicated “待确认事项” section, not inside required flow structure.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Business Language For Blueprint Readers
|
|
2
|
+
|
|
3
|
+
The blueprint is read by business people — the department that owns the process, the approvers, the front-line users who will work in it, and the reviewers who sign off. It is not a configuration manual for the person who builds it.
|
|
4
|
+
|
|
5
|
+
Write so that a reader who has never seen the system can follow the process and sign off on it.
|
|
6
|
+
|
|
7
|
+
## Who Reads What
|
|
8
|
+
|
|
9
|
+
| Reader | What they need from the document |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| 业务负责人 | 流程是否符合业务规则,谁在什么条件下做什么,异常怎么处理 |
|
|
12
|
+
| 一线使用者 | 我要在哪里、看到什么、填什么、点哪个按钮 |
|
|
13
|
+
| 审批人 | 什么时候轮到我,我要判断什么,可以退回到哪一步 |
|
|
14
|
+
| 实施人员 | 上述内容怎么落成配置(他们能自己把业务语言翻译成配置对象) |
|
|
15
|
+
|
|
16
|
+
The first three readers outnumber the fourth. Optimize for them.
|
|
17
|
+
|
|
18
|
+
## Write Business Meaning, Not System Names
|
|
19
|
+
|
|
20
|
+
Describe what a person sees and does. Internal identifiers exist so the implementer can find the object; they do not belong in the sentence that explains the business.
|
|
21
|
+
|
|
22
|
+
| 不要写 | 改成 |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `flow454372735` | 「招标立项审批」流程 |
|
|
25
|
+
| 「流程代号 flow_type=flow82407163」 | 投标登记流程 |
|
|
26
|
+
| `form_template_id=954573815` | 项目基本信息表 |
|
|
27
|
+
| 「数据集 `tender_main`」 | 招标项目台账 |
|
|
28
|
+
| 「节点 `step_3`」 | 「资格预审」环节 |
|
|
29
|
+
| `data_set_field.status = 3` | 状态为「已确认」 |
|
|
30
|
+
| 「`ctx.$PROJECT.id` 写入关联字段」 | 系统自动记录所关联的项目编号 |
|
|
31
|
+
| 「`plugin_urgent_reminder.auto_action` 置空」 | 超时后只提醒,不自动处理 |
|
|
32
|
+
| 「`$CAN_DELETE` 为 true 时显示按钮」 | 有删除权限的人才能看到删除按钮 |
|
|
33
|
+
| 「走 `flow_page_template` type=1」 | 用一个项目列表页展示 |
|
|
34
|
+
|
|
35
|
+
Words that may stay when the business genuinely uses them: 环节、审批、驳回、退回、会签、加签、抄送、办结、台账、工作台. These are business words even though they also happen to be system concepts.
|
|
36
|
+
|
|
37
|
+
Words to avoid in explanatory prose: 字段命名、类型名(`string`、`select`、`sn_number`)、接口名(`/api/...`)、脚本片段、配置项路径、`null`/`true`/`false` 这类程序取值。
|
|
38
|
+
|
|
39
|
+
## Where Identifiers Still Belong
|
|
40
|
+
|
|
41
|
+
Identification is necessary for implementation, so keep it — but keep it out of the way.
|
|
42
|
+
|
|
43
|
+
- Put the exact flow name, form name, list name, and any identifier in the implementation table of the owning flow, in a dedicated column (for example 「对象」 or 「对应配置」).
|
|
44
|
+
- The prose, the node tables, and the diagrams use the business name only.
|
|
45
|
+
- When one business object has several names in the source (旧称、简称、系统名), pick one business name for the whole document and list the aliases once in a glossary.
|
|
46
|
+
|
|
47
|
+
## Diagrams And Tables
|
|
48
|
+
|
|
49
|
+
- Node labels describe the business action or resulting state: 「资格预审」「发出中标通知」,not 「节点 3」「sys_wait」.
|
|
50
|
+
- Branch labels describe the condition in business terms: 「金额超过 100 万」「初审不通过」.
|
|
51
|
+
- Table headers describe what a business reader wants to know: 谁来做、什么时候做、做完之后发生什么.
|
|
52
|
+
- Keep the 「配置」 columns for the implementer, but do not let them replace the business columns.
|
|
53
|
+
|
|
54
|
+
## Numbers, Time, And Conditions
|
|
55
|
+
|
|
56
|
+
- Give conditions as a business person would state them: 「合同金额 ≥ 100 万元」「距截止时间不足 3 个工作日」.
|
|
57
|
+
- Do not write the raw expression that implements the condition.
|
|
58
|
+
- When a threshold is still unconfirmed, say 「待业务确认」 in 待确认事项 rather than picking a number.
|
|
59
|
+
|
|
60
|
+
## Consistency
|
|
61
|
+
|
|
62
|
+
- One business object has one name throughout. Switching between 「投标项目」「招标项目」「标包」 mid-document makes readers think these are different things.
|
|
63
|
+
- If the business itself uses two words for the same thing, state the equivalence once and then stay consistent.
|
|
64
|
+
|
|
65
|
+
## Quick Self-Check Before Delivery
|
|
66
|
+
|
|
67
|
+
Ask about every section:
|
|
68
|
+
|
|
69
|
+
1. 一个没接触过系统的人,能只凭这一段说清楚「谁、做什么、什么时候、做完之后怎样」吗?
|
|
70
|
+
2. 段落里出现的名字,是业务叫法还是系统里的标识符?如果有标识符,它是不是只出现在实现表格里?
|
|
71
|
+
3. 有没有把「怎么实现」写进了「业务流程」的位置?
|
|
72
|
+
4. 读起来像不像一份给人看的方案,而不是一份导出给机器读的配置?
|
|
73
|
+
|
|
74
|
+
A section that fails any of these is not finished, even if lint passes.
|
|
@@ -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.
|