bpmax-cli 0.1.44-beta.9 → 0.1.44
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 +5 -3
- package/dist/bin.js +461 -4663
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/scripts/install-skills.mjs +0 -98
- package/skills/bpmax-auth/SKILL.md +17 -6
- package/skills/bpmax-cli/SKILL.md +0 -2
- package/skills/bpmax-project/SKILL.md +2 -1
- package/skills/bpmax-shared/SKILL.md +1 -1
- package/skills/bpmax-api-platform-editor/SKILL.md +0 -321
- package/skills/bpmax-api-platform-editor/agents/openai.yaml +0 -4
- package/skills/bpmax-api-platform-editor/references/api-doc-debug-workflow.md +0 -34
- package/skills/bpmax-api-platform-editor/references/api-proxy-shape.md +0 -41
- package/skills/bpmax-api-platform-editor/references/instance-config-shape.md +0 -41
- package/skills/bpmax-api-platform-editor/references/platform-api-map.md +0 -52
- package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +0 -32
- package/skills/bpmax-api-platform-editor/scripts/api_platform_editor_common.py +0 -1276
- package/skills/bpmax-api-platform-editor/scripts/build_submit_payload.py +0 -64
- package/skills/bpmax-api-platform-editor/scripts/capture_write_contract.py +0 -40
- package/skills/bpmax-api-platform-editor/scripts/export_layer_bundle.py +0 -212
- package/skills/bpmax-api-platform-editor/scripts/record_doc_debug_acceptance.py +0 -62
- package/skills/bpmax-api-platform-editor/scripts/submit_and_verify_layer.py +0 -75
- package/skills/bpmax-api-platform-editor/tests/test_api_platform_editor.py +0 -287
- package/skills/bpmax-builder-shared/SKILL.md +0 -44
- package/skills/bpmax-builder-shared/base_url.py +0 -81
- package/skills/bpmax-builder-shared/runtime-script-site-matrix.json +0 -71
- package/skills/bpmax-builder-shared/runtime-script-site-matrix.md +0 -34
- package/skills/bpmax-builder-shared/runtime-script-template-catalog.md +0 -123
- package/skills/bpmax-builder-shared/runtime_script_rules.py +0 -272
- package/skills/bpmax-builder-shared/skill_audit.py +0 -374
- package/skills/bpmax-builder-shared/template_script_hard_rules.py +0 -280
- package/skills/bpmax-builder-shared/tests/test_base_url.py +0 -80
- package/skills/bpmax-builder-shared/tests/test_runtime_script_rules.py +0 -115
- package/skills/bpmax-builder-shared/tests/test_skill_audit.py +0 -231
- package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +0 -281
- package/skills/bpmax-config-latest/SKILL.md +0 -71
- package/skills/bpmax-console-template-editor/SKILL.md +0 -536
- package/skills/bpmax-console-template-editor/agents/openai.yaml +0 -4
- package/skills/bpmax-console-template-editor/references/filter-integration.md +0 -60
- package/skills/bpmax-console-template-editor/references/lessons-from-resume-dashboard.md +0 -114
- package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +0 -69
- package/skills/bpmax-console-template-editor/references/module-catalog.md +0 -100
- package/skills/bpmax-console-template-editor/references/runtime-page-shape.md +0 -91
- package/skills/bpmax-console-template-editor/references/template-shape.md +0 -149
- package/skills/bpmax-console-template-editor/scripts/build_submit_payload.py +0 -38
- package/skills/bpmax-console-template-editor/scripts/confirm_console_template.py +0 -33
- package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +0 -964
- package/skills/bpmax-console-template-editor/scripts/export_console_template.py +0 -99
- package/skills/bpmax-console-template-editor/scripts/lint_console_template.py +0 -46
- package/skills/bpmax-console-template-editor/scripts/submit_console_template.py +0 -99
- package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +0 -383
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +0 -600
- package/skills/bpmax-dataset-field-template-editor/references/create-request-gotchas.md +0 -25
- package/skills/bpmax-dataset-field-template-editor/references/field-classify-mapping.md +0 -35
- package/skills/bpmax-dataset-field-template-editor/references/nested-field-patterns.md +0 -24
- package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +0 -61
- package/skills/bpmax-dataset-field-template-editor/references/virtual-field-patterns.md +0 -27
- package/skills/bpmax-dataset-field-template-editor/references/work-file-to-submit-mapping.md +0 -127
- package/skills/bpmax-dataset-field-template-editor/scripts/build_submit_payload.py +0 -67
- package/skills/bpmax-dataset-field-template-editor/scripts/confirm_dataset_field.py +0 -37
- package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +0 -784
- package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +0 -62
- package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +0 -104
- package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +0 -83
- package/skills/bpmax-dataset-field-template-editor/scripts/lint_dataset_field_semantics.py +0 -35
- package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +0 -95
- package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +0 -709
- package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +0 -59
- package/skills/bpmax-dataset-template-editor/SKILL.md +0 -779
- package/skills/bpmax-dataset-template-editor/references/custom-key-usage-patterns.md +0 -18
- package/skills/bpmax-dataset-template-editor/references/dataset-script-runtime-matrix.md +0 -73
- package/skills/bpmax-dataset-template-editor/references/pre-process-script-authoring-guide.md +0 -186
- package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md +0 -106
- package/skills/bpmax-dataset-template-editor/references/runtime-gotchas.md +0 -28
- package/skills/bpmax-dataset-template-editor/references/runtime-verified-dataset-page-shape.md +0 -47
- package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +0 -23
- package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +0 -97
- package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +0 -65
- package/skills/bpmax-dataset-template-editor/scripts/build_submit_payload.py +0 -38
- package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +0 -650
- package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +0 -155
- package/skills/bpmax-dataset-template-editor/scripts/lint_dataset_template.py +0 -42
- package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +0 -43
- package/skills/bpmax-dataset-template-editor/scripts/scan_custom_key_references.py +0 -27
- package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +0 -115
- package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +0 -52
- package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +0 -39
- package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +0 -373
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +0 -177
- package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +0 -4
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +0 -60
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +0 -394
- package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +0 -5
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale.json +0 -97
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_final_v2.json +0 -105
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_main.json +0 -36
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_region.json +0 -40
- package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +0 -41
- package/skills/bpmax-e2e-flow-test-operator/references/failure-update-loop.md +0 -17
- package/skills/bpmax-e2e-flow-test-operator/references/filter-field-discovery.md +0 -40
- package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +0 -24
- package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +0 -75
- package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +0 -107
- package/skills/bpmax-e2e-flow-test-operator/references/skill-experience-coverage-matrix.md +0 -29
- package/skills/bpmax-e2e-flow-test-operator/references/stale-runtime-and-clean-sample-rules.md +0 -54
- package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +0 -83
- package/skills/bpmax-e2e-flow-test-operator/scripts/bpmax_session.py +0 -287
- package/skills/bpmax-e2e-flow-test-operator/scripts/dealer_sample_on_shelf_plan.json +0 -59
- package/skills/bpmax-e2e-flow-test-operator/scripts/dealer_sample_on_shelf_runner.py +0 -687
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +0 -121
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +0 -288
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_api_matrix.py +0 -161
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_filter_fields.py +0 -138
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_form_runtime.py +0 -396
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +0 -341
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_test_profile.py +0 -185
- package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +0 -138
- package/skills/bpmax-feishu-chat-flow-plugin-editor/SKILL.md +0 -69
- package/skills/bpmax-feishu-chat-flow-plugin-editor/agents/openai.yaml +0 -4
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-checklist.md +0 -42
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-recipes.md +0 -38
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-shape.md +0 -86
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/gate-lint.md +0 -68
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/hoocoo-patterns.md +0 -39
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/runtime-behavior.md +0 -41
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/script-authoring.md +0 -110
- package/skills/bpmax-feishu-chat-flow-plugin-editor/scripts/lint_feishu_chat_plugin.py +0 -278
- package/skills/bpmax-feishu-chat-flow-plugin-editor/tests/test_lint_feishu_chat_plugin.py +0 -203
- package/skills/bpmax-filter-template-editor/SKILL.md +0 -564
- package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +0 -38
- package/skills/bpmax-filter-template-editor/references/filter-and-flow-binding.md +0 -57
- package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +0 -141
- package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +0 -287
- package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +0 -115
- package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +0 -94
- package/skills/bpmax-filter-template-editor/scripts/build_submit_payload.py +0 -25
- package/skills/bpmax-filter-template-editor/scripts/confirm_filter_template.py +0 -22
- package/skills/bpmax-filter-template-editor/scripts/export_filter_template.py +0 -57
- package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +0 -348
- package/skills/bpmax-filter-template-editor/scripts/init_create_filter_template.py +0 -8
- package/skills/bpmax-filter-template-editor/scripts/lint_filter_template_semantics.py +0 -26
- package/skills/bpmax-filter-template-editor/scripts/submit_filter_template.py +0 -62
- package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +0 -231
- package/skills/bpmax-flow-template-editor/SKILL.md +0 -1058
- package/skills/bpmax-flow-template-editor/agents/openai.yaml +0 -4
- package/skills/bpmax-flow-template-editor/references/before-next-step-script-runtime-gotchas.md +0 -62
- package/skills/bpmax-flow-template-editor/references/config-surfaces-and-placeholders.md +0 -270
- package/skills/bpmax-flow-template-editor/references/diff-strategy.md +0 -67
- package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +0 -25
- package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +0 -174
- package/skills/bpmax-flow-template-editor/references/intent-model.md +0 -117
- package/skills/bpmax-flow-template-editor/references/lessons-from-price-plan-flow.md +0 -147
- package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +0 -97
- package/skills/bpmax-flow-template-editor/references/matrix-flow-form-nav-collaboration.md +0 -165
- package/skills/bpmax-flow-template-editor/references/payload-checklist.md +0 -133
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +0 -54
- package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +0 -149
- package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +0 -41
- package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +0 -155
- package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +0 -179
- package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +0 -91
- package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +0 -93
- package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +0 -57
- package/skills/bpmax-flow-template-editor/scripts/build_submit_payload.py +0 -69
- package/skills/bpmax-flow-template-editor/scripts/confirm_flow_template.py +0 -52
- package/skills/bpmax-flow-template-editor/scripts/export_flow_template.py +0 -114
- package/skills/bpmax-flow-template-editor/scripts/flow_template_editor_common.py +0 -1084
- package/skills/bpmax-flow-template-editor/scripts/submit_flow_template.py +0 -159
- package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +0 -636
- package/skills/bpmax-form-template-editor/SKILL.md +0 -1099
- package/skills/bpmax-form-template-editor/agents/openai.yaml +0 -4
- package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +0 -203
- package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +0 -125
- package/skills/bpmax-form-template-editor/references/payload-checklist.md +0 -77
- package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +0 -49
- package/skills/bpmax-form-template-editor/scripts/build_submit_payload.py +0 -37
- package/skills/bpmax-form-template-editor/scripts/check_form_template_consistency.py +0 -145
- package/skills/bpmax-form-template-editor/scripts/confirm_form_template.py +0 -67
- package/skills/bpmax-form-template-editor/scripts/export_form_template.py +0 -91
- package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +0 -1762
- package/skills/bpmax-form-template-editor/scripts/lint_form_template_semantics.py +0 -30
- package/skills/bpmax-form-template-editor/scripts/record_runtime_acceptance.py +0 -67
- package/skills/bpmax-form-template-editor/scripts/submit_form_template.py +0 -163
- package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +0 -1292
- package/skills/bpmax-list-template-editor/SKILL.md +0 -468
- package/skills/bpmax-list-template-editor/agents/openai.yaml +0 -4
- package/skills/bpmax-list-template-editor/references/browser-page-contract.md +0 -81
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +0 -148
- package/skills/bpmax-list-template-editor/references/dataset-field-mapping.md +0 -60
- package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +0 -103
- package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +0 -102
- package/skills/bpmax-list-template-editor/references/payload-checklist.md +0 -47
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +0 -140
- package/skills/bpmax-list-template-editor/references/special-formats.md +0 -394
- package/skills/bpmax-list-template-editor/scripts/build_submit_payload.py +0 -37
- package/skills/bpmax-list-template-editor/scripts/confirm_list_template.py +0 -33
- package/skills/bpmax-list-template-editor/scripts/export_list_template.py +0 -89
- package/skills/bpmax-list-template-editor/scripts/fetch_data_set.py +0 -34
- package/skills/bpmax-list-template-editor/scripts/lint_list_template_semantics.py +0 -54
- package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +0 -955
- package/skills/bpmax-list-template-editor/scripts/record_acceptance.py +0 -55
- package/skills/bpmax-list-template-editor/scripts/submit_list_template.py +0 -117
- package/skills/bpmax-list-template-editor/tests/test_list_template_editor_common.py +0 -441
- package/skills/bpmax-memory-protocol/SKILL.md +0 -72
- package/skills/bpmax-nav-config-editor/SKILL.md +0 -347
- package/skills/bpmax-nav-config-editor/agents/openai.yaml +0 -4
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +0 -68
- package/skills/bpmax-nav-config-editor/references/config-shape.md +0 -78
- package/skills/bpmax-nav-config-editor/references/icon-selection.md +0 -83
- package/skills/bpmax-nav-config-editor/references/path-mapping-rules.md +0 -46
- package/skills/bpmax-nav-config-editor/references/payload-checklist.md +0 -41
- package/skills/bpmax-nav-config-editor/references/runtime-probing.md +0 -47
- package/skills/bpmax-nav-config-editor/scripts/build_submit_payload.py +0 -34
- package/skills/bpmax-nav-config-editor/scripts/confirm_nav_config.py +0 -32
- package/skills/bpmax-nav-config-editor/scripts/export_nav_config.py +0 -56
- package/skills/bpmax-nav-config-editor/scripts/lint_nav_config_semantics.py +0 -33
- package/skills/bpmax-nav-config-editor/scripts/nav_config_editor_common.py +0 -812
- package/skills/bpmax-nav-config-editor/scripts/submit_nav_config.py +0 -44
- package/skills/bpmax-nav-config-editor/scripts/verify_nav_config.py +0 -33
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_editor.py +0 -358
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_editor_common.py +0 -138
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_lint.py +0 -58
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_submit_verify.py +0 -51
- package/skills/bpmax-project-detail-template-editor/SKILL.md +0 -329
- package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +0 -4
- package/skills/bpmax-project-detail-template-editor/references/local-temp-workflow.md +0 -59
- package/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md +0 -47
- package/skills/bpmax-project-detail-template-editor/references/payload-checklist.md +0 -33
- package/skills/bpmax-project-detail-template-editor/references/project-detail-template-api-workflow.md +0 -44
- package/skills/bpmax-project-detail-template-editor/scripts/build_submit_payload.py +0 -30
- package/skills/bpmax-project-detail-template-editor/scripts/confirm_project_detail_template.py +0 -33
- package/skills/bpmax-project-detail-template-editor/scripts/export_project_detail_template.py +0 -87
- package/skills/bpmax-project-detail-template-editor/scripts/lint_project_detail_template_semantics.py +0 -37
- package/skills/bpmax-project-detail-template-editor/scripts/project_detail_template_editor_common.py +0 -507
- package/skills/bpmax-project-detail-template-editor/scripts/submit_project_detail_template.py +0 -120
- package/skills/bpmax-project-detail-template-editor/tests/test_project_detail_template_editor.py +0 -369
- package/skills/bpmax-role-editor/SKILL.md +0 -251
- package/skills/bpmax-role-editor/references/api-workflow.md +0 -30
- package/skills/bpmax-role-editor/references/runtime-page-shape.md +0 -18
- package/skills/bpmax-role-editor/references/work-file-mapping.md +0 -32
- package/skills/bpmax-role-editor/scripts/build_submit_payload.py +0 -38
- package/skills/bpmax-role-editor/scripts/confirm_role.py +0 -33
- package/skills/bpmax-role-editor/scripts/export_role.py +0 -163
- package/skills/bpmax-role-editor/scripts/lint_role_semantics.py +0 -38
- package/skills/bpmax-role-editor/scripts/role_editor_common.py +0 -1231
- package/skills/bpmax-role-editor/scripts/submit_role.py +0 -144
- package/skills/bpmax-role-editor/tests/test_role_editor.py +0 -343
- package/skills/bpmax-user-mock-operator/SKILL.md +0 -106
- package/skills/bpmax-user-mock-operator/agents/openai.yaml +0 -4
- package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +0 -37
- package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +0 -136
- package/skills/bpmax-user-mock-operator/tests/test_user_mock_operator.py +0 -138
- package/skills/form-control-library/SKILL.md +0 -82
- package/skills/form-control-library/agents/openai.yaml +0 -4
- package/skills/form-control-library/references/form-controls.md +0 -199
- package/skills/form-control-library/references/form-template-submit-schema.md +0 -180
- package/skills/form-control-library/references/group-select-runtime.md +0 -191
- package/skills/form-control-library/scripts/rebuild_form_control_library.py +0 -55
|
@@ -1,114 +0,0 @@
|
|
|
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
|
-
- 岗位 + 当前环节
|
|
@@ -1,69 +0,0 @@
|
|
|
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
|
-
- 预览页运行态可继续验收
|
|
@@ -1,100 +0,0 @@
|
|
|
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`。
|
|
@@ -1,91 +0,0 @@
|
|
|
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)` 页面。
|
|
@@ -1,149 +0,0 @@
|
|
|
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`
|
|
@@ -1,38 +0,0 @@
|
|
|
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())
|
|
@@ -1,33 +0,0 @@
|
|
|
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())
|