bpmax-cli 0.1.43 → 0.1.44-beta.0
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 +3 -3
- package/dist/bin.js +3372 -453
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- 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-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 +2 -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 +600 -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 +151 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +4 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +60 -0
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +371 -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/browser-only-checkpoints.md +33 -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 +19 -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 +107 -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 +58 -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 +95 -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 +1043 -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 +159 -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 +163 -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 +54 -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 +93 -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 +1074 -0
- package/skills/bpmax-form-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +193 -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 +89 -0
- package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +1745 -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 +1303 -0
- package/skills/bpmax-list-template-editor/SKILL.md +468 -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 +148 -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 +103 -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 +140 -0
- package/skills/bpmax-list-template-editor/references/special-formats.md +394 -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-nav-config-editor/SKILL.md +347 -0
- package/skills/bpmax-nav-config-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +68 -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 +46 -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-project/SKILL.md +1 -1
- package/skills/bpmax-project-detail-template-editor/SKILL.md +329 -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 +47 -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/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
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# Lessons From Resume Dashboard
|
|
2
|
+
|
|
3
|
+
## 背景
|
|
4
|
+
- 实战模板:
|
|
5
|
+
- `954573993`
|
|
6
|
+
- 环境:
|
|
7
|
+
- `https://bpmax.example.com/w:recruitment`
|
|
8
|
+
- 场景:
|
|
9
|
+
- 简历管理分析看板
|
|
10
|
+
- 流程:
|
|
11
|
+
- `flow998320199`
|
|
12
|
+
|
|
13
|
+
## 最终落地的模块组合
|
|
14
|
+
- 饼图:
|
|
15
|
+
- `简历结果分布`
|
|
16
|
+
- 折线图:
|
|
17
|
+
- `简历投递趋势`
|
|
18
|
+
- 表格:
|
|
19
|
+
- `岗位简历统计`
|
|
20
|
+
|
|
21
|
+
## 用到的真实字段
|
|
22
|
+
- `result`
|
|
23
|
+
- `rate`
|
|
24
|
+
- `create_time`
|
|
25
|
+
- 岗位名称直接取项目名:
|
|
26
|
+
- `think_project.name`
|
|
27
|
+
|
|
28
|
+
## 踩到的坑
|
|
29
|
+
|
|
30
|
+
### 1. 图表表达式首轮拿不到 `ctx.config`
|
|
31
|
+
现象:
|
|
32
|
+
- 编辑页即时预览报错:
|
|
33
|
+
- `Cannot read properties of undefined (reading 'title')`
|
|
34
|
+
|
|
35
|
+
原因:
|
|
36
|
+
- 看板编辑器某一轮先执行表达式,再补全模块 `config`。
|
|
37
|
+
|
|
38
|
+
修正:
|
|
39
|
+
- 图表表达式统一改成:
|
|
40
|
+
- `const cfg = ctx.config || {};`
|
|
41
|
+
- 再读取 `cfg.title`
|
|
42
|
+
|
|
43
|
+
结论:
|
|
44
|
+
- 以后所有 `ConsoleChart` 首版模板都应默认写空值兜底。
|
|
45
|
+
|
|
46
|
+
### 2. `custom_bpmax` 后端脚本拿不到前端变量
|
|
47
|
+
现象:
|
|
48
|
+
- 表格模块数据源返回:
|
|
49
|
+
- `page_size is not defined`
|
|
50
|
+
|
|
51
|
+
原因:
|
|
52
|
+
- 后端执行 `script` 时,并不会自动认识前端模板字符串中的 `${page_size}` 占位符。
|
|
53
|
+
|
|
54
|
+
修正:
|
|
55
|
+
- 放弃首版分页 SQL,改为直接返回全量岗位聚合数据。
|
|
56
|
+
- 前端 `config` 里再把结果映射成表格结构。
|
|
57
|
+
|
|
58
|
+
结论:
|
|
59
|
+
- 首版统计看板优先求稳,不要过早把复杂分页逻辑塞进 `custom_bpmax`。
|
|
60
|
+
|
|
61
|
+
### 3. 编辑页会额外触发空查询
|
|
62
|
+
现象:
|
|
63
|
+
- 存在一次:
|
|
64
|
+
- `POST /bpmax/data-source/search`
|
|
65
|
+
- body 为 `{}`
|
|
66
|
+
- 返回 `Unexpected end of JSON input`
|
|
67
|
+
|
|
68
|
+
原因:
|
|
69
|
+
- 编辑器初始化过程中的非业务请求。
|
|
70
|
+
|
|
71
|
+
结论:
|
|
72
|
+
- 不要看到这个报错就回滚模板。
|
|
73
|
+
- 应继续检查后续带真实 query 的请求是否成功。
|
|
74
|
+
|
|
75
|
+
### 4. 图表是否成功不能只看文本快照
|
|
76
|
+
现象:
|
|
77
|
+
- 预览页快照里主要能看到表格文本,不一定能读出图表标题或图形。
|
|
78
|
+
|
|
79
|
+
修正:
|
|
80
|
+
- 用截图核对最终页面。
|
|
81
|
+
- 同时结合数据源请求成功与否判断图表是否已渲染。
|
|
82
|
+
|
|
83
|
+
结论:
|
|
84
|
+
- 图表类验证优先级:
|
|
85
|
+
- 截图
|
|
86
|
+
- 数据源接口
|
|
87
|
+
- 控制台错误
|
|
88
|
+
- 文本快照
|
|
89
|
+
|
|
90
|
+
## 本次有效经验
|
|
91
|
+
- 招聘分析场景里,用 `custom_bpmax` 直接查流程表是可行的。
|
|
92
|
+
- 结果字段必须把空值并到 `未填写`。
|
|
93
|
+
- 评分字段做平均前必须先过滤非数值字符串。
|
|
94
|
+
- 新建模板后必须从保存响应里取真实 `id`,不能等页面自己跳转。
|
|
95
|
+
|
|
96
|
+
## 建议沉淀为默认模板套路
|
|
97
|
+
- 一个分布图:
|
|
98
|
+
- 结果 / 级别 / 环节
|
|
99
|
+
- 一个趋势图:
|
|
100
|
+
- 按日或按周投递趋势
|
|
101
|
+
- 一个统计表:
|
|
102
|
+
- 按岗位聚合的数量、合格率、平均评分
|
|
103
|
+
|
|
104
|
+
## 后续可扩展方向
|
|
105
|
+
- 加全局筛选器:
|
|
106
|
+
- 岗位
|
|
107
|
+
- 结果
|
|
108
|
+
- 级别
|
|
109
|
+
- 日期范围
|
|
110
|
+
- 增加漏斗图:
|
|
111
|
+
- 投递 -> 合格 -> 面试 -> 入职
|
|
112
|
+
- 把岗位统计扩展成:
|
|
113
|
+
- 岗位 + 负责人
|
|
114
|
+
- 岗位 + 当前环节
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# 本地临时文件闭环
|
|
2
|
+
|
|
3
|
+
## 目标
|
|
4
|
+
- 统一 `bpmax-console-template-editor` 的主路径为:
|
|
5
|
+
- 接口确认真实线上结构
|
|
6
|
+
- 导出本地临时文件
|
|
7
|
+
- work 第一次确认
|
|
8
|
+
- submit 第二次确认
|
|
9
|
+
- lint
|
|
10
|
+
- 脚本提交
|
|
11
|
+
- 接口回读
|
|
12
|
+
- 浏览器刷新验收
|
|
13
|
+
|
|
14
|
+
## 目录结构
|
|
15
|
+
- 所有临时文件固定写到 `.codex/tmp/console-template-editor/`
|
|
16
|
+
- 标准产物:
|
|
17
|
+
- `raw/<stem>.json`
|
|
18
|
+
- `work/<stem>.json`
|
|
19
|
+
- `meta/<stem>.json`
|
|
20
|
+
- `submit/<stem>.json`
|
|
21
|
+
- `diffs/<stem>.work.diff.txt`
|
|
22
|
+
- `diffs/<stem>.submit.diff.txt`
|
|
23
|
+
- `result/<stem>.response.json`
|
|
24
|
+
- `result/<stem>.readback.json`
|
|
25
|
+
- `result/<stem>.verify.json`
|
|
26
|
+
- `result/<stem>.drift.json`
|
|
27
|
+
- `result/<stem>.lint.json`
|
|
28
|
+
|
|
29
|
+
## 状态机
|
|
30
|
+
- `exported`
|
|
31
|
+
- 刚导出完成
|
|
32
|
+
- 允许编辑 `work`
|
|
33
|
+
- 不允许 build submit
|
|
34
|
+
- `work_confirmed`
|
|
35
|
+
- 用户已确认 `work`
|
|
36
|
+
- 允许执行 `build_submit_payload.py`
|
|
37
|
+
- `submit_built`
|
|
38
|
+
- `submit` 已从 `work` 构建完成
|
|
39
|
+
- `lint_passed`
|
|
40
|
+
- `submit` 已通过静态合法性检查
|
|
41
|
+
- 等待第二次确认
|
|
42
|
+
- `submit_confirmed`
|
|
43
|
+
- 用户已确认 `submit`
|
|
44
|
+
- 允许执行 `submit_console_template.py`
|
|
45
|
+
- `submitted`
|
|
46
|
+
- 已通过脚本提交
|
|
47
|
+
- 已有接口回读与页面刷新入口
|
|
48
|
+
|
|
49
|
+
## 强制门禁
|
|
50
|
+
- 不能跳过 `GET /flow_page_template/:id?skip_i18n=true` 或样例详情读取。
|
|
51
|
+
- 终端脚本请求真实接口时,必须对齐线上运行时 `/api/flow_page_template/...`,不要漏掉 `/api` 前缀。
|
|
52
|
+
- 没有 `work_confirmed`,不得构建 `submit`。
|
|
53
|
+
- 没有 `lint_passed`,不得做第二次确认。
|
|
54
|
+
- 没有 `submit_confirmed`,不得执行提交。
|
|
55
|
+
- `work` 或 `submit` 文件任意一方变化后,旧确认和旧 lint 结果自动失效。
|
|
56
|
+
|
|
57
|
+
## build 规则
|
|
58
|
+
- `basic` 映射顶层提交字段。
|
|
59
|
+
- `modules + keepLayoutItems` 组成最终 `content.layout`。
|
|
60
|
+
- `removedLayoutItems` 仅用于声明删除。
|
|
61
|
+
- `content` 提交前必须序列化成字符串。
|
|
62
|
+
- create 模式固定补 `status: 0`。
|
|
63
|
+
|
|
64
|
+
## 验收规则
|
|
65
|
+
- 接口成功不算完成。
|
|
66
|
+
- 必须至少同时满足:
|
|
67
|
+
- 接口 readback 一致
|
|
68
|
+
- 编辑页刷新后回显正确
|
|
69
|
+
- 预览页运行态可继续验收
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Module Catalog
|
|
2
|
+
|
|
3
|
+
## 模块来源
|
|
4
|
+
- 模块注册表位于:
|
|
5
|
+
- `bpmax-core/hpt-frontend/components/Console/Sections/$menu.js`
|
|
6
|
+
- 当前已注册模块:
|
|
7
|
+
- `ConsoleChart`
|
|
8
|
+
- `ContractChartNumber`
|
|
9
|
+
- `ContractChartValue`
|
|
10
|
+
- `FinancialData`
|
|
11
|
+
- `MyTasks`
|
|
12
|
+
- `OperationLog`
|
|
13
|
+
- `OperationLogNumber`
|
|
14
|
+
- `ProjectOverview`
|
|
15
|
+
- `SectionProjectList`
|
|
16
|
+
- `Workload`
|
|
17
|
+
- `WorkloadStat`
|
|
18
|
+
- `ProjectOverviewSmart`
|
|
19
|
+
- `RankList`
|
|
20
|
+
- `TableSmart`
|
|
21
|
+
|
|
22
|
+
## 首版主支持
|
|
23
|
+
|
|
24
|
+
### `ConsoleChart`
|
|
25
|
+
- 页面展示名:`图表`
|
|
26
|
+
- 源码:
|
|
27
|
+
- `bpmax-core/hpt-frontend/components/Console/Sections/ConsoleChart.vue`
|
|
28
|
+
- 主要配置项:
|
|
29
|
+
- `title`
|
|
30
|
+
- `height`
|
|
31
|
+
- `dataSource`
|
|
32
|
+
- `config`
|
|
33
|
+
- 可选 `onClick`
|
|
34
|
+
- 适合:
|
|
35
|
+
- 柱状图
|
|
36
|
+
- 折线图
|
|
37
|
+
- 饼图
|
|
38
|
+
- 需要点击下钻的统计图
|
|
39
|
+
|
|
40
|
+
### `TableSmart`
|
|
41
|
+
- 页面展示名:`一般表格`
|
|
42
|
+
- 源码:
|
|
43
|
+
- `bpmax-core/hpt-frontend/components/Console/Sections/TableSmart.vue`
|
|
44
|
+
- 主要配置项:
|
|
45
|
+
- `title`
|
|
46
|
+
- `exportCount`
|
|
47
|
+
- `height`
|
|
48
|
+
- `page_size`
|
|
49
|
+
- `dataSource`
|
|
50
|
+
- `config`
|
|
51
|
+
- 适合:
|
|
52
|
+
- 明细台账
|
|
53
|
+
- 排行或统计结果列表
|
|
54
|
+
- 带分页导出的数据表
|
|
55
|
+
|
|
56
|
+
## 首版只读保留
|
|
57
|
+
- 以下模块首版允许识别和保留,但不承诺自动生成:
|
|
58
|
+
- `DataBoard`
|
|
59
|
+
- `MyTasks`
|
|
60
|
+
- `ProjectOverview`
|
|
61
|
+
- `ProjectOverviewSmart`
|
|
62
|
+
- `RankList`
|
|
63
|
+
- `SectionProjectList`
|
|
64
|
+
- `FinancialData`
|
|
65
|
+
- `OperationLog`
|
|
66
|
+
- `OperationLogNumber`
|
|
67
|
+
- `Workload`
|
|
68
|
+
- `WorkloadStat`
|
|
69
|
+
- `ContractChartNumber`
|
|
70
|
+
- `ContractChartValue`
|
|
71
|
+
|
|
72
|
+
## 运行时模块菜单
|
|
73
|
+
- 在编辑页左侧模块菜单中,当前可见中文名称包含:
|
|
74
|
+
- `空白模块`
|
|
75
|
+
- `数据看板`
|
|
76
|
+
- `我的任务`
|
|
77
|
+
- `项目数据`
|
|
78
|
+
- `项目列表`
|
|
79
|
+
- `财务数据`
|
|
80
|
+
- `财务图表(每月合同数)`
|
|
81
|
+
- `财务图表(每月合同额)`
|
|
82
|
+
- `操作日志`
|
|
83
|
+
- `操作次数`
|
|
84
|
+
- `工作量`
|
|
85
|
+
- `工作量统计`
|
|
86
|
+
- `图表`
|
|
87
|
+
- `数据概况`
|
|
88
|
+
- `排行榜`
|
|
89
|
+
- `一般表格`
|
|
90
|
+
|
|
91
|
+
## 数据源能力
|
|
92
|
+
- `ConsoleChart` 和 `TableSmart` 都依赖:
|
|
93
|
+
- `bpmax-core/hpt-frontend/composables/useDataSource.ts`
|
|
94
|
+
- 当前已验证数据源驱动:
|
|
95
|
+
- `mysql`
|
|
96
|
+
- `es`
|
|
97
|
+
- `custom_bpmax`
|
|
98
|
+
- `service`
|
|
99
|
+
- `customer`
|
|
100
|
+
- 首版生成脚本时优先使用这些真实驱动,不要虚构新的 `driver`。
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Runtime Page Shape
|
|
2
|
+
|
|
3
|
+
## 页面入口
|
|
4
|
+
- 列表页:
|
|
5
|
+
- `/w:<workspace>/console_template`
|
|
6
|
+
- 新建页:
|
|
7
|
+
- `/w:<workspace>/console_template/create`
|
|
8
|
+
- 编辑页:
|
|
9
|
+
- `/w:<workspace>/console_template/<id>`
|
|
10
|
+
- 预览页:
|
|
11
|
+
- `/w:<workspace>/console?template_id=<id>`
|
|
12
|
+
|
|
13
|
+
## 列表页事实
|
|
14
|
+
- 列表页源码位于 `bpmax-core/hpt-frontend/pages/console_template/index.vue`。
|
|
15
|
+
- 页面通过:
|
|
16
|
+
- `GET /flow_page_template`
|
|
17
|
+
- 查询参数至少包含:
|
|
18
|
+
- `type=4`
|
|
19
|
+
- `flow_type=null`
|
|
20
|
+
- `flow_key=null`
|
|
21
|
+
- `skip_i18n=true`
|
|
22
|
+
- `sort=-create_time`
|
|
23
|
+
- 列表页支持:
|
|
24
|
+
- 查询
|
|
25
|
+
- 创建模板
|
|
26
|
+
- 预览
|
|
27
|
+
- 编辑
|
|
28
|
+
- 删除
|
|
29
|
+
- 设为“使用中”
|
|
30
|
+
|
|
31
|
+
## 编辑页事实
|
|
32
|
+
- 编辑页源码位于 `bpmax-core/hpt-frontend/pages/console_template/_id.vue`。
|
|
33
|
+
- 页面 `computed.type` 固定返回 `FLOW_PAGE_TEMPLATE_TYPE.CONSOLE_LIST`。
|
|
34
|
+
- `FLOW_PAGE_TEMPLATE_TYPE.CONSOLE_LIST` 在前端常量中对应 `4`。
|
|
35
|
+
- 编辑页顶栏字段包括:
|
|
36
|
+
- `name`
|
|
37
|
+
- `desc`
|
|
38
|
+
- `data_set_id`
|
|
39
|
+
- `search_temp_id`
|
|
40
|
+
- 编辑页会先拉:
|
|
41
|
+
- `GET /api/flow_page_template/all_search_temp?skip_i18n=true`
|
|
42
|
+
- 编辑已有模板时会拉:
|
|
43
|
+
- `GET /api/flow_page_template/:id?skip_i18n=true`
|
|
44
|
+
- 编辑页默认内容骨架:
|
|
45
|
+
- `content = { column: 12, layout: [] }`
|
|
46
|
+
|
|
47
|
+
## 保存事实
|
|
48
|
+
- 新建时:
|
|
49
|
+
- `POST /api/flow_page_template`
|
|
50
|
+
- 编辑时:
|
|
51
|
+
- `PUT /api/flow_page_template/:id`
|
|
52
|
+
- 保存体至少包含:
|
|
53
|
+
- `name`
|
|
54
|
+
- `desc`
|
|
55
|
+
- `data_set_id`
|
|
56
|
+
- `search_temp_id`
|
|
57
|
+
- `type`
|
|
58
|
+
- `content`
|
|
59
|
+
- 新建时前端真实保存体还会补:
|
|
60
|
+
- `status = 0`
|
|
61
|
+
- `content` 是字符串化 JSON,而不是对象直传。
|
|
62
|
+
|
|
63
|
+
## 预览页事实
|
|
64
|
+
- 预览页源码在:
|
|
65
|
+
- `bpmax-core/hpt-mobile/pages/pages/console/index.vue`
|
|
66
|
+
- 预览页会读取:
|
|
67
|
+
- `GET /api/flow_page_template/:template_id`
|
|
68
|
+
- 返回后:
|
|
69
|
+
- `content` 会被 `JSON.parse`
|
|
70
|
+
- 如果存在 `searchTemp.content`,页面会渲染全局筛选器
|
|
71
|
+
- 预览页最终渲染的是:
|
|
72
|
+
- `Console` 组件
|
|
73
|
+
|
|
74
|
+
## 当前已验证样例
|
|
75
|
+
|
|
76
|
+
### 示例环境 A
|
|
77
|
+
- 模板:
|
|
78
|
+
- `https://bpmax.example.com/w:oa/console_template/954573720`
|
|
79
|
+
- 预览:
|
|
80
|
+
- `https://bpmax.example.com/w:oa/console?template_id=954573720`
|
|
81
|
+
- 已验证字段:
|
|
82
|
+
- `type = 4`
|
|
83
|
+
- `data_set_id = 764`
|
|
84
|
+
- `search_temp_id = 954573721`
|
|
85
|
+
|
|
86
|
+
### 演示环境
|
|
87
|
+
- 模板:
|
|
88
|
+
- `https://bpmax.example.com/w:default/console_template/954573722`
|
|
89
|
+
- 预览:
|
|
90
|
+
- `https://bpmax.example.com/w:default/console?template_id=954573722`
|
|
91
|
+
- 已验证为同构 `flow_page_template(type=4)` 页面。
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Template Shape
|
|
2
|
+
|
|
3
|
+
## 顶层模型
|
|
4
|
+
- 看板模板是 `flow_page_template(type=4)`。
|
|
5
|
+
- 保存体常见字段:
|
|
6
|
+
- `name`
|
|
7
|
+
- `desc`
|
|
8
|
+
- `data_set_id`
|
|
9
|
+
- `search_temp_id`
|
|
10
|
+
- `type`
|
|
11
|
+
- `content`
|
|
12
|
+
- `content` 是 JSON 字符串。
|
|
13
|
+
|
|
14
|
+
## `content` 结构
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"column": 12,
|
|
18
|
+
"layout": []
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## `layout[]` 单项结构
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"x": 0,
|
|
26
|
+
"y": 0,
|
|
27
|
+
"w": 12,
|
|
28
|
+
"h": 500,
|
|
29
|
+
"i": 1773802985410,
|
|
30
|
+
"name": "一般表格",
|
|
31
|
+
"freeSize": true,
|
|
32
|
+
"config": {}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## `ConsoleChart` 最小骨架
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"x": 0,
|
|
40
|
+
"y": 0,
|
|
41
|
+
"w": 12,
|
|
42
|
+
"h": 420,
|
|
43
|
+
"i": 1770000000001,
|
|
44
|
+
"name": "图表",
|
|
45
|
+
"freeSize": true,
|
|
46
|
+
"config": {
|
|
47
|
+
"title": "示例图表",
|
|
48
|
+
"height": "400",
|
|
49
|
+
"dataSource": "return {};",
|
|
50
|
+
"config": "return { title: { text: ctx.config.title }, series: [] };"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 可选项
|
|
56
|
+
- 若需要交互,再补:
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"onClick": "const { params } = ctx; console.log(params);"
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## `TableSmart` 最小骨架
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"x": 0,
|
|
67
|
+
"y": 0,
|
|
68
|
+
"w": 12,
|
|
69
|
+
"h": 560,
|
|
70
|
+
"i": 1770000000002,
|
|
71
|
+
"name": "一般表格",
|
|
72
|
+
"freeSize": true,
|
|
73
|
+
"config": {
|
|
74
|
+
"title": "示例表格",
|
|
75
|
+
"height": "70vh",
|
|
76
|
+
"page_size": "10",
|
|
77
|
+
"exportCount": 10000,
|
|
78
|
+
"dataSource": "return {};",
|
|
79
|
+
"config": "return { data: [], cols: [], pageInfo: { count: 0 } };"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## `954573720` 真实样例
|
|
85
|
+
|
|
86
|
+
### 基础信息
|
|
87
|
+
- 环境:
|
|
88
|
+
- `https://bpmax.example.com/w:oa/console_template/954573720`
|
|
89
|
+
- 名称:
|
|
90
|
+
- `采购申请台账`
|
|
91
|
+
- `type`:
|
|
92
|
+
- `4`
|
|
93
|
+
- `data_set_id`:
|
|
94
|
+
- `764`
|
|
95
|
+
- `search_temp_id`:
|
|
96
|
+
- `954573721`
|
|
97
|
+
|
|
98
|
+
### `content` 摘要
|
|
99
|
+
- `column = 12`
|
|
100
|
+
- `layout.length = 1`
|
|
101
|
+
- 第一个模块:
|
|
102
|
+
- `name = '一般表格'`
|
|
103
|
+
- `w = 12`
|
|
104
|
+
- `freeSize = true`
|
|
105
|
+
- `config.height = '70vh'`
|
|
106
|
+
- `config.page_size = '10'`
|
|
107
|
+
- `config.exportCount = 10000`
|
|
108
|
+
|
|
109
|
+
### 表格模块脚本事实
|
|
110
|
+
- `dataSource` 使用了:
|
|
111
|
+
- `es`
|
|
112
|
+
- `mysql`
|
|
113
|
+
- `config` 负责:
|
|
114
|
+
- 从 `esResult.hits.hits` 提取数据
|
|
115
|
+
- 从 `datasetList` 动态生成列
|
|
116
|
+
- 返回 `data`、`cols`、`pageInfo`
|
|
117
|
+
|
|
118
|
+
## `954573722` 真实样例
|
|
119
|
+
|
|
120
|
+
### 基础信息
|
|
121
|
+
- 环境:
|
|
122
|
+
- `https://bpmax.example.com/w:default/console_template/954573722`
|
|
123
|
+
- 名称:
|
|
124
|
+
- `单项目统计分析`
|
|
125
|
+
- `type`:
|
|
126
|
+
- `4`
|
|
127
|
+
- `column = 12`
|
|
128
|
+
- `layout.length = 1`
|
|
129
|
+
- 第一个模块也是:
|
|
130
|
+
- `name = '一般表格'`
|
|
131
|
+
|
|
132
|
+
### 脚本特征
|
|
133
|
+
- `dataSource` 使用了 `custom_bpmax`
|
|
134
|
+
- `config` 返回:
|
|
135
|
+
- `pageInfo`
|
|
136
|
+
- `data`
|
|
137
|
+
- `cols`
|
|
138
|
+
|
|
139
|
+
## 生成约定
|
|
140
|
+
- 新建模板时默认使用 `column: 12`。
|
|
141
|
+
- `i` 使用当前时间戳或同等唯一数值即可,但必须在同一模板内唯一。
|
|
142
|
+
- `i` 在线上真实模板里可能是数值,也可能是字符串;不要在本地工作流里强制改型。
|
|
143
|
+
- `x/y/w/h` 以可预览为先,不要生成重叠布局。
|
|
144
|
+
- 若用户未指定复杂布局:
|
|
145
|
+
- 单模块默认 `x=0, y=0, w=12`
|
|
146
|
+
- 多模块默认顺序向下堆叠
|
|
147
|
+
- 如果是在现有模板上增改模块:
|
|
148
|
+
- 保留原有 `layout` 顺序与非目标模块
|
|
149
|
+
- 只在必要时调整 `y/h`
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
|
|
6
|
+
from console_template_editor_common import (
|
|
7
|
+
build_submit_payload,
|
|
8
|
+
dump_json,
|
|
9
|
+
ensure_build_allowed,
|
|
10
|
+
load_json,
|
|
11
|
+
paths_for,
|
|
12
|
+
update_build_meta,
|
|
13
|
+
write_diff,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
18
|
+
p = argparse.ArgumentParser(description="Build the final BPMAX console template submit payload from local work files.")
|
|
19
|
+
p.add_argument("--stem", required=True)
|
|
20
|
+
return p
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def main() -> int:
|
|
24
|
+
args = build_parser().parse_args()
|
|
25
|
+
paths = paths_for(args.stem)
|
|
26
|
+
ensure_build_allowed(paths["meta"], paths["work"])
|
|
27
|
+
work = load_json(paths["work"])
|
|
28
|
+
submit = build_submit_payload(work)
|
|
29
|
+
dump_json(paths["submit"], submit)
|
|
30
|
+
write_diff(paths["submit_diff"], work, submit, "work", "submit")
|
|
31
|
+
update_build_meta(paths["meta"], stem=args.stem, work_path=paths["work"], submit_path=paths["submit"])
|
|
32
|
+
print(paths["submit"])
|
|
33
|
+
print(paths["submit_diff"])
|
|
34
|
+
return 0
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == "__main__":
|
|
38
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
|
|
6
|
+
from console_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 console template 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())
|