@buaa_smat/hometrans 0.1.17 → 0.1.20

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 (227) hide show
  1. package/README.md +138 -56
  2. package/agents/code-reviewer.md +321 -65
  3. package/agents/logic-coder.md +113 -88
  4. package/agents/logic-context-builder.md +47 -29
  5. package/agents/scripts/hmos-precheck/backends/arkts.mjs +567 -0
  6. package/agents/scripts/hmos-precheck/backends/arkts_diff.mjs +159 -0
  7. package/agents/scripts/hmos-precheck/backends/arkts_project_rules.mjs +398 -0
  8. package/agents/scripts/hmos-precheck/backends/codelinter.mjs +250 -0
  9. package/agents/scripts/hmos-precheck/backends/project_integrity.mjs +321 -0
  10. package/agents/scripts/hmos-precheck/backends/static_precheck.mjs +247 -0
  11. package/agents/scripts/hmos-precheck/core/config.mjs +184 -0
  12. package/agents/scripts/hmos-precheck/core/diagnostic_scope.mjs +20 -0
  13. package/agents/scripts/hmos-precheck/core/process_adapter.mjs +47 -0
  14. package/agents/scripts/hmos-precheck/core/project_catalog.mjs +50 -0
  15. package/agents/scripts/hmos-precheck/core/result_projection.mjs +147 -0
  16. package/agents/scripts/hmos-precheck/core/scope_plan.mjs +131 -0
  17. package/agents/scripts/hmos-precheck/core/sdk_context.mjs +67 -0
  18. package/agents/scripts/hmos-precheck/docs/architecture.md +37 -0
  19. package/agents/scripts/hmos-precheck/docs/performance-optimization.md +28 -0
  20. package/agents/scripts/hmos-precheck/docs/upstream-reference.json +19 -0
  21. package/agents/scripts/hmos-precheck/docs/validation.md +50 -0
  22. package/agents/scripts/hmos-precheck/index.mjs +17 -0
  23. package/agents/scripts/hmos-precheck/invocation.mjs +231 -0
  24. package/agents/scripts/hmos-precheck/rules/rule_case_matrix.csv +32 -0
  25. package/agents/scripts/hmos-precheck/rules/rule_inventory.csv +64 -0
  26. package/agents/scripts/hmos-precheck/rules/rule_inventory.mjs +59 -0
  27. package/agents/scripts/hmos-precheck/rules/rule_policy.mjs +54 -0
  28. package/agents/scripts/platform_query.mjs +626 -0
  29. package/agents/scripts/platform_query.test.mjs +422 -0
  30. package/agents/self-test-fixer.md +36 -34
  31. package/agents/self-tester.md +35 -376
  32. package/agents/test-case-generation-generator.md +317 -0
  33. package/agents/test-case-generation-validator.md +231 -0
  34. package/dist/cli/config-store.js +19 -146
  35. package/dist/cli/config.js +6 -8
  36. package/dist/cli/env-vars.js +1 -3
  37. package/dist/cli/index.js +0 -11
  38. package/dist/cli/init.js +147 -235
  39. package/dist/cli/uninstall.js +5 -129
  40. package/dist/utils/regex.js +8 -0
  41. package/env-requirements.json +57 -55
  42. package/package.json +6 -8
  43. package/resource/convert_pipeline_process.svg +103 -0
  44. package/resource/project_architecture.svg +122 -0
  45. package/resource/title_dark.png +0 -0
  46. package/skills/hmos-batch-ui-align/SKILL.md +345 -43
  47. package/skills/hmos-batch-ui-align/references/conversion-procedure.md +661 -180
  48. package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2533 -2533
  49. package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +555 -555
  50. package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +117 -117
  51. 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 +648 -648
  52. package/skills/hmos-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
  53. package/skills/hmos-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
  54. 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 +1183 -1183
  55. 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 +576 -576
  56. 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 +297 -297
  57. 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 +395 -395
  58. 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 +902 -902
  59. package/skills/hmos-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
  60. 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 +1178 -1178
  61. package/skills/hmos-batch-ui-align/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md +911 -911
  62. 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 +354 -354
  63. 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 +11 -11
  64. 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 +206 -0
  65. package/skills/hmos-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 -0
  66. package/skills/hmos-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 -0
  67. 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 +750 -0
  68. package/skills/hmos-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 -0
  69. package/skills/hmos-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 -0
  70. package/skills/hmos-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 -0
  71. 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 +840 -0
  72. 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 +856 -0
  73. package/skills/hmos-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 -0
  74. 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 +294 -0
  75. package/skills/hmos-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +1407 -0
  76. 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 +1220 -0
  77. package/skills/hmos-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 -0
  78. package/skills/hmos-batch-ui-align/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +133 -0
  79. 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 +840 -0
  80. package/skills/hmos-batch-ui-align/scripts/android_parse_fast.ts +1798 -0
  81. package/skills/hmos-batch-ui-align/scripts/arkts_static_check.ts +1592 -0
  82. package/skills/hmos-batch-ui-align/scripts/measure_pack.ts +752 -0
  83. package/skills/hmos-convert-pipeline/SKILL.md +188 -131
  84. package/skills/hmos-fix-build-errors/SKILL.md +87 -67
  85. package/skills/hmos-fix-build-errors/references/arkts-strict-patterns.md +219 -219
  86. package/skills/hmos-fix-build-errors/references/known-patterns.md +157 -157
  87. package/skills/hmos-fix-build-errors/references/rdb-entity-pattern.md +131 -131
  88. package/skills/hmos-incremental-ui-align/README.md +57 -40
  89. package/skills/hmos-incremental-ui-align/SKILL.md +180 -24
  90. package/skills/hmos-incremental-ui-align/diff_analysis.md +52 -52
  91. package/skills/hmos-incremental-ui-align/page_align.md +62 -62
  92. package/skills/hmos-incremental-ui-align/references/Comparison_Template.md +38 -2
  93. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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
  94. 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 +2088 -2088
  95. 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 +1033 -1033
  96. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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
  97. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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
  98. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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
  99. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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
  100. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/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
  101. 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 +106 -106
  102. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/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
  103. 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 +911 -911
  104. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/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
  105. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243//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
  106. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +206 -0
  107. 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 +373 -0
  108. 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 +158 -0
  109. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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 -0
  110. 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 +1704 -0
  111. 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 +1012 -0
  112. 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 +164 -0
  113. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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 -0
  114. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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 -0
  115. 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 +83 -0
  116. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/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 -0
  117. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +1407 -0
  118. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/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 -0
  119. 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 +47 -0
  120. package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2//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 -0
  121. package/skills/hmos-incremental-ui-align/references/State_Model_Template.md +74 -0
  122. package/skills/hmos-incremental-ui-align/references/UI_Analysis_Template.md +34 -4
  123. package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2533 -2533
  124. package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-interaction-mapping-reference.md +555 -555
  125. package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-layout-mapping-reference.md +117 -117
  126. package/skills/hmos-incremental-ui-align/scripts/app_feature_verify.ts +937 -0
  127. package/skills/hmos-incremental-ui-align/scripts/extract_checklist.ts +343 -0
  128. package/skills/hmos-incremental-ui-align/scripts/navigation-capure.md +44 -5
  129. package/skills/hmos-incremental-ui-align/scripts/page_capture.ts +977 -0
  130. package/skills/hmos-incremental-ui-align/scripts/page_capture_burst.ts +188 -0
  131. package/skills/hmos-integration-test/README.md +111 -79
  132. package/skills/hmos-integration-test/SKILL.md +216 -132
  133. package/skills/hmos-integration-test/scripts/report-tool.ts +791 -0
  134. package/skills/hmos-integration-test/scripts/resolve-metadata-tool.ts +125 -0
  135. package/skills/hmos-integration-test/scripts/self-test-runner.ts +756 -0
  136. package/skills/hmos-integration-test/scripts/testcases-tool.ts +239 -0
  137. package/skills/hmos-resources-convert/SKILL.md +334 -66
  138. package/skills/hmos-resources-convert/references/code-vector-icon-rules.md +335 -0
  139. package/skills/hmos-resources-convert/references/conversion-rules.md +676 -663
  140. package/skills/hmos-resources-convert/references/dependency-analysis-rules.md +410 -388
  141. package/skills/hmos-resources-convert/references/lottie-conversion-rules.md +219 -0
  142. package/skills/hmos-resources-convert/references/resource-mapping-rules.md +482 -457
  143. package/skills/hmos-resources-convert/references/xml-drawable-to-svg-rules.md +592 -513
  144. package/skills/hmos-resources-convert/scripts/a2h_resource_convert.ts +2163 -0
  145. package/skills/hmos-resources-convert/scripts/code_vector_icons.ts +591 -0
  146. package/skills/hmos-resources-convert/scripts/svg_fidelity_check.ts +632 -0
  147. package/skills/hmos-spec-generate/SKILL.md +293 -214
  148. package/skills/hmos-spec-generate/scripts/parse_requirements.ts +515 -0
  149. package/skills/hmos-spec-generate/template/REQ.txt +22 -0
  150. package/skills/hmos-spec-generate/template/REQ.xlsx +0 -0
  151. package/skills/hmos-test-case-generation/README.md +241 -0
  152. package/skills/hmos-test-case-generation/SKILL.md +324 -0
  153. package/skills/hmos-test-case-generation/references/contract.md +315 -0
  154. package/skills/hmos-test-case-generation/references/review-notes-template.md +84 -0
  155. package/skills/hmos-test-case-generation/references/ui-elements-schema.md +142 -0
  156. package/skills/hmos-test-case-generation/tools/convert_to_ui_elements.ts +550 -0
  157. package/skills/hmos-test-case-generation/tools/validate.ts +1312 -0
  158. package/tools/bfs-crawl/README.md +73 -0
  159. package/tools/bfs-crawl/android_viewtree_bfs_crawler.ts +1662 -0
  160. package/agents/build-fixer.md +0 -385
  161. package/agents/logic-coder/scripts/platform_context_query.py +0 -568
  162. package/agents/review-fixer.md +0 -405
  163. package/agents/spec-generator.md +0 -541
  164. package/dist/cli/mcp-setup.js +0 -258
  165. package/dist/cli/mcp.js +0 -94
  166. package/dist/context/index.js +0 -694
  167. package/resource/migration_process.svg +0 -94
  168. package/resource/migration_process_transparent.svg +0 -93
  169. package/skills/hmos-batch-ui-align/scripts/android_parse_fast.py +0 -1606
  170. package/skills/hmos-incremental-ui-align/scripts/__pycache__/app_feature_verify.cpython-314.pyc +0 -0
  171. package/skills/hmos-incremental-ui-align/scripts/app_feature_verify.py +0 -542
  172. package/skills/hmos-incremental-ui-align/scripts/page_capture.py +0 -597
  173. package/skills/hmos-resources-convert/evals/evals.json +0 -171
  174. package/skills/hmos-resources-convert/template/AppScope/app.json5 +0 -10
  175. package/skills/hmos-resources-convert/template/AppScope/resources/base/element/string.json +0 -8
  176. package/skills/hmos-resources-convert/template/AppScope/resources/base/media/background.png +0 -0
  177. package/skills/hmos-resources-convert/template/AppScope/resources/base/media/foreground.png +0 -0
  178. package/skills/hmos-resources-convert/template/AppScope/resources/base/media/layered_image.json +0 -7
  179. package/skills/hmos-resources-convert/template/build-profile.json5 +0 -42
  180. package/skills/hmos-resources-convert/template/code-linter.json5 +0 -32
  181. package/skills/hmos-resources-convert/template/entry/build-profile.json5 +0 -33
  182. package/skills/hmos-resources-convert/template/entry/hvigorfile.ts +0 -6
  183. package/skills/hmos-resources-convert/template/entry/obfuscation-rules.txt +0 -23
  184. package/skills/hmos-resources-convert/template/entry/oh-package.json5 +0 -10
  185. package/skills/hmos-resources-convert/template/entry/src/main/ets/entryability/EntryAbility.ets +0 -48
  186. package/skills/hmos-resources-convert/template/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets +0 -16
  187. package/skills/hmos-resources-convert/template/entry/src/main/ets/pages/Index.ets +0 -23
  188. package/skills/hmos-resources-convert/template/entry/src/main/module.json5 +0 -55
  189. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/element/color.json +0 -8
  190. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/element/float.json +0 -8
  191. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/element/string.json +0 -16
  192. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/media/background.png +0 -0
  193. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/media/foreground.png +0 -0
  194. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/media/layered_image.json +0 -7
  195. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/media/startIcon.png +0 -0
  196. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/profile/backup_config.json +0 -3
  197. package/skills/hmos-resources-convert/template/entry/src/main/resources/base/profile/main_pages.json +0 -5
  198. package/skills/hmos-resources-convert/template/entry/src/main/resources/dark/element/color.json +0 -8
  199. package/skills/hmos-resources-convert/template/entry/src/mock/mock-config.json5 +0 -2
  200. package/skills/hmos-resources-convert/template/entry/src/ohosTest/ets/test/Ability.test.ets +0 -35
  201. package/skills/hmos-resources-convert/template/entry/src/ohosTest/ets/test/List.test.ets +0 -5
  202. package/skills/hmos-resources-convert/template/entry/src/ohosTest/module.json5 +0 -16
  203. package/skills/hmos-resources-convert/template/entry/src/test/List.test.ets +0 -5
  204. package/skills/hmos-resources-convert/template/entry/src/test/LocalUnit.test.ets +0 -33
  205. package/skills/hmos-resources-convert/template/hvigor/hvigor-config.json5 +0 -23
  206. package/skills/hmos-resources-convert/template/hvigorfile.ts +0 -6
  207. package/skills/hmos-resources-convert/template/oh-package-lock.json5 +0 -28
  208. package/skills/hmos-resources-convert/template/oh-package.json5 +0 -10
  209. package/skills/hmos-resources-convert/tools/apktool_3.0.1.jar +0 -0
  210. package/skills/hmos-spec-generate/references/android-platform-tokens.md +0 -105
  211. package/skills/hmos-spec-generate/references/spec-sample-1.md +0 -78
  212. package/skills/hmos-spec-generate/references/spec-sample-2.md +0 -58
  213. package/skills/hmos-spec-generate/references/spec-sample-3.md +0 -116
  214. package/skills/hmos-spec-generate/references/step4-report-template.md +0 -33
  215. package/tools/test-tools/autotest/README.md +0 -238
  216. package/tools/test-tools/autotest/pyproject.toml +0 -26
  217. package/tools/test-tools/autotest/report_tool.py +0 -759
  218. package/tools/test-tools/autotest/self_test_runner.py +0 -895
  219. package/tools/test-tools/autotest/testcases_schema.md +0 -143
  220. package/tools/test-tools/autotest/testcases_tool.py +0 -215
  221. package/tools/test-tools/autotest/uv.lock +0 -3156
  222. package/tools/test-tools/harmony_autotest-0.1.0-py3-none-any.whl +0 -0
  223. package/tools/test-tools/hypium-6.1.0.210-py3-none-any.whl +0 -0
  224. package/tools/test-tools/hypium_mcp-0.6.5-py3-none-any.whl +0 -0
  225. package/tools/test-tools/xdevice-6.1.0.210-py3-none-any.whl +0 -0
  226. package/tools/test-tools/xdevice_devicetest-6.1.0.210-py3-none-any.whl +0 -0
  227. package/tools/test-tools/xdevice_ohos-6.1.0.210-py3-none-any.whl +0 -0
@@ -1,171 +0,0 @@
1
- {
2
- "skill_name": "hmos-resources-convert",
3
- "evals": [
4
- {
5
- "id": 1,
6
- "prompt": "I have an Android project at D:\\cc_workspace\\test_android_project and I need to convert all its resources to a HarmonyOS project. Please create the HarmonyOS project at D:\\cc_workspace\\test_harmony_output_1 and convert all resources.",
7
- "expected_output": "A HarmonyOS project initialized from the template with all convertible Android resources migrated: strings/colors/dimens converted to JSON format in element/, images copied to media/ with proper qualifier directories (hdpi->ldpi, xhdpi->xldpi), Arabic and Chinese strings in qualified directories (ar/element/, zh_CN/element/), night mode colors in dark/element/, raw files in rawfile/, fonts in rawfile/fonts/, unmappable resources (layouts, XML drawables, anims) logged in report. The report should include a dependency map showing inter-resource references and their satisfaction status.",
8
- "files": [],
9
- "assertions": [
10
- {
11
- "name": "string_json_exists",
12
- "type": "file_exists",
13
- "description": "base/element/string.json exists with all 5 strings from values/strings.xml",
14
- "path": "D:\\cc_workspace\\test_harmony_output_1\\entry\\src\\main\\resources\\base\\element\\string.json"
15
- },
16
- {
17
- "name": "color_json_format",
18
- "type": "content_check",
19
- "description": "color.json has correct HarmonyOS format with #AARRGGBB (6-digit colors get ff prefix)",
20
- "path": "D:\\cc_workspace\\test_harmony_output_1\\entry\\src\\main\\resources\\base\\element\\color.json"
21
- },
22
- {
23
- "name": "float_json_units",
24
- "type": "content_check",
25
- "description": "float.json converts sp->fp and dp->vp correctly",
26
- "path": "D:\\cc_workspace\\test_harmony_output_1\\entry\\src\\main\\resources\\base\\element\\float.json"
27
- },
28
- {
29
- "name": "arabic_qualifier_dir",
30
- "type": "dir_exists",
31
- "description": "Arabic strings are in ar/element/ directory",
32
- "path": "D:\\cc_workspace\\test_harmony_output_1\\entry\\src\\main\\resources\\ar"
33
- },
34
- {
35
- "name": "chinese_qualifier_dir",
36
- "type": "dir_exists",
37
- "description": "Chinese strings are in zh_CN/element/ directory",
38
- "path": "D:\\cc_workspace\\test_harmony_output_1\\entry\\src\\main\\resources\\zh_CN"
39
- },
40
- {
41
- "name": "hdpi_to_ldpi_mapping",
42
- "type": "dir_exists",
43
- "description": "drawable-hdpi images mapped to ldpi/media/ directory",
44
- "path": "D:\\cc_workspace\\test_harmony_output_1\\entry\\src\\main\\resources\\ldpi\\media"
45
- },
46
- {
47
- "name": "dark_mode_colors",
48
- "type": "file_exists",
49
- "description": "Night mode colors placed in dark/element/color.json",
50
- "path": "D:\\cc_workspace\\test_harmony_output_1\\entry\\src\\main\\resources\\dark\\element\\color.json"
51
- },
52
- {
53
- "name": "rawfile_copy",
54
- "type": "file_exists",
55
- "description": "Raw files copied to rawfile/",
56
- "path": "D:\\cc_workspace\\test_harmony_output_1\\entry\\src\\main\\resources\\rawfile\\config.json"
57
- },
58
- {
59
- "name": "report_generated",
60
- "type": "content_check",
61
- "description": "A conversion report is generated showing mappings, unmappable resources (layout, anim, XML drawable), and verification results"
62
- },
63
- {
64
- "name": "dependency_map_in_report",
65
- "type": "content_check",
66
- "description": "Report includes a 'Resource Dependency Map' section listing resource dependencies and their satisfaction status"
67
- }
68
- ]
69
- },
70
- {
71
- "id": 2,
72
- "prompt": "Please convert the Android project resources at D:\\cc_workspace\\GSYVideoPlayer-master to HarmonyOS format. Create the HarmonyOS project at D:\\cc_workspace\\test_harmony_output_2. This project has drawable-xhdpi images, multiple mipmap density folders, raw files, and various values resources. Make sure to analyze resource dependencies — some XML drawables reference colors that may come from library dependencies.",
73
- "expected_output": "A HarmonyOS project with GSYVideoPlayer's resources converted. The dependency analysis should identify that XML drawables like dialog_btn_bg.xml reference @color/btn_rect_alpha and @color/transparent. The report should show a dependency map with satisfaction status. If colors like btn_rect_alpha are not found in the source values/, the skill should attempt APK build + decompilation to recover them. xhdpi drawables in xldpi/media/, mipmap icons at various densities converted to media/ with qualifier dirs, values (strings, colors, dimens) converted to element JSON, raw files in rawfile/.",
74
- "files": [],
75
- "assertions": [
76
- {
77
- "name": "project_initialized",
78
- "type": "file_exists",
79
- "description": "HarmonyOS project structure exists with entry module",
80
- "path": "D:\\cc_workspace\\test_harmony_output_2\\entry\\src\\main\\resources\\base"
81
- },
82
- {
83
- "name": "xhdpi_drawable_converted",
84
- "type": "dir_exists",
85
- "description": "drawable-xhdpi resources mapped to xldpi/media/",
86
- "path": "D:\\cc_workspace\\test_harmony_output_2\\entry\\src\\main\\resources\\xldpi\\media"
87
- },
88
- {
89
- "name": "strings_converted",
90
- "type": "file_exists",
91
- "description": "strings.xml converted to string.json in base/element/",
92
- "path": "D:\\cc_workspace\\test_harmony_output_2\\entry\\src\\main\\resources\\base\\element\\string.json"
93
- },
94
- {
95
- "name": "colors_converted",
96
- "type": "file_exists",
97
- "description": "colors.xml converted to color.json",
98
- "path": "D:\\cc_workspace\\test_harmony_output_2\\entry\\src\\main\\resources\\base\\element\\color.json"
99
- },
100
- {
101
- "name": "dependency_map_exists",
102
- "type": "content_check",
103
- "description": "Report contains a dependency map section showing references from drawable XMLs (e.g., dialog_btn_bg.xml → @color/btn_rect_alpha)"
104
- },
105
- {
106
- "name": "dependency_satisfaction_tracked",
107
- "type": "content_check",
108
- "description": "Each dependency in the map has a satisfaction status (satisfied/unsatisfied)"
109
- },
110
- {
111
- "name": "report_has_unmappable",
112
- "type": "content_check",
113
- "description": "Report shows layout files as unmappable but still documents their resource dependencies"
114
- }
115
- ]
116
- },
117
- {
118
- "id": 3,
119
- "prompt": "I need to migrate my Android app resources to HarmonyOS. The Android project is at D:\\cc_workspace\\test_android_project. Please output the HarmonyOS project at D:\\cc_workspace\\test_harmony_output_3. Make sure to handle the qualifier directories correctly - I have drawable-hdpi, drawable-xhdpi, values-ar, values-zh-rCN, and values-night folders that all need proper mapping. Also analyze all resource dependencies and include the dependency mapping in the report.",
120
- "expected_output": "Same as eval 1 but with extra emphasis on qualifier mapping correctness and dependency analysis. All qualifier directories should be correctly mapped. The report must include a resource dependency map showing all inter-resource references found in XML files (including layout XMLs for documentation purposes), with satisfaction status for each dependency.",
121
- "files": [],
122
- "assertions": [
123
- {
124
- "name": "hdpi_mapped_to_ldpi",
125
- "type": "dir_exists",
126
- "description": "drawable-hdpi mapped to ldpi (HarmonyOS ldpi covers 160-240 DPI range, matching Android hdpi ~240)",
127
- "path": "D:\\cc_workspace\\test_harmony_output_3\\entry\\src\\main\\resources\\ldpi\\media"
128
- },
129
- {
130
- "name": "xhdpi_mapped_to_xldpi",
131
- "type": "dir_exists",
132
- "description": "drawable-xhdpi mapped to xldpi (HarmonyOS xldpi covers 240-320 DPI range, matching Android xhdpi ~320)",
133
- "path": "D:\\cc_workspace\\test_harmony_output_3\\entry\\src\\main\\resources\\xldpi\\media"
134
- },
135
- {
136
- "name": "arabic_in_ar_dir",
137
- "type": "dir_exists",
138
- "description": "values-ar mapped to ar/element/",
139
- "path": "D:\\cc_workspace\\test_harmony_output_3\\entry\\src\\main\\resources\\ar\\element"
140
- },
141
- {
142
- "name": "chinese_in_zh_CN_dir",
143
- "type": "dir_exists",
144
- "description": "values-zh-rCN mapped to zh_CN/element/",
145
- "path": "D:\\cc_workspace\\test_harmony_output_3\\entry\\src\\main\\resources\\zh_CN\\element"
146
- },
147
- {
148
- "name": "night_in_dark_dir",
149
- "type": "dir_exists",
150
- "description": "values-night mapped to dark/element/",
151
- "path": "D:\\cc_workspace\\test_harmony_output_3\\entry\\src\\main\\resources\\dark\\element"
152
- },
153
- {
154
- "name": "dependency_map_in_report",
155
- "type": "content_check",
156
- "description": "Report includes a 'Resource Dependency Map' section with dependencies extracted from all XML resources"
157
- },
158
- {
159
- "name": "layout_dependencies_documented",
160
- "type": "content_check",
161
- "description": "Layout XML files (which are not converted) still have their resource dependencies documented in the dependency map"
162
- },
163
- {
164
- "name": "comprehensive_report",
165
- "type": "content_check",
166
- "description": "Report includes qualifier mapping section, dependency map section, and verification results with dependency satisfaction summary"
167
- }
168
- ]
169
- }
170
- ]
171
- }
@@ -1,10 +0,0 @@
1
- {
2
- "app": {
3
- "bundleName": "com.example.myapplication",
4
- "vendor": "example",
5
- "versionCode": 1000000,
6
- "versionName": "1.0.0",
7
- "icon": "$media:layered_image",
8
- "label": "$string:app_name"
9
- }
10
- }
@@ -1,8 +0,0 @@
1
- {
2
- "string": [
3
- {
4
- "name": "app_name",
5
- "value": "MyApplication"
6
- }
7
- ]
8
- }
@@ -1,7 +0,0 @@
1
- {
2
- "layered-image":
3
- {
4
- "background" : "$media:background",
5
- "foreground" : "$media:foreground"
6
- }
7
- }
@@ -1,42 +0,0 @@
1
- {
2
- "app": {
3
- "signingConfigs": [],
4
- "products": [
5
- {
6
- "name": "default",
7
- "signingConfig": "default",
8
- "targetSdkVersion": "6.0.2(22)",
9
- "compatibleSdkVersion": "6.0.2(22)",
10
- "runtimeOS": "HarmonyOS",
11
- "buildOption": {
12
- "strictMode": {
13
- "caseSensitiveCheck": true,
14
- "useNormalizedOHMUrl": true
15
- }
16
- }
17
- }
18
- ],
19
- "buildModeSet": [
20
- {
21
- "name": "debug",
22
- },
23
- {
24
- "name": "release"
25
- }
26
- ]
27
- },
28
- "modules": [
29
- {
30
- "name": "entry",
31
- "srcPath": "./entry",
32
- "targets": [
33
- {
34
- "name": "default",
35
- "applyToProducts": [
36
- "default"
37
- ]
38
- }
39
- ]
40
- }
41
- ]
42
- }
@@ -1,32 +0,0 @@
1
- {
2
- "files": [
3
- "**/*.ets"
4
- ],
5
- "ignore": [
6
- "**/src/ohosTest/**/*",
7
- "**/src/test/**/*",
8
- "**/src/mock/**/*",
9
- "**/node_modules/**/*",
10
- "**/oh_modules/**/*",
11
- "**/build/**/*",
12
- "**/.preview/**/*"
13
- ],
14
- "ruleSet": [
15
- "plugin:@performance/recommended",
16
- "plugin:@typescript-eslint/recommended"
17
- ],
18
- "rules": {
19
- "@security/no-unsafe-aes": "error",
20
- "@security/no-unsafe-hash": "error",
21
- "@security/no-unsafe-mac": "warn",
22
- "@security/no-unsafe-dh": "error",
23
- "@security/no-unsafe-dsa": "error",
24
- "@security/no-unsafe-ecdsa": "error",
25
- "@security/no-unsafe-rsa-encrypt": "error",
26
- "@security/no-unsafe-rsa-sign": "error",
27
- "@security/no-unsafe-rsa-key": "error",
28
- "@security/no-unsafe-dsa-key": "error",
29
- "@security/no-unsafe-dh-key": "error",
30
- "@security/no-unsafe-3des": "error"
31
- }
32
- }
@@ -1,33 +0,0 @@
1
- {
2
- "apiType": "stageMode",
3
- "buildOption": {
4
- "resOptions": {
5
- "copyCodeResource": {
6
- "enable": false
7
- }
8
- }
9
- },
10
- "buildOptionSet": [
11
- {
12
- "name": "release",
13
- "arkOptions": {
14
- "obfuscation": {
15
- "ruleOptions": {
16
- "enable": false,
17
- "files": [
18
- "./obfuscation-rules.txt"
19
- ]
20
- }
21
- }
22
- }
23
- },
24
- ],
25
- "targets": [
26
- {
27
- "name": "default"
28
- },
29
- {
30
- "name": "ohosTest",
31
- }
32
- ]
33
- }
@@ -1,6 +0,0 @@
1
- import { hapTasks } from '@ohos/hvigor-ohos-plugin';
2
-
3
- export default {
4
- system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
5
- plugins: [] /* Custom plugin to extend the functionality of Hvigor. */
6
- }
@@ -1,23 +0,0 @@
1
- # Define project specific obfuscation rules here.
2
- # You can include the obfuscation configuration files in the current module's build-profile.json5.
3
- #
4
- # For more details, see
5
- # https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/source-obfuscation
6
-
7
- # Obfuscation options:
8
- # -disable-obfuscation: disable all obfuscations
9
- # -enable-property-obfuscation: obfuscate the property names
10
- # -enable-toplevel-obfuscation: obfuscate the names in the global scope
11
- # -compact: remove unnecessary blank spaces and all line feeds
12
- # -remove-log: remove all console.* statements
13
- # -print-namecache: print the name cache that contains the mapping from the old names to new names
14
- # -apply-namecache: reuse the given cache file
15
-
16
- # Keep options:
17
- # -keep-property-name: specifies property names that you want to keep
18
- # -keep-global-name: specifies names that you want to keep in the global scope
19
-
20
- -enable-property-obfuscation
21
- -enable-toplevel-obfuscation
22
- -enable-filename-obfuscation
23
- -enable-export-obfuscation
@@ -1,10 +0,0 @@
1
- {
2
- "name": "entry",
3
- "version": "1.0.0",
4
- "description": "Please describe the basic information.",
5
- "main": "",
6
- "author": "",
7
- "license": "",
8
- "dependencies": {}
9
- }
10
-
@@ -1,48 +0,0 @@
1
- import { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit';
2
- import { hilog } from '@kit.PerformanceAnalysisKit';
3
- import { window } from '@kit.ArkUI';
4
-
5
- const DOMAIN = 0x0000;
6
-
7
- export default class EntryAbility extends UIAbility {
8
- onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
9
- try {
10
- this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET);
11
- } catch (err) {
12
- hilog.error(DOMAIN, 'testTag', 'Failed to set colorMode. Cause: %{public}s', JSON.stringify(err));
13
- }
14
- hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onCreate');
15
- }
16
-
17
- onDestroy(): void {
18
- hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onDestroy');
19
- }
20
-
21
- onWindowStageCreate(windowStage: window.WindowStage): void {
22
- // Main window is created, set main page for this ability
23
- hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
24
-
25
- windowStage.loadContent('pages/Index', (err) => {
26
- if (err.code) {
27
- hilog.error(DOMAIN, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err));
28
- return;
29
- }
30
- hilog.info(DOMAIN, 'testTag', 'Succeeded in loading the content.');
31
- });
32
- }
33
-
34
- onWindowStageDestroy(): void {
35
- // Main window is destroyed, release UI related resources
36
- hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageDestroy');
37
- }
38
-
39
- onForeground(): void {
40
- // Ability has brought to foreground
41
- hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onForeground');
42
- }
43
-
44
- onBackground(): void {
45
- // Ability has back to background
46
- hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onBackground');
47
- }
48
- }
@@ -1,16 +0,0 @@
1
- import { hilog } from '@kit.PerformanceAnalysisKit';
2
- import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit';
3
-
4
- const DOMAIN = 0x0000;
5
-
6
- export default class EntryBackupAbility extends BackupExtensionAbility {
7
- async onBackup() {
8
- hilog.info(DOMAIN, 'testTag', 'onBackup ok');
9
- await Promise.resolve();
10
- }
11
-
12
- async onRestore(bundleVersion: BundleVersion) {
13
- hilog.info(DOMAIN, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion));
14
- await Promise.resolve();
15
- }
16
- }
@@ -1,23 +0,0 @@
1
- @Entry
2
- @Component
3
- struct Index {
4
- @State message: string = 'Hello World';
5
-
6
- build() {
7
- RelativeContainer() {
8
- Text(this.message)
9
- .id('HelloWorld')
10
- .fontSize($r('app.float.page_text_font_size'))
11
- .fontWeight(FontWeight.Bold)
12
- .alignRules({
13
- center: { anchor: '__container__', align: VerticalAlign.Center },
14
- middle: { anchor: '__container__', align: HorizontalAlign.Center }
15
- })
16
- .onClick(() => {
17
- this.message = 'Welcome';
18
- })
19
- }
20
- .height('100%')
21
- .width('100%')
22
- }
23
- }
@@ -1,55 +0,0 @@
1
- {
2
- "module": {
3
- "name": "entry",
4
- "type": "entry",
5
- "description": "$string:module_desc",
6
- "mainElement": "EntryAbility",
7
- "deviceTypes": [
8
- "phone",
9
- "tablet",
10
- "2in1",
11
- "car",
12
- "wearable",
13
- "tv"
14
- ],
15
- "deliveryWithInstall": true,
16
- "installationFree": false,
17
- "pages": "$profile:main_pages",
18
- "abilities": [
19
- {
20
- "name": "EntryAbility",
21
- "srcEntry": "./ets/entryability/EntryAbility.ets",
22
- "description": "$string:EntryAbility_desc",
23
- "icon": "$media:layered_image",
24
- "label": "$string:EntryAbility_label",
25
- "startWindowIcon": "$media:startIcon",
26
- "startWindowBackground": "$color:start_window_background",
27
- "exported": true,
28
- "skills": [
29
- {
30
- "entities": [
31
- "entity.system.home"
32
- ],
33
- "actions": [
34
- "ohos.want.action.home"
35
- ]
36
- }
37
- ]
38
- }
39
- ],
40
- "extensionAbilities": [
41
- {
42
- "name": "EntryBackupAbility",
43
- "srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
44
- "type": "backup",
45
- "exported": false,
46
- "metadata": [
47
- {
48
- "name": "ohos.extension.backup",
49
- "resource": "$profile:backup_config"
50
- }
51
- ],
52
- }
53
- ]
54
- }
55
- }
@@ -1,8 +0,0 @@
1
- {
2
- "color": [
3
- {
4
- "name": "start_window_background",
5
- "value": "#FFFFFF"
6
- }
7
- ]
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "float": [
3
- {
4
- "name": "page_text_font_size",
5
- "value": "50fp"
6
- }
7
- ]
8
- }
@@ -1,16 +0,0 @@
1
- {
2
- "string": [
3
- {
4
- "name": "module_desc",
5
- "value": "module description"
6
- },
7
- {
8
- "name": "EntryAbility_desc",
9
- "value": "description"
10
- },
11
- {
12
- "name": "EntryAbility_label",
13
- "value": "label"
14
- }
15
- ]
16
- }
@@ -1,7 +0,0 @@
1
- {
2
- "layered-image":
3
- {
4
- "background" : "$media:background",
5
- "foreground" : "$media:foreground"
6
- }
7
- }
@@ -1,8 +0,0 @@
1
- {
2
- "color": [
3
- {
4
- "name": "start_window_background",
5
- "value": "#000000"
6
- }
7
- ]
8
- }
@@ -1,35 +0,0 @@
1
- import { hilog } from '@kit.PerformanceAnalysisKit';
2
- import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
3
-
4
- export default function abilityTest() {
5
- describe('ActsAbilityTest', () => {
6
- // Defines a test suite. Two parameters are supported: test suite name and test suite function.
7
- beforeAll(() => {
8
- // Presets an action, which is performed only once before all test cases of the test suite start.
9
- // This API supports only one parameter: preset action function.
10
- })
11
- beforeEach(() => {
12
- // Presets an action, which is performed before each unit test case starts.
13
- // The number of execution times is the same as the number of test cases defined by **it**.
14
- // This API supports only one parameter: preset action function.
15
- })
16
- afterEach(() => {
17
- // Presets a clear action, which is performed after each unit test case ends.
18
- // The number of execution times is the same as the number of test cases defined by **it**.
19
- // This API supports only one parameter: clear action function.
20
- })
21
- afterAll(() => {
22
- // Presets a clear action, which is performed after all test cases of the test suite end.
23
- // This API supports only one parameter: clear action function.
24
- })
25
- it('assertContain', 0, () => {
26
- // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
27
- hilog.info(0x0000, 'testTag', '%{public}s', 'it begin');
28
- let a = 'abc';
29
- let b = 'b';
30
- // Defines a variety of assertion methods, which are used to declare expected boolean conditions.
31
- expect(a).assertContain(b);
32
- expect(a).assertEqual(a);
33
- })
34
- })
35
- }
@@ -1,5 +0,0 @@
1
- import abilityTest from './Ability.test';
2
-
3
- export default function testsuite() {
4
- abilityTest();
5
- }
@@ -1,16 +0,0 @@
1
- {
2
- "module": {
3
- "name": "entry_test",
4
- "type": "feature",
5
- "deviceTypes": [
6
- "phone",
7
- "tablet",
8
- "2in1",
9
- "car",
10
- "wearable",
11
- "tv"
12
- ],
13
- "deliveryWithInstall": true,
14
- "installationFree": false
15
- }
16
- }
@@ -1,5 +0,0 @@
1
- import localUnitTest from './LocalUnit.test';
2
-
3
- export default function testsuite() {
4
- localUnitTest();
5
- }