@buaa_smat/hometrans 26.0.5 → 26.0.6

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 (472) hide show
  1. package/README.md +249 -279
  2. package/agents/code-reviewer.md +1 -1
  3. package/dist/cli/editors.json +20 -0
  4. package/dist/platform/registry.js +1 -0
  5. package/dist/platform/validate.js +2 -1
  6. package/i18n/agents/code-reviewer.md +1 -1
  7. package/i18n/platforms/atomcode/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  8. package/i18n/platforms/claude-code/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  9. package/i18n/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +8 -0
  10. package/i18n/platforms/codex/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  11. package/i18n/platforms/cursor/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  12. package/i18n/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  13. package/i18n/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +10 -0
  14. package/i18n/platforms/qoder/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  15. package/i18n/platforms/qoder-cn/skills/a2h-app-migrate/SKILL.unique.md +8 -0
  16. package/i18n/platforms/trae/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  17. package/i18n/platforms/trae-cn/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  18. package/i18n/skills/a2h-app-migrate/SKILL.md +32 -15
  19. package/i18n/skills/a2h-app-migrate/references/stage-map.md +4 -2
  20. package/i18n/skills/a2h-app-migrate/references/workflow.yaml +148 -89
  21. package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1 -1
  22. package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +51 -2
  23. package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +1 -1
  24. package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +0 -2
  25. package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
  26. package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +1 -1
  27. package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
  28. package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +9 -3
  29. package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +4 -2
  30. package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +8 -7
  31. package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -2
  32. package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +33 -12
  33. package/i18n/skills/a2h-batch-ui-align/SKILL.md +14 -12
  34. package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -0
  35. package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +1 -0
  36. package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +32 -1
  37. package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +3 -2
  38. package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +4 -0
  39. package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +19 -1
  40. package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +13 -1
  41. package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +2 -2
  42. package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +205 -7
  43. package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +10 -17
  44. package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +3 -4
  45. package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +47 -2
  46. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +52 -328
  47. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +1 -138
  48. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +2 -11
  49. package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +1 -1
  50. package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +8 -23
  51. package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +2 -1
  52. package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +17 -9
  53. package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +239 -16
  54. package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +6 -0
  55. package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +6 -3
  56. package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +170 -10
  57. package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +42 -1
  58. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +20 -1
  59. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +81 -0
  60. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/click_handler.ts +140 -0
  61. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/collapsing_toolbar.ts +124 -0
  62. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/compose_semantics.ts +287 -0
  63. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/flowitem_width.ts +78 -0
  64. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +194 -8
  65. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/inset_stacked.ts +138 -0
  66. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/int_division.ts +181 -0
  67. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +62 -2
  68. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_path.ts +77 -0
  69. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_ready.ts +109 -0
  70. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +88 -18
  71. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_cycle.ts +140 -0
  72. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +2 -2
  73. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/see_through_overlay.ts +149 -0
  74. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_builder.ts +139 -0
  75. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_show_close.ts +53 -0
  76. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/space_between_optional.ts +115 -0
  77. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +7 -1
  78. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/width_fill.ts +160 -0
  79. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_inset_stacked.test.mjs +155 -0
  80. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +60 -0
  81. package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +38 -0
  82. package/i18n/skills/a2h-module-semantic-docs/SKILL.md +3 -2
  83. package/i18n/skills/a2h-page-specgen/SKILL.md +36 -5
  84. package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +89 -21
  85. package/i18n/skills/a2h-page-specgen/references/gates.md +33 -7
  86. package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +67 -13
  87. package/i18n/skills/a2h-page-specgen/references/spec-example.md +166 -32
  88. package/i18n/skills/a2h-page-specgen/references/spec-template.md +8 -5
  89. package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +37 -1
  90. package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +241 -22
  91. package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +29 -2
  92. package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +32 -0
  93. package/i18n/skills/a2h-page-specgen/scripts/contract-calls.mjs +715 -0
  94. package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +129 -2
  95. package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +19 -10
  96. package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +62 -3
  97. package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +27 -0
  98. package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +116 -6
  99. package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +270 -29
  100. package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +26 -14
  101. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +118 -25
  102. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +104 -19
  103. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +118 -25
  104. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +104 -19
  105. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +216 -216
  106. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +1 -1
  107. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +2 -2
  108. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +118 -25
  109. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +100 -15
  110. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +118 -25
  111. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +104 -19
  112. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +155 -3
  113. package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +529 -1
  114. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +27 -0
  115. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +158 -0
  116. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +11 -13
  117. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +97 -0
  118. package/i18n/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +737 -0
  119. package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +75 -3
  120. package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +24 -0
  121. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +124 -0
  122. package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +6 -2
  123. package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +106 -1
  124. package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +32 -0
  125. package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +12 -0
  126. package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +6 -1
  127. package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +11 -3
  128. package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +1 -1
  129. package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +1 -0
  130. package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +159 -27
  131. package/i18n/skills/a2h-resource-convert/SKILL.md +1 -1
  132. package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +2 -2
  133. package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +124 -8
  134. package/i18n/skills/a2h-resource-convert/scripts/sync-framework-strings.mjs +147 -0
  135. package/i18n/skills/a2h-resource-convert/scripts/tests/framework_strings.test.mjs +131 -0
  136. package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +15 -12
  137. package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +38 -10
  138. package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +2 -2
  139. package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +2 -2
  140. package/i18n/skills/a2h-spec-design-pipeline/references/reply-recovery.md +172 -0
  141. package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +2 -2
  142. package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +5 -3
  143. package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +7 -1
  144. package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +1 -1
  145. package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +2 -0
  146. package/i18n/skills/a2h-spec-generate/references/input-formats.md +1 -1
  147. package/i18n/skills/a2h-utg-explorer/SKILL.md +11 -5
  148. package/i18n/skills/a2h-utg-explorer/references/architecture.md +37 -19
  149. package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +48 -3
  150. package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +21 -0
  151. package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +67 -8
  152. package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +32 -0
  153. package/i18n/skills/a2h-utg-explorer/scripts/tests/dialog_own_layout.test.mjs +40 -0
  154. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +63 -2
  155. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +143 -14
  156. package/i18n/skills/a2h-utg-static/SKILL.md +3 -3
  157. package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +4 -3
  158. package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +1 -1
  159. package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +25 -0
  160. package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +1 -0
  161. package/package.json +2 -1
  162. package/platforms/atomcode/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  163. package/platforms/claude-code/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  164. package/platforms/codebuddy/agents/build-fixer.frontmatter.md +5 -0
  165. package/platforms/codebuddy/agents/code-reviewer.frontmatter.md +5 -0
  166. package/platforms/codebuddy/agents/model-render-worker.frontmatter.md +5 -0
  167. package/platforms/codebuddy/agents/model-worker.frontmatter.md +5 -0
  168. package/platforms/codebuddy/agents/specgen-worker.frontmatter.md +5 -0
  169. package/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +8 -0
  170. package/platforms/codex/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  171. package/platforms/cursor/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  172. package/platforms/deveco/agents/build-fixer.frontmatter.md +2 -0
  173. package/platforms/deveco/agents/code-reviewer.frontmatter.md +2 -0
  174. package/platforms/deveco/agents/model-render-worker.frontmatter.md +2 -0
  175. package/platforms/deveco/agents/model-worker.frontmatter.md +2 -0
  176. package/platforms/deveco/agents/specgen-worker.frontmatter.md +2 -0
  177. package/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  178. package/platforms/opencode/agents/build-fixer.frontmatter.md +2 -0
  179. package/platforms/opencode/agents/code-reviewer.frontmatter.md +2 -0
  180. package/platforms/opencode/agents/model-render-worker.frontmatter.md +2 -0
  181. package/platforms/opencode/agents/model-worker.frontmatter.md +2 -0
  182. package/platforms/opencode/agents/specgen-worker.frontmatter.md +2 -0
  183. package/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +10 -0
  184. package/platforms/qoder/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  185. package/platforms/qoder-cn/skills/a2h-app-migrate/SKILL.unique.md +8 -0
  186. package/platforms/trae/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  187. package/platforms/trae-cn/skills/a2h-app-migrate/SKILL.unique.md +3 -0
  188. package/skills/a2h-app-migrate/SKILL.md +31 -14
  189. package/skills/a2h-app-migrate/references/stage-map.md +4 -2
  190. package/skills/a2h-app-migrate/references/workflow.yaml +152 -89
  191. package/skills/a2h-app-migrate/scripts/assert_dag_complete.mjs +1 -1
  192. package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +28 -11
  193. package/skills/a2h-app-migrate/scripts/dag_action_catalog.mjs +76 -0
  194. package/skills/a2h-app-migrate/scripts/dag_production_executor.mjs +60 -5
  195. package/skills/a2h-app-migrate/scripts/dag_runner.mjs +184 -4
  196. package/skills/a2h-app-migrate/scripts/env_preflight.mjs +1 -1
  197. package/skills/a2h-app-migrate/scripts/ledger.mjs +2 -2
  198. package/skills/a2h-app-migrate/scripts/resume_plan.mjs +3 -3
  199. package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +51 -2
  200. package/skills/a2h-app-migrate/test/test_dag_blocked_guard.mjs +291 -0
  201. package/skills/a2h-app-migrate/test/test_dag_production.mjs +40 -0
  202. package/skills/a2h-app-migrate/test/test_dag_runner.mjs +4 -3
  203. package/skills/a2h-app-migrate/test/test_i18n_engine_mirror.mjs +1 -1
  204. package/skills/a2h-app-migrate/test/test_interaction.mjs +0 -2
  205. package/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
  206. package/skills/a2h-app-migrate/test/test_skill_doc.mjs +1 -1
  207. package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +1 -1
  208. package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
  209. package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +36 -0
  210. package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +19 -6
  211. package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +4 -2
  212. package/skills/a2h-arkts-logic-coder/SKILL.md +8 -7
  213. package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -2
  214. package/skills/a2h-arkts-logic-coder/references/code-generation.md +33 -12
  215. package/skills/a2h-batch-ui-align/SKILL.md +14 -12
  216. package/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -0
  217. package/skills/a2h-batch-ui-align/references/cards/canvas.md +1 -0
  218. package/skills/a2h-batch-ui-align/references/cards/dynamics.md +32 -1
  219. package/skills/a2h-batch-ui-align/references/cards/geometry.md +3 -2
  220. package/skills/a2h-batch-ui-align/references/cards/interaction.md +4 -0
  221. package/skills/a2h-batch-ui-align/references/cards/resources.md +19 -1
  222. package/skills/a2h-batch-ui-align/references/cards/widgets.md +13 -1
  223. package/skills/a2h-batch-ui-align/references/cards/window.md +2 -2
  224. package/skills/a2h-batch-ui-align/references/checker-rules.md +205 -7
  225. package/skills/a2h-batch-ui-align/references/conversion-procedure.md +10 -17
  226. package/skills/a2h-batch-ui-align/references/incremental-scope.md +3 -4
  227. package/skills/a2h-batch-ui-align/references/lottie-integration.md +47 -2
  228. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +52 -328
  229. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +1 -138
  230. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +2 -11
  231. package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +1 -1
  232. package/skills/a2h-batch-ui-align/references/step3-capture.md +8 -23
  233. package/skills/a2h-batch-ui-align/references/step4-prepare.md +2 -1
  234. package/skills/a2h-batch-ui-align/references/step5-convert.md +17 -9
  235. package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +239 -16
  236. package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +6 -1
  237. package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +6 -0
  238. package/skills/a2h-batch-ui-align/scripts/group_pass.mjs +270 -0
  239. package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +134 -16
  240. package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +39 -8
  241. package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +6 -3
  242. package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +170 -10
  243. package/skills/a2h-batch-ui-align/scripts/module_placement.mjs +189 -0
  244. package/skills/a2h-batch-ui-align/scripts/overlay_effects.mjs +205 -0
  245. package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +42 -1
  246. package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +20 -1
  247. package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +28 -0
  248. package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +81 -0
  249. package/skills/a2h-batch-ui-align/scripts/static_check/rules/click_handler.ts +140 -0
  250. package/skills/a2h-batch-ui-align/scripts/static_check/rules/collapsing_toolbar.ts +124 -0
  251. package/skills/a2h-batch-ui-align/scripts/static_check/rules/compose_semantics.ts +287 -0
  252. package/skills/a2h-batch-ui-align/scripts/static_check/rules/flowitem_width.ts +78 -0
  253. package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +194 -8
  254. package/skills/a2h-batch-ui-align/scripts/static_check/rules/inset_stacked.ts +138 -0
  255. package/skills/a2h-batch-ui-align/scripts/static_check/rules/int_division.ts +181 -0
  256. package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +62 -2
  257. package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_path.ts +77 -0
  258. package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_ready.ts +109 -0
  259. package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +88 -18
  260. package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_cycle.ts +140 -0
  261. package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +2 -2
  262. package/skills/a2h-batch-ui-align/scripts/static_check/rules/see_through_overlay.ts +149 -0
  263. package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_builder.ts +139 -0
  264. package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_show_close.ts +53 -0
  265. package/skills/a2h-batch-ui-align/scripts/static_check/rules/space_between_optional.ts +115 -0
  266. package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +7 -1
  267. package/skills/a2h-batch-ui-align/scripts/static_check/rules/width_fill.ts +160 -0
  268. package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +28 -0
  269. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_chrome_defaults.test.mjs +328 -0
  270. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_click_handler.test.mjs +127 -0
  271. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_compose_semantics.test.mjs +150 -0
  272. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +117 -0
  273. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_inset_stacked.test.mjs +155 -0
  274. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +60 -0
  275. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +413 -0
  276. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +159 -0
  277. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_sheet_builder.test.mjs +192 -0
  278. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme.test.mjs +4 -2
  279. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +38 -0
  280. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_compose.test.mjs +106 -0
  281. package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +15 -0
  282. package/skills/a2h-batch-ui-align/scripts/tests/group_pass.test.mjs +150 -0
  283. package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +125 -0
  284. package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +56 -0
  285. package/skills/a2h-batch-ui-align/scripts/tests/measure_pack_icon_leaf.test.mjs +143 -0
  286. package/skills/a2h-batch-ui-align/scripts/tests/module_placement.test.mjs +248 -0
  287. package/skills/a2h-batch-ui-align/scripts/tests/overlay_effects.test.mjs +214 -0
  288. package/skills/a2h-fix-build-errors/references/known-patterns.md +5 -5
  289. package/skills/a2h-module-semantic-docs/SKILL.md +3 -2
  290. package/skills/a2h-module-semantic-docs/scripts/commit_module_state.mjs +10 -0
  291. package/skills/a2h-module-semantic-docs/scripts/design_baseline.mjs +158 -0
  292. package/skills/a2h-module-semantic-docs/test/test_design_baseline.mjs +128 -0
  293. package/skills/a2h-page-specgen/SKILL.md +36 -5
  294. package/skills/a2h-page-specgen/references/behavior-ledger.md +88 -21
  295. package/skills/a2h-page-specgen/references/evidence.md +2 -1
  296. package/skills/a2h-page-specgen/references/execution-model.md +13 -5
  297. package/skills/a2h-page-specgen/references/gates.md +33 -7
  298. package/skills/a2h-page-specgen/references/scenario-authoring.md +67 -13
  299. package/skills/a2h-page-specgen/references/spec-example.md +166 -32
  300. package/skills/a2h-page-specgen/references/spec-template.md +8 -5
  301. package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +40 -2
  302. package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +241 -22
  303. package/skills/a2h-page-specgen/scripts/behavior-model.mjs +29 -2
  304. package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +35 -2
  305. package/skills/a2h-page-specgen/scripts/contract-calls.mjs +715 -0
  306. package/skills/a2h-page-specgen/scripts/finalize.mjs +55 -2
  307. package/skills/a2h-page-specgen/scripts/footprint.mjs +129 -2
  308. package/skills/a2h-page-specgen/scripts/gate.mjs +20 -11
  309. package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +56 -3
  310. package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +27 -0
  311. package/skills/a2h-page-specgen/scripts/lib/hg.mjs +114 -5
  312. package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +20 -3
  313. package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +270 -29
  314. package/skills/a2h-page-specgen/scripts/prepare.mjs +25 -14
  315. package/skills/a2h-page-specgen/scripts/report.mjs +26 -5
  316. package/skills/a2h-page-specgen/scripts/submission.mjs +69 -2
  317. package/skills/a2h-page-specgen/scripts/submit.mjs +105 -4
  318. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +110 -18
  319. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +97 -12
  320. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +110 -18
  321. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +97 -12
  322. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +224 -224
  323. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +1 -1
  324. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +2 -2
  325. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +110 -18
  326. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +97 -12
  327. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +110 -18
  328. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +97 -12
  329. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +153 -3
  330. package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +529 -1
  331. package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +27 -0
  332. package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +158 -0
  333. package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +11 -13
  334. package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +97 -0
  335. package/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +737 -0
  336. package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +82 -3
  337. package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +24 -0
  338. package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +11 -0
  339. package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +6 -2
  340. package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +94 -1
  341. package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +32 -0
  342. package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +14 -0
  343. package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +49 -1
  344. package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +6 -1
  345. package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +12 -4
  346. package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +1 -1
  347. package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +1 -0
  348. package/skills/a2h-page-specgen/scripts/test/report.test.mjs +80 -1
  349. package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +159 -27
  350. package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +23 -0
  351. package/skills/a2h-page-specgen/scripts/waker.mjs +8 -1
  352. package/skills/a2h-resource-convert/SKILL.md +1 -1
  353. package/skills/a2h-resource-convert/data/framework-strings/NOTICE +10 -0
  354. package/skills/a2h-resource-convert/data/framework-strings/manifest.json +90 -0
  355. package/skills/a2h-resource-convert/data/framework-strings/strings.json +382 -0
  356. package/skills/a2h-resource-convert/references/conversion-rules.md +7 -1
  357. package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +2 -2
  358. package/skills/a2h-resource-convert/references/step5-reference-resolution.md +16 -0
  359. package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +124 -8
  360. package/skills/a2h-resource-convert/scripts/sync-framework-strings.mjs +147 -0
  361. package/skills/a2h-resource-convert/scripts/tests/framework_strings.test.mjs +131 -0
  362. package/skills/a2h-spec-design-pipeline/SKILL.md +14 -11
  363. package/skills/a2h-spec-design-pipeline/references/coding-loop.md +38 -10
  364. package/skills/a2h-spec-design-pipeline/references/execution-model.md +3 -0
  365. package/skills/a2h-spec-design-pipeline/references/final-report-template.md +6 -3
  366. package/skills/a2h-spec-design-pipeline/references/initialization.md +2 -2
  367. package/skills/a2h-spec-design-pipeline/references/post-loop.md +2 -2
  368. package/skills/a2h-spec-design-pipeline/references/reply-recovery.md +172 -0
  369. package/skills/a2h-spec-design-pipeline/references/review-loop.md +2 -2
  370. package/skills/a2h-spec-design-pipeline/references/scripts.md +4 -3
  371. package/skills/a2h-spec-design-pipeline/references/shared-layer.md +24 -19
  372. package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +7 -1
  373. package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +12 -5
  374. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +5 -0
  375. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +4 -0
  376. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +27 -3
  377. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +46 -1
  378. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +2511 -295
  379. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +27 -72
  380. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +39 -83
  381. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +132 -101
  382. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +158 -115
  383. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +60 -93
  384. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +73 -100
  385. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/route-page-side-effect-import-cn.md +52 -0
  386. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/route-page-side-effect-import-en.md +59 -0
  387. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +57 -8
  388. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +475 -18
  389. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +472 -4
  390. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/RoutePageSideEffectImportCheck.js +570 -0
  391. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/arkui/RouteParamCarrierSubCheck.js +1053 -0
  392. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/sql/SqlIdentifierAnalysis.js +427 -0
  393. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +7 -1
  394. package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +1 -1
  395. package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +1 -1
  396. package/skills/a2h-spec-design-pipeline/scripts/settle.ts +785 -0
  397. package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +286 -0
  398. package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +166 -2
  399. package/skills/a2h-spec-design-pipeline/scripts/test_docs_refresh_contract.ts +40 -0
  400. package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +2 -0
  401. package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +350 -7
  402. package/skills/a2h-spec-design-pipeline/scripts/test_route_page_side_effect_import.ts +185 -0
  403. package/skills/a2h-spec-design-pipeline/scripts/test_route_param_carrier.ts +341 -0
  404. package/skills/a2h-spec-design-pipeline/scripts/test_settle.ts +593 -0
  405. package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +92 -1
  406. package/skills/a2h-spec-design-pipeline/scripts/test_sql_identifier_analysis.ts +137 -0
  407. package/skills/a2h-spec-generate/references/input-formats.md +1 -1
  408. package/skills/a2h-utg-explorer/SKILL.md +11 -5
  409. package/skills/a2h-utg-explorer/references/architecture.md +37 -19
  410. package/skills/a2h-utg-explorer/scripts/audit.mjs +6 -2
  411. package/skills/a2h-utg-explorer/scripts/close_phases.mjs +8 -5
  412. package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +95 -19
  413. package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +192 -4
  414. package/skills/a2h-utg-explorer/scripts/final_utg.mjs +21 -0
  415. package/skills/a2h-utg-explorer/scripts/panel_routes.mjs +1 -1
  416. package/skills/a2h-utg-explorer/scripts/plan.mjs +16 -1
  417. package/skills/a2h-utg-explorer/scripts/predicates.mjs +270 -0
  418. package/skills/a2h-utg-explorer/scripts/promote_dynamic.mjs +2 -0
  419. package/skills/a2h-utg-explorer/scripts/recover.mjs +4 -3
  420. package/skills/a2h-utg-explorer/scripts/recover_d.mjs +67 -8
  421. package/skills/a2h-utg-explorer/scripts/rejudge.mjs +4 -3
  422. package/skills/a2h-utg-explorer/scripts/report.mjs +32 -2
  423. package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +103 -36
  424. package/skills/a2h-utg-explorer/scripts/run_device.mjs +3 -8
  425. package/skills/a2h-utg-explorer/scripts/schedule_states.mjs +189 -0
  426. package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +9 -0
  427. package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +11 -0
  428. package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +31 -2
  429. package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +1 -1
  430. package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +32 -0
  431. package/skills/a2h-utg-explorer/scripts/tests/dialog_own_layout.test.mjs +40 -0
  432. package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +4 -1
  433. package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +6 -28
  434. package/skills/a2h-utg-explorer/scripts/tests/in_route_surface.test.mjs +125 -0
  435. package/skills/a2h-utg-explorer/scripts/tests/list_probe_target_wait.test.mjs +86 -0
  436. package/skills/a2h-utg-explorer/scripts/tests/multi_host.test.mjs +167 -0
  437. package/skills/a2h-utg-explorer/scripts/tests/nested_list.test.mjs +58 -0
  438. package/skills/a2h-utg-explorer/scripts/tests/overlay_opener.test.mjs +100 -0
  439. package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +8 -1
  440. package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +1 -0
  441. package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +2 -31
  442. package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +1 -1
  443. package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +56 -7
  444. package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +117 -6
  445. package/skills/a2h-utg-explorer/scripts/tests/state_inventory.test.mjs +414 -0
  446. package/skills/a2h-utg-explorer/scripts/tests/tree_unreliable.test.mjs +197 -0
  447. package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +196 -30
  448. package/skills/a2h-utg-explorer/scripts/utg_explorer/hosts.mjs +146 -0
  449. package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +63 -2
  450. package/skills/a2h-utg-explorer/scripts/utg_explorer/states.mjs +286 -0
  451. package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +197 -19
  452. package/skills/a2h-utg-static/SKILL.md +3 -3
  453. package/skills/a2h-utg-static/references/extractors.md +7 -0
  454. package/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +4 -3
  455. package/skills/a2h-utg-static/scripts/click_paths.mjs +1 -1
  456. package/skills/a2h-utg-static/scripts/compose_overlay.mjs +642 -22
  457. package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +25 -0
  458. package/skills/a2h-utg-static/scripts/tests/test_in_route_surface.mjs +123 -0
  459. package/skills/a2h-utg-static/scripts/tests/test_overlay_host_effects.mjs +239 -0
  460. package/skills/a2h-utg-static/scripts/tests/test_shared_host_depths.mjs +48 -0
  461. package/skills/a2h-utg-static/scripts/utg_html.mjs +2 -0
  462. package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +1 -0
  463. package/i18n/skills/a2h-app-migrate/references/specs.example.json +0 -19
  464. package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +0 -79
  465. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +0 -47
  466. package/resource/convert_pipeline_process.svg +0 -114
  467. package/resource/project_architecture.svg +0 -120
  468. package/resource/set_environment.png +0 -0
  469. package/resource/set_multimodel.png +0 -0
  470. package/skills/a2h-app-migrate/references/specs.example.json +0 -19
  471. package/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +0 -79
  472. package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +0 -47
@@ -0,0 +1,115 @@
1
+ // static_check/rules/space_between_optional.ts — GATE space-between-optional-lead.
2
+ //
3
+ // FlexAlign.SpaceBetween puts the first child at the start and the last at the end — but a single child goes to the
4
+ // start. When the leading child sits in an `if` (a back button shown only on some routes), the trailing child is
5
+ // alone whenever the condition is false and jumps from the end to the start. Compose TopAppBar keeps its actions slot
6
+ // at the end regardless of whether there is a navigation icon, so this is always a mistranslation of a slot layout.
7
+
8
+ import { report } from '../core/findings.ts';
9
+ import { chainHead, directUiChildren, lineOfIndex, markedAbove, maskStrings, matchBracket } from '../core/parse.ts';
10
+ import type { UiChild } from '../core/parse.ts';
11
+ import type { FileCtx } from '../core/scan.ts';
12
+ import type { RuleMeta } from '../core/meta.ts';
13
+
14
+ /** Rule metadata (rendered by scripts/gen_rule_docs.mjs). */
15
+ export const meta: RuleMeta[] = [
16
+ {
17
+ id: "space-between-optional-lead",
18
+ levels: ["GATE", "CAND"],
19
+ invariant: "geometry",
20
+ card: "alignment",
21
+ needs: [],
22
+ summary: "`Row` / `Column` / `Flex` 用 `FlexAlign.SpaceBetween` 分布子节点,第一个子节点在 `if` 里(条件不成立时不渲染),而剩下的子节点可能只剩一个 —— SpaceBetween 下单个子节点贴起始端,原本在末端的子节点(如顶栏右侧的 actions)跑到起始端。",
23
+ fix: "按槽位布局写,不靠 SpaceBetween 分布:起始槽(`if` 包裹的返回按钮)、`Blank().layoutWeight(1)`、末端槽依次排列,末端槽在条件不成立时仍在末端;或给起始槽留一个固定宽度的空占位(`else { Row().width(<槽宽>) }`)。确实要「只剩一个时贴起始端」时在容器上方写 `// SPACE-BETWEEN: <依据>` 降为 CAND。",
24
+ escape: "// SPACE-BETWEEN:",
25
+ cases: [
26
+ "实测(电商应用购物车页签):共用顶栏 `CenterTopAppBar` 的导航/动作层是 `Row().justifyContent(FlexAlign.SpaceBetween)`,返回按钮在 `if (this.showBackIcon)` 里;页签内不显示返回按钮,Row 只剩 actions 槽,「编辑」按钮从右侧跑到左侧。独立路由带返回按钮时显示正常,截图对比只覆盖了后者。",
27
+ ],
28
+ },
29
+ ];
30
+
31
+ const CONTAINERS: Set<string> = new Set<string>(['Row', 'Column', 'Flex']);
32
+
33
+ /** The `{ … }` child block of the component whose argument list opens at `paren`, as [open, close], or null. */
34
+ function childBlock(code: string, paren: number): [number, number] | null {
35
+ const pclose: number = matchBracket(code, paren);
36
+ if (pclose < 0) { return null; }
37
+ let k: number = pclose + 1;
38
+ while (k < code.length && /\s/.test(code[k])) { k++; }
39
+ if (code[k] !== '{') { return null; }
40
+ const close: number = matchBracket(code, k);
41
+ return close < 0 ? null : [k, close];
42
+ }
43
+
44
+ /**
45
+ * Whether, among the direct children (if / else branches expanded), the first child can be absent while at most one
46
+ * child remains. A child outside any if counts as always present; an if chain counts as always present only when its
47
+ * children span two or more branches (an if / else). ForEach / Repeat children make the count unknowable, and a child
48
+ * with layoutWeight / flexGrow fills the line wherever it sits: neither is judged.
49
+ */
50
+ function leadCanVanishLeavingOne(kids: UiChild[]): boolean {
51
+ if (kids.length < 2 || kids.some((k) => k.control === true)) { return false; }
52
+ // A child that stretches along the main axis fills the line, so where SpaceBetween would place it does not matter.
53
+ if (kids.some((k) => k.attrs.some((a) => a.name === 'layoutWeight' || a.name === 'flexGrow'))) { return false; }
54
+ const chains: Map<number, Set<number>> = new Map();
55
+ let always: number = 0;
56
+ for (const k of kids) {
57
+ const top: [number, number] | undefined = k.branchPath?.[0];
58
+ if (top === undefined) { always++; continue; }
59
+ const set: Set<number> = chains.get(top[0]) ?? new Set();
60
+ set.add(top[1]);
61
+ chains.set(top[0], set);
62
+ }
63
+ for (const set of chains.values()) { if (set.size >= 2) { always++; } }
64
+ const first: UiChild = kids[0];
65
+ const firstTop: [number, number] | undefined = first.branchPath?.[0];
66
+ const firstOptional: boolean = firstTop !== undefined && (chains.get(firstTop[0])?.size ?? 0) < 2;
67
+ return firstOptional && always <= 1;
68
+ }
69
+
70
+ /**
71
+ * GATE space-between-optional-lead: a Row / Column / Flex distributing its children with FlexAlign.SpaceBetween whose
72
+ * first child sits in an if, so a later child can end up alone and slide to the start. `// SPACE-BETWEEN: <basis>`
73
+ * within three lines above the container downgrades to CAND.
74
+ */
75
+ export function checkSpaceBetweenOptionalLead(fctx: FileCtx): void {
76
+ const { rel, code, rawLines } = fctx;
77
+ if (!/FlexAlign\.SpaceBetween/.test(code)) { return; }
78
+ const masked: string = maskStrings(code);
79
+ const seen: Set<number> = new Set();
80
+ const judge = (name: string, start: number, paren: number): void => {
81
+ if (!CONTAINERS.has(name) || seen.has(start)) { return; }
82
+ seen.add(start);
83
+ const block: [number, number] | null = childBlock(code, paren);
84
+ if (block === null) { return; }
85
+ const kids: UiChild[] = directUiChildren(code, block[0], block[1], undefined, { intoBranches: true });
86
+ if (!leadCanVanishLeavingOne(kids)) { return; }
87
+ const line: number = lineOfIndex(code, start);
88
+ const msg: string = `${name} distributes its children with FlexAlign.SpaceBetween, but its first child is inside an if: ` +
89
+ 'when the condition is false at most one child remains, and SpaceBetween puts a single child at the start, so the ' +
90
+ 'trailing slot (e.g. top-bar actions) jumps from the end to the start. Lay it out as slots: leading slot, ' +
91
+ 'Blank().layoutWeight(1), trailing slot; or keep a fixed-width placeholder in an else branch';
92
+ if (markedAbove(rawLines, line, 'SPACE-BETWEEN')) {
93
+ report('CAND', 'space-between-optional-lead', rel, line, `${msg}; marked SPACE-BETWEEN — confirm the single child belongs at the start`);
94
+ return;
95
+ }
96
+ report('GATE', 'space-between-optional-lead', rel, line,
97
+ `${msg}. If a lone child really belongs at the start, write // SPACE-BETWEEN: <basis> above the container`);
98
+ };
99
+ // .justifyContent(FlexAlign.SpaceBetween) on a Row / Column / Flex chain
100
+ for (const m of masked.matchAll(/\.justifyContent\s*\(/g)) {
101
+ const dot: number = m.index ?? 0;
102
+ const open: number = dot + m[0].length - 1;
103
+ const close: number = matchBracket(code, open);
104
+ if (close < 0 || !/^\s*FlexAlign\.SpaceBetween\s*$/.test(code.slice(open + 1, close))) { continue; }
105
+ const head = chainHead(masked, dot);
106
+ if (head !== null) { judge(head.name, head.start, head.paren); }
107
+ }
108
+ // Flex({ justifyContent: FlexAlign.SpaceBetween, … })
109
+ for (const m of masked.matchAll(/\bFlex\s*\(/g)) {
110
+ const paren: number = (m.index ?? 0) + m[0].length - 1;
111
+ const close: number = matchBracket(code, paren);
112
+ if (close < 0 || !/\bjustifyContent\s*:\s*FlexAlign\.SpaceBetween\b/.test(code.slice(paren + 1, close))) { continue; }
113
+ judge('Flex', m.index ?? 0, paren);
114
+ }
115
+ }
@@ -16,7 +16,7 @@ export const meta: RuleMeta[] = [
16
16
  invariant: "appearance",
17
17
  card: "resources",
18
18
  needs: ["shell-plan"],
19
- summary: "外壳契约 theme.mode 不是 static(安卓有深色方案或运行时主题色)时,.ets 里出现 `'#…'` 颜色字面量,或颜色属性实参是 `Color.White` / `Color.Black` 等固定枚举。",
19
+ summary: "外壳契约 theme.mode 不是 static(安卓有深色方案或运行时主题色)时,.ets 里出现 `'#…'` / `'rgb(…)'` / `'rgba(…)'` 颜色字面量(alpha 为 0 的除外),或颜色属性实参是 `Color.White` / `Color.Black` 等固定枚举。",
20
20
  fix: "改成 `$r('app.color.<name>')`,同名定义在 base 与 dark 两份 color.json(dark 值引安卓深色方案 / values-night 的行号),经 registry_requests 的 `color` / `dark_color` 提交;契约 `theme.runtime_slots` 里的运行时主题色不用 `$r`,从 `theme.state_module` 的可观测主题状态经 getter 读取(GATE `theme-runtime-color-static`)。两套安卓方案里取值相同的颜色在上方写 `// THEME-FIXED: <两处方案行号>`(降为 CAND)。",
21
21
  escape: "// THEME-FIXED:",
22
22
  cases: [
@@ -51,6 +51,8 @@ export const meta: RuleMeta[] = [
51
51
 
52
52
  const HEX: RegExp = /(['"])#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})\1/g;
53
53
  const FIXED_ENUM: RegExp = /\bColor\.(White|Black|Gray|Grey)\b/g;
54
+ /** 'rgb(…)' / 'rgba(…)' strings; group 2 = the alpha argument (undefined for rgb). */
55
+ const RGBA: RegExp = /(['"])rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(?:,\s*([\d.]+%?)\s*)?\)\1/g;
54
56
 
55
57
  /** Fully transparent: '#0000', '#00RRGGBB'. */
56
58
  function transparent(hex: string): boolean {
@@ -146,6 +148,10 @@ export function checkThemeColors(scans: FileScan[], hometransDir: string): void
146
148
  if (/^[0-9]+$/.test(m[2]) && m[2].length <= 4 && !COLOR_ARG.test(before(i, m.index ?? 0))) { continue; }
147
149
  found.push(m[0]);
148
150
  }
151
+ for (const m of ln.matchAll(RGBA)) {
152
+ if (m[2] !== undefined && parseFloat(m[2]) === 0) { continue; }
153
+ found.push(m[0]);
154
+ }
149
155
  for (const m of ln.matchAll(FIXED_ENUM)) {
150
156
  if (COLOR_ARG.test(before(i, m.index ?? 0))) { found.push(m[0]); }
151
157
  }
@@ -0,0 +1,160 @@
1
+ // static_check/rules/width_fill.ts — GATE/CAND pct-size-in-hugging-or-scroll-parent.
2
+ //
3
+ // The width-axis sibling of percent_height_in_scroll. Two families of the same mistranslation, where a
4
+ // child's percentage width resolves against a parent that cannot supply a bounded width:
5
+ // - Family 1 (GATE): the .width('%') reaches a HORIZONTAL scroll container with no definite width in between.
6
+ // A horizontal scroller leaves its main axis unbounded, so the percentage resolves against the viewport and the
7
+ // first item fills the whole row, pushing the rest off-screen (CoolMall order-list tabs: only "全部" shows).
8
+ // - Family 2 (CAND): the .width('%') is a direct child of a Stack that has no definite width. If the Stack is meant
9
+ // to hug its content (a chip / segmented tab), a '100%' background/selected layer forces the Stack to the parent's
10
+ // full width instead. This is Compose `Modifier.matchParentSize()` mistranslated to `.width('100%')` (CoolMall
11
+ // "综合" segmented tab, 筛选 category chips). Correct译法 is in the mapping table §6.2.
12
+
13
+ import { report } from '../core/findings.ts';
14
+ import { definiteOnAxis, lineOfIndex, markedAbove } from '../core/parse.ts';
15
+ import type { UiAttr } from '../core/parse.ts';
16
+ import { RE_PCT, SCROLLERS, ancestorsOf, maskedOf, ownerStart, walkUp } from '../core/scan.ts';
17
+ import type { FileScan, Visit } from '../core/scan.ts';
18
+ import type { RuleMeta } from '../core/meta.ts';
19
+
20
+ /** Rule metadata (rendered by scripts/gen_rule_docs.mjs). */
21
+ export const meta: RuleMeta[] = [
22
+ {
23
+ id: "pct-size-in-hugging-or-scroll-parent",
24
+ levels: ["GATE", "CAND"],
25
+ invariant: "geometry",
26
+ card: "geometry",
27
+ needs: [],
28
+ summary: "`.width('100%')` 往上直到横向 Scroll/List/Grid/WaterFlow(分页滚动 `enablePaging(true)` / `scrollSnapAlign` 除外),中间没有确定宽度(GATE);或它在一个**空体**背景/选中层(`Column() {}` 等)上、而该层的直接父是没有确定宽度的 `Stack`(CAND:`'100%'` 背景层撑破 Stack 的内容自适应)。",
29
+ fix: "横向滚动里的子项按内容定宽:去掉主轴 `.width('100%')` / `layoutWeight`,宽度来自内容或 `constraintSize.minWidth`。收缩 `Stack` 里的选中态 / alpha 背景层不要用 `.width('100%')` 子层(它会反过来把 Stack 撑满):把选中色烘进颜色直接画在内容撑开的容器上,或用 `.overlay(@Builder)`(builder 根 `width/height('100%')` + 背景 + `hitTestBehavior(HitTestMode.Transparent)`)。源构造是 Compose `Modifier.matchParentSize()` 时见映射表 §6.2(`matchParentSize()` 跟随父尺寸、不驱动,绝不译 `.width('100%')` 背景子层)。确属有意满宽时在该行上方写 `// WIDTH-FILL: <依据>`:横向滚动场景降为 CAND,Stack 背景层场景不再报。",
30
+ escape: "// WIDTH-FILL:",
31
+ cases: [
32
+ "实测(CoolMall 订单列表 OrderTabButton):内层 Stack `.width('100%')` 放进横向 Scroll,首个「全部」tab 吃满整行,其余 6 个 tab 挤出屏外,滚动条 Off 故只见「全部」。",
33
+ "实测(CoolMall 搜索结果「综合」分段 tab / 筛选页分类 chip):Compose `Modifier.matchParentSize()` 选中态背景层译成 `.width('100%')` 放进内容收缩的 Stack,chip/tab 被撑满整行、单栏铺满。",
34
+ ],
35
+ },
36
+ ];
37
+
38
+ /** Weight attrs do not supply a definite width: weight divides the parent's main axis, which inside a horizontal scroll is unbounded. */
39
+ export const WEIGHT_ATTRS: Set<string> = new Set<string>(['layoutWeight', 'flexGrow', 'flexBasis']);
40
+
41
+ /** Layout containers whose empty-body form is a background/overlay layer rather than a content holder. */
42
+ const CONTAINERS: Set<string> = new Set<string>(['Column', 'Row', 'Stack', 'Flex', 'RelativeContainer']);
43
+
44
+ /**
45
+ * Whether the attribute owner at `start` is a container with an **empty body** — i.e. a background / selected-state layer
46
+ * (`Column() {}` / `Row() {}` …), not a content holder. This is the signature of a mistranslated Compose
47
+ * `Modifier.matchParentSize()` background layer, and excludes full-bleed images, form fields and page-root columns that
48
+ * legitimately carry `.width('100%')`. masked (strings/comments neutralised) is used for brace matching; code (same length) for the name.
49
+ */
50
+ function childlessContainerOwner(code: string, masked: string, start: number): boolean {
51
+ let i: number = start;
52
+ while (i < masked.length && /[\w$]/.test(masked[i])) { i++; }
53
+ if (!CONTAINERS.has(code.slice(start, i))) { return false; }
54
+ while (i < masked.length && /\s/.test(masked[i])) { i++; }
55
+ if (masked[i] === '(') {
56
+ let d: number = 0;
57
+ for (; i < masked.length; i++) {
58
+ if (masked[i] === '(') { d++; } else if (masked[i] === ')') { d--; if (d === 0) { i++; break; } }
59
+ }
60
+ }
61
+ while (i < masked.length && /\s/.test(masked[i])) { i++; }
62
+ if (masked[i] !== '{') { return true; } // no body block → childless container
63
+ let d: number = 0;
64
+ const bodyOpen: number = i;
65
+ for (; i < masked.length; i++) {
66
+ if (masked[i] === '{') { d++; } else if (masked[i] === '}') { d--; if (d === 0) { break; } }
67
+ }
68
+ return masked.slice(bodyOpen + 1, i).trim() === ''; // body is whitespace-only → childless
69
+ }
70
+
71
+ /**
72
+ * This layer has a definite width: explicit width / size / aspectRatio per definiteOnAxis, plus the constraintSize maxWidth cap.
73
+ * A percentage width does not count (it is itself what is being checked). Weight attrs do not count (see WEIGHT_ATTRS).
74
+ * flexBasis only counts when the parent is a Row (main axis horizontal); a Flex is left out because its direction is not known
75
+ * from the name alone. parent = '' when unknown.
76
+ */
77
+ export function definiteWidth(attrs: UiAttr[], parent: string): boolean {
78
+ const own: UiAttr[] = attrs.filter((a) => !WEIGHT_ATTRS.has(a.name) && !(a.name === 'width' && RE_PCT.test(a.args)));
79
+ return definiteOnAxis(own, 'width') ||
80
+ attrs.some((a) => a.name === 'constraintSize' && /\bmaxWidth\s*:/.test(a.args)) ||
81
+ (parent === 'Row' && attrs.some((a) => a.name === 'flexBasis' && !RE_PCT.test(a.args)));
82
+ }
83
+
84
+ /**
85
+ * A paging scroller (Scroll.enablePaging(true), or List/Grid/WaterFlow/Scroll with a scrollSnapAlign other than NONE):
86
+ * one item per viewport is the intent, so a '100%' item width is correct there.
87
+ */
88
+ function pagingScroller(attrs: UiAttr[]): boolean {
89
+ return attrs.some((a) => (a.name === 'enablePaging' && /\btrue\b/.test(a.args)) ||
90
+ (a.name === 'scrollSnapAlign' && !/\bNONE\b/.test(a.args)));
91
+ }
92
+
93
+ /**
94
+ * Whether this scroll container scrolls horizontally (the mirror of verticalScroller, but excluding the no-scroll cases):
95
+ * Scroll with scrollable(Horizontal); List with listDirection(Axis.Horizontal); Grid with rowsTemplate set and columnsTemplate not
96
+ * (rows alone = horizontal, both = no scroll); WaterFlow with layoutDirection(FlexDirection.Row*).
97
+ */
98
+ function horizontalScroller(name: string, attrs: UiAttr[]): boolean {
99
+ const has = (n: string, re?: RegExp): boolean => attrs.some((a) => a.name === n && (re === undefined || re.test(a.args)));
100
+ switch (name) {
101
+ case 'Scroll': return has('scrollable', /\bHorizontal\b/);
102
+ case 'List': return has('listDirection', /\bHorizontal\b/);
103
+ case 'Grid': return has('rowsTemplate') && !has('columnsTemplate');
104
+ case 'WaterFlow': return has('layoutDirection', /\bFlexDirection\.Row/);
105
+ default: return false;
106
+ }
107
+ }
108
+
109
+ /**
110
+ * GATE/CAND pct-size-in-hugging-or-scroll-parent — a percentage width that cannot resolve against a bounded parent width.
111
+ * Family 1 (GATE; CAND when marked WIDTH-FILL): a '100%' width walks up to a horizontal, non-paging scroll container with no definite width in between.
112
+ * Family 2 (CAND): the immediate component parent is a Stack with no definite width (a '100%' background layer defeats content-hug).
113
+ */
114
+ export function checkPctSizeInHuggingOrScrollParent(scans: FileScan[]): void {
115
+ const visit: Visit = (a, parent) => {
116
+ if (SCROLLERS.has(a.name)) { return horizontalScroller(a.name, a.attrs) && !pagingScroller(a.attrs) ? 'hit' : 'stop'; }
117
+ return definiteWidth(a.attrs, parent) ? 'stop' : 'continue';
118
+ };
119
+ const re: RegExp = /\.width\(\s*(['"])\d+(?:\.\d+)?%\1\s*\)/g;
120
+ for (const s of scans) {
121
+ const masked: string = maskedOf(s);
122
+ const srcLines: string[] = s.src.split('\n');
123
+ re.lastIndex = 0;
124
+ let m: RegExpExecArray | null;
125
+ while ((m = re.exec(s.code)) !== null) {
126
+ const start: number = ownerStart(masked, m.index);
127
+ if (start < 0) { continue; }
128
+ const line: number = lineOfIndex(s.code, m.index);
129
+ const marked: boolean = markedAbove(srcLines, line, 'WIDTH-FILL');
130
+ // Family 1 (GATE): a '100%' width reaches a horizontal (non-paging) scroll container with no definite width on any
131
+ // level above it. Only '100%': a smaller fraction ('50%' = two cards per screen) is a deliberate viewport share.
132
+ const hits: string[][] = [];
133
+ if (/(['"])100(?:\.0+)?%\1/.test(m[0])) { walkUp(scans, s, start, visit, [], hits, new Set()); }
134
+ if (hits.length > 0) {
135
+ report(marked ? 'CAND' : 'GATE', 'pct-size-in-hugging-or-scroll-parent', s.rel, line,
136
+ `percentage width inside a horizontal scroll container with no definite width on any level above it (${[...hits[0]].reverse().join(' > ')}) — ` +
137
+ 'a horizontal scroll container leaves its main axis unbounded, so the percentage resolves against the scroll viewport and the first item fills the whole row, ' +
138
+ "pushing the rest off-screen. Size scroll items to their content (drop main-axis .width('100%') / layoutWeight; use constraintSize.minWidth for a floor)" +
139
+ (marked ? '; marked WIDTH-FILL — confirm the full-width item is intended' : '. Intentional full width: write // WIDTH-FILL: <basis> above this line'));
140
+ continue;
141
+ }
142
+ // Family 2 (CAND): a childless background layer sized '100%' whose immediate parent is a Stack with no definite width.
143
+ if (marked) { continue; }
144
+ if (!childlessContainerOwner(s.code, masked, start)) { continue; }
145
+ const parent = ancestorsOf(s.code, masked, start).find((x) => x.kind === 'comp');
146
+ // A Stack that writes any width itself — including a percentage — is sized by its parent, not hugging its content,
147
+ // so the '100%' layer just fills it (definiteWidth drops percentages because it judges the item being checked).
148
+ const parentSetsWidth = (attrs: UiAttr[]): boolean => definiteWidth(attrs, '') ||
149
+ attrs.some((a) => a.name === 'width' || (a.name === 'size' && /\bwidth\s*:/.test(a.args)));
150
+ if (parent !== undefined && parent.kind === 'comp' && parent.name === 'Stack' && !parentSetsWidth(parent.attrs)) {
151
+ report('CAND', 'pct-size-in-hugging-or-scroll-parent', s.rel, line,
152
+ "percentage width on a direct child of a Stack that has no definite width — if the Stack is meant to hug its content (a chip / segmented tab), " +
153
+ "a width:'100%' layer forces the Stack to the parent's full width instead (single-column, every item full-width). " +
154
+ 'If this is a Compose Modifier.matchParentSize() background / selected-state layer, bake the fill into a colour on the content-sized container ' +
155
+ 'or use .overlay(@Builder) (see mapping §6.2); if the Stack is really meant to be full width, set the width on the Stack itself. ' +
156
+ 'Intentional full width: write // WIDTH-FILL: <basis> above this line');
157
+ }
158
+ }
159
+ }
160
+ }
@@ -13,10 +13,16 @@ import { checkColumnShrinkChild } from './rules/column_shrink.ts';
13
13
  import { checkConstantCoordinate } from './rules/constant_coordinate.ts';
14
14
  import { checkContainerAlign } from './rules/container_align.ts';
15
15
  import { checkLayoutPlacement } from './rules/layout_placement.ts';
16
+ import { checkLottieReady } from './rules/lottie_ready.ts';
17
+ import { checkLottiePath } from './rules/lottie_path.ts';
18
+ import { checkFlowItemCrossSize } from './rules/flowitem_width.ts';
19
+ import { checkSpaceBetweenOptionalLead } from './rules/space_between_optional.ts';
20
+ import { checkCollapsingToolbar } from './rules/collapsing_toolbar.ts';
16
21
  import { collectTintedMedia } from './rules/media_tint.ts';
17
22
  import { checkDialogBackboardDefault } from './rules/dialog_backboard.ts';
18
23
  import { checkImageSourceTypedArray } from './rules/image_source.ts';
19
24
  import { checkMultipleOverlayBinds } from './rules/overlay_binds.ts';
25
+ import { checkSheetBuilder } from './rules/sheet_builder.ts';
20
26
  import { checkOverlayStringColor } from './rules/overlay_string.ts';
21
27
  import { checkSwiperIndexUnbound } from './rules/swiper_index.ts';
22
28
  import { checkPaddingConsumesFixedSize } from './rules/padding_in_size.ts';
@@ -29,6 +35,7 @@ import { checkScrollAlign } from './rules/scroll_align.ts';
29
35
  import { checkScrollDeltaAsOffset } from './rules/scroll_delta.ts';
30
36
  import { checkSdkApis } from './rules/sdk_api.ts';
31
37
  import { checkSheetBlurBackground } from './rules/sheet_blur.ts';
38
+ import { checkSheetShowClose } from './rules/sheet_show_close.ts';
32
39
  import { checkStateDecorators } from './rules/state_decorators.ts';
33
40
  import { checkStateNameShadows } from './rules/state_name_shadows.ts';
34
41
  import { checkTrackGetter } from './rules/track_getter.ts';
@@ -66,6 +73,21 @@ export function checkFile(file: string, rel: string): FileScan {
66
73
 
67
74
  checkAttrChains(fctx);
68
75
 
76
+ // ---- GATE lottie-load-before-canvas-ready (see checkLottieReady)
77
+ checkLottieReady(fctx);
78
+
79
+ // ---- GATE lottie-path-not-ets (see checkLottiePath)
80
+ checkLottiePath(fctx);
81
+
82
+ // ---- GATE flowitem-no-cross-size (see checkFlowItemCrossSize)
83
+ checkFlowItemCrossSize(fctx);
84
+
85
+ // ---- GATE space-between-optional-lead (see checkSpaceBetweenOptionalLead)
86
+ checkSpaceBetweenOptionalLead(fctx);
87
+
88
+ // ---- CAND collapsing-toolbar-not-nested-scroll (see checkCollapsingToolbar)
89
+ checkCollapsingToolbar(fctx);
90
+
69
91
  checkConstantCoordinate(fctx);
70
92
 
71
93
  checkStateNameShadows(fctx);
@@ -75,9 +97,15 @@ export function checkFile(file: string, rel: string): FileScan {
75
97
  // ---- CAND sheet-blur-under-opaque-bg (see checkSheetBlurBackground)
76
98
  checkSheetBlurBackground(code, rel);
77
99
 
100
+ // ---- GATE sheet-show-close-unset (see checkSheetShowClose)
101
+ checkSheetShowClose(fctx);
102
+
78
103
  // ---- GATE multiple-overlay-binds-same-node (see checkMultipleOverlayBinds)
79
104
  checkMultipleOverlayBinds(fctx);
80
105
 
106
+ // ---- GATE overlay-builder-arrow-arg / sheet-isshow-no-writeback (see checkSheetBuilder)
107
+ checkSheetBuilder(fctx);
108
+
81
109
  // ---- GATE overlay-string-color / image-source-typed-array / swiper-index-unbound / dialog-backboard-default
82
110
  checkOverlayStringColor(fctx);
83
111
  checkImageSourceTypedArray(fctx);