bpmax-cli 0.1.42 → 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.
Files changed (251) hide show
  1. package/README.md +3 -3
  2. package/dist/bin.js +3967 -533
  3. package/dist/bin.js.map +1 -1
  4. package/package.json +1 -1
  5. package/skills/bpmax-api-platform-editor/SKILL.md +321 -0
  6. package/skills/bpmax-api-platform-editor/agents/openai.yaml +4 -0
  7. package/skills/bpmax-api-platform-editor/references/api-doc-debug-workflow.md +34 -0
  8. package/skills/bpmax-api-platform-editor/references/api-proxy-shape.md +41 -0
  9. package/skills/bpmax-api-platform-editor/references/instance-config-shape.md +41 -0
  10. package/skills/bpmax-api-platform-editor/references/platform-api-map.md +52 -0
  11. package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +32 -0
  12. package/skills/bpmax-api-platform-editor/scripts/api_platform_editor_common.py +1276 -0
  13. package/skills/bpmax-api-platform-editor/scripts/build_submit_payload.py +64 -0
  14. package/skills/bpmax-api-platform-editor/scripts/capture_write_contract.py +40 -0
  15. package/skills/bpmax-api-platform-editor/scripts/export_layer_bundle.py +212 -0
  16. package/skills/bpmax-api-platform-editor/scripts/record_doc_debug_acceptance.py +62 -0
  17. package/skills/bpmax-api-platform-editor/scripts/submit_and_verify_layer.py +75 -0
  18. package/skills/bpmax-api-platform-editor/tests/test_api_platform_editor.py +287 -0
  19. package/skills/bpmax-auth/SKILL.md +6 -17
  20. package/skills/bpmax-builder-shared/SKILL.md +44 -0
  21. package/skills/bpmax-builder-shared/base_url.py +81 -0
  22. package/skills/bpmax-builder-shared/runtime-script-site-matrix.json +71 -0
  23. package/skills/bpmax-builder-shared/runtime-script-site-matrix.md +34 -0
  24. package/skills/bpmax-builder-shared/runtime-script-template-catalog.md +123 -0
  25. package/skills/bpmax-builder-shared/runtime_script_rules.py +272 -0
  26. package/skills/bpmax-builder-shared/skill_audit.py +374 -0
  27. package/skills/bpmax-builder-shared/template_script_hard_rules.py +280 -0
  28. package/skills/bpmax-builder-shared/tests/test_base_url.py +80 -0
  29. package/skills/bpmax-builder-shared/tests/test_runtime_script_rules.py +115 -0
  30. package/skills/bpmax-builder-shared/tests/test_skill_audit.py +231 -0
  31. package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +281 -0
  32. package/skills/bpmax-cli/SKILL.md +2 -0
  33. package/skills/bpmax-config-latest/SKILL.md +71 -0
  34. package/skills/bpmax-console-template-editor/SKILL.md +536 -0
  35. package/skills/bpmax-console-template-editor/agents/openai.yaml +4 -0
  36. package/skills/bpmax-console-template-editor/references/filter-integration.md +60 -0
  37. package/skills/bpmax-console-template-editor/references/lessons-from-resume-dashboard.md +114 -0
  38. package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +69 -0
  39. package/skills/bpmax-console-template-editor/references/module-catalog.md +100 -0
  40. package/skills/bpmax-console-template-editor/references/runtime-page-shape.md +91 -0
  41. package/skills/bpmax-console-template-editor/references/template-shape.md +149 -0
  42. package/skills/bpmax-console-template-editor/scripts/build_submit_payload.py +38 -0
  43. package/skills/bpmax-console-template-editor/scripts/confirm_console_template.py +33 -0
  44. package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +964 -0
  45. package/skills/bpmax-console-template-editor/scripts/export_console_template.py +99 -0
  46. package/skills/bpmax-console-template-editor/scripts/lint_console_template.py +46 -0
  47. package/skills/bpmax-console-template-editor/scripts/submit_console_template.py +99 -0
  48. package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +383 -0
  49. package/skills/bpmax-dataset-field-template-editor/SKILL.md +600 -0
  50. package/skills/bpmax-dataset-field-template-editor/references/create-request-gotchas.md +25 -0
  51. package/skills/bpmax-dataset-field-template-editor/references/field-classify-mapping.md +35 -0
  52. package/skills/bpmax-dataset-field-template-editor/references/nested-field-patterns.md +24 -0
  53. package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +61 -0
  54. package/skills/bpmax-dataset-field-template-editor/references/virtual-field-patterns.md +27 -0
  55. package/skills/bpmax-dataset-field-template-editor/references/work-file-to-submit-mapping.md +127 -0
  56. package/skills/bpmax-dataset-field-template-editor/scripts/build_submit_payload.py +67 -0
  57. package/skills/bpmax-dataset-field-template-editor/scripts/confirm_dataset_field.py +37 -0
  58. package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +784 -0
  59. package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +62 -0
  60. package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +104 -0
  61. package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +83 -0
  62. package/skills/bpmax-dataset-field-template-editor/scripts/lint_dataset_field_semantics.py +35 -0
  63. package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +95 -0
  64. package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +709 -0
  65. package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +59 -0
  66. package/skills/bpmax-dataset-template-editor/SKILL.md +779 -0
  67. package/skills/bpmax-dataset-template-editor/references/custom-key-usage-patterns.md +18 -0
  68. package/skills/bpmax-dataset-template-editor/references/dataset-script-runtime-matrix.md +73 -0
  69. package/skills/bpmax-dataset-template-editor/references/pre-process-script-authoring-guide.md +186 -0
  70. package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md +106 -0
  71. package/skills/bpmax-dataset-template-editor/references/runtime-gotchas.md +28 -0
  72. package/skills/bpmax-dataset-template-editor/references/runtime-verified-dataset-page-shape.md +47 -0
  73. package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +23 -0
  74. package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +97 -0
  75. package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +65 -0
  76. package/skills/bpmax-dataset-template-editor/scripts/build_submit_payload.py +38 -0
  77. package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +650 -0
  78. package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +155 -0
  79. package/skills/bpmax-dataset-template-editor/scripts/lint_dataset_template.py +42 -0
  80. package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +43 -0
  81. package/skills/bpmax-dataset-template-editor/scripts/scan_custom_key_references.py +27 -0
  82. package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +115 -0
  83. package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +52 -0
  84. package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +39 -0
  85. package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +373 -0
  86. package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +151 -0
  87. package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +4 -0
  88. package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +60 -0
  89. package/skills/bpmax-e2e-flow-test-operator/SKILL.md +371 -0
  90. package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +5 -0
  91. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale.json +97 -0
  92. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_final_v2.json +105 -0
  93. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_main.json +36 -0
  94. package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_region.json +40 -0
  95. package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +33 -0
  96. package/skills/bpmax-e2e-flow-test-operator/references/failure-update-loop.md +17 -0
  97. package/skills/bpmax-e2e-flow-test-operator/references/filter-field-discovery.md +40 -0
  98. package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +19 -0
  99. package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +75 -0
  100. package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +107 -0
  101. package/skills/bpmax-e2e-flow-test-operator/references/skill-experience-coverage-matrix.md +29 -0
  102. package/skills/bpmax-e2e-flow-test-operator/references/stale-runtime-and-clean-sample-rules.md +54 -0
  103. package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +58 -0
  104. package/skills/bpmax-e2e-flow-test-operator/scripts/bpmax_session.py +287 -0
  105. package/skills/bpmax-e2e-flow-test-operator/scripts/dealer_sample_on_shelf_plan.json +59 -0
  106. package/skills/bpmax-e2e-flow-test-operator/scripts/dealer_sample_on_shelf_runner.py +687 -0
  107. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +95 -0
  108. package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +288 -0
  109. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_api_matrix.py +161 -0
  110. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_filter_fields.py +138 -0
  111. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_form_runtime.py +396 -0
  112. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +341 -0
  113. package/skills/bpmax-e2e-flow-test-operator/scripts/flow_test_profile.py +185 -0
  114. package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +138 -0
  115. package/skills/bpmax-feishu-chat-flow-plugin-editor/SKILL.md +69 -0
  116. package/skills/bpmax-feishu-chat-flow-plugin-editor/agents/openai.yaml +4 -0
  117. package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-checklist.md +42 -0
  118. package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-recipes.md +38 -0
  119. package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-shape.md +86 -0
  120. package/skills/bpmax-feishu-chat-flow-plugin-editor/references/gate-lint.md +68 -0
  121. package/skills/bpmax-feishu-chat-flow-plugin-editor/references/hoocoo-patterns.md +39 -0
  122. package/skills/bpmax-feishu-chat-flow-plugin-editor/references/runtime-behavior.md +41 -0
  123. package/skills/bpmax-feishu-chat-flow-plugin-editor/references/script-authoring.md +110 -0
  124. package/skills/bpmax-feishu-chat-flow-plugin-editor/scripts/lint_feishu_chat_plugin.py +278 -0
  125. package/skills/bpmax-feishu-chat-flow-plugin-editor/tests/test_lint_feishu_chat_plugin.py +203 -0
  126. package/skills/bpmax-filter-template-editor/SKILL.md +564 -0
  127. package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +38 -0
  128. package/skills/bpmax-filter-template-editor/references/filter-and-flow-binding.md +57 -0
  129. package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +141 -0
  130. package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +287 -0
  131. package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +115 -0
  132. package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +94 -0
  133. package/skills/bpmax-filter-template-editor/scripts/build_submit_payload.py +25 -0
  134. package/skills/bpmax-filter-template-editor/scripts/confirm_filter_template.py +22 -0
  135. package/skills/bpmax-filter-template-editor/scripts/export_filter_template.py +57 -0
  136. package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +348 -0
  137. package/skills/bpmax-filter-template-editor/scripts/init_create_filter_template.py +8 -0
  138. package/skills/bpmax-filter-template-editor/scripts/lint_filter_template_semantics.py +26 -0
  139. package/skills/bpmax-filter-template-editor/scripts/submit_filter_template.py +62 -0
  140. package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +231 -0
  141. package/skills/bpmax-flow-template-editor/SKILL.md +1043 -0
  142. package/skills/bpmax-flow-template-editor/agents/openai.yaml +4 -0
  143. package/skills/bpmax-flow-template-editor/references/before-next-step-script-runtime-gotchas.md +62 -0
  144. package/skills/bpmax-flow-template-editor/references/config-surfaces-and-placeholders.md +270 -0
  145. package/skills/bpmax-flow-template-editor/references/diff-strategy.md +67 -0
  146. package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +25 -0
  147. package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +159 -0
  148. package/skills/bpmax-flow-template-editor/references/intent-model.md +117 -0
  149. package/skills/bpmax-flow-template-editor/references/lessons-from-price-plan-flow.md +147 -0
  150. package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +97 -0
  151. package/skills/bpmax-flow-template-editor/references/matrix-flow-form-nav-collaboration.md +163 -0
  152. package/skills/bpmax-flow-template-editor/references/payload-checklist.md +133 -0
  153. package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +54 -0
  154. package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +149 -0
  155. package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +41 -0
  156. package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +155 -0
  157. package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +179 -0
  158. package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +91 -0
  159. package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +93 -0
  160. package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +57 -0
  161. package/skills/bpmax-flow-template-editor/scripts/build_submit_payload.py +69 -0
  162. package/skills/bpmax-flow-template-editor/scripts/confirm_flow_template.py +52 -0
  163. package/skills/bpmax-flow-template-editor/scripts/export_flow_template.py +114 -0
  164. package/skills/bpmax-flow-template-editor/scripts/flow_template_editor_common.py +1084 -0
  165. package/skills/bpmax-flow-template-editor/scripts/submit_flow_template.py +159 -0
  166. package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +636 -0
  167. package/skills/bpmax-form-template-editor/SKILL.md +1074 -0
  168. package/skills/bpmax-form-template-editor/agents/openai.yaml +4 -0
  169. package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +193 -0
  170. package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +125 -0
  171. package/skills/bpmax-form-template-editor/references/payload-checklist.md +77 -0
  172. package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +49 -0
  173. package/skills/bpmax-form-template-editor/scripts/build_submit_payload.py +37 -0
  174. package/skills/bpmax-form-template-editor/scripts/check_form_template_consistency.py +145 -0
  175. package/skills/bpmax-form-template-editor/scripts/confirm_form_template.py +67 -0
  176. package/skills/bpmax-form-template-editor/scripts/export_form_template.py +89 -0
  177. package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +1745 -0
  178. package/skills/bpmax-form-template-editor/scripts/lint_form_template_semantics.py +30 -0
  179. package/skills/bpmax-form-template-editor/scripts/record_runtime_acceptance.py +67 -0
  180. package/skills/bpmax-form-template-editor/scripts/submit_form_template.py +163 -0
  181. package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +1303 -0
  182. package/skills/bpmax-list-template-editor/SKILL.md +468 -0
  183. package/skills/bpmax-list-template-editor/agents/openai.yaml +4 -0
  184. package/skills/bpmax-list-template-editor/references/browser-page-contract.md +81 -0
  185. package/skills/bpmax-list-template-editor/references/content-config-shape.md +148 -0
  186. package/skills/bpmax-list-template-editor/references/dataset-field-mapping.md +60 -0
  187. package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +103 -0
  188. package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +102 -0
  189. package/skills/bpmax-list-template-editor/references/payload-checklist.md +47 -0
  190. package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +140 -0
  191. package/skills/bpmax-list-template-editor/references/special-formats.md +394 -0
  192. package/skills/bpmax-list-template-editor/scripts/build_submit_payload.py +37 -0
  193. package/skills/bpmax-list-template-editor/scripts/confirm_list_template.py +33 -0
  194. package/skills/bpmax-list-template-editor/scripts/export_list_template.py +89 -0
  195. package/skills/bpmax-list-template-editor/scripts/fetch_data_set.py +34 -0
  196. package/skills/bpmax-list-template-editor/scripts/lint_list_template_semantics.py +54 -0
  197. package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +955 -0
  198. package/skills/bpmax-list-template-editor/scripts/record_acceptance.py +55 -0
  199. package/skills/bpmax-list-template-editor/scripts/submit_list_template.py +117 -0
  200. package/skills/bpmax-list-template-editor/tests/test_list_template_editor_common.py +441 -0
  201. package/skills/bpmax-nav-config-editor/SKILL.md +347 -0
  202. package/skills/bpmax-nav-config-editor/agents/openai.yaml +4 -0
  203. package/skills/bpmax-nav-config-editor/references/api-workflow.md +68 -0
  204. package/skills/bpmax-nav-config-editor/references/config-shape.md +78 -0
  205. package/skills/bpmax-nav-config-editor/references/icon-selection.md +83 -0
  206. package/skills/bpmax-nav-config-editor/references/path-mapping-rules.md +46 -0
  207. package/skills/bpmax-nav-config-editor/references/payload-checklist.md +41 -0
  208. package/skills/bpmax-nav-config-editor/references/runtime-probing.md +47 -0
  209. package/skills/bpmax-nav-config-editor/scripts/build_submit_payload.py +34 -0
  210. package/skills/bpmax-nav-config-editor/scripts/confirm_nav_config.py +32 -0
  211. package/skills/bpmax-nav-config-editor/scripts/export_nav_config.py +56 -0
  212. package/skills/bpmax-nav-config-editor/scripts/lint_nav_config_semantics.py +33 -0
  213. package/skills/bpmax-nav-config-editor/scripts/nav_config_editor_common.py +812 -0
  214. package/skills/bpmax-nav-config-editor/scripts/submit_nav_config.py +44 -0
  215. package/skills/bpmax-nav-config-editor/scripts/verify_nav_config.py +33 -0
  216. package/skills/bpmax-nav-config-editor/tests/test_nav_config_editor.py +358 -0
  217. package/skills/bpmax-nav-config-editor/tests/test_nav_config_editor_common.py +138 -0
  218. package/skills/bpmax-nav-config-editor/tests/test_nav_config_lint.py +58 -0
  219. package/skills/bpmax-nav-config-editor/tests/test_nav_config_submit_verify.py +51 -0
  220. package/skills/bpmax-project/SKILL.md +1 -1
  221. package/skills/bpmax-project-detail-template-editor/SKILL.md +329 -0
  222. package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +4 -0
  223. package/skills/bpmax-project-detail-template-editor/references/local-temp-workflow.md +59 -0
  224. package/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md +47 -0
  225. package/skills/bpmax-project-detail-template-editor/references/payload-checklist.md +33 -0
  226. package/skills/bpmax-project-detail-template-editor/references/project-detail-template-api-workflow.md +44 -0
  227. package/skills/bpmax-project-detail-template-editor/scripts/build_submit_payload.py +30 -0
  228. package/skills/bpmax-project-detail-template-editor/scripts/confirm_project_detail_template.py +33 -0
  229. package/skills/bpmax-project-detail-template-editor/scripts/export_project_detail_template.py +87 -0
  230. package/skills/bpmax-project-detail-template-editor/scripts/lint_project_detail_template_semantics.py +37 -0
  231. package/skills/bpmax-project-detail-template-editor/scripts/project_detail_template_editor_common.py +507 -0
  232. package/skills/bpmax-project-detail-template-editor/scripts/submit_project_detail_template.py +120 -0
  233. package/skills/bpmax-project-detail-template-editor/tests/test_project_detail_template_editor.py +369 -0
  234. package/skills/bpmax-role-editor/SKILL.md +251 -0
  235. package/skills/bpmax-role-editor/references/api-workflow.md +30 -0
  236. package/skills/bpmax-role-editor/references/runtime-page-shape.md +18 -0
  237. package/skills/bpmax-role-editor/references/work-file-mapping.md +32 -0
  238. package/skills/bpmax-role-editor/scripts/build_submit_payload.py +38 -0
  239. package/skills/bpmax-role-editor/scripts/confirm_role.py +33 -0
  240. package/skills/bpmax-role-editor/scripts/export_role.py +163 -0
  241. package/skills/bpmax-role-editor/scripts/lint_role_semantics.py +38 -0
  242. package/skills/bpmax-role-editor/scripts/role_editor_common.py +1231 -0
  243. package/skills/bpmax-role-editor/scripts/submit_role.py +144 -0
  244. package/skills/bpmax-role-editor/tests/test_role_editor.py +343 -0
  245. package/skills/bpmax-shared/SKILL.md +1 -1
  246. package/skills/form-control-library/SKILL.md +82 -0
  247. package/skills/form-control-library/agents/openai.yaml +4 -0
  248. package/skills/form-control-library/references/form-controls.md +199 -0
  249. package/skills/form-control-library/references/form-template-submit-schema.md +180 -0
  250. package/skills/form-control-library/references/group-select-runtime.md +191 -0
  251. package/skills/form-control-library/scripts/rebuild_form_control_library.py +55 -0
@@ -0,0 +1,141 @@
1
+ # Filter Content Schema
2
+
3
+ ## 顶层结构
4
+ 筛选器模板的 `content` 是 JSON 对象,当前已验证可能出现这些顶层字段:
5
+
6
+ - `config`
7
+ - `customQuery`
8
+ - `beforeSearch`
9
+ - `tabFilters`
10
+ - `_t`
11
+
12
+ 最简单模板示例:
13
+ ```json
14
+ {
15
+ "_t": 1755604353654,
16
+ "config": [
17
+ {
18
+ "is": "input",
19
+ "field": "project_name",
20
+ "label": "项目名称",
21
+ "props": {
22
+ "placeholder": "请输入名称"
23
+ },
24
+ "type": "match_phrase"
25
+ }
26
+ ]
27
+ }
28
+ ```
29
+
30
+ ## 工作文件与 submit 文件的边界
31
+ - 工作文件用于本地审阅和编辑,推荐把接口详情里的 `content` 解开成 JSON 对象后再修改。
32
+ - submit 文件用于真实提交,必须贴合接口 body,不能混入仅供本地审阅的辅助字段。
33
+ - 默认分工:
34
+ - `raw`:原始接口返回
35
+ - `work`:人类可读、便于 diff 的展开结构
36
+ - `submit`:最终请求体,其中 `content` 应为接口所需字符串形态
37
+ - 如果工作文件里带了本地辅助字段、注释性元信息或额外审阅结构,转换脚本必须在生成 submit 文件时剥离。
38
+ - 新建模式下,`raw` 可以是按真实 `POST /api/flow_page_template` 最小 body 生成的 create skeleton,不要求一定来自详情接口。
39
+ - `submit` 不需要保留 `searchTemp` 这类详情扩展字段;不要把详情读物原样回写成提交体。
40
+
41
+ ## `config[]` 字段
42
+ 单个筛选项常见字段:
43
+
44
+ - `is`
45
+ - `field`
46
+ - `label`
47
+ - `type`
48
+ - `props`
49
+ - `multiple`
50
+ - `options`
51
+ - `time_type`
52
+ - `subType`
53
+ - `console`
54
+ - `hide_type`
55
+
56
+ ## 已验证组件类型
57
+ - `input`
58
+ - `select`
59
+ - `autocomplete`
60
+ - `date-range`
61
+ - `time-range`
62
+ - `number-range`
63
+ - `user_select_list`
64
+
65
+ ## 已验证查询类型
66
+ - `term`
67
+ - `terms`
68
+ - `match`
69
+ - `match_phrase`
70
+ - `wildcard`
71
+ - `range`
72
+ - `raw`
73
+
74
+ ## `customQuery`
75
+ `customQuery` 用于附加默认查询条件,已验证存在两种形态:
76
+
77
+ ### 1. 普通对象
78
+ ```json
79
+ {
80
+ "customQuery": {
81
+ "current_flow_step_id": {
82
+ "type": "term",
83
+ "value": "1696817712042"
84
+ }
85
+ }
86
+ }
87
+ ```
88
+
89
+ ### 2. `eval + $template`
90
+ ```json
91
+ {
92
+ "customQuery": {
93
+ "eval": true,
94
+ "$template": "{ return { type: { type: 'match_phrase', value: '专项' } }; }"
95
+ }
96
+ }
97
+ ```
98
+
99
+ ## `beforeSearch`
100
+ `beforeSearch` 用于把普通筛选值改写成真实 ES/raw/nested 查询。
101
+
102
+ 示例:
103
+ ```json
104
+ {
105
+ "beforeSearch": {
106
+ "$template": "{ const inspector = ctx.value.inspector; ctx.value.inspector = { type: 'raw', value: { nested: { path: 'inspector', query: { match: { 'inspector.name': inspector.value } } } } }; }"
107
+ }
108
+ }
109
+ ```
110
+
111
+ 第二类典型用途:
112
+ - 保留前端友好的时间范围控件
113
+ - 在提交前把普通 `range` 输入改写为后端实际可命中的 `raw range`
114
+
115
+ 示例:
116
+ ```json
117
+ {
118
+ "beforeSearch": {
119
+ "$template": "{ const start_time = ctx.value.start_time; const range = start_time?.value?.range?.start_time; if (range) { ctx.value.start_time = { type: 'raw', value: { range: { start_time: { ...range } } } }; } }"
120
+ }
121
+ }
122
+ ```
123
+
124
+ ## `tabFilters`
125
+ 编辑页源码真实使用的是 `tabFilters`。
126
+
127
+ 当前页面逻辑表明单个 tab 至少包含:
128
+ - `label`
129
+ - `conditions`
130
+
131
+ 每个 condition 至少包含:
132
+ - `field`
133
+ - `type`
134
+ - `values`
135
+
136
+ 范围查询时:
137
+ - `type = range`
138
+ - `values` 通常是范围值对
139
+
140
+ 非范围查询时:
141
+ - `values` 是字符串数组
@@ -0,0 +1,287 @@
1
+ # Filter Request Shape
2
+
3
+ ## 模板列表
4
+ ```http
5
+ GET /api/flow_page_template?type=3&flow_type=<flow_type>&flow_key=<flow_key>&sort=-create_time
6
+ ```
7
+
8
+ 已验证返回字段至少包括:
9
+ - `id`
10
+ - `name`
11
+ - `desc`
12
+ - `content`
13
+ - `type`
14
+ - `status`
15
+ - `flow_type`
16
+ - `flow_key`
17
+ - `uuid`
18
+ - `guid`
19
+
20
+ 当前再次确认的列表字段事实:
21
+ - 列表返回里通常不带 `searchTemp`
22
+ - 因此列表结构适合做候选模板检索和概览,不应直接拿来当编辑详情骨架
23
+
24
+ ## 模板详情
25
+ ```http
26
+ GET /api/flow_page_template/:id?skip_i18n=true
27
+ ```
28
+
29
+ 已验证返回字段至少包括:
30
+ - `id`
31
+ - `name`
32
+ - `desc`
33
+ - `content`
34
+ - `type`
35
+ - `data_set_id`
36
+ - `status`
37
+ - `flow_type`
38
+ - `flow_key`
39
+ - `uuid`
40
+ - `guid`
41
+ - `searchTemp`
42
+
43
+ 注意:
44
+ - `content` 返回时是字符串,需要 `JSON.parse`
45
+ - 页面源码在编辑页里就是按这个方式处理
46
+ - `data_set_id` 不能默认当成字段池来源;是否真正生效必须看编辑页实际发出的字段池请求
47
+ - 编辑模式默认应先把该返回下载到 `.codex/tmp/`,拆成 raw/work/meta 三类本地产物后再编辑
48
+
49
+ ## 字段池
50
+ ```http
51
+ POST /bpmax/data-set-field/list?page_size=1000&page=1
52
+ Content-Type: application/json
53
+ ```
54
+
55
+ 已验证请求体:
56
+ ```json
57
+ {
58
+ "is_del": 0,
59
+ "flow_type": "flow778969984",
60
+ "flow_key": null
61
+ }
62
+ ```
63
+
64
+ 已验证返回字段至少包括:
65
+ - `id`
66
+ - `key`
67
+ - `name`
68
+ - `type`
69
+ - `classify`
70
+ - `flow_type`
71
+ - `flow_key`
72
+
73
+ 补充事实:
74
+ - 在 `flow810875061` 的真实编辑页中,请求体仍只使用 `is_del + flow_type + flow_key`
75
+ - 尝试单独修改模板 `data_set_id` 后,字段池请求形态没有随之改变
76
+
77
+ ## 新建模板
78
+ ```http
79
+ POST /api/flow_page_template
80
+ Content-Type: application/json
81
+ ```
82
+
83
+ 页面源码构造的核心 body:
84
+ ```json
85
+ {
86
+ "name": "模板名",
87
+ "desc": "",
88
+ "flow_type": "flow778969984",
89
+ "flow_key": "",
90
+ "content": "{\"config\":[]}",
91
+ "type": 3,
92
+ "status": 1
93
+ }
94
+ ```
95
+
96
+ create 模式默认初始化规则:
97
+ - 不依赖 `GET /api/flow_page_template/:id`
98
+ - 先按上面的最小 body 生成 create skeleton
99
+ - 再把 skeleton 落到 `.codex/tmp/` 的 raw/work/meta
100
+ - 若用户明确要求“参考已有模板改一个版本”,允许额外选择 sample template 作为增强版 skeleton,但不是默认前置
101
+
102
+ 建议拆开理解 create / edit 的初始化顺序:
103
+
104
+ ### create 初始化顺序
105
+ - 读取真实 `POST /api/flow_page_template` 最小 body
106
+ - 生成 create skeleton
107
+ - 导出 `.codex/tmp/` 的 raw/work/meta
108
+ - 在本地 work 文件中修改
109
+ - 第二次确认后才真正发起 `POST`
110
+
111
+ ## 编辑模板
112
+ ```http
113
+ PUT /api/flow_page_template/:id
114
+ Content-Type: application/json
115
+ ```
116
+
117
+ 页面源码构造的核心 body:
118
+ ```json
119
+ {
120
+ "name": "模板名",
121
+ "desc": "",
122
+ "flow_type": "flow778969984",
123
+ "flow_key": "",
124
+ "content": "{\"config\":[]}",
125
+ "type": 3
126
+ }
127
+ ```
128
+
129
+ 补充验证:
130
+ - 默认请求顺序应为:
131
+ - 先 `GET /api/flow_page_template/:id?skip_i18n=true`
132
+ - 再导出 `.codex/tmp/` 的 raw/work/meta
133
+ - 在本地 work 文件中修改
134
+ - 通过脚本生成 submit 文件
135
+ - 第二次确认后才真正发起 `PUT`
136
+ - 裸 `PUT` 返回 `code=0`、页面真实 `PUT` 返回 `affectedRows=1`,都不足以证明模板内容已经更新
137
+ - 必须继续核对:
138
+ - 真实 `PUT` 请求体里的 `content`
139
+ - `GET /api/flow_page_template/:id?skip_i18n=true` 回读的 `content`
140
+ - submit 文件应严格贴合真实接口 body,至少包括:
141
+ - `name`
142
+ - `desc`
143
+ - `flow_type`
144
+ - `flow_key`
145
+ - `content`
146
+ - `type`
147
+ - 若编辑页组件实例可达,允许作为 fallback 直接改组件 `content` 后调用页面 `save()`,但不再是默认路径
148
+
149
+ ### edit 初始化顺序
150
+ - 先 `GET /api/flow_page_template/:id?skip_i18n=true`
151
+ - 再导出 `.codex/tmp/` 的 raw/work/meta
152
+ - 在本地 work 文件中修改
153
+ - 第二次确认后才真正发起 `PUT`
154
+
155
+ ## 本地工作文件与 submit 文件约定
156
+ - 临时文件统一放在 `.codex/tmp/`
157
+ - 推荐至少产出:
158
+ - `raw`:接口原始返回
159
+ - `work`:供人工修改的展开结构
160
+ - `meta`:记录模式、模板 id、flow_type、flow_key、时间戳
161
+ - `submit`:最终提交 body
162
+ - `result/<stem>.lint.json`:提交前 lint 结果
163
+ - `stem` 规则固定为:
164
+ - 编辑:`<template-id>`
165
+ - 新建:`create-<flow_type>-<flow_key|default>`
166
+ - 双确认规则:
167
+ - 第一次确认对象是 `work` 文件改动
168
+ - 第二次确认对象是 `submit` 文件内容
169
+ - 提交后必须再生成 readback 或 verify 结果,证明线上内容与 `submit` 一致
170
+ - 当前脚本入口:
171
+ - `export_filter_template.py`
172
+ - `init_create_filter_template.py`
173
+ - `build_submit_payload.py`
174
+ - `lint_filter_template_semantics.py`
175
+ - `confirm_filter_template.py`
176
+ - `submit_filter_template.py`
177
+ - 当前没有单独的运行态验证脚本;运行态验证由 `submit_filter_template.py` 的 readback / verify 结果和浏览器列表页证据共同完成
178
+
179
+ ## 最终提交口径
180
+ - 最终配置必须经过:
181
+ - `build_submit_payload.py`
182
+ - `lint_filter_template_semantics.py`
183
+ - `confirm_filter_template.py`
184
+ - `submit_filter_template.py`
185
+ - lint 存在 blocker 时,不得执行最终提交。
186
+ - 页面内请求或组件实例 `save()` 只能帮助确认真实请求体和回读差异,不构成最终提交闭环。
187
+
188
+ ## 删除模板
189
+ ```http
190
+ DELETE /api/flow_page_template/:id
191
+ ```
192
+
193
+ ## 当前流程
194
+ ```http
195
+ GET /api/flow?flow_type=<flow_type>&key=<flow_key>
196
+ ```
197
+
198
+ 已验证生效模板字段位于:
199
+ ```json
200
+ {
201
+ "data": {
202
+ "meta": {
203
+ "table_filter_template": 954573388
204
+ }
205
+ }
206
+ }
207
+ ```
208
+
209
+ 当前再次确认的流程事实:
210
+ - `flow.data.meta` 中真实包含 `table_filter_template`
211
+ - 因此“当前流程实际在用哪个筛选器模板”应继续以这个字段为准,而不是模板列表状态列反推
212
+
213
+ ## 切换生效模板
214
+ ```http
215
+ PUT /api/flow/configuration/meta?flow_type=<flow_type>&flow_key=<flow_key>
216
+ Content-Type: application/json
217
+ ```
218
+
219
+ 最小 body:
220
+ ```json
221
+ {
222
+ "table_filter_template": 954573388
223
+ }
224
+ ```
225
+
226
+ ## 已验证可用的项目列表查询形态
227
+ 以下请求体形态已在真实项目列表页验证通过:
228
+
229
+ ### 精确文本
230
+ ```json
231
+ {
232
+ "dn": {
233
+ "value": "1111",
234
+ "type": "match_phrase"
235
+ }
236
+ }
237
+ ```
238
+
239
+ ### 低基数字段精确匹配
240
+ ```json
241
+ {
242
+ "current_flow_step_name": {
243
+ "value": "库管扫码入库",
244
+ "type": "term"
245
+ }
246
+ }
247
+ ```
248
+
249
+ ### 关键词模糊匹配
250
+ ```json
251
+ {
252
+ "list": {
253
+ "value": "AAA",
254
+ "type": "wildcard"
255
+ }
256
+ }
257
+ ```
258
+
259
+ ```json
260
+ {
261
+ "fail_list": {
262
+ "value": "bb",
263
+ "type": "wildcard"
264
+ }
265
+ }
266
+ ```
267
+
268
+ ### 时间范围的 raw range 形态
269
+ ```json
270
+ {
271
+ "start_time": {
272
+ "type": "raw",
273
+ "value": {
274
+ "range": {
275
+ "start_time": {
276
+ "gte": 1774699315000,
277
+ "lte": 1775483470000
278
+ }
279
+ }
280
+ }
281
+ }
282
+ }
283
+ ```
284
+
285
+ 当前已验证事实:
286
+ - 普通 `range` 在本次时间字段案例中未命中
287
+ - `raw range` 命中 38 条
@@ -0,0 +1,115 @@
1
+ # Filter Runtime Patterns
2
+
3
+ ## 模式 1:默认简单筛选
4
+ 典型流程:
5
+ - `flow778969984`
6
+ - `flow699723699`
7
+
8
+ 特征:
9
+ - 通常只有 `config[]`
10
+ - 常见仅 1 个 `input`
11
+ - 用于最基础的项目名称或关键字搜索
12
+
13
+ 示例特征:
14
+ ```json
15
+ {
16
+ "config": [
17
+ {
18
+ "is": "input",
19
+ "field": "project_name",
20
+ "label": "项目名称",
21
+ "type": "match_phrase"
22
+ }
23
+ ]
24
+ }
25
+ ```
26
+
27
+ ## 模式 2:普通多字段筛选
28
+ 常见组件组合:
29
+ - `input`
30
+ - `autocomplete`
31
+ - `select`
32
+ - `date-range`
33
+ - `number-range`
34
+
35
+ 适用场景:
36
+ - 项目列表页的多条件筛选
37
+ - 带固定枚举、文本搜索和时间筛选的常规页面
38
+
39
+ ## 模式 2.1:低基数字段筛选
40
+ 典型特征:
41
+ - 字段真实唯一值很少
42
+ - 常见于:
43
+ - 当前环节
44
+ - 类型
45
+ - 简单状态名
46
+
47
+ 默认规则:
48
+ - 先抽样字段真实唯一值
49
+ - 若唯一值数量很少,优先用 `select + term`
50
+ - 只有在值集合较大、持续变化或需要历史值提示时,再考虑 `autocomplete`
51
+
52
+ 已验证案例提示:
53
+ - `current_flow_step_name` 在真实样本中只抽样到:
54
+ - `异常处理`
55
+ - `库管扫码入库`
56
+ - 这类字段直接做固定下拉通常比输入或自动补全更好用
57
+
58
+ ## 模式 3:固定附加条件
59
+ 通过 `customQuery` 限制默认结果集。
60
+
61
+ 典型用途:
62
+ - 固定某些状态
63
+ - 固定某个步骤
64
+ - 固定某个类型集合
65
+
66
+ 注意:
67
+ - 这类条件不应伪装成用户可见的普通筛选项
68
+ - 默认优先放在 `customQuery`
69
+
70
+ ## 模式 4:查询改写
71
+ 通过 `beforeSearch` 把用户输入改造成实际查询条件。
72
+
73
+ 典型用途:
74
+ - nested 字段查询
75
+ - raw 查询
76
+ - 用户输入字段和真实 ES 查询路径不一致
77
+ - 时间控件输入改写成后端实际可命中的 `raw range`
78
+
79
+ 注意:
80
+ - `beforeSearch` 是查询增强,不是展示配置
81
+ - 改这部分时优先按代码模式理解
82
+ - 时间字段如果普通 `range` 查询不命中,但 `raw range` 命中,应保留原有时间控件并在 `beforeSearch` 中转换
83
+
84
+ ## 模式 5:看板 / 控制台场景
85
+ 典型特征:
86
+ - `console: true`
87
+ - 经常配合:
88
+ - 宽度样式
89
+ - `time_range`
90
+ - 多选 `autocomplete`
91
+ - 固定 `select.options`
92
+
93
+ 注意:
94
+ - 这类模板通常更强调布局宽度和筛选组合
95
+ - 不要把看板模板误当普通项目列表模板简化处理
96
+
97
+ ## 模式 6:Tab 筛选
98
+ 页面源码已支持 `tabFilters`。
99
+
100
+ 典型用途:
101
+ - 预置多组筛选视角
102
+ - 通过 Tab 快速切换一组查询条件
103
+
104
+ 注意:
105
+ - Tab 条件字段要和 `config[]` 字段池保持闭合
106
+ - 删改字段时要同步检查 Tab 条件引用
107
+
108
+ ## 已验证复杂案例提示
109
+ 本地配置已能检出以下增强能力:
110
+ - `customQuery`
111
+ - `beforeSearch`
112
+ - `number-range`
113
+ - `console: true`
114
+
115
+ 因此第一版 skill 不能只支持“一个输入框”的简单模板。
@@ -0,0 +1,94 @@
1
+ # Runtime Verified Filter Page Shape
2
+
3
+ ## 列表页
4
+ - 真实入口:
5
+ - `.../project_detail_tableFilter?flow_type=<flow_type>&flow_key=<flow_key>`
6
+ - 页面已验证元素:
7
+ - 流程选择器
8
+ - `创建模板`
9
+ - 模板表格
10
+ - 行级操作:`预览` / `编辑` / `删除`
11
+ - 状态列:`使用` / `使用中`
12
+ - 已验证请求:
13
+ - `GET /api/flow/options`
14
+ - `GET /api/flow?flow_type=...&key=...`
15
+ - `GET /api/flow_page_template?type=3&flow_type=...&flow_key=...`
16
+ - “使用中”判断来自:
17
+ - `currentFlow.data.meta.table_filter_template === template.id`
18
+
19
+ ## 编辑页
20
+ - 真实入口:
21
+ - `.../project_detail_tableFilter/create?flow_type=<flow_type>&flow_key=<flow_key>`
22
+ - `.../project_detail_tableFilter/<id>?flow_type=<flow_type>&flow_key=<flow_key>`
23
+ - 页面已验证元素:
24
+ - 顶部基础信息:`名称`、`简介`、`保存`
25
+ - 模式切换:`可视化配置` / `代码编辑`
26
+ - 可视化配置区:
27
+ - 字段选择器
28
+ - `添加`
29
+ - 每个筛选项的:
30
+ - 字段名
31
+ - 搜索方式
32
+ - 查询精度
33
+ - 占位符
34
+ - `select` 选项配置
35
+ - `date-range` 时间类型配置
36
+ - 复制 / 删除
37
+ - Tab 配置区:
38
+ - `Tab筛选配置`
39
+ - `添加Tab`
40
+ - Tab label
41
+ - 条件字段 / 条件类型 / 值
42
+ - 代码模式区:
43
+ - `CodeEditor`
44
+ - 示例内容
45
+
46
+ ## 字段池来源
47
+ - 编辑页可选字段池来自:
48
+ - `POST /bpmax/data-set-field/list`
49
+ - 当前已验证请求体至少包含:
50
+ - `is_del`
51
+ - `flow_type`
52
+ - `flow_key`
53
+ - 当前已验证现象:
54
+ - 即使模板详情里存在 `data_set_id` 字段,编辑页字段池也可能仍然只按 `flow_type + flow_key` 获取
55
+ - 因此“给数据集 <id> 增加筛选”不能默认等价于“修改模板 `data_set_id`”
56
+
57
+ ## 保存模式
58
+ - 编辑页真实源码保存链:
59
+ - 新建:`POST /api/flow_page_template`
60
+ - 编辑:`PUT /api/flow_page_template/:id`
61
+ - 提交体核心字段:
62
+ - `name`
63
+ - `desc`
64
+ - `flow_type`
65
+ - `flow_key`
66
+ - `content: JSON.stringify(content)`
67
+ - `type: 3`
68
+ - 页面保存成功后默认会返回上一页。
69
+ - 当前默认推荐闭环:
70
+ - 编辑:先通过详情接口确认真实线上结构,再下载 raw/work/meta 到 `.codex/tmp/`
71
+ - 新建:先按真实 `POST /api/flow_page_template` 最小 body 初始化 create skeleton,再生成 raw/work/meta
72
+ - 在 work 文件中修改
73
+ - 通过 `build_submit_payload.py` 生成 submit 文件
74
+ - 双确认后再提交
75
+ - 提交后回读详情并刷新编辑页
76
+ - 当前仓库状态:
77
+ - `bpmax-filter-template-editor` 已提供 `export/build/lint/confirm/submit` 脚本闭环
78
+ - 运行态强验证仍依赖列表页请求、页面刷新和“使用中”状态证据
79
+ - 页面组件实例 `save()` 保留为 fallback:
80
+ - 仅在页面上下文排障或需要快速对比页面行为时使用
81
+ - 不再作为默认最稳路径
82
+ - 风险提示:
83
+ - 代码编辑器中的文本不一定已经同步到页面组件状态
84
+ - `PUT` 返回成功不代表最终写入的是目标 `content`
85
+ - 保存后必须同时检查真实 `PUT` 请求体和详情回读
86
+
87
+ ## 生效切换
88
+ - 列表页点击 `使用` 走:
89
+ - `PUT /api/flow/configuration/meta`
90
+ - 请求体至少包含:
91
+ - `table_filter_template`
92
+ - query 至少包含:
93
+ - `flow_type`
94
+ - `flow_key`
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+
6
+ from filter_template_editor_common import build_submit_payload, dump_json, load_json, paths_for, update_build_meta, write_diff
7
+
8
+
9
+ def main() -> int:
10
+ p = argparse.ArgumentParser(description="Build BPMAX filter-template submit payload from a local work file.")
11
+ p.add_argument("--stem", required=True)
12
+ args = p.parse_args()
13
+ paths = paths_for(args.stem)
14
+ work = load_json(paths["work"])
15
+ submit = build_submit_payload(work)
16
+ dump_json(paths["submit"], submit)
17
+ write_diff(paths["submit_diff"], work, submit, "work", "submit")
18
+ update_build_meta(paths["meta"], stem=args.stem, work_path=paths["work"], submit_path=paths["submit"])
19
+ print(paths["submit"])
20
+ print(paths["submit_diff"])
21
+ return 0
22
+
23
+
24
+ if __name__ == "__main__":
25
+ raise SystemExit(main())
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env python3
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+
6
+ from filter_template_editor_common import paths_for, update_confirmation_state
7
+
8
+
9
+ def main() -> int:
10
+ p = argparse.ArgumentParser(description="Record work or submit confirmation for a local BPMAX filter-template artifact.")
11
+ p.add_argument("--stem", required=True)
12
+ p.add_argument("--stage", choices=("work", "submit"), required=True)
13
+ p.add_argument("--actor", default="codex")
14
+ args = p.parse_args()
15
+ paths = paths_for(args.stem)
16
+ update_confirmation_state(paths["meta"], stem=args.stem, actor=args.actor, stage=args.stage, work_path=paths["work"], submit_path=paths["submit"])
17
+ print(paths["meta"])
18
+ return 0
19
+
20
+
21
+ if __name__ == "__main__":
22
+ raise SystemExit(main())