@buaa_smat/hometrans 0.1.20 → 26.0.0-devecocli.3

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 (992) hide show
  1. package/LICENSE +21 -21
  2. package/agents/build-fixer.md +406 -0
  3. package/agents/code-reviewer.md +461 -496
  4. package/agents/model-render-worker.md +34 -0
  5. package/agents/model-worker.md +23 -0
  6. package/agents/specgen-worker.md +18 -0
  7. package/commands/hometrans.md +17 -0
  8. package/devecocli-plugin/common.ts +2203 -0
  9. package/devecocli-plugin/install.ts +61 -0
  10. package/devecocli-plugin/uninstall.ts +26 -0
  11. package/devecocli-plugin/update.ts +66 -0
  12. package/index.js +1418 -0
  13. package/package.json +81 -64
  14. package/platforms/atomcode/agents/build-fixer.frontmatter.md +6 -0
  15. package/platforms/atomcode/agents/code-reviewer.frontmatter.md +6 -0
  16. package/platforms/atomcode/agents/model-render-worker.frontmatter.md +6 -0
  17. package/platforms/atomcode/agents/model-worker.frontmatter.md +6 -0
  18. package/platforms/atomcode/agents/specgen-worker.frontmatter.md +6 -0
  19. package/platforms/deveco/agents/build-fixer.frontmatter.md +5 -0
  20. package/platforms/deveco/agents/code-reviewer.frontmatter.md +5 -0
  21. package/platforms/deveco/agents/model-render-worker.frontmatter.md +5 -0
  22. package/platforms/deveco/agents/model-worker.frontmatter.md +5 -0
  23. package/platforms/deveco/agents/specgen-worker.frontmatter.md +5 -0
  24. package/platforms/opencode/agents/build-fixer.frontmatter.md +5 -0
  25. package/platforms/opencode/agents/code-reviewer.frontmatter.md +5 -0
  26. package/platforms/opencode/agents/model-render-worker.frontmatter.md +5 -0
  27. package/platforms/opencode/agents/model-worker.frontmatter.md +5 -0
  28. package/platforms/opencode/agents/specgen-worker.frontmatter.md +5 -0
  29. package/plugin.jsonc +12 -0
  30. package/skills/a2h-app-migrate/SKILL.md +181 -0
  31. package/skills/a2h-app-migrate/references/config.example.json +27 -0
  32. package/skills/a2h-app-migrate/references/specs.example.json +19 -0
  33. package/skills/a2h-app-migrate/references/stage-map.md +33 -0
  34. package/skills/a2h-app-migrate/references/workflow.yaml +1600 -0
  35. package/skills/a2h-app-migrate/scripts/android_index.mjs +109 -0
  36. package/skills/a2h-app-migrate/scripts/check_arch_done.mjs +80 -0
  37. package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +95 -0
  38. package/skills/a2h-app-migrate/scripts/check_signing.mjs +152 -0
  39. package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +114 -0
  40. package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +277 -0
  41. package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +77 -0
  42. package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +147 -0
  43. package/skills/a2h-app-migrate/scripts/cli_values.mjs +32 -0
  44. package/skills/a2h-app-migrate/scripts/env_preflight.mjs +1412 -0
  45. package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +651 -0
  46. package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +53 -0
  47. package/skills/a2h-app-migrate/scripts/json_io.mjs +35 -0
  48. package/skills/a2h-app-migrate/scripts/ledger.mjs +104 -0
  49. package/skills/a2h-app-migrate/scripts/lib-yaml-lite.mjs +288 -0
  50. package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +881 -0
  51. package/skills/a2h-app-migrate/scripts/resume_plan.mjs +205 -0
  52. package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +121 -0
  53. package/skills/a2h-app-migrate/scripts/run_dir.mjs +212 -0
  54. package/skills/a2h-app-migrate/scripts/spec_layout.mjs +30 -0
  55. package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +455 -0
  56. package/skills/a2h-app-migrate/test/test_android_index.mjs +80 -0
  57. package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +63 -0
  58. package/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
  59. package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +92 -0
  60. package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
  61. package/skills/a2h-app-migrate/test/test_entry_guards.mjs +93 -0
  62. package/skills/a2h-app-migrate/test/test_env_requirements.mjs +544 -0
  63. package/skills/a2h-app-migrate/test/test_finalize.mjs +89 -0
  64. package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +146 -0
  65. package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +68 -0
  66. package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +91 -0
  67. package/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
  68. package/skills/a2h-app-migrate/test/test_json_io.mjs +32 -0
  69. package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +109 -0
  70. package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +53 -0
  71. package/skills/a2h-app-migrate/test/test_parse_args.mjs +69 -0
  72. package/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
  73. package/skills/a2h-app-migrate/test/test_resume_plan.mjs +144 -0
  74. package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
  75. package/skills/a2h-app-migrate/test/test_run_dir.mjs +315 -0
  76. package/skills/a2h-app-migrate/test/test_skill_doc.mjs +133 -0
  77. package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +133 -0
  78. package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +158 -0
  79. package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +181 -0
  80. package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
  81. package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +53 -0
  82. package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
  83. package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +83 -0
  84. package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +39 -0
  85. package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +168 -0
  86. package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
  87. package/skills/a2h-arch-generate/SKILL.md +375 -0
  88. package/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
  89. package/skills/a2h-arch-generate/examples/simple-conversion-android.md +103 -0
  90. package/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
  91. package/skills/a2h-arch-generate/examples/simple-conversion-uniapp.md +106 -0
  92. package/skills/{hmos-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md → a2h-arch-generate/references/arkts-mvvm-v2.md} +1407 -1407
  93. package/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
  94. package/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
  95. package/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
  96. package/skills/a2h-arch-generate/references/clustering-guidance.md +33 -0
  97. package/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
  98. package/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
  99. package/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
  100. package/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
  101. package/skills/a2h-arch-generate/references/homegraph-workflow.md +120 -0
  102. package/skills/a2h-arch-generate/references/module-evidence-subagent.md +45 -0
  103. package/skills/a2h-arch-generate/references/reconciliation-model.md +204 -0
  104. package/skills/a2h-arch-generate/references/scope-policy.md +28 -0
  105. package/skills/a2h-arch-generate/references/semantic-review.md +65 -0
  106. package/skills/a2h-arch-generate/references/source-baseline.md +93 -0
  107. package/skills/a2h-arch-generate/references/source-ecosystems.md +54 -0
  108. package/skills/a2h-arch-generate/references/transformation-model.md +78 -0
  109. package/skills/a2h-arch-generate/scripts/check_module_staleness.mjs +284 -0
  110. package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +260 -0
  111. package/skills/a2h-arch-generate/scripts/compute_processing_order.mjs +325 -0
  112. package/skills/a2h-arch-generate/scripts/create_project.mjs +149 -0
  113. package/skills/a2h-arch-generate/scripts/dump_core_facts.mjs +151 -0
  114. package/skills/a2h-arch-generate/scripts/extract_core_components.mjs +167 -0
  115. package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +363 -0
  116. package/skills/a2h-arch-generate/scripts/generate_state.mjs +60 -0
  117. package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +326 -0
  118. package/skills/a2h-arch-generate/scripts/inspect_android_project.mjs +3739 -0
  119. package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +800 -0
  120. package/skills/a2h-arch-generate/scripts/inspect_project.mjs +251 -0
  121. package/skills/a2h-arch-generate/scripts/inspect_uniapp_project.mjs +809 -0
  122. package/skills/a2h-arch-generate/scripts/lib/py_compat.mjs +1454 -0
  123. package/skills/a2h-arch-generate/scripts/module_create/create.mjs +136 -0
  124. package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +636 -0
  125. package/skills/a2h-arch-generate/scripts/module_create/hap/build-profile.json5 +33 -0
  126. package/skills/a2h-arch-generate/scripts/module_create/hap/hvigorfile.ts +6 -0
  127. package/skills/a2h-arch-generate/scripts/module_create/hap/obfuscation-rules.txt +23 -0
  128. package/skills/a2h-arch-generate/scripts/module_create/hap/oh-package.json5 +10 -0
  129. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/applicationability/ApplicationAbility.ets +43 -0
  130. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/pages/Index.ets +23 -0
  131. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/module.json5 +26 -0
  132. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/color.json +8 -0
  133. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/float.json +8 -0
  134. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/string.json +16 -0
  135. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/background.png +0 -0
  136. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/foreground.png +0 -0
  137. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/layered_image.json +7 -0
  138. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/startIcon.png +0 -0
  139. package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/profile/main_pages.json +5 -0
  140. package/skills/a2h-arch-generate/scripts/module_create/hap/src/mock/mock-config.json5 +2 -0
  141. package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/ets/test/Ability.test.ets +35 -0
  142. package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/ets/test/List.test.ets +5 -0
  143. package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/module.json5 +11 -0
  144. package/skills/a2h-arch-generate/scripts/module_create/hap/src/test/List.test.ets +5 -0
  145. package/skills/a2h-arch-generate/scripts/module_create/hap/src/test/LocalUnit.test.ets +33 -0
  146. package/skills/a2h-arch-generate/scripts/module_create/har/Index.ets +1 -0
  147. package/skills/a2h-arch-generate/scripts/module_create/har/build-profile.json5 +36 -0
  148. package/skills/a2h-arch-generate/scripts/module_create/har/hvigorfile.ts +6 -0
  149. package/skills/a2h-arch-generate/scripts/module_create/har/obfuscation-rules.txt +23 -0
  150. package/skills/a2h-arch-generate/scripts/module_create/har/oh-package.json5 +9 -0
  151. package/skills/a2h-arch-generate/scripts/module_create/har/src/main/ets/components/MainPage.ets +19 -0
  152. package/skills/a2h-arch-generate/scripts/module_create/har/src/main/module.json5 +9 -0
  153. package/skills/a2h-arch-generate/scripts/module_create/har/src/main/resources/base/element/float.json +8 -0
  154. package/skills/a2h-arch-generate/scripts/module_create/har/src/main/resources/base/element/string.json +8 -0
  155. package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/ets/test/Ability.test.ets +35 -0
  156. package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/ets/test/List.test.ets +5 -0
  157. package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/module.json5 +11 -0
  158. package/skills/a2h-arch-generate/scripts/module_create/har/src/test/List.test.ets +5 -0
  159. package/skills/a2h-arch-generate/scripts/module_create/har/src/test/LocalUnit.test.ets +33 -0
  160. package/skills/a2h-arch-generate/scripts/module_create/hsp/Index.ets +1 -0
  161. package/skills/a2h-arch-generate/scripts/module_create/hsp/build-profile.json5 +36 -0
  162. package/skills/a2h-arch-generate/scripts/module_create/hsp/consumer-rules.txt +0 -0
  163. package/skills/a2h-arch-generate/scripts/module_create/hsp/hvigorfile.ts +6 -0
  164. package/skills/a2h-arch-generate/scripts/module_create/hsp/obfuscation-rules.txt +23 -0
  165. package/skills/a2h-arch-generate/scripts/module_create/hsp/oh-package.json5 +10 -0
  166. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/pages/Index.ets +20 -0
  167. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/utils/Calc.ets +3 -0
  168. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/module.json5 +12 -0
  169. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/element/float.json +8 -0
  170. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/element/string.json +8 -0
  171. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/profile/main_pages.json +5 -0
  172. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/ets/test/Ability.test.ets +35 -0
  173. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/ets/test/List.test.ets +5 -0
  174. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/module.json5 +11 -0
  175. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/test/List.test.ets +5 -0
  176. package/skills/a2h-arch-generate/scripts/module_create/hsp/src/test/LocalUnit.test.ets +33 -0
  177. package/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
  178. package/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
  179. package/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
  180. package/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
  181. package/skills/a2h-arch-generate/scripts/resolve_android_stores.mjs +529 -0
  182. package/skills/a2h-arch-generate/scripts/scaffold_project.mjs +230 -0
  183. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +11 -0
  184. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +12 -0
  185. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +8 -0
  186. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +17 -0
  187. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +3 -0
  188. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +1 -0
  189. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +8 -0
  190. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +14 -0
  191. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +7 -0
  192. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +1 -0
  193. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +3 -0
  194. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +7 -0
  195. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +1 -0
  196. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +3 -0
  197. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +7 -0
  198. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +1 -0
  199. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +3 -0
  200. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +1 -0
  201. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +1 -0
  202. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +7 -0
  203. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +9 -0
  204. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +7 -0
  205. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +10 -0
  206. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +6 -0
  207. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +16 -0
  208. package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
  209. package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
  210. package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1122 -0
  211. package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +191 -0
  212. package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +52 -0
  213. package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +34 -0
  214. package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +138 -0
  215. package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +829 -0
  216. package/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +937 -0
  217. package/skills/a2h-arch-generate/scripts/validate_homegraph_artifacts.mjs +542 -0
  218. package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +415 -0
  219. package/skills/a2h-arkts-logic-coder/SKILL.md +125 -0
  220. package/skills/a2h-arkts-logic-coder/references/ISSUES.md +6 -0
  221. package/skills/a2h-arkts-logic-coder/references/code-generation.md +124 -0
  222. package/skills/a2h-arkts-logic-coder/scripts/check_module_scope.ts +224 -0
  223. package/skills/a2h-arkts-logic-coder/scripts/check_mvvm.ts +377 -0
  224. package/skills/a2h-arkts-logic-coder/scripts/stop_check_hook.ts +443 -0
  225. package/skills/a2h-arkts-logic-coder/scripts/test_check_scripts.ts +211 -0
  226. package/skills/a2h-arkts-logic-coder/scripts/test_worktree_compat.ts +81 -0
  227. package/skills/a2h-batch-ui-align/SKILL.md +321 -0
  228. package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +81 -0
  229. package/skills/a2h-batch-ui-align/flowchart.html +271 -0
  230. package/skills/a2h-batch-ui-align/references/conversion-procedure.md +572 -0
  231. package/skills/a2h-batch-ui-align/references/incremental-scope.md +139 -0
  232. package/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
  233. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2535 -2533
  234. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +558 -555
  235. package/skills/{hmos-incremental-ui-align/references → a2h-batch-ui-align/references/mappings}/android-to-harmonyOS-ui-layout-mapping-reference.md +117 -117
  236. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +648 -648
  237. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +2088 -2088
  238. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +1033 -1033
  239. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +1183 -1183
  240. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +576 -576
  241. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +297 -297
  242. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +395 -395
  243. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +902 -902
  244. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +106 -106
  245. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +1178 -1178
  246. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md +911 -911
  247. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +354 -354
  248. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +11 -11
  249. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +206 -206
  250. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +373 -373
  251. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +158 -158
  252. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +750 -750
  253. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +1704 -1704
  254. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +1012 -1012
  255. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +164 -164
  256. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +840 -840
  257. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +856 -856
  258. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +83 -83
  259. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +294 -294
  260. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +1407 -1407
  261. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +1220 -1220
  262. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +47 -47
  263. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +133 -133
  264. package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +840 -840
  265. package/skills/a2h-batch-ui-align/references/source-only-tier.md +32 -0
  266. package/skills/a2h-batch-ui-align/references/step3-capture.md +214 -0
  267. package/skills/a2h-batch-ui-align/references/step4-prepare.md +196 -0
  268. package/skills/a2h-batch-ui-align/references/step5-convert.md +205 -0
  269. package/skills/a2h-batch-ui-align/scripts/agent_cli.mjs +572 -0
  270. package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/scripts/android_parse_fast.ts +246 -39
  271. package/skills/a2h-batch-ui-align/scripts/answers_check.mjs +86 -0
  272. package/skills/a2h-batch-ui-align/scripts/arkts_static_check.ts +3858 -0
  273. package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +1675 -0
  274. package/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
  275. package/skills/a2h-batch-ui-align/scripts/detach.mjs +258 -0
  276. package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1644 -0
  277. package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
  278. package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +166 -0
  279. package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1627 -0
  280. package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +1869 -0
  281. package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +696 -0
  282. package/skills/a2h-batch-ui-align/scripts/harmony_index.mjs +218 -0
  283. package/skills/a2h-batch-ui-align/scripts/host_env.mjs +208 -0
  284. package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1229 -0
  285. package/skills/a2h-batch-ui-align/scripts/occlusion.mjs +141 -0
  286. package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1179 -0
  287. package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1036 -0
  288. package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +217 -0
  289. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +253 -0
  290. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +312 -0
  291. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +241 -0
  292. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +341 -0
  293. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
  294. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
  295. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +91 -0
  296. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +445 -0
  297. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +356 -0
  298. package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +290 -0
  299. package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +74 -0
  300. package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +31 -0
  301. package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +564 -0
  302. package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
  303. package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +126 -0
  304. package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +241 -0
  305. package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1451 -0
  306. package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +215 -0
  307. package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +95 -0
  308. package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +115 -0
  309. package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +170 -0
  310. package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
  311. package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +244 -0
  312. package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +166 -0
  313. package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +49 -0
  314. package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +219 -0
  315. package/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +470 -0
  316. package/skills/a2h-coldstart-smoke-gate/SKILL.md +57 -0
  317. package/skills/a2h-dashboard-render/SKILL.md +65 -0
  318. package/skills/a2h-dashboard-render/references/artifact-contract.jsonc +147 -0
  319. package/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
  320. package/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
  321. package/skills/a2h-dashboard-render/references//347/234/213/346/235/277/350/257/264/346/230/216.md +83 -0
  322. package/skills/a2h-dashboard-render/scripts/artifact_contract.mjs +138 -0
  323. package/skills/a2h-dashboard-render/scripts/check-registry.mjs +87 -0
  324. package/skills/a2h-dashboard-render/scripts/dashboard.mjs +3215 -0
  325. package/skills/a2h-dashboard-render/scripts/device_capture.mjs +2010 -0
  326. package/skills/a2h-dashboard-render/scripts/page_capture.mjs +828 -0
  327. package/skills/a2h-dashboard-render/scripts/usage_readers.mjs +459 -0
  328. package/skills/a2h-dashboard-render/scripts/usage_worker.mjs +13 -0
  329. package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +1 -0
  330. package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
  331. package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
  332. package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
  333. package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +1 -0
  334. package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +170 -0
  335. package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
  336. package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +182 -0
  337. package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +64 -0
  338. package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1172 -0
  339. package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +251 -0
  340. package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
  341. package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
  342. package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +303 -0
  343. package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
  344. package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +444 -0
  345. package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/SKILL.md +305 -293
  346. package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/arkts-strict-patterns.md +219 -219
  347. package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/known-patterns.md +157 -157
  348. package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/rdb-entity-pattern.md +131 -131
  349. package/skills/a2h-module-semantic-docs/SKILL.md +227 -0
  350. package/skills/a2h-module-semantic-docs/scripts/commit_module_state.mjs +168 -0
  351. package/skills/a2h-module-semantic-docs/scripts/lib/py_compat.mjs +688 -0
  352. package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +1021 -0
  353. package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
  354. package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
  355. package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
  356. package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
  357. package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
  358. package/skills/a2h-resource-convert/SKILL.md +369 -0
  359. package/skills/{hmos-resources-convert → a2h-resource-convert}/references/code-vector-icon-rules.md +335 -335
  360. package/skills/{hmos-resources-convert → a2h-resource-convert}/references/conversion-rules.md +687 -676
  361. package/skills/{hmos-resources-convert → a2h-resource-convert}/references/dependency-analysis-rules.md +410 -410
  362. package/skills/a2h-resource-convert/references/incremental-page-migration.md +251 -0
  363. package/skills/{hmos-resources-convert → a2h-resource-convert}/references/lottie-conversion-rules.md +219 -219
  364. package/skills/{hmos-resources-convert → a2h-resource-convert}/references/resource-mapping-rules.md +493 -482
  365. package/skills/a2h-resource-convert/references/step3_5-dependency-filter.md +54 -0
  366. package/skills/a2h-resource-convert/references/step4-qualifiers-and-values.md +142 -0
  367. package/skills/a2h-resource-convert/references/step4-resource-types.md +249 -0
  368. package/skills/a2h-resource-convert/references/step5-reference-resolution.md +154 -0
  369. package/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
  370. package/skills/{hmos-resources-convert → a2h-resource-convert}/references/xml-drawable-to-svg-rules.md +630 -592
  371. package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/a2h_resource_convert.ts +2529 -2163
  372. package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +1072 -0
  373. package/skills/a2h-resource-convert/scripts/app_identity.ts +947 -0
  374. package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/code_vector_icons.ts +607 -591
  375. package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +989 -0
  376. package/skills/a2h-resource-convert/scripts/extract_project_resources.ts +1464 -0
  377. package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/svg_fidelity_check.ts +632 -632
  378. package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +182 -0
  379. package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +206 -0
  380. package/skills/a2h-spec-design/SKILL.md +336 -0
  381. package/skills/a2h-spec-design/scripts/inspect_spec_design_inputs.mjs +146 -0
  382. package/skills/a2h-spec-design/scripts/lib/py_compat.mjs +481 -0
  383. package/skills/a2h-spec-design/scripts/move_spec_technical_reference.mjs +159 -0
  384. package/skills/a2h-spec-design/scripts/resolve_module_design.mjs +102 -0
  385. package/skills/a2h-spec-design/scripts/validate_spec_design_output.mjs +285 -0
  386. package/skills/a2h-spec-design/test/golden/inspect_happy.json +20 -0
  387. package/skills/a2h-spec-design/test/golden/move_design.md +18 -0
  388. package/skills/a2h-spec-design/test/golden/move_design_crlf.md +18 -0
  389. package/skills/a2h-spec-design/test/golden/move_spec.md +7 -0
  390. package/skills/a2h-spec-design/test/golden/resolve_cases.json +36 -0
  391. package/skills/a2h-spec-design/test/golden/validate_issue_file.md +12 -0
  392. package/skills/a2h-spec-design/test/golden/validate_issues.json +57 -0
  393. package/skills/a2h-spec-design/test/test_spec_design_scripts.mjs +381 -0
  394. package/skills/a2h-spec-design-pipeline/SKILL.md +228 -0
  395. package/skills/a2h-spec-design-pipeline/package.json +4 -0
  396. package/skills/a2h-spec-design-pipeline/references/coding-loop.md +63 -0
  397. package/skills/a2h-spec-design-pipeline/references/execution-model.md +69 -0
  398. package/skills/a2h-spec-design-pipeline/references/final-report-template.md +24 -0
  399. package/skills/a2h-spec-design-pipeline/references/initialization.md +57 -0
  400. package/skills/a2h-spec-design-pipeline/references/merge-queue.md +21 -0
  401. package/skills/a2h-spec-design-pipeline/references/scripts.md +27 -0
  402. package/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
  403. package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +21 -0
  404. package/skills/a2h-spec-design-pipeline/scripts/atomic_write.ts +42 -0
  405. package/skills/a2h-spec-design-pipeline/scripts/audit_claims.ts +252 -0
  406. package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +77 -0
  407. package/skills/a2h-spec-design-pipeline/scripts/deps_ready.ts +195 -0
  408. package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +651 -0
  409. package/skills/a2h-spec-design-pipeline/scripts/git_baseline.ts +124 -0
  410. package/skills/a2h-spec-design-pipeline/scripts/inflight.mjs +944 -0
  411. package/skills/a2h-spec-design-pipeline/scripts/lib/bgcli.mjs +95 -0
  412. package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +502 -0
  413. package/skills/a2h-spec-design-pipeline/scripts/plan_waves.ts +475 -0
  414. package/skills/a2h-spec-design-pipeline/scripts/reconcile.mjs +218 -0
  415. package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +164 -0
  416. package/skills/a2h-spec-design-pipeline/scripts/test_atomic_write.ts +44 -0
  417. package/skills/a2h-spec-design-pipeline/scripts/test_audit_claims.ts +301 -0
  418. package/skills/a2h-spec-design-pipeline/scripts/test_bgcli.mjs +64 -0
  419. package/skills/a2h-spec-design-pipeline/scripts/test_branch_landed.ts +87 -0
  420. package/skills/a2h-spec-design-pipeline/scripts/test_deps_ready.ts +265 -0
  421. package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +675 -0
  422. package/skills/a2h-spec-design-pipeline/scripts/test_git_baseline.ts +105 -0
  423. package/skills/a2h-spec-design-pipeline/scripts/test_inflight.mjs +452 -0
  424. package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +375 -0
  425. package/skills/a2h-spec-design-pipeline/scripts/test_plan_waves.ts +561 -0
  426. package/skills/a2h-spec-design-pipeline/scripts/test_reconcile.mjs +182 -0
  427. package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +138 -0
  428. package/skills/a2h-spec-design-pipeline/scripts/test_watchdog.mjs +289 -0
  429. package/skills/a2h-spec-design-pipeline/scripts/watchdog.mjs +441 -0
  430. package/skills/a2h-spec-generate/SKILL.md +285 -0
  431. package/skills/a2h-spec-generate/package.json +9 -0
  432. package/skills/a2h-spec-generate/references/batch-mode.md +151 -0
  433. package/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
  434. package/skills/a2h-spec-generate/references/fusion-task-contract.md +114 -0
  435. package/skills/a2h-spec-generate/references/input-formats.md +27 -0
  436. package/skills/a2h-spec-generate/references/library-evidence.md +3 -0
  437. package/skills/a2h-spec-generate/references/method-discipline.md +64 -0
  438. package/skills/a2h-spec-generate/references/optional-gates.json +45 -0
  439. package/skills/a2h-spec-generate/references/recall-guide.md +83 -0
  440. package/skills/a2h-spec-generate/references/recall-terse.md +3 -0
  441. package/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
  442. package/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
  443. package/skills/a2h-spec-generate/references/review-checklist.md +21 -0
  444. package/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
  445. package/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
  446. package/skills/a2h-spec-generate/references/spec-samples.md +65 -0
  447. package/skills/a2h-spec-generate/references/specs.schema.json +79 -0
  448. package/skills/a2h-spec-generate/references/synthesis-rules.md +143 -0
  449. package/skills/a2h-spec-generate/references/transfer-file.md +5 -0
  450. package/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
  451. package/skills/a2h-spec-generate/references/worker-rules.md +126 -0
  452. package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +514 -0
  453. package/skills/a2h-spec-generate/scripts/check_spec.ts +361 -0
  454. package/skills/a2h-spec-generate/scripts/collect-specs.mjs +470 -0
  455. package/skills/a2h-spec-generate/scripts/detect-project.mjs +271 -0
  456. package/skills/a2h-spec-generate/scripts/ensure-index.mjs +188 -0
  457. package/skills/a2h-spec-generate/scripts/feature-stem.mjs +150 -0
  458. package/skills/a2h-spec-generate/scripts/inspect-uniapp.mjs +733 -0
  459. package/skills/{hmos-spec-generate → a2h-spec-generate}/scripts/parse_requirements.ts +515 -515
  460. package/skills/a2h-spec-generate/scripts/prepare-facts.mjs +307 -0
  461. package/skills/a2h-spec-generate/scripts/publication-verdict.mjs +171 -0
  462. package/skills/a2h-spec-generate/scripts/publish-specs.mjs +280 -0
  463. package/skills/a2h-spec-generate/scripts/render-tasks.mjs +399 -0
  464. package/skills/a2h-spec-generate/scripts/report.mjs +132 -0
  465. package/skills/a2h-spec-generate/scripts/reqgen/assets/dashboard.html +149 -0
  466. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-api.js +49 -0
  467. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-code-view.js +140 -0
  468. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-format.js +16 -0
  469. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-handoff.js +42 -0
  470. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-splitters.js +78 -0
  471. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-state.js +47 -0
  472. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-tree.js +194 -0
  473. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-virtual-list.js +118 -0
  474. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.css +245 -0
  475. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.html +99 -0
  476. package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.js +220 -0
  477. package/skills/a2h-spec-generate/scripts/reqgen/package-lock.json +47 -0
  478. package/skills/a2h-spec-generate/scripts/reqgen/package.json +23 -0
  479. package/skills/a2h-spec-generate/scripts/reqgen/src/agent-render/serve.ts +95 -0
  480. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/callback-call-sites.ts +82 -0
  481. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/area-ownership.ts +496 -0
  482. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
  483. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/callback-flow.ts +386 -0
  484. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
  485. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/index.ts +24 -0
  486. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/index.ts +22 -0
  487. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
  488. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
  489. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1270 -0
  490. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/index.ts +10 -0
  491. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/projection.ts +804 -0
  492. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/render-projection.ts +51 -0
  493. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/android-interaction-registry.ts +286 -0
  494. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/builder.ts +453 -0
  495. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/compose-api-registry.ts +526 -0
  496. package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/index.ts +15 -0
  497. package/skills/a2h-spec-generate/scripts/reqgen/src/connector/index.ts +1 -0
  498. package/skills/a2h-spec-generate/scripts/reqgen/src/connector/utg-inbound.ts +763 -0
  499. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/area-graph.ts +383 -0
  500. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/artifact.ts +68 -0
  501. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/common.ts +88 -0
  502. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/diagnostic.ts +64 -0
  503. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/gap-audit.ts +113 -0
  504. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/index.ts +12 -0
  505. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/name-traceability.ts +108 -0
  506. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/raw-fact.ts +377 -0
  507. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/req-model.ts +238 -0
  508. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/run.ts +134 -0
  509. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/semantic-completeness.ts +35 -0
  510. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/source-facts.ts +48 -0
  511. package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/utg.ts +133 -0
  512. package/skills/a2h-spec-generate/scripts/reqgen/src/core/output-guard.ts +42 -0
  513. package/skills/a2h-spec-generate/scripts/reqgen/src/core/stable-id.ts +118 -0
  514. package/skills/a2h-spec-generate/scripts/reqgen/src/cross-area-tally-cli.ts +179 -0
  515. package/skills/a2h-spec-generate/scripts/reqgen/src/dashboard-cli.ts +188 -0
  516. package/skills/a2h-spec-generate/scripts/reqgen/src/dump/dump.ts +1184 -0
  517. package/skills/a2h-spec-generate/scripts/reqgen/src/dump/index.ts +1 -0
  518. package/skills/a2h-spec-generate/scripts/reqgen/src/dump-cli.ts +373 -0
  519. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1014 -0
  520. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-output.ts +32 -0
  521. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +142 -0
  522. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +312 -0
  523. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +310 -0
  524. package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +685 -0
  525. package/skills/a2h-spec-generate/scripts/reqgen/src/graph/paths.ts +575 -0
  526. package/skills/a2h-spec-generate/scripts/reqgen/src/homegraph-cli.ts +50 -0
  527. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/android-resource-resolver.ts +391 -0
  528. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/androidx-preference-contracts.ts +44 -0
  529. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +640 -0
  530. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/cross-area.ts +207 -0
  531. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/finalizer.ts +1297 -0
  532. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/identity.ts +186 -0
  533. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/index.ts +16 -0
  534. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/planner.ts +312 -0
  535. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/preference-enrichment.ts +793 -0
  536. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/raw-facts.ts +355 -0
  537. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/rules.ts +271 -0
  538. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/scanner.ts +666 -0
  539. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/schema.ts +365 -0
  540. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/stable-key.ts +144 -0
  541. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +301 -0
  542. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
  543. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/uniapp-utg-adapter.ts +543 -0
  544. package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/xml-adapter.ts +262 -0
  545. package/skills/a2h-spec-generate/scripts/reqgen/src/model/assemble.ts +2079 -0
  546. package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +157 -0
  547. package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +809 -0
  548. package/skills/a2h-spec-generate/scripts/reqgen/src/model/index.ts +17 -0
  549. package/skills/a2h-spec-generate/scripts/reqgen/src/model/io.ts +165 -0
  550. package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +806 -0
  551. package/skills/a2h-spec-generate/scripts/reqgen/src/model/query.ts +360 -0
  552. package/skills/a2h-spec-generate/scripts/reqgen/src/model/seeds.ts +218 -0
  553. package/skills/a2h-spec-generate/scripts/reqgen/src/model/spec-bindings-sidecar.ts +240 -0
  554. package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +359 -0
  555. package/skills/a2h-spec-generate/scripts/reqgen/src/model-cli.ts +500 -0
  556. package/skills/a2h-spec-generate/scripts/reqgen/src/pipeline/index.ts +7 -0
  557. package/skills/a2h-spec-generate/scripts/reqgen/src/pipeline/output.ts +307 -0
  558. package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +172 -0
  559. package/skills/a2h-spec-generate/scripts/reqgen/src/source-cov/index.ts +1 -0
  560. package/skills/a2h-spec-generate/scripts/reqgen/src/source-cov/source-cov.ts +176 -0
  561. package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
  562. package/skills/a2h-spec-generate/scripts/reqgen/src/validation/area-graph.ts +490 -0
  563. package/skills/a2h-spec-generate/scripts/reqgen/src/validation/index.ts +23 -0
  564. package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-model.ts +957 -0
  565. package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +248 -0
  566. package/skills/a2h-spec-generate/scripts/reqgen/src/validation/semantic-area-graph.ts +1600 -0
  567. package/skills/a2h-spec-generate/scripts/reqgen/src/validation/types.ts +10 -0
  568. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/artifact-data.ts +201 -0
  569. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-api.ts +74 -0
  570. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-code-view.ts +180 -0
  571. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-format.ts +18 -0
  572. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-handoff.ts +55 -0
  573. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-splitters.ts +78 -0
  574. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-state.ts +66 -0
  575. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-tree.ts +232 -0
  576. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-virtual-list.ts +179 -0
  577. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz.ts +240 -0
  578. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/contracts.d.ts +86 -0
  579. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/index.ts +3 -0
  580. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/server.ts +239 -0
  581. package/skills/a2h-spec-generate/scripts/reqgen/src/viz/source-project.ts +316 -0
  582. package/skills/a2h-spec-generate/scripts/reqgen/src/viz-cli.ts +200 -0
  583. package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +50 -0
  584. package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +75 -0
  585. package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +256 -0
  586. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +576 -0
  587. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +290 -0
  588. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1323 -0
  589. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +574 -0
  590. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
  591. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +831 -0
  592. package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +548 -0
  593. package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +117 -0
  594. package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +396 -0
  595. package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +175 -0
  596. package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +298 -0
  597. package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
  598. package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +286 -0
  599. package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +25 -0
  600. package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
  601. package/skills/a2h-spec-generate/scripts/reqgen/tsconfig.json +16 -0
  602. package/skills/a2h-spec-generate/scripts/reqgen/tsconfig.viz-client.json +12 -0
  603. package/skills/{hmos-spec-generate → a2h-spec-generate}/template/REQ.txt +22 -22
  604. package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +632 -0
  605. package/skills/a2h-spec-generate/test/check-spec.test.ts +200 -0
  606. package/skills/a2h-spec-generate/test/collect-specs.test.mjs +538 -0
  607. package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
  608. package/skills/a2h-spec-generate/test/ensure-index.test.mjs +45 -0
  609. package/skills/a2h-spec-generate/test/feature-stem.test.mjs +147 -0
  610. package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +3 -0
  611. package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +3 -0
  612. package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +3 -0
  613. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +9 -0
  614. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +8 -0
  615. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
  616. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
  617. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +6 -0
  618. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +4 -0
  619. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
  620. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
  621. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
  622. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
  623. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +3 -0
  624. package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +8 -0
  625. package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +1 -0
  626. package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
  627. package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +157 -0
  628. package/skills/a2h-spec-generate/test/publish-specs.test.mjs +282 -0
  629. package/skills/a2h-spec-generate/test/render-tasks.test.mjs +593 -0
  630. package/skills/a2h-utg-explorer/SKILL.md +120 -0
  631. package/skills/a2h-utg-explorer/assets/final_viewer.html +64 -0
  632. package/skills/a2h-utg-explorer/assets/u2.LICENSE +21 -0
  633. package/skills/a2h-utg-explorer/assets/u2.NOTICE +25 -0
  634. package/skills/a2h-utg-explorer/assets/u2.jar +0 -0
  635. package/skills/a2h-utg-explorer/references/architecture.md +270 -0
  636. package/skills/a2h-utg-explorer/references/protocol.md +9 -0
  637. package/skills/a2h-utg-explorer/scripts/app_settings.mjs +143 -0
  638. package/skills/a2h-utg-explorer/scripts/audit.mjs +167 -0
  639. package/skills/a2h-utg-explorer/scripts/close_phases.mjs +66 -0
  640. package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +749 -0
  641. package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +597 -0
  642. package/skills/a2h-utg-explorer/scripts/device_health.mjs +227 -0
  643. package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +276 -0
  644. package/skills/a2h-utg-explorer/scripts/evidence.mjs +108 -0
  645. package/skills/a2h-utg-explorer/scripts/final_utg.mjs +428 -0
  646. package/skills/a2h-utg-explorer/scripts/hint_check.mjs +89 -0
  647. package/skills/a2h-utg-explorer/scripts/plan.mjs +258 -0
  648. package/skills/a2h-utg-explorer/scripts/promote_dynamic.mjs +170 -0
  649. package/skills/a2h-utg-explorer/scripts/recover.mjs +467 -0
  650. package/skills/a2h-utg-explorer/scripts/recover_b.mjs +542 -0
  651. package/skills/a2h-utg-explorer/scripts/recover_d.mjs +369 -0
  652. package/skills/a2h-utg-explorer/scripts/rejudge.mjs +203 -0
  653. package/skills/a2h-utg-explorer/scripts/report.mjs +143 -0
  654. package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +844 -0
  655. package/skills/a2h-utg-explorer/scripts/run_device.mjs +137 -0
  656. package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
  657. package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
  658. package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +243 -0
  659. package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +104 -0
  660. package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +223 -0
  661. package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +88 -0
  662. package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +187 -0
  663. package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
  664. package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +136 -0
  665. package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
  666. package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +16 -0
  667. package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +251 -0
  668. package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +42 -0
  669. package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +162 -0
  670. package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +193 -0
  671. package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +204 -0
  672. package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +355 -0
  673. package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
  674. package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +212 -0
  675. package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
  676. package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +267 -0
  677. package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +213 -0
  678. package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
  679. package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +453 -0
  680. package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +131 -0
  681. package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +229 -0
  682. package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +336 -0
  683. package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
  684. package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
  685. package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
  686. package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +346 -0
  687. package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +112 -0
  688. package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
  689. package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +24 -0
  690. package/skills/a2h-utg-explorer/scripts/utg_explorer/_device_io.mjs +244 -0
  691. package/skills/a2h-utg-explorer/scripts/utg_explorer/_py.mjs +2097 -0
  692. package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +1231 -0
  693. package/skills/a2h-utg-explorer/scripts/utg_explorer/attest.mjs +63 -0
  694. package/skills/a2h-utg-explorer/scripts/utg_explorer/chain.mjs +63 -0
  695. package/skills/a2h-utg-explorer/scripts/utg_explorer/coverage.mjs +89 -0
  696. package/skills/a2h-utg-explorer/scripts/utg_explorer/device_lock.mjs +46 -0
  697. package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1200 -0
  698. package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +1558 -0
  699. package/skills/a2h-utg-explorer/scripts/variant.mjs +75 -0
  700. package/skills/a2h-utg-explorer/scripts/worklist_parts.mjs +122 -0
  701. package/skills/a2h-utg-static/SKILL.md +361 -0
  702. package/skills/a2h-utg-static/config.json +19 -0
  703. package/skills/a2h-utg-static/references/extractors.md +217 -0
  704. package/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
  705. package/skills/a2h-utg-static/references/view-interactions.md +215 -0
  706. package/skills/a2h-utg-static/scripts/_graph.mjs +361 -0
  707. package/skills/a2h-utg-static/scripts/_py.mjs +2177 -0
  708. package/skills/a2h-utg-static/scripts/_spawn.mjs +45 -0
  709. package/skills/a2h-utg-static/scripts/activity_nav.mjs +738 -0
  710. package/skills/a2h-utg-static/scripts/activity_widgets.mjs +254 -0
  711. package/skills/a2h-utg-static/scripts/adapter_nav.mjs +229 -0
  712. package/skills/a2h-utg-static/scripts/androidfragment_nav.mjs +208 -0
  713. package/skills/a2h-utg-static/scripts/assemble.mjs +2065 -0
  714. package/skills/a2h-utg-static/scripts/audit.mjs +268 -0
  715. package/skills/a2h-utg-static/scripts/carry_answers.mjs +201 -0
  716. package/skills/a2h-utg-static/scripts/click_paths.mjs +594 -0
  717. package/skills/a2h-utg-static/scripts/compose_body_text.mjs +226 -0
  718. package/skills/a2h-utg-static/scripts/compose_merge.mjs +263 -0
  719. package/skills/a2h-utg-static/scripts/compose_nav.mjs +1216 -0
  720. package/skills/a2h-utg-static/scripts/compose_navbar_nav.mjs +238 -0
  721. package/skills/a2h-utg-static/scripts/compose_overlay.mjs +2760 -0
  722. package/skills/a2h-utg-static/scripts/compose_titles.mjs +365 -0
  723. package/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
  724. package/skills/a2h-utg-static/scripts/dialog_listener_nav.mjs +237 -0
  725. package/skills/a2h-utg-static/scripts/dialogshow_nav.mjs +308 -0
  726. package/skills/a2h-utg-static/scripts/fragfactory_nav.mjs +170 -0
  727. package/skills/a2h-utg-static/scripts/fragment_nav.mjs +1136 -0
  728. package/skills/a2h-utg-static/scripts/guard_subjects.mjs +162 -0
  729. package/skills/a2h-utg-static/scripts/hg_query.mjs +137 -0
  730. package/skills/a2h-utg-static/scripts/host_resolve.mjs +393 -0
  731. package/skills/a2h-utg-static/scripts/hybrid_bundle.mjs +165 -0
  732. package/skills/a2h-utg-static/scripts/hybrid_pages.mjs +713 -0
  733. package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +660 -0
  734. package/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
  735. package/skills/a2h-utg-static/scripts/io_utils.mjs +59 -0
  736. package/skills/a2h-utg-static/scripts/label_resolve.mjs +864 -0
  737. package/skills/a2h-utg-static/scripts/launch_extras.mjs +91 -0
  738. package/skills/a2h-utg-static/scripts/layout_resolve.mjs +148 -0
  739. package/skills/a2h-utg-static/scripts/manifest.mjs +483 -0
  740. package/skills/a2h-utg-static/scripts/measure/measure_corpus.mjs +297 -0
  741. package/skills/a2h-utg-static/scripts/measure/measure_guards.mjs +98 -0
  742. package/skills/a2h-utg-static/scripts/media_browse_nav.mjs +356 -0
  743. package/skills/a2h-utg-static/scripts/menu_nav.mjs +603 -0
  744. package/skills/a2h-utg-static/scripts/navactions_nav.mjs +255 -0
  745. package/skills/a2h-utg-static/scripts/nl_hints.mjs +453 -0
  746. package/skills/a2h-utg-static/scripts/orphan_overlay_nav.mjs +89 -0
  747. package/skills/a2h-utg-static/scripts/phase_plan.mjs +108 -0
  748. package/skills/a2h-utg-static/scripts/phase_planner.mjs +119 -0
  749. package/skills/a2h-utg-static/scripts/plaindialog_nav.mjs +411 -0
  750. package/skills/a2h-utg-static/scripts/preference_nav.mjs +761 -0
  751. package/skills/a2h-utg-static/scripts/preference_widgets.mjs +142 -0
  752. package/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
  753. package/skills/a2h-utg-static/scripts/registry_nav.mjs +288 -0
  754. package/skills/a2h-utg-static/scripts/run_pipeline.mjs +870 -0
  755. package/skills/a2h-utg-static/scripts/scope_utils.mjs +430 -0
  756. package/skills/a2h-utg-static/scripts/screen_merge.mjs +287 -0
  757. package/skills/a2h-utg-static/scripts/screen_nav.mjs +279 -0
  758. package/skills/a2h-utg-static/scripts/single_host_nav.mjs +291 -0
  759. package/skills/a2h-utg-static/scripts/starter_nav.mjs +198 -0
  760. package/skills/a2h-utg-static/scripts/state_guard.mjs +579 -0
  761. package/skills/a2h-utg-static/scripts/static_prior.mjs +904 -0
  762. package/skills/a2h-utg-static/scripts/tests/_zipw.mjs +28 -0
  763. package/skills/a2h-utg-static/scripts/tests/probe_autoload.mjs +108 -0
  764. package/skills/a2h-utg-static/scripts/tests/probe_layout_fragments.mjs +90 -0
  765. package/skills/a2h-utg-static/scripts/tests/probe_unknown_scope.mjs +61 -0
  766. package/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
  767. package/skills/a2h-utg-static/scripts/tests/test_activity_alias_launcher.mjs +90 -0
  768. package/skills/a2h-utg-static/scripts/tests/test_activity_supertype_chain.mjs +106 -0
  769. package/skills/a2h-utg-static/scripts/tests/test_bottom_sheet_container.mjs +58 -0
  770. package/skills/a2h-utg-static/scripts/tests/test_branch_guard.mjs +19 -0
  771. package/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
  772. package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +103 -0
  773. package/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
  774. package/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
  775. package/skills/a2h-utg-static/scripts/tests/test_commit_scope.mjs +113 -0
  776. package/skills/a2h-utg-static/scripts/tests/test_compose_file_private_route.mjs +117 -0
  777. package/skills/a2h-utg-static/scripts/tests/test_compose_nested_graph.mjs +166 -0
  778. package/skills/a2h-utg-static/scripts/tests/test_compose_route_holder_collision.mjs +112 -0
  779. package/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +284 -0
  780. package/skills/a2h-utg-static/scripts/tests/test_custom_source_root.mjs +71 -0
  781. package/skills/a2h-utg-static/scripts/tests/test_defensive_null_guard.mjs +77 -0
  782. package/skills/a2h-utg-static/scripts/tests/test_dialog_orphan_entries.mjs +99 -0
  783. package/skills/a2h-utg-static/scripts/tests/test_dialog_page_owner.mjs +69 -0
  784. package/skills/a2h-utg-static/scripts/tests/test_dialogshow_builder_forms.mjs +96 -0
  785. package/skills/a2h-utg-static/scripts/tests/test_dialogshow_java_factory.mjs +37 -0
  786. package/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
  787. package/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
  788. package/skills/a2h-utg-static/scripts/tests/test_edge_dedupe_by_gesture.mjs +111 -0
  789. package/skills/a2h-utg-static/scripts/tests/test_edge_provenance_lint.mjs +70 -0
  790. package/skills/a2h-utg-static/scripts/tests/test_enclosing_gesture.mjs +69 -0
  791. package/skills/a2h-utg-static/scripts/tests/test_external_surface_roots.mjs +43 -0
  792. package/skills/a2h-utg-static/scripts/tests/test_find_package_indirect.mjs +67 -0
  793. package/skills/a2h-utg-static/scripts/tests/test_forwarding_wrapper.mjs +38 -0
  794. package/skills/a2h-utg-static/scripts/tests/test_fragment_containment.mjs +85 -0
  795. package/skills/a2h-utg-static/scripts/tests/test_fragment_helper_trigger.mjs +92 -0
  796. package/skills/a2h-utg-static/scripts/tests/test_graph.mjs +55 -0
  797. package/skills/a2h-utg-static/scripts/tests/test_guard_clause.mjs +86 -0
  798. package/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +119 -0
  799. package/skills/a2h-utg-static/scripts/tests/test_host_kind_by_chain.mjs +68 -0
  800. package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
  801. package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
  802. package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +293 -0
  803. package/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
  804. package/skills/a2h-utg-static/scripts/tests/test_interaction_sites.mjs +272 -0
  805. package/skills/a2h-utg-static/scripts/tests/test_item_data_instance.mjs +51 -0
  806. package/skills/a2h-utg-static/scripts/tests/test_kotlin_fn_spans.mjs +69 -0
  807. package/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
  808. package/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
  809. package/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
  810. package/skills/a2h-utg-static/scripts/tests/test_layout_declared_fragment.mjs +103 -0
  811. package/skills/a2h-utg-static/scripts/tests/test_listener_call_forms.mjs +79 -0
  812. package/skills/a2h-utg-static/scripts/tests/test_listener_receiver_binding.mjs +47 -0
  813. package/skills/a2h-utg-static/scripts/tests/test_manifest_exported_default.mjs +40 -0
  814. package/skills/a2h-utg-static/scripts/tests/test_manifest_filters_modules.mjs +84 -0
  815. package/skills/a2h-utg-static/scripts/tests/test_manifest_srcfile.mjs +68 -0
  816. package/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
  817. package/skills/a2h-utg-static/scripts/tests/test_module_namespace.mjs +33 -0
  818. package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +44 -0
  819. package/skills/a2h-utg-static/scripts/tests/test_multiple_entry_contracts.mjs +80 -0
  820. package/skills/a2h-utg-static/scripts/tests/test_nav_graph_xml.mjs +35 -0
  821. package/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
  822. package/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
  823. package/skills/a2h-utg-static/scripts/tests/test_node_id_collision.mjs +57 -0
  824. package/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
  825. package/skills/a2h-utg-static/scripts/tests/test_out_of_scope_and_settings.mjs +72 -0
  826. package/skills/a2h-utg-static/scripts/tests/test_overload_and_climb.mjs +86 -0
  827. package/skills/a2h-utg-static/scripts/tests/test_pager_page_source.mjs +78 -0
  828. package/skills/a2h-utg-static/scripts/tests/test_pager_position_zero.mjs +65 -0
  829. package/skills/a2h-utg-static/scripts/tests/test_pager_variant_guard.mjs +172 -0
  830. package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +107 -0
  831. package/skills/a2h-utg-static/scripts/tests/test_plain_dialog_nodes.mjs +167 -0
  832. package/skills/a2h-utg-static/scripts/tests/test_plaindialog_shared_anchor.mjs +117 -0
  833. package/skills/a2h-utg-static/scripts/tests/test_preference_click_nav.mjs +98 -0
  834. package/skills/a2h-utg-static/scripts/tests/test_preference_host_binding.mjs +87 -0
  835. package/skills/a2h-utg-static/scripts/tests/test_preference_nesting.mjs +183 -0
  836. package/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
  837. package/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
  838. package/skills/a2h-utg-static/scripts/tests/test_resolver_tier_parity.mjs +126 -0
  839. package/skills/a2h-utg-static/scripts/tests/test_result_launcher.mjs +142 -0
  840. package/skills/a2h-utg-static/scripts/tests/test_review_fixes.mjs +135 -0
  841. package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +66 -0
  842. package/skills/a2h-utg-static/scripts/tests/test_same_name_decl_scope.mjs +236 -0
  843. package/skills/a2h-utg-static/scripts/tests/test_scope_utils.mjs +85 -0
  844. package/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
  845. package/skills/a2h-utg-static/scripts/tests/test_shared_overlay_split.mjs +63 -0
  846. package/skills/a2h-utg-static/scripts/tests/test_slug_parity.mjs +58 -0
  847. package/skills/a2h-utg-static/scripts/tests/test_starter_node_id.mjs +41 -0
  848. package/skills/a2h-utg-static/scripts/tests/test_state_guard_arity.mjs +109 -0
  849. package/skills/a2h-utg-static/scripts/tests/test_state_guard_commented_candidates.mjs +68 -0
  850. package/skills/a2h-utg-static/scripts/tests/test_state_guard_model_gates.mjs +127 -0
  851. package/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
  852. package/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
  853. package/skills/a2h-utg-static/scripts/tests/test_template_method_layout.mjs +81 -0
  854. package/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +58 -0
  855. package/skills/a2h-utg-static/scripts/tests/test_trigger_id_spelling.mjs +68 -0
  856. package/skills/a2h-utg-static/scripts/tests/test_ui_elements_action_override.mjs +91 -0
  857. package/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
  858. package/skills/a2h-utg-static/scripts/tests/test_ui_elements_nl_hint_key.mjs +89 -0
  859. package/skills/a2h-utg-static/scripts/tests/test_uiless_host_fold.mjs +98 -0
  860. package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +231 -0
  861. package/skills/a2h-utg-static/scripts/tests/test_view_click_refs.mjs +104 -0
  862. package/skills/a2h-utg-static/scripts/tests/test_view_id_label.mjs +69 -0
  863. package/skills/a2h-utg-static/scripts/tests/test_view_interactions.mjs +346 -0
  864. package/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +340 -0
  865. package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +98 -0
  866. package/skills/a2h-utg-static/scripts/tests/test_widget_class_scope.mjs +92 -0
  867. package/skills/a2h-utg-static/scripts/tests/test_window_nav_kotlin.mjs +158 -0
  868. package/skills/a2h-utg-static/scripts/tests/test_worklist_parts.mjs +65 -0
  869. package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1119 -0
  870. package/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
  871. package/skills/a2h-utg-static/scripts/utg_html.mjs +721 -0
  872. package/skills/a2h-utg-static/scripts/view_interactions.mjs +799 -0
  873. package/skills/a2h-utg-static/scripts/view_widgets.mjs +512 -0
  874. package/skills/a2h-utg-static/scripts/viewpage_nav.mjs +589 -0
  875. package/skills/a2h-utg-static/scripts/vm_nav.mjs +422 -0
  876. package/skills/a2h-utg-static/scripts/window_nav.mjs +240 -0
  877. package/skills/a2h-utg-static/scripts/worklist_parts.mjs +154 -0
  878. package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
  879. package/skills/a2h-utg-static/tools/package.json +3 -0
  880. package/README.md +0 -445
  881. package/agents/logic-coder.md +0 -224
  882. package/agents/logic-context-builder.md +0 -212
  883. package/agents/scripts/hmos-precheck/backends/arkts.mjs +0 -567
  884. package/agents/scripts/hmos-precheck/backends/arkts_diff.mjs +0 -159
  885. package/agents/scripts/hmos-precheck/backends/arkts_project_rules.mjs +0 -398
  886. package/agents/scripts/hmos-precheck/backends/codelinter.mjs +0 -250
  887. package/agents/scripts/hmos-precheck/backends/project_integrity.mjs +0 -321
  888. package/agents/scripts/hmos-precheck/backends/static_precheck.mjs +0 -247
  889. package/agents/scripts/hmos-precheck/core/config.mjs +0 -184
  890. package/agents/scripts/hmos-precheck/core/diagnostic_scope.mjs +0 -20
  891. package/agents/scripts/hmos-precheck/core/process_adapter.mjs +0 -47
  892. package/agents/scripts/hmos-precheck/core/project_catalog.mjs +0 -50
  893. package/agents/scripts/hmos-precheck/core/result_projection.mjs +0 -147
  894. package/agents/scripts/hmos-precheck/core/scope_plan.mjs +0 -131
  895. package/agents/scripts/hmos-precheck/core/sdk_context.mjs +0 -67
  896. package/agents/scripts/hmos-precheck/docs/architecture.md +0 -37
  897. package/agents/scripts/hmos-precheck/docs/performance-optimization.md +0 -28
  898. package/agents/scripts/hmos-precheck/docs/upstream-reference.json +0 -19
  899. package/agents/scripts/hmos-precheck/docs/validation.md +0 -50
  900. package/agents/scripts/hmos-precheck/index.mjs +0 -17
  901. package/agents/scripts/hmos-precheck/invocation.mjs +0 -231
  902. package/agents/scripts/hmos-precheck/rules/rule_case_matrix.csv +0 -32
  903. package/agents/scripts/hmos-precheck/rules/rule_inventory.csv +0 -64
  904. package/agents/scripts/hmos-precheck/rules/rule_inventory.mjs +0 -59
  905. package/agents/scripts/hmos-precheck/rules/rule_policy.mjs +0 -54
  906. package/agents/scripts/platform_query.mjs +0 -626
  907. package/agents/scripts/platform_query.test.mjs +0 -422
  908. package/agents/self-test-fixer.md +0 -298
  909. package/agents/self-tester.md +0 -55
  910. package/agents/test-case-generation-generator.md +0 -317
  911. package/agents/test-case-generation-validator.md +0 -231
  912. package/dist/cli/config-store.js +0 -310
  913. package/dist/cli/config.js +0 -44
  914. package/dist/cli/env-vars.js +0 -127
  915. package/dist/cli/index.js +0 -56
  916. package/dist/cli/init.js +0 -1187
  917. package/dist/cli/uninstall.js +0 -427
  918. package/dist/utils/regex.js +0 -8
  919. package/env-requirements.json +0 -179
  920. package/resource/choose_editor.png +0 -0
  921. package/resource/convert_pipeline_process.svg +0 -103
  922. package/resource/project_architecture.svg +0 -122
  923. package/resource/set_environment.png +0 -0
  924. package/resource/set_multimodel.png +0 -0
  925. package/resource/set_sdk.png +0 -0
  926. package/resource/title_dark.png +0 -0
  927. package/skills/hmos-batch-ui-align/SKILL.md +0 -413
  928. package/skills/hmos-batch-ui-align/references/conversion-procedure.md +0 -661
  929. package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +0 -117
  930. package/skills/hmos-batch-ui-align/references/mvvm/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -648
  931. package/skills/hmos-batch-ui-align/references/mvvm/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -1183
  932. package/skills/hmos-batch-ui-align/references/mvvm/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +0 -576
  933. package/skills/hmos-batch-ui-align/references/mvvm/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +0 -297
  934. package/skills/hmos-batch-ui-align/references/mvvm/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +0 -395
  935. package/skills/hmos-batch-ui-align/references/mvvm/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -903
  936. package/skills/hmos-batch-ui-align/references/mvvm/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -1178
  937. package/skills/hmos-batch-ui-align/references/mvvm/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -355
  938. package/skills/hmos-batch-ui-align/references/mvvm//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +0 -11
  939. package/skills/hmos-batch-ui-align/references/mvvm-v2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +0 -206
  940. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +0 -750
  941. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +0 -840
  942. package/skills/hmos-batch-ui-align/references/mvvm-v2/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -856
  943. package/skills/hmos-batch-ui-align/references/mvvm-v2/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -294
  944. package/skills/hmos-batch-ui-align/references/mvvm-v2/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -1220
  945. package/skills/hmos-batch-ui-align/references/mvvm-v2//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +0 -840
  946. package/skills/hmos-batch-ui-align/scripts/arkts_static_check.ts +0 -1592
  947. package/skills/hmos-batch-ui-align/scripts/measure_pack.ts +0 -752
  948. package/skills/hmos-convert-pipeline/SKILL.md +0 -486
  949. package/skills/hmos-incremental-ui-align/README.md +0 -251
  950. package/skills/hmos-incremental-ui-align/SKILL.md +0 -375
  951. package/skills/hmos-incremental-ui-align/diff_analysis.md +0 -53
  952. package/skills/hmos-incremental-ui-align/page_align.md +0 -62
  953. package/skills/hmos-incremental-ui-align/references/Comparison_Template.md +0 -38
  954. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +0 -2089
  955. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +0 -1033
  956. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +0 -106
  957. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/MVVM/346/250/241/345/274/217V1.md +0 -911
  958. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +0 -373
  959. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +0 -158
  960. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +0 -1704
  961. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +0 -1012
  962. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +0 -164
  963. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +0 -83
  964. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +0 -47
  965. package/skills/hmos-incremental-ui-align/references/State_Model_Template.md +0 -74
  966. package/skills/hmos-incremental-ui-align/references/UI_Analysis_Template.md +0 -34
  967. package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +0 -2533
  968. package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-interaction-mapping-reference.md +0 -555
  969. package/skills/hmos-incremental-ui-align/scripts/app_feature_verify.ts +0 -937
  970. package/skills/hmos-incremental-ui-align/scripts/extract_checklist.ts +0 -343
  971. package/skills/hmos-incremental-ui-align/scripts/navigation-capure.md +0 -76
  972. package/skills/hmos-incremental-ui-align/scripts/page_capture.ts +0 -977
  973. package/skills/hmos-incremental-ui-align/scripts/page_capture_burst.ts +0 -188
  974. package/skills/hmos-integration-test/README.md +0 -341
  975. package/skills/hmos-integration-test/SKILL.md +0 -464
  976. package/skills/hmos-integration-test/scripts/report-tool.ts +0 -791
  977. package/skills/hmos-integration-test/scripts/resolve-metadata-tool.ts +0 -125
  978. package/skills/hmos-integration-test/scripts/self-test-runner.ts +0 -756
  979. package/skills/hmos-integration-test/scripts/testcases-tool.ts +0 -239
  980. package/skills/hmos-resources-convert/SKILL.md +0 -891
  981. package/skills/hmos-spec-generate/SKILL.md +0 -404
  982. package/skills/hmos-test-case-generation/README.md +0 -241
  983. package/skills/hmos-test-case-generation/SKILL.md +0 -324
  984. package/skills/hmos-test-case-generation/references/contract.md +0 -315
  985. package/skills/hmos-test-case-generation/references/review-notes-template.md +0 -84
  986. package/skills/hmos-test-case-generation/references/ui-elements-schema.md +0 -142
  987. package/skills/hmos-test-case-generation/tools/convert_to_ui_elements.ts +0 -550
  988. package/skills/hmos-test-case-generation/tools/validate.ts +0 -1312
  989. package/tools/bfs-crawl/README.md +0 -73
  990. package/tools/bfs-crawl/android_viewtree_bfs_crawler.ts +0 -1662
  991. /package/{README.en.md → skills/a2h-arch-generate/scripts/module_create/har/consumer-rules.txt} +0 -0
  992. /package/skills/{hmos-spec-generate → a2h-spec-generate}/template/REQ.xlsx +0 -0
@@ -0,0 +1,150 @@
1
+ # HarmonyOS Current State Inspection
2
+
3
+ Recover what the HarmonyOS project **is today**, before any reconciliation or planning. This step is analysis only; it modifies no business code.
4
+
5
+ ## Output
6
+
7
+ Write `target_inspection.json` to `<target_project_dir>/.hometrans/arch_generate/target_inspection.json`.
8
+
9
+ The frozen structure recorded here is authoritative for `# EXISTING` tree annotations. Only paths present in this file may be annotated.
10
+
11
+ The same script run emits the three current-state documents under `arch_generate/current/` (see the last section); no separate authoring step exists for their deterministic parts.
12
+
13
+ ## Two complementary sources
14
+
15
+ **Deterministic local inspection** (`scripts/inspect_harmony_target.mjs`) recovers structure: modules, directories, declared dependencies, build profiles, and storage artifacts found on the filesystem. It is authoritative for what exists.
16
+
17
+ **HomeGraph** recovers semantics that static inspection cannot follow: cross-module call paths, dynamic dispatch, storage ownership, and the responsibility a module actually serves. It is authoritative for how the existing code is wired.
18
+
19
+ Neither source alone is sufficient. Use both when available.
20
+
21
+ ## Inspecting with HomeGraph
22
+
23
+ Prefer the `mcp__homegraph__*` tools when they are loaded. Fall back to the `homegraph` CLI, which accepts the same project path.
24
+
25
+ | Question | Approach |
26
+ |---|---|
27
+ | What does this module do? | `homegraph_explore` on the module's main symbols |
28
+ | What are the real dependencies? | `homegraph_explore` across module boundaries |
29
+ | Who writes this store? | `homegraph_callers` on the storage API helpers |
30
+ | What is the module tree? | `homegraph_files` |
31
+ | Is the index usable and current? | `homegraph_status` |
32
+
33
+ Run every query against `target_project_dir`.
34
+
35
+ ## Index availability
36
+
37
+ HomeGraph needs a `.homegraph/` index at the project root. Three cases:
38
+
39
+ 1. **Index exists and is current.** Use it directly.
40
+ 2. **Index exists but is stale.** Ask the user before running `homegraph sync`. A sync writes to the HarmonyOS project.
41
+ 3. **No index.** Ask the user before running `homegraph init`. Indexing writes a `.homegraph/` directory into the project.
42
+
43
+ Never index the HarmonyOS project without asking. When the user declines, degrade to local inspection only, record `homegraph.available=false` with the reason in `target_inspection.json`, and state plainly in the run summary that dependency and ownership facts are structurally derived rather than call-path verified. Degradation is recorded only in artifacts and reports, never in the formal documents.
44
+
45
+ There is no install step in this skill. HomeGraph CLI availability is a user-side concern; when neither the tools nor the CLI are usable, degrade and say so.
46
+
47
+ ## target_inspection.json contract
48
+
49
+ ```json
50
+ {
51
+ "schema_version": 1,
52
+ "target_project_dir": "<abs path>",
53
+ "harmony_project": {
54
+ "valid": true,
55
+ "markers": ["build-profile.json5", "oh-package.json5"],
56
+ "app_name": "...",
57
+ "api_level": "...",
58
+ "products": ["default"]
59
+ },
60
+ "modules": [
61
+ {
62
+ "name": "entry",
63
+ "directory": "entry",
64
+ "type": "entry | feature-hap | har | hsp | unknown",
65
+ "declared_dependencies": ["common"],
66
+ "source_roots": ["entry/src/main/ets"],
67
+ "build_file": "entry/build-profile.json5"
68
+ }
69
+ ],
70
+ "directories": ["entry/src/main/ets/pages", "..."],
71
+ "storage": {
72
+ "database_present": true,
73
+ "preference_present": true,
74
+ "databases": [
75
+ {
76
+ "name": "...",
77
+ "evidence": "relationalStore.getRdbStore",
78
+ "source_files": ["..."],
79
+ "tables": [
80
+ { "name": "...", "columns": [ { "name": "...", "type": "...", "key": "...", "constraint": "..." } ], "evidence": "..." }
81
+ ]
82
+ }
83
+ ],
84
+ "preference_stores": [
85
+ { "name": "...", "evidence": "preferences.getPreferencesSync", "source_files": ["..."],
86
+ "keys": [ { "key": "...", "type": "...", "default": "..." } ] }
87
+ ]
88
+ },
89
+ "homegraph": {
90
+ "available": true,
91
+ "mode": "mcp | cli | unavailable",
92
+ "index_present": true,
93
+ "reason": null
94
+ },
95
+ "warnings": []
96
+ }
97
+ ```
98
+
99
+ `directories` is scoped to source, not build output. Exclude `build/`, `oh_modules/`, `.hvigor/`, `.idea/`, `.git/`, `node_modules/`, and `.hometrans/` from every listing.
100
+
101
+ ## Recovery rules
102
+
103
+ **Modules.** Read `build-profile.json5`'s `modules` array for the build-declared module set, then confirm each module directory actually exists on disk. A build-declared module with no directory is a warning, not a module.
104
+
105
+ **Module types.** Derive from the module's own `build-profile.json5` targets: `entry` for an Entry HAP, `feature` for a Feature HAP, `har` / `hsp` for library modules.
106
+
107
+ **Databases.** HarmonyOS persistence uses `relationalStore` (`@kit.ArkData`). Recover:
108
+
109
+ Store names are recovered from `getRdbStore` / `getRdbStoreSync` calls. Tables and columns are recovered from literal `CREATE TABLE` SQL executed through `executeSql` / `execute`, or from schema definition constants. Ownership is recovered from the module that contains the calls.
110
+
111
+ When a store exists but its schema is only built dynamically, record it with its evidence and mark columns as unresolved rather than inventing them. Reconciliation then treats it as review-required.
112
+
113
+ **Preferences.** HarmonyOS key-value storage uses `preferences` (`@kit.ArkData`). Recover store name from `getPreferences` / `getPreferencesSync`, and keys from `put` / `get` / `has` calls with literal string keys. Record the type from the value written and the default from the read-side fallback when a literal default is present.
114
+
115
+ **Directories.** Record the module source directory tree so that `# EXISTING` annotations can be validated against reality in Step 8. Paths are project-relative, forward-slashed, with no trailing slash.
116
+
117
+ ## Current-state documents
118
+
119
+ `inspect_harmony_target.mjs` **generates** these deterministically alongside `target_inspection.json`, under `<target_project_dir>/.hometrans/arch_generate/current/`. The script renders every fact it recovered; the workflow enriches only the semantic sections. Deterministic facts in these documents are never hand-edited. A finding that contradicts them is flagged, not silently patched.
120
+
121
+ ### HARMONY_CURRENT_ARCHITECTURE.md (script-generated + workflow-enriched)
122
+
123
+ Script-rendered deterministic parts:
124
+
125
+ - project overview (bundleName, API level, project markers);
126
+ - the existing module list with type, directory, and declared dependencies;
127
+ - the existing directory tree;
128
+ - a storage summary and mechanical structural hints (modules without source roots, dependencies that resolve to no known module, storage owner modules).
129
+
130
+ Workflow-enriched part (the `语义发现` section, filled with HomeGraph when available):
131
+
132
+ - per-module responsibility, stated as what the module currently does;
133
+ - cross-module call paths and entry-point wiring;
134
+ - storage ownership confirmation;
135
+ - any structural inconsistency worth flagging for reconciliation (dependency-direction inversions, capabilities with no owning module).
136
+
137
+ ### harmony_current_database.md (script-generated)
138
+
139
+ - every existing database with its owning module and evidence;
140
+ - tables, columns, keys, and constraints as recovered;
141
+ - explicitly marked unresolved schema (dynamically-built SQL);
142
+ - an explicit statement when no database exists.
143
+
144
+ ### harmony_current_preferences.md (script-generated)
145
+
146
+ - every existing preference store with its owning module and evidence;
147
+ - keys, types, and defaults as recovered;
148
+ - an explicit statement when no key-value storage exists.
149
+
150
+ These documents describe current reality. They are inputs to reconciliation, not a plan. Do not propose changes here.
@@ -0,0 +1,94 @@
1
+ # HarmonyOS Target Architecture Policy
2
+
3
+ This reference defines how recovered responsibility and behavior are projected into HarmonyOS module boundaries, dependencies, lifecycle mechanisms, storage responsibilities, platform integrations, and HAP/HAR/HSP packaging. It is authoritative for architecture placement and packaging decisions. The workflow step that consumes it only orchestrates the projection.
4
+
5
+ ## Reference documents
6
+
7
+ Read according to the active `scope`:
8
+
9
+ ```text
10
+ references/arkts-mvvm-v2.md (full document under scope=full. Under scope=backend, Model/ViewModel material only. Disregard the View layer and UI-component samples)
11
+ references/bpta-layered-architecture-design.md (under scope=backend, layering mechanism only: HAP/HAR/HSP packaging and dependency direction. Disregard its UI/UX framing of the three layers, such as "UI设计", "公共 UI 组件", or "用户直接互动的界面")
12
+ ```
13
+
14
+ ## Layered vs single-entry
15
+
16
+ When `layered_architecture=false`, use one Entry HAP rooted at:
17
+
18
+ ```text
19
+ entry/src/main/ets
20
+ ```
21
+
22
+ When `layered_architecture=true`, use:
23
+
24
+ ```text
25
+ products/ product composition
26
+ features/ business capabilities
27
+ common/ cross-cutting capabilities
28
+ ```
29
+
30
+ The default dependency direction is:
31
+
32
+ ```text
33
+ products → features → common
34
+ ```
35
+
36
+ ### Module root, capability packages, and tree depth
37
+
38
+ A **module root** is the directory that becomes one compiled HAP/HAR/HSP unit. Its depth is **not fixed** and need not be a direct child of `products/`, `features/`, or `common/`. Choose it by packaging cohesion (rules 1–3, 11, 13–16), then mark it with the type comment in `project_design.md` (`<module_root>/ # HAP|HAR|HSP`).
39
+
40
+ A module root must expand its internal Stage layout:
41
+
42
+ ```text
43
+ <module_root>/src/main/ets/<capability>/ capability packages (semantic leaves)
44
+ <module_root>/src/main/resources/ module resources
45
+ ```
46
+
47
+ Each `<capability>/` under `src/main/ets/` is a capability package, the semantic unit that carries one `project_design.md` module-semantics row. Capability packages are never registered as modules and never receive a `module.json5`; only module roots are.
48
+
49
+ ### `project_kind=library`
50
+
51
+ There is no independent product to compose, so `products/` and Entry HAP are never generated:
52
+
53
+ - `layered_architecture=false`: use one HAR module rooted at `<library>/src/main/ets`, where `<library>` is a formal English identifier derived from the library's build-module name or published `artifactId` (native) or the plugin/published component name (cross-platform). Never use the literal name `entry`.
54
+ - `layered_architecture=true`: use only
55
+
56
+ ```text
57
+ features/ business capabilities
58
+ common/ cross-cutting capabilities
59
+ ```
60
+
61
+ with dependency direction `features → common`.
62
+
63
+ ## Rules
64
+
65
+ 1. Product composition uses Entry HAP. Not applicable when `project_kind=library`.
66
+ 2. Feature modules use HAR by default unless verified deployment requirements justify HSP or Feature HAP.
67
+ 3. Common modules use HAR.
68
+ 4. A common module must not depend on a feature module.
69
+ 5. Common-to-common dependencies remain acyclic.
70
+ 6. Feature-to-feature dependencies require an explicit architectural reason.
71
+ 7. HSP and Feature HAP require a verified packaging reason.
72
+ 8. Logical mode packaging must not silently add, remove, merge, or split logical capabilities.
73
+ 9. Direct mode boundary changes must be limited to necessary, explicitly justified corrections.
74
+ 10. Source platform mechanisms must be replaced by appropriate HarmonyOS responsibilities and mechanisms, not merely renamed.
75
+
76
+ ### Under `scope=backend`, additionally apply
77
+
78
+ 11. Use these layer-classification criteria to decide `products` / `features` / `common` placement. They are characteristics to test a capability against, not an exhaustive list of named capabilities. Never copy the illustrative examples below as literal module names.
79
+ - `common`: business-agnostic technical capabilities reusable across multiple features. The capability carries no business semantics and is shared by more than one feature (for example, but not limited to, data persistence, logging, analytics/telemetry reporting, network transport, encryption).
80
+ - `features`: business-facing capability units that compose one or more `common` atomic capabilities into a complete, independently deliverable responsibility. The capability is a cohesive, independently acceptable unit of business behavior, whether consumed in-app or exposed externally as an SDK.
81
+ - `products`: device/scenario-specific compositions of `features` into a servable application instance. The module is a service-composition entry point (serviceability), not the specific device or scenario name itself.
82
+ 12. Module roots and layer directories must express business capability, domain logic, data ownership, or platform-capability integration, and source directory names must not be copied into them. **Inside a module's `src/main/ets/`, the DevEco Stage layout directory names are the normal structure and are explicitly permitted.** `pages/`, `components/`, `views/`, `widgets/`, `states/`, `utils/`, and the like may appear under `src/main/ets/` exactly as DevEco Studio generates them. Do not rename them, and do not treat them as violations. The prohibition applies only to module roots and layer groupings, where a source-derived name (for example an Android `pages/` or `components/` package promoted to a module root) must not be used verbatim.
83
+
84
+ ## Library artifact packaging
85
+
86
+ A compiled or published library artifact of the resolved ecosystem (a native `.aar`, a published Android-targeting cross-platform plugin package) is a non-independently-launchable dependency consumed by a host application at build or runtime. It determines the default HarmonyOS packaging target, which is further constrained by `scope`.
87
+
88
+ 13. **Default to HAR.** A library artifact's responsibility maps by default to a HAR module with no Ability lifecycle of its own. Do not generate an Entry HAP or a `products` layer for a capability that only ever existed as a library dependency.
89
+ 14. **Promote to HSP only with verified cross-application or independent-deployment evidence.** Promote from HAR to HSP only when the repository or task context establishes runtime sharing across multiple independently installed applications on one device, or independent update without recompiling the consuming HAP. Absent that evidence, a single-repository library migration stays on HAR.
90
+ 15. **Under `scope=full`, promote to Feature HAP only for a library-bundled, independently launchable UI surface.** When the library artifact ships a screen meant to be started directly by the host (a login flow, a payment checkout screen, a camera capture flow), that responsibility maps to a Feature HAP because it needs its own Ability lifecycle entry. The library's other public API and logic responsibilities remain HAR. **Under `scope=backend`, this promotion never applies.** That same bundled screen remains valid trigger evidence per the transformation model, but its logic responsibility is represented as ordinary HAR/HSP content.
91
+ 16. **No Entry HAP, no `products/`.** A pure library repository (`project_kind=library`) never produces an Entry HAP or a `products` composition layer. Its `project_design.md` tree is rooted directly at its HAR/HSP/Feature-HAP module(s).
92
+ 17. **Public surface coverage.** Every recovered `public_api_surfaces` entry (per the resolved ecosystem entry's `library_surface`) must be represented in the target architecture, incorporated into a capability, explicitly excluded with a defensible reason, or retained as a blocking issue.
93
+
94
+ Architecture projection is not textual or structural copying of the source repository.
@@ -0,0 +1,120 @@
1
+ # HomeGraph Workflow
2
+
3
+ HomeGraph is the semantic source for reconstructing the source architecture in **both modes** (generate and reconcile). It is a local code knowledge graph reached through its `homegraph` CLI (Node.js 18+) and the optional `mcp__homegraph__*` MCP tools. HomeGraph itself is never modified. The adapter scripts (`dump_core_facts.mjs`, `extract_core_components.mjs`, `compute_processing_order.mjs`, `validate_homegraph_artifacts.mjs`, `check_module_staleness.mjs`) work over its CLI output and index. Run it against the repository reported by `scope.json`'s `effective_android_repo` field, not an umbrella repository root.
4
+
5
+ The reconcile mode additionally uses HomeGraph for the **target side** (the existing HarmonyOS project's current state). That usage is defined by `references/harmony-project-inspection.md` and is separate from this pipeline.
6
+
7
+ When neither the CLI nor the MCP tools are usable, degrade to local analysis as defined by the Preflight step in SKILL.md.
8
+
9
+ ## Source-side pipeline protocol (both modes)
10
+
11
+ The protocol defines two shell variables. `HG` holds the source_homegraph artifacts directory, and `SRC_REPO` holds the effective source repository, read mechanically from `scope.json`'s `effective_android_repo` field so the value never depends on agent recall.
12
+
13
+ ```text
14
+ HG="<target_project_dir>/.hometrans/arch_generate/source_homegraph"
15
+ mkdir -p "$HG"
16
+ SRC_REPO=$(node -p "JSON.parse(require('fs').readFileSync(process.argv[1],'utf8')).effective_android_repo" "<target_project_dir>/.hometrans/arch_generate/scope.json")
17
+
18
+ Bash: homegraph init "$SRC_REPO" # deterministic index (no LLM); ASK THE USER FIRST (writes .homegraph/ into the source repository)
19
+ Bash: homegraph status "$SRC_REPO"
20
+ Bash: <core-facts step below> # emits "$HG/core_facts.json"
21
+ node "${CLAUDE_SKILL_DIR}/scripts/extract_core_components.mjs" "$HG/core_facts.json" --out "$HG/potential_core_components.txt"
22
+ → cluster the candidate leaves into a nested module tree (read references/clustering-guidance.md first); Write "$HG/module_map.json"
23
+ node "${CLAUDE_SKILL_DIR}/scripts/compute_processing_order.mjs" "$HG/module_map.json" --core-facts "$HG/core_facts.json" --out "$HG/processing_order.json"
24
+ → for each module in leaf-first order, gather evidence: homegraph_explore / homegraph_node,
25
+ plus homegraph_callers / homegraph_callees / homegraph_impact, or the equivalent `homegraph` CLI subcommand via Bash
26
+ → Write "$HG/docs/<module>.md"
27
+ ```
28
+
29
+ ### The core-facts step
30
+
31
+ The pipeline entry needs `core_facts.json`, which holds threshold-free graph facts with one entry per code component. Each entry has the fields `{id, name, kind, file, isExported, incomingRefs}`. The `id` is the node's `qualifiedName` copied verbatim. `incomingRefs` counts incoming edges excluding structural `contains` edges, and a component is a dependency-graph leaf when the count is `0`. The default kinds are class, struct, interface, trait, protocol, function, method, and enum.
32
+
33
+ Produce the file with `dump_core_facts.mjs`, which reads `<repo>/.homegraph/homegraph.db` read-only.
34
+
35
+ ```bash
36
+ HG="<target_project_dir>/.hometrans/arch_generate/source_homegraph"
37
+ SRC_REPO=$(node -p "JSON.parse(require('fs').readFileSync(process.argv[1],'utf8')).effective_android_repo" "<target_project_dir>/.hometrans/arch_generate/scope.json")
38
+
39
+ # 只读直连 .homegraph/homegraph.db,产出 core_facts.json
40
+ node "${CLAUDE_SKILL_DIR}/scripts/dump_core_facts.mjs" -p "$SRC_REPO" --json > "$HG/core_facts.json"
41
+ ```
42
+
43
+ The downstream adapters (`extract_core_components.mjs`, `compute_processing_order.mjs`, `check_module_staleness.mjs`) consume only the contract, so they are agnostic to the producer.
44
+
45
+ ### Candidate extraction and clustering
46
+
47
+ `extract_core_components.mjs` applies the leaf-type heuristic (OOP kinds always qualify; function kinds only when they carry the architecture) and writes `potential_core_components.txt`. Seed clustering from that list. `references/clustering-guidance.md` defines the component-id contract and the `module_map.json` output shape.
48
+
49
+ Use HomeGraph, when usable, as the primary semantic source for product and platform responsibilities, entry flows, component relationships, execution paths, persistence and state lifecycles, background behavior, platform integrations, build-configuration conditions, and candidate source-architecture boundaries.
50
+
51
+ Reconcile HomeGraph findings with `inspection.json`. Deterministic repository scope, resolved build/module facts, source-scope provenance, manifest declarations, and source-recovered storage constraints remain authoritative until a contradiction is resolved.
52
+
53
+ When HomeGraph cannot meaningfully interpret the current ecosystem's source tree, treat that as optional degradation. Proceed by reconstructing the source architecture from `inspection.json`, the resolved scope, deliberate `Glob`, `Grep`, and `Read` inspection, and the source-ecosystem reference's evidence vocabulary. Record degraded local analysis only in artifacts and validation reports, never in the formal documents.
54
+
55
+ ## MCP surface note
56
+
57
+ HomeGraph gates its MCP tools by index size. On projects under 500 indexed files, only `homegraph_explore`, `homegraph_search`, and `homegraph_node` are exposed over MCP. The `homegraph` CLI always provides every subcommand, so run the rest through `Bash` whenever the MCP tool is not available. `homegraph_explore` and `homegraph_node` are always exposed and are sufficient as the evidence backbone.
58
+
59
+ ## Persistence layout
60
+
61
+ Persist usable results under:
62
+
63
+ ```text
64
+ <target_project_dir>/.hometrans/arch_generate/source_homegraph/
65
+ ├── status.json
66
+ ├── core_facts.json # objective graph facts (dump_core_facts.mjs)
67
+ ├── potential_core_components.txt # deterministic candidate core-component list
68
+ ├── module_map.json # the persisted clustering (agent-authored)
69
+ ├── processing_order.json # leaf-first documentation order
70
+ ├── source_hashes.json # staleness manifest (check_module_staleness.mjs)
71
+ ├── validation_report.json
72
+ └── docs/
73
+ └── <one or more module documents>.md
74
+ ```
75
+
76
+ ## status.json contract
77
+
78
+ `status.json` must satisfy the contract of `validate_homegraph_artifacts.mjs`.
79
+
80
+ - `status` takes one of `generated`, `updated`, `reused`, `unavailable`, or `failed`. A concrete `reason` is required for the failure statuses.
81
+ - `required` is always `false` in this workflow, so HomeGraph degradation never terminates the run.
82
+ - `effective_android_repo` (the effective source repository, regardless of `source_kind`) and `docs_root` must match the run's `scope.json` and the `docs/` directory.
83
+ - A successful run preserves `module_map.json` and at least one non-empty semantic Markdown document under `docs/`.
84
+ - Do not synthesize missing artifact types merely to satisfy a fixed directory structure, and do not delete previously persisted artifacts during failure handling.
85
+ - The `.homegraph/` index inside the indexed source repository is HomeGraph's own store and need not be copied into `HG`.
86
+
87
+ ## Validation
88
+
89
+ Validate the persisted result.
90
+
91
+ ```bash
92
+ node "${CLAUDE_SKILL_DIR}/scripts/validate_homegraph_artifacts.mjs" \
93
+ --homegraph-dir "<target_project_dir>/.hometrans/arch_generate/source_homegraph" \
94
+ --scope "<target_project_dir>/.hometrans/arch_generate/scope.json" \
95
+ --required "false" \
96
+ --report "<target_project_dir>/.hometrans/arch_generate/source_homegraph/validation_report.json"
97
+ ```
98
+
99
+ ## Incremental regeneration (staleness)
100
+
101
+ When re-running against a source repository whose module documents may already exist, run:
102
+
103
+ ```bash
104
+ HG="<target_project_dir>/.hometrans/arch_generate/source_homegraph"
105
+ SRC_REPO=$(node -p "JSON.parse(require('fs').readFileSync(process.argv[1],'utf8')).effective_android_repo" "<target_project_dir>/.hometrans/arch_generate/scope.json")
106
+
107
+ node "${CLAUDE_SKILL_DIR}/scripts/check_module_staleness.mjs" \
108
+ "$HG/module_map.json" \
109
+ --core-facts "$HG/core_facts.json" \
110
+ --repo "$SRC_REPO" \
111
+ --hashes "$HG/source_hashes.json"
112
+ ```
113
+
114
+ The first run records a sha256 baseline, and subsequent runs report changed files and the affected modules (exit 1 when stale). Regenerate only the affected module documents, then re-run with `--update` to re-baseline.
115
+
116
+ ## Failure behavior
117
+
118
+ When HomeGraph is unavailable or fails, always record a degradation warning (`status: unavailable` plus a reason in `status.json`) and continue by reconstructing the source architecture from `inspection.json`, the resolved build/module or source structure, manifests, navigation declarations, and deliberate `Glob`, `Grep`, and `Read` inspection. Record degraded local analysis only in artifacts and validation reports, never in the formal documents.
119
+
120
+ A blocking validation result stops the workflow. A warning caused solely by HomeGraph degradation permits explicit local continuation.
@@ -0,0 +1,45 @@
1
+ # Module Evidence Sub-Agent Task Template
2
+
3
+ Read `references/clustering-guidance.md` for the module documentation contract, and `references/homegraph-workflow.md` for the HomeGraph query protocol.
4
+
5
+ Your assignment: produce `docs/<ModuleName>.md` for exactly the modules listed below. Do not touch other modules' files.
6
+
7
+ ## Input contract
8
+
9
+ You receive:
10
+ - `<HG>` — the source_homegraph artifacts directory (absolute)
11
+ - `<SRC_REPO>` — the effective source repository (absolute; HomeGraph project path)
12
+ - `<module_names>` — the list of module names you are assigned (must exist in `module_map.json`)
13
+
14
+ ## Workflow per module
15
+
16
+ 1. Read `<HG>/module_map.json` and extract the `components` array for the module.
17
+ 2. For each component, use HomeGraph tools (`homegraph_explore` / `homegraph_node`) to gather its semantic evidence. Use `homegraph_callers` / `homegraph_callees` / `homegraph_impact` for cross-module dependency facts.
18
+ 3. Write `<HG>/docs/<ModuleName>.md` following the shape in `clustering-guidance.md`:
19
+ - **Responsibility** — one paragraph: what this module does and why it exists.
20
+ - **Components** — the verbatim `qualifiedName` list from `module_map.json`.
21
+ - **Key interactions** — how this module depends on or is depended on by others (from `homegraph_callers` / `homegraph_callees`).
22
+ - **Evidence** — the concrete `file:line` anchors that back the responsibility statement.
23
+
24
+ ## Rules
25
+
26
+ - Do not modify `module_map.json` or any other module's doc.
27
+ - Do not invent component ids — every id must come verbatim from `module_map.json`.
28
+ - Every claim in the doc must have a `file:line` anchor from HomeGraph output.
29
+ - If HomeGraph is unavailable for a component, note `evidence: degraded` and continue with read-only inspection.
30
+ - Write the doc atomically (`.tmp` then rename).
31
+
32
+ ## Return format
33
+
34
+ When all assigned modules are documented, return only this compact JSON:
35
+
36
+ ```json
37
+ {
38
+ "ok": true,
39
+ "modules": [
40
+ { "name": "<ModuleName>", "doc": "docs/<ModuleName>.md", "components": N, "degraded": false }
41
+ ]
42
+ }
43
+ ```
44
+
45
+ If a module cannot be documented, return `{ "ok": false, "failed": "<ModuleName>", "reason": "..." }` for that module and continue with the others.
@@ -0,0 +1,204 @@
1
+ # Reconciliation Model
2
+
3
+ Reconciliation maps recovered source responsibilities and affected HarmonyOS responsibilities into one coherent HarmonyOS Planned State. It is the audit record between source evidence and the formal design documents.
4
+
5
+ ## Disposition vocabulary
6
+
7
+ Every source responsibility receives exactly one disposition. Use the minimal set:
8
+
9
+ | Disposition | Meaning |
10
+ |---|---|
11
+ | `reuse-existing` | An existing HarmonyOS module or directory already realizes this responsibility. No structural change planned. |
12
+ | `adapt-existing` | An existing HarmonyOS module or directory is the right home but needs to be extended, reshaped, or internally restructured to fully cover the responsibility. |
13
+ | `introduce-planned` | No existing HarmonyOS home covers this responsibility. The planned state introduces a new capability. This disposition does not authorize the skill to create anything. |
14
+ | `exclude-with-reason` | The responsibility has no equivalent in the planned HarmonyOS target. A substantive reason is required. |
15
+
16
+ One-to-many and many-to-one mappings are expressed through the `source_responsibilities` and `target` lists on each entry, not through separate `merge` or `split` dispositions.
17
+
18
+ `introduce-planned` means the design requires the capability. The skill never creates the corresponding module, directory, or file.
19
+
20
+ Every disposition requires a reason. "Same as the source" is not a reason.
21
+
22
+ ## Existing HarmonyOS module fates
23
+
24
+ Every existing HarmonyOS module and significant directory affected by the planned design must have a recorded fate:
25
+
26
+ | Fate | Meaning |
27
+ |---|---|
28
+ | `retained` | Present in the current project and in the plan with the same or clarified responsibility. |
29
+ | `adapted` | Present in the current project; the planned state changes its boundary, scope, or responsibility. |
30
+ | `absorbed` | Merged into another planned capability. `absorbed_into` names the target. |
31
+ | `removed` | Not in the plan. A reason is required. The skill does not delete it. |
32
+
33
+ A module in the current project that disappears from the planned tree without a fate entry is a blocking reconciliation gap.
34
+
35
+ ## Output layout
36
+
37
+ Write three files to `<target_project_dir>/.hometrans/arch_generate/reconcile/`:
38
+
39
+ ```text
40
+ architecture_reconciliation.json
41
+ database_reconciliation.json
42
+ preferences_reconciliation.json
43
+ ```
44
+
45
+ ### architecture_reconciliation.json
46
+
47
+ ```json
48
+ {
49
+ "schema_version": 1,
50
+ "generated_by": "a2h-arch-generate",
51
+ "inputs": { "scope_json": "...", "inspection_json": "...", "target_inspection_json": "..." },
52
+ "responsibilities": [
53
+ {
54
+ "id": "r001",
55
+ "source_responsibilities": ["module::app / specific class or capability"],
56
+ "source_description": "what the source side does, stated as observable behavior",
57
+ "disposition": "reuse-existing",
58
+ "target": "entry/src/main/ets/pages",
59
+ "target_exists": true,
60
+ "reason": "the basis for this disposition",
61
+ "notes": null
62
+ }
63
+ ],
64
+ "existing_targets": [
65
+ {
66
+ "path": "entry",
67
+ "kind": "module",
68
+ "current_responsibility": "what the HarmonyOS module currently does",
69
+ "fate": "retained",
70
+ "reason": null,
71
+ "absorbed_into": null
72
+ }
73
+ ],
74
+ "planned_only": [
75
+ { "path": "features/payment", "reason": "no current HarmonyOS home for this responsibility" }
76
+ ],
77
+ "review_required": [],
78
+ "warnings": []
79
+ }
80
+ ```
81
+
82
+ `target_exists` is the boolean that drives the `# EXISTING` tree annotation in Step 6. The value `true` means the path exists in `target_inspection.json` at the time of reconciliation.
83
+
84
+ `planned_only` enumerates every path the plan introduces that the project currently lacks. Its presence is what makes the "creates nothing" invariant auditable.
85
+
86
+ ### database_reconciliation.json
87
+
88
+ ```json
89
+ {
90
+ "schema_version": 1,
91
+ "generated_by": "a2h-arch-generate",
92
+ "inputs": { "...": "..." },
93
+ "source_databases": [
94
+ {
95
+ "id": "d001",
96
+ "name": "source_db_name",
97
+ "tables": ["table_a", "table_b"],
98
+ "disposition": "reuse-existing",
99
+ "harmony_database": "harmony_db_name",
100
+ "harmony_tables": ["table_a", "table_b"],
101
+ "owner_module": "common/data",
102
+ "change": "none",
103
+ "reason": "...",
104
+ "review_required": false
105
+ }
106
+ ],
107
+ "harmony_databases": [
108
+ {
109
+ "name": "harmony_db_name",
110
+ "owner_module": "...",
111
+ "fate": "retained",
112
+ "reason": null
113
+ }
114
+ ],
115
+ "warnings": []
116
+ }
117
+ ```
118
+
119
+ Permitted database transitions:
120
+
121
+ ```text
122
+ source database -> HarmonyOS database direct equivalent
123
+ source database -> HarmonyOS preferences record became config state
124
+ source no-database -> HarmonyOS database new persistence introduced
125
+ source no-database -> (empty) no storage on either side
126
+ ```
127
+
128
+ Differences in database count, table division, schema, fields, ownership, and persistence implementation are valid when explicitly reconciled.
129
+
130
+ ### preferences_reconciliation.json
131
+
132
+ ```json
133
+ {
134
+ "schema_version": 1,
135
+ "generated_by": "a2h-arch-generate",
136
+ "inputs": { "...": "..." },
137
+ "source_stores": [
138
+ {
139
+ "id": "p001",
140
+ "name": "source_store_name",
141
+ "keys": ["key_a", "key_b"],
142
+ "disposition": "reuse-existing",
143
+ "harmony_store": "harmony_store_name",
144
+ "harmony_keys": ["key_a", "key_b"],
145
+ "owner_module": "entry",
146
+ "reason": "...",
147
+ "review_required": false
148
+ }
149
+ ],
150
+ "harmony_stores": [
151
+ {
152
+ "name": "harmony_store_name",
153
+ "owner_module": "...",
154
+ "fate": "retained",
155
+ "reason": null
156
+ }
157
+ ],
158
+ "key_mappings": [
159
+ {
160
+ "source_store": "source_store_name",
161
+ "source_key": "key_a",
162
+ "harmony_store": "harmony_store_name",
163
+ "harmony_key": "key_a",
164
+ "type": "String",
165
+ "default": "value",
166
+ "disposition": "reuse-existing",
167
+ "reason": "..."
168
+ }
169
+ ],
170
+ "warnings": []
171
+ }
172
+ ```
173
+
174
+ Permitted store transitions:
175
+
176
+ ```text
177
+ source preference -> HarmonyOS Preference same storage kind, boundary may change
178
+ source preference -> HarmonyOS Database value became a relational record
179
+ source database -> HarmonyOS Preference record became single-valued config state
180
+ multiple source stores -> one HarmonyOS store merged by lifecycle or scope
181
+ one source store -> multiple HarmonyOS stores split by owner module or lifecycle
182
+ ```
183
+
184
+ Deciding factors: data responsibility, lifecycle, scope, ownership, consistency, and transaction requirements. The source API type is not a factor.
185
+
186
+ ## Review-required items
187
+
188
+ Set `review_required: true` when:
189
+
190
+ - source evidence is ambiguous (dynamic keys, dynamically-built SQL, computed store names);
191
+ - the HarmonyOS current side for that responsibility is unresolved;
192
+ - the disposition would change observable behavior in a way the evidence cannot settle.
193
+
194
+ Review-required items must appear in the run summary. An unlisted review-required item is a reconciliation gap.
195
+
196
+ ## Reconciliation completeness
197
+
198
+ No relevant source responsibility may be silently absent from the `responsibilities` array.
199
+
200
+ No existing HarmonyOS module or directory affected by the plan may be silently absent from the `existing_targets` array.
201
+
202
+ `planned_only` paths must appear in the `project_design.md` tree without the `# EXISTING` annotation.
203
+
204
+ `existing_targets` paths with `target_exists: true` must appear in the `project_design.md` tree with the `# EXISTING` annotation (module roots carry it before the package type, e.g. `features/sync/ # EXISTING HSP`).
@@ -0,0 +1,28 @@
1
+ # Scope Policy
2
+
3
+ `scope` is the deliverable axis. It chooses what the target architecture is allowed to represent. It is orthogonal to `source_kind` (which ecosystem the source repository belongs to). Do not couple the two.
4
+
5
+ `scope` is always explicit, never auto-detected. The same source repository can reasonably be asked for either deliverable, so the caller supplies `--scope full|backend`.
6
+
7
+ ## full (default)
8
+
9
+ The target architecture may represent UI-facing capabilities (pages, screens, view-level composition) alongside logic responsibility.
10
+
11
+ ## backend
12
+
13
+ The target architecture covers only business/logic-layer responsibility (domain logic, application services, data management, platform-capability integration). It never represents UI, pages, views, view components, navigation-as-presentation, or UI resource grouping.
14
+
15
+ Where the source expresses a capability partly through UI and partly through logic, only the logic portion is reconstructed. The UI portion is neither described nor projected.
16
+
17
+ An entry point remains valid trigger evidence under either scope. Under `scope=backend`, its own UI content is never represented as a target module, and only the logic responsibility it triggers is.
18
+
19
+ ## Exclusion granularity
20
+
21
+ The granularity of the backend UI exclusion is ecosystem-specific and is given by the resolved ecosystem entry's `scope_delta` field in `references/source-ecosystems.md`:
22
+
23
+ - **file-level** for a native stack whose files are single-role by convention (an Activity/Fragment/View/ViewModel file is evidence-only, whereas a Repository/Service/DAO/domain file is reconstructed content).
24
+ - **section-level** for a single-file-component framework that colocates UI and logic in one file (`<template>` and presentational state are evidence-only, whereas composable/store/service calls in the same `<script>` are reconstructed, except UI-navigation calls, which stay excluded). See `examples/simple-conversion-backend.md`.
25
+
26
+ ## Impact on document content
27
+
28
+ Under `scope=backend`, the three formal documents must not contain, and the target tree must not use, a capability, module description, or module/directory name that represents UI presentation, page navigation, or view-component interaction, or a UI-suggestive name (`pages/`, `views/`, `components/`, `widgets/`).