@buaa_smat/hometrans 26.0.3 → 26.0.4-devecocli.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (780) hide show
  1. package/agents/code-reviewer.md +91 -21
  2. package/devecocli-plugin/common.ts +2271 -0
  3. package/devecocli-plugin/content-resolver.ts +363 -0
  4. package/devecocli-plugin/install.ts +72 -0
  5. package/devecocli-plugin/uninstall.ts +26 -0
  6. package/devecocli-plugin/update.ts +77 -0
  7. package/i18n/agents/code-reviewer.md +93 -21
  8. package/i18n/skills/a2h-app-migrate/SKILL.md +19 -11
  9. package/i18n/skills/a2h-app-migrate/references/feature-scope.md +121 -0
  10. package/i18n/skills/a2h-app-migrate/references/stage-map.md +2 -2
  11. package/i18n/skills/a2h-app-migrate/references/workflow.yaml +320 -73
  12. package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -5
  13. package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +79 -11
  14. package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +75 -4
  15. package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +12 -0
  16. package/i18n/skills/a2h-app-migrate/test/test_env_requirements.mjs +25 -10
  17. package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +35 -7
  18. package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +52 -0
  19. package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +26 -0
  20. package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +36 -0
  21. package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +71 -7
  22. package/i18n/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +117 -0
  23. package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +7 -3
  24. package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +38 -2
  25. package/i18n/skills/a2h-arch-generate/SKILL.md +20 -17
  26. package/i18n/skills/a2h-arch-generate/references/database-schema-recovery.md +2 -2
  27. package/i18n/skills/a2h-arch-generate/references/harmony-project-inspection.md +8 -8
  28. package/i18n/skills/a2h-arch-generate/references/homegraph-workflow.md +25 -14
  29. package/i18n/skills/a2h-arch-generate/references/source-baseline.md +4 -4
  30. package/i18n/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +3 -3
  31. package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +304 -0
  32. package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -1
  33. package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +59 -2
  34. package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +52 -11
  35. package/i18n/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +328 -38
  36. package/i18n/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +245 -0
  37. package/i18n/skills/a2h-batch-ui-align/SKILL.md +70 -21
  38. package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
  39. package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +5 -0
  40. package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
  41. package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +6 -4
  42. package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +5 -0
  43. package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
  44. package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +236 -11
  45. package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +8 -5
  46. package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
  47. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -4
  48. package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
  49. package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +31 -0
  50. package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +22 -6
  51. package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +3 -0
  52. package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +26 -4
  53. package/i18n/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
  54. package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +386 -16
  55. package/i18n/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +19 -1
  56. package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +134 -11
  57. package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
  58. package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +231 -5
  59. package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +82 -8
  60. package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +21 -7
  61. package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
  62. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +48 -5
  63. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
  64. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +1 -19
  65. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
  66. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
  67. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
  68. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
  69. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
  70. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
  71. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
  72. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +45 -11
  73. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
  74. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
  75. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +60 -0
  76. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
  77. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
  78. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
  79. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
  80. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
  81. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
  82. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +63 -2
  83. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
  84. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
  85. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
  86. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +224 -0
  87. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
  88. package/i18n/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
  89. package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +133 -0
  90. package/i18n/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +5 -3
  91. package/i18n/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +33 -2
  92. package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +12 -0
  93. package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +8 -0
  94. package/i18n/skills/a2h-coldstart-smoke-gate/SKILL.md +7 -4
  95. package/i18n/skills/a2h-dashboard-render/scripts/device_capture.mjs +11 -9
  96. package/i18n/skills/a2h-module-semantic-docs/SKILL.md +51 -13
  97. package/i18n/skills/a2h-page-specgen/SKILL.md +123 -20
  98. package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +1174 -0
  99. package/i18n/skills/a2h-page-specgen/references/body-language.md +11 -9
  100. package/i18n/skills/a2h-page-specgen/references/gates.md +119 -52
  101. package/i18n/skills/a2h-page-specgen/references/page-inventory.md +69 -22
  102. package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +274 -0
  103. package/i18n/skills/a2h-page-specgen/references/spec-example.md +312 -0
  104. package/i18n/skills/a2h-page-specgen/references/spec-template.md +113 -110
  105. package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
  106. package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
  107. package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
  108. package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
  109. package/i18n/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
  110. package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +171 -62
  111. package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +314 -192
  112. package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +364 -76
  113. package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +216 -8
  114. package/i18n/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
  115. package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +116 -223
  116. package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
  117. package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +521 -13
  118. package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
  119. package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
  120. package/i18n/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
  121. package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +12 -8
  122. package/i18n/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
  123. package/i18n/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -0
  124. package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
  125. package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +483 -125
  126. package/i18n/skills/a2h-page-specgen/scripts/render.mjs +10 -33
  127. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +288 -7
  128. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +25 -0
  129. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +373 -0
  130. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +300 -0
  131. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +47 -0
  132. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +373 -0
  133. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +300 -0
  134. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
  135. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
  136. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
  137. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +373 -0
  138. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
  139. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +267 -0
  140. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +57 -0
  141. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +373 -0
  142. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +300 -0
  143. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
  144. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
  145. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
  146. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
  147. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
  148. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +553 -0
  149. package/i18n/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
  150. package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
  151. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +546 -0
  152. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +655 -0
  153. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1234 -0
  154. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +520 -0
  155. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1516 -0
  156. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +759 -0
  157. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +630 -0
  158. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +118 -0
  159. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +798 -0
  160. package/i18n/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +886 -0
  161. package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +134 -163
  162. package/i18n/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
  163. package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +40 -1
  164. package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +206 -9
  165. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
  166. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
  167. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
  168. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
  169. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
  170. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
  171. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
  172. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
  173. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
  174. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
  175. package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
  176. package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +459 -188
  177. package/i18n/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +89 -0
  178. package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +862 -12
  179. package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
  180. package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +139 -5
  181. package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +378 -0
  182. package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
  183. package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
  184. package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +69 -2
  185. package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +267 -2
  186. package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +111 -0
  187. package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +10 -8
  188. package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
  189. package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +143 -51
  190. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
  191. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
  192. package/i18n/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
  193. package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +166 -3
  194. package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +13 -5
  195. package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -0
  196. package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +102 -7
  197. package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1308 -72
  198. package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +69 -44
  199. package/i18n/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
  200. package/i18n/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
  201. package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +658 -120
  202. package/i18n/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
  203. package/i18n/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
  204. package/i18n/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +101 -65
  205. package/i18n/skills/a2h-resource-convert/SKILL.md +9 -1
  206. package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
  207. package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
  208. package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
  209. package/i18n/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
  210. package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +67 -3
  211. package/i18n/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
  212. package/i18n/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
  213. package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +69 -109
  214. package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +135 -37
  215. package/i18n/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +307 -0
  216. package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +103 -0
  217. package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +126 -23
  218. package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
  219. package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +71 -0
  220. package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +24 -13
  221. package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +246 -0
  222. package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +170 -7
  223. package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
  224. package/i18n/skills/a2h-spec-generate/SKILL.md +2 -2
  225. package/i18n/skills/a2h-utg-explorer/SKILL.md +9 -3
  226. package/i18n/skills/a2h-utg-explorer/references/architecture.md +3 -0
  227. package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +74 -84
  228. package/i18n/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
  229. package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
  230. package/i18n/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
  231. package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +252 -0
  232. package/i18n/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
  233. package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +122 -0
  234. package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +15 -0
  235. package/i18n/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
  236. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
  237. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
  238. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +211 -61
  239. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
  240. package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +724 -47
  241. package/i18n/skills/a2h-utg-static/SKILL.md +6 -2
  242. package/i18n/skills/a2h-utg-static/scripts/assemble.mjs +82 -12
  243. package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +116 -5
  244. package/i18n/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
  245. package/i18n/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
  246. package/i18n/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
  247. package/i18n/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
  248. package/i18n/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
  249. package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +50 -5
  250. package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
  251. package/i18n/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
  252. package/i18n/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
  253. package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +32 -4
  254. package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +17 -0
  255. package/i18n/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
  256. package/i18n/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +113 -0
  257. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
  258. package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +181 -17
  259. package/i18n/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
  260. package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
  261. package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +118 -19
  262. package/i18n/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
  263. package/i18n/skills/a2h-utg-static/scripts/uniapp_nav.mjs +113 -70
  264. package/index.js +1643 -0
  265. package/package.json +10 -13
  266. package/plugin.jsonc +12 -0
  267. package/skills/a2h-app-migrate/SKILL.md +19 -11
  268. package/skills/a2h-app-migrate/references/feature-scope.md +121 -0
  269. package/skills/a2h-app-migrate/references/stage-map.md +2 -2
  270. package/skills/a2h-app-migrate/references/workflow.yaml +307 -74
  271. package/skills/a2h-app-migrate/scripts/android_index.mjs +35 -8
  272. package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +39 -1
  273. package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -5
  274. package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +144 -9
  275. package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +14 -1
  276. package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +46 -5
  277. package/skills/a2h-app-migrate/scripts/diagnose.mjs +162 -0
  278. package/skills/a2h-app-migrate/scripts/env_preflight.mjs +79 -11
  279. package/skills/a2h-app-migrate/scripts/feature_scope.mjs +347 -0
  280. package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +75 -4
  281. package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +17 -1
  282. package/skills/a2h-app-migrate/scripts/ledger.mjs +64 -6
  283. package/skills/a2h-app-migrate/scripts/migration_manifest.mjs +351 -0
  284. package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +9 -23
  285. package/skills/a2h-app-migrate/scripts/resume_plan.mjs +33 -9
  286. package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +33 -1
  287. package/skills/a2h-app-migrate/scripts/run_dir.mjs +27 -17
  288. package/skills/a2h-app-migrate/scripts/scope_model.mjs +255 -0
  289. package/skills/a2h-app-migrate/scripts/scope_report.mjs +128 -0
  290. package/skills/a2h-app-migrate/scripts/source_fp.mjs +120 -0
  291. package/skills/a2h-app-migrate/test/test_android_index.mjs +12 -0
  292. package/skills/a2h-app-migrate/test/test_env_requirements.mjs +25 -10
  293. package/skills/a2h-app-migrate/test/test_feature_scope.mjs +217 -0
  294. package/skills/a2h-app-migrate/test/test_finalize.mjs +35 -7
  295. package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +7 -7
  296. package/skills/a2h-app-migrate/test/test_incremental_acceptance.mjs +145 -0
  297. package/skills/a2h-app-migrate/test/test_incremental_phase2.mjs +223 -0
  298. package/skills/a2h-app-migrate/test/test_incremental_phase2_acceptance.mjs +157 -0
  299. package/skills/a2h-app-migrate/test/test_incremental_profile.mjs +84 -0
  300. package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +10 -0
  301. package/skills/a2h-app-migrate/test/test_json_io.mjs +1 -1
  302. package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +39 -0
  303. package/skills/a2h-app-migrate/test/test_migration_manifest.mjs +225 -0
  304. package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +33 -0
  305. package/skills/a2h-app-migrate/test/test_resume_plan.mjs +52 -0
  306. package/skills/a2h-app-migrate/test/test_resume_summary.mjs +26 -0
  307. package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +36 -0
  308. package/skills/a2h-app-migrate/test/test_run_dir.mjs +71 -7
  309. package/skills/a2h-app-migrate/test/test_scope_model.mjs +172 -0
  310. package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +13 -5
  311. package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +117 -0
  312. package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +7 -3
  313. package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +170 -3
  314. package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
  315. package/skills/a2h-app-migrate/test/test_ui_batch_capture_audit.mjs +106 -0
  316. package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +12 -0
  317. package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +38 -2
  318. package/skills/a2h-arch-generate/SKILL.md +20 -17
  319. package/skills/a2h-arch-generate/references/homegraph-workflow.md +10 -8
  320. package/skills/a2h-arch-generate/references/source-baseline.md +2 -2
  321. package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +34 -3
  322. package/skills/a2h-arch-generate/scripts/create_project.mjs +24 -1
  323. package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +29 -5
  324. package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +3 -3
  325. package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +17 -0
  326. package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +26 -0
  327. package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +4 -2
  328. package/skills/a2h-arkts-logic-coder/SKILL.md +146 -17
  329. package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -1
  330. package/skills/a2h-arkts-logic-coder/references/code-generation.md +59 -2
  331. package/skills/a2h-arkts-logic-coder/references/spec-design.md +42 -11
  332. package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +328 -38
  333. package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +244 -0
  334. package/skills/a2h-batch-ui-align/SKILL.md +72 -22
  335. package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +16 -2
  336. package/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
  337. package/skills/a2h-batch-ui-align/references/cards/geometry.md +5 -0
  338. package/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
  339. package/skills/a2h-batch-ui-align/references/cards/resources.md +6 -4
  340. package/skills/a2h-batch-ui-align/references/cards/widgets.md +5 -0
  341. package/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
  342. package/skills/a2h-batch-ui-align/references/checker-rules.md +236 -11
  343. package/skills/a2h-batch-ui-align/references/conversion-procedure.md +8 -5
  344. package/skills/a2h-batch-ui-align/references/host-dispatch.md +2 -0
  345. package/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
  346. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -4
  347. package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
  348. package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +30 -0
  349. package/skills/a2h-batch-ui-align/references/step3-capture.md +25 -6
  350. package/skills/a2h-batch-ui-align/references/step4-prepare.md +3 -0
  351. package/skills/a2h-batch-ui-align/references/step5-convert.md +26 -4
  352. package/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
  353. package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +380 -16
  354. package/skills/a2h-batch-ui-align/scripts/capture_audit.mjs +474 -0
  355. package/skills/a2h-batch-ui-align/scripts/capture_fast.mjs +665 -0
  356. package/skills/a2h-batch-ui-align/scripts/capture_verify.mjs +552 -0
  357. package/skills/a2h-batch-ui-align/scripts/detach.mjs +5 -2
  358. package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +39 -5
  359. package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +19 -1
  360. package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +134 -11
  361. package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +213 -30
  362. package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
  363. package/skills/a2h-batch-ui-align/scripts/list_existing.mjs +141 -0
  364. package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +231 -5
  365. package/skills/a2h-batch-ui-align/scripts/page_gap.mjs +210 -0
  366. package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +82 -8
  367. package/skills/a2h-batch-ui-align/scripts/progress_identity.mjs +208 -0
  368. package/skills/a2h-batch-ui-align/scripts/scroll_verdict.mjs +62 -0
  369. package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +21 -7
  370. package/skills/a2h-batch-ui-align/scripts/shell_requests.mjs +273 -0
  371. package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
  372. package/skills/a2h-batch-ui-align/scripts/static_check/core/baseline.ts +79 -0
  373. package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +90 -2
  374. package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +44 -0
  375. package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +48 -5
  376. package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +24 -0
  377. package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
  378. package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +1 -19
  379. package/skills/a2h-batch-ui-align/scripts/static_check/rules/dialog_backboard.ts +91 -0
  380. package/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
  381. package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +339 -0
  382. package/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
  383. package/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
  384. package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
  385. package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
  386. package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +45 -11
  387. package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
  388. package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
  389. package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +60 -0
  390. package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
  391. package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +102 -0
  392. package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
  393. package/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
  394. package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
  395. package/skills/a2h-batch-ui-align/scripts/static_check/rules/swiper_index.ts +65 -0
  396. package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +63 -2
  397. package/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
  398. package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
  399. package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +24 -2
  400. package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +14 -0
  401. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_baseline.test.mjs +129 -0
  402. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_coolmall_runtime2.test.mjs +697 -0
  403. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +298 -0
  404. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
  405. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +224 -0
  406. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_lottie.test.mjs +199 -0
  407. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +41 -7
  408. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +346 -0
  409. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme_runtime.test.mjs +95 -0
  410. package/skills/a2h-batch-ui-align/scripts/tests/branch_coverage.test.mjs +116 -0
  411. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +126 -0
  412. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +1 -0
  413. package/skills/a2h-batch-ui-align/scripts/tests/capture_audit.test.mjs +179 -0
  414. package/skills/a2h-batch-ui-align/scripts/tests/capture_fast.test.mjs +56 -0
  415. package/skills/a2h-batch-ui-align/scripts/tests/capture_gate.test.mjs +197 -0
  416. package/skills/a2h-batch-ui-align/scripts/tests/capture_review_fixes.test.mjs +322 -0
  417. package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +19 -0
  418. package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +15 -0
  419. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/SearchMenuDialog.buggy.ets +95 -0
  420. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/meta.json +21 -0
  421. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/screenshot.png +0 -0
  422. package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/view.xml +35 -0
  423. package/skills/a2h-batch-ui-align/scripts/tests/group_pack_evidence.test.mjs +95 -0
  424. package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +155 -1
  425. package/skills/a2h-batch-ui-align/scripts/tests/icon_coverage.test.mjs +314 -0
  426. package/skills/a2h-batch-ui-align/scripts/tests/list_existing.test.mjs +157 -0
  427. package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +5 -3
  428. package/skills/a2h-batch-ui-align/scripts/tests/page_gap.test.mjs +115 -0
  429. package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +33 -2
  430. package/skills/a2h-batch-ui-align/scripts/tests/progress_identity.test.mjs +174 -0
  431. package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +5 -0
  432. package/skills/a2h-batch-ui-align/scripts/tests/shell_requests.test.mjs +158 -0
  433. package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +12 -0
  434. package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +8 -0
  435. package/skills/a2h-coldstart-smoke-gate/SKILL.md +7 -4
  436. package/skills/a2h-dashboard-render/test/test_device_locale_dialogs.mjs +17 -0
  437. package/skills/a2h-module-semantic-docs/SKILL.md +51 -13
  438. package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +66 -11
  439. package/skills/a2h-module-semantic-docs/test/test_incremental_fingerprint.mjs +94 -0
  440. package/skills/a2h-page-specgen/SKILL.md +124 -20
  441. package/skills/a2h-page-specgen/references/behavior-ledger.md +1170 -0
  442. package/skills/a2h-page-specgen/references/body-language.md +11 -9
  443. package/skills/a2h-page-specgen/references/evidence.md +35 -0
  444. package/skills/a2h-page-specgen/references/execution-model.md +135 -26
  445. package/skills/a2h-page-specgen/references/footprint-and-grouping.md +20 -15
  446. package/skills/a2h-page-specgen/references/gates.md +120 -52
  447. package/skills/a2h-page-specgen/references/page-inventory.md +69 -22
  448. package/skills/a2h-page-specgen/references/scenario-authoring.md +272 -0
  449. package/skills/a2h-page-specgen/references/spec-example.md +312 -0
  450. package/skills/a2h-page-specgen/references/spec-template.md +112 -109
  451. package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
  452. package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
  453. package/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
  454. package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
  455. package/skills/a2h-page-specgen/scripts/dispatch.mjs +8 -5
  456. package/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
  457. package/skills/a2h-page-specgen/scripts/facts-build.mjs +170 -61
  458. package/skills/a2h-page-specgen/scripts/finalize.mjs +466 -63
  459. package/skills/a2h-page-specgen/scripts/footprint.mjs +302 -180
  460. package/skills/a2h-page-specgen/scripts/gate.mjs +372 -82
  461. package/skills/a2h-page-specgen/scripts/interactions.mjs +215 -8
  462. package/skills/a2h-page-specgen/scripts/inventory.mjs +102 -0
  463. package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +116 -216
  464. package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +105 -13
  465. package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
  466. package/skills/a2h-page-specgen/scripts/lib/hg.mjs +520 -12
  467. package/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
  468. package/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
  469. package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +129 -6
  470. package/skills/a2h-page-specgen/scripts/lib/main-module.mjs +24 -0
  471. package/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
  472. package/skills/a2h-page-specgen/scripts/lib/prose.mjs +12 -8
  473. package/skills/a2h-page-specgen/scripts/lib/recovery-policy.mjs +28 -0
  474. package/skills/a2h-page-specgen/scripts/lib/scope.mjs +355 -0
  475. package/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
  476. package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +106 -0
  477. package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
  478. package/skills/a2h-page-specgen/scripts/prepare.mjs +470 -122
  479. package/skills/a2h-page-specgen/scripts/render.mjs +11 -34
  480. package/skills/a2h-page-specgen/scripts/report.mjs +339 -6
  481. package/skills/a2h-page-specgen/scripts/submission.mjs +253 -88
  482. package/skills/a2h-page-specgen/scripts/submit.mjs +12 -6
  483. package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +288 -7
  484. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.java +15 -0
  485. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +26 -0
  486. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +347 -0
  487. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +298 -0
  488. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.java +36 -0
  489. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +43 -0
  490. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +347 -0
  491. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +298 -0
  492. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
  493. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
  494. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
  495. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +347 -0
  496. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
  497. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +265 -0
  498. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.java +47 -0
  499. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +54 -0
  500. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +347 -0
  501. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +298 -0
  502. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
  503. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
  504. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
  505. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
  506. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
  507. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +515 -0
  508. package/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
  509. package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
  510. package/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +543 -0
  511. package/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +652 -0
  512. package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1231 -0
  513. package/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +494 -0
  514. package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1513 -0
  515. package/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +758 -0
  516. package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +623 -0
  517. package/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +116 -0
  518. package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +795 -0
  519. package/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +883 -0
  520. package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +135 -137
  521. package/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
  522. package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +40 -1
  523. package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +178 -9
  524. package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +19 -1
  525. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.java +14 -0
  526. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.kt +14 -0
  527. package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanelsKotlinForms.kt +12 -0
  528. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ChildContent.java +6 -0
  529. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ComposeLifecycle.kt +26 -0
  530. package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleCallAndOverride.java +10 -0
  531. package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleHooks.kt +31 -0
  532. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyLifecycleHooks.kt +12 -0
  533. package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshOnResume.java +7 -0
  534. package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshResultNoise.kt +36 -0
  535. package/skills/a2h-page-specgen/scripts/test/fixtures/src/SelectionView.java +5 -0
  536. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ShowPage.vue +12 -0
  537. package/skills/a2h-page-specgen/scripts/test/fixtures/src/ThirdPartyLifecycle.kt +25 -0
  538. package/skills/a2h-page-specgen/scripts/test/fixtures/src/fragment_detail.xml +1 -0
  539. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
  540. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
  541. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
  542. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
  543. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
  544. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
  545. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
  546. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
  547. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
  548. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
  549. package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -0
  550. package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +459 -188
  551. package/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +89 -0
  552. package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +869 -13
  553. package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
  554. package/skills/a2h-page-specgen/scripts/test/helpers.mjs +139 -5
  555. package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +378 -0
  556. package/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
  557. package/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
  558. package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +69 -2
  559. package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +267 -2
  560. package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +111 -0
  561. package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +10 -8
  562. package/skills/a2h-page-specgen/scripts/test/ledger-lock.test.mjs +77 -0
  563. package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +1 -1
  564. package/skills/a2h-page-specgen/scripts/test/main-module.test.mjs +43 -0
  565. package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
  566. package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +143 -51
  567. package/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
  568. package/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
  569. package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +42 -2
  570. package/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
  571. package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +171 -3
  572. package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +13 -5
  573. package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +365 -1
  574. package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +102 -7
  575. package/skills/a2h-page-specgen/scripts/test/recovery-policy.test.mjs +14 -0
  576. package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1308 -72
  577. package/skills/a2h-page-specgen/scripts/test/render.test.mjs +85 -42
  578. package/skills/a2h-page-specgen/scripts/test/report.test.mjs +296 -0
  579. package/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
  580. package/skills/a2h-page-specgen/scripts/test/scope.test.mjs +292 -0
  581. package/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
  582. package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +645 -115
  583. package/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
  584. package/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -0
  585. package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +101 -65
  586. package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +88 -74
  587. package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +30 -1
  588. package/skills/a2h-page-specgen/scripts/waker.mjs +79 -12
  589. package/skills/a2h-page-specgen/scripts/watchdog.mjs +18 -17
  590. package/skills/a2h-resource-convert/SKILL.md +9 -1
  591. package/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
  592. package/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
  593. package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
  594. package/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
  595. package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +67 -3
  596. package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +68 -0
  597. package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +45 -3
  598. package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +42 -5
  599. package/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
  600. package/skills/a2h-resource-convert/scripts/lottie_refs.ts +398 -0
  601. package/skills/a2h-resource-convert/scripts/merge_mapping.ts +316 -0
  602. package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +2 -1
  603. package/skills/a2h-resource-convert/scripts/tests/code_vector_guard.test.mjs +75 -0
  604. package/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
  605. package/skills/a2h-resource-convert/scripts/tests/lottie_incremental.test.mjs +178 -0
  606. package/skills/a2h-resource-convert/scripts/tests/merge_mapping.test.mjs +201 -0
  607. package/skills/a2h-spec-design-pipeline/SKILL.md +48 -72
  608. package/skills/a2h-spec-design-pipeline/references/coding-loop.md +123 -37
  609. package/skills/a2h-spec-design-pipeline/references/execution-model.md +40 -8
  610. package/skills/a2h-spec-design-pipeline/references/final-report-template.md +5 -4
  611. package/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +229 -0
  612. package/skills/a2h-spec-design-pipeline/references/initialization.md +37 -5
  613. package/skills/a2h-spec-design-pipeline/references/merge-queue.md +126 -23
  614. package/skills/a2h-spec-design-pipeline/references/permission-index.json +206 -0
  615. package/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
  616. package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +7 -1
  617. package/skills/a2h-spec-design-pipeline/references/review-loop.md +46 -0
  618. package/skills/a2h-spec-design-pipeline/references/scripts.md +38 -14
  619. package/skills/a2h-spec-design-pipeline/references/shared-layer.md +127 -4
  620. package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +90 -24
  621. package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +65 -34
  622. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +11 -1
  623. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +10 -2
  624. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +47 -0
  625. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +31 -0
  626. package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +698 -0
  627. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +96 -0
  628. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +103 -0
  629. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +124 -0
  630. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +138 -0
  631. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +106 -0
  632. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +113 -0
  633. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +705 -0
  634. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +1063 -0
  635. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +473 -0
  636. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/{HttpExtraDataEmptyStringCheck.js → platform/ExtraDataSubCheck.js} +27 -30
  637. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +4 -2
  638. package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +3 -2
  639. package/skills/a2h-spec-design-pipeline/scripts/check_design_map.ts +108 -0
  640. package/skills/a2h-spec-design-pipeline/scripts/check_permissions.ts +420 -0
  641. package/skills/a2h-spec-design-pipeline/scripts/check_review_evidence.ts +45 -0
  642. package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +55 -2
  643. package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +138 -7
  644. package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +10 -13
  645. package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +21 -2
  646. package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +63 -4
  647. package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +32 -2
  648. package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +109 -13
  649. package/skills/a2h-spec-design-pipeline/scripts/ensure_index.ts +866 -0
  650. package/skills/a2h-spec-design-pipeline/scripts/fixtures/homecheck-stub.cjs +47 -0
  651. package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +12 -17
  652. package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +172 -7
  653. package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +36 -16
  654. package/skills/a2h-spec-design-pipeline/scripts/sync_permission_index.ts +340 -0
  655. package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +281 -0
  656. package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +690 -0
  657. package/skills/a2h-spec-design-pipeline/scripts/test_check_design_map.ts +46 -0
  658. package/skills/a2h-spec-design-pipeline/scripts/test_check_permissions.ts +201 -0
  659. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +27 -3
  660. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +20 -7
  661. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +143 -13
  662. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +168 -7
  663. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +139 -2
  664. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +25 -0
  665. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +92 -4
  666. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +37 -0
  667. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index.ts +572 -0
  668. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index_real.ts +56 -0
  669. package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +4 -5
  670. package/skills/a2h-spec-design-pipeline/scripts/test_homegraph_docs.ts +217 -0
  671. package/skills/a2h-spec-design-pipeline/scripts/test_permission_index.ts +214 -0
  672. package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
  673. package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +308 -0
  674. package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +59 -8
  675. package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +44 -0
  676. package/skills/a2h-spec-generate/SKILL.md +2 -2
  677. package/skills/a2h-spec-generate/references/specs.schema.json +24 -11
  678. package/skills/a2h-spec-generate/scripts/ensure-index.mjs +1 -2
  679. package/skills/a2h-spec-generate/test/ensure-index.test.mjs +1 -2
  680. package/skills/a2h-utg-explorer/SKILL.md +9 -3
  681. package/skills/a2h-utg-explorer/references/architecture.md +3 -0
  682. package/skills/a2h-utg-explorer/scripts/audit.mjs +8 -2
  683. package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +56 -5
  684. package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +47 -2
  685. package/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
  686. package/skills/a2h-utg-explorer/scripts/plan.mjs +8 -0
  687. package/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
  688. package/skills/a2h-utg-explorer/scripts/report.mjs +89 -0
  689. package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +67 -10
  690. package/skills/a2h-utg-explorer/scripts/run_device.mjs +10 -2
  691. package/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
  692. package/skills/a2h-utg-explorer/scripts/tests/blank_wait.test.mjs +126 -0
  693. package/skills/a2h-utg-explorer/scripts/tests/default_override.test.mjs +109 -0
  694. package/skills/a2h-utg-explorer/scripts/tests/device_locale_dialogs.test.mjs +29 -0
  695. package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +254 -0
  696. package/skills/a2h-utg-explorer/scripts/tests/foreground_spelling.test.mjs +155 -0
  697. package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +120 -0
  698. package/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
  699. package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +122 -0
  700. package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +15 -0
  701. package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +218 -0
  702. package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +292 -0
  703. package/skills/a2h-utg-explorer/scripts/tests/recover_d_grounding.test.mjs +164 -0
  704. package/skills/a2h-utg-explorer/scripts/tests/replay_reroute.test.mjs +143 -0
  705. package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +6 -2
  706. package/skills/a2h-utg-explorer/scripts/tests/run_cycle_follow.test.mjs +35 -0
  707. package/skills/a2h-utg-explorer/scripts/tests/seed_recipes.test.mjs +261 -0
  708. package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +122 -4
  709. package/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
  710. package/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
  711. package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +138 -4
  712. package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
  713. package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +22 -13
  714. package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +718 -42
  715. package/skills/a2h-utg-explorer/scripts/variant.mjs +57 -11
  716. package/skills/a2h-utg-static/SKILL.md +6 -2
  717. package/skills/a2h-utg-static/scripts/assemble.mjs +65 -0
  718. package/skills/a2h-utg-static/scripts/click_paths.mjs +116 -5
  719. package/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
  720. package/skills/a2h-utg-static/scripts/compose_overlay.mjs +8 -1
  721. package/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
  722. package/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
  723. package/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
  724. package/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
  725. package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +46 -1
  726. package/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
  727. package/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
  728. package/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
  729. package/skills/a2h-utg-static/scripts/menu_nav.mjs +1 -1
  730. package/skills/a2h-utg-static/scripts/nl_hints.mjs +32 -4
  731. package/skills/a2h-utg-static/scripts/run_pipeline.mjs +86 -4
  732. package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +30 -0
  733. package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +18 -0
  734. package/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
  735. package/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +114 -0
  736. package/skills/a2h-utg-static/scripts/tests/test_guard_kinds_locale.mjs +12 -0
  737. package/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
  738. package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +165 -1
  739. package/skills/a2h-utg-static/scripts/tests/test_library_activity.mjs +45 -0
  740. package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
  741. package/skills/a2h-utg-static/scripts/tests/test_nl_hints_default_override.mjs +50 -0
  742. package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +21 -0
  743. package/skills/a2h-utg-static/scripts/tests/test_pr169_review_fixes.mjs +172 -0
  744. package/skills/a2h-utg-static/scripts/tests/test_redirect_path_cost.mjs +136 -0
  745. package/skills/a2h-utg-static/scripts/tests/test_uniapp_route_jump.mjs +175 -0
  746. package/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
  747. package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +99 -0
  748. package/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
  749. package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +21 -0
  750. package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +112 -69
  751. package/skills/a2h-utg-static/scripts/vm_nav.mjs +9 -1
  752. package/README.md +0 -440
  753. package/dist/cli/config-store.js +0 -128
  754. package/dist/cli/config.js +0 -48
  755. package/dist/cli/editors.json +0 -114
  756. package/dist/cli/env-vars.js +0 -127
  757. package/dist/cli/index.js +0 -76
  758. package/dist/cli/init.js +0 -2618
  759. package/dist/cli/uninstall.js +0 -406
  760. package/dist/platform/compose.js +0 -228
  761. package/dist/platform/frontmatter.js +0 -151
  762. package/dist/platform/installer.js +0 -417
  763. package/dist/platform/language.js +0 -77
  764. package/dist/platform/registry.js +0 -337
  765. package/dist/platform/transform.js +0 -363
  766. package/dist/platform/types.js +0 -9
  767. package/dist/platform/validate.js +0 -152
  768. package/dist/utils/regex.js +0 -7
  769. package/env-requirements.json +0 -536
  770. package/resource/choose_editor.png +0 -0
  771. package/resource/convert_pipeline_process.svg +0 -114
  772. package/resource/project_architecture.svg +0 -120
  773. package/resource/set_environment.png +0 -0
  774. package/resource/set_multimodel.png +0 -0
  775. package/resource/set_sdk.png +0 -0
  776. package/resource/title_dark.png +0 -0
  777. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-cn.md +0 -55
  778. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-en.md +0 -60
  779. package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +0 -948
  780. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +0 -1014
@@ -68,8 +68,8 @@ ignore it (a zombie agent's late output never mutates a newer generation). `acce
68
68
  `claimGen`; `close(blocked)`, `retry`, and `group-*` carry no identity. The ledger files are never
69
69
  hand-edited.
70
70
 
71
- **Event loop.** After W0: claim and dispatch chunk 1 of every **ready** member, then end the turn and
72
- wait — `held` members are not dispatched; the release sweep below starts them. Each pass runs the loop
71
+ **Event loop.** After W0: claim and dispatch chunk 1 of every **ready** member, then run the passes below
72
+ (step 9 decides whether the turn ends) — `held` members are not dispatched; the release sweep below starts them. Each pass runs the loop
73
73
  below in order (the spec §11 loop; reconcile is the pivot, not a second source of truth):
74
74
 
75
75
  1. **Consume events.** Read `dispatch/orch.event.json` and `dispatch/waker.event.json` (verify `runId`,
@@ -93,10 +93,12 @@ below in order (the spec §11 loop; reconcile is the pivot, not a second source
93
93
  4. **Triage (fixed order).**
94
94
  - `deadGroups` / `closed(reason=dead)` → `group-reset --mode fresh` when a generation remains (new
95
95
  `WT/g<G>r<n>` + `specpipe/g<G>r<n>`), else `group-fail`.
96
- - `submitted` chunk → only the group's **last non-terminal chunk** goes `queue-merge`; every submitted
97
- chunk gets `release(done)`. A non-last chunk immediately dispatches its successor (claim → intent →
98
- Agent → confirm) in the same turn. A submitted resolver is handled by step 5 (land, then
99
- `release(merged)`).
96
+ - `submitted` chunk → every submitted chunk gets `release(done)` first; then only the group's **last
97
+ non-terminal chunk** goes `queue-merge`. A non-last chunk immediately dispatches its successor (claim →
98
+ intent → Agent → confirm) in the same turn. A submitted resolver is handled by step 5 (land, then
99
+ `release(merged)`). `queue-merge` uses the same predicate as landing: it reports `chunks-incomplete`
100
+ unless every planned chunk is `done`/`accepted` — not a retryable error; finish the coding, and a
101
+ `closed`/`abandoned` chunk means `group-fail` (it can never land).
100
102
  - `failed` → resolver failures take the B2 ladder; a chunk failure with `contentAttempts < 2` takes
101
103
  `retry` (then claim/dispatch the retry), otherwise `close --reason content-exhausted --expect-gen
102
104
  <claimGen> --token <token>` + `group-fail`.
@@ -114,6 +116,11 @@ below in order (the spec §11 loop; reconcile is the pivot, not a second source
114
116
  chunks include a `failed`/`closed` one is terminal at `landed-required` → `group-fail <G>` (never retry
115
117
  every turn). If the generation branch was already landed and then deleted, pass the known
116
118
  `--landed <M>` (accepted when it is a first-parent merge naming `specpipe/g<G>r<wtGen>`).
119
+ **A landed branch is not a finished group**: `group-merge --landed` refuses while any planned chunk is
120
+ not `done`/`accepted` (`chunks-incomplete`) — do not retry and do not mark chunks done. `dequeue-merge
121
+ <G>` if queued, then: the group is still `coding` → finish the remaining chunks (a `closed`/`abandoned`
122
+ chunk means `group-fail`); the group is already `merged`/`done` → `group-reopen <G> --base <current main
123
+ HEAD>` (see `references/merge-queue.md` → incomplete group).
117
124
  `group-merge` refuses while main is mid-merge (`MERGE_HEAD` exists); never run it in the same unchecked
118
125
  shell line as `git merge`. A conflict takes ladder hop (a) and
119
126
  parks the queue: main `merge --abort` → `claim resolver:g<G>` → worktree `git merge <main>` →
@@ -125,24 +132,38 @@ below in order (the spec §11 loop; reconcile is the pivot, not a second source
125
132
  is a pure function of plan deps + group/chunk statuses; a nonzero exit is recorded and retried next
126
133
  turn. A **flat** wave yields `ready` for every pending member. For every member newly in `released`
127
134
  (ready ∧ all chunks `pending`): if the ledger group is already `provisioned` (a `group-reset` created
128
- the new generation), skip the create/`group-worktree` step and go straight to index/staging.
135
+ the new generation), skip the create/`group-worktree` step and go straight to staging.
136
+ **Held release: wiring first.** When the member waited on groups of this same wave, apply the wiring
137
+ of those merged dependencies to main before taking `coding_base`: the B2 apply-wiring procedure
138
+ (`merge-queue.md`) restricted to those groups' `wiring.md` rows, with the same per-row key check and
139
+ permission-index rule, committed as `wiring (deps of G<G>)` (no row left to apply → no commit). Without
140
+ it the worktree has the dependency's code but not its exports / routes, and the coder may not edit
141
+ `Index.ets` or the route table. The wave-end application still runs; its key check skips these rows.
129
142
  Otherwise record `state.groups[G].coding_base = <current main HEAD>`, remove any leftover
130
143
  `WT/g<G>r<wtGen>` (`worktree remove --force`, else `worktree prune`), delete a stale
131
144
  `specpipe/g<G>r<wtGen>`, `git worktree add WT/g<G>r<wtGen> -b specpipe/g<G>r<wtGen> <coding_base>`,
132
- build its index (`ensure_wt_index.ts`, skip when `ENGINE_MODE=off`; exit 1 is degraded, never a
133
- release failure), run `stage_design_inputs.ts`, then `dispatch.mjs group-worktree <G> --wt-gen
145
+ run `stage_design_inputs.ts` (there is no worktree index to build — coders read the shared
146
+ `<HMOS>`/`<ANDROID>` indexes), then `dispatch.mjs group-worktree <G> --wt-gen
134
147
  <wtGen> --base <coding_base>` — the only claim fence. Worktree creation failure → group `failed`,
135
148
  recorded, wave continues. Then claim and dispatch chunk 1. A release never takes an extra concurrency
136
149
  slot.
137
- 7. **Reconcile; dispatch up to `freeSlots`.** For each `dispatchable` entry, claim → intent → background
138
- Agent → confirm. A same-turn successor (step 4/5) and a released held group (step 6) are both covered
139
- by this pass; `chunk k-1 done` is read from the **ledger**, so a lagging state never blocks dispatch.
150
+ 7. **Reconcile; dispatch up to `freeSlots`.** For each `dispatchable` entry, in the order given (most
151
+ `remainingChunks` first, so the longest group starts first), claim → intent → background Agent → confirm. A same-turn successor (step 4/5) and a released held group (step 6) are both covered
152
+ by this pass; `chunk k-1 done`/`accepted` is read from the **ledger**, so a lagging state never blocks dispatch.
140
153
  8. **Residue disposal (scope = every group still holding units, including older waves).** A group whose
141
- units are all terminal but whose group status is not → `queue-merge` when unlanded (then drain), or
142
- `group-merge <G> --landed <merge_commit>` when `branch_landed.ts` reports it already landed. A
143
- zero-commit group whose terminal chunks include `failed`/`closed` can never land: skip the queue and
144
- `group-fail <G>` directly. `failed-group-residue` (a failed group still holding a non-terminal
145
- unit) → dispose of those units (`reject` for invalid evidence, `orphan`/`close` as their state allows):
154
+ units are all terminal but whose group status is not → `queue-merge` **only when every chunk is
155
+ `done`/`accepted`** (then drain), or `group-merge <G> --landed <merge_commit>` under the same condition
156
+ when `branch_landed.ts` reports it already landed. A group whose terminal chunks include
157
+ `failed`/`closed`/`abandoned` can never land: skip the queue and `group-fail <G>` directly. `terminal-group-open-chunks` (a `merged`/`done` group that still owns a
158
+ pending chunk — a premature landing, usually from an older release) → `group-reopen <G> --base
159
+ <current main HEAD>` when a generation remains, else `group-fail`; it is never "already done".
160
+ `open-chunks-outside-plan` (a non-terminal group whose open chunks fell out of the active plan after a
161
+ later wave) → re-`init` its wave so dispatch and completion see it again; never let it fall through to
162
+ the final report.
163
+ `group-fail` closes every non-terminal unit of the group itself (reason `group-failed`; a later event
164
+ of an agent still running is absorbed), so a failed group holds no residue; `group-reset` reopens them.
165
+ `failed-group-residue` (a failed group still holding a non-terminal unit — only a ledger written before
166
+ that rule) → dispose of those units (`reject` for invalid evidence, `orphan`/`close` as their state allows):
146
167
  they can never reach a verdict on their own and would keep `complete` false forever. `deadGroups` → fresh
147
168
  reset (if a generation remains) or
148
169
  `group-fail`. At wave end (no claimed/dispatched/live/submitted unit and no queued merge): an
@@ -150,11 +171,21 @@ below in order (the spec §11 loop; reconcile is the pivot, not a second source
150
171
  whose deps can never be
151
172
  satisfied → `close --reason blocked` + `group-fail`. Then re-check `complete`; otherwise make sure a
152
173
  waker is armed (`probe` → `inPlace:false` or a different `runId`).
153
- 9. **Wait.** `dispatch.mjs <HMOS> wait --max-wait 120 --poll 5 --baseline <HMOS>/.hometrans/dispatch/snapshots/orch.snapshot.json
154
- --event-file <HMOS>/.hometrans/dispatch/orch.event.json` (the next deadline comes from reconcile). It
155
- persists its event before returning, so an event created at the end of a turn is still consumed at the
156
- start of the next.
157
- 10. Go to step 1.
174
+ `dispatch.mjs <HMOS> next` (read-only, after `reconcile`) prints this pass as `{ actions, exit }`: the
175
+ ordered actions of steps 2–8 (`evidence-release`, `retry-or-close`, `resume-or-accept`, `queue-merge`,
176
+ `group-reopen-or-fail` (`terminal-group-open-chunks`), `reinit-wave` (`open-chunks-outside-plan`), `dispose`
177
+ (`failed-group-residue`), `group-reset-or-fail`, then `claim` up to `freeSlots`, longest group first) and step 9's exit
178
+ (`complete` / `end-turn` / `wait`). Work its list top to bottom instead of re-deriving the pass.
179
+ 9. **End of pass — the only exits.**
180
+ - `complete` (step 8) → leave the loop; continue at B3.
181
+ - A unit is active (claimed / dispatched / live / submitted) → its background agent's completion
182
+ notification, or the armed waker (`probe` above), starts the next turn: **end the turn now**. Never
183
+ sit in a foreground `wait` or `sleep` while an agent runs: a blocked turn does not receive its
184
+ completion notification (measured: 16–30 polling rounds per batch while the notifications waited).
185
+ - No unit is active and not complete (only a deadline can move the wave: a held group, a timeout) →
186
+ `dispatch.mjs <HMOS> wait --max-wait 120 --poll 5 --baseline <HMOS>/.hometrans/dispatch/snapshots/orch.snapshot.json
187
+ --event-file <HMOS>/.hometrans/dispatch/orch.event.json` (it persists its event before returning, so
188
+ one created at the end of a turn is still consumed at the start of the next), then go to step 1.
158
189
 
159
190
  **Never-strand guard (checked at every turn end, in this order).**
160
191
 
@@ -198,6 +229,19 @@ with these fields (the skill's Inputs). The orchestrator owns every ledger write
198
229
  its artifacts.
199
230
 
200
231
  - `harmonyos-project-path`: the group's worktree `WT/g<G>r<wtGen>` (W0's per-project worktree root)
232
+ - `android-project-path`: `<ANDROID>` (the pipeline's Android source root, required by this pipeline).
233
+ It is the join base for the spec's `## Android Code Reference` anchors, so the coder can settle an uncertain
234
+ spec detail from the real source instead of guessing; the spec itself stays the implementation
235
+ baseline. Pass it on **every** chunk dispatch; a coder that finds it missing falls back to spec-only
236
+ implementation and records `android-source: unavailable` — never omit it because "this chunk looks
237
+ spec-only".
238
+ - `hmos-project-path`: `<HMOS>` (absolute — the shared main checkout, i.e. the index root for existing APIs,
239
+ shared layers and call chains; never the worktree)
240
+ - `hmos-index-ready` / `android-index-ready`: the orchestrator's verdict for each shared index (`true` = that
241
+ repo's last `ensure_index.ts` exited 0 with an action other than `skip`); a `false`/missing one omits that
242
+ index from the HomeGraph clause below
243
+ - `homegraph-guide`: `<skill-dir>/references/homegraph-cli.md` — the query discipline and evidence format
244
+ - `engine-mode` / `engine-degraded-reason`: `<ENGINE_MODE>` / the recorded degraded reason (`null` when none)
201
245
  - `spec-file`: this chunk's `chunk_<k>_spec.md` (absolute path into main-tree `.hometrans`)
202
246
  - `spec-design-file`: `<DESIGN_DIR>/SPEC_DESIGN_G<G>_c<k>.md` (absolute path into the main tree)
203
247
  - `design-mode`: `true` when the chunk's design file is absent or its `_issue.md` exists (delete both
@@ -220,25 +264,64 @@ its artifacts.
220
264
  `state.config.wiring_files` (the source of truth); `resolve_wiring.ts` also persists the same rendering
221
265
  as `state.config.wiring_compact`, which `resolver_prompt.ts` treats as a fallback only when
222
266
  `wiring_files` is absent. Never paste the raw full list (~167 paths ≈ ~3k tokens per dispatch).
267
+ - `shared-layer-list`: the cumulative shared-layer inventory (`network.transport [X, Y] from 'module'`;
268
+ `none` when no wave has a done manifest). Advisory, not a gate; the one-sentence coder rule it
269
+ carries: these shared implementations already exist in this wave's baseline — prefer reusing them;
270
+ when genuinely insufficient, append inside the original module (append-only, never changing an
271
+ existing symbol's semantics) instead of building a second parallel provider; **never skip a
272
+ scenario because it is "shared"**; record doubts in `issues.md`. Compute it as the union of
273
+ `wave_<j>/shared_manifest.json` for every `j <= K` with `status: "done"` **and `campaign_id`
274
+ equal to the current `state.config.campaign_id`** (a done manifest from an earlier campaign is
275
+ residue, never inventory), deduped by `(module.id, module.path)`, rendered as
276
+ `symbols from '<module_name>'` (the `api[].name` symbols); never persist it — B1 resume
277
+ recomputes it from the files. A design-mode dispatch carries the same list, so the design
278
+ proposes against the existing APIs.
223
279
  - `state-docs-mode`: `<state.config.state_docs_mode>` (`available` / `unavailable`) — the coder's
224
280
  state-management doc gate reads it (`a2h-arkts-logic-coder` → `references/code-generation.md`
225
281
  Step 2). With `unavailable` the coder skips the `devecocli docs` wrapper, falls back to its
226
282
  `references/ISSUES.md`, and records `state-docs: unavailable` in `state_docs_used.md`. Never paste
227
283
  the doc rules or a doc key list into the prompt — the coder skill owns them.
228
- - worktree index: `<worktree>/.homegraph/`, built by the dispatcher when the worktree was created
229
- (`ensure_wt_index.ts` — W0 for ready members, the deps release sweep for held ones). Read-only for the
230
- coder; the prompt clause below carries the usage rules. **No usable index** (the script exited 1, or
231
- the orchestrator skipped the build for `ENGINE_MODE=off` — both recorded in the wave log) → the clause
232
- is omitted and the coder uses plain grep/read.
233
- - worktree index clause (append it to the `prompt extra` **only** when the index build exited 0 — the
234
- same condition as the bullet above; omit the whole clause when the build was degraded or skipped,
235
- never paste a conditional sentence): "**HomeGraph rule**: this worktree has its own read-only index —
236
- query it with `homegraph explore -p <this worktree> \"<query>\"`. Prefer the CLI; the MCP tool may be
237
- used only when the MCP session's bound root is this worktree (a mismatched `projectPath` is ignored by
238
- the server and answers from the bound tree). Never run `homegraph init`/`sync`/`index`, and never query
239
- `<HMOS>`'s index — it answers from a different branch and the CLI prints no mismatch warning. The index
240
- is a snapshot from this worktree's creation (or its last `--sync`), so symbols you write now may be
241
- missing from it."
284
+ - `api-docs-mode`: `<state.config.api_docs_mode>` (`available` / `unavailable`, `unavailable` when the
285
+ field is absent) — the coder's soft platform-API doc gate reads it (`references/code-generation.md`
286
+ Step 2, "Platform API doc gate"). It is independent of `state-docs-mode`; never paste the lookup
287
+ rules, the catalogue names, or the `api-*` key list into the prompt.
288
+ - shared indexes: `<HMOS>/.homegraph/` (main tree — reference for existing APIs, shared layers and call
289
+ chains) and `<ANDROID>/.homegraph/` (the source implementation). Both are read-only for the coder; the
290
+ orchestrator is the only writer. There is no worktree index. **No usable index** (that repo's
291
+ `ensure_index.ts` exited 1, or the orchestrator skipped it for `ENGINE_MODE=off` — both recorded in the
292
+ wave log) → the corresponding path is omitted and the coder uses plain grep/read.
293
+ - HomeGraph clause (append it to the `prompt extra` **only** when at least one shared index is ready — a
294
+ `*-index-ready` that is `false`/missing simply omits that path, never advertise it; omit the whole clause
295
+ when both are unusable, and never paste a conditional sentence): "**HomeGraph rule**: the shared indexes
296
+ are read-only and CLI-only — `<hmos-project-path>` for existing APIs, shared layers and call chains,
297
+ `<android-project-path>` for the source implementation. Locate code with
298
+ `homegraph explore -p \"<hmos-project-path>\" \"<TypeA TypeB Type.member>\"` or
299
+ `homegraph explore -p \"<android-project-path>\" \"<Symbol>\"`, plus `impact` / `callers` (2–5 names per
300
+ `explore`; `-j` only on `status`/`query`/`callers`/`callees`/`impact`/`affected`/`files` — `explore` and
301
+ `node` take no `-j`). Never run `homegraph init`/`sync`/`index`/`unlock`: the orchestrator owns both
302
+ indexes and is their only writer. There is no worktree index — never create or query one, and never
303
+ treat a symbol in either index as proof it exists here. An index symbol missing from this worktree is
304
+ `index_ahead` (another group's merged code or a later commit): **never import, copy or re-implement
305
+ it** — the worktree's `Read`/`Grep` wins, and if you truly depend on it, wait for the owning group to
306
+ merge. **Start with `<hmos-project-path>` before reading source**: one `explore` with this chunk's
307
+ modules / pages / VMs / shared-layer symbols; query `<android-project-path>` only when the SPEC's
308
+ `## Android Code Reference` anchor is missing/ambiguous or a call chain is needed (never once per
309
+ scenario), and add `impact`/`callers` for shared-layer changes. Never truncate `explore` output
310
+ (`| Select-Object -First N`); `Partial locator` is a budget note, not proof a file is unindexed.
311
+ The reverse is `trust the worktree`: a symbol present here but absent from the index is real —
312
+ re-query once, then cite the file's `file:line`. Record the queries by phase - first line `start | hmos`, then `design | android` for SPEC anchor gaps
313
+ and `code | hmos` for impact - with their `file:line` anchors, plus `degraded: <reason>` /
314
+ `fallback: <reason>` / `not-applicable: <file>` when no query was possible or the change is not code, in
315
+ `commit-info.md` under `## HomeGraph evidence`. A missing section, a section carrying none of anchor /
316
+ `degraded:` / `fallback:` / `not-applicable:`, is `homegraph-evidence-missing`; anchors without a
317
+ `start | hmos` line are `homegraph-start-missing`: an evidence failure under `ENGINE_MODE=required`, a
318
+ warning under `auto`.
319
+ Read `<skill-dir>/references/homegraph-cli.md` for the full query discipline."
320
+ - engine-degraded clause (append it to the `prompt extra` when `engine-degraded-reason` is non-null):
321
+ "**HomeGraph degraded**: the shared index refresh had a degraded outcome (`<engine-degraded-reason>`);
322
+ the snapshot may lag HEAD. Do not retry, repair or rebuild it — where the index looks stale fall back to
323
+ `read`/`grep`, and record the reason as `degraded: <engine-degraded-reason>` in
324
+ `## HomeGraph evidence`."
242
325
  - prompt extra: "Implement all scenarios in the given spec-file (the slice already contains only this
243
326
  chunk's specs). Every commit message MUST start with the so-ids implemented in that commit
244
327
  ('so-26,so-27: ...'). Resume note: so-<id> is already committed; continue the implementation from so-<next>.**Code-first rule**: the
@@ -250,7 +333,9 @@ its artifacts.
250
333
  scripts, git) are fine. Compile verification belongs to B3 alone (`build-fixer` runs `devecocli build`
251
334
  once per wave on the main tree). **State-refresh rule**: before choosing any state variable or
252
335
  decorator, follow the coder skill's state-management doc gate and write `state_docs_used.md`; never
253
- settle a decorator from memory or analogy. **Your final JSON must echo the `unitId` given above.**" — resume
336
+ settle a decorator from memory or analogy. **API-usage rule**: for a platform API whose call shape this
337
+ worktree does not already show, follow the coder skill's platform-API doc gate and record it in
338
+ `state_docs_used.md`; never invent a signature, an `await`, or a lifecycle from memory. **Your final JSON must echo the `unitId` given above.**" — resume
254
339
  detection is mechanical: parse `git -C <worktree> log --oneline <TASK_BASE>..` commit-message so-id
255
340
  prefixes to find the last completed so-id before any re-dispatch. `TASK_BASE` = the ledger group's
256
341
  `base` (falling back to `WAVE_BASE`); `coding_base` in state is a read-only cache. Filter the parsed
@@ -258,3 +343,16 @@ its artifacts.
258
343
  never skip-read).
259
344
  - return JSON: `{ "ok": true, "unitId": "chunk:g<G>c<k>", "commits": "<TASK_BASE>..<HEAD>",
260
345
  "change_type": "code", "wiring": "wiring.md"|null, "note": null }`
346
+
347
+ ## Build breaker
348
+
349
+ A wave whose B3 build (or B4's last review-round build) ended `FAILED` still runs B4 → B5 → C, but the
350
+ next wave never codes on a red main: every coder of wave K+1 would branch from code that does not compile,
351
+ and their own build would fail for reasons outside their chunk. Before the next wave's W0:
352
+
353
+ 1. Dispatch one `build-fixer` against `<HMOS>` (`output_path: <HMOS>/.hometrans/wave_<K+1>/prebuild`) and
354
+ validate its reply as in B3.
355
+ 2. `SUCCESS` → start wave K+1 as usual.
356
+ 3. Still `FAILED` → start no further wave. Go to the Homecheck gate / Finalization; the remaining groups stay
357
+ `pending`, and the final report lists `waves not started: build still red after wave K` with the fixer's
358
+ report as manual follow-up.
@@ -0,0 +1,307 @@
1
+ # HomeGraph CLI Guide
2
+
3
+ This is the single HomeGraph reference shared by the coder, reviewer, fixer, resolver, and docs sub-agents. Use the
4
+ `homegraph` CLI only. The HomeGraph MCP tools are not available to this pipeline and must not be invoked; `read`/`grep`
5
+ are supplementary evidence, never a substitute for an attempted query.
6
+
7
+ ## 1. Indexes
8
+
9
+ | Index | Owner | Lifecycle |
10
+ |---|---|---|
11
+ | `<ANDROID>/.homegraph` | orchestrator | built once at I2 by `ensure_index.ts <ANDROID> --create --sync` (trigger `i2-android`); read-only afterwards |
12
+ | `<HMOS>/.homegraph` | orchestrator | `init` at I2 when absent (`i2-hmos`); `sync` after every main-tree change |
13
+ | worktree `.homegraph` | none | removed; **never create one, never query one** |
14
+
15
+ Only the orchestrator writes an index. Coders, reviewers, fixers, resolvers, and the docs sub-agent are read-only when
16
+ dispatched by `a2h-spec-design-pipeline`: no `init`, no `sync`, no `index`, no `unlock`. A skill run standalone (not
17
+ dispatched by the pipeline) keeps its own probing behavior.
18
+
19
+ The `<HMOS>` index answers for the **main checkout's branch**: architecture, existing APIs, call chains. The files a
20
+ coder is editing exist only in a worktree, whose `read`/`grep` is the truth for them (the two rules in §4).
21
+
22
+ ## 2. Lifecycle
23
+
24
+ ### 2.1 Existence
25
+
26
+ Test the literal database path:
27
+
28
+ ```powershell
29
+ Test-Path "<repo>/.homegraph/homegraph.db"
30
+ ```
31
+
32
+ Never use `homegraph status` as an existence check: the engine resolves upward to an ancestor workspace index and
33
+ reports `initialized: true` for a repo that has no local index but has an initialized ancestor index.
34
+
35
+ ### 2.2 Initialize
36
+
37
+ ```powershell
38
+ homegraph init "<repo>"
39
+ ```
40
+
41
+ Default bound **300000 ms** (5 minutes). `ensure_index.ts --create` is the timeout-enforcing wrapper with the same
42
+ default (`--init-timeout-ms` overrides per call). `init` does nothing when the directory already holds an index db, so
43
+ **a leftover unusable index needs `index`, not `init`**. An `init` timeout is a failure (`reason: "timeout"`); do not
44
+ retry in place — the next pipeline event tries again.
45
+
46
+ ### 2.3 Sync
47
+
48
+ ```powershell
49
+ homegraph sync -q "<repo>"
50
+ ```
51
+
52
+ `-q` (`--quiet`) keeps only the essential output. At pipeline events run `sync` **unconditionally** (except when
53
+ `ENGINE_MODE=off`).
54
+
55
+ Why: `homegraph status` derives `pendingChanges` from git's fast path (`git status --porcelain`), which sees only
56
+ **uncommitted** edits. After a pipeline commit / merge / reset the tree is clean, so `status` prints
57
+ `Index is up to date` while the index is behind HEAD. `sync` scans the filesystem (size/mtime first, then content
58
+ hash) and does catch committed changes. Whether to `sync` is therefore never decided by `status`.
59
+
60
+ ### 2.4 Rebuild fallback
61
+
62
+ Rebuild only when the index is unusable (`lastIndexed` null, `fileCount` 0, `index.state` `indexing`/`failed`, a
63
+ `builtWithVersion` mismatch, or `status` itself unreadable) or after a failed `sync` — and branch on the lock holder:
64
+
65
+ 1. Read `<repo>/.homegraph/homegraph.lock`.
66
+ 2. Holder absent or its process dead → `homegraph unlock "<repo>"`, then `homegraph index --inplace "<repo>"`.
67
+ 3. Holder still alive (identified as this repo's builder or not) → `lock_busy`, degraded: **no kill, no unlock, no
68
+ index**. A live writer on the main checkout is never killed; wait for the holder to exit or for the next pipeline
69
+ event.
70
+ 4. Rebuilds are always `--inplace`; a full recreate is allowed only when no reader exists and the caller explicitly
71
+ asks for it.
72
+
73
+ After **every** failed attempt re-read `status`: the engine can exit non-zero after the rows are complete, so a
74
+ complete index counts as success — do not rebuild again. A `sync` that fails while the previous snapshot is still
75
+ usable exits 0 with `reason: "sync_incomplete"`: record it as degraded (§9) and continue on the old snapshot.
76
+
77
+ Corrupt db (`status` unreadable, or the first non-timeout `index --inplace` failure whose post-failure snapshot is
78
+ unusable): rename `<repo>/.homegraph/homegraph.db` to `<repo>/.homegraph/homegraph.corrupt-<ts>.db`, then `init`.
79
+ The old file is preserved for inspection and is never deleted.
80
+
81
+ ### 2.5 Status
82
+
83
+ `status` is diagnostics only, never a freshness proof:
84
+
85
+ ```powershell
86
+ homegraph status --json "<repo>"
87
+ ```
88
+
89
+ (The repository is a **positional** argument for `status`; every other command uses `-p`.) Read `projectPath` /
90
+ `indexPath` / `lastIndexed` / `fileCount` / `index.state` / `builtWithVersion` / `pendingChanges`.
91
+
92
+ - `initialized` (the `ensure_index.ts` JSON field, for bookkeeping only) = the local `homegraph.db` exists **and**
93
+ `status` reports a `projectPath` that resolves back to this repository. The file check alone is fooled by an
94
+ ancestor index.
95
+ - A `status` timeout or unreadable result is `unknown`, never "initialized".
96
+ - `pendingChanges` matters only when asking "does the working tree have uncommitted edits?"; no pipeline event uses it
97
+ to decide whether to `sync`.
98
+
99
+ ### 2.6 Pipeline sync points
100
+
101
+ Every row runs `node <skill-dir>/scripts/ensure_index.ts <repo> ...`. With `ENGINE_MODE=off` the whole table is
102
+ skipped — no engine process may start.
103
+
104
+ | Point | Arguments | Trigger |
105
+ |---|---|---|
106
+ | I2, `<ANDROID>` | `<ANDROID> --create --sync` | `i2-android` |
107
+ | I2, `<HMOS>` | `<HMOS> --create --sync` | `i2-hmos` |
108
+ | Mid-flight re-entry / resume | `<HMOS> --sync` | `resume` |
109
+ | W0, after `WAVE_BASE` is fixed and before worktrees are created/classified | `<HMOS> --sync` | `w0` |
110
+ | B2, after each successful `group-merge` | `<HMOS> --sync` | `b2-merge` |
111
+ | B2 hop-b, after a landing/reset that changed code on main | `<HMOS> --sync` | `b2-hop-b` |
112
+ | B3, after a build-fixer commit | `<HMOS> --sync` | `b3-fix` |
113
+ | Build breaker, after its build-fixer commit | `<HMOS> --sync` | `build-breaker` |
114
+ | B4 step 0, every round | `<HMOS> --sync` (replaces the old `status --json` gate) | `b4-step0` |
115
+ | B4, after each review-fix commit | `<HMOS> --sync` | `b4-fix` |
116
+ | B4, after the round rebuild | `<HMOS> --sync` | `b4-rebuild` |
117
+ | B5 docs refresh | none by default; `<HMOS> --sync` only when this round changed a wiring file | `b5` |
118
+
119
+ Each call appends one wave-log line and records the snapshot in `state.engine` (`android` / `hmos` / `lastSyncAt`).
120
+
121
+ ## 3. Commands
122
+
123
+ | Purpose | Command |
124
+ |---|---|
125
+ | Definition, signature, and call links for 2–5 symbols in one call | `homegraph explore -p "<repo>" "<TypeA TypeB Type.member>"` |
126
+ | Keyword search (not an exact symbol name) | `homegraph query -p "<repo>" "<keyword>" -l 20` |
127
+ | Who calls it | `homegraph callers -p "<repo>" "<Type.member>"` |
128
+ | What it calls | `homegraph callees -p "<repo>" "<Type.member>"` |
129
+ | Impact surface (depth 2 by default, `-d` sets the hop count) | `homegraph impact -p "<repo>" -d 2 "<Type>"` |
130
+ | Symbol list for one file | `homegraph node -p "<repo>" -f "<file>" --symbols-only` |
131
+ | Affected test files for these changes (tests only) | `homegraph affected -p "<repo>" "<file>..."` |
132
+ | Files matching a pattern | `homegraph files -p "<repo>" --pattern "*.ets"` |
133
+
134
+ `-j` (JSON output) works with `status`, `query`, `callers`, `callees`, `impact`, `affected`, and `files`;
135
+ **`explore` and `node` have no `-j`** (they fail with `error: unknown option '-j'`) — read their text output, or `read`
136
+ the file to verify it (see §4).
137
+
138
+ **The `node` CLI allowlist.** HomeGraph 1.6.4 allows only `explore,project` by default, so `node` is rejected with a
139
+ "tool disabled" error. That is a **CLI allowlist check inside the `homegraph` binary, not an MCP call**; the CLI-only
140
+ rule stands. Allow `node` for this session:
141
+
142
+ ```powershell
143
+ $env:HOMEGRAPH_MCP_TOOLS = "explore,node"
144
+ ```
145
+
146
+ (`all` works as well.) If `node` still returns nothing, fall back to `explore` + `read` and record
147
+ `degraded: node unavailable` in the evidence block. Never enable an MCP server to get `node`.
148
+
149
+ ## 4. Query discipline
150
+
151
+ - Query **CamelCase symbols as declared** (`LoginViewModel`, `AuthRepository.login`), never file paths, prose, or a
152
+ lowercase guess.
153
+ - Use `Type.member` for members; a bare `Type` when asking about the type itself.
154
+ - Put 2–5 names in one `explore` (space-separated in one quoted string); it is faster and more accurate than five
155
+ `query` calls.
156
+ - Add `-j` when parsing `status`, `query`, `callers`, `callees`, `impact`, `affected`, or `files`, then
157
+ `ConvertFrom-Json` / `Select-Object`; do not parse the truncated human output. `explore` and `node` reject `-j`
158
+ (`error: unknown option '-j'`) — read their text output, or `read` the file.
159
+ - **Never query a worktree**: worktrees have no index. The `<HMOS>` index is architecture / existing APIs / call
160
+ chains; the `<ANDROID>` index is the reference implementation; the worktree's `read`/`grep` is the actual file
161
+ content on this branch.
162
+ - **Query order** (coder): start with one `<HMOS>` `explore` to establish what the main checkout already implements (the chunk's modules / pages / VMs / shared-layer symbols) before reading source; during design, query `<ANDROID>` only when the SPEC's `## Android Code Reference` anchor is missing, ambiguous, or the behaviour needs a cross-file call chain — do not query mechanically per scenario; add `impact`/`callers` only when the change touches a shared layer or public API.
163
+ - **Never truncate `explore` output**: no `homegraph explore ... | Select-Object -First N`. The first screenfuls are often `Partial locator` / import-resolution notes, so truncation makes a present file look unindexed. For targeted facts use `query -l` or `node -f ... --symbols-only`; to check presence use `files --pattern`.
164
+ - Branch-isolation rules (for coders/resolvers working in a branch worktree; reviewers run on the main tree — see §6):
165
+ - **`index_ahead`**: the index has the symbol, the worktree does not. It usually belongs to another group's merged
166
+ code or a later commit. **Do not import, copy, or re-implement it**; record `index_ahead` and, if it is genuinely
167
+ required, wait for the dependency to merge. `shared-layer-list` / `wiring-list` remain the authoritative
168
+ inventory — a symbol absent from the index never justifies re-implementing shared code.
169
+ - The reverse: a symbol present here but missing from the index → **trust the worktree**. The worktree is the only
170
+ truth for those files; pass the name to `explore` once more (the snapshot may simply be behind), then `read` the
171
+ file and cite `file:line`.
172
+
173
+ ## 5. Reading the output
174
+
175
+ - `stale`: the files behind this answer are newer than the snapshot, so line numbers may have drifted. Record it; the
176
+ orchestrator syncs before the next round. For this call, verify anchors with `read`.
177
+ - `ambiguous_anchor`: several declarations matched and the CLI picked one. Re-query with `Type.member` or a longer
178
+ qualified name.
179
+ - `scope_limit`: the index covers fewer roots/files than the query assumed (e.g. outside a module root). **Do not
180
+ conclude "it does not exist"**; fall back to `read`/`grep`.
181
+ - `Partial locator`: this call covered only the budgeted part of the context (it lists `Unresolved` / `context expansion limit`). **It does not mean the file is not indexed**; confirm with `files --pattern` or `query`, then decide whether to `read` — never conclude "the index lacks this file" from a partial result.
182
+ - `unavailable`: no usable index (missing, degraded, or an engine error). Fall back to `read`/`grep` and record the
183
+ degradation reason.
184
+ - **The footer is not a freshness proof**: a one-shot CLI run prints `stale` gaps and `complete and up to date` in the
185
+ same response, because the footer reads a pending set that only the MCP watcher fills. Trust the `stale` entries,
186
+ never the footer.
187
+ - Empty is not absent: when `explore` finds nothing, try `query` with a keyword, then `files` + `read`.
188
+
189
+ ## 6. Role recipes
190
+
191
+ ### Coder
192
+
193
+ 1. Read this guide.
194
+ 2. **Start with `<HMOS>`**: before writing the design or reading source, run one `explore` on `<HMOS>` with the
195
+ chunk's module / page / VM / shared-layer symbols (2–5 names) to establish what the main checkout already
196
+ implements. This query is mandatory when `ENGINE_MODE != off` and `<HMOS>` is ready; if it could not run, record
197
+ `fallback: <reason>` or `degraded: <reason>` in the evidence block.
198
+ 3. **When to query `<ANDROID>` during design**: only when the SPEC's `## Android Code Reference` anchor is missing,
199
+ ambiguous, or the scenario needs a cross-file call chain — then run one `explore` with that scenario's symbols.
200
+ When the anchor already gives `file:line`, `read` that file; do not query once per scenario.
201
+ 4. Add `impact`/`callers` when the change touches a shared layer or public API; otherwise `explore` is enough.
202
+ 5. For the files being edited, `read`/`grep` in the worktree is the truth (the two rules in §4).
203
+ 6. Record the queries by phase in `commit-info.md` under `## HomeGraph evidence`; the first line must be `start | hmos`:
204
+
205
+ ```markdown
206
+ ## HomeGraph evidence
207
+ - start | hmos | `explore -p "<HMOS>" "LoginPage LoginViewModel AuthRepository"` → `LoginViewModel.ets:88`
208
+ - design | android | `explore -p "<ANDROID>" "LoginActivity LoginViewModel AuthRepository"` (SPEC so-2 scenario 3 anchor missing) → `LoginActivity.kt:104`, `AuthRepository.kt:57`
209
+ - code | hmos | `impact -p "<HMOS>" -d 2 "LoginViewModel"` (shared-layer change) → `RouteTable.ets:31`
210
+ - anchors: `LoginViewModel.ets:88`, `AuthRepository.ets:41`
211
+ - degraded: none
212
+ ```
213
+
214
+ A missing section, a section with no `file:line`, or **anchors without a `start | hmos` line** is
215
+ `homegraph-evidence-missing` / `homegraph-start-missing` (a warning under `auto`, a failure under `required`). When
216
+ the dispatch carries `engine-degraded-reason`, write the reason into the same block and continue; under
217
+ `ENGINE_MODE=required` a missing `<HMOS>` index stops the coder at step 0.
218
+ ### Reviewer
219
+
220
+ 1. `explore` on `<HMOS>` for the symbols this round changed.
221
+ 2. `impact` or `callers` on `<HMOS>` for the launch path / regression surface.
222
+ 3. `explore` on `<ANDROID>` to check parity with the original implementation.
223
+ 4. The index is a snapshot of the main tree and can lag it (especially after a failed or partial B4 step 0 `sync`): a
224
+ symbol it lists may already be deleted, and a symbol in the tree may be missing from it. Never judge a scenario on
225
+ an index hit alone — confirm with `Read`/`Grep` and cite the tree's `file:line`. The coder's `index_ahead` rule
226
+ does not apply to reviewers (it is for branch worktrees).
227
+ 5. Do not truncate `explore` output (no `| Select-Object -First N`); `Partial locator` only means the budget did not
228
+ cover everything, not that the file is missing — confirm with `files --pattern` or `query` before falling back to
229
+ `read`.
230
+ 6. Put `## HomeGraph evidence` (queries, `file:line`, and any `stale`/degraded note) in `code-review-report.md`; the
231
+ orchestrator copies that section into `findings.md` at B4 step 5.
232
+
233
+ ```markdown
234
+ ## HomeGraph evidence
235
+ - `explore -p "<HMOS>" "LoginViewModel AuthRepository"` → `LoginViewModel.ets:88`
236
+ - `impact -p "<HMOS>" -d 2 "LoginPage"` → `RouteTable.ets:31`
237
+ - `explore -p "<ANDROID>" "LoginActivity AuthRepository"` → `AuthRepository.kt:57`
238
+ - stale: none
239
+ - degraded: none
240
+ ```
241
+
242
+ The only allowed skip is a resource-only / JSON-only change, recorded as `not-applicable` with the file list. A missing
243
+ section is a warning under `auto`; under `required` re-dispatch once, then record `review_contract_violation`, keep the
244
+ round's verdicts, and never turn it into an empty "missing report".
245
+ ### Fixer
246
+
247
+ `review-fix-report.md` records at least one `explore`/`impact` used to locate the defect (command, result, and
248
+ `file:line`). The reviewer's `## HomeGraph evidence` arrives with `findings.md` and may be cited directly.
249
+
250
+ ### Resolver
251
+
252
+ Read-only on `<HMOS>` and `<ANDROID>` (no `init`/`sync`/`index`/`unlock`); record the queries used in
253
+ `resolver/attempt_<n>/notes.md`, and repeat them in the merge commit body when useful.
254
+
255
+ ## 7. Concurrency
256
+
257
+ **Scope:** these read-only rules are **scoped to `a2h-spec-design-pipeline` dispatch**. A skill run standalone (not
258
+ dispatched by the pipeline) keeps its own init/sync behavior.
259
+
260
+ - Single writer: only the orchestrator's `ensure_index.ts` writes an index, at most one write at a time.
261
+ - Readers use WAL: a query sees the last committed snapshot, so one running during `sync` may return the previous
262
+ version. Do not read that as corruption.
263
+ - The engine lock (`.homegraph/homegraph.lock`) is the only mutex; there is no other lock file, and you must not add
264
+ one.
265
+ - Any command that returns `lock_busy` degrades immediately (record it, use the old snapshot or `read` this time).
266
+ **Do not retry in a loop, do not kill, do not unlock**; the next pipeline event tries again.
267
+
268
+ ## 8. Windows / PowerShell
269
+
270
+ - Quote every path and query: `homegraph explore -p "C:\path with space" "TypeA TypeB"`. Do not leave a trailing `\`
271
+ on a quoted path — it escapes the closing quote.
272
+ - Process `-j` / `--json` output with `ConvertFrom-Json` + `Select-Object` (and `-First N` where useful); never
273
+ `head`.
274
+ - `status` takes the repository positionally; all other commands use `-p`. Do not translate one into the other.
275
+ - A timeout does **not** kill the writer: PowerShell / `spawnSync` ends only the `cmd.exe` shim, so the engine's writer
276
+ can survive and keep `homegraph.lock`; the next call sees a live holder and returns `lock_busy`. Never kill it by
277
+ hand on the main checkout.
278
+ - Silence stderr with `2>$null`; judge a native command by `$LASTEXITCODE`, not `$?`.
279
+ - Windows replace/resource-in-use failures (EPERM) are exactly why rebuilds use `--inplace` and never delete the db.
280
+
281
+ ## 9. Degradation
282
+
283
+ - `init` failure or timeout (300000 ms default): record `action:"init"`, `reason:"init_failed"`/`"timeout"`,
284
+ `degraded:true`. Continue under `auto` (sub-agents fall back to `read`/`grep`); hard-stop under `required`.
285
+ - `sync` failure plus a failed rebuild: record `reason:"sync_failed"`/`"index_failed"`/`"index_incomplete"`,
286
+ `degraded:true`; the old index stays in place.
287
+ - A live, unidentified holder: `lock_busy`, no unlock and no index; degraded, retry at the next pipeline event.
288
+ - Still `stale` after a `sync`: files changed after the scan (worktree edits never enter the main index) or the engine
289
+ missed them; record it, continue, and sync again before the next round.
290
+ - `reason:"sync_incomplete"`: the JSON `degraded` may be `false` and the exit code is 0, but **book it as degraded**
291
+ (the snapshot is usable but stale). The orchestrator must test `reason === 'sync_incomplete'`, not only `degraded`.
292
+ - Circuit breaker: two consecutive **non-`lock_busy`** init/sync failures on one index within a campaign set
293
+ `state.engine.hmos.degraded = true` and skip later syncs for that campaign, recorded as `circuit_open`; resume or the
294
+ next wave resets it.
295
+ - `ENGINE_MODE=required`: a required engine failure is a hard stop for the campaign. Write
296
+ `state.engine_blocked = {index, reason, at}` and the wave log, stop the waker, and leave the ledger/worktrees intact
297
+ for inspection; a successful `resume` retry clears it.
298
+
299
+ ## 10. Performance
300
+
301
+ - A query typically costs 1–2 s; with an index already built, `explore` is the cheapest useful call.
302
+ - `sync` is the only expensive call: record its `durationMs` in `state.engine.lastSyncAt` / the wave log, and coalesce
303
+ later triggers within a round when one sync exceeds 5 s.
304
+ - One `explore` with 2–5 names beats several `query` calls; do not re-query the same anchor in one turn — reuse the
305
+ evidence block.
306
+ - Use `-j` with `status`, `query`, `callers`, `callees`, `impact`, `affected`, or `files` to get a structured result
307
+ once instead of running a second time to parse it; `explore` and `node` are read as text.