@buaa_smat/hometrans 26.0.7 → 26.0.8-devecocli.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/agents/a2h-executor.md +37 -0
  2. package/devecocli-plugin/common.ts +2370 -0
  3. package/devecocli-plugin/content-resolver.ts +363 -0
  4. package/devecocli-plugin/install.ts +72 -0
  5. package/devecocli-plugin/uninstall.ts +26 -0
  6. package/devecocli-plugin/update.ts +77 -0
  7. package/i18n/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +2 -2
  8. package/i18n/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +1 -1
  9. package/i18n/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +13 -6
  10. package/i18n/skills/a2h-app-migrate/SKILL.md +2 -2
  11. package/i18n/skills/a2h-app-migrate/references/workflow.yaml +27 -4
  12. package/i18n/skills/a2h-app-migrate/scripts/opencode_depth.mjs +418 -0
  13. package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -0
  14. package/i18n/skills/a2h-batch-ui-align/SKILL.md +7 -7
  15. package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -1
  16. package/i18n/skills/a2h-batch-ui-align/references/cards/state.md +20 -2
  17. package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +2 -2
  18. package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +3 -3
  19. package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +3 -1
  20. package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +2 -2
  21. package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +10 -6
  22. package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +13 -9
  23. package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +59 -7
  24. package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +3 -0
  25. package/i18n/skills/a2h-batch-ui-align/scripts/interactions.mjs +186 -0
  26. package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +33 -7
  27. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +83 -22
  28. package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +39 -5
  29. package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +25 -1
  30. package/i18n/skills/a2h-page-specgen/SKILL.md +1 -1
  31. package/i18n/skills/a2h-page-specgen/references/gates.md +3 -1
  32. package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +11 -11
  33. package/i18n/skills/a2h-page-specgen/references/spec-template.md +3 -3
  34. package/i18n/skills/a2h-page-specgen/scripts/contract-calls.mjs +40 -3
  35. package/i18n/skills/a2h-page-specgen/scripts/entry-evidence.mjs +73 -5
  36. package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +144 -0
  37. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +11 -11
  38. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +11 -11
  39. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +11 -11
  40. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +11 -11
  41. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +10 -10
  42. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +1 -1
  43. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +11 -11
  44. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +11 -11
  45. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +11 -11
  46. package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +11 -11
  47. package/i18n/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +45 -1
  48. package/i18n/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +100 -0
  49. package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +132 -3
  50. package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +36 -1
  51. package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +1 -1
  52. package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +16 -0
  53. package/i18n/skills/a2h-utg-static/SKILL.md +2 -0
  54. package/index.js +1741 -0
  55. package/package.json +8 -8
  56. package/platforms/atomcode/agents/a2h-executor.frontmatter.md +6 -0
  57. package/platforms/codebuddy/agents/a2h-executor.frontmatter.md +5 -0
  58. package/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +2 -2
  59. package/platforms/deveco/agents/a2h-executor.frontmatter.md +7 -0
  60. package/platforms/deveco/agents/build-fixer.frontmatter.md +0 -2
  61. package/platforms/deveco/agents/code-reviewer.frontmatter.md +0 -2
  62. package/platforms/deveco/agents/model-render-worker.frontmatter.md +0 -2
  63. package/platforms/deveco/agents/model-worker.frontmatter.md +0 -2
  64. package/platforms/deveco/agents/specgen-worker.frontmatter.md +0 -2
  65. package/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +1 -1
  66. package/platforms/opencode/agents/a2h-executor.frontmatter.md +7 -0
  67. package/platforms/opencode/agents/build-fixer.frontmatter.md +0 -2
  68. package/platforms/opencode/agents/code-reviewer.frontmatter.md +0 -2
  69. package/platforms/opencode/agents/model-render-worker.frontmatter.md +0 -2
  70. package/platforms/opencode/agents/model-worker.frontmatter.md +0 -2
  71. package/platforms/opencode/agents/specgen-worker.frontmatter.md +0 -2
  72. package/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +13 -6
  73. package/plugin.jsonc +12 -0
  74. package/skills/a2h-app-migrate/SKILL.md +29 -3
  75. package/skills/a2h-app-migrate/references/host-rules.md +33 -0
  76. package/skills/a2h-app-migrate/references/workflow.yaml +24 -4
  77. package/skills/a2h-app-migrate/scripts/opencode_depth.mjs +418 -0
  78. package/skills/a2h-app-migrate/test/test_executor_header_sync.mjs +78 -0
  79. package/skills/a2h-app-migrate/test/test_opencode_depth.mjs +312 -0
  80. package/skills/a2h-app-migrate/tools/dag.mjs +267 -0
  81. package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -0
  82. package/skills/a2h-batch-ui-align/SKILL.md +7 -7
  83. package/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -1
  84. package/skills/a2h-batch-ui-align/references/cards/state.md +20 -2
  85. package/skills/a2h-batch-ui-align/references/cards/widgets.md +2 -2
  86. package/skills/a2h-batch-ui-align/references/checker-rules.md +3 -3
  87. package/skills/a2h-batch-ui-align/references/conversion-procedure.md +3 -1
  88. package/skills/a2h-batch-ui-align/references/host-dispatch.md +5 -5
  89. package/skills/a2h-batch-ui-align/references/incremental-scope.md +2 -2
  90. package/skills/a2h-batch-ui-align/references/step3-capture.md +10 -6
  91. package/skills/a2h-batch-ui-align/references/step5-convert.md +13 -9
  92. package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +59 -7
  93. package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +3 -0
  94. package/skills/a2h-batch-ui-align/scripts/group_pass.mjs +3 -2
  95. package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +139 -23
  96. package/skills/a2h-batch-ui-align/scripts/host_env.mjs +32 -8
  97. package/skills/a2h-batch-ui-align/scripts/interactions.mjs +186 -0
  98. package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +33 -7
  99. package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +83 -22
  100. package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +39 -5
  101. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +82 -0
  102. package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +25 -1
  103. package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +184 -2
  104. package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +33 -0
  105. package/skills/a2h-batch-ui-align/scripts/tests/interactions.test.mjs +258 -0
  106. package/skills/a2h-page-specgen/SKILL.md +1 -1
  107. package/skills/a2h-page-specgen/references/evidence.md +15 -0
  108. package/skills/a2h-page-specgen/references/gates.md +3 -1
  109. package/skills/a2h-page-specgen/references/scenario-authoring.md +10 -10
  110. package/skills/a2h-page-specgen/references/spec-template.md +2 -2
  111. package/skills/a2h-page-specgen/scripts/contract-calls.mjs +40 -3
  112. package/skills/a2h-page-specgen/scripts/entry-evidence.mjs +73 -5
  113. package/skills/a2h-page-specgen/scripts/gate.mjs +141 -0
  114. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +10 -10
  115. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +10 -10
  116. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +10 -10
  117. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +10 -10
  118. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +10 -10
  119. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +1 -1
  120. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +10 -10
  121. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +10 -10
  122. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +10 -10
  123. package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +10 -10
  124. package/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +45 -1
  125. package/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +100 -0
  126. package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +104 -3
  127. package/skills/a2h-resource-convert/references/conversion-rules.md +2 -0
  128. package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +36 -1
  129. package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +42 -0
  130. package/skills/a2h-spec-design-pipeline/SKILL.md +1 -1
  131. package/skills/a2h-spec-design-pipeline/references/coding-loop.md +16 -0
  132. package/skills/a2h-spec-design-pipeline/references/execution-model.md +2 -2
  133. package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +5 -1
  134. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +5 -0
  135. package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +4 -0
  136. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +2 -1
  137. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +3 -1
  138. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-v2-observation-cn.md +105 -0
  139. package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-v2-observation-en.md +122 -0
  140. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +4 -4
  141. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIV2ObservationCheck.js +1862 -0
  142. package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +2 -0
  143. package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +1 -1
  144. package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +15 -2
  145. package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +20 -4
  146. package/skills/a2h-spec-design-pipeline/scripts/test_arkui_v2_observation.ts +284 -0
  147. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +32 -0
  148. package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +22 -1
  149. package/skills/a2h-utg-static/SKILL.md +2 -0
  150. package/skills/a2h-utg-static/references/extractors.md +16 -0
  151. package/skills/a2h-utg-static/scripts/run_pipeline.mjs +22 -1
  152. package/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +4 -0
  153. package/skills/a2h-utg-static/scripts/tests/test_pr169_review_fixes.mjs +15 -0
  154. package/skills/a2h-utg-static/scripts/tests/test_view_attachments.mjs +330 -0
  155. package/skills/a2h-utg-static/scripts/view_attachments.mjs +465 -0
  156. package/README.md +0 -413
  157. package/dist/cli/config-store.js +0 -128
  158. package/dist/cli/config.js +0 -48
  159. package/dist/cli/editors.json +0 -147
  160. package/dist/cli/env-vars.js +0 -127
  161. package/dist/cli/index.js +0 -76
  162. package/dist/cli/init.js +0 -2618
  163. package/dist/cli/uninstall.js +0 -406
  164. package/dist/platform/compose.js +0 -232
  165. package/dist/platform/frontmatter.js +0 -151
  166. package/dist/platform/installer.js +0 -417
  167. package/dist/platform/language.js +0 -77
  168. package/dist/platform/registry.js +0 -340
  169. package/dist/platform/transform.js +0 -397
  170. package/dist/platform/types.js +0 -9
  171. package/dist/platform/validate.js +0 -153
  172. package/dist/utils/regex.js +0 -7
  173. package/env-requirements.json +0 -536
  174. package/platforms/codebuddy/agents/build-fixer.frontmatter.md +0 -5
  175. package/platforms/codebuddy/agents/code-reviewer.frontmatter.md +0 -5
  176. package/platforms/codebuddy/agents/model-render-worker.frontmatter.md +0 -5
  177. package/platforms/codebuddy/agents/model-worker.frontmatter.md +0 -5
  178. package/platforms/codebuddy/agents/specgen-worker.frontmatter.md +0 -5
  179. package/resource/choose_editor.png +0 -0
  180. package/resource/set_sdk.png +0 -0
  181. package/resource/title_dark.png +0 -0
@@ -1,536 +0,0 @@
1
- {
2
- "$comment": [
3
- "Declarative environment requirements for `ht init`.",
4
- "`ht init` reads this file to (1) detect external tools and (2) report which",
5
- "skills/agents are BLOCKED / LIMITED / OK by anything missing.",
6
- "",
7
- "Every shipped skills/<name>/ and agents/<name>.md MUST have exactly one",
8
- "requirements[] entry with the same name (skills/a2h-app-migrate/test/",
9
- "test_env_requirements.mjs enforces this).",
10
- "",
11
- "tools[<id>]:",
12
- " source 'path' -> locate a runnable command (where/which) trying each alias;",
13
- " 'env-dir' -> a directory existence check (envVar resolved from ht config).",
14
- " 'python-import' -> probe pip packages with the first Python found on PATH,",
15
- " via `python -c \"import ...\"` (imports lists the module names).",
16
- " Supported for user-edited configs; no shipped requirement",
17
- " uses it (no skill ships Python any more).",
18
- " aliases command names to try in order (e.g. python, python3, py). First hit wins.",
19
- " For 'python-import': the interpreter aliases to probe.",
20
- " imports for 'python-import': module names that must all be importable.",
21
- " verify argv passed to the resolved command to print its version (existence proof too).",
22
- " Use a flag that prints-and-exits. NEVER use `python -v` (verbose REPL -> hangs);",
23
- " use `python --version`.",
24
- " versionStream 'stdout' (default) or 'stderr' (java -version prints to stderr).",
25
- " versionRegex capture group(s) for the numeric version in the verify output.",
26
- " version default required range for this tool, {min, max} as [min, max) — min",
27
- " inclusive, max exclusive; either may be null/omitted = unbounded. A",
28
- " requirement dependency may override this.",
29
- " fallback when not on PATH, probe <base>/<segments>/<exe>. base is a config env key",
30
- " (DEVECO_SDK_HOME / DEVECO_HOME). Mirrors how the skills resolve hdc/java.",
31
- " hint shown when the tool is missing.",
32
- "",
33
- "requirements[]: name + kind (skill|agent) + dependencies[] of",
34
- " { tool, level: 'required'|'optional', version?: {min,max} }.",
35
- " A missing 'required' tool -> BLOCKED; only 'optional' missing -> LIMITED; else OK."
36
- ],
37
- "tools": {
38
- "deveco": {
39
- "source": "env-dir",
40
- "envVar": "DEVECO_SDK_HOME",
41
- "hint": "set DEVECO_SDK_HOME via `ht init` (DevEco Studio install)"
42
- },
43
- "adb": {
44
- "source": "path",
45
- "aliases": [
46
- "adb"
47
- ],
48
- "verify": [
49
- "version"
50
- ],
51
- "versionRegex": "(\\d+\\.\\d+(?:\\.\\d+)?)",
52
- "hint": "Android SDK platform-tools (needed for Android-device capture / APK install)"
53
- },
54
- "hdc": {
55
- "source": "path",
56
- "aliases": [
57
- "hdc"
58
- ],
59
- "verify": [
60
- "-v"
61
- ],
62
- "versionRegex": "(\\d+\\.\\d+(?:\\.\\d+)?)",
63
- "fallback": {
64
- "base": "DEVECO_SDK_HOME",
65
- "segments": [
66
- "default",
67
- "openharmony",
68
- "toolchains"
69
- ],
70
- "exe": "hdc"
71
- },
72
- "hint": "ships with DevEco: <sdk>/default/openharmony/toolchains"
73
- },
74
- "node": {
75
- "source": "path",
76
- "aliases": [
77
- "node"
78
- ],
79
- "verify": [
80
- "--version"
81
- ],
82
- "versionRegex": "v?(\\d+\\.\\d+(?:\\.\\d+)?)",
83
- "version": {
84
- "min": "22.18.0",
85
- "max": null
86
- },
87
- "hint": "Node.js 22.18+ required for every skill script (req-gen, spec generation/ordering, pipeline scripts, dashboard) run via `node`"
88
- },
89
- "npm": {
90
- "source": "path",
91
- "aliases": [
92
- "npm"
93
- ],
94
- "verify": [
95
- "--version"
96
- ],
97
- "versionRegex": "(\\d+\\.\\d+(?:\\.\\d+)?)",
98
- "hint": "ships with Node.js; used by `ht init` itself, by the reqgen self-checks (`npm run model -- ...`) and by the offline-bundle flow"
99
- },
100
- "git": {
101
- "source": "path",
102
- "aliases": [
103
- "git"
104
- ],
105
- "verify": [
106
- "--version"
107
- ],
108
- "versionRegex": "(\\d+\\.\\d+(?:\\.\\d+)?)",
109
- "hint": "system tool (auto-installed by `ht init` if missing); >= 2.38 enables the spec-pipeline wave-end audit's resolver hand-edit layer (merge-tree --write-tree; older git: that one layer skips with a stderr warning)"
110
- },
111
- "homegraph": {
112
- "source": "path",
113
- "aliases": [
114
- "homegraph"
115
- ],
116
- "verify": [
117
- "--version"
118
- ],
119
- "versionRegex": "(\\d+\\.\\d+(?:\\.\\d+)?)",
120
- "hint": "auto-installed by `ht init` (with arkanalyzer); manual: npm i -g homegraph arkanalyzer"
121
- },
122
- "homecheck": {
123
- "source": "path",
124
- "aliases": [
125
- "homecheck"
126
- ],
127
- "verify": [
128
- "--version"
129
- ],
130
- "versionRegex": "(\\d+\\.\\d+(?:\\.\\d+)?)",
131
- "hint": "auto-installed by `ht init`; manual: npm i -g homecheck@next (2.0.0-next.0; `latest` is still 1.0.5); required by the spec pipeline's post-loop static-defect check (preflight installs or upgrades it in place)"
132
- },
133
- "devecocli": {
134
- "source": "path",
135
- "aliases": [
136
- "devecocli"
137
- ],
138
- "verify": [
139
- "--version"
140
- ],
141
- "versionRegex": "(\\d+\\.\\d+(?:\\.\\d+)?)",
142
- "hint": "auto-installed by `ht init`; manual: npm i -g @deveco/deveco-cli (requires DevEco Studio >= 6.1.0); preflight requires >= 1.2 and, when the UI lane runs, also probes `devecocli docs search` (a2h-batch-ui-align reads the official state-management docs through it)"
143
- },
144
- "a2h-resource": {
145
- "source": "path",
146
- "aliases": [
147
- "a2h-resource"
148
- ],
149
- "hint": "auto-installed by `ht init`; manual: npm i -g a2h-resource (APK decoder for a2h-resource-convert)"
150
- }
151
- },
152
- "requirements": [
153
- {
154
- "name": "a2h-app-migrate",
155
- "kind": "skill",
156
- "dependencies": [
157
- {
158
- "tool": "node",
159
- "level": "required",
160
- "version": {
161
- "min": "22.18.0"
162
- }
163
- },
164
- {
165
- "tool": "npm",
166
- "level": "required"
167
- },
168
- {
169
- "tool": "git",
170
- "level": "required"
171
- },
172
- {
173
- "tool": "devecocli",
174
- "level": "required"
175
- },
176
- {
177
- "tool": "homegraph",
178
- "level": "required"
179
- },
180
- {
181
- "tool": "homecheck",
182
- "level": "required",
183
- "version": {
184
- "min": "2.0.0-next.0"
185
- }
186
- },
187
- {
188
- "tool": "adb",
189
- "level": "optional"
190
- },
191
- {
192
- "tool": "hdc",
193
- "level": "optional"
194
- },
195
- {
196
- "tool": "deveco",
197
- "level": "required"
198
- }
199
- ],
200
- "note": "Full-migration orchestrator (/hometrans, workflow.yaml). env_preflight hard-requires node 22.18+, npm, git, devecocli + DevEco, the global homegraph CLI and the reqgen npm links; homecheck 2.0.0-next.0+ is required when the spec pipeline runs (preflight installs/upgrades it in place; 2.0.0-next.0 — the npm `next` tag, `latest` is still 1.0.5 — is the release that renames the `@arkui-reliability` rule set to `@arkui-semantic-correctness`); adb is needed by the UI lane, hdc/DEVECO by the build + cold-start smoke gate. Python is not required."
201
- },
202
- {
203
- "name": "a2h-arch-generate",
204
- "kind": "skill",
205
- "dependencies": [
206
- {
207
- "tool": "node",
208
- "level": "required",
209
- "version": {
210
- "min": "22.18.0"
211
- }
212
- },
213
- {
214
- "tool": "devecocli",
215
- "level": "required"
216
- },
217
- {
218
- "tool": "homegraph",
219
- "level": "optional"
220
- }
221
- ],
222
- "note": "Scripts are self-contained Node .mjs (no npm dependencies). homegraph optional (auto engine mode degrades to local analysis)."
223
- },
224
- {
225
- "name": "a2h-batch-ui-align",
226
- "kind": "skill",
227
- "dependencies": [
228
- { "tool": "deveco", "level": "required" },
229
- { "tool": "devecocli", "level": "required" },
230
- { "tool": "node", "level": "required", "version": { "min": "22.18.0" } },
231
- { "tool": "homegraph", "level": "required" },
232
- { "tool": "adb", "level": "required" }
233
- ],
234
- "note": "Step 2: UI migration. Full mode is Node-only: a2h-utg-static (homegraph) + a2h-utg-explorer (adb, one device), then converts every static UTG node — uncaptured ones source-only. Sub-agents (resources, reviewers, conversion groups) are background sub-agents of the host session, scheduled by group_queue.mjs; no separate agent CLI is needed. opencode / DevEco Code need OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true / DEVECO_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true for non-blocking dispatch. Incremental mode's targeted capture (I5) runs the same explorer limited to the scope (plan.mjs --scope), so neither mode needs Python."
235
- },
236
- {
237
- "name": "a2h-spec-generate",
238
- "kind": "skill",
239
- "dependencies": [
240
- {
241
- "tool": "homegraph",
242
- "level": "required"
243
- },
244
- {
245
- "tool": "node",
246
- "level": "required",
247
- "version": {
248
- "min": "22.18.0"
249
- }
250
- },
251
- {
252
- "tool": "npm",
253
- "level": "required"
254
- }
255
- ],
256
- "note": "Step 3: Android/UniApp source + UTG → SPEC and the specs.json manifest. One merged skill: the former req-generation stage, the former SPEC-generation stage and their pipeline wrapper are now in-skill steps. The reqgen runtime npm deps (commander/zod/web-tree-sitter/tree-sitter-wasms/homegraph) are linked from the global install by `ht init`; the workers run their self-checks through `npm run model|dashboard|viz`, and the CLI drives the homegraph CLI directly."
257
- },
258
- {
259
- "name": "a2h-page-specgen",
260
- "kind": "skill",
261
- "dependencies": [
262
- {
263
- "tool": "homegraph",
264
- "level": "required"
265
- },
266
- {
267
- "tool": "node",
268
- "level": "required",
269
- "version": {
270
- "min": "22.18.0"
271
- }
272
- }
273
- ],
274
- "note": "Default SPEC-generation engine for a2h-app-migrate (SPEC_ENGINE=page-specgen): one SPEC per page from the static UTG. Self-contained Node .mjs scripts (no npm runtime deps); opens the source index DB directly with `node:sqlite` and uses the global homegraph CLI only for status/init/index/sync."
275
- },
276
- {
277
- "name": "a2h-spec-design-pipeline",
278
- "kind": "skill",
279
- "dependencies": [
280
- {
281
- "tool": "deveco",
282
- "level": "required"
283
- },
284
- {
285
- "tool": "devecocli",
286
- "level": "required"
287
- },
288
- {
289
- "tool": "homegraph",
290
- "level": "required"
291
- },
292
- {
293
- "tool": "homecheck",
294
- "level": "required",
295
- "version": {
296
- "min": "2.0.0-next.0"
297
- }
298
- },
299
- {
300
- "tool": "node",
301
- "level": "required",
302
- "version": {
303
- "min": "22.18.0",
304
- "max": null
305
- }
306
- },
307
- {
308
- "tool": "git",
309
- "level": "optional",
310
- "version": {
311
- "min": "2.38.0",
312
- "max": null
313
- }
314
- },
315
- {
316
- "tool": "hdc",
317
- "level": "optional"
318
- }
319
- ],
320
- "note": "Step 4: Spec design + implement pipeline (grouped waves). node required for the deterministic pipeline scripts (type stripping); hdc optional for the B6 self-test stage (skippable via --skip-test); git >= 2.38 optional — the wave-end audit's resolver hand-edit layer uses merge-tree --write-tree, older git degrades that one layer fail-soft (stderr warning). homecheck 2.0.0-next.0+ is required for the post-loop static-defect check: ht init installs it and preflight installs or upgrades it in place when missing/too old (a global change reported as WARN); a CLI still missing/too old afterwards, an unresolvable package, or a ruleSet.json without the two fixed domains (`@arkui-semantic-correctness`, `@correctness` — the first was renamed from `@arkui-reliability` in 2.0.0-next.0) hard-fails preflight — the check is never skipped."
321
- },
322
- {
323
- "name": "a2h-arkts-logic-coder",
324
- "kind": "skill",
325
- "dependencies": [
326
- {
327
- "tool": "node",
328
- "level": "required",
329
- "version": {
330
- "min": "22.18.0"
331
- }
332
- },
333
- {
334
- "tool": "homegraph",
335
- "level": "optional"
336
- }
337
- ],
338
- "note": "ArkTS logic coding + per-chunk design; node for the MVVM check, the stop hook, and the design scripts (.ts/.mjs, type stripping); homegraph optional (auto mode degrades)."
339
- },
340
- {
341
- "name": "a2h-resource-convert",
342
- "kind": "skill",
343
- "dependencies": [
344
- {
345
- "tool": "a2h-resource",
346
- "level": "required"
347
- },
348
- {
349
- "tool": "node",
350
- "level": "required",
351
- "version": {
352
- "min": "22.18.0"
353
- }
354
- }
355
- ],
356
- "note": "Independent skill: resource conversion. APK decoding via the a2h-resource CLI; decode failure falls back to source res/."
357
- },
358
- {
359
- "name": "a2h-utg-static",
360
- "kind": "skill",
361
- "dependencies": [
362
- { "tool": "node", "level": "required", "version": { "min": "22.18.0" } },
363
- { "tool": "homegraph", "level": "required" }
364
- ],
365
- "note": "Static UTG skeleton from source (run_pipeline.mjs, two-phase with reviewer worklists). Node-only; reads the homegraph DB via node:sqlite. Carries its own static_prior/phase_planner ports (JS), so it imports nothing from another skill."
366
- },
367
- {
368
- "name": "a2h-utg-explorer",
369
- "kind": "skill",
370
- "dependencies": [
371
- { "tool": "node", "level": "required", "version": { "min": "22.18.0" } },
372
- { "tool": "adb", "level": "required" }
373
- ],
374
- "note": "State-aware device exploration compiled from the static UTG (run_cycle.mjs: phases + recovery A-D). Node-only; ships assets/u2.jar (uiautomator2 0.4.0 server, MIT) for the fast layout backend, screenshots via adb screencap -p. No model dependency."
375
- },
376
- {
377
- "name": "a2h-dashboard-render",
378
- "kind": "skill",
379
- "dependencies": [
380
- {
381
- "tool": "node",
382
- "level": "required",
383
- "version": {
384
- "min": "22.18.0"
385
- }
386
- }
387
- ],
388
- "note": "Conversion dashboard renderer (stdlib-only Node, no npm deps)."
389
- },
390
- {
391
- "name": "a2h-fix-build-errors",
392
- "kind": "skill",
393
- "dependencies": [
394
- {
395
- "tool": "deveco",
396
- "level": "required"
397
- },
398
- {
399
- "tool": "devecocli",
400
- "level": "required"
401
- }
402
- ],
403
- "note": "Build-fix loop; drives `devecocli build` directly."
404
- },
405
- {
406
- "name": "a2h-coldstart-smoke-gate",
407
- "kind": "skill",
408
- "dependencies": [
409
- {
410
- "tool": "devecocli",
411
- "level": "optional",
412
- "version": {
413
- "min": "1.3.3",
414
- "max": null
415
- }
416
- },
417
- {
418
- "tool": "hdc",
419
- "level": "optional"
420
- },
421
- {
422
- "tool": "deveco",
423
- "level": "optional"
424
- }
425
- ],
426
- "note": "Cold-start smoke gate (crash/blank) before steps 1/2/4 final reports. Real-device targets run a signing preflight first (devecocli signature generate; devecocli auth login prompted when not logged in). devecocli >= 1.3.3 for the built-in smoke check; missing/old CLI, no device, or no DevEco -> the gate skips (SKIPPED_*), never blocks the pipeline."
427
- },
428
- {
429
- "name": "a2h-module-semantic-docs",
430
- "kind": "skill",
431
- "dependencies": [
432
- {
433
- "tool": "node",
434
- "level": "required",
435
- "version": {
436
- "min": "22.18.0",
437
- "max": null
438
- }
439
- },
440
- {
441
- "tool": "homegraph",
442
- "level": "optional"
443
- }
444
- ],
445
- "note": "Called by a2h-spec-design-pipeline (I3 baseline + wave B5). Scanner and state committer are self-contained Node .mjs scripts (no npm dependencies). homegraph optional (auto engine mode degrades to local analysis)."
446
- },
447
- {
448
- "name": "build-fixer",
449
- "kind": "agent",
450
- "dependencies": [
451
- {
452
- "tool": "deveco",
453
- "level": "required"
454
- },
455
- {
456
- "tool": "devecocli",
457
- "level": "required"
458
- }
459
- ],
460
- "note": "Drives `devecocli build` in the fix loop."
461
- },
462
- {
463
- "name": "code-reviewer",
464
- "kind": "agent",
465
- "dependencies": [
466
- {
467
- "tool": "deveco",
468
- "level": "required"
469
- },
470
- {
471
- "tool": "homegraph",
472
- "level": "optional"
473
- },
474
- {
475
- "tool": "devecocli",
476
- "level": "required"
477
- }
478
- ],
479
- "note": "Scenario-validation reviewer (mode=review, read-only) and review fixer (mode=fix). deveco/devecocli required for fix mode's single build (a2h-fix-build-errors) and docs lookups; homegraph optional (falls back to direct diff analysis)."
480
- },
481
- {
482
- "name": "model-worker",
483
- "kind": "agent",
484
- "dependencies": [
485
- {
486
- "tool": "node",
487
- "level": "required",
488
- "version": {
489
- "min": "22.18.0"
490
- }
491
- },
492
- {
493
- "tool": "npm",
494
- "level": "required"
495
- }
496
- ],
497
- "note": "a2h-spec-generate subagent: executes one interaction task.md and runs the reqgen self-check (`npm run model -- check-task`). No tools beyond its task scope."
498
- },
499
- {
500
- "name": "model-render-worker",
501
- "kind": "agent",
502
- "dependencies": [
503
- {
504
- "tool": "node",
505
- "level": "required",
506
- "version": {
507
- "min": "22.18.0"
508
- }
509
- },
510
- {
511
- "tool": "npm",
512
- "level": "required"
513
- }
514
- ],
515
- "note": "a2h-spec-generate fused subagent: reconciles one Area and authors its SPECs, then runs check-fused-spec.mjs from the reqgen runtime."
516
- },
517
- {
518
- "name": "specgen-worker",
519
- "kind": "agent",
520
- "dependencies": [
521
- {
522
- "tool": "node",
523
- "level": "required",
524
- "version": {
525
- "min": "22.18.0"
526
- }
527
- },
528
- {
529
- "tool": "npm",
530
- "level": "required"
531
- }
532
- ],
533
- "note": "a2h-spec-generate page-batch subagent: writes <feature>-SPEC.md from one req-<idx>.txt batch and runs the task.md check commands."
534
- }
535
- ]
536
- }
@@ -1,5 +0,0 @@
1
- ---
2
- name: build-fixer
3
- description: Automatically builds a HarmonyOS project, parses compile errors, fixes them, and retries in a loop until build succeeds
4
- tools: Agent
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- name: code-reviewer
3
- description: Reviews HarmonyOS code against the scenarios of a SPEC document and fixes the confirmed defects. mode=review (default, read-only) — extracts the change via git, expands it with homegraph, judges every scenario PASS / PARTIAL / FAIL / UNABLE TO VERIFY with launch-path tracing and cross-cutting checks, writes code-review-report.md. mode=fix — fixes the issues a review report lists, builds once (or leaves the build to the dispatcher), writes review-fix-report.md and commits.
4
- tools: Agent
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- name: model-render-worker
3
- description: Fused Model worker for a2h-spec-generate — executes ONE self-contained per-Area fused task.md (reconcile + SPEC authoring in one session) and writes output.json plus specs/<stem>-SPEC.md (finalized true) after check-fused-spec passes
4
- tools: Agent
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- name: model-worker
3
- description: Model worker for a2h-spec-generate — executes one self-contained interaction task.md (candidate review, or Area reconciliation/discovery) and writes only its own output.json (finalized true) after check-task passes
4
- tools: Agent
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- name: specgen-worker
3
- description: SpecGen page worker for a2h-spec-generate — processes exactly one req-<idx>.txt page batch into <feature>-SPEC.md files from the rendered task.md it is handed
4
- tools: Agent
5
- ---
Binary file
Binary file
Binary file