@ohos-cpf/3rdloop 0.0.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 (389) hide show
  1. package/README.md +425 -0
  2. package/bin/3rdloop.mjs +48 -0
  3. package/lib/cli.js +741 -0
  4. package/lib/config.js +318 -0
  5. package/lib/doctor.js +114 -0
  6. package/lib/exit-codes.js +31 -0
  7. package/lib/opencode.js +156 -0
  8. package/lib/orch.js +427 -0
  9. package/lib/queries.js +264 -0
  10. package/lib/runner.js +979 -0
  11. package/lib/step.js +326 -0
  12. package/lib/ui.js +223 -0
  13. package/lib/workflow.js +291 -0
  14. package/lib/workflows.js +132 -0
  15. package/package.json +50 -0
  16. package/vendor/Server/Agent/SkillSelector/README.md +344 -0
  17. package/vendor/Server/Agent/SkillSelector/core/Agent.js +207 -0
  18. package/vendor/Server/Agent/SkillSelector/index.js +14 -0
  19. package/vendor/Server/Agent/SkillSelector/llm/llmClient.js +313 -0
  20. package/vendor/Server/Agent/SkillSelector/llm/prompts.js +161 -0
  21. package/vendor/Server/Agent/SkillSelector/llm/reactSteps.js +144 -0
  22. package/vendor/Server/Agent/SkillSelector/matcher/fuzzyMatcher.js +433 -0
  23. package/vendor/Server/Agent/SkillSelector/scanner/skillScanner.js +382 -0
  24. package/vendor/Server/Agent/SkillSelector/types.js +63 -0
  25. package/vendor/Server/Agent/SkillSelector/utils/actionWords.js +60 -0
  26. package/vendor/Server/Brain/AnalysisStrategies.js +422 -0
  27. package/vendor/Server/Brain/Brain.js +686 -0
  28. package/vendor/Server/Brain/DecompositionStrategies.js +621 -0
  29. package/vendor/Server/Brain/PlanPersistence.js +196 -0
  30. package/vendor/Server/Brain/SkillExecutor.js +251 -0
  31. package/vendor/Server/Brain/index.js +11 -0
  32. package/vendor/Server/CLI/cli.js +243 -0
  33. package/vendor/Server/CLI/opencode/index.js +804 -0
  34. package/vendor/Server/CLI/opencode.js +5 -0
  35. package/vendor/Server/DbUse/MessageArchive.js +61 -0
  36. package/vendor/Server/DbUse/StorageManager.js +107 -0
  37. package/vendor/Server/DbUse/adapters/BaseAdapter.js +94 -0
  38. package/vendor/Server/DbUse/adapters/FileAdapter.js +138 -0
  39. package/vendor/Server/DbUse/adapters/JsonAdapter.js +138 -0
  40. package/vendor/Server/DbUse/adapters/JsonlAdapter.js +114 -0
  41. package/vendor/Server/DbUse/adapters/SqliteAdapter.js +157 -0
  42. package/vendor/Server/DbUse/index.js +160 -0
  43. package/vendor/Server/DbUse/stores/SessionStore.js +279 -0
  44. package/vendor/Server/DbUse/stores/TaskExecutionStore.js +133 -0
  45. package/vendor/Server/DbUse/stores/TaskRegistryStore.js +262 -0
  46. package/vendor/Server/DbUse/stores/TaskStepStore.js +279 -0
  47. package/vendor/Server/FlexRunner/FlexRunner.js +1759 -0
  48. package/vendor/Server/FlexRunner/index.js +12 -0
  49. package/vendor/Server/Knowledge/KnowledgeImporter.js +523 -0
  50. package/vendor/Server/Knowledge/KnowledgeManager.js +341 -0
  51. package/vendor/Server/Knowledge/index.js +33 -0
  52. package/vendor/Server/LoopEngine/LoopEngine.js +1133 -0
  53. package/vendor/Server/LoopEngine/index.js +11 -0
  54. package/vendor/Server/Orchestrator/Orchestrator.js +1425 -0
  55. package/vendor/Server/Orchestrator/StepNode.js +312 -0
  56. package/vendor/Server/Orchestrator/index.js +13 -0
  57. package/vendor/Server/Routes/controllers/BrainController.js +241 -0
  58. package/vendor/Server/Routes/controllers/FlexRunnerController.js +1125 -0
  59. package/vendor/Server/Routes/controllers/HealthController.js +44 -0
  60. package/vendor/Server/Routes/controllers/KnowledgeImportController.js +355 -0
  61. package/vendor/Server/Routes/controllers/LoopEngineController.js +788 -0
  62. package/vendor/Server/Routes/controllers/OrchestratorController.js +911 -0
  63. package/vendor/Server/Routes/controllers/StatsController.js +57 -0
  64. package/vendor/Server/Routes/controllers/StreamController.js +67 -0
  65. package/vendor/Server/Routes/library/logger.js +179 -0
  66. package/vendor/Server/Routes/library/zipArchive.js +172 -0
  67. package/vendor/Server/Routes/router/Router.js +204 -0
  68. package/vendor/Server/Routes/routes/brain.js +47 -0
  69. package/vendor/Server/Routes/routes/flexrunner.js +72 -0
  70. package/vendor/Server/Routes/routes/health.js +28 -0
  71. package/vendor/Server/Routes/routes/index.js +57 -0
  72. package/vendor/Server/Routes/routes/knowledge.js +55 -0
  73. package/vendor/Server/Routes/routes/loopengine.js +58 -0
  74. package/vendor/Server/Routes/routes/orchestrator.js +61 -0
  75. package/vendor/Server/Routes/routes/registry.js +98 -0
  76. package/vendor/Server/Routes/routes/stats.js +23 -0
  77. package/vendor/Server/Routes/routes/stream.js +30 -0
  78. package/vendor/Server/Routes/server.js +202 -0
  79. package/vendor/Server/Routes/sse/SseHub.js +308 -0
  80. package/vendor/Server/Skills/acceptance-check/SKILL.md +174 -0
  81. package/vendor/Server/Skills/acceptance-check/references/PHASE1_ARTIFACT_COLLECTION.md +52 -0
  82. package/vendor/Server/Skills/acceptance-check/references/PHASE2_CRITERIA_EVALUATION.md +77 -0
  83. package/vendor/Server/Skills/arkts-code-check/SKILL.md +314 -0
  84. package/vendor/Server/Skills/arkts-code-check/references/CODE_CHECK_GUIDE.md +160 -0
  85. package/vendor/Server/Skills/arkts-code-check/references/FILE_TYPE_GUIDE.md +29 -0
  86. package/vendor/Server/Skills/arkts-code-check/references/PHASE1_INFO_COLLECTION.md +222 -0
  87. package/vendor/Server/Skills/arkts-code-check/references/REPORT_TEMPLATE.md +220 -0
  88. package/vendor/Server/Skills/arkts-library-compile-validate/SKILL.md +329 -0
  89. package/vendor/Server/Skills/arkts-library-compile-validate/scripts/build.ps1 +93 -0
  90. package/vendor/Server/Skills/arkts-library-compile-validate/scripts/code-linter.cjs +433 -0
  91. package/vendor/Server/Skills/arkts-library-compile-validate/scripts/migrate.cjs +851 -0
  92. package/vendor/Server/Skills/arkts-library-compile-validate/scripts/ohpm-switch.cjs +789 -0
  93. package/vendor/Server/Skills/arkts-library-demo-code/SKILL.md +291 -0
  94. package/vendor/Server/Skills/arkts-library-demo-code/references/API_SIGNATURE_CHECKS.md +68 -0
  95. package/vendor/Server/Skills/arkts-library-demo-code/references/BUILD_VALIDATION.md +184 -0
  96. package/vendor/Server/Skills/arkts-library-demo-code/references/CODE_STANDARDS.md +337 -0
  97. package/vendor/Server/Skills/arkts-library-demo-code/references/EXAMPLES.md +400 -0
  98. package/vendor/Server/Skills/arkts-library-demo-code/references/SYSTEM_API_LOOKUP.md +99 -0
  99. package/vendor/Server/Skills/arkts-library-demo-code/references/TEMPLATE.md +544 -0
  100. package/vendor/Server/Skills/arkts-library-demo-code/scripts/build.ps1 +93 -0
  101. package/vendor/Server/Skills/arkts-library-demo-code/scripts/code-linter.cjs +433 -0
  102. package/vendor/Server/Skills/arkts-library-demo-code/scripts/migrate.cjs +851 -0
  103. package/vendor/Server/Skills/arkts-library-demo-code/scripts/ohpm-switch.cjs +789 -0
  104. package/vendor/Server/Skills/arkts-library-demo-coverage/SKILL.md +174 -0
  105. package/vendor/Server/Skills/arkts-library-demo-scenario/SKILL.md +321 -0
  106. package/vendor/Server/Skills/arkts-library-demo-scenario/references/EXAMPLES.md +100 -0
  107. package/vendor/Server/Skills/arkts-library-demo-scenario/references/TEMPLATE.md +185 -0
  108. package/vendor/Server/Skills/arkts-library-documentation-quality-check/SKILL.md +234 -0
  109. package/vendor/Server/Skills/arkts-library-documentation-quality-check/assets/REPORT_TEMPLATE.md +103 -0
  110. package/vendor/Server/Skills/arkts-library-documentation-quality-check/references/CHECK_DIMENSIONS.md +89 -0
  111. package/vendor/Server/Skills/arkts-library-documentation-quality-check/references/COMPLIANCE_CHECKLIST.md +62 -0
  112. package/vendor/Server/Skills/arkts-library-documentation-quality-check/references/KB_QUERY_GUIDE.md +108 -0
  113. package/vendor/Server/Skills/arkts-library-documentation-quality-check/references/MCP_TOOL_DISCOVERY.md +124 -0
  114. package/vendor/Server/Skills/arkts-library-documentation-quality-check/references/REPORT_TEMPLATE.md +90 -0
  115. package/vendor/Server/Skills/arkts-library-documentation-quality-check/references/SCORING_FORMULA.md +57 -0
  116. package/vendor/Server/Skills/arkts-library-documentation-quality-check/scripts/validate-skill.cjs +259 -0
  117. package/vendor/Server/Skills/arkts-library-interface-spec/SKILL.md +97 -0
  118. package/vendor/Server/Skills/arkts-library-memory-leak-check/SKILL.md +392 -0
  119. package/vendor/Server/Skills/arkts-library-source-clone/SKILL.md +113 -0
  120. package/vendor/Server/Skills/arkts-library-stability-check/SKILL.md +313 -0
  121. package/vendor/Server/Skills/arkts-library-stability-check/assets/REPORT_TEMPLATE.md +154 -0
  122. package/vendor/Server/Skills/arkts-library-stability-check/references/CHECKLIST.md +166 -0
  123. package/vendor/Server/Skills/arkts-library-stability-check/references/CODE_EXAMPLES.md +309 -0
  124. package/vendor/Server/Skills/arkts-library-stability-check/references/SCORING_RULES.md +90 -0
  125. package/vendor/Server/Skills/arkts-library-stability-check/scripts/validate-skill.cjs +282 -0
  126. package/vendor/Server/Skills/arkts-library-test-coverage-check/SKILL.md +361 -0
  127. package/vendor/Server/Skills/arkts-library-test-coverage-check/assets/REPORT_TEMPLATE.md +146 -0
  128. package/vendor/Server/Skills/arkts-library-test-coverage-check/references/CHECKLIST.md +253 -0
  129. package/vendor/Server/Skills/arkts-library-test-coverage-check/references/MCP_TOOL_USAGE.md +115 -0
  130. package/vendor/Server/Skills/arkts-library-test-coverage-check/scripts/validate-skill.cjs +263 -0
  131. package/vendor/Server/Skills/arkts-library-xts-code/SKILL.md +455 -0
  132. package/vendor/Server/Skills/arkts-library-xts-code/assets/report-template.md +60 -0
  133. package/vendor/Server/Skills/arkts-library-xts-code/references/ACCESS_MODIFIER_PRECHECK.md +76 -0
  134. package/vendor/Server/Skills/arkts-library-xts-code/references/BUILD_VERIFICATION.md +200 -0
  135. package/vendor/Server/Skills/arkts-library-xts-code/references/CODE_STANDARDS.md +519 -0
  136. package/vendor/Server/Skills/arkts-library-xts-code/references/SUBAGENT_PROMPT_TEMPLATE.md +276 -0
  137. package/vendor/Server/Skills/arkts-library-xts-code/references/SYSTEM_API_LOOKUP.md +93 -0
  138. package/vendor/Server/Skills/arkts-library-xts-code/references/XTS_TEMPLATE.md +767 -0
  139. package/vendor/Server/Skills/arkts-library-xts-code/scripts/build.ps1 +93 -0
  140. package/vendor/Server/Skills/arkts-library-xts-code/scripts/code-linter.cjs +433 -0
  141. package/vendor/Server/Skills/arkts-library-xts-code/scripts/migrate.cjs +851 -0
  142. package/vendor/Server/Skills/arkts-library-xts-code/scripts/ohpm-switch.cjs +789 -0
  143. package/vendor/Server/Skills/arkts-library-xts-code/scripts/precheck-access-modifiers.cjs +221 -0
  144. package/vendor/Server/Skills/arkts-library-xts-code-fix/SKILL.md +229 -0
  145. package/vendor/Server/Skills/arkts-library-xts-coverage/SKILL.md +97 -0
  146. package/vendor/Server/Skills/arkts-library-xts-doc/SKILL.md +194 -0
  147. package/vendor/Server/Skills/arkts-library-xts-doc/references/EXAMPLES.md +576 -0
  148. package/vendor/Server/Skills/arkts-library-xts-doc/references/TEMPLATE.md +575 -0
  149. package/vendor/Server/Skills/arkts-library-xts-doc/references/TESTABILITY_GUIDE.md +182 -0
  150. package/vendor/Server/Skills/arkts-library-xts-execution/SKILL.md +491 -0
  151. package/vendor/Server/Skills/arkts-library-xts-execution/references/error-fixing-examples.md +217 -0
  152. package/vendor/Server/Skills/arkts-library-xts-execution/scripts/build.ps1 +93 -0
  153. package/vendor/Server/Skills/arkts-library-xts-execution/scripts/code-linter.cjs +433 -0
  154. package/vendor/Server/Skills/arkts-library-xts-execution/scripts/migrate.cjs +851 -0
  155. package/vendor/Server/Skills/arkts-library-xts-execution/scripts/ohpm-switch.cjs +789 -0
  156. package/vendor/Server/Skills/flutter-code-check/SKILL.md +299 -0
  157. package/vendor/Server/Skills/flutter-code-check/assets/OUTPUT_TEMPLATE.md +312 -0
  158. package/vendor/Server/Skills/flutter-code-check/references/CHECKLIST.md +190 -0
  159. package/vendor/Server/Skills/flutter-code-check/references/PLATFORMS.md +134 -0
  160. package/vendor/Server/Skills/flutter-code-check/scripts/validate-skill.cjs +259 -0
  161. package/vendor/Server/Skills/flutter-interface/README.md +75 -0
  162. package/vendor/Server/Skills/flutter-interface/SKILL.md +291 -0
  163. package/vendor/Server/Skills/flutter-interface/references/EXAMPLES.md +336 -0
  164. package/vendor/Server/Skills/flutter-interface/references/GIT_CLONE_GUIDE.md +190 -0
  165. package/vendor/Server/Skills/flutter-interface/references/SCRIPT_REFERENCE.md +258 -0
  166. package/vendor/Server/Skills/flutter-interface/references/TEMPLATE.md +254 -0
  167. package/vendor/Server/Skills/flutter-library-consistency-check/SKILL.md +518 -0
  168. package/vendor/Server/Skills/flutter-library-consistency-check/references/CHECKLIST.md +382 -0
  169. package/vendor/Server/Skills/flutter-library-consistency-check/references/FUNCTION_COMPARISON_GUIDE.md +342 -0
  170. package/vendor/Server/Skills/flutter-library-consistency-check/references/PLATFORM_LIMITATION_GUIDE.md +71 -0
  171. package/vendor/Server/Skills/flutter-library-documentation-quality-check/SKILL.md +519 -0
  172. package/vendor/Server/Skills/flutter-library-documentation-quality-check/references/CHECKLIST.md +407 -0
  173. package/vendor/Server/Skills/flutter-library-memory-leak-check/SKILL.md +653 -0
  174. package/vendor/Server/Skills/flutter-library-memory-leak-check/references/CHECKLIST.md +397 -0
  175. package/vendor/Server/Skills/flutter-library-stability-check/SKILL.md +745 -0
  176. package/vendor/Server/Skills/flutter-library-stability-check/references/CHECKLIST.md +721 -0
  177. package/vendor/Server/Skills/flutter-library-test-coverage-check/SKILL.md +414 -0
  178. package/vendor/Server/Skills/flutter-library-test-coverage-check/assets/REPORT_TEMPLATE.md +150 -0
  179. package/vendor/Server/Skills/flutter-library-test-coverage-check/references/CHECKLIST.md +304 -0
  180. package/vendor/Server/Skills/flutter-library-test-coverage-check/references/SCORING_RULES.md +265 -0
  181. package/vendor/Server/Skills/flutter-library-test-coverage-check/references/SCRIPT_USAGE.md +286 -0
  182. package/vendor/Server/Skills/knowledge-import/SKILL.md +383 -0
  183. package/vendor/Server/Skills/knowledge-import/references/MCP_TOOL_USAGE.md +165 -0
  184. package/vendor/Server/Skills/knowledge-import/references/SKILL_LOCATOR_GUIDE.md +91 -0
  185. package/vendor/Server/Skills/knowledge-import/references/SKILL_OPTIMIZATION_GUIDE.md +127 -0
  186. package/vendor/Server/Skills/ohos-lib-pr-push/SKILL.md +301 -0
  187. package/vendor/Server/Skills/ohos-lib-pr-push/assets/PR_ISSUE_TEMPLATE.md +105 -0
  188. package/vendor/Server/Skills/ohos-lib-pr-push/references/GITCODE_API.md +127 -0
  189. package/vendor/Server/Skills/ohos-lib-pr-push/scripts/gitcode-api.cjs +208 -0
  190. package/vendor/Server/Skills/rn-code-check/SKILL.md +321 -0
  191. package/vendor/Server/Skills/rn-code-check/references/API-GUIDE.md +235 -0
  192. package/vendor/Server/Skills/rn-code-check/references/CHECKLIST.md +189 -0
  193. package/vendor/Server/Skills/rn-code-check/references/REPORT-TEMPLATE.md +247 -0
  194. package/vendor/Server/Skills/rn-lib-add-example/SKILL.md +198 -0
  195. package/vendor/Server/Skills/rn-lib-add-example/references/APP_RENAME_GUIDE.md +40 -0
  196. package/vendor/Server/Skills/rn-lib-add-example/references/SHELL_ADAPTATION_CHECKLIST.md +78 -0
  197. package/vendor/Server/Skills/rn-lib-add-example/references/TEMPLATE_REPO_GUIDE.md +70 -0
  198. package/vendor/Server/Skills/rn-lib-add-example/references/VERIFICATION_GUIDE.md +47 -0
  199. package/vendor/Server/Skills/rn-lib-add-example/scripts/create-example.cjs +252 -0
  200. package/vendor/Server/Skills/rn-lib-update-doc/SKILL.md +176 -0
  201. package/vendor/Server/Skills/rn-lib-update-doc/config.json +5 -0
  202. package/vendor/Server/Skills/rn-lib-update-doc/references/changelog-template.md +35 -0
  203. package/vendor/Server/Skills/rn-lib-update-doc/references/format-diff.md +137 -0
  204. package/vendor/Server/Skills/rn-lib-update-doc/references/link-registry.json +33 -0
  205. package/vendor/Server/Skills/rn-lib-update-doc/references/model-0.4.2-overview.md +40 -0
  206. package/vendor/Server/Skills/rn-lib-update-doc/references/model-0.4.2.md +429 -0
  207. package/vendor/Server/Skills/rn-lib-update-doc/scripts/detect-readme-format.cjs +105 -0
  208. package/vendor/Server/Skills/rn-lib-update-doc/scripts/find-usage-doc.cjs +90 -0
  209. package/vendor/Server/Skills/rn-lib-update-doc/scripts/link-verify.cjs +213 -0
  210. package/vendor/Server/Skills/rn-lib-update-doc/scripts/normalize-changelog.cjs +73 -0
  211. package/vendor/Server/Skills/rn-lib-update-doc/scripts/normalize-package-meta.cjs +258 -0
  212. package/vendor/Server/Skills/rn-lib-update-doc/scripts/normalize-readme-links.cjs +341 -0
  213. package/vendor/Server/Skills/rn-lib-update-doc/scripts/resolve-usage-docs.cjs +67 -0
  214. package/vendor/Server/Skills/rn-library-consistency-check/SKILL.md +299 -0
  215. package/vendor/Server/Skills/rn-library-consistency-check/assets/REPORT_TEMPLATE.md +293 -0
  216. package/vendor/Server/Skills/rn-library-consistency-check/references/ARKTS_COMPONENT_CHECK_GUIDE.md +857 -0
  217. package/vendor/Server/Skills/rn-library-consistency-check/references/ARKTS_TURBOMODULE_CHECK_GUIDE.md +856 -0
  218. package/vendor/Server/Skills/rn-library-consistency-check/references/CHECKLIST.md +157 -0
  219. package/vendor/Server/Skills/rn-library-consistency-check/references/CPP_COMPONENT_CHECK_GUIDE.md +801 -0
  220. package/vendor/Server/Skills/rn-library-consistency-check/references/CPP_TURBOMODULE_CHECK_GUIDE.md +684 -0
  221. package/vendor/Server/Skills/rn-library-consistency-check/references/FUNCTION_COMPARISON_GUIDE.md +233 -0
  222. package/vendor/Server/Skills/rn-library-consistency-check/references/NATIVE_COMPONENT_IDENTIFICATION.md +1373 -0
  223. package/vendor/Server/Skills/rn-library-consistency-check/references/SCORING_STANDARD.md +220 -0
  224. package/vendor/Server/Skills/rn-library-consistency-check/scripts/validate-skill.py +245 -0
  225. package/vendor/Server/Skills/rn-library-documentation-quality-check/SKILL.md +263 -0
  226. package/vendor/Server/Skills/rn-library-documentation-quality-check/assets/MODEL.md +414 -0
  227. package/vendor/Server/Skills/rn-library-documentation-quality-check/assets/MODEL_en.md +413 -0
  228. package/vendor/Server/Skills/rn-library-documentation-quality-check/assets/REPORT_TEMPLATE.md +311 -0
  229. package/vendor/Server/Skills/rn-library-documentation-quality-check/references/CHECK_CHECKLIST.md +355 -0
  230. package/vendor/Server/Skills/rn-library-documentation-quality-check/references/CROSS_VALIDATION_GUIDE.md +115 -0
  231. package/vendor/Server/Skills/rn-library-documentation-quality-check/references/DOC_COLLECTION_GUIDE.md +139 -0
  232. package/vendor/Server/Skills/rn-library-documentation-quality-check/references/EXAMPLES.md +586 -0
  233. package/vendor/Server/Skills/rn-library-documentation-quality-check/references/GOTCHAS.md +57 -0
  234. package/vendor/Server/Skills/rn-library-documentation-quality-check/scripts/validate-skill.py +259 -0
  235. package/vendor/Server/Skills/rn-library-interface-analyzer/SKILL.md +301 -0
  236. package/vendor/Server/Skills/rn-library-interface-analyzer/assets/REPORT_TEMPLATE.md +148 -0
  237. package/vendor/Server/Skills/rn-library-interface-analyzer/references/DOC_ANNOTATION_GUIDE.md +118 -0
  238. package/vendor/Server/Skills/rn-library-interface-analyzer/references/SCRIPT_USAGE_GUIDE.md +168 -0
  239. package/vendor/Server/Skills/rn-library-interface-analyzer/references/URL_PARSING_RULES.md +176 -0
  240. package/vendor/Server/Skills/rn-library-issue-generalizer/SKILL.md +274 -0
  241. package/vendor/Server/Skills/rn-library-issue-generalizer/assets/case-template.md +45 -0
  242. package/vendor/Server/Skills/rn-library-issue-generalizer/assets/rule-template.md +25 -0
  243. package/vendor/Server/Skills/rn-library-issue-generalizer/references/PR_FETCH_GUIDE.md +61 -0
  244. package/vendor/Server/Skills/rn-library-issue-generalizer/references/RULE_TEMPLATE_GUIDE.md +165 -0
  245. package/vendor/Server/Skills/rn-library-issue-generalizer/scripts/fetch-pr-info.py +239 -0
  246. package/vendor/Server/Skills/rn-library-known-issue-check/SKILL.md +263 -0
  247. package/vendor/Server/Skills/rn-library-known-issue-check/assets/REPORT_TEMPLATE.md +96 -0
  248. package/vendor/Server/Skills/rn-library-known-issue-check/references/COMPLIANCE_CHECKLIST.md +58 -0
  249. package/vendor/Server/Skills/rn-library-known-issue-check/references/INSPECTION_GUIDE.md +99 -0
  250. package/vendor/Server/Skills/rn-library-known-issue-check/references/PRESCREEN_GUIDE.md +64 -0
  251. package/vendor/Server/Skills/rn-library-known-issue-check/references/SOURCE_PREP_GUIDE.md +75 -0
  252. package/vendor/Server/Skills/rn-library-known-issue-check/scripts/validate-known-issue-report.py +164 -0
  253. package/vendor/Server/Skills/rn-library-memory-leak-check/SKILL.md +339 -0
  254. package/vendor/Server/Skills/rn-library-memory-leak-check/assets/REPORT_TEMPLATE.md +83 -0
  255. package/vendor/Server/Skills/rn-library-memory-leak-check/references/CHECKLIST.md +859 -0
  256. package/vendor/Server/Skills/rn-library-memory-leak-check/references/HARMONY_CODE_PATTERNS.md +122 -0
  257. package/vendor/Server/Skills/rn-library-memory-leak-check/scripts/scan_harmony_code.py +279 -0
  258. package/vendor/Server/Skills/rn-library-stability-check/SKILL.md +273 -0
  259. package/vendor/Server/Skills/rn-library-stability-check/assets/REPORT_TEMPLATE.md +129 -0
  260. package/vendor/Server/Skills/rn-library-stability-check/references/CHECKLIST.md +581 -0
  261. package/vendor/Server/Skills/rn-library-stability-check/references/SCORING_RULES.md +138 -0
  262. package/vendor/Server/Skills/rn-library-stability-check/scripts/scan-harmony-code.py +168 -0
  263. package/vendor/Server/Skills/rn-library-test-coverage-check/SKILL.md +506 -0
  264. package/vendor/Server/Skills/rn-library-test-coverage-check/references/CHECKLIST.md +280 -0
  265. package/vendor/Server/Skills/rn-library-test-coverage-check/references/DEMO_LOCATION.md +221 -0
  266. package/vendor/Server/Skills/rn-library-test-coverage-check/references/REPORT_TEMPLATE.md +209 -0
  267. package/vendor/Server/Skills/rn-library-test-coverage-check/references/SCRIPT_USAGE.md +325 -0
  268. package/vendor/Server/Skills/rn-ohos-xts-generator/SKILL.md +279 -0
  269. package/vendor/Server/Skills/rn-ohos-xts-generator/assets/TEST_FILE_TEMPLATES.md +404 -0
  270. package/vendor/Server/Skills/rn-ohos-xts-generator/references/BUILD_TROUBLESHOOTING.md +185 -0
  271. package/vendor/Server/Skills/rn-ohos-xts-generator/references/BUILD_WORKFLOW.md +265 -0
  272. package/vendor/Server/Skills/rn-ohos-xts-generator/references/COMMON_CONFIG.md +189 -0
  273. package/vendor/Server/Skills/rn-ohos-xts-generator/references/CONFIG_GUIDE.md +203 -0
  274. package/vendor/Server/Skills/rn-ohos-xts-generator/references/COVERAGE_ANALYZER.md +147 -0
  275. package/vendor/Server/Skills/rn-ohos-xts-generator/references/DESIGN_DOC_GUIDE.md +148 -0
  276. package/vendor/Server/Skills/rn-ohos-xts-generator/references/GENERATION_FLOW.md +165 -0
  277. package/vendor/Server/Skills/rn-ohos-xts-generator/references/GENERATION_STRATEGY.md +195 -0
  278. package/vendor/Server/Skills/rn-ohos-xts-generator/references/HARMONY_SCANNER.md +249 -0
  279. package/vendor/Server/Skills/rn-ohos-xts-generator/references/JEST_FRAMEWORK.md +235 -0
  280. package/vendor/Server/Skills/rn-ohos-xts-generator/references/PLATFORM_COMPAT.md +161 -0
  281. package/vendor/Server/Skills/rn-ohos-xts-generator/references/RN_TEST_PATTERNS.md +413 -0
  282. package/vendor/Server/Skills/rn-ohos-xts-generator/references/SOURCE_PARSER.md +235 -0
  283. package/vendor/Server/Skills/rn-ohos-xts-generator/references/TEST_CONVENTIONS.md +245 -0
  284. package/vendor/Server/Skills/rn-ohos-xts-generator/references/TROUBLESHOOTING.md +282 -0
  285. package/vendor/Server/Skills/rn-ohos-xts-generator/references/USAGE_GUIDE.md +251 -0
  286. package/vendor/Server/Skills/rnoh-cptf-api-test/SKILL.md +469 -0
  287. package/vendor/Server/Skills/rnoh-cptf-api-test/assets/CPTF_TEST_TEMPLATE.md +310 -0
  288. package/vendor/Server/Skills/rnoh-cptf-api-test/assets/DEMO_PAGE_TEMPLATE.md +303 -0
  289. package/vendor/Server/Skills/rnoh-cptf-api-test/references/CPTF_TEST_GENERATION_GUIDE.md +421 -0
  290. package/vendor/Server/Skills/rnoh-cptf-api-test/references/DEMO_GENERATION_GUIDE.md +358 -0
  291. package/vendor/Server/Skills/rnoh-cptf-api-test/references/QUALITY_CHECKLIST.md +114 -0
  292. package/vendor/Server/Skills/rnoh-cptf-api-test/references/SPEC_PARSING_GUIDE.md +274 -0
  293. package/vendor/Server/Skills/rnoh-cptf-api-test/scripts/validate-rnoh-cptf-api-test.sh +185 -0
  294. package/vendor/Server/Skills/rnoh-cptf-demo-test/SKILL.md +191 -0
  295. package/vendor/Server/Skills/rnoh-cptf-demo-test/assets/TEST_TEMPLATE.md +216 -0
  296. package/vendor/Server/Skills/rnoh-cptf-demo-test/references/CPTF_SETUP.md +107 -0
  297. package/vendor/Server/Skills/rnoh-cptf-demo-test/references/DEMO_ANALYSIS.md +120 -0
  298. package/vendor/Server/Skills/rnoh-cptf-demo-test/scripts/validate-rnoh-cptf-test.sh +108 -0
  299. package/vendor/Server/Skills/rnoh-cptf-test-run/SKILL.md +237 -0
  300. package/vendor/Server/Skills/rnoh-cptf-test-run/references/DEBUG_PLAYBOOK.md +261 -0
  301. package/vendor/Server/Skills/rnoh-cptf-test-run/scripts/validate-run-env.sh +112 -0
  302. package/vendor/Server/Skills/rnoh-lib-code-adapt/SKILL.md +498 -0
  303. package/vendor/Server/Skills/rnoh-lib-code-adapt/references/adapt-checklist.md +270 -0
  304. package/vendor/Server/Skills/rnoh-lib-code-adapt/references/api-migration-checklist.md +164 -0
  305. package/vendor/Server/Skills/rnoh-lib-code-adapt/references/common-compile-errors.md +556 -0
  306. package/vendor/Server/Skills/rnoh-lib-code-adapt/references/deveco-cli-tools.md +459 -0
  307. package/vendor/Server/Skills/rnoh-lib-code-adapt/references/edge-cases.md +65 -0
  308. package/vendor/Server/Skills/rnoh-lib-code-adapt/references/har-tgz-build.md +512 -0
  309. package/vendor/Server/Skills/rnoh-lib-code-adapt/references/version-compat-matrix.md +132 -0
  310. package/vendor/Server/Skills/rnoh-lib-code-adapt/scripts/auto-integrate.sh +424 -0
  311. package/vendor/Server/Skills/rnoh-lib-demo-coverage/SKILL.md +137 -0
  312. package/vendor/Server/Skills/rnoh-lib-demo-create/SKILL.md +306 -0
  313. package/vendor/Server/Skills/rnoh-lib-demo-create/assets/DEMO_PAGE_TEMPLATE.md +485 -0
  314. package/vendor/Server/Skills/rnoh-lib-demo-create/assets/INDEX_TEMPLATE.md +172 -0
  315. package/vendor/Server/Skills/rnoh-lib-demo-create/references/DEMO_CODE_RULES.md +422 -0
  316. package/vendor/Server/Skills/rnoh-lib-demo-create/references/QUALITY_CHECKLIST.md +95 -0
  317. package/vendor/Server/Skills/rnoh-lib-demo-create/references/SOURCE_EXPLORATION.md +169 -0
  318. package/vendor/Server/Skills/rnoh-lib-demo-doc/SKILL.md +554 -0
  319. package/vendor/Server/Skills/rnoh-lib-demo-doc/assets/DEMO_DOC_TEMPLATE.md +106 -0
  320. package/vendor/Server/Skills/rnoh-lib-demo-doc/references/COVERAGE_INCREMENTAL.md +216 -0
  321. package/vendor/Server/Skills/rnoh-lib-demo-doc/references/DEMO_DESIGN_RULES.md +413 -0
  322. package/vendor/Server/Skills/rnoh-lib-demo-doc/references/OUTPUT_FORMAT.md +269 -0
  323. package/vendor/Server/Skills/rnoh-lib-demo-doc/references/QUALITY_CHECKLIST.md +98 -0
  324. package/vendor/Server/Skills/rnoh-lib-func-test/SKILL.md +337 -0
  325. package/vendor/Server/Skills/rnoh-lib-rnt-search/SKILL.md +722 -0
  326. package/vendor/Server/Skills/rnoh-lib-rnt-search/assets/PORT_REPORT_TEMPLATE.md +219 -0
  327. package/vendor/Server/Skills/rnoh-lib-rnt-search/references/DEMO_PORTING_GUIDE.md +345 -0
  328. package/vendor/Server/Skills/rnoh-lib-rnt-search/references/PORT_VERIFICATION.md +269 -0
  329. package/vendor/Server/Skills/rnoh-lib-rnt-search/references/RNT_PROJECT_STRUCTURE.md +173 -0
  330. package/vendor/Server/Skills/rnoh-lib-rnt-search/scripts/analyze-demo-deps.cjs +267 -0
  331. package/vendor/Server/Skills/rnoh-lib-rnt-search/scripts/detect-rnoh-version.cjs +174 -0
  332. package/vendor/Server/Skills/rnoh-lib-rnt-search/scripts/find-rnt-demo.sh +111 -0
  333. package/vendor/Server/Skills/rnoh-lib-rnt-search/scripts/port-demo.sh +186 -0
  334. package/vendor/Server/Skills/rnoh-lib-rnt-search/scripts/read-lib-meta.cjs +150 -0
  335. package/vendor/Server/Skills/rnoh-lib-test-align/SKILL.md +296 -0
  336. package/vendor/Server/Skills/rnoh-lib-test-align/references/jest-troubleshooting.md +371 -0
  337. package/vendor/Server/Skills/rnoh-lib-test-align/references/port-test-demo-guide.md +212 -0
  338. package/vendor/Server/Skills/rnoh-lib-test-align/references/runtime-troubleshooting.md +345 -0
  339. package/vendor/Server/Skills/rnoh-lib-test-align/references/unit-test-template.md +223 -0
  340. package/vendor/Server/Skills/rnoh-lib-test-align/scripts/port-test-demo.sh +1053 -0
  341. package/vendor/Server/Skills/rnoh-lib-version-diff/SKILL.md +255 -0
  342. package/vendor/Server/Skills/rnoh-lib-version-diff/references/OHOS_ADAPTATION.md +77 -0
  343. package/vendor/Server/Skills/rnoh-lib-version-diff/references/OHOS_API_LOOKUP.md +224 -0
  344. package/vendor/Server/Skills/rnoh-lib-version-diff/references/script-reference.md +174 -0
  345. package/vendor/Server/Skills/rnoh-lib-version-diff/scripts/detect-upstream-version.js +967 -0
  346. package/vendor/Server/Skills/rnoh-lib-version-diff/scripts/generate-diff.js +1798 -0
  347. package/vendor/Server/Skills/rnoh-lib-version-diff/scripts/package.json +5 -0
  348. package/vendor/Server/Skills/rnoh-lib-version-diff/templates/report-template.md +137 -0
  349. package/vendor/Server/Skills/rnoh-lib-xts-coverage/SKILL.md +145 -0
  350. package/vendor/Server/Skills/skill-generator/SKILL.md +365 -0
  351. package/vendor/Server/Skills/skill-generator/assets/SKILL_TEMPLATE.md +183 -0
  352. package/vendor/Server/Skills/skill-generator/references/COMPLIANCE_CHECKLIST.md +82 -0
  353. package/vendor/Server/Skills/skill-generator/references/KB_QUERY_GUIDE.md +110 -0
  354. package/vendor/Server/Skills/skill-generator/references/MCP_TOOL_DISCOVERY.md +122 -0
  355. package/vendor/Server/Skills/skill-generator/references/SKILL_SPEC.md +121 -0
  356. package/vendor/Server/Skills/skill-generator/scripts/validate-skill.cjs +259 -0
  357. package/vendor/Server/Skills/task-analysis/SKILL.md +234 -0
  358. package/vendor/Server/Skills/task-analysis/assets/OUTPUT_EXAMPLES.md +160 -0
  359. package/vendor/Server/Skills/task-analysis/references/ACCEPTANCE_CRITERIA_GUIDE.md +190 -0
  360. package/vendor/Server/Skills/task-analysis/references/ANALYSIS_SCHEMA.md +224 -0
  361. package/vendor/Server/Skills/task-analysis/references/INTEGRATION_CONTEXT.md +162 -0
  362. package/vendor/Server/Skills/task-analysis/references/LESSONS_LEARNED.md +55 -0
  363. package/vendor/Server/Skills/task-analysis/references/REPLAN_CONTEXT_GUIDE.md +126 -0
  364. package/vendor/Server/Skills/task-analysis/scripts/validate-analysis-output.sh +256 -0
  365. package/vendor/Server/Skills/task-decomposition/SKILL.md +529 -0
  366. package/vendor/Server/Skills/task-decomposition/assets/OUTPUT_EXAMPLES.md +451 -0
  367. package/vendor/Server/Skills/task-decomposition/references/ACCEPTANCE_CRITERIA_GUIDE.md +179 -0
  368. package/vendor/Server/Skills/task-decomposition/references/DEPENDENCY_GRAPH_GUIDE.md +152 -0
  369. package/vendor/Server/Skills/task-decomposition/references/INTEGRATION_CONTEXT.md +175 -0
  370. package/vendor/Server/Skills/task-decomposition/references/REPLAN_CONTEXT_GUIDE.md +195 -0
  371. package/vendor/Server/Skills/task-decomposition/references/TASK_DECOMPOSITION_TEMPLATES.md +226 -0
  372. package/vendor/Server/Skills/task-decomposition/scripts/list-available-skills.cjs +263 -0
  373. package/vendor/Server/Skills/task-decomposition/scripts/skill-blacklist.json +29 -0
  374. package/vendor/Server/Skills/task-decomposition/scripts/validate-decomposition-output.cjs +376 -0
  375. package/vendor/Server/Skills/task-decomposition/scripts/validate-param-consistency.cjs +259 -0
  376. package/vendor/Server/Skills/task-decomposition/scripts/validate-specified-skills.cjs +216 -0
  377. package/vendor/Server/Skills/task-decomposition/scripts/validate-step-graph.cjs +425 -0
  378. package/vendor/Server/Skills/tpc-cpp-check/SKILL.md +427 -0
  379. package/vendor/Server/Skills/tpc-cpp-check/references/CHECKLIST.md +214 -0
  380. package/vendor/Server/Skills/tpc-cpp-check/references/HPKBUILD_GUIDE.md +235 -0
  381. package/vendor/Server/Skills/tpc-cpp-check/references/REPORT_TEMPLATE.md +250 -0
  382. package/vendor/Server/TestCheck/TestCheck.js +775 -0
  383. package/vendor/Server/TestCheck/index.js +11 -0
  384. package/vendor/Server/library/McpToolGuide.js +280 -0
  385. package/vendor/Server/library/StatsService.js +127 -0
  386. package/vendor/Server/library/cstTime.js +16 -0
  387. package/vendor/Server/package.json +17 -0
  388. package/vendor/VERSION +3 -0
  389. package/workflows/pr-check.mjs +106 -0
@@ -0,0 +1,498 @@
1
+ ---
2
+ name: rnoh-lib-code-adapt
3
+ description: >-
4
+ RN 鸿蒙三方库升级适配:代码适配与编译验证。当用户已通过 rnoh-lib-version-up
5
+ 获取差异文档和版本分析报告,需要分析 diff、判断鸿蒙侧影响范围、修改 RN 框架
6
+ 版本依赖、进行代码适配修改、迭代修复编译错误直到编译通过时使用。典型场景:
7
+ 用户拿到 diff patch 文件和变更摘要,需要决定哪些文件要改、怎么改;或用户直接
8
+ 说"帮我把这个三方库从 0.77 升级到 0.84";或编译报错需要修复。也适用于:
9
+ 单独分析 diff patch 判断鸿蒙侧影响范围、TurboModule/Fabric codegen 产物适配、
10
+ ArkTS/C++ 原生层接口适配、利用 devecocli 进行语法检查与编译验证。
11
+ compatibility: 需要 git、node、npm;DevEco Studio >= 6.0.0 或 Command Line Tools >= 26.0.0;推荐安装 devecocli (npm install -g @deveco/deveco-cli@latest) 和 rnoh-build-har (npm install -g rnoh-build-har)
12
+ allowed-tools: Bash Read Grep Glob Edit Write
13
+ metadata:
14
+ version: "1.0.0"
15
+ ---
16
+
17
+ # RN 鸿蒙三方库代码适配与编译验证
18
+
19
+ 本 skill 是三方库升级适配流程的第二阶段(共四阶段),也是最核心的阶段。从差异文档出发,分析变更对鸿蒙化代码的影响,完成版本依赖升级和代码适配修改,迭代修复编译错误,最终确保基本编译通过。
20
+
21
+ ## 路径约定
22
+
23
+ `{SKILL_DIR}` = 本技能根目录(本 SKILL.md 所在目录)。命令均在 `{SKILL_DIR}` 下执行,使用 `scripts/...`、`references/...` 相对路径。详见 [Agent Skills 规范](https://agentskills.io/specification) 中的 file references 约定。
24
+
25
+ ## 何时使用
26
+
27
+ - 用户已通过 rnoh-lib-version-up 获取了 diff patch 和版本分析报告,需要分析并执行适配。
28
+ - 用户直接要求把某个三方库从旧版本升级到新版本(如"从 0.77 升到 0.84")。
29
+ - 用户在升级过程中遇到编译错误,需要帮助分析和修复。
30
+ - 用户需要分析一个 diff patch 对鸿蒙化代码的影响范围。
31
+ - 用户需要修改 RN/RNOH 框架版本依赖。
32
+
33
+ ## 最小必要输入
34
+
35
+ - **必要**:差异 patch 文件路径,或上游两个版本的源码目录路径
36
+ - **必要**:本地鸿蒙化工程目录路径
37
+ - **必要**:目标 RNOH 版本号(如 `0.84`)
38
+ - **有帮助**:版本分析报告(来自 rnoh-lib-version-up)
39
+ - **有帮助**:已知的不兼容变更列表
40
+
41
+ 如果用户没有 diff patch,但提供了鸿蒙化仓库 URL 和版本号,先引导使用 rnoh-lib-version-up 生成差异文档。
42
+
43
+ ## devecocli 工具优先级
44
+
45
+ **本 skill 在脚本和编译验证中优先使用 `devecocli`(DevEco CLI)替代手动操作。** `devecocli` 封装了 ohpm、hvigor、hdc、hilog 等工具链,提供统一的命令行入口。HAR 打包使用 `rnoh-build-har` 工具。
46
+
47
+ **安装**(如未安装):
48
+ ```bash
49
+ npm install -g @deveco/deveco-cli@latest
50
+ npm install -g rnoh-build-har
51
+ ```
52
+
53
+ | 手动操作 | 工具替代 | 说明 |
54
+ |----------|---------|------|
55
+ | 全量编译验证语法 | `devecocli check lint` | 单文件快速语法检查 |
56
+ | grep 查找代码引用 | MCP `references`/`workspaceSymbol` | 语义级符号查找 |
57
+ | 手动 hdc 安装运行 | `devecocli run` | 一键构建 + 安装 + 启动 |
58
+ | 手动 SDK 兼容检查 | `devecocli check compat` | 扫描两个 SDK 版本间的 API 变更 |
59
+ | 全量 hvigorw 编译 | `devecocli build` | 自动解析模块依赖 |
60
+ | 手动创建壳工程打 HAR | `rnoh-build-har` | 自动创建临时工程 → 构建 → 拷贝 HAR → 清理 |
61
+
62
+ > ⚠️ 工具不可用时的回退方案详见 [references/deveco-cli-tools.md](references/deveco-cli-tools.md) 和 [references/har-tgz-build.md](references/har-tgz-build.md)。
63
+
64
+ ## 库类型判定
65
+
66
+ 适配流程根据库类型分支,**开始前必须判定**:
67
+
68
+ | 类型 | 判定条件 | 流程差异 |
69
+ |------|---------|---------|
70
+ | `native-harmony` | 有 `harmony/` HAR + TurboModule/Fabric/cpp | 完整流程(JS → codegen → harmony → autolinking → 编译验证) |
71
+ | `js-only-harmony` | 有 `harmony/` 但无 cpp/autolinking | 跳过 C++/HAR 门禁 |
72
+ | `pure-js` | 无 native 或纯 JS 鸿蒙实现 | 跳过 codegen、autolinking、HAR、鸿蒙设备运行 |
73
+
74
+ ## 进度清单
75
+
76
+ ```
77
+ - [ ] Step 1: 分析 diff,分类变更(含上游 API 变更识别)
78
+ - [ ] Step 2: 修改 RN 框架版本依赖
79
+ - [ ] Step 3: 代码适配修改
80
+ - [ ] 3.0: 上游 API 重构适配(硬性要求,不可跳过)
81
+ - [ ] 3.1: JS 层版本更新(npm install 更新 JS 源码)
82
+ - [ ] 3.2: API 签名变更适配(codegen + TurboModule 重写)
83
+ - [ ] 3.3: 原生层变更适配(C++/ArkTS)
84
+ - [ ] 3.4: 新增导出适配
85
+ - [ ] 3.5: 鸿蒙 API 核查
86
+ - [ ] Step 3 完成度检查门禁(进入 Step 4 前必须通过)
87
+ - [ ] Step 4: 编译验证(语法检查 → 打 HAR → 打 TGZ → 依赖 tgz → 编译)
88
+ - [ ] Step 5: 生成适配变更清单
89
+ ```
90
+
91
+ > ⚠️ **绝对禁止跳过上游三方库的内容升级**:即使任务标题只提到 "RNOH 0.xx → 0.yy 框架升级",如果版本分析报告(stepId2)指出上游有 API 变更(callback→Promise、模块名变更、新增/删除方法等),**必须**在 Step 3 中完成上游 API 的完整鸿蒙侧适配。仅做框架版本号升级而不适配上游 API 变更是严重错误。
92
+
93
+ ---
94
+
95
+ ## Step 1:分析 diff,分类变更
96
+
97
+ 读取 diff patch 文件和变更摘要,将所有变更按以下维度分类。
98
+
99
+ ### 变更类型分类
100
+
101
+ | 类型 | 说明 | 鸿蒙侧影响 | 适配优先级 |
102
+ |------|------|-----------|-----------|
103
+ | **JS 层变更** | `.js`/`.ts`/`.tsx` 文件修改 | JS 源码通过 npm 自动更新,**但其中 API 变更必须在鸿蒙侧适配**(见 Step 3.0) | 视变更内容而定 |
104
+ | **原生层变更** | `.cpp`/`.h`/`.java`/`.kt` 文件 | 需检查 harmony/ 下 C++/ArkTS 代码是否需对应修改 | 高 |
105
+ | **API 签名变更** | TurboModule spec 文件(`*Native*.ts`)接口变更 | 需重新 codegen,更新 C++ 和 ArkTS 适配层 | 最高 |
106
+ | **新增导出** | 新增组件、模块或 API | 需在鸿蒙侧新增对应 Package/Component 注册 | 高 |
107
+ | **配置变更** | `package.json`/`tsconfig.json` 等配置文件 | 需同步配置,更新依赖版本 | 中 |
108
+ | **文档变更** | README/CHANGELOG 等 | 无影响,可忽略 | 无 |
109
+
110
+ ### 分析方法
111
+
112
+ 1. 读取 `summary_<b1>_<b2>.md`,获取变更文件列表和增删行数统计
113
+ 2. 逐文件读取 diff patch 中的变更内容
114
+ 3. 对每个变更文件,判断属于上述哪种类型
115
+ 4. 重点关注文件模式:
116
+ - `src/Native*.ts` — TurboModule spec,接口定义变更
117
+ - `android/src/main/java/` — Android 原生实现(可作为鸿蒙适配参考)
118
+ - `ios/` — iOS 原生实现(可作为鸿蒙适配参考)
119
+ - `package.json` — 依赖和配置变更
120
+
121
+ 5. 生成变更分类清单:
122
+
123
+ ```markdown
124
+ ## 变更分类清单
125
+
126
+ ### 🔴 需要鸿蒙侧适配的变更
127
+ 1. [API签名变更] NativeXxxModule.ts — 新增 `getXxx()` 方法
128
+ - 影响: 需在 harmony/ 下新增对应 TurboModule 实现
129
+ 2. [原生层变更] xxx组件新增 `propY` 属性
130
+ - 影响: 需在 ArkTS ComponentInstance 中新增属性处理
131
+
132
+ ### 🟡 仅需更新依赖版本的变更
133
+ 1. [JS层变更] src/xxx.ts — 逻辑修改,更新 package.json 中源库版本即可
134
+
135
+ ### ⚪ 可忽略的变更
136
+ 1. [文档变更] README.md
137
+ ```
138
+
139
+ ### 鸿蒙侧影响判断规则
140
+
141
+ 参考 [references/adapt-checklist.md](references/adapt-checklist.md) 中的判断矩阵。核心原则:
142
+
143
+ - **禁止**仅凭 Android/iOS 实现或训练记忆推断鸿蒙 API 可行性。涉及原生能力(相机、扫码、蓝牙等)时,必须使用 `harmonyos-sdk-api-lookup` 和 `harmonyos-docs-lookup` 子技能核查后再下结论。
144
+ - **禁止**在无 API 核查的情况下对需适配项给出「可实现/无法实现」结论。
145
+
146
+ ---
147
+
148
+ ## Step 2:修改 RN 框架版本依赖
149
+
150
+ 将鸿蒙化工程的 package.json 中的 RN/RNOH 相关依赖升级到目标版本。
151
+
152
+ ### 版本对照表
153
+
154
+ 参考 [references/version-compat-matrix.md](references/version-compat-matrix.md) 获取完整的版本对照关系(0.72 → 0.77 → 0.82 → 0.84)。
155
+
156
+ 核心依赖升级规则(0.77 / 0.82 / 0.84):
157
+
158
+ | 依赖项 | 0.77 | 0.82 | 0.84 |
159
+ |--------|------|------|------|
160
+ | `react` | `18.3.1` | `19.1.1` | `19.2.3` |
161
+ | `react-native` | `0.77.1` | `0.82.1` | `0.84.1` |
162
+ | `@react-native-oh/react-native-harmony` | `0.77.18-1` | `0.82.30` | `0.84.2` |
163
+ | `@react-native-community/cli` | `15.0.1` | `20.0.0` | `20.1.0` |
164
+ | `@react-native/babel-preset` | `0.77.1` | `0.82.1` | `0.84.1` |
165
+
166
+ ### 0.82 → 0.84 不兼容变更
167
+
168
+ 除版本号升级外,还需同步处理:
169
+
170
+ | 变更项 | 0.82 | 0.84 | 影响文件 |
171
+ |--------|------|------|--------|
172
+ | **Babel preset** | `metro-react-native-babel-preset` | `@react-native/babel-preset` | `babel.config.js` |
173
+ | **@types/react-native** | 存在 | **已移除**(RN 0.84 内置) | `package.json` devDependencies |
174
+ | **CLI codegen 参数** | 无 `--generate-type` | 新增 `--generate-type all`(必选) | `package.json` codegen-lib 脚本 |
175
+
176
+ **注意**:`@react-native-oh/react-native-harmony` 使用 `npm:` 协议映射:
177
+ ```json
178
+ "@react-native-oh/react-native-harmony": "npm:@react-native-oh/react-native-harmony@0.84.2"
179
+ ```
180
+
181
+ ⚠️ **库特定情况**:部分旧版库通过本地 tgz 安装 RNOH 框架(`file:` 引用),升级时需改为 npm 直装并同步修改所有引用路径。判断方法:检查 `example/package.json` 中 RNOH 依赖是否使用 `file:` 引用 tgz。详见 [references/version-compat-matrix.md](references/version-compat-matrix.md)。
182
+
183
+ ### 修改步骤
184
+
185
+ 1. 读取鸿蒙化工程的 `package.json`
186
+ 2. 按版本对照表更新所有 RN/RNOH 相关依赖
187
+ 3. 运行 `npm install` 安装新依赖
188
+ 4. 遇到 peer dependency 冲突时使用 `--legacy-peer-deps` 或 `--force`
189
+ 5. 运行 `npm run codegen` 重新生成 TurboModule/Fabric 代码
190
+
191
+ ---
192
+
193
+ ## Step 3:代码适配修改
194
+
195
+ 根据 Step 1 的变更分类清单,逐项执行适配修改。按层级顺序:**JS → Spec → codegen → harmony**。
196
+
197
+ ### 3.0 上游 API 重构适配(硬性要求,不可跳过)
198
+
199
+ > ⚠️ **本节是整个适配流程中最核心的步骤。** 如果版本分析报告指出上游有 API 变更,**必须**完成本节全部检查和适配后才能进入 3.1。即使编译能通过(因为旧 API 可能仍兼容运行),不做上游 API 适配会导致功能不完整或运行时错误。
200
+
201
+ #### 检查清单
202
+
203
+ 在开始代码修改前,**必须**逐项检查以下内容。详细检查命令和迁移步骤见 [references/api-migration-checklist.md](references/api-migration-checklist.md)。
204
+
205
+ **① TurboModule 模块名变更检查**:对比 `src/native-module/Native*.ts` 中的模块名与 `harmony/` 下 Package 注册的模块名。如果不同,需同步修改 ArkTS Package、C++ Package、C++ TurboModule 文件名和类名。
206
+
207
+ **② API 模式变更检查(callback → Promise)**:检查上游 spec 是否有 Promise 返回类型。如果从 callback 改为 Promise,需将 C++ 方法注册从 `ARK_METHOD_METADATA` 改为 `ARK_ASYNC_METHOD_METADATA`,重写 ArkTS TurboModule 为 async/Promise 模式,移除不再需要的工具类。
208
+
209
+ **③ 新增/删除方法检查**:对比上游 spec 接口和鸿蒙侧 TurboModule 实现的方法列表。新增方法→实现对应逻辑;删除方法→清理旧实现和 C++ 方法注册;签名变更→更新参数和返回类型。
210
+
211
+ **④ 数据格式变更检查**:检查方法参数和返回值的数据格式是否变化(如 `[string, string][]` → `{ key, value }[]`),同步修改实现。
212
+
213
+ **⑤ codegenConfig 变更检查**:对比上游 `package.json` 的 `codegenConfig`(name、javaPackageName 等),同步更新鸿蒙化工程的 `package.json`。
214
+
215
+ ### 3.1 JS 层版本更新
216
+
217
+ 鸿蒙化三方库**不含 JS 代码**,JS 层由 `package.json` 依赖的源库提供。**JS 源码文件的更新是自动的**(通过 `npm install`),但 **JS 层中包含的 API 变更必须在鸿蒙侧手动适配**(见 3.0):
218
+
219
+ 1. 在 `package.json` 中将源库依赖版本更新到目标版本
220
+ 2. 运行 `npm install` 安装新版本,JS 代码(`src/` 目录)自动更新
221
+ 3. 检查 `src/native-module/Native*.ts` 确认新 API 签名
222
+ 4. 按照 3.0 的检查清单完成鸿蒙侧适配
223
+ 5. 运行 `npm run codegen` 重新生成 C++ 和 ArkTS 代码
224
+
225
+ > ⚠️ **"JS 层变更无需手动适配"仅指 JS 源码文件本身不需要手动复制/修改**,不代表可以跳过上游 API 变更的鸿蒙侧适配。上游 API 变更(模块名、方法签名、返回类型等)**必须在 harmony/ 下手动适配**。
226
+
227
+ ### 3.2 API 签名变更适配
228
+
229
+ 对于 TurboModule spec 文件变更(`*Native*.ts`),这是最高优先级工作:
230
+
231
+ 1. 更新 `package.json` 中源库版本,运行 `npm install`
232
+ 2. 运行 `npm run codegen` 重新生成 C++ 和 ArkTS 代码
233
+ 3. 检查 codegen 产物,确认新增接口方法在 C++ 和 ArkTS 侧都有对应实现
234
+ 4. 新增方法 → 在鸿蒙侧 TurboModule 实现中添加对应逻辑
235
+ 5. 删除/重命名方法 → 清理鸿蒙侧旧实现
236
+
237
+ 详细步骤参考 [references/adapt-checklist.md](references/adapt-checklist.md)。
238
+
239
+ ### 3.3 原生层变更适配
240
+
241
+ 对比上游 Android/iOS 实现和鸿蒙化工程的 harmony/ 实现:
242
+
243
+ 1. 查看上游 Android 实现变更(作为鸿蒙适配参考)
244
+ 2. 查看鸿蒙化工程的 `harmony/` 目录下对应的 C++/ArkTS 代码
245
+ 3. 判断鸿蒙侧是否需要对应修改
246
+ 4. 修改 C++ 代码时注意 NAPI 引用管理、线程安全、生命周期
247
+ 5. 修改 ArkTS 代码时注意 ArkTS 编译规则约束
248
+
249
+ **ArkTS 编译规则**:详见 [references/adapt-checklist.md](references/adapt-checklist.md) 中的 ArkTS 编译规则部分。关键要点:
250
+
251
+ - `@Builder` 参数不随 @State 变化更新 → 用 `@Component` + `@Prop` 替代
252
+ - 对象字面量不能赋值给 Map → 用 `new Map()` 或类型断言
253
+ - `JSON.parse()` 返回 any → 需类型断言
254
+ - 索引签名被禁止 → 用 `Map` 或命名 interface
255
+ - 循环类型别名被禁止 → 用 `object` 替代递归引用
256
+
257
+ **修改后快速验证**:使用 `devecocli check lint <file>` 或 MCP `check` 工具对修改的 `.ets`/`.cpp` 文件进行单文件语法检查,无需等待全量编译:
258
+
259
+ ```bash
260
+ # 检查单个 ArkTS 文件
261
+ devecocli check lint harmony/src/main/ets/XxxModule.ets
262
+
263
+ # 或通过 MCP 工具(需配置 deveco-mcp,见 references/deveco-cli-tools.md)
264
+ # check 工具传入文件路径列表,返回结构化诊断信息
265
+ ```
266
+
267
+ ### 3.4 新增导出适配
268
+
269
+ 如果上游新增了组件或模块:
270
+ 1. 在鸿蒙侧新增对应的 Package 类(ETS 和 C++ 各一个)
271
+ 2. 在 `RNPackagesFactory.ets` 中注册新 Package
272
+ 3. 在 `Index.ets` 中导出组件类型
273
+ 4. 在 `PackageProvider.cpp` 中注册 C++ Package
274
+ 5. 在 `CMakeLists.txt` 中添加编译目标
275
+
276
+ 可使用 `auto-integrate.sh` 脚本辅助完成集成配置:
277
+ ```bash
278
+ ./scripts/auto-integrate.sh --npm-name <包名> [--npm-version <版本>]
279
+ ```
280
+
281
+ ### 3.5 鸿蒙 API 核查(硬性要求,native 库)
282
+
283
+ 凡涉及原生能力(相机、扫码、蓝牙、定位、文件、权限等)的适配项,**禁止**仅凭 Android/iOS 实现或训练记忆推断 OHOS API,**必须**结合子技能完成核查后再修改代码:
284
+
285
+ | 子技能 | 用途 |
286
+ |--------|------|
287
+ | **harmonyos-sdk-api-lookup** | API 签名、Interface/Enum、权限、系统能力 |
288
+ | **harmonyos-docs-lookup** | 开发步骤、实时性/性能约束、错误码 |
289
+
290
+ > `pure-js` 库跳过本节。
291
+
292
+ ### 3.6 完成度检查门禁(进入 Step 4 前必须通过)
293
+
294
+ 在开始编译验证之前,**必须**逐项确认以下检查通过。任何一项未通过都意味着适配不完整,**禁止进入 Step 4**:
295
+
296
+ | 检查项 | 通过标准 |
297
+ |--------|---------|
298
+ | TurboModule 模块名一致 | `src/native-module/Native*.ts` 的名称与 `harmony/` 下 Package 注册一致 |
299
+ | 所有 spec 方法已实现 | `interface Spec` 的每个方法在 TurboModule 中都有对应实现 |
300
+ | C++ 方法注册完整 | `methodMap_` 包含所有 spec 方法的元数据,方法名和参数数匹配 |
301
+ | C++ 元数据宏正确 | Promise 方法用 `ARK_ASYNC_METHOD_METADATA`,callback 用 `ARK_METHOD_METADATA` |
302
+ | 旧文件已清理 | 不存在以旧模块名命名的 `.ts`/`.h`/`.cpp` 文件 |
303
+ | codegenConfig 一致 | `package.json` 的 `codegenConfig.name` 和 `javaPackageName` 已同步上游 |
304
+
305
+ > 详细检查命令见 [references/api-migration-checklist.md](references/api-migration-checklist.md)。
306
+
307
+ ---
308
+
309
+ ## Step 4:编译验证
310
+
311
+ 完成适配修改后,执行**打包 + 编译验证**流程。
312
+
313
+ ### 流程总览
314
+
315
+ ```text
316
+ 4a. 单文件语法检查(devecocli check lint)
317
+ 4b. 打 HAR 包(rnoh-build-har)→ harmony/<module>.har
318
+ 4c. 打 TGZ 包(npm pack)→ <name>-<version>.tgz
319
+ 4d. RN 工程依赖本地 TGZ 包(file:../xxx.tgz)
320
+ 4e. 最终编译验证(依赖 tgz 包构建 example)
321
+ ```
322
+
323
+ > ⚠️ **核心原则**:必须先打 HAR 再打 TGZ;最终验证一定依赖 TGZ 包(不能依赖源码 `file:` 目录引用,也不能跳过打包直接编译);TGZ 包是最终交付物。
324
+
325
+ ### 4a. 单文件语法检查
326
+
327
+ ```bash
328
+ devecocli check lint harmony/src/main/ets/XxxModule.ets
329
+ devecocli check lint harmony/src/main/cpp/XxxComponent.cpp
330
+ devecocli check lint harmony/src/main/ets/ # 批量检查
331
+ ```
332
+
333
+ 确认无 ERROR 后进入 4b。
334
+
335
+ ### 4b. 打 HAR 包
336
+
337
+ 使用 `rnoh-build-har` 工具自动构建鸿蒙 HAR 模块(自动创建临时壳工程 → 构建 → 拷贝 HAR → 清理)。
338
+
339
+ ```bash
340
+ rnoh-build-har [api-version] [rnoh-version] [path] [--build-mode <mode>]
341
+ # 示例: rnoh-build-har 12 0.84.2 .
342
+ # 产出: harmony/<module>.har
343
+ ```
344
+
345
+ ### 4c. 打 TGZ 包
346
+
347
+ > ⚠️ **npm pack 前必须清理 rnoh-build-har 临时文件**:`rnoh-build-har` 会在 `harmony/` 下产生 `oh_modules`(可达 913MB)、`AppScope`、`build-profile.json5` 等临时工程文件。即使 `.npmignore` 已排除,`npm pack` 仍需遍历整个目录树导致超时(>120s)。
348
+
349
+ ```bash
350
+ cd /path/to/react-native-xxx
351
+
352
+ # 清理 rnoh-build-har 产生的临时文件(避免 oh_modules 913MB 导致 npm pack 超时)
353
+ rm -rf harmony/oh_modules harmony/AppScope harmony/build-profile.json5 harmony/hvigor harmony/oh-package.json5 harmony/<module>/build
354
+
355
+ npm pack # 产出: <name>-<version>.tgz(含 prepack 构建,禁止 --ignore-scripts)
356
+ npm pack --dry-run | grep '\.har' # 验证 tgz 包含 HAR
357
+ ```
358
+
359
+ > ⚠️ **禁止使用 `npm pack --ignore-scripts`**:prepack 执行 `bob build`(tsc + babel),是 TGZ 完整性保证。TS 编译错误必须修复,见 [references/har-tgz-build.md](references/har-tgz-build.md) 的「prepack TypeScript 编译错误修复」。
360
+
361
+ > ⚠️ 务必验证 tgz 包含 HAR 文件。如果 `package.json` 的 `files` 字段不含 `harmony/`,`npm pack` 不会包含 HAR。
362
+
363
+ ### 4d. RN 工程依赖本地 TGZ 包
364
+
365
+ > ⚠️ **无 example 目录时**:如果库根目录下没有 `example/` 目录,从 RN3rdTemplate 模板仓库浅拷贝获取:
366
+ > ```bash
367
+ > git clone --depth 1 https://gitcode.com/lalhanOrz/RN3rdTemplate.git tmp-template
368
+ > cp -r tmp-template/0.84 example
369
+ > rm -rf tmp-template
370
+ > ```
371
+ > 详见 [references/har-tgz-build.md](references/har-tgz-build.md) Step D 的「获取 example 模板工程」章节。
372
+
373
+ > ⚠️ **模板 compatibleSdkVersion 保持不变**:RN3rdTemplate 模板默认 `compatibleSdkVersion: '5.0.0(12)'`(API 12),RNOH 0.84 的 HAR 包兼容 API 12,**不要修改**此值。`example/harmony/build-profile.json5` 中的 `compatibleSdkVersion` 必须保持为 `'5.0.0(12)'`。API 版本对应表见 [references/har-tgz-build.md](references/har-tgz-build.md) 中的「API 版本对应表」。
374
+
375
+ ```json
376
+ // example/package.json
377
+ "@react-native-ohos/react-native-xxx": "file:../react-native-ohos-react-native-xxx-<version>.tgz"
378
+ ```
379
+
380
+ ```bash
381
+ cd example && npm install --legacy-peer-deps
382
+ ls node_modules/@react-native-ohos/react-native-xxx/harmony/*.har # 验证
383
+ ```
384
+
385
+ ### 4e. 最终编译验证
386
+
387
+ > ⚠️ **禁止使用 MCP `deveco-mcp_build_project` 工具**:该工具可能构建 DevEco Studio 当前打开的项目而非工作目录中的项目,返回 `BUILD SUCCESSFUL` 但实际未构建目标工程。必须使用 `devecocli build` 命令在项目目录中执行构建以获得准确的编译结果。
388
+
389
+ > ⚠️ **codegen 脚本参数验证**:运行 `npm run codegen` 前,检查 `example/package.json` 的 `codegen` 脚本是否包含 `--generate-type all`。`react-native codegen-harmony`(example 工程)**不支持**此参数,添加后会导致 `error: unknown option '--generate-type'`。该参数仅适用于库根 `package.json` 的 `codegen-lib` 脚本(使用 `react-native codegen-lib-harmony`)。如发现误加,移除后再执行。
390
+
391
+ ```bash
392
+ cd example && npm install --legacy-peer-deps
393
+ npm run codegen
394
+ npm run dev
395
+ cd harmony && ohpm install
396
+ devecocli build --product default --build-mode debug
397
+ ```
398
+
399
+ > ⚠️ `ohpm install` 不可跳过 — CMake 编译时需从 `oh_modules/@rnoh/react-native-openharmony/src/main/cpp/` 读取 RNOH C++ 源码。
400
+
401
+ > ⚠️ **构建日志来源验证**(多任务并行时必须):构建完成后验证日志路径来自当前任务仓库,排除其他任务日志干扰:
402
+ > ```bash
403
+ > # 确认当前任务路径在日志中出现(应为大量匹配)
404
+ > grep -c "当前任务路径" <log_file>
405
+ > # 确认其他任务路径不在日志中(应为 0 匹配)
406
+ > grep -c "其他任务路径" <log_file>
407
+ > ```
408
+
409
+ 详细操作步骤、参数说明、API 版本对应表、devecocli 回退方案见 [references/har-tgz-build.md](references/har-tgz-build.md)。
410
+
411
+ ### 编译错误修复策略
412
+
413
+ 编译错误修复是迭代过程,参考 [references/common-compile-errors.md](references/common-compile-errors.md) 获取常见错误模式和修复方法。通用策略:
414
+
415
+ 1. **收集错误** → **分类** → **优先级排序**(先修复根因错误如 import 路径)
416
+ 2. **单文件快速验证**:`devecocli check lint <file>`
417
+ 3. **逐个修复后重新编译**
418
+ 4. **迭代**:修复后重新走 4b→4c→4d→4e 流程
419
+
420
+ 常见错误速查:
421
+
422
+ | 错误类型 | 典型表现 | 修复方向 |
423
+ |----------|---------|---------|
424
+ | 导入路径错误 | `Cannot find module 'X'` | 修正路径(根因错误,先修复) |
425
+ | ArkTS 模块解析 | `Failed to resolve OhmUrl` | 注册模块到 build-profile.json5 |
426
+ | ArkTS 编译规则 | `arkts-no-*` 系列错误 | 参考 ArkTS 编译规则修复 |
427
+ | 类型不匹配 | `Type 'X' is not assignable` | 检查接口定义是否同步 |
428
+ | C++ 链接错误 | `undefined reference to 'X'` | 检查 CMakeLists.txt 是否包含新源文件 |
429
+ | ohpm install 缺失 | `not an existing directory` | 运行 `ohpm install` |
430
+ | HAR 不在 tgz 中 | `npm pack --dry-run` 无 `.har` | package.json `files` 加 `harmony/` |
431
+ | SDK 版本不匹配 | `SDK component missing` | 移除 compileSdkVersion 或用 `rnoh-build-har <api-version>` |
432
+
433
+ ### 验证通过标准
434
+
435
+ | 验证项 | 通过标准 |
436
+ |--------|---------|
437
+ | `devecocli check lint` | 无 ERROR |
438
+ | `rnoh-build-har` | `harmony/<module>.har` 生成 |
439
+ | `npm pack --dry-run` | tgz 包含 `.har` 文件 |
440
+ | `npm install` | tgz 包正确安装到 node_modules |
441
+ | `ohpm install` | oh_modules 中有 RNOH har 包 |
442
+ | `devecocli build` | `BUILD SUCCESSFUL`,仅框架 WARNING |
443
+ | CMake 编译完整性 | `BuildNativeWithCmake` 和 `BuildNativeWithNinja` 两个步骤均完成且无 ERROR |
444
+ | 构建日志来源 | 日志路径来自当前任务仓库(当前任务路径有匹配,其他任务路径 0 匹配) |
445
+
446
+ ---
447
+
448
+ ## Step 5:生成适配变更清单
449
+
450
+ 编译通过后,生成适配变更清单文档,记录所有修改:
451
+
452
+ ```markdown
453
+ # 适配变更清单
454
+
455
+ ## 版本信息
456
+ - 升级前: RNOH 0.77 / 上游 v7.2.2
457
+ - 升级后: RNOH 0.84 / 上游 v7.4.0
458
+
459
+ ## 修改文件列表
460
+
461
+ | 文件 | 修改类型 | 修改内容 | 原因 |
462
+ |------|---------|---------|------|
463
+ | package.json | 依赖升级 | RN 0.77.1→0.84.1, RNOH 0.77.18-1→0.84.2 | 框架版本升级 |
464
+ | harmony/src/main/ets/XxxModule.ets | 新增实现 | 实现 getXxx() | 上游新增 API |
465
+ | harmony/src/main/cpp/XxxComponent.cpp | 修改 | 新增 propY 处理 | 上游新增组件属性 |
466
+
467
+ ## 打包与编译验证结果
468
+ - devecocli check lint: ✅ 无错误
469
+ - rnoh-build-har: ✅ HAR 包生成 (harmony/xxx.har)
470
+ - npm pack: ✅ TGZ 包生成 (含 HAR 文件)
471
+ - npm install (tgz 依赖): ✅ tgz 包正确安装
472
+ - npm run codegen: ✅ 通过
473
+ - npm run dev: ✅ 通过
474
+ - ohpm install: ✅ har 包安装到 oh_modules
475
+ - devecocli build: ✅ BUILD SUCCESSFUL(依赖 tgz 包构建)
476
+
477
+ ## 交付物
478
+ - harmony/xxx.har — 鸿蒙原生 HAR 包
479
+ - react-native-ohos-react-native-xxx-<version>.tgz — 最终 npm 包(含 HAR)
480
+
481
+ ## 待后续关注
482
+ - 新增 API 的功能测试(见 rnoh-lib-test-align)
483
+ - 性能回归测试
484
+ ```
485
+
486
+ ---
487
+
488
+ ## 常见边界情况
489
+
490
+ 跨版本升级、codegen 冲突、缺少 RNOH 分支、peer dependency 冲突、compileSdkVersion 不匹配、RNOH 框架警告、codegen 与 autolinking 关系、源码 `file:` 依赖问题等边界情况,详见 [references/edge-cases.md](references/edge-cases.md)。
491
+
492
+ ## 输出物清单
493
+
494
+ 1. **适配变更清单**(Markdown 格式)— 记录所有修改的文件、内容、原因
495
+ 2. **HAR 包**(`harmony/<module>.har`)— 由 `rnoh-build-har` 生成
496
+ 3. **TGZ 包**(`<name>-<version>.tgz`)— 最终 npm 包产物,含 JS 代码 + HAR 包,由 `npm pack` 生成
497
+ 4. **编译通过的本地工程** — tgz 依赖方式构建通过的 example 工程,供 rnoh-lib-test-align
498
+ 5. **变更分类清单** — 供 rnoh-lib-func-test 生成测试清单