@buaa_smat/hometrans 0.1.20 → 26.0.0-devecocli.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/agents/build-fixer.md +406 -0
- package/agents/code-reviewer.md +461 -496
- package/agents/model-render-worker.md +34 -0
- package/agents/model-worker.md +23 -0
- package/agents/specgen-worker.md +18 -0
- package/commands/hometrans.md +17 -0
- package/devecocli-plugin/common.ts +2203 -0
- package/devecocli-plugin/install.ts +61 -0
- package/devecocli-plugin/uninstall.ts +26 -0
- package/devecocli-plugin/update.ts +66 -0
- package/index.js +1418 -0
- package/package.json +81 -64
- package/platforms/atomcode/agents/build-fixer.frontmatter.md +6 -0
- package/platforms/atomcode/agents/code-reviewer.frontmatter.md +6 -0
- package/platforms/atomcode/agents/model-render-worker.frontmatter.md +6 -0
- package/platforms/atomcode/agents/model-worker.frontmatter.md +6 -0
- package/platforms/atomcode/agents/specgen-worker.frontmatter.md +6 -0
- package/platforms/deveco/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/deveco/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/deveco/agents/model-worker.frontmatter.md +5 -0
- package/platforms/deveco/agents/specgen-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/opencode/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/model-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/specgen-worker.frontmatter.md +5 -0
- package/plugin.jsonc +12 -0
- package/skills/a2h-app-migrate/SKILL.md +181 -0
- package/skills/a2h-app-migrate/references/config.example.json +27 -0
- package/skills/a2h-app-migrate/references/specs.example.json +19 -0
- package/skills/a2h-app-migrate/references/stage-map.md +33 -0
- package/skills/a2h-app-migrate/references/workflow.yaml +1600 -0
- package/skills/a2h-app-migrate/scripts/android_index.mjs +109 -0
- package/skills/a2h-app-migrate/scripts/check_arch_done.mjs +80 -0
- package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +95 -0
- package/skills/a2h-app-migrate/scripts/check_signing.mjs +152 -0
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +114 -0
- package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +277 -0
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +77 -0
- package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +147 -0
- package/skills/a2h-app-migrate/scripts/cli_values.mjs +32 -0
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +1412 -0
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +651 -0
- package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +53 -0
- package/skills/a2h-app-migrate/scripts/json_io.mjs +35 -0
- package/skills/a2h-app-migrate/scripts/ledger.mjs +104 -0
- package/skills/a2h-app-migrate/scripts/lib-yaml-lite.mjs +288 -0
- package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +881 -0
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +205 -0
- package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +121 -0
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +212 -0
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +30 -0
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +455 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +80 -0
- package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +63 -0
- package/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +92 -0
- package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/skills/a2h-app-migrate/test/test_entry_guards.mjs +93 -0
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +544 -0
- package/skills/a2h-app-migrate/test/test_finalize.mjs +89 -0
- package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +146 -0
- package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +68 -0
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +91 -0
- package/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/skills/a2h-app-migrate/test/test_json_io.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +109 -0
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_parse_args.mjs +69 -0
- package/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +144 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +315 -0
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +133 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +133 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +158 -0
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +181 -0
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +83 -0
- package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +39 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +168 -0
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
- package/skills/a2h-arch-generate/SKILL.md +375 -0
- package/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-android.md +103 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-uniapp.md +106 -0
- package/skills/{hmos-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md → a2h-arch-generate/references/arkts-mvvm-v2.md} +1407 -1407
- package/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
- package/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
- package/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
- package/skills/a2h-arch-generate/references/clustering-guidance.md +33 -0
- package/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
- package/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
- package/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
- package/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
- package/skills/a2h-arch-generate/references/homegraph-workflow.md +120 -0
- package/skills/a2h-arch-generate/references/module-evidence-subagent.md +45 -0
- package/skills/a2h-arch-generate/references/reconciliation-model.md +204 -0
- package/skills/a2h-arch-generate/references/scope-policy.md +28 -0
- package/skills/a2h-arch-generate/references/semantic-review.md +65 -0
- package/skills/a2h-arch-generate/references/source-baseline.md +93 -0
- package/skills/a2h-arch-generate/references/source-ecosystems.md +54 -0
- package/skills/a2h-arch-generate/references/transformation-model.md +78 -0
- package/skills/a2h-arch-generate/scripts/check_module_staleness.mjs +284 -0
- package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +260 -0
- package/skills/a2h-arch-generate/scripts/compute_processing_order.mjs +325 -0
- package/skills/a2h-arch-generate/scripts/create_project.mjs +149 -0
- package/skills/a2h-arch-generate/scripts/dump_core_facts.mjs +151 -0
- package/skills/a2h-arch-generate/scripts/extract_core_components.mjs +167 -0
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +363 -0
- package/skills/a2h-arch-generate/scripts/generate_state.mjs +60 -0
- package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +326 -0
- package/skills/a2h-arch-generate/scripts/inspect_android_project.mjs +3739 -0
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +800 -0
- package/skills/a2h-arch-generate/scripts/inspect_project.mjs +251 -0
- package/skills/a2h-arch-generate/scripts/inspect_uniapp_project.mjs +809 -0
- package/skills/a2h-arch-generate/scripts/lib/py_compat.mjs +1454 -0
- package/skills/a2h-arch-generate/scripts/module_create/create.mjs +136 -0
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +636 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/build-profile.json5 +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/oh-package.json5 +10 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/applicationability/ApplicationAbility.ets +43 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/pages/Index.ets +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/module.json5 +26 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/color.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/string.json +16 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/background.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/foreground.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/layered_image.json +7 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/startIcon.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/profile/main_pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/mock/mock-config.json5 +2 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/Index.ets +1 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/build-profile.json5 +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/oh-package.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/ets/components/MainPage.ets +19 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/module.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/resources/base/element/string.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/Index.ets +1 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/build-profile.json5 +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/consumer-rules.txt +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/oh-package.json5 +10 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/pages/Index.ets +20 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/utils/Calc.ets +3 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/module.json5 +12 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/element/string.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/profile/main_pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
- package/skills/a2h-arch-generate/scripts/resolve_android_stores.mjs +529 -0
- package/skills/a2h-arch-generate/scripts/scaffold_project.mjs +230 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +11 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +12 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +17 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +14 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +10 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +6 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +16 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1122 -0
- package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +191 -0
- package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +52 -0
- package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +34 -0
- package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +138 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +829 -0
- package/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +937 -0
- package/skills/a2h-arch-generate/scripts/validate_homegraph_artifacts.mjs +542 -0
- package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +415 -0
- package/skills/a2h-arkts-logic-coder/SKILL.md +125 -0
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +6 -0
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +124 -0
- package/skills/a2h-arkts-logic-coder/scripts/check_module_scope.ts +224 -0
- package/skills/a2h-arkts-logic-coder/scripts/check_mvvm.ts +377 -0
- package/skills/a2h-arkts-logic-coder/scripts/stop_check_hook.ts +443 -0
- package/skills/a2h-arkts-logic-coder/scripts/test_check_scripts.ts +211 -0
- package/skills/a2h-arkts-logic-coder/scripts/test_worktree_compat.ts +81 -0
- package/skills/a2h-batch-ui-align/SKILL.md +321 -0
- package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +81 -0
- package/skills/a2h-batch-ui-align/flowchart.html +271 -0
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +572 -0
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +139 -0
- package/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2535 -2533
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +558 -555
- package/skills/{hmos-incremental-ui-align/references → a2h-batch-ui-align/references/mappings}/android-to-harmonyOS-ui-layout-mapping-reference.md +117 -117
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +648 -648
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +2088 -2088
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +1033 -1033
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +1183 -1183
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +576 -576
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +297 -297
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +395 -395
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +902 -902
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +106 -106
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +1178 -1178
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md +911 -911
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +354 -354
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +11 -11
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +206 -206
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +373 -373
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +158 -158
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +750 -750
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +1704 -1704
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +1012 -1012
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +164 -164
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +840 -840
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +856 -856
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +83 -83
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +294 -294
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +1407 -1407
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +1220 -1220
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +47 -47
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +133 -133
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +840 -840
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +32 -0
- package/skills/a2h-batch-ui-align/references/step3-capture.md +214 -0
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +196 -0
- package/skills/a2h-batch-ui-align/references/step5-convert.md +205 -0
- package/skills/a2h-batch-ui-align/scripts/agent_cli.mjs +572 -0
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/scripts/android_parse_fast.ts +246 -39
- package/skills/a2h-batch-ui-align/scripts/answers_check.mjs +86 -0
- package/skills/a2h-batch-ui-align/scripts/arkts_static_check.ts +3858 -0
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +1675 -0
- package/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
- package/skills/a2h-batch-ui-align/scripts/detach.mjs +258 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1644 -0
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
- package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +166 -0
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1627 -0
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +1869 -0
- package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +696 -0
- package/skills/a2h-batch-ui-align/scripts/harmony_index.mjs +218 -0
- package/skills/a2h-batch-ui-align/scripts/host_env.mjs +208 -0
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1229 -0
- package/skills/a2h-batch-ui-align/scripts/occlusion.mjs +141 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1179 -0
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1036 -0
- package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +217 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +253 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +241 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +341 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +91 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +445 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +356 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +290 -0
- package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +74 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +31 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +564 -0
- package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +126 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +241 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1451 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +215 -0
- package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +115 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +170 -0
- package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +244 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +166 -0
- package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +49 -0
- package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +219 -0
- package/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +470 -0
- package/skills/a2h-coldstart-smoke-gate/SKILL.md +57 -0
- package/skills/a2h-dashboard-render/SKILL.md +65 -0
- package/skills/a2h-dashboard-render/references/artifact-contract.jsonc +147 -0
- package/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
- package/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
- package/skills/a2h-dashboard-render/references//347/234/213/346/235/277/350/257/264/346/230/216.md +83 -0
- package/skills/a2h-dashboard-render/scripts/artifact_contract.mjs +138 -0
- package/skills/a2h-dashboard-render/scripts/check-registry.mjs +87 -0
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +3215 -0
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +2010 -0
- package/skills/a2h-dashboard-render/scripts/page_capture.mjs +828 -0
- package/skills/a2h-dashboard-render/scripts/usage_readers.mjs +459 -0
- package/skills/a2h-dashboard-render/scripts/usage_worker.mjs +13 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +1 -0
- package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +170 -0
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +182 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +64 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1172 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +251 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +303 -0
- package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +444 -0
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/SKILL.md +305 -293
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/arkts-strict-patterns.md +219 -219
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/known-patterns.md +157 -157
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/rdb-entity-pattern.md +131 -131
- package/skills/a2h-module-semantic-docs/SKILL.md +227 -0
- package/skills/a2h-module-semantic-docs/scripts/commit_module_state.mjs +168 -0
- package/skills/a2h-module-semantic-docs/scripts/lib/py_compat.mjs +688 -0
- package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +1021 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/skills/a2h-resource-convert/SKILL.md +369 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/code-vector-icon-rules.md +335 -335
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/conversion-rules.md +687 -676
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/dependency-analysis-rules.md +410 -410
- package/skills/a2h-resource-convert/references/incremental-page-migration.md +251 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/lottie-conversion-rules.md +219 -219
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/resource-mapping-rules.md +493 -482
- package/skills/a2h-resource-convert/references/step3_5-dependency-filter.md +54 -0
- package/skills/a2h-resource-convert/references/step4-qualifiers-and-values.md +142 -0
- package/skills/a2h-resource-convert/references/step4-resource-types.md +249 -0
- package/skills/a2h-resource-convert/references/step5-reference-resolution.md +154 -0
- package/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/xml-drawable-to-svg-rules.md +630 -592
- package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/a2h_resource_convert.ts +2529 -2163
- package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +1072 -0
- package/skills/a2h-resource-convert/scripts/app_identity.ts +947 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/code_vector_icons.ts +607 -591
- package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +989 -0
- package/skills/a2h-resource-convert/scripts/extract_project_resources.ts +1464 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/svg_fidelity_check.ts +632 -632
- package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +182 -0
- package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +206 -0
- package/skills/a2h-spec-design/SKILL.md +336 -0
- package/skills/a2h-spec-design/scripts/inspect_spec_design_inputs.mjs +146 -0
- package/skills/a2h-spec-design/scripts/lib/py_compat.mjs +481 -0
- package/skills/a2h-spec-design/scripts/move_spec_technical_reference.mjs +159 -0
- package/skills/a2h-spec-design/scripts/resolve_module_design.mjs +102 -0
- package/skills/a2h-spec-design/scripts/validate_spec_design_output.mjs +285 -0
- package/skills/a2h-spec-design/test/golden/inspect_happy.json +20 -0
- package/skills/a2h-spec-design/test/golden/move_design.md +18 -0
- package/skills/a2h-spec-design/test/golden/move_design_crlf.md +18 -0
- package/skills/a2h-spec-design/test/golden/move_spec.md +7 -0
- package/skills/a2h-spec-design/test/golden/resolve_cases.json +36 -0
- package/skills/a2h-spec-design/test/golden/validate_issue_file.md +12 -0
- package/skills/a2h-spec-design/test/golden/validate_issues.json +57 -0
- package/skills/a2h-spec-design/test/test_spec_design_scripts.mjs +381 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +228 -0
- package/skills/a2h-spec-design-pipeline/package.json +4 -0
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +63 -0
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +69 -0
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +24 -0
- package/skills/a2h-spec-design-pipeline/references/initialization.md +57 -0
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +21 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +27 -0
- package/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +21 -0
- package/skills/a2h-spec-design-pipeline/scripts/atomic_write.ts +42 -0
- package/skills/a2h-spec-design-pipeline/scripts/audit_claims.ts +252 -0
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +77 -0
- package/skills/a2h-spec-design-pipeline/scripts/deps_ready.ts +195 -0
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +651 -0
- package/skills/a2h-spec-design-pipeline/scripts/git_baseline.ts +124 -0
- package/skills/a2h-spec-design-pipeline/scripts/inflight.mjs +944 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/bgcli.mjs +95 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +502 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_waves.ts +475 -0
- package/skills/a2h-spec-design-pipeline/scripts/reconcile.mjs +218 -0
- package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +164 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_atomic_write.ts +44 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_audit_claims.ts +301 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_bgcli.mjs +64 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_branch_landed.ts +87 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_deps_ready.ts +265 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +675 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_git_baseline.ts +105 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_inflight.mjs +452 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +375 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_waves.ts +561 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_reconcile.mjs +182 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +138 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_watchdog.mjs +289 -0
- package/skills/a2h-spec-design-pipeline/scripts/watchdog.mjs +441 -0
- package/skills/a2h-spec-generate/SKILL.md +285 -0
- package/skills/a2h-spec-generate/package.json +9 -0
- package/skills/a2h-spec-generate/references/batch-mode.md +151 -0
- package/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +114 -0
- package/skills/a2h-spec-generate/references/input-formats.md +27 -0
- package/skills/a2h-spec-generate/references/library-evidence.md +3 -0
- package/skills/a2h-spec-generate/references/method-discipline.md +64 -0
- package/skills/a2h-spec-generate/references/optional-gates.json +45 -0
- package/skills/a2h-spec-generate/references/recall-guide.md +83 -0
- package/skills/a2h-spec-generate/references/recall-terse.md +3 -0
- package/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
- package/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
- package/skills/a2h-spec-generate/references/review-checklist.md +21 -0
- package/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
- package/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
- package/skills/a2h-spec-generate/references/spec-samples.md +65 -0
- package/skills/a2h-spec-generate/references/specs.schema.json +79 -0
- package/skills/a2h-spec-generate/references/synthesis-rules.md +143 -0
- package/skills/a2h-spec-generate/references/transfer-file.md +5 -0
- package/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
- package/skills/a2h-spec-generate/references/worker-rules.md +126 -0
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +514 -0
- package/skills/a2h-spec-generate/scripts/check_spec.ts +361 -0
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +470 -0
- package/skills/a2h-spec-generate/scripts/detect-project.mjs +271 -0
- package/skills/a2h-spec-generate/scripts/ensure-index.mjs +188 -0
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +150 -0
- package/skills/a2h-spec-generate/scripts/inspect-uniapp.mjs +733 -0
- package/skills/{hmos-spec-generate → a2h-spec-generate}/scripts/parse_requirements.ts +515 -515
- package/skills/a2h-spec-generate/scripts/prepare-facts.mjs +307 -0
- package/skills/a2h-spec-generate/scripts/publication-verdict.mjs +171 -0
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +280 -0
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +399 -0
- package/skills/a2h-spec-generate/scripts/report.mjs +132 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/dashboard.html +149 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-api.js +49 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-code-view.js +140 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-format.js +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-handoff.js +42 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-splitters.js +78 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-state.js +47 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-tree.js +194 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-virtual-list.js +118 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.css +245 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.html +99 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.js +220 -0
- package/skills/a2h-spec-generate/scripts/reqgen/package-lock.json +47 -0
- package/skills/a2h-spec-generate/scripts/reqgen/package.json +23 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/agent-render/serve.ts +95 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/callback-call-sites.ts +82 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/area-ownership.ts +496 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/callback-flow.ts +386 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/index.ts +24 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/index.ts +22 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1270 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/index.ts +10 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/projection.ts +804 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/render-projection.ts +51 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/android-interaction-registry.ts +286 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/builder.ts +453 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/compose-api-registry.ts +526 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/index.ts +15 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/connector/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/connector/utg-inbound.ts +763 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/area-graph.ts +383 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/artifact.ts +68 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/common.ts +88 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/diagnostic.ts +64 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/gap-audit.ts +113 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/index.ts +12 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/name-traceability.ts +108 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/raw-fact.ts +377 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/req-model.ts +238 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/run.ts +134 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/semantic-completeness.ts +35 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/source-facts.ts +48 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/utg.ts +133 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/core/output-guard.ts +42 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/core/stable-id.ts +118 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/cross-area-tally-cli.ts +179 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dashboard-cli.ts +188 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump/dump.ts +1184 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump-cli.ts +373 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1014 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-output.ts +32 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +142 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +312 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +310 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +685 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/graph/paths.ts +575 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/homegraph-cli.ts +50 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/android-resource-resolver.ts +391 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/androidx-preference-contracts.ts +44 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +640 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/cross-area.ts +207 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/finalizer.ts +1297 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/identity.ts +186 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/index.ts +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/planner.ts +312 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/preference-enrichment.ts +793 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/raw-facts.ts +355 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/rules.ts +271 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/scanner.ts +666 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/schema.ts +365 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/stable-key.ts +144 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +301 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/uniapp-utg-adapter.ts +543 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/xml-adapter.ts +262 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/assemble.ts +2079 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +157 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +809 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/index.ts +17 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/io.ts +165 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +806 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/query.ts +360 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/seeds.ts +218 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/spec-bindings-sidecar.ts +240 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +359 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model-cli.ts +500 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/pipeline/index.ts +7 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/pipeline/output.ts +307 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +172 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-cov/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-cov/source-cov.ts +176 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/area-graph.ts +490 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/index.ts +23 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-model.ts +957 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +248 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/semantic-area-graph.ts +1600 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/types.ts +10 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/artifact-data.ts +201 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-api.ts +74 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-code-view.ts +180 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-format.ts +18 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-handoff.ts +55 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-splitters.ts +78 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-state.ts +66 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-tree.ts +232 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-virtual-list.ts +179 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz.ts +240 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/contracts.d.ts +86 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/index.ts +3 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/server.ts +239 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/source-project.ts +316 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz-cli.ts +200 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +50 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +75 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +256 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +576 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +290 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1323 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +574 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +831 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +548 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +117 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +396 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +175 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +298 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +286 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +25 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/skills/a2h-spec-generate/scripts/reqgen/tsconfig.json +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/tsconfig.viz-client.json +12 -0
- package/skills/{hmos-spec-generate → a2h-spec-generate}/template/REQ.txt +22 -22
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +632 -0
- package/skills/a2h-spec-generate/test/check-spec.test.ts +200 -0
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +538 -0
- package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +45 -0
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +147 -0
- package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +8 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +6 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +4 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +8 -0
- package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +1 -0
- package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +157 -0
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +282 -0
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +593 -0
- package/skills/a2h-utg-explorer/SKILL.md +120 -0
- package/skills/a2h-utg-explorer/assets/final_viewer.html +64 -0
- package/skills/a2h-utg-explorer/assets/u2.LICENSE +21 -0
- package/skills/a2h-utg-explorer/assets/u2.NOTICE +25 -0
- package/skills/a2h-utg-explorer/assets/u2.jar +0 -0
- package/skills/a2h-utg-explorer/references/architecture.md +270 -0
- package/skills/a2h-utg-explorer/references/protocol.md +9 -0
- package/skills/a2h-utg-explorer/scripts/app_settings.mjs +143 -0
- package/skills/a2h-utg-explorer/scripts/audit.mjs +167 -0
- package/skills/a2h-utg-explorer/scripts/close_phases.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +749 -0
- package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +597 -0
- package/skills/a2h-utg-explorer/scripts/device_health.mjs +227 -0
- package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +276 -0
- package/skills/a2h-utg-explorer/scripts/evidence.mjs +108 -0
- package/skills/a2h-utg-explorer/scripts/final_utg.mjs +428 -0
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/plan.mjs +258 -0
- package/skills/a2h-utg-explorer/scripts/promote_dynamic.mjs +170 -0
- package/skills/a2h-utg-explorer/scripts/recover.mjs +467 -0
- package/skills/a2h-utg-explorer/scripts/recover_b.mjs +542 -0
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +369 -0
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +203 -0
- package/skills/a2h-utg-explorer/scripts/report.mjs +143 -0
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +844 -0
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +137 -0
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +243 -0
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +104 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +223 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +88 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +187 -0
- package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +136 -0
- package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +16 -0
- package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +251 -0
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +42 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +162 -0
- package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +193 -0
- package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +204 -0
- package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +355 -0
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +212 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +267 -0
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +213 -0
- package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +453 -0
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +131 -0
- package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +229 -0
- package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +336 -0
- package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +346 -0
- package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +112 -0
- package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +24 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/_device_io.mjs +244 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/_py.mjs +2097 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +1231 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/attest.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/chain.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/coverage.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/device_lock.mjs +46 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1200 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +1558 -0
- package/skills/a2h-utg-explorer/scripts/variant.mjs +75 -0
- package/skills/a2h-utg-explorer/scripts/worklist_parts.mjs +122 -0
- package/skills/a2h-utg-static/SKILL.md +361 -0
- package/skills/a2h-utg-static/config.json +19 -0
- package/skills/a2h-utg-static/references/extractors.md +217 -0
- package/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
- package/skills/a2h-utg-static/references/view-interactions.md +215 -0
- package/skills/a2h-utg-static/scripts/_graph.mjs +361 -0
- package/skills/a2h-utg-static/scripts/_py.mjs +2177 -0
- package/skills/a2h-utg-static/scripts/_spawn.mjs +45 -0
- package/skills/a2h-utg-static/scripts/activity_nav.mjs +738 -0
- package/skills/a2h-utg-static/scripts/activity_widgets.mjs +254 -0
- package/skills/a2h-utg-static/scripts/adapter_nav.mjs +229 -0
- package/skills/a2h-utg-static/scripts/androidfragment_nav.mjs +208 -0
- package/skills/a2h-utg-static/scripts/assemble.mjs +2065 -0
- package/skills/a2h-utg-static/scripts/audit.mjs +268 -0
- package/skills/a2h-utg-static/scripts/carry_answers.mjs +201 -0
- package/skills/a2h-utg-static/scripts/click_paths.mjs +594 -0
- package/skills/a2h-utg-static/scripts/compose_body_text.mjs +226 -0
- package/skills/a2h-utg-static/scripts/compose_merge.mjs +263 -0
- package/skills/a2h-utg-static/scripts/compose_nav.mjs +1216 -0
- package/skills/a2h-utg-static/scripts/compose_navbar_nav.mjs +238 -0
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +2760 -0
- package/skills/a2h-utg-static/scripts/compose_titles.mjs +365 -0
- package/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
- package/skills/a2h-utg-static/scripts/dialog_listener_nav.mjs +237 -0
- package/skills/a2h-utg-static/scripts/dialogshow_nav.mjs +308 -0
- package/skills/a2h-utg-static/scripts/fragfactory_nav.mjs +170 -0
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +1136 -0
- package/skills/a2h-utg-static/scripts/guard_subjects.mjs +162 -0
- package/skills/a2h-utg-static/scripts/hg_query.mjs +137 -0
- package/skills/a2h-utg-static/scripts/host_resolve.mjs +393 -0
- package/skills/a2h-utg-static/scripts/hybrid_bundle.mjs +165 -0
- package/skills/a2h-utg-static/scripts/hybrid_pages.mjs +713 -0
- package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +660 -0
- package/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
- package/skills/a2h-utg-static/scripts/io_utils.mjs +59 -0
- package/skills/a2h-utg-static/scripts/label_resolve.mjs +864 -0
- package/skills/a2h-utg-static/scripts/launch_extras.mjs +91 -0
- package/skills/a2h-utg-static/scripts/layout_resolve.mjs +148 -0
- package/skills/a2h-utg-static/scripts/manifest.mjs +483 -0
- package/skills/a2h-utg-static/scripts/measure/measure_corpus.mjs +297 -0
- package/skills/a2h-utg-static/scripts/measure/measure_guards.mjs +98 -0
- package/skills/a2h-utg-static/scripts/media_browse_nav.mjs +356 -0
- package/skills/a2h-utg-static/scripts/menu_nav.mjs +603 -0
- package/skills/a2h-utg-static/scripts/navactions_nav.mjs +255 -0
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +453 -0
- package/skills/a2h-utg-static/scripts/orphan_overlay_nav.mjs +89 -0
- package/skills/a2h-utg-static/scripts/phase_plan.mjs +108 -0
- package/skills/a2h-utg-static/scripts/phase_planner.mjs +119 -0
- package/skills/a2h-utg-static/scripts/plaindialog_nav.mjs +411 -0
- package/skills/a2h-utg-static/scripts/preference_nav.mjs +761 -0
- package/skills/a2h-utg-static/scripts/preference_widgets.mjs +142 -0
- package/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
- package/skills/a2h-utg-static/scripts/registry_nav.mjs +288 -0
- package/skills/a2h-utg-static/scripts/run_pipeline.mjs +870 -0
- package/skills/a2h-utg-static/scripts/scope_utils.mjs +430 -0
- package/skills/a2h-utg-static/scripts/screen_merge.mjs +287 -0
- package/skills/a2h-utg-static/scripts/screen_nav.mjs +279 -0
- package/skills/a2h-utg-static/scripts/single_host_nav.mjs +291 -0
- package/skills/a2h-utg-static/scripts/starter_nav.mjs +198 -0
- package/skills/a2h-utg-static/scripts/state_guard.mjs +579 -0
- package/skills/a2h-utg-static/scripts/static_prior.mjs +904 -0
- package/skills/a2h-utg-static/scripts/tests/_zipw.mjs +28 -0
- package/skills/a2h-utg-static/scripts/tests/probe_autoload.mjs +108 -0
- package/skills/a2h-utg-static/scripts/tests/probe_layout_fragments.mjs +90 -0
- package/skills/a2h-utg-static/scripts/tests/probe_unknown_scope.mjs +61 -0
- package/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
- package/skills/a2h-utg-static/scripts/tests/test_activity_alias_launcher.mjs +90 -0
- package/skills/a2h-utg-static/scripts/tests/test_activity_supertype_chain.mjs +106 -0
- package/skills/a2h-utg-static/scripts/tests/test_bottom_sheet_container.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_branch_guard.mjs +19 -0
- package/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
- package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +103 -0
- package/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
- package/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
- package/skills/a2h-utg-static/scripts/tests/test_commit_scope.mjs +113 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_file_private_route.mjs +117 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_nested_graph.mjs +166 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_route_holder_collision.mjs +112 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +284 -0
- package/skills/a2h-utg-static/scripts/tests/test_custom_source_root.mjs +71 -0
- package/skills/a2h-utg-static/scripts/tests/test_defensive_null_guard.mjs +77 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialog_orphan_entries.mjs +99 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialog_page_owner.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialogshow_builder_forms.mjs +96 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialogshow_java_factory.mjs +37 -0
- package/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
- package/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
- package/skills/a2h-utg-static/scripts/tests/test_edge_dedupe_by_gesture.mjs +111 -0
- package/skills/a2h-utg-static/scripts/tests/test_edge_provenance_lint.mjs +70 -0
- package/skills/a2h-utg-static/scripts/tests/test_enclosing_gesture.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_external_surface_roots.mjs +43 -0
- package/skills/a2h-utg-static/scripts/tests/test_find_package_indirect.mjs +67 -0
- package/skills/a2h-utg-static/scripts/tests/test_forwarding_wrapper.mjs +38 -0
- package/skills/a2h-utg-static/scripts/tests/test_fragment_containment.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_fragment_helper_trigger.mjs +92 -0
- package/skills/a2h-utg-static/scripts/tests/test_graph.mjs +55 -0
- package/skills/a2h-utg-static/scripts/tests/test_guard_clause.mjs +86 -0
- package/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +119 -0
- package/skills/a2h-utg-static/scripts/tests/test_host_kind_by_chain.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +293 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
- package/skills/a2h-utg-static/scripts/tests/test_interaction_sites.mjs +272 -0
- package/skills/a2h-utg-static/scripts/tests/test_item_data_instance.mjs +51 -0
- package/skills/a2h-utg-static/scripts/tests/test_kotlin_fn_spans.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
- package/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
- package/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
- package/skills/a2h-utg-static/scripts/tests/test_layout_declared_fragment.mjs +103 -0
- package/skills/a2h-utg-static/scripts/tests/test_listener_call_forms.mjs +79 -0
- package/skills/a2h-utg-static/scripts/tests/test_listener_receiver_binding.mjs +47 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_exported_default.mjs +40 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_filters_modules.mjs +84 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_srcfile.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_namespace.mjs +33 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +44 -0
- package/skills/a2h-utg-static/scripts/tests/test_multiple_entry_contracts.mjs +80 -0
- package/skills/a2h-utg-static/scripts/tests/test_nav_graph_xml.mjs +35 -0
- package/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
- package/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_node_id_collision.mjs +57 -0
- package/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
- package/skills/a2h-utg-static/scripts/tests/test_out_of_scope_and_settings.mjs +72 -0
- package/skills/a2h-utg-static/scripts/tests/test_overload_and_climb.mjs +86 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_page_source.mjs +78 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_position_zero.mjs +65 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_variant_guard.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +107 -0
- package/skills/a2h-utg-static/scripts/tests/test_plain_dialog_nodes.mjs +167 -0
- package/skills/a2h-utg-static/scripts/tests/test_plaindialog_shared_anchor.mjs +117 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_click_nav.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_host_binding.mjs +87 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_nesting.mjs +183 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
- package/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
- package/skills/a2h-utg-static/scripts/tests/test_resolver_tier_parity.mjs +126 -0
- package/skills/a2h-utg-static/scripts/tests/test_result_launcher.mjs +142 -0
- package/skills/a2h-utg-static/scripts/tests/test_review_fixes.mjs +135 -0
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +66 -0
- package/skills/a2h-utg-static/scripts/tests/test_same_name_decl_scope.mjs +236 -0
- package/skills/a2h-utg-static/scripts/tests/test_scope_utils.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
- package/skills/a2h-utg-static/scripts/tests/test_shared_overlay_split.mjs +63 -0
- package/skills/a2h-utg-static/scripts/tests/test_slug_parity.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_starter_node_id.mjs +41 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_arity.mjs +109 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_commented_candidates.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_model_gates.mjs +127 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
- package/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
- package/skills/a2h-utg-static/scripts/tests/test_template_method_layout.mjs +81 -0
- package/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_trigger_id_spelling.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_action_override.mjs +91 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_nl_hint_key.mjs +89 -0
- package/skills/a2h-utg-static/scripts/tests/test_uiless_host_fold.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +231 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_click_refs.mjs +104 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_id_label.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_interactions.mjs +346 -0
- package/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +340 -0
- package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_widget_class_scope.mjs +92 -0
- package/skills/a2h-utg-static/scripts/tests/test_window_nav_kotlin.mjs +158 -0
- package/skills/a2h-utg-static/scripts/tests/test_worklist_parts.mjs +65 -0
- package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1119 -0
- package/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
- package/skills/a2h-utg-static/scripts/utg_html.mjs +721 -0
- package/skills/a2h-utg-static/scripts/view_interactions.mjs +799 -0
- package/skills/a2h-utg-static/scripts/view_widgets.mjs +512 -0
- package/skills/a2h-utg-static/scripts/viewpage_nav.mjs +589 -0
- package/skills/a2h-utg-static/scripts/vm_nav.mjs +422 -0
- package/skills/a2h-utg-static/scripts/window_nav.mjs +240 -0
- package/skills/a2h-utg-static/scripts/worklist_parts.mjs +154 -0
- package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
- package/skills/a2h-utg-static/tools/package.json +3 -0
- package/README.md +0 -445
- package/agents/logic-coder.md +0 -224
- package/agents/logic-context-builder.md +0 -212
- package/agents/scripts/hmos-precheck/backends/arkts.mjs +0 -567
- package/agents/scripts/hmos-precheck/backends/arkts_diff.mjs +0 -159
- package/agents/scripts/hmos-precheck/backends/arkts_project_rules.mjs +0 -398
- package/agents/scripts/hmos-precheck/backends/codelinter.mjs +0 -250
- package/agents/scripts/hmos-precheck/backends/project_integrity.mjs +0 -321
- package/agents/scripts/hmos-precheck/backends/static_precheck.mjs +0 -247
- package/agents/scripts/hmos-precheck/core/config.mjs +0 -184
- package/agents/scripts/hmos-precheck/core/diagnostic_scope.mjs +0 -20
- package/agents/scripts/hmos-precheck/core/process_adapter.mjs +0 -47
- package/agents/scripts/hmos-precheck/core/project_catalog.mjs +0 -50
- package/agents/scripts/hmos-precheck/core/result_projection.mjs +0 -147
- package/agents/scripts/hmos-precheck/core/scope_plan.mjs +0 -131
- package/agents/scripts/hmos-precheck/core/sdk_context.mjs +0 -67
- package/agents/scripts/hmos-precheck/docs/architecture.md +0 -37
- package/agents/scripts/hmos-precheck/docs/performance-optimization.md +0 -28
- package/agents/scripts/hmos-precheck/docs/upstream-reference.json +0 -19
- package/agents/scripts/hmos-precheck/docs/validation.md +0 -50
- package/agents/scripts/hmos-precheck/index.mjs +0 -17
- package/agents/scripts/hmos-precheck/invocation.mjs +0 -231
- package/agents/scripts/hmos-precheck/rules/rule_case_matrix.csv +0 -32
- package/agents/scripts/hmos-precheck/rules/rule_inventory.csv +0 -64
- package/agents/scripts/hmos-precheck/rules/rule_inventory.mjs +0 -59
- package/agents/scripts/hmos-precheck/rules/rule_policy.mjs +0 -54
- package/agents/scripts/platform_query.mjs +0 -626
- package/agents/scripts/platform_query.test.mjs +0 -422
- package/agents/self-test-fixer.md +0 -298
- package/agents/self-tester.md +0 -55
- package/agents/test-case-generation-generator.md +0 -317
- package/agents/test-case-generation-validator.md +0 -231
- package/dist/cli/config-store.js +0 -310
- package/dist/cli/config.js +0 -44
- package/dist/cli/env-vars.js +0 -127
- package/dist/cli/index.js +0 -56
- package/dist/cli/init.js +0 -1187
- package/dist/cli/uninstall.js +0 -427
- package/dist/utils/regex.js +0 -8
- package/env-requirements.json +0 -179
- package/resource/choose_editor.png +0 -0
- package/resource/convert_pipeline_process.svg +0 -103
- package/resource/project_architecture.svg +0 -122
- package/resource/set_environment.png +0 -0
- package/resource/set_multimodel.png +0 -0
- package/resource/set_sdk.png +0 -0
- package/resource/title_dark.png +0 -0
- package/skills/hmos-batch-ui-align/SKILL.md +0 -413
- package/skills/hmos-batch-ui-align/references/conversion-procedure.md +0 -661
- package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +0 -117
- package/skills/hmos-batch-ui-align/references/mvvm/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -648
- package/skills/hmos-batch-ui-align/references/mvvm/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -1183
- package/skills/hmos-batch-ui-align/references/mvvm/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +0 -576
- package/skills/hmos-batch-ui-align/references/mvvm/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +0 -297
- package/skills/hmos-batch-ui-align/references/mvvm/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +0 -395
- package/skills/hmos-batch-ui-align/references/mvvm/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -903
- package/skills/hmos-batch-ui-align/references/mvvm/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -1178
- package/skills/hmos-batch-ui-align/references/mvvm/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -355
- package/skills/hmos-batch-ui-align/references/mvvm//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +0 -11
- package/skills/hmos-batch-ui-align/references/mvvm-v2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +0 -206
- package/skills/hmos-batch-ui-align/references/mvvm-v2/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +0 -750
- package/skills/hmos-batch-ui-align/references/mvvm-v2/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +0 -840
- package/skills/hmos-batch-ui-align/references/mvvm-v2/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -856
- package/skills/hmos-batch-ui-align/references/mvvm-v2/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -294
- package/skills/hmos-batch-ui-align/references/mvvm-v2/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -1220
- package/skills/hmos-batch-ui-align/references/mvvm-v2//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +0 -840
- package/skills/hmos-batch-ui-align/scripts/arkts_static_check.ts +0 -1592
- package/skills/hmos-batch-ui-align/scripts/measure_pack.ts +0 -752
- package/skills/hmos-convert-pipeline/SKILL.md +0 -486
- package/skills/hmos-incremental-ui-align/README.md +0 -251
- package/skills/hmos-incremental-ui-align/SKILL.md +0 -375
- package/skills/hmos-incremental-ui-align/diff_analysis.md +0 -53
- package/skills/hmos-incremental-ui-align/page_align.md +0 -62
- package/skills/hmos-incremental-ui-align/references/Comparison_Template.md +0 -38
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +0 -2089
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +0 -1033
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +0 -106
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/MVVM/346/250/241/345/274/217V1.md +0 -911
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +0 -373
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +0 -158
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +0 -1704
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +0 -1012
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +0 -164
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +0 -83
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +0 -47
- package/skills/hmos-incremental-ui-align/references/State_Model_Template.md +0 -74
- package/skills/hmos-incremental-ui-align/references/UI_Analysis_Template.md +0 -34
- package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +0 -2533
- package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-interaction-mapping-reference.md +0 -555
- package/skills/hmos-incremental-ui-align/scripts/app_feature_verify.ts +0 -937
- package/skills/hmos-incremental-ui-align/scripts/extract_checklist.ts +0 -343
- package/skills/hmos-incremental-ui-align/scripts/navigation-capure.md +0 -76
- package/skills/hmos-incremental-ui-align/scripts/page_capture.ts +0 -977
- package/skills/hmos-incremental-ui-align/scripts/page_capture_burst.ts +0 -188
- package/skills/hmos-integration-test/README.md +0 -341
- package/skills/hmos-integration-test/SKILL.md +0 -464
- package/skills/hmos-integration-test/scripts/report-tool.ts +0 -791
- package/skills/hmos-integration-test/scripts/resolve-metadata-tool.ts +0 -125
- package/skills/hmos-integration-test/scripts/self-test-runner.ts +0 -756
- package/skills/hmos-integration-test/scripts/testcases-tool.ts +0 -239
- package/skills/hmos-resources-convert/SKILL.md +0 -891
- package/skills/hmos-spec-generate/SKILL.md +0 -404
- package/skills/hmos-test-case-generation/README.md +0 -241
- package/skills/hmos-test-case-generation/SKILL.md +0 -324
- package/skills/hmos-test-case-generation/references/contract.md +0 -315
- package/skills/hmos-test-case-generation/references/review-notes-template.md +0 -84
- package/skills/hmos-test-case-generation/references/ui-elements-schema.md +0 -142
- package/skills/hmos-test-case-generation/tools/convert_to_ui_elements.ts +0 -550
- package/skills/hmos-test-case-generation/tools/validate.ts +0 -1312
- package/tools/bfs-crawl/README.md +0 -73
- package/tools/bfs-crawl/android_viewtree_bfs_crawler.ts +0 -1662
- /package/{README.en.md → skills/a2h-arch-generate/scripts/module_create/har/consumer-rules.txt} +0 -0
- /package/skills/{hmos-spec-generate → a2h-spec-generate}/template/REQ.xlsx +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Step 3.5 — Project Resource Dependency Analysis (`--filter`)
|
|
2
|
+
|
|
3
|
+
> Split out of `SKILL.md` (a2h-resource-convert, **full mode**). SKILL.md tells you when to read this file. Read it in full yourself — do not delegate it to a sub-agent or summarize it. Like the rest of the skill, it describes **what the converter implements**: use it to review output and judge edge cases, not as a spec to re-implement.
|
|
4
|
+
|
|
5
|
+
A decoded APK contains the **complete merged resource set** — including every resource from every transitive library dependency. In practice, only 20-50% of these resources are actually referenced by the project's source code, layouts, styles, and Manifest. The rest are unused library resources (e.g., every Material3 color/dimen/style variant, all 50+ language translations of strings the app never uses). Migrating them all wastes disk space, inflates the mapping document, and creates noise for the developer reviewing the output.
|
|
6
|
+
|
|
7
|
+
The dependency analyzer (`scripts/extract_project_resources.ts`) solves this by computing the **resource reference closure** — the set of resources the project genuinely depends on. It runs a five-stage pipeline:
|
|
8
|
+
|
|
9
|
+
| Stage | What it does |
|
|
10
|
+
|-------|-------------|
|
|
11
|
+
| **1. Source scan** | Scans `.kt`/`.java` files for `R.type.name` references (distinguishing `android.R` from app `R`), `@StringRes`/`@DrawableRes` annotations, DataBinding `BR.*` references, and `@{}` expressions |
|
|
12
|
+
| **2. Manifest seeds** | Parses `AndroidManifest.xml` for `application`/`activity` theme, icon, roundIcon, label, banner — these are hard dependencies that must be migrated regardless of code references |
|
|
13
|
+
| **3. Resource indexing** | Indexes all qualifier directories (`values*`, `drawable*`, `layout*`, etc.) across both source `res/` and APK-decoded `res/`, with app-module-first priority ordering |
|
|
14
|
+
| **4. Recursive resolution** | For each seeded resource, recursively follows `@type/name` references in XML files, `<style parent="...">` inheritance chains, and `<item>` values. A global `VisitedSet` prevents infinite loops. Multi-qualifier variants (e.g., `values-zh-rCN/strings.xml` for the same `string/app_name`) are all collected as `sources` of one resource entry |
|
|
15
|
+
| **5. Theme anchoring** | Resolves `?attr/colorPrimary`-style theme attribute references by walking the style inheritance chain from the base theme (inferred from Manifest `android:theme`) through parent styles until a concrete `@type/name` or hardcoded value is found |
|
|
16
|
+
|
|
17
|
+
**Usage:**
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Source code + APK merged resources (recommended — best coverage)
|
|
21
|
+
node ./scripts/extract_project_resources.ts \
|
|
22
|
+
--project <android_project_dir> \
|
|
23
|
+
--apk-res <decoded_output_path>/res \
|
|
24
|
+
--out <work_dir>/resource_deps.json
|
|
25
|
+
|
|
26
|
+
# Source code only (no APK — third-party library resources won't be found)
|
|
27
|
+
node ./scripts/extract_project_resources.ts \
|
|
28
|
+
--project <android_project_dir> \
|
|
29
|
+
--out <work_dir>/resource_deps.json
|
|
30
|
+
|
|
31
|
+
# APK only (no source code — misses dynamic R.* references in code)
|
|
32
|
+
node ./scripts/extract_project_resources.ts \
|
|
33
|
+
--project <decoded_output_path> --apk \
|
|
34
|
+
--out <work_dir>/resource_deps.json
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The output JSON contains:
|
|
38
|
+
- `resources[]`: each resource with `type`, `name`, `kind` (file/value/system/theme), `resolved` status, `sources[]` (all qualifier directories where it appears, including all language variants), `deps[]` (child resource references), and `origin` (which stage/file discovered it)
|
|
39
|
+
- `system_refs[]`: `@android:type/name` references (not migrated, recorded for the report)
|
|
40
|
+
- `theme_refs[]`: `?attr/name` references with their resolution status
|
|
41
|
+
- `stages`: per-stage statistics for debugging coverage
|
|
42
|
+
|
|
43
|
+
**Then pass it to the converter:**
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
node ./scripts/a2h_resource_convert.ts \
|
|
47
|
+
--res <decoded_output_path>/res --harmony <harmony_project_dir> \
|
|
48
|
+
--filter <work_dir>/resource_deps.json \
|
|
49
|
+
--records <work_dir>/records.json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
When `--filter` is provided, the converter builds a `type/name` whitelist from the JSON's `resources[]` array and skips any resource not in the set. The whitelist is a **closed set** — the dependency analyzer already followed all transitive references, so every resource needed to resolve references (e.g., `@color/foo` referenced by a style that is referenced by a layout) is included. Multi-language and multi-qualifier variants of a whitelisted resource are all migrated (the converter processes all `values-*/` and `drawable-*/` directories as usual, just filtered by name).
|
|
53
|
+
|
|
54
|
+
When `--filter` is **not** provided, the converter migrates all resources (original full-mode behavior, unchanged).
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Step 4.2–4.3 — Qualifiers, Mapping Metadata, Value Formats
|
|
2
|
+
|
|
3
|
+
> Split out of `SKILL.md` (a2h-resource-convert, **full mode**). SKILL.md tells you when to read this file. Read it in full yourself — do not delegate it to a sub-agent or summarize it. Like the rest of the skill, it describes **what the converter implements**: use it to review output and judge edge cases, not as a spec to re-implement.
|
|
4
|
+
|
|
5
|
+
#### 4.2 Qualifier Directory Mapping
|
|
6
|
+
|
|
7
|
+
Android uses qualifiers as directory suffixes (e.g., `drawable-hdpi`, `values-ar`). HarmonyOS uses a different qualifier directory naming convention. Convert as follows:
|
|
8
|
+
|
|
9
|
+
**Screen density mapping** (Android DPI names differ from HarmonyOS):
|
|
10
|
+
|
|
11
|
+
| Android Qualifier | Android DPI | HarmonyOS Qualifier | HarmonyOS DPI Range |
|
|
12
|
+
|---|---|---|---|
|
|
13
|
+
| `ldpi` | ~120 | `sdpi` | (0, 120] |
|
|
14
|
+
| `mdpi` | ~160 | `mdpi` | (120, 160] |
|
|
15
|
+
| `hdpi` | ~240 | `ldpi` | (160, 240] |
|
|
16
|
+
| `xhdpi` | ~320 | `xldpi` | (240, 320] |
|
|
17
|
+
| `xxhdpi` | ~480 | `xxldpi` | (320, 480] |
|
|
18
|
+
| `xxxhdpi` | ~640 | `xxxldpi` | (480, 640] |
|
|
19
|
+
| `nodpi` | N/A | `base` | No density qualifier; use base |
|
|
20
|
+
| `anydpi` | N/A | `base` | No density qualifier; use base |
|
|
21
|
+
|
|
22
|
+
**Language/region mapping**:
|
|
23
|
+
- `values-ar` → `ar/element/`
|
|
24
|
+
- `values-zh-rCN` or `values-zh` → `zh_CN/element/` or `zh/element/`
|
|
25
|
+
- `values-en-rUS` → `en_US/element/`
|
|
26
|
+
- `drawable-ar` → `ar/media/`
|
|
27
|
+
|
|
28
|
+
The pattern: strip the base type prefix (e.g., `values-`, `drawable-`), convert the qualifier to HarmonyOS format, then place resources under the appropriate resource group directory (`element/`, `media/`, or `profile/`).
|
|
29
|
+
|
|
30
|
+
**Multi-qualifier directories**: Android directories can combine multiple qualifiers with hyphens (e.g., `mipmap-anydpi-v26`, `drawable-night-v21`). Parse ALL qualifiers individually, map each one, strip unsupported ones, and use whatever valid qualifiers remain. Never reject a directory just because one of its qualifiers is unsupported — strip it and keep going. If all qualifiers are stripped, use `base/`.
|
|
31
|
+
|
|
32
|
+
**Qualifiers to strip** (only these are silently removed):
|
|
33
|
+
- API level `v<N>` (e.g., `v26`, `v21`)
|
|
34
|
+
|
|
35
|
+
**Qualifiers without a HarmonyOS equivalent** (skip entirely):
|
|
36
|
+
- Smallest width `sw<N>dp` (e.g., `sw600dp`)
|
|
37
|
+
- Available width `w<N>dp` (e.g., `w480dp`)
|
|
38
|
+
- Available height `h<N>dp`
|
|
39
|
+
- Screen size (`small`, `normal`, `large`, `xlarge`)
|
|
40
|
+
|
|
41
|
+
These qualifiers have no HarmonyOS mapping. When a directory's only remaining qualifiers (after stripping API level etc.) are from this list, **skip all resources in that directory** and mark them as "unmapped" in the conversion report with reason "Unsupported qualifier: no HarmonyOS equivalent". Do NOT convert them to `base/` or preserve the qualifier as-is — skipping ensures correct conversion output.
|
|
42
|
+
|
|
43
|
+
**Common example**: `mipmap-anydpi-v26` → qualifiers: `anydpi` (→ `base`) + `v26` (→ strip) → target: `base/media/`. The files inside (typically `<adaptive-icon>` XML) should be processed normally by reading their XML content to determine the type — adaptive-icon XML gets converted to layered-image JSON.
|
|
44
|
+
|
|
45
|
+
**HarmonyOS qualifier directory naming rules**:
|
|
46
|
+
- Language and region are joined by underscore: `zh_CN`, `en_US`
|
|
47
|
+
- Multiple qualifier types are separated by hyphens: `zh_CN-dark-ldpi`
|
|
48
|
+
- Order: MCC_MNC-language_script_country/region-orientation-device-colormode-density
|
|
49
|
+
|
|
50
|
+
**Orientation mapping**:
|
|
51
|
+
- `land` → `horizontal`
|
|
52
|
+
- `port` → `vertical`
|
|
53
|
+
|
|
54
|
+
**Night mode mapping**:
|
|
55
|
+
- `night` → `dark`
|
|
56
|
+
- `notnight` → `light`
|
|
57
|
+
|
|
58
|
+
**Handling values with non-mappable qualifiers** (e.g., `values-sw600dp`, `values-w480dp`, `values-w600dp`):
|
|
59
|
+
These directories contain value resources qualified by screen-size constraints that HarmonyOS does not support. **Skip all resources in these directories** and mark them as "unmapped" in the conversion report with reason "Unsupported qualifier: `sw600dp` / `w480dp` / etc. — no HarmonyOS equivalent". Do NOT convert them to `base/element/` or preserve the qualifier as-is.
|
|
60
|
+
|
|
61
|
+
#### 4.2.1 Record Resource Mapping Metadata
|
|
62
|
+
|
|
63
|
+
As each Android resource is processed, maintain two parallel data sets for the final mapping document:
|
|
64
|
+
|
|
65
|
+
1. **Android resource inventory records** — one record per Android resource item
|
|
66
|
+
2. **Android ↔ HarmonyOS mapping records** — one record per conversion or non-conversion outcome
|
|
67
|
+
|
|
68
|
+
Use the rules in `references/resource-mapping-rules.md`.
|
|
69
|
+
|
|
70
|
+
**Minimum fields for each Android resource inventory record:**
|
|
71
|
+
- Android resource path
|
|
72
|
+
- Android resource name
|
|
73
|
+
- Function description
|
|
74
|
+
- Screen(s)
|
|
75
|
+
- Source category
|
|
76
|
+
- Type category
|
|
77
|
+
- Status
|
|
78
|
+
- Notes / evidence
|
|
79
|
+
|
|
80
|
+
**Minimum fields for each mapping record:**
|
|
81
|
+
- Android resource path
|
|
82
|
+
- Android screen(s)
|
|
83
|
+
- Android source category
|
|
84
|
+
- Android type category
|
|
85
|
+
- HarmonyOS target path (or `N/A`)
|
|
86
|
+
- Mapping kind
|
|
87
|
+
- Notes
|
|
88
|
+
|
|
89
|
+
**Recording granularity:**
|
|
90
|
+
- File resources (`drawable`, `mipmap`, `xml`, `font`, `raw`) → record at file level
|
|
91
|
+
- `values/*.xml` resources → record at entry level using `file_path#tag/name` notation, e.g. `app/src/main/res/values/strings.xml#string/app_name`
|
|
92
|
+
- One-to-many conversions (for example adaptive icon XML producing layered-image JSON plus generated PNG assets) → record each target as its own mapping row
|
|
93
|
+
- Many-to-one conversions (for example multiple Android value entries ending up in one HarmonyOS JSON file) → still record each Android source entry separately
|
|
94
|
+
- Unmappable resources, system resources, third-party-library-only resources, and runtime remote resources must also be recorded; never silently omit them from the mapping metadata
|
|
95
|
+
#### 4.3 Value Format Conversions
|
|
96
|
+
|
|
97
|
+
When converting `values/*.xml` to HarmonyOS JSON format:
|
|
98
|
+
|
|
99
|
+
**Colors**:
|
|
100
|
+
- Android `#RRGGBB` → HarmonyOS `#ffRRGGBB` (prepend `ff` for full opacity)
|
|
101
|
+
- Android `#AARRGGBB` → HarmonyOS `#AARRGGBB` (already in correct format, HarmonyOS uses same order)
|
|
102
|
+
- Android `#RGB` → expand to `#ffRRGGBB`
|
|
103
|
+
- Android `#ARGB` → expand to `#AARRGGBB`
|
|
104
|
+
|
|
105
|
+
**Dimensions** (for `dimens.xml` → `float.json`):
|
|
106
|
+
- `dp` → `vp` (virtual pixels, similar concept)
|
|
107
|
+
- `sp` → `fp` (font pixels)
|
|
108
|
+
- `px` → keep as `px`
|
|
109
|
+
- Plain numbers → append `vp`
|
|
110
|
+
|
|
111
|
+
**Strings**:
|
|
112
|
+
- XML entities (`&`, `<`, `>`, `"`, `'`) → decoded characters
|
|
113
|
+
- `\n`, `\t` → preserved
|
|
114
|
+
- CDATA sections → extract text content
|
|
115
|
+
- String format placeholders (`%1$s`, `%2$d`) → preserved (HarmonyOS uses same format)
|
|
116
|
+
|
|
117
|
+
**Booleans**:
|
|
118
|
+
- `"true"` / `"false"` → `true` / `false` (as JSON booleans)
|
|
119
|
+
|
|
120
|
+
**Integers**:
|
|
121
|
+
- Integer values from `integers.xml` MUST be stored as JSON number type, NOT as JSON strings
|
|
122
|
+
- `<integer name="max_lines">3</integer>` → `{"name": "max_lines", "value": 3}` (JSON number `3`, NOT string `"3"`)
|
|
123
|
+
- Integer-array item values must also be JSON numbers: `{"value": 100}` not `{"value": "100"}`
|
|
124
|
+
- If the source value contains non-numeric content (e.g., a resource reference), resolve the reference first, then convert the resolved value to a JSON number
|
|
125
|
+
- If a value cannot be parsed as a number after resolution, log a warning and use `0` as a fallback
|
|
126
|
+
|
|
127
|
+
**Plurals**:
|
|
128
|
+
- Android quantities: `zero`, `one`, `two`, `few`, `many`, `other`
|
|
129
|
+
- HarmonyOS quantities: `zero`, `one`, `two`, `few`, `many`, `other` (same set)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
#### Converter guarantees
|
|
133
|
+
|
|
134
|
+
The following are **behaviours the converter already guarantees**. They are listed so you know what to expect and what to check in its output — not as instructions to implement:
|
|
135
|
+
|
|
136
|
+
- Android XML is parsed with namespaces, comments, and CDATA handled; attributes are matched by local name, so any `android:` prefix works.
|
|
137
|
+
- Every entry of every `<resources>` element is extracted; multiple value files contributing the same type are merged into one HarmonyOS JSON file.
|
|
138
|
+
- Resource names are preserved exactly as Android spells them — they are identifiers.
|
|
139
|
+
- An element JSON that already exists in the HarmonyOS project is **merged**, not overwritten: existing entries keep their order and position, DevEco scaffold defaults are replaced when a real resource has the same name, and the replacement is recorded.
|
|
140
|
+
- Android's `"…"` quoting syntax is consumed as syntax, so leading and trailing whitespace it protects is preserved in the value. Do not "clean up" such strings; Android renders that whitespace.
|
|
141
|
+
- Decoded fixed-point dimensions are rounded to 3 decimals, so values like `6.500001dip` do not carry float noise into the output.
|
|
142
|
+
- When several Android sources map to one HarmonyOS target (`drawable/x.xml` and `drawable-anydpi/x.xml` both land in `base/media/`), the source with **fewer qualifiers** wins and the loser is recorded as an `unmappable` mapping row — never silently dropped.
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# Step 4.1–4.1.4 — Resource Type Mapping and Special Assets
|
|
2
|
+
|
|
3
|
+
> Split out of `SKILL.md` (a2h-resource-convert, **full mode**). SKILL.md tells you when to read this file. Read it in full yourself — do not delegate it to a sub-agent or summarize it. Like the rest of the skill, it describes **what the converter implements**: use it to review output and judge edge cases, not as a spec to re-implement.
|
|
4
|
+
|
|
5
|
+
#### 4.1 Resource Type Mapping
|
|
6
|
+
|
|
7
|
+
| Android Resource Dir | HarmonyOS Target | Notes |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `drawable/` (images: png, jpg, webp, gif) | `base/media/` | Direct file copy |
|
|
10
|
+
| `drawable/` (nine-patch: `*.9.png`) | `base/media/` as `*_9.png` | Rename `.9.png` → `_9.png`; HarmonyOS does not allow `.` in resource filenames except for the final extension separator. Nine-patch stretching behavior is lost — log in report. |
|
|
11
|
+
| `drawable/` (Android vector drawables: `<vector>`) | `base/media/` as `.svg` | Convert VectorDrawable XML to SVG format |
|
|
12
|
+
| `drawable/` (shape drawables: `<shape>`) | `base/media/` as `.svg` | Convert shape XML to SVG |
|
|
13
|
+
| `drawable/` (layer-list drawables: `<layer-list>`) | `base/media/` as `.svg` | Convert layered drawable to SVG with nested elements |
|
|
14
|
+
| `drawable/` (selector/state-list drawables) | `base/media/` (default state as `.svg`) | Extract default state item and convert to SVG; log state variants in report |
|
|
15
|
+
| `drawable/` (ripple, animated-vector, transition) | No direct equivalent | Log as unmappable; note in report |
|
|
16
|
+
| `mipmap/` (PNG/WEBP images) | `base/media/` | App launcher icons — direct copy; rename `.9.png` → `_9.png` if nine-patch |
|
|
17
|
+
| `mipmap/` (adaptive-icon XML: `<adaptive-icon>`) | `base/media/` as `xxx_layered_image.json` | Convert to layered-image JSON (see below) |
|
|
18
|
+
| `mipmap/` (vector XML: `<vector>`) | `base/media/` as `.svg` | Convert VectorDrawable to SVG |
|
|
19
|
+
| `values/strings.xml` | `base/element/string.json` | XML → JSON conversion |
|
|
20
|
+
| `values/colors.xml` | `base/element/color.json` | XML → JSON; fix color format |
|
|
21
|
+
| `values/dimens.xml` | `base/element/float.json` | XML → JSON; convert units |
|
|
22
|
+
| `values/integers.xml` | `base/element/integer.json` | XML → JSON |
|
|
23
|
+
| `values/bools.xml` | `base/element/boolean.json` | XML → JSON |
|
|
24
|
+
| `values/arrays.xml` (string-array) | `base/element/strarray.json` | XML → JSON |
|
|
25
|
+
| `values/arrays.xml` (integer-array) | `base/element/intarray.json` | XML → JSON |
|
|
26
|
+
| `values/plurals.xml` | `base/element/plural.json` | XML → JSON |
|
|
27
|
+
| `values/styles.xml` | No direct equivalent | Log in report |
|
|
28
|
+
| `values/attrs.xml` | No direct equivalent | Log in report |
|
|
29
|
+
| `raw/` (non-Lottie) | `rawfile/` | Direct file copy |
|
|
30
|
+
| `raw/` (Lottie JSON: `v`+`fr`+`ip`+`op`+`layers` signature) | `rawfile/lottie/<normalized>.json` | Identify by JSON structure signature; normalize filename to lowercase `[a-z0-9_]`. See `references/lottie-conversion-rules.md`. |
|
|
31
|
+
| `assets/` (Lottie JSON: `v`+`fr`+`ip`+`op`+`layers` signature) | `rawfile/lottie/<normalized>.json` | Same identification and normalization rules as `raw/` Lottie. `assets/` is a passthrough dir in APK decoding — scan `<decoded_output_path>/assets/` recursively. |
|
|
32
|
+
| `assets/apps/__UNI__*/www/static/**` (hybrid shell business assets) | `base/media/` | **uni-app / HBuilder / Cordova shells keep every business image here, and `res/drawable*` holds only SDK chrome.** Detect, convert, and index per Step 4.1.4. Never route these to `unmappable`. |
|
|
33
|
+
| `assets/` (other non-Lottie, non-hybrid-asset files) | Passthrough | Not part of this skill's default conversion scope — reserved for future rules. Record inventory rows with `mapping_kind = unmappable`. |
|
|
34
|
+
| `font/` | `rawfile/fonts/` | Copy fonts to rawfile |
|
|
35
|
+
| `xml/` | `base/profile/` | Only config-like XML; rename to .json if possible |
|
|
36
|
+
| `anim/`, `animator/` | No direct equivalent | Log in report |
|
|
37
|
+
| `layout/` | No direct equivalent | ArkUI uses declarative UI; log in report |
|
|
38
|
+
| `menu/` | No direct equivalent | Log in report |
|
|
39
|
+
| `color/` (color state lists) | No direct equivalent | Log in report |
|
|
40
|
+
|
|
41
|
+
#### 4.1.1 Adaptive Icon → Layered-Image JSON Conversion
|
|
42
|
+
|
|
43
|
+
Android adaptive-icon XML files (root element `<adaptive-icon>`, commonly found in `mipmap-anydpi-v26/`) are converted to HarmonyOS layered-image JSON files.
|
|
44
|
+
|
|
45
|
+
**Conversion rules:**
|
|
46
|
+
1. Parse the `<adaptive-icon>` XML and extract the `<background>` and `<foreground>` elements
|
|
47
|
+
2. Only `background` and `foreground` are valid keys in the output JSON. Skip `monochrome` (and any other elements) **from the JSON output** — HarmonyOS has no layered-image equivalent. However, the resource *referenced* by `monochrome` (e.g., `@drawable/ic_launcher_monochrome`) is a real asset that should still be converted as a normal drawable.
|
|
48
|
+
3. Convert Android resource references to HarmonyOS format:
|
|
49
|
+
- `@drawable/xxx` → `$media:xxx`
|
|
50
|
+
- `@mipmap/xxx` → `$media:xxx`
|
|
51
|
+
- `@color/xxx` → **generate a solid color PNG** (see rule 4 below)
|
|
52
|
+
4. **Critical — color background handling**: HarmonyOS `layered-image` only accepts `$media:xxx` references. It does NOT support `$color:xxx`. When the `background` (or `foreground`) references a color (`@color/xxx`):
|
|
53
|
+
a. Look up the **resolved hex value** of `@color/xxx` from the resource source's `res/values*/colors.xml`. Follow reference chains if the color itself references another color — keep resolving until you reach a concrete hex value.
|
|
54
|
+
b. Generate a solid-color layer **matching the other layer's format and size** — the HarmonyOS launcher composites each layer at its intrinsic size and never stretches a small one, so a 108×108 PNG behind a 1024 SVG foreground shows up as a corner triangle. Other layer is a bitmap → `<color_name>_bg.png` at that bitmap's pixel size; a vector → `<color_name>_bg.svg` (a `<rect>` of that vector's width/height); both colors → PNG at 1024×1024.
|
|
55
|
+
c. Place it in the icon's qualifier `media/` dir (e.g., `base/media/md_orange_700_bg.svg`). `$media:` names are module-global, so when another icon needs the same color name with a different value/size/format, name it `<color_name>_bg_<rrggbb>_<w>x<h>` rather than reusing a mismatched file; never both `.svg` and `.png` under one name (on re-run, the stale other-extension file from an earlier conversion is deleted).
|
|
56
|
+
d. Reference it as `$media:<color_name>_bg` in the layered-image JSON.
|
|
57
|
+
e. **If the color cannot be resolved** (e.g., it comes from a library and we're using source `res/`), log it as an unsatisfied dependency in the report and use a placeholder reference.
|
|
58
|
+
5. **Critical — inline layer content**: a layer can carry its artwork as a *child element* instead of an `android:drawable` reference (`<foreground><vector …/></foreground>`, common for shortcut icons). Convert that inline drawable to its own media file named `<icon_name>_<layer>.svg`, and reference it as `$media:<icon_name>_<layer>`. Never emit the layered-image JSON with the layer simply absent: the icon then renders with no artwork, and no existence check catches it because the JSON is present and valid. A `<bitmap android:src="@drawable/x"/>` wrapper is just a reference — point at `$media:x`. An inline drawable with no static SVG equivalent becomes an `unmappable` mapping row with the reason stated.
|
|
59
|
+
6. **Critical — vector layer safe zone**: Android shows only the center 72dp of a 108dp layer; HarmonyOS `layered-image` shows the whole layer, so the logo looks shrunken with a band of background around it. When a layer is a `<vector>` (a reference resolved in its own `drawable*`/`mipmap*` dirs, an inline `<vector>`, or a `<bitmap src>` wrapping one), emit `<icon_name>_<layer>_layer.svg` with `viewBox` = center 2/3 of the viewport (`vw/6 vh/6 2vw/3 2vh/3`) and reference that. The original drawable is still converted unchanged for page use. If the other layer is a bitmap, skip the crop (a bitmap can't be cropped by viewBox) and size the vector to the bitmap's pixels instead; warn that the icon will render slightly smaller than on Android. **Known limitation:** bitmap foreground + solid background is the most common launcher-icon shape, so this hits most apps; the report summary lists these icons under *Known limitation* — surface it to the user.
|
|
60
|
+
7. Output filename: `<original_name>_layered_image.json` (e.g., `ic_launcher.xml` → `ic_launcher_layered_image.json`)
|
|
61
|
+
8. Store in the target `media/` directory (typically `base/media/`)
|
|
62
|
+
|
|
63
|
+
**Example:**
|
|
64
|
+
```xml
|
|
65
|
+
<!-- mipmap-anydpi-v26/ic_launcher.xml -->
|
|
66
|
+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
67
|
+
<background android:drawable="@color/md_orange_700" />
|
|
68
|
+
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
|
|
69
|
+
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
|
|
70
|
+
</adaptive-icon>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Suppose `@color/md_orange_700` resolves to `#F57C00` and `ic_launcher_foreground` is a 432×432 bitmap. Generate `base/media/md_orange_700_bg.png` (432×432 solid `#F57C00`). Then convert to `base/media/ic_launcher_layered_image.json` (a vector foreground would instead yield `md_orange_700_bg.svg` + `$media:ic_launcher_foreground_layer`):
|
|
74
|
+
```json
|
|
75
|
+
{
|
|
76
|
+
"layered-image": {
|
|
77
|
+
"background": "$media:md_orange_700_bg",
|
|
78
|
+
"foreground": "$media:ic_launcher_foreground"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
#### 4.1.2 Lottie Animation JSON Migration
|
|
84
|
+
|
|
85
|
+
Android projects that use `com.airbnb.android:lottie` ship their animations as JSON in `assets/` or `res/raw/`. On HarmonyOS these are consumed by `@ohos/lottie` (installed with `ohpm install @ohos/lottie`) which loads them from `rawfile/` at runtime. This skill migrates the JSON asset and records the host-screen binding — it does NOT generate ArkTS code.
|
|
86
|
+
|
|
87
|
+
**Identification (always required — do not rely on `.json` extension):**
|
|
88
|
+
|
|
89
|
+
A file is a Lottie animation JSON if its parsed root object contains ALL of these fields: `v`, `fr`, `ip`, `op`, `w`, `h`, and `layers` (array). Non-Lottie JSON in `raw/` continues to follow the normal raw-file rule.
|
|
90
|
+
|
|
91
|
+
**Sources scanned:**
|
|
92
|
+
|
|
93
|
+
- `<decoded_output_path>/assets/` (recursive) — assets is a passthrough directory in APK decoding
|
|
94
|
+
- `<decoded_output_path>/res/raw/`
|
|
95
|
+
- Source-fallback equivalents: every module's `src/*/assets/` and `src/*/res/raw/`, including flavor source sets
|
|
96
|
+
|
|
97
|
+
**Target:**
|
|
98
|
+
|
|
99
|
+
`<ui_module>/src/main/resources/rawfile/lottie/<normalized>.json`. The load path recorded for the developer (used later as `lottie.loadAnimation({ path: ... })`) is `lottie/<normalized>.json`, relative to `rawfile/`, no leading slash.
|
|
100
|
+
|
|
101
|
+
**Filename normalization:** lowercase; replace `[^a-z0-9_]` in the base name with `_`; collapse consecutive `_`; trim leading/trailing `_`; if starts with a digit, prefix `lottie_`. Examples:
|
|
102
|
+
|
|
103
|
+
| Original | Normalized |
|
|
104
|
+
|---|---|
|
|
105
|
+
| `WaveAnim.json` | `waveanim.json` |
|
|
106
|
+
| `Loading Spinner 1.json` | `loading_spinner_1.json` |
|
|
107
|
+
| `MenuArrow.json` | `menuarrow.json` |
|
|
108
|
+
| `01-intro.json` | `lottie_01_intro.json` |
|
|
109
|
+
|
|
110
|
+
**Filename collision:** if `assets/logo.json` and `res/raw/logo.json` both target `lottie/logo.json`, disambiguate as `lottie/assets_logo.json` and `lottie/raw_logo.json`. Record both in `notes`.
|
|
111
|
+
|
|
112
|
+
**Reference extraction (in addition to the generic `@type/name` scan of `references/dependency-analysis-rules.md`):**
|
|
113
|
+
|
|
114
|
+
XML attribute patterns (namespace-agnostic — match by local name):
|
|
115
|
+
|
|
116
|
+
| Attribute | Points at | Migration action |
|
|
117
|
+
|---|---|---|
|
|
118
|
+
| `lottie_fileName="Xxx.json"` | `assets/Xxx.json` | Migrate the JSON. Attribute the JSON to the Activity/Fragment inflating the layout XML. |
|
|
119
|
+
| `lottie_rawRes="@raw/name"` | `res/raw/name.json` | Same. |
|
|
120
|
+
| `lottie_url="https://..."` | Runtime URL | No local file — record with `mapping_kind = remote resource (no local target)` and `source_category = 运行时远程资源`. |
|
|
121
|
+
| `lottie_fallbackRes="@drawable/xxx"` | Fallback drawable | Not a Lottie asset; use the normal drawable rules, but link it to the Lottie row in `notes`. |
|
|
122
|
+
|
|
123
|
+
Code patterns (grep across `.kt` / `.java`):
|
|
124
|
+
|
|
125
|
+
- Literal string arg to `LottieCompositionFactory.fromAsset(...)` / `.fromRawRes(...)` / `.fromJsonInputStream(...)` / `.fromUrl(...)` or `LottieAnimationView.setAnimation(...)`.
|
|
126
|
+
- `AssetManager.list(...)` results filtered by `.json` and dispatched to a factory method — this is the "dynamic picker" pattern. In this case attribute every listed JSON to the **detail screen** that the picker's click handler navigates to (via `startActivity`), not the picker itself (e.g. a `<X>PickerFragment` list → `<Y>Activity` detail screen).
|
|
127
|
+
- Data classes carrying `assetName` / `fileUri` / `url` consumed by a factory method — chase to the actual factory call site to classify local vs remote.
|
|
128
|
+
|
|
129
|
+
**Host-screen binding (required for every Lottie row):**
|
|
130
|
+
|
|
131
|
+
Attribute the JSON to the Activity/Fragment that plays it. Evidence sources, in priority order:
|
|
132
|
+
|
|
133
|
+
1. XML host layout → the Activity/Fragment that inflates it (`setContentView(R.layout.<name>)`, `AppCompatActivity(R.layout.<name>)` constructor form, `Fragment(R.layout.<name>)`, ViewBinding/DataBinding class name derived from the layout).
|
|
134
|
+
2. Code-loaded (literal): the enclosing class. If it is a ViewModel/repository, walk one hop up to its observing Fragment/Activity.
|
|
135
|
+
3. Code-loaded (dynamic picker): the navigation target of the picker's click handler, not the picker itself.
|
|
136
|
+
4. Manifest / Application / splash: `Global` or `Launcher`.
|
|
137
|
+
5. No evidence: `Unknown` (explain in notes).
|
|
138
|
+
|
|
139
|
+
Then propose a HarmonyOS page name: strip the `Activity` / `Fragment` suffix and append `Page` (e.g., `<X>Activity` → `<X>Page`). Collapse Activity+Fragment pairs of the same screen to one page. `Launcher` → `EntryAbility`, `Global` → `App`, `Unknown` → `Unknown`. Mark this as a suggestion in notes: "HarmonyOS page name inferred from Android host; verify against actual ArkUI pages".
|
|
140
|
+
|
|
141
|
+
**Embedded image assets in a Lottie JSON:** if the JSON declares an `images` array pointing at external files, copy each referenced image to `rawfile/lottie/images/<relative_path>` preserving the JSON's `imagePath` layout, and record each image as its own inventory + mapping row.
|
|
142
|
+
|
|
143
|
+
**Read `references/lottie-conversion-rules.md` for the full, detailed rules** (identification thresholds, edge cases like dead assets and invalid JSON, mapping-record schema).
|
|
144
|
+
|
|
145
|
+
#### 4.1.3 Code-Defined Vector Icons (Jetpack Compose)
|
|
146
|
+
|
|
147
|
+
Jetpack Compose applications take most of their iconography from `androidx.compose.material:material-icons-core` / `-extended`. Those icons are Kotlin-generated `ImageVector` objects compiled into `classes*.dex`. They are **not** in `res/drawable*/` and **not** in `resources.arsc`, so they are absent from the decoded `res/` tree that every other step of this skill reads.
|
|
148
|
+
|
|
149
|
+
This blind spot fails silently and must be handled explicitly: Step 5.3's layout/menu scan finds nothing (a Compose app has no layout XML) and Step 6.8's `$r('app.media.…')` cross-check finds nothing (the HarmonyOS shell has no such references yet), so both gates report success while the migrated page renders no icons at all. On a typical Compose screen most icons are code-defined, and without this step they produce no output and no warning.
|
|
150
|
+
|
|
151
|
+
**Run this analysis when any of these hold** — otherwise record `Code-defined vector icons: none detected` and skip:
|
|
152
|
+
- `build.gradle` / `build.gradle.kts` / `gradle/libs.versions.toml` declares `material-icons-core` or `material-icons-extended`
|
|
153
|
+
- any `.kt` file imports `androidx.compose.material.icons.`
|
|
154
|
+
- `classes*.dex` contains icon name strings (the checker below detects this on its own)
|
|
155
|
+
|
|
156
|
+
Three questions need three different sources — do not try to answer them all from one place:
|
|
157
|
+
|
|
158
|
+
| Question | Source | Needs `android_project_dir`? |
|
|
159
|
+
|---|---|---|
|
|
160
|
+
| **Which** icons the app uses | `classes*.dex` string pool | No |
|
|
161
|
+
| **What** each looks like | Pinned upstream Material Icons snapshot | No |
|
|
162
|
+
| **Where** each is used (screen attribution) | Android source `.kt` files | **Yes** |
|
|
163
|
+
|
|
164
|
+
The dex is authoritative for scope — it includes icons used by library code and excludes icons R8 removed as dead code — but it cannot give attribution, because R8 obfuscates the icon package and leaves only a flat, sorted string pool. Attribution comes from the one readable line in the Kotlin source (`icon = Icons.Outlined.GetApp`). `android_project_dir` is already a required input, so this adds no new dependency.
|
|
165
|
+
|
|
166
|
+
Run the bundled helper:
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
node ./scripts/code_vector_icons.ts --dex <decoded_output_path> \
|
|
170
|
+
--android-src <android_project_dir> \
|
|
171
|
+
--out <harmony_project_dir>/<ui_module>/src/main/resources/base/media \
|
|
172
|
+
--snapshot <material_icon_snapshot_dir> \
|
|
173
|
+
--json <harmony_project_dir>/code_vector_icons.json
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**`--android-src` is required, not decorative, and a debug APK needs `--attributed-only`.** The dex string pool is a *superset* of what the app uses: it contains whatever the icon library shipped. R8 narrows it to the real set, but `isMinifyEnabled` is typically only on for `release`, so a debug APK's dex lists the entire catalogue. `--android-src` is what lets the script attribute names to actual source references and tell the two apart; without `--attributed-only` on an unshrunk dex it would fetch and write every catalogue entry (thousands of files, tens of minutes, and a polluted `base/media` that must then be cleaned by hand). The script detects this and refuses to fetch, naming the two ways out.
|
|
177
|
+
|
|
178
|
+
`--fetch` is the normal mode: it pulls artwork from a pinned upstream commit — never a moving branch — and therefore needs network access to `raw.githubusercontent.com`. Use `--snapshot <dir>` instead only on network-isolated machines. Exit code 1 means some references could not be resolved; those MUST be recorded as `unmappable` rows, never dropped.
|
|
179
|
+
|
|
180
|
+
Targets are named `base/media/ic_<material_name>_<style>.svg`. The style suffix is mandatory: in the classic Material Icons set `Outlined.X` is sometimes different artwork from `Filled.X` (`bookmark`) and sometimes byte-identical (`favorite`), so naming by bare `ic_<name>.svg` silently drops one of the pair. `AutoMirrored` is **not** part of the filename — HarmonyOS qualifier directories have no right-to-left dimension, so mirroring is handled at the ArkUI component level and recorded in `notes`.
|
|
181
|
+
|
|
182
|
+
**Read `references/code-vector-icon-rules.md` for the full rules** (extraction patterns, the exact name transform, the `symbols`-category trap in the upstream index, SVG post-processing, collision handling with `res/`-derived media, and the fallback table for unresolvable or app-defined `ImageVector`s).
|
|
183
|
+
|
|
184
|
+
#### 4.1.4 Hybrid-Shell Business Assets (uni-app / HBuilder / Cordova)
|
|
185
|
+
|
|
186
|
+
A hybrid shell app is a single-WebView Android project whose UI is a bundled web app. The
|
|
187
|
+
Android resource tree is then **entirely misleading as a source of iconography**: `res/drawable*`
|
|
188
|
+
contains only the native chrome (appcompat ActionBar/search/checkbox art, the DCloud runtime's
|
|
189
|
+
ad slots and actionsheets, one-login SDK screens), while every business icon, illustration and
|
|
190
|
+
banner lives in the web bundle under `assets/`, or on a CDN referenced from the bundle's JS.
|
|
191
|
+
|
|
192
|
+
**Detection.** Run this step when any of these hold:
|
|
193
|
+
|
|
194
|
+
- `<decoded_output_path>/assets/apps/__UNI__*/www/` exists (uni-app / HBuilder)
|
|
195
|
+
- `<decoded_output_path>/assets/www/` with an `index.html` exists (Cordova / generic WebView shell)
|
|
196
|
+
- `AndroidManifest.xml` declares `io.dcloud.*` / `com.dcloud.*` components
|
|
197
|
+
|
|
198
|
+
Otherwise record `Hybrid-shell assets: none detected` in the report and skip. Do not infer a
|
|
199
|
+
hybrid shell from the presence of a `WebView` alone.
|
|
200
|
+
|
|
201
|
+
**Bundle root** (`<www>`): the directory found above. For uni-app, read `<www>/manifest.json` and
|
|
202
|
+
record its `name` / `appid` in the report metadata so the bundle is identifiable.
|
|
203
|
+
|
|
204
|
+
**Part A — packaged assets (convert them).**
|
|
205
|
+
|
|
206
|
+
Copy every image under `<www>/static/**` (`.png .jpg .jpeg .webp .gif .svg`) into
|
|
207
|
+
`<ui_module>/src/main/resources/base/media/`. There are no density qualifier dirs in a web bundle,
|
|
208
|
+
so everything lands in `base/`.
|
|
209
|
+
|
|
210
|
+
Name normalization — the web path must collapse to a legal, collision-free HarmonyOS resource name:
|
|
211
|
+
lowercase; take the path relative to `<www>/static/`; drop the extension; replace `[^a-z0-9_]`
|
|
212
|
+
(including `/` and `-`) with `_`; collapse consecutive `_`; trim leading/trailing `_`; prefix
|
|
213
|
+
`img_` if it starts with a digit.
|
|
214
|
+
|
|
215
|
+
| Web path | Resource name |
|
|
216
|
+
|---|---|
|
|
217
|
+
| `static/images/logo.png` | `images_logo` |
|
|
218
|
+
| `static/images/common/icon-arrow-right.png` | `images_common_icon_arrow_right` |
|
|
219
|
+
| `static/images/map/water/icon-zr.png` | `images_map_water_icon_zr` |
|
|
220
|
+
| `static/images/2x/bg.png` | `images_2x_bg` |
|
|
221
|
+
|
|
222
|
+
**Deduplicate by content hash, not by name.** A hybrid bundle's image may be byte-identical to one
|
|
223
|
+
already converted from `res/` (e.g. `www/static/images/logo.png` and
|
|
224
|
+
`res/drawable/ic_app_logo.png` with the same MD5). When the hash matches an
|
|
225
|
+
already-written media file, do not write a second copy — record the row pointing at the existing
|
|
226
|
+
target and note the alias in `notes`, so the mapping document can answer both names.
|
|
227
|
+
|
|
228
|
+
**Part B — CDN-hosted assets (index them; never invent them).**
|
|
229
|
+
|
|
230
|
+
Extract every web asset reference from the bundle's JS and CSS, then diff against Part A's file
|
|
231
|
+
list. Scan `<www>/*.js` (notably `app-service.js`, `app-config-service.js`), `<www>/app.css`, and
|
|
232
|
+
`<www>/**/*.css` for:
|
|
233
|
+
|
|
234
|
+
- string literals matching `static/[A-Za-z0-9/_.-]+\.(png|jpg|jpeg|webp|gif|svg)`
|
|
235
|
+
- CSS `url(...)` targets
|
|
236
|
+
- absolute `https?://…` image URLs
|
|
237
|
+
|
|
238
|
+
Resolve the base URL for relative references: find the bundle's resource-base constant — in
|
|
239
|
+
uni-app it is an `appResources` property, e.g. `appResources:"https://cdn.example.com/dist/app2"`
|
|
240
|
+
— and record it. A reference built as `appResources + "/static/images/x.png"` is then a fully
|
|
241
|
+
determined URL.
|
|
242
|
+
|
|
243
|
+
Every reference **not** present in Part A's file list is a real gap. Record each with
|
|
244
|
+
`mapping_kind = remote resource (no local target)`, `source_category = 运行时远程资源`,
|
|
245
|
+
`HarmonyOS Target = N/A`, and the resolved absolute URL in `notes`.
|
|
246
|
+
|
|
247
|
+
**Report sections** (both required whenever this step runs; see Step 7's template):
|
|
248
|
+
`Hybrid-Shell Packaged Assets` and `Hybrid-Shell Remote Assets`.
|
|
249
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# Step 5 — Resource Reference Resolution and Dependency Verification
|
|
2
|
+
|
|
3
|
+
> Split out of `SKILL.md` (a2h-resource-convert, **full mode**). SKILL.md tells you when to read this file. Read it in full yourself — do not delegate it to a sub-agent or summarize it. Like the rest of the skill, it describes **what the converter implements**: use it to review output and judge edge cases, not as a spec to re-implement.
|
|
4
|
+
|
|
5
|
+
Android resources often reference other resources using `@type/name` syntax (e.g., `@color/primary`, `@drawable/icon`). Dependency analysis runs regardless of whether resources came from a decoded APK or source `res/` — the difference is that source-based conversion may have more unresolvable references because library resources are absent.
|
|
6
|
+
|
|
7
|
+
Read `references/dependency-analysis-rules.md` for the complete dependency extraction patterns. Also use `references/resource-mapping-rules.md` during this step to infer resource function, screen ownership, source category, and type category for the mapping document.
|
|
8
|
+
|
|
9
|
+
For Lottie references (`lottie_fileName`, `lottie_rawRes`, `lottie_url`, and factory-method calls in Kotlin/Java code), follow the additional extraction and host-screen-binding rules in `references/lottie-conversion-rules.md`. Each detected Lottie asset must be attributed to the Activity/Fragment that plays it and paired with a suggested HarmonyOS page name; these facts are consumed by the report and mapping document in Step 7 and Step 8.
|
|
10
|
+
|
|
11
|
+
Dependency analysis here is `@type/name`-based and therefore covers only resources that exist in `res/`. It does **not** see the code-defined Compose icons handled in Step 4.1.3 — their references live in compiled code, not in XML. Carry the inventory produced by `scripts/code_vector_icons.ts` forward into Step 6, Step 7, and Step 8 alongside the `res/`-derived records; do not expect this step to rediscover them.
|
|
12
|
+
|
|
13
|
+
#### 5.1 Build a Resource Value Lookup Table
|
|
14
|
+
|
|
15
|
+
Before resolving references, build a complete lookup table from whichever resource source is being used. This table maps every resource name to its concrete value:
|
|
16
|
+
|
|
17
|
+
- **Value resources** (`colors.xml`, `dimens.xml`, `strings.xml`, etc.): parse all `values*/*.xml` files and build `type → name → value` mappings across all qualifier directories
|
|
18
|
+
- **File resources** (`drawable/`, `mipmap/`): record `type → name → file_path` for each image or XML drawable
|
|
19
|
+
- **Mapping support metadata**: build and maintain side tables for Android screen candidates, resource usage sites, module ownership, and likely library provenance so these can be attached to inventory and mapping rows later
|
|
20
|
+
|
|
21
|
+
When working from source `res/`, this table will be **incomplete** — it won't contain resources defined in library dependencies. That's expected. The dependency analysis in Step 5.3 will identify these gaps.
|
|
22
|
+
|
|
23
|
+
#### 5.2 Resolve References to True Values
|
|
24
|
+
|
|
25
|
+
Scan all converted HarmonyOS resource files and replace resource references with their resolved concrete values:
|
|
26
|
+
|
|
27
|
+
**In element JSON files** (`color.json`, `float.json`, `string.json`, etc.):
|
|
28
|
+
- If a value field contains a HarmonyOS reference like `$color:name`, `$float:name`, `$string:name`, etc., look up the referenced resource in the lookup table
|
|
29
|
+
- Replace the reference with the actual resolved value
|
|
30
|
+
- Follow reference chains (resource A → resource B → concrete value) up to 5 levels deep to handle transitive references
|
|
31
|
+
- If a reference cannot be resolved (e.g., it points to a library resource not in source `res/`, or to a theme attribute `?attr/name`), keep the reference as-is and log it in the report
|
|
32
|
+
|
|
33
|
+
**Android system resource references** (`@android:color/*`, `@android:dimen/*`, `@android:string/*`, `@android:integer/*`):
|
|
34
|
+
|
|
35
|
+
These reference Android framework built-in resources that do NOT exist in HarmonyOS. They MUST be resolved to concrete values — never leave `@android:` references in the output. Use the following built-in lookup table for `@android:color/*`:
|
|
36
|
+
|
|
37
|
+
| Android System Color | Hex Value |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `@android:color/white` | `#ffffffff` |
|
|
40
|
+
| `@android:color/black` | `#ff000000` |
|
|
41
|
+
| `@android:color/transparent` | `#00000000` |
|
|
42
|
+
| `@android:color/background_dark` | `#ff000000` |
|
|
43
|
+
| `@android:color/background_light` | `#ffffffff` |
|
|
44
|
+
| `@android:color/darker_gray` | `#ffaaaaaa` |
|
|
45
|
+
| `@android:color/holo_blue_bright` | `#ff00ddff` |
|
|
46
|
+
| `@android:color/holo_blue_dark` | `#ff0099cc` |
|
|
47
|
+
| `@android:color/holo_blue_light` | `#ff33b5e5` |
|
|
48
|
+
| `@android:color/holo_green_dark` | `#ff669900` |
|
|
49
|
+
| `@android:color/holo_green_light` | `#ff99cc00` |
|
|
50
|
+
| `@android:color/holo_orange_dark` | `#ffff8800` |
|
|
51
|
+
| `@android:color/holo_orange_light` | `#ffffbb33` |
|
|
52
|
+
| `@android:color/holo_purple` | `#ffaa66cc` |
|
|
53
|
+
| `@android:color/holo_red_dark` | `#ffcc0000` |
|
|
54
|
+
| `@android:color/holo_red_light` | `#ffff4444` |
|
|
55
|
+
| `@android:color/primary_text_dark` | `#ffffffff` |
|
|
56
|
+
| `@android:color/primary_text_light` | `#de000000` |
|
|
57
|
+
| `@android:color/secondary_text_dark` | `#b3ffffff` |
|
|
58
|
+
| `@android:color/secondary_text_light` | `#8a000000` |
|
|
59
|
+
| `@android:color/tab_indicator_text` | `#ff808080` |
|
|
60
|
+
| `@android:color/tertiary_text_dark` | `#80ffffff` |
|
|
61
|
+
| `@android:color/tertiary_text_light` | `#54000000` |
|
|
62
|
+
| `@android:color/widget_edittext_dark` | `#ff000000` |
|
|
63
|
+
|
|
64
|
+
For `@android:color/*` values not in this table: if converting from a decoded APK, look up the color in the decoded framework resources (`res/values/colors.xml` from the APK). Otherwise, log a warning and use `#ff000000` (black) as a safe fallback.
|
|
65
|
+
|
|
66
|
+
For `@android:dimen/*` system dimensions: use the following common values:
|
|
67
|
+
|
|
68
|
+
| Android System Dimen | Value |
|
|
69
|
+
|---|---|
|
|
70
|
+
| `@android:dimen/app_icon_size` | `48vp` |
|
|
71
|
+
| `@android:dimen/thumbnail_width` | `96vp` |
|
|
72
|
+
| `@android:dimen/thumbnail_height` | `96vp` |
|
|
73
|
+
| `@android:dimen/dialog_min_width_major` | `65%` |
|
|
74
|
+
| `@android:dimen/dialog_min_width_minor` | `95%` |
|
|
75
|
+
| `@android:dimen/notification_large_icon_width` | `64vp` |
|
|
76
|
+
| `@android:dimen/notification_large_icon_height` | `64vp` |
|
|
77
|
+
|
|
78
|
+
For any other `@android:type/*` not covered by the tables above, log a warning in the report and substitute a reasonable default value for the type (colors → `#ff000000`, dimens → `0vp`, integers → `0`, strings → `""`).
|
|
79
|
+
|
|
80
|
+
**Example — system color resolution:**
|
|
81
|
+
```json
|
|
82
|
+
// Before resolution:
|
|
83
|
+
{"name": "bg_default", "value": "@android:color/white"}
|
|
84
|
+
|
|
85
|
+
// After resolution:
|
|
86
|
+
{"name": "bg_default", "value": "#ffffffff"}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Example — color reference resolution:**
|
|
90
|
+
```json
|
|
91
|
+
// Before resolution:
|
|
92
|
+
{"name": "primary_light", "value": "$color:primary"}
|
|
93
|
+
|
|
94
|
+
// After resolution (primary resolves to #ff6200EE):
|
|
95
|
+
{"name": "primary_light", "value": "#ff6200EE"}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Example — dimension reference resolution:**
|
|
99
|
+
```json
|
|
100
|
+
// Before resolution:
|
|
101
|
+
{"name": "margin_double", "value": "$float:margin_base"}
|
|
102
|
+
|
|
103
|
+
// After resolution (margin_base resolves to "16vp"):
|
|
104
|
+
{"name": "margin_double", "value": "16vp"}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**In SVG files** (converted XML drawables):
|
|
108
|
+
- If a fill or stroke color was a resource reference, resolve it to the actual hex color during SVG generation
|
|
109
|
+
- If a dimension was a resource reference, resolve it to the actual numeric value
|
|
110
|
+
|
|
111
|
+
**In layered-image JSON files**:
|
|
112
|
+
- `@drawable/xxx` and `@mipmap/xxx` references → keep as `$media:xxx` (these are file references, not value references — the files themselves are converted)
|
|
113
|
+
- `@color/xxx` references → resolve to hex and generate a solid-color layer matching the other layer (as described in section 4.1.1)
|
|
114
|
+
|
|
115
|
+
**Fallback strategy for unresolvable references in element JSON files:**
|
|
116
|
+
|
|
117
|
+
After completing the reference resolution pass, scan all element JSON files for any remaining unresolved `$type:xxx` references. These MUST be replaced with concrete fallback values — leaving unresolved references in the output will cause HarmonyOS compilation errors.
|
|
118
|
+
|
|
119
|
+
- When the resource source is a **decoded APK** (which contains the complete merged resource set), unresolved references indicate a bug in the resolution logic. Still apply fallbacks, but log prominently as errors.
|
|
120
|
+
- When the resource source is **source `res/`**, unresolved references are expected for library resources. Apply fallbacks and log as warnings.
|
|
121
|
+
|
|
122
|
+
**Fallback values by type:**
|
|
123
|
+
|
|
124
|
+
| Reference Type | Fallback Value | Notes |
|
|
125
|
+
|---|---|---|
|
|
126
|
+
| `$color:xxx` | `#ff000000` (black) | Safe default for any missing color |
|
|
127
|
+
| `$float:xxx` | `0vp` | Zero-dimension fallback |
|
|
128
|
+
| `$string:xxx` | `""` (empty string) | Empty string fallback |
|
|
129
|
+
| `$integer:xxx` | `0` | Zero integer fallback |
|
|
130
|
+
| `$boolean:xxx` | `false` | False boolean fallback |
|
|
131
|
+
|
|
132
|
+
**Resolution for cross-file references:**
|
|
133
|
+
- When building the lookup table (Step 5.1), ensure ALL qualifier directories are scanned, not just `base/`. Color references may chain across qualifier variants (e.g., `base/` defines `primary`, `dark/` overrides it). Use the `base/` variant as the canonical value for resolution.
|
|
134
|
+
- When a reference exists in a non-base qualifier but not in `base/`, include it in the lookup table with its qualifier noted.
|
|
135
|
+
|
|
136
|
+
**Example — fallback applied:**
|
|
137
|
+
```json
|
|
138
|
+
// Before fallback (unresolvable library color):
|
|
139
|
+
{"name": "design_fab_stroke_top_outer_color", "value": "$color:design_fab_stroke_top_outer_color"}
|
|
140
|
+
|
|
141
|
+
// After fallback:
|
|
142
|
+
{"name": "design_fab_stroke_top_outer_color", "value": "#ff000000"}
|
|
143
|
+
// Report logs: "WARNING: Unresolved $color:design_fab_stroke_top_outer_color — replaced with fallback #ff000000. Likely source: com.google.android.material:material"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
#### 5.3 Verify All Dependencies Are Satisfied
|
|
147
|
+
|
|
148
|
+
After resolution, scan all converted resources for any remaining unresolved references:
|
|
149
|
+
|
|
150
|
+
1. **Converted resource dependencies**: check that every `$media:xxx`, `$color:xxx`, `$float:xxx`, etc. reference in converted files points to an existing resource in the HarmonyOS output
|
|
151
|
+
2. **Layout and menu file dependencies**: scan all `layout*/` and `menu/` files from the resource source for `@type/name` references. Even though layouts and menus won't be migrated as-is (ArkUI uses declarative UI), the resources they reference — strings, colors, drawables, dimensions — must exist in the converted output so the developer has everything needed when rebuilding the UI
|
|
152
|
+
3. Mark each dependency as **satisfied** or **unsatisfied**
|
|
153
|
+
4. **When using source `res/`**: unsatisfied dependencies are expected — they likely come from library resources. Parse `build.gradle` / `build.gradle.kts` to identify declared library dependencies (e.g., AndroidX, Material Components, third-party libraries). In the report, correlate unsatisfied references with likely library sources where possible (e.g., `@color/material_xxx` likely comes from Material Components library)
|
|
154
|
+
5. Use the dependency graph and reference locations to infer screen ownership for resources whenever possible. If a resource is referenced from multiple screens, record all of them or mark it `Common`; if it is app-wide (launcher icon, theme resource, app name), mark it `Global` or `Launcher` as appropriate.
|