bpmax-cli 0.1.44 → 0.2.1-beta.1
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 +52 -5
- package/dist/bin.js +11966 -1320
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/scripts/install-skills.mjs +98 -0
- package/skills/bpmax-ai-taskbook/SKILL.md +226 -0
- package/skills/bpmax-ai-taskbook/agents/openai.yaml +3 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +68 -0
- package/skills/bpmax-api-platform-editor/SKILL.md +321 -0
- package/skills/bpmax-api-platform-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-api-platform-editor/references/api-doc-debug-workflow.md +34 -0
- package/skills/bpmax-api-platform-editor/references/api-proxy-shape.md +41 -0
- package/skills/bpmax-api-platform-editor/references/instance-config-shape.md +41 -0
- package/skills/bpmax-api-platform-editor/references/platform-api-map.md +52 -0
- package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +32 -0
- package/skills/bpmax-api-platform-editor/scripts/api_platform_editor_common.py +1276 -0
- package/skills/bpmax-api-platform-editor/scripts/build_submit_payload.py +64 -0
- package/skills/bpmax-api-platform-editor/scripts/capture_write_contract.py +40 -0
- package/skills/bpmax-api-platform-editor/scripts/export_layer_bundle.py +212 -0
- package/skills/bpmax-api-platform-editor/scripts/record_doc_debug_acceptance.py +62 -0
- package/skills/bpmax-api-platform-editor/scripts/submit_and_verify_layer.py +75 -0
- package/skills/bpmax-api-platform-editor/tests/test_api_platform_editor.py +287 -0
- package/skills/bpmax-approval-matrix/SKILL.md +87 -0
- package/skills/bpmax-auth/SKILL.md +6 -17
- package/skills/bpmax-builder-shared/SKILL.md +44 -0
- package/skills/bpmax-builder-shared/base_url.py +81 -0
- package/skills/bpmax-builder-shared/runtime-script-site-matrix.json +71 -0
- package/skills/bpmax-builder-shared/runtime-script-site-matrix.md +34 -0
- package/skills/bpmax-builder-shared/runtime-script-template-catalog.md +123 -0
- package/skills/bpmax-builder-shared/runtime_script_rules.py +272 -0
- package/skills/bpmax-builder-shared/skill_audit.py +374 -0
- package/skills/bpmax-builder-shared/template_script_hard_rules.py +280 -0
- package/skills/bpmax-builder-shared/tests/test_base_url.py +80 -0
- package/skills/bpmax-builder-shared/tests/test_runtime_script_rules.py +115 -0
- package/skills/bpmax-builder-shared/tests/test_skill_audit.py +231 -0
- package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +281 -0
- package/skills/bpmax-cli/SKILL.md +5 -0
- package/skills/bpmax-config-latest/SKILL.md +71 -0
- package/skills/bpmax-console-template-editor/SKILL.md +536 -0
- package/skills/bpmax-console-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-console-template-editor/references/filter-integration.md +60 -0
- package/skills/bpmax-console-template-editor/references/lessons-from-resume-dashboard.md +114 -0
- package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +69 -0
- package/skills/bpmax-console-template-editor/references/module-catalog.md +100 -0
- package/skills/bpmax-console-template-editor/references/runtime-page-shape.md +91 -0
- package/skills/bpmax-console-template-editor/references/template-shape.md +149 -0
- package/skills/bpmax-console-template-editor/scripts/build_submit_payload.py +38 -0
- package/skills/bpmax-console-template-editor/scripts/confirm_console_template.py +33 -0
- package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +964 -0
- package/skills/bpmax-console-template-editor/scripts/export_console_template.py +99 -0
- package/skills/bpmax-console-template-editor/scripts/lint_console_template.py +46 -0
- package/skills/bpmax-console-template-editor/scripts/submit_console_template.py +99 -0
- package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +383 -0
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +603 -0
- package/skills/bpmax-dataset-field-template-editor/references/create-request-gotchas.md +25 -0
- package/skills/bpmax-dataset-field-template-editor/references/field-classify-mapping.md +35 -0
- package/skills/bpmax-dataset-field-template-editor/references/nested-field-patterns.md +24 -0
- package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +61 -0
- package/skills/bpmax-dataset-field-template-editor/references/virtual-field-patterns.md +27 -0
- package/skills/bpmax-dataset-field-template-editor/references/work-file-to-submit-mapping.md +127 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/build_submit_payload.py +67 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/confirm_dataset_field.py +37 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +784 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +62 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +104 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +83 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/lint_dataset_field_semantics.py +35 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +95 -0
- package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +709 -0
- package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +59 -0
- package/skills/bpmax-dataset-template-editor/SKILL.md +779 -0
- package/skills/bpmax-dataset-template-editor/references/custom-key-usage-patterns.md +18 -0
- package/skills/bpmax-dataset-template-editor/references/dataset-script-runtime-matrix.md +73 -0
- package/skills/bpmax-dataset-template-editor/references/pre-process-script-authoring-guide.md +186 -0
- package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md +106 -0
- package/skills/bpmax-dataset-template-editor/references/runtime-gotchas.md +28 -0
- package/skills/bpmax-dataset-template-editor/references/runtime-verified-dataset-page-shape.md +47 -0
- package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +23 -0
- package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +97 -0
- package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +65 -0
- package/skills/bpmax-dataset-template-editor/scripts/build_submit_payload.py +38 -0
- package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +650 -0
- package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +155 -0
- package/skills/bpmax-dataset-template-editor/scripts/lint_dataset_template.py +42 -0
- package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +43 -0
- package/skills/bpmax-dataset-template-editor/scripts/scan_custom_key_references.py +27 -0
- package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +115 -0
- package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +52 -0
- package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +39 -0
- package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +373 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +203 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +4 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +63 -0
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +551 -0
- package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +5 -0
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale.json +97 -0
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_final_v2.json +105 -0
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_main.json +36 -0
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_region.json +40 -0
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +333 -0
- package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +41 -0
- package/skills/bpmax-e2e-flow-test-operator/references/failure-update-loop.md +17 -0
- package/skills/bpmax-e2e-flow-test-operator/references/filter-field-discovery.md +40 -0
- package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +24 -0
- package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +75 -0
- package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +109 -0
- package/skills/bpmax-e2e-flow-test-operator/references/skill-experience-coverage-matrix.md +29 -0
- package/skills/bpmax-e2e-flow-test-operator/references/stale-runtime-and-clean-sample-rules.md +54 -0
- package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +83 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/bpmax_session.py +287 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/dealer_sample_on_shelf_plan.json +59 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/dealer_sample_on_shelf_runner.py +687 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +121 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +288 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_api_matrix.py +161 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_filter_fields.py +138 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_form_runtime.py +396 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +341 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_test_profile.py +185 -0
- package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +138 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/SKILL.md +69 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-checklist.md +42 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-recipes.md +38 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-shape.md +86 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/gate-lint.md +68 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/hoocoo-patterns.md +39 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/runtime-behavior.md +41 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/script-authoring.md +110 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/scripts/lint_feishu_chat_plugin.py +278 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/tests/test_lint_feishu_chat_plugin.py +203 -0
- package/skills/bpmax-filter-template-editor/SKILL.md +564 -0
- package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +38 -0
- package/skills/bpmax-filter-template-editor/references/filter-and-flow-binding.md +57 -0
- package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +141 -0
- package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +287 -0
- package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +115 -0
- package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +94 -0
- package/skills/bpmax-filter-template-editor/scripts/build_submit_payload.py +25 -0
- package/skills/bpmax-filter-template-editor/scripts/confirm_filter_template.py +22 -0
- package/skills/bpmax-filter-template-editor/scripts/export_filter_template.py +57 -0
- package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +348 -0
- package/skills/bpmax-filter-template-editor/scripts/init_create_filter_template.py +8 -0
- package/skills/bpmax-filter-template-editor/scripts/lint_filter_template_semantics.py +26 -0
- package/skills/bpmax-filter-template-editor/scripts/submit_filter_template.py +62 -0
- package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +231 -0
- package/skills/bpmax-flow-template-editor/SKILL.md +1086 -0
- package/skills/bpmax-flow-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-flow-template-editor/references/before-next-step-script-runtime-gotchas.md +62 -0
- package/skills/bpmax-flow-template-editor/references/config-surfaces-and-placeholders.md +270 -0
- package/skills/bpmax-flow-template-editor/references/diff-strategy.md +67 -0
- package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +25 -0
- package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +174 -0
- package/skills/bpmax-flow-template-editor/references/intent-model.md +117 -0
- package/skills/bpmax-flow-template-editor/references/lessons-from-price-plan-flow.md +147 -0
- package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +97 -0
- package/skills/bpmax-flow-template-editor/references/matrix-flow-form-nav-collaboration.md +168 -0
- package/skills/bpmax-flow-template-editor/references/payload-checklist.md +133 -0
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +106 -0
- package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +149 -0
- package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +41 -0
- package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +155 -0
- package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +179 -0
- package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +91 -0
- package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +96 -0
- package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +57 -0
- package/skills/bpmax-flow-template-editor/scripts/build_submit_payload.py +69 -0
- package/skills/bpmax-flow-template-editor/scripts/confirm_flow_template.py +52 -0
- package/skills/bpmax-flow-template-editor/scripts/export_flow_template.py +114 -0
- package/skills/bpmax-flow-template-editor/scripts/flow_template_editor_common.py +1084 -0
- package/skills/bpmax-flow-template-editor/scripts/submit_flow_template.py +159 -0
- package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +636 -0
- package/skills/bpmax-form-template-editor/SKILL.md +1113 -0
- package/skills/bpmax-form-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +203 -0
- package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +125 -0
- package/skills/bpmax-form-template-editor/references/payload-checklist.md +77 -0
- package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +49 -0
- package/skills/bpmax-form-template-editor/scripts/build_submit_payload.py +37 -0
- package/skills/bpmax-form-template-editor/scripts/check_form_template_consistency.py +145 -0
- package/skills/bpmax-form-template-editor/scripts/confirm_form_template.py +67 -0
- package/skills/bpmax-form-template-editor/scripts/export_form_template.py +91 -0
- package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +1762 -0
- package/skills/bpmax-form-template-editor/scripts/lint_form_template_semantics.py +30 -0
- package/skills/bpmax-form-template-editor/scripts/record_runtime_acceptance.py +67 -0
- package/skills/bpmax-form-template-editor/scripts/submit_form_template.py +163 -0
- package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +1292 -0
- package/skills/bpmax-list-template-editor/SKILL.md +478 -0
- package/skills/bpmax-list-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-list-template-editor/references/browser-page-contract.md +81 -0
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +165 -0
- package/skills/bpmax-list-template-editor/references/dataset-field-mapping.md +60 -0
- package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +108 -0
- package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +102 -0
- package/skills/bpmax-list-template-editor/references/payload-checklist.md +47 -0
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +147 -0
- package/skills/bpmax-list-template-editor/references/special-formats.md +411 -0
- package/skills/bpmax-list-template-editor/scripts/build_submit_payload.py +37 -0
- package/skills/bpmax-list-template-editor/scripts/confirm_list_template.py +33 -0
- package/skills/bpmax-list-template-editor/scripts/export_list_template.py +89 -0
- package/skills/bpmax-list-template-editor/scripts/fetch_data_set.py +34 -0
- package/skills/bpmax-list-template-editor/scripts/lint_list_template_semantics.py +54 -0
- package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +955 -0
- package/skills/bpmax-list-template-editor/scripts/record_acceptance.py +55 -0
- package/skills/bpmax-list-template-editor/scripts/submit_list_template.py +117 -0
- package/skills/bpmax-list-template-editor/tests/test_list_template_editor_common.py +441 -0
- package/skills/bpmax-memory-protocol/SKILL.md +72 -0
- package/skills/bpmax-nav-config-editor/SKILL.md +350 -0
- package/skills/bpmax-nav-config-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +70 -0
- package/skills/bpmax-nav-config-editor/references/config-shape.md +78 -0
- package/skills/bpmax-nav-config-editor/references/icon-selection.md +83 -0
- package/skills/bpmax-nav-config-editor/references/path-mapping-rules.md +51 -0
- package/skills/bpmax-nav-config-editor/references/payload-checklist.md +41 -0
- package/skills/bpmax-nav-config-editor/references/runtime-probing.md +47 -0
- package/skills/bpmax-nav-config-editor/scripts/build_submit_payload.py +34 -0
- package/skills/bpmax-nav-config-editor/scripts/confirm_nav_config.py +32 -0
- package/skills/bpmax-nav-config-editor/scripts/export_nav_config.py +56 -0
- package/skills/bpmax-nav-config-editor/scripts/lint_nav_config_semantics.py +33 -0
- package/skills/bpmax-nav-config-editor/scripts/nav_config_editor_common.py +812 -0
- package/skills/bpmax-nav-config-editor/scripts/submit_nav_config.py +44 -0
- package/skills/bpmax-nav-config-editor/scripts/verify_nav_config.py +33 -0
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_editor.py +358 -0
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_editor_common.py +138 -0
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_lint.py +58 -0
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_submit_verify.py +51 -0
- package/skills/bpmax-plugin-config/SKILL.md +42 -0
- package/skills/bpmax-project/SKILL.md +17 -3
- package/skills/bpmax-project-detail-template-editor/SKILL.md +355 -0
- package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-project-detail-template-editor/references/local-temp-workflow.md +59 -0
- package/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md +120 -0
- package/skills/bpmax-project-detail-template-editor/references/payload-checklist.md +33 -0
- package/skills/bpmax-project-detail-template-editor/references/project-detail-template-api-workflow.md +44 -0
- package/skills/bpmax-project-detail-template-editor/scripts/build_submit_payload.py +30 -0
- package/skills/bpmax-project-detail-template-editor/scripts/confirm_project_detail_template.py +33 -0
- package/skills/bpmax-project-detail-template-editor/scripts/export_project_detail_template.py +87 -0
- package/skills/bpmax-project-detail-template-editor/scripts/lint_project_detail_template_semantics.py +37 -0
- package/skills/bpmax-project-detail-template-editor/scripts/project_detail_template_editor_common.py +507 -0
- package/skills/bpmax-project-detail-template-editor/scripts/submit_project_detail_template.py +120 -0
- package/skills/bpmax-project-detail-template-editor/tests/test_project_detail_template_editor.py +369 -0
- package/skills/bpmax-role-editor/SKILL.md +251 -0
- package/skills/bpmax-role-editor/references/api-workflow.md +30 -0
- package/skills/bpmax-role-editor/references/runtime-page-shape.md +18 -0
- package/skills/bpmax-role-editor/references/work-file-mapping.md +32 -0
- package/skills/bpmax-role-editor/scripts/build_submit_payload.py +38 -0
- package/skills/bpmax-role-editor/scripts/confirm_role.py +33 -0
- package/skills/bpmax-role-editor/scripts/export_role.py +163 -0
- package/skills/bpmax-role-editor/scripts/lint_role_semantics.py +38 -0
- package/skills/bpmax-role-editor/scripts/role_editor_common.py +1231 -0
- package/skills/bpmax-role-editor/scripts/submit_role.py +144 -0
- package/skills/bpmax-role-editor/tests/test_role_editor.py +343 -0
- package/skills/bpmax-shared/SKILL.md +1 -1
- package/skills/bpmax-user-mock-operator/SKILL.md +106 -0
- package/skills/bpmax-user-mock-operator/agents/openai.yaml +4 -0
- package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +37 -0
- package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +136 -0
- package/skills/bpmax-user-mock-operator/tests/test_user_mock_operator.py +138 -0
- package/skills/bpmax-workspace-editor/SKILL.md +78 -0
- package/skills/bpmax-workspace-editor/agents/openai.yaml +4 -0
- package/skills/form-control-library/SKILL.md +82 -0
- package/skills/form-control-library/agents/openai.yaml +4 -0
- package/skills/form-control-library/references/form-controls.md +199 -0
- package/skills/form-control-library/references/form-template-submit-schema.md +180 -0
- package/skills/form-control-library/references/group-select-runtime.md +191 -0
- package/skills/form-control-library/scripts/rebuild_form_control_library.py +55 -0
package/package.json
CHANGED
|
@@ -33,6 +33,10 @@ const agentGuidance = {
|
|
|
33
33
|
const agentGuidanceLines = Object.values(agentGuidance).flat().map((line) => `[bpmax-cli] ${line}`);
|
|
34
34
|
const stampPath = path.join(homedir(), '.bpmax', 'skills.stamp');
|
|
35
35
|
const openClawReminder = 'OpenClaw install already tries `openclaw skills install` and falls back to copying into ~/.openclaw/skills when needed. Do not manually copy skills unless this result reports a failure.';
|
|
36
|
+
const memoryGuidanceMarkers = {
|
|
37
|
+
start: '<!-- bpmax-cli:memory-guidance:start -->',
|
|
38
|
+
end: '<!-- bpmax-cli:memory-guidance:end -->',
|
|
39
|
+
};
|
|
36
40
|
|
|
37
41
|
const directoryTargets = [
|
|
38
42
|
{ agent: 'codex', root: path.join(homedir(), '.codex', 'skills') },
|
|
@@ -41,6 +45,14 @@ const directoryTargets = [
|
|
|
41
45
|
{ agent: 'agents', root: path.join(homedir(), '.agents', 'skills') },
|
|
42
46
|
{ agent: 'gemini', root: path.join(homedir(), '.gemini', 'skills') },
|
|
43
47
|
];
|
|
48
|
+
const globalGuidanceTargets = [
|
|
49
|
+
{ agent: 'codex', file: path.join(homedir(), '.codex', 'AGENTS.md') },
|
|
50
|
+
{ agent: 'agents', file: path.join(homedir(), '.agents', 'AGENTS.md') },
|
|
51
|
+
{ agent: 'claude', file: path.join(homedir(), '.claude', 'CLAUDE.md') },
|
|
52
|
+
{ agent: 'cc-switch', file: path.join(homedir(), '.cc-switch', 'AGENTS.md') },
|
|
53
|
+
{ agent: 'gemini', file: path.join(homedir(), '.gemini', 'GEMINI.md') },
|
|
54
|
+
{ agent: 'openclaw', file: path.join(homedir(), '.openclaw', 'AGENTS.md') },
|
|
55
|
+
];
|
|
44
56
|
|
|
45
57
|
function shouldRunAdapter(adapter) {
|
|
46
58
|
return !targetAgent || targetAgent === adapter;
|
|
@@ -105,6 +117,87 @@ async function installWithDirectoryTargets(skillNames) {
|
|
|
105
117
|
};
|
|
106
118
|
}
|
|
107
119
|
|
|
120
|
+
function renderMemoryGuidance(agent) {
|
|
121
|
+
const agentLabel = agent || '<agent>';
|
|
122
|
+
return `${memoryGuidanceMarkers.start}
|
|
123
|
+
# BPMAX Memory Guidance
|
|
124
|
+
|
|
125
|
+
- For non-trivial BPMAX configuration, flow, template, dataset, role, navigation, BBS, or e2e work, first use \`bpmax-memory-protocol\` or run \`bpmax-cli memory search --scope all --query "<workspace> <flow_type> <task>" --format json\`.
|
|
126
|
+
- Memory is isolated by the current API Key's bound agent. Do not pass or invent an agent id; for this runtime, treat the agent as \`${agentLabel}\`.
|
|
127
|
+
- After verified work, write only reusable \`decision\`, \`task_learning\`, \`anti_pattern\`, \`environmental\`, or \`convention\` memories. If work is incomplete, write only \`session_state\`.
|
|
128
|
+
- Never write API Key, Authorization, token, password, cookie, verification code, SMS code, phone number, full payloads, or large raw API responses to memory.
|
|
129
|
+
${memoryGuidanceMarkers.end}
|
|
130
|
+
`;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function upsertMarkedBlock(existing, block) {
|
|
134
|
+
const pattern = new RegExp(`${escapeRegExp(memoryGuidanceMarkers.start)}[\\s\\S]*?${escapeRegExp(memoryGuidanceMarkers.end)}\\n?`);
|
|
135
|
+
if (pattern.test(existing)) {
|
|
136
|
+
return existing.replace(pattern, block.endsWith('\n') ? block : `${block}\n`);
|
|
137
|
+
}
|
|
138
|
+
const prefix = existing.trimEnd();
|
|
139
|
+
return `${prefix}${prefix ? '\n\n' : ''}${block.endsWith('\n') ? block : `${block}\n`}`;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function escapeRegExp(value) {
|
|
143
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
async function writeGlobalMemoryGuidance() {
|
|
147
|
+
const targets = globalGuidanceTargets.filter((target) => !targetAgent || target.agent === targetAgent);
|
|
148
|
+
const updated = [];
|
|
149
|
+
const skipped = [];
|
|
150
|
+
for (const target of targets) {
|
|
151
|
+
const parentExists = await exists(path.dirname(target.file));
|
|
152
|
+
const explicitlyRequested = targetAgent === target.agent;
|
|
153
|
+
if (!parentExists && !explicitlyRequested) {
|
|
154
|
+
skipped.push({
|
|
155
|
+
agent: target.agent,
|
|
156
|
+
path: target.file,
|
|
157
|
+
reason: 'agent home not found',
|
|
158
|
+
});
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if (!parentExists && explicitlyRequested) {
|
|
162
|
+
skipped.push({
|
|
163
|
+
agent: target.agent,
|
|
164
|
+
path: target.file,
|
|
165
|
+
reason: 'agent home not found; create the directory or add the memory guidance manually',
|
|
166
|
+
});
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
let existing = '';
|
|
170
|
+
try {
|
|
171
|
+
existing = await readFile(target.file, 'utf8');
|
|
172
|
+
} catch (error) {
|
|
173
|
+
if (error.code !== 'ENOENT') {
|
|
174
|
+
skipped.push({ agent: target.agent, path: target.file, reason: error.message });
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
const content = upsertMarkedBlock(existing, renderMemoryGuidance(target.agent));
|
|
179
|
+
if (content !== existing) {
|
|
180
|
+
await writeFile(target.file, content, 'utf8');
|
|
181
|
+
}
|
|
182
|
+
updated.push({
|
|
183
|
+
agent: target.agent,
|
|
184
|
+
path: target.file,
|
|
185
|
+
updated: content !== existing,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
if (targetAgent && !globalGuidanceTargets.some((target) => target.agent === targetAgent)) {
|
|
189
|
+
skipped.push({
|
|
190
|
+
agent: targetAgent,
|
|
191
|
+
reason: 'unknown agent; global memory guidance path was not guessed',
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
marker: 'bpmax-cli:memory-guidance',
|
|
196
|
+
updated,
|
|
197
|
+
skipped,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
|
|
108
201
|
async function listSkillNames() {
|
|
109
202
|
const entries = await readdir(sourceSkillsDir, { withFileTypes: true });
|
|
110
203
|
const skillNames = [];
|
|
@@ -333,6 +426,7 @@ async function main() {
|
|
|
333
426
|
await installWithOpenClawCli(skillNames),
|
|
334
427
|
await installWithAilySkillhub(skillNames),
|
|
335
428
|
];
|
|
429
|
+
const globalGuidance = await writeGlobalMemoryGuidance();
|
|
336
430
|
const installedCount = adapters.reduce((sum, item) => sum + item.installed.length + item.fallbacks.length, 0);
|
|
337
431
|
const failedCount = adapters.reduce((sum, item) => sum + item.failed.length, 0);
|
|
338
432
|
|
|
@@ -345,6 +439,7 @@ async function main() {
|
|
|
345
439
|
adapters,
|
|
346
440
|
agent: targetAgent || 'auto',
|
|
347
441
|
agent_guidance: agentGuidance,
|
|
442
|
+
global_guidance: globalGuidance,
|
|
348
443
|
message: 'No compatible local agent skill directories detected.',
|
|
349
444
|
next_action: adapters.map((item) => item.next_action).filter(Boolean).join(' '),
|
|
350
445
|
};
|
|
@@ -370,6 +465,7 @@ async function main() {
|
|
|
370
465
|
adapters,
|
|
371
466
|
agent: targetAgent || 'auto',
|
|
372
467
|
agent_guidance: agentGuidance,
|
|
468
|
+
global_guidance: globalGuidance,
|
|
373
469
|
next_action: failedCount > 0 ? 'Review failed adapter items and retry.' : '',
|
|
374
470
|
...(targetAgent === 'openclaw' ? { reminder: openClawReminder } : {}),
|
|
375
471
|
};
|
|
@@ -391,6 +487,8 @@ async function main() {
|
|
|
391
487
|
console.log(`- ${item.adapter || 'adapter'} ${item.skill}: failed (${item.stderr || item.stdout || item.error || `exit ${item.exitCode}`})`);
|
|
392
488
|
});
|
|
393
489
|
agentGuidanceLines.forEach((line) => console.log(line));
|
|
490
|
+
result.global_guidance.updated.forEach((item) => console.log(`[bpmax-cli] Updated memory guidance: ${item.path}`));
|
|
491
|
+
result.global_guidance.skipped.forEach((item) => console.log(`[bpmax-cli] Skipped memory guidance for ${item.agent}: ${item.reason}`));
|
|
394
492
|
}
|
|
395
493
|
return result;
|
|
396
494
|
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "bpmax-ai-taskbook"
|
|
3
|
+
description: "Use when BPMAX configuration work needs an AI implementation taskbook, AI任务方案, 任务书, 任务拆解, subagent dispatch prompts, progress CSV, or object-lock review before editing flows, templates, datasets, roles, navigation, workspaces, or E2E assets."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BPMAX AI Taskbook
|
|
7
|
+
|
|
8
|
+
## Core Rule
|
|
9
|
+
|
|
10
|
+
Use a taskbook before dispatching broad BPMAX implementation work. The taskbook is a local planning and safety gate; it is not a BPMAX configuration write path.
|
|
11
|
+
|
|
12
|
+
## When To Use
|
|
13
|
+
|
|
14
|
+
- The user asks for an AI task plan, taskbook, implementation task table, subagent split, or progress tracking.
|
|
15
|
+
- 用户要求 AI任务方案、任务书、任务拆解、实施任务表、subagent 分工、进度表或 P0/P1 review。
|
|
16
|
+
- The work spans multiple BPMAX objects such as flow, form, dataset, list, filter, detail, dashboard, role, navigation, workspace, or E2E cases.
|
|
17
|
+
- The work may use subagents or parallel review.
|
|
18
|
+
- A new flow/app/workspace may be created and the real platform-generated ID must be fed back into later tasks.
|
|
19
|
+
- The user asks for P0/P1 review before commit or before continuing configuration.
|
|
20
|
+
|
|
21
|
+
Do not use this for a single narrow read-only query, one-field edit, or pure CLI auth/setup task.
|
|
22
|
+
|
|
23
|
+
## Config Skill / Capability Basis Gate
|
|
24
|
+
|
|
25
|
+
Taskbooks are not free-form work breakdowns. Before writing each configuration task, read or explicitly reference the relevant BPMAX configuration skill and the typed CLI adapter surface:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
bpmax-cli config adapters --format json
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Each task that touches a BPMAX configuration object must include all of these in `required_skills`, `object_lock`, `evidence`, or `notes`:
|
|
32
|
+
|
|
33
|
+
- the matching configuration skill, such as `bpmax-flow-template-editor`, `bpmax-form-template-editor`, `bpmax-list-template-editor`, `bpmax-dataset-field-template-editor`, `bpmax-nav-config-editor`, or `bpmax-workspace-editor`
|
|
34
|
+
- the typed CLI domain commands used for that object, for example `bpmax-cli config form-template lint/build/submit/verify`
|
|
35
|
+
- the object lock for that exact domain, such as `form-template:<id>`, `list-template:<id>`, `dataset-field:<id>`, `nav-config:<workspace>`, or `workspace-flow:<workspace>`
|
|
36
|
+
- write tasks must mention the `bpmax-cli config adapters --format json` capability/adapter check
|
|
37
|
+
- readonly tasks may use export/readback evidence only, but must still cite the relevant skill and object scope
|
|
38
|
+
- domain-specific constraints from the skill, for example:
|
|
39
|
+
- flow-template: `project_after_create_path`, code-mode `message_template`, `matrix_owner`, publish/readback behavior
|
|
40
|
+
- form-template: field schema, `raw.value`, `layout`, `sub_form`, `form-template inspect`
|
|
41
|
+
- list-template: operation column, detail/view action, guarded delete action, icon match, query safety, browser list-page proof
|
|
42
|
+
- project-detail-template: default detail template resolution and runtime detail-page proof
|
|
43
|
+
- dataset-field: `source_table`, `source_field`, `source_fk` / source mapping
|
|
44
|
+
- nav-config: PC/H5 entries, shortcut entry, browser proof that the entry opens the target page
|
|
45
|
+
|
|
46
|
+
If any task lacks the matching skill/capability basis, `bpmax-cli taskbook lint` / `lint-prompt` must fail and the taskbook must be revised before dispatch.
|
|
47
|
+
|
|
48
|
+
For the full implementation taskbook shape, use [references/taskbook-template.md](./references/taskbook-template.md). The template is the canonical skill-side checklist for phases, object locks, typed CLI evidence, and progress CSV setup.
|
|
49
|
+
|
|
50
|
+
Taskbook lint is implemented in the TypeScript CLI core. Do not add or call Python lint scripts for taskbook validation. JSON lint output uses stable English fields such as `code`, `rule_id`, `domain`, and `path`; user-facing `message`, `suggestion`, and normal text output are Chinese.
|
|
51
|
+
|
|
52
|
+
## Configuration Surface Coverage
|
|
53
|
+
|
|
54
|
+
When a requirement touches an end-to-end BPMAX configuration, the taskbook must explicitly include or intentionally skip these surfaces:
|
|
55
|
+
|
|
56
|
+
- flow-template: `bpmax-flow-template-editor`, `flow:<flow_type>` or `new-flow:<name>`, typed `config flow-template export/lint/build/submit/verify`, plus `project_after_create_path`, code-mode `message_template`, `matrix_owner`, publish/readback behavior.
|
|
57
|
+
- form-template: `bpmax-form-template-editor`, `form-template:<id>`, typed `config form-template export/lint/build/submit/verify`, plus field schema, `raw.value`, `layout`, `sub_form`, and `form-template inspect`.
|
|
58
|
+
- list-template: `bpmax-list-template-editor`, `list-template:<id>`, typed `config list-template lint/build/submit/verify`, plus operation column, view/detail action, guarded delete action, icon, query safety, and browser list-page proof.
|
|
59
|
+
- filter-template: `bpmax-filter-template-editor`, `filter-template:<id>`, typed `config filter-template lint/build/submit/verify`, plus filter fields and sample hit proof.
|
|
60
|
+
- project-detail-template: `bpmax-project-detail-template-editor`, `project-detail-template:<id>`, typed `config project-detail-template lint/build/submit/verify`, plus default detail template resolution and runtime detail-page proof.
|
|
61
|
+
- step-detail-template: `bpmax-flow-template-editor`, `step-detail-template:<id>`, flow node readback plus `flow_page_template.type=6` validation; do not misclassify node processing templates as project-detail-template.
|
|
62
|
+
- console-template: `bpmax-console-template-editor`, `console-template:<id>`, typed `config console-template lint/build/submit/verify`, plus module/data-set-field/runtime dashboard proof.
|
|
63
|
+
- dataset and dataset-field: `bpmax-dataset-template-editor` / `bpmax-dataset-field-template-editor`, with source mapping and publish/readback evidence.
|
|
64
|
+
- nav-config: `bpmax-nav-config-editor`, `nav-config:<workspace>`, typed `config nav-config lint/build/submit/verify`, four record types, and browser proof that PC/H5 entries open the target page.
|
|
65
|
+
- e2e/test-suite: `bpmax-e2e-flow-test-operator`, `e2e:<scenario>` or `test-suite:<scenario>`, test-suite lint/promote evidence, realistic business test data, browser proof, and failure update loop.
|
|
66
|
+
|
|
67
|
+
## Compact Fix Taskbook
|
|
68
|
+
|
|
69
|
+
When a test run finds one configuration defect and the user only needs a repair taskbook, use this compact template instead of the full implementation template. It is still linted before execution, but it should stay short:
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# BPMAX 配置缺陷修复任务书
|
|
73
|
+
|
|
74
|
+
## 目标与边界
|
|
75
|
+
- defect: <one-sentence defect>
|
|
76
|
+
- workspace: <workspace>
|
|
77
|
+
- flow_type: <flow_type or none>
|
|
78
|
+
- requested_fix: <exact requested fix>
|
|
79
|
+
- out_of_scope: <what must not be touched>
|
|
80
|
+
|
|
81
|
+
## 对象锁表
|
|
82
|
+
| lock | mode | reason |
|
|
83
|
+
| --- | --- | --- |
|
|
84
|
+
| <domain>:<numeric_id_or_flow_type> | exclusive-write | <why this object must change> |
|
|
85
|
+
|
|
86
|
+
## 停机点
|
|
87
|
+
- capability 缺失即停止。
|
|
88
|
+
- latest/readback 基线漂移即停止。
|
|
89
|
+
- lint 或浏览器回归失败即停止。
|
|
90
|
+
|
|
91
|
+
## 验收门禁
|
|
92
|
+
- typed CLI lint/build/submit/verify 通过。
|
|
93
|
+
- 浏览器真实页面回归通过,或明确标记未执行原因。
|
|
94
|
+
- 若涉及列表,必须检查操作列、查看/详情、删除可见性、icon、查询安全。
|
|
95
|
+
- 若涉及导航,必须检查入口可见并能打开目标页面。
|
|
96
|
+
|
|
97
|
+
## 进度 CSV
|
|
98
|
+
task_id,status,evidence,next
|
|
99
|
+
T01,未开始,,
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Use compact taskbooks for “测试发现一个配置缺陷,需要形成修复任务书”, “只修一个列表/详情/表单 lint 问题”, or “P1 小修复需要对象锁和验收门禁”. Use the full template when work spans multiple objects, new flow/app/workspace creation, approval matrix lifecycle, or subagent parallel execution.
|
|
103
|
+
|
|
104
|
+
## Commands
|
|
105
|
+
|
|
106
|
+
Create the taskbook:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
bpmax-cli taskbook init --out .codex/tmp/TASKBOOK.md
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Lint the taskbook before execution:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
For taskbooks that do not create or edit flows, keep the same content gates but skip the generated `flow_type` rule:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md --allow-generated-flow-type-missing
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Lint each subagent or handoff prompt before dispatch:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Initialize progress tracking:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
bpmax-cli taskbook progress init --source .codex/tmp/TASKBOOK.md --out .codex/tmp/taskbook-progress.csv
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Required Content
|
|
137
|
+
|
|
138
|
+
The taskbook must include:
|
|
139
|
+
|
|
140
|
+
- `目标与边界`
|
|
141
|
+
- `并行拆解硬规则`
|
|
142
|
+
- `阶段总览`
|
|
143
|
+
- `对象锁表`
|
|
144
|
+
- `AI 最小任务单元`
|
|
145
|
+
- `验收门禁`
|
|
146
|
+
- `导航入口策略`
|
|
147
|
+
- `列表 lint`
|
|
148
|
+
- `停机点`
|
|
149
|
+
- `进度 CSV`
|
|
150
|
+
- `配置 Skill / Capability 依据表`
|
|
151
|
+
|
|
152
|
+
Every AI task row must include:
|
|
153
|
+
|
|
154
|
+
- `business_goal`: concrete business outcome, not just a technical object name.
|
|
155
|
+
- `required_skills`: concrete BPMAX skills such as `bpmax-flow-template-editor`, `bpmax-form-template-editor`, `bpmax-list-template-editor`, `bpmax-nav-config-editor`, `bpmax-e2e-flow-test-operator`, or `bpmax-memory-protocol`.
|
|
156
|
+
- `object_lock`: one lock per mutable BPMAX object, for example `flow:<flow_type>`, `form-template:<id>`, `dataset:<id>`, `list-template:<id>`, `nav-config:<workspace>`, `workspace:<key>`, or `new-flow:<name>`.
|
|
157
|
+
- `subagent_mode`: one of `none`, `readonly`, `draft-only`, or `exclusive-write`.
|
|
158
|
+
- `dependencies`: upstream task IDs required before execution.
|
|
159
|
+
- `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
|
|
160
|
+
- For configuration write tasks, `evidence` or `notes` must include `bpmax-cli config adapters --format json`, the matching typed CLI lint/build/submit/verify commands, and the domain-specific constraints from the relevant skill.
|
|
161
|
+
|
|
162
|
+
## Object Lock Rules
|
|
163
|
+
|
|
164
|
+
- Duplicate object locks must not be edited in parallel.
|
|
165
|
+
- Read-only tasks may run in parallel, but must not save, publish, or submit payloads.
|
|
166
|
+
- UUID values are forbidden in BPMAX configuration taskbooks and subagent prompts. BPMAX 配置 ID 只能使用平台返回的数字 ID 或 `flow<number>`;新建前只能使用 `new-flow:<name>` 这种逻辑锁。
|
|
167
|
+
- Do not use UUIDs for form-template, dataset, dataset-field, page-template, role, workspace, flow_type, temporary ids, object locks, or examples.
|
|
168
|
+
- Approval matrix work must use separate tasks and object locks for: creating the matrix app, creating matrix rule records, filling real approver users, and connecting business flow `matrix_owner` / `cc_matrix`. Do not mark "matrix created" complete until both app configuration and rule data are verified.
|
|
169
|
+
- Navigation work must use a separate `nav-config:<workspace>` lock when it changes PC/H5 navigation or shortcuts.
|
|
170
|
+
- List-template work must include a lint and runtime evidence item: operation column, view/detail action, guarded delete action, matching icons, query safety, and browser list-page verification.
|
|
171
|
+
- Form-template work must include field schema/order evidence when forms or subforms change; use `bpmax-cli config form-template inspect --field <key>` when raw value order or rendered order is part of the risk.
|
|
172
|
+
- Dataset-field work must include source mapping evidence (`source_table`, `source_field`, `source_fk`) before submit.
|
|
173
|
+
- New flows must use `new-flow:<name>` until BPMAX returns a real `flow<number>`.
|
|
174
|
+
- After creation, replace the lock with `flow:<generated flow_type>` before dependent write tasks continue.
|
|
175
|
+
- Publishing, final sync, and cross-object integration must be single-threaded.
|
|
176
|
+
|
|
177
|
+
## Navigation And List Gates
|
|
178
|
+
|
|
179
|
+
- Every full flow-configuration taskbook must explicitly declare one navigation strategy:
|
|
180
|
+
- `nav-config:included` when this work creates or updates the menu/shortcut entry.
|
|
181
|
+
- `nav-config:skipped:<reason>` when no navigation entry is required.
|
|
182
|
+
- `nav-config:deferred:<reason>` when navigation is intentionally left for a later task.
|
|
183
|
+
- If navigation is included, add an AI task or acceptance item using `bpmax-nav-config-editor`, `nav-config:<workspace>`, typed `bpmax-cli config nav-config ...`, readback evidence, and browser proof that the entry opens the target list/create/detail page.
|
|
184
|
+
- If list configuration is included, add an AI task or acceptance item using `bpmax-list-template-editor`, typed `bpmax-cli config list-template lint/build/submit/verify`, lint evidence, and browser proof that the real list page renders data, opens detail, and enforces delete visibility correctly.
|
|
185
|
+
- Do not mark a full process configuration complete when list lint or required navigation verification is missing.
|
|
186
|
+
|
|
187
|
+
## Prompt Gate
|
|
188
|
+
|
|
189
|
+
Before dispatching any subagent prompt, run `lint-prompt`. The prompt must explicitly include:
|
|
190
|
+
|
|
191
|
+
- `业务目标场景`
|
|
192
|
+
- `required_skills`
|
|
193
|
+
- `对象锁`
|
|
194
|
+
- `subagent_mode`
|
|
195
|
+
- `允许操作`
|
|
196
|
+
- `不得修改`
|
|
197
|
+
- `输入依赖`
|
|
198
|
+
- `输出物`
|
|
199
|
+
- `验收方式`
|
|
200
|
+
- `导航入口策略`
|
|
201
|
+
- `列表 lint`
|
|
202
|
+
- `进度 CSV`
|
|
203
|
+
|
|
204
|
+
If `lint-prompt` fails, revise the prompt. Do not dispatch a vague prompt and rely on the subagent to infer scope.
|
|
205
|
+
|
|
206
|
+
## Execution Gate
|
|
207
|
+
|
|
208
|
+
Only after taskbook lint and prompt lint pass:
|
|
209
|
+
|
|
210
|
+
1. Run the latest configuration sync required by the target workspace.
|
|
211
|
+
2. Execute tasks according to object locks and dependencies.
|
|
212
|
+
3. Use typed `bpmax-cli config ...` commands for all BPMAX writes.
|
|
213
|
+
4. Update the progress CSV after each task.
|
|
214
|
+
5. Stop on capability gaps, baseline drift, object-lock conflict, failed lint, or failed browser/runtime verification.
|
|
215
|
+
|
|
216
|
+
不得把 taskbook 当作 BPMAX 配置写入命令。Taskbook commands are local file gates; they do not write BPMAX configuration and do not replace typed adapters.
|
|
217
|
+
|
|
218
|
+
## Memory
|
|
219
|
+
|
|
220
|
+
Start non-trivial taskbooks by consulting `bpmax-memory-protocol` or:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
bpmax-cli memory search --scope all --query "<workspace> <flow_type> taskbook implementation plan" --format json
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
After verified completion, write only reusable `decision`, `task_learning`, `anti_pattern`, or `session_state` memory. Do not write API keys, passwords, cookies, tokens, verification codes, phone numbers, full payloads, or large raw API responses.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
name: bpmax-ai-taskbook
|
|
2
|
+
description: Generate and lint BPMAX AI implementation taskbooks with object locks, typed CLI capability evidence, and execution progress CSV guidance.
|
|
3
|
+
default_prompt: "使用 $bpmax-ai-taskbook 生成或审查 BPMAX AI 实施任务书。必须检查对象锁、配置 skill、typed CLI capability/adapters、验收门禁和进度 CSV。"
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# BPMAX AI Taskbook Template
|
|
2
|
+
|
|
3
|
+
Use this template when BPMAX configuration work spans multiple objects or agents.
|
|
4
|
+
The taskbook defines the execution plan; runtime progress belongs in a separate CSV.
|
|
5
|
+
|
|
6
|
+
## 目标与边界
|
|
7
|
+
|
|
8
|
+
- 业务目标:
|
|
9
|
+
- 工作区:
|
|
10
|
+
- 范围内对象:
|
|
11
|
+
- 不得修改:
|
|
12
|
+
- 线上基线来源:
|
|
13
|
+
- 验收方式:
|
|
14
|
+
|
|
15
|
+
## 配置 Skill / Capability 依据
|
|
16
|
+
|
|
17
|
+
Before writing each task, identify the matching BPMAX configuration skill and typed CLI domain.
|
|
18
|
+
Write tasks must include `bpmax-cli config adapters --format json` evidence.
|
|
19
|
+
|
|
20
|
+
| 配置面 | object_lock | required_skills | typed CLI evidence | 专项约束 |
|
|
21
|
+
|---|---|---|---|---|
|
|
22
|
+
| 流程模板 | `flow:<flow_type>` / `new-flow:<name>` | `bpmax-flow-template-editor` | `config flow-template export/lint/build/submit/verify` | `project_after_create_path`、code-mode `message_template`、`matrix_owner`、发布回读 |
|
|
23
|
+
| 表单模板 | `form-template:<id>` | `bpmax-form-template-editor`、`form-control-library` | `config form-template export/lint/build/submit/verify` | 字段 schema、表单顺序、`raw.value`、`layout`、`sub_form`、`inspect` |
|
|
24
|
+
| 列表模板 | `list-template:<id>` | `bpmax-list-template-editor` | `config list-template lint/build/submit/verify` | 操作列、详情动作、删除 gate、icon、查询安全、真实列表页 |
|
|
25
|
+
| 筛选器 | `filter-template:<id>` | `bpmax-filter-template-editor` | `config filter-template lint/build/submit/verify` | 筛选字段、查询条件、样本命中 |
|
|
26
|
+
| 项目详情模板 | `project-detail-template:<id>` | `bpmax-project-detail-template-editor` | `config project-detail-template lint/build/submit/verify` | 默认详情模板解析、运行页 proof |
|
|
27
|
+
| 环节模板 | `step-detail-template:<id>` | `bpmax-flow-template-editor` | flow 节点回读 + 页面模板回读 | `flow_page_template.type=6`、节点动作适配 |
|
|
28
|
+
| 看板模板 | `console-template:<id>` | `bpmax-console-template-editor` | `config console-template lint/build/submit/verify` | 指标、模块、数据集字段、运行页 proof |
|
|
29
|
+
| 数据集 | `dataset:<id>` | `bpmax-dataset-template-editor` | `config dataset lint/build/submit/verify` | 预处理脚本、字段发布、刷新 |
|
|
30
|
+
| 数据集字段 | `dataset-field:<id>` | `bpmax-dataset-field-template-editor` | `config dataset-field lint/build/submit/verify` | `source_table/source_field/source_fk`、字段映射 |
|
|
31
|
+
| 导航配置 | `nav-config:<workspace>` | `bpmax-nav-config-editor` | `config nav-config lint/build/submit/verify` | PC/H5 导航、快捷入口、浏览器打开 |
|
|
32
|
+
| 工作区流程 | `workspace-flow:<workspace>` | `bpmax-workspace-editor` | `config workspace-flow export/lint/build/submit/verify` | 全量替换,提交前重新 export 并 merge |
|
|
33
|
+
| E2E | `e2e:<scenario>` | `bpmax-e2e-flow-test-operator` | `test-suite lint/promote`、浏览器证据 | 真实业务数据、截图、失败更新循环 |
|
|
34
|
+
|
|
35
|
+
## 阶段模型
|
|
36
|
+
|
|
37
|
+
| 阶段 | 执行方式 | 目标 |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| 阶段 0 | 单线 | 线上基线确认、范围 gate、初始对象清单 |
|
|
40
|
+
| 阶段 1 | 多线只读并行 | 流程、表单、数据集、控件、截图、验证样例调研 |
|
|
41
|
+
| 阶段 2 | 单线 | 合并调研结果,建立对象锁表和最终任务队列 |
|
|
42
|
+
| 阶段 3 | 对象独占配置 | 仅对象锁互不重复的写任务可并行 |
|
|
43
|
+
| 阶段 4 | 单线 | 发布、集成、导航挂载、线上读回 |
|
|
44
|
+
| 阶段 5 | 多线只读验证 | 表单、流程、自动化、列表/详情、筛选器、导航入口、数据回读 |
|
|
45
|
+
| 阶段 6 | 单线 | 汇总证据、同步配置、沉淀记忆或 skill |
|
|
46
|
+
|
|
47
|
+
## AI 最小任务表
|
|
48
|
+
|
|
49
|
+
| task_id | status | phase | parallel_type | subagent_mode | business_goal | required_skills | object_lock | dependencies | owner | evidence | notes |
|
|
50
|
+
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
51
|
+
| T00 | 未开始 | 0 | 单线 | none | 确认线上基线和范围 | bpmax-e2e-flow-config-orchestrator | global:baseline | | 主线程 | latest/readback proof | 不修改配置 |
|
|
52
|
+
|
|
53
|
+
## 停机点
|
|
54
|
+
|
|
55
|
+
- 线上基线无法确认。
|
|
56
|
+
- 对象锁冲突。
|
|
57
|
+
- capability / adapter 缺失。
|
|
58
|
+
- typed CLI lint/build/submit/verify 任一失败。
|
|
59
|
+
- 浏览器真实页面验收失败或缺证据。
|
|
60
|
+
|
|
61
|
+
## 进度 CSV
|
|
62
|
+
|
|
63
|
+
执行前创建单独 CSV,飞书或 Markdown 任务书不承载运行态进度。
|
|
64
|
+
|
|
65
|
+
```csv
|
|
66
|
+
task_id,status,evidence,next
|
|
67
|
+
T00,未开始,,
|
|
68
|
+
```
|