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/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# 项目详情模板模块目录与配置注意事项
|
|
2
|
+
|
|
3
|
+
## 模块事实来源优先级
|
|
4
|
+
1. 当前线上页面与真实接口
|
|
5
|
+
2. `components/ProjectDetailConfig/utils/moduleRegistry.js`
|
|
6
|
+
3. `components/DetailSections/README.md`
|
|
7
|
+
4. `doc.bpmax.cn/script/ui/project-detail.html`
|
|
8
|
+
|
|
9
|
+
## 当前已知模块区域约束
|
|
10
|
+
- `main_col` 常见:
|
|
11
|
+
- `project-info`
|
|
12
|
+
- `meta-form`
|
|
13
|
+
- `step-form`
|
|
14
|
+
- `step-form-any`
|
|
15
|
+
- `comment-list`
|
|
16
|
+
- `project-list`
|
|
17
|
+
- `finance`
|
|
18
|
+
- `customer-binding`
|
|
19
|
+
- `step-arrange`
|
|
20
|
+
- `periods`
|
|
21
|
+
- `auto-replay-info`
|
|
22
|
+
- `delay-reason`
|
|
23
|
+
- `generate-report`
|
|
24
|
+
- `project-detail-panel`
|
|
25
|
+
- `project-meta-info`
|
|
26
|
+
- `project-reopen`
|
|
27
|
+
- `side_col` 常见:
|
|
28
|
+
- `project-info`
|
|
29
|
+
- `comment-list`
|
|
30
|
+
- `project-list`
|
|
31
|
+
- `step-log`
|
|
32
|
+
- `attachment-list`
|
|
33
|
+
- `circulate`
|
|
34
|
+
- `project-meta-info`
|
|
35
|
+
- `custom-form-list`
|
|
36
|
+
|
|
37
|
+
## 处理原则
|
|
38
|
+
- `moduleRegistry.js` 中不存在,但源码或历史模板存在的模块:
|
|
39
|
+
- 允许作为高级 JSON 模式候选
|
|
40
|
+
- 默认不承诺可视化面板一定能直接新增或编辑
|
|
41
|
+
- `project-list`:
|
|
42
|
+
- 主区默认看 `flow_type/flow_key/mode/query`
|
|
43
|
+
- 侧栏常见 `isSubProcess = true`
|
|
44
|
+
- `step-form`:
|
|
45
|
+
- 必须显式配置 `flow_step_id`
|
|
46
|
+
- 模块顺序:
|
|
47
|
+
- 数组顺序就是页面渲染顺序
|
|
48
|
+
|
|
49
|
+
## 可复用最小 JSON 示例
|
|
50
|
+
|
|
51
|
+
### meta-form:展示当前项目表单字段/子表
|
|
52
|
+
|
|
53
|
+
用于展示主项目表单的基础信息、字段和子表。适合主区。
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"type": "meta-form",
|
|
58
|
+
"title": "项目表单",
|
|
59
|
+
"config": {
|
|
60
|
+
"showTitle": true,
|
|
61
|
+
"fields": [],
|
|
62
|
+
"subForms": []
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
说明:
|
|
68
|
+
- `fields: []` 表示按表单默认字段展示;需要控制字段时再显式列 key。
|
|
69
|
+
- 子表展示依赖表单模板本身存在 sub_form 控件;详情模板只负责展示,不负责创建表单结构。
|
|
70
|
+
|
|
71
|
+
### project-list:展示关联子流程/子项目
|
|
72
|
+
|
|
73
|
+
用于在当前项目详情页展示关联的下游流程、子流程或子项目列表。优先使用已验证的父子关联表格模式。
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"type": "project-list",
|
|
78
|
+
"title": "关联项目",
|
|
79
|
+
"config": {
|
|
80
|
+
"mode": "",
|
|
81
|
+
"format": "table",
|
|
82
|
+
"template_id": 954573597,
|
|
83
|
+
"flow_type": "flow123456789",
|
|
84
|
+
"flow_key": ""
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
说明:
|
|
90
|
+
- `template_id` 必须是列表模板数字 ID,不得使用 UUID。
|
|
91
|
+
- 只有运行态确认 ES 列表模式可稳定加载时,才使用 `mode: "project"`。
|
|
92
|
+
|
|
93
|
+
### project-info:展示项目基础信息
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
{
|
|
97
|
+
"type": "project-info",
|
|
98
|
+
"title": "项目信息",
|
|
99
|
+
"config": {
|
|
100
|
+
"showCreator": true,
|
|
101
|
+
"showCreateTime": true,
|
|
102
|
+
"showStatus": true
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### step-log:展示流程流转记录
|
|
108
|
+
|
|
109
|
+
适合侧栏,用于验收审批/退回/转交痕迹。
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"type": "step-log",
|
|
114
|
+
"title": "流转记录",
|
|
115
|
+
"config": {
|
|
116
|
+
"showComment": true,
|
|
117
|
+
"showTime": true
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# 项目详情模板 Payload 检查清单
|
|
2
|
+
|
|
3
|
+
## 导出前
|
|
4
|
+
- 是否已经确认当前页面是 `project_detail_template` 而不是列表模板或筛选器模板
|
|
5
|
+
- 是否已经通过真实接口拿到当前 `type=2` 详情
|
|
6
|
+
- create 模式是否已经锁定 sample template
|
|
7
|
+
|
|
8
|
+
## work 文件
|
|
9
|
+
- `basic.type` 是否固定为 `2`
|
|
10
|
+
- `basic.flow_type` / `basic.flow_key` 是否来自当前页面 query
|
|
11
|
+
- `content.config` 是否仍是对象
|
|
12
|
+
- `content.main_col` / `content.side_col` 是否仍是数组
|
|
13
|
+
- 模块顺序是否就是页面目标展示顺序
|
|
14
|
+
- `step-form.config.flow_step_id` 是否完整
|
|
15
|
+
- `project-list` 是否按主区/侧栏模式配置
|
|
16
|
+
|
|
17
|
+
## submit 文件
|
|
18
|
+
- 是否由 `build_submit_payload.py` 构建
|
|
19
|
+
- 顶层是否只保留真实提交字段
|
|
20
|
+
- `content` 是否已经统一字符串化
|
|
21
|
+
- 是否没有混入 `rule/value/publish/origin_template_id`
|
|
22
|
+
|
|
23
|
+
## lint
|
|
24
|
+
- side-only 模块是否误放进 `main_col`
|
|
25
|
+
- `content` 是否 JSON 可序列化
|
|
26
|
+
- 高风险脚本位点是否没有 `data_set_id` 误用
|
|
27
|
+
- 未知模块是否只作为高级 JSON 模式候选,而不是误判为可视化可配
|
|
28
|
+
|
|
29
|
+
## 提交后
|
|
30
|
+
- 顶层 `name/desc/type/flow_type/flow_key` 是否回读一致
|
|
31
|
+
- `content.config/main_col/side_col` 是否回读一致
|
|
32
|
+
- 浏览器编辑页是否回显目标模块顺序和标题
|
|
33
|
+
- 若做启用/删除,列表页状态是否同步更新
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# BPMAX 项目详情模板接口与本地文件工作流
|
|
2
|
+
|
|
3
|
+
## 适用页面
|
|
4
|
+
- 列表页:`/w:<workspace>/project_detail_template?flow_type=<flow_type>&flow_key=<flow_key>`
|
|
5
|
+
- 新建页:`/w:<workspace>/project_detail_template/create?flow_type=<flow_type>&flow_key=<flow_key>`
|
|
6
|
+
- 编辑页:`/w:<workspace>/project_detail_template/<id>?flow_type=<flow_type>&flow_key=<flow_key>`
|
|
7
|
+
|
|
8
|
+
## 真实线上接口
|
|
9
|
+
- 详情读取:`GET /api/flow_page_template/:id?type=2&create=&skip_i18n=true`
|
|
10
|
+
- 新建:`POST /api/flow_page_template`
|
|
11
|
+
- 编辑:`PUT /api/flow_page_template/:id`
|
|
12
|
+
- 启用:`PUT /api/flow_page_template/:id`
|
|
13
|
+
- 删除:`DELETE /api/flow_page_template/:id`
|
|
14
|
+
|
|
15
|
+
## 提交体口径
|
|
16
|
+
- `type` 固定为 `2`
|
|
17
|
+
- create/edit 提交体只保留:
|
|
18
|
+
- `name`
|
|
19
|
+
- `desc`
|
|
20
|
+
- `type`
|
|
21
|
+
- `flow_type`
|
|
22
|
+
- `flow_key`
|
|
23
|
+
- `content`
|
|
24
|
+
- create 模式额外保留:
|
|
25
|
+
- `status`
|
|
26
|
+
- `content` 必须是 `JSON.stringify({ config, main_col, side_col })`
|
|
27
|
+
|
|
28
|
+
## 启用动作最小 body
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"status": 1,
|
|
32
|
+
"flow_type": "flow801021391",
|
|
33
|
+
"flow_key": ""
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## 验证事实
|
|
38
|
+
- 编辑页当前已验证会请求:
|
|
39
|
+
- `GET /api/flow_page_template/:id?type=2&create=&skip_i18n=true`
|
|
40
|
+
- 编辑页前端提交逻辑当前已验证:
|
|
41
|
+
- create -> `POST /api/flow_page_template`
|
|
42
|
+
- edit -> `PUT /api/flow_page_template/:id`
|
|
43
|
+
- 列表页启用逻辑当前已验证:
|
|
44
|
+
- `PUT /api/flow_page_template/:id` with `status/flow_type/flow_key`
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
|
|
6
|
+
from project_detail_template_editor_common import build_submit_payload, dump_json, load_json, paths_for, update_build_meta, write_diff
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
10
|
+
p = argparse.ArgumentParser(description="Build the final BPMAX project-detail-template submit payload from a local work file.")
|
|
11
|
+
p.add_argument("--stem", required=True)
|
|
12
|
+
return p
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def main() -> int:
|
|
16
|
+
args = build_parser().parse_args()
|
|
17
|
+
paths = paths_for(args.stem)
|
|
18
|
+
work = load_json(paths["work"])
|
|
19
|
+
submit = build_submit_payload(work)
|
|
20
|
+
dump_json(paths["submit"], submit)
|
|
21
|
+
write_diff(paths["submit_diff"], work, submit, "work", "submit")
|
|
22
|
+
update_build_meta(paths["meta"], stem=args.stem, work_path=paths["work"], submit_path=paths["submit"])
|
|
23
|
+
print(paths["submit"])
|
|
24
|
+
print(paths["submit_diff"])
|
|
25
|
+
print(paths["meta"])
|
|
26
|
+
return 0
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
if __name__ == "__main__":
|
|
30
|
+
raise SystemExit(main())
|
package/skills/bpmax-project-detail-template-editor/scripts/confirm_project_detail_template.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
|
|
6
|
+
from project_detail_template_editor_common import paths_for, update_confirmation_state
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
10
|
+
p = argparse.ArgumentParser(description="Persist local confirmation state for BPMAX project-detail-template work or submit artifacts.")
|
|
11
|
+
p.add_argument("--stem", required=True)
|
|
12
|
+
p.add_argument("--stage", required=True, choices=("work", "submit"))
|
|
13
|
+
p.add_argument("--actor", default="codex")
|
|
14
|
+
return p
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def main() -> int:
|
|
18
|
+
args = build_parser().parse_args()
|
|
19
|
+
paths = paths_for(args.stem)
|
|
20
|
+
update_confirmation_state(
|
|
21
|
+
paths["meta"],
|
|
22
|
+
stem=args.stem,
|
|
23
|
+
actor=args.actor,
|
|
24
|
+
stage=args.stage,
|
|
25
|
+
work_path=paths["work"],
|
|
26
|
+
submit_path=paths["submit"],
|
|
27
|
+
)
|
|
28
|
+
print(paths["meta"])
|
|
29
|
+
return 0
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
if __name__ == "__main__":
|
|
33
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
|
|
6
|
+
from project_detail_template_editor_common import (
|
|
7
|
+
build_client,
|
|
8
|
+
build_create_raw_payload,
|
|
9
|
+
create_stem,
|
|
10
|
+
detail_to_work_payload,
|
|
11
|
+
dump_json,
|
|
12
|
+
paths_for,
|
|
13
|
+
write_diff,
|
|
14
|
+
write_export_meta,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
19
|
+
p = argparse.ArgumentParser(description="Export an online BPMAX project-detail-template into local temp files.")
|
|
20
|
+
p.add_argument("--template-id", type=int)
|
|
21
|
+
p.add_argument("--sample-template-id", type=int)
|
|
22
|
+
p.add_argument("--create-skeleton", action="store_true")
|
|
23
|
+
p.add_argument("--workspace")
|
|
24
|
+
p.add_argument("--base-url")
|
|
25
|
+
p.add_argument("--language", default="zhCN")
|
|
26
|
+
p.add_argument("--cookie-header")
|
|
27
|
+
p.add_argument("--timeout", type=float, default=30)
|
|
28
|
+
p.add_argument("--insecure", action="store_true")
|
|
29
|
+
return p
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def main() -> int:
|
|
33
|
+
args = build_parser().parse_args()
|
|
34
|
+
client = build_client(args)
|
|
35
|
+
|
|
36
|
+
if args.template_id:
|
|
37
|
+
response = client.get_flow_page_template(args.template_id)
|
|
38
|
+
detail = response.get("data") or {}
|
|
39
|
+
stem = str(args.template_id)
|
|
40
|
+
mode = "edit"
|
|
41
|
+
raw = detail
|
|
42
|
+
work = detail_to_work_payload(detail, mode=mode)
|
|
43
|
+
template_id = args.template_id
|
|
44
|
+
sample_template_id = None
|
|
45
|
+
request_url = client._build_url(f"/api/flow_page_template/{args.template_id}?type=2&create=&skip_i18n=true")
|
|
46
|
+
else:
|
|
47
|
+
if not args.create_skeleton:
|
|
48
|
+
raise SystemExit("either --template-id or --create-skeleton is required")
|
|
49
|
+
if not args.sample_template_id:
|
|
50
|
+
raise SystemExit("--sample-template-id is required for --create-skeleton")
|
|
51
|
+
response = client.get_flow_page_template(args.sample_template_id)
|
|
52
|
+
detail = response.get("data") or {}
|
|
53
|
+
stem = create_stem(detail.get("flow_type", ""), detail.get("flow_key", ""), args.sample_template_id)
|
|
54
|
+
mode = "create"
|
|
55
|
+
raw = build_create_raw_payload(detail, sample_template_id=args.sample_template_id)
|
|
56
|
+
work = detail_to_work_payload(detail, mode=mode, sample_template_id=args.sample_template_id)
|
|
57
|
+
template_id = None
|
|
58
|
+
sample_template_id = args.sample_template_id
|
|
59
|
+
request_url = client._build_url(f"/api/flow_page_template/{args.sample_template_id}?type=2&create=&skip_i18n=true")
|
|
60
|
+
|
|
61
|
+
paths = paths_for(stem)
|
|
62
|
+
dump_json(paths["raw"], raw)
|
|
63
|
+
dump_json(paths["work"], work)
|
|
64
|
+
write_export_meta(
|
|
65
|
+
paths["meta"],
|
|
66
|
+
stem=stem,
|
|
67
|
+
mode=mode,
|
|
68
|
+
template_id=template_id,
|
|
69
|
+
template_uuid=(response.get("data") or {}).get("uuid"),
|
|
70
|
+
sample_template_id=sample_template_id,
|
|
71
|
+
workspace=client.workspace,
|
|
72
|
+
language=client.language,
|
|
73
|
+
request_url=request_url,
|
|
74
|
+
raw_path=paths["raw"],
|
|
75
|
+
work_path=paths["work"],
|
|
76
|
+
)
|
|
77
|
+
write_diff(paths["work_diff"], raw, work, "raw", "work")
|
|
78
|
+
|
|
79
|
+
print(paths["raw"])
|
|
80
|
+
print(paths["work"])
|
|
81
|
+
print(paths["meta"])
|
|
82
|
+
print(paths["work_diff"])
|
|
83
|
+
return 0
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
if __name__ == "__main__":
|
|
87
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
|
|
6
|
+
from project_detail_template_editor_common import (
|
|
7
|
+
dump_json,
|
|
8
|
+
lint_project_detail_template_semantics,
|
|
9
|
+
load_json,
|
|
10
|
+
paths_for,
|
|
11
|
+
update_lint_meta,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
16
|
+
p = argparse.ArgumentParser(description="Run semantic lint for a local BPMAX project-detail-template work/submit pair.")
|
|
17
|
+
p.add_argument("--stem", required=True)
|
|
18
|
+
return p
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def main() -> int:
|
|
22
|
+
args = build_parser().parse_args()
|
|
23
|
+
paths = paths_for(args.stem)
|
|
24
|
+
work = load_json(paths["work"])
|
|
25
|
+
submit = load_json(paths["submit"])
|
|
26
|
+
report = lint_project_detail_template_semantics(work, submit_payload=submit)
|
|
27
|
+
dump_json(paths["semantic_lint"], report)
|
|
28
|
+
update_lint_meta(paths["meta"], stem=args.stem, submit_path=paths["submit"], lint_path=paths["semantic_lint"], report=report)
|
|
29
|
+
print(paths["semantic_lint"])
|
|
30
|
+
print(paths["meta"])
|
|
31
|
+
if not report["ok"]:
|
|
32
|
+
raise SystemExit("project-detail-template lint failed; inspect semantic-lint.json for details")
|
|
33
|
+
return 0
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
if __name__ == "__main__":
|
|
37
|
+
raise SystemExit(main())
|