@buaa_smat/hometrans 26.0.1 → 26.0.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/README.md +14 -7
- package/agents/code-reviewer.md +25 -138
- package/dist/cli/index.js +4 -1
- package/dist/cli/init.js +131 -26
- package/dist/cli/uninstall.js +5 -5
- package/dist/platform/language.js +77 -0
- package/env-requirements.json +30 -5
- package/i18n/FILE-NAMES.md +9 -0
- package/i18n/agents/code-reviewer.md +364 -0
- package/i18n/agents/model-render-worker.md +38 -0
- package/i18n/agents/specgen-worker.md +18 -0
- package/i18n/commands/hometrans.md +17 -0
- package/i18n/skills/a2h-app-migrate/SKILL.md +198 -0
- package/i18n/skills/a2h-app-migrate/references/config.example.json +28 -0
- package/i18n/skills/a2h-app-migrate/references/specs.example.json +19 -0
- package/i18n/skills/a2h-app-migrate/references/stage-map.md +50 -0
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +1760 -0
- package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +114 -0
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1588 -0
- package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +657 -0
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +541 -0
- package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +131 -0
- package/i18n/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
- package/i18n/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/i18n/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
- package/i18n/skills/a2h-app-migrate/test/test_env_requirements.mjs +698 -0
- package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +89 -0
- package/i18n/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
- package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/i18n/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +219 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +196 -0
- package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +488 -0
- package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +146 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +161 -0
- package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/i18n/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/i18n/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +171 -0
- package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/i18n/skills/a2h-arch-generate/SKILL.md +375 -0
- package/i18n/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
- package/i18n/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
- package/i18n/skills/a2h-arch-generate/references/arkts-mvvm-v2.md +1407 -0
- package/i18n/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
- package/i18n/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
- package/i18n/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
- package/i18n/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
- package/i18n/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
- package/i18n/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
- package/i18n/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
- package/i18n/skills/a2h-arch-generate/references/homegraph-workflow.md +120 -0
- package/i18n/skills/a2h-arch-generate/references/source-baseline.md +93 -0
- package/i18n/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +360 -0
- package/i18n/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +798 -0
- package/i18n/skills/a2h-arch-generate/scripts/lib/contract_terms.mjs +40 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/generate.mjs +639 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1261 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
- package/i18n/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +851 -0
- package/i18n/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +982 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +9 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +192 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +303 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/design/move_spec_technical_reference.mjs +162 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +298 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +587 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/test_check_units.ts +149 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +352 -0
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +323 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +31 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/build.md +13 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +17 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +27 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +80 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +22 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +87 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/state-v1.md +29 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/state.md +14 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +57 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +29 -0
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +705 -0
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +417 -0
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +139 -0
- package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2549 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +560 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +148 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +220 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +28 -0
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +216 -0
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +203 -0
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +210 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +2005 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +1748 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/detect_paradigm.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1787 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/gen_rule_docs.mjs +100 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1836 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/image_probe.mjs +405 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1406 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1226 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1220 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +412 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/cli.ts +134 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +18 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +173 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +629 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +125 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +67 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/block_comment_break.ts +64 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +134 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_call_sites.ts +242 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +136 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/canvas.ts +255 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +109 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/column_shrink.ts +154 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +39 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/container_align.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_root_builtin.ts +69 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_route.ts +114 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/fixed_size_safe_area.ts +103 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/format_string.ts +157 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +115 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +551 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +138 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +374 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/offset_in_scroll.ts +163 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/orphan_component.ts +119 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +119 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/page_reachability.ts +94 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/path_commands_vp.ts +50 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +80 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +137 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/r_template_string.ts +37 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/request_permission.ts +98 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/resource_as_string.ts +68 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +97 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/safe_area_clipping.ts +168 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sdk_api.ts +195 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shared_chrome.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_blur.ts +95 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shell_content.ts +198 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/stack_occluding.ts +118 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_decorators.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_name_shadows.ts +93 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/string_quote_leak.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/surface_stroke.ts +50 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +123 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/track_getter.ts +132 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +53 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +67 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +427 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +560 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +324 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +325 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +48 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +387 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +470 -0
- package/i18n/skills/a2h-coldstart-smoke-gate/SKILL.md +59 -0
- package/i18n/skills/a2h-dashboard-render/SKILL.md +73 -0
- package/i18n/skills/a2h-dashboard-render/references/artifact-contract.jsonc +117 -0
- package/i18n/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
- package/i18n/skills/a2h-dashboard-render/references/dashboard-guide.md +91 -0
- package/i18n/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
- package/i18n/skills/a2h-dashboard-render/scripts/dashboard.mjs +3245 -0
- package/i18n/skills/a2h-dashboard-render/scripts/device_capture.mjs +2048 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/i18n/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +154 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/i18n/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/i18n/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
- package/i18n/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/i18n/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
- package/i18n/skills/a2h-fix-build-errors/SKILL.md +304 -0
- package/i18n/skills/a2h-fix-build-errors/references/arkts-strict-patterns.md +219 -0
- package/i18n/skills/a2h-fix-build-errors/references/rdb-entity-pattern.md +131 -0
- package/i18n/skills/a2h-module-semantic-docs/SKILL.md +227 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/i18n/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/i18n/skills/a2h-page-specgen/SKILL.md +136 -0
- package/i18n/skills/a2h-page-specgen/references/body-language.md +177 -0
- package/i18n/skills/a2h-page-specgen/references/gates.md +262 -0
- package/i18n/skills/a2h-page-specgen/references/page-inventory.md +173 -0
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +207 -0
- package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +1504 -0
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +1528 -0
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +576 -0
- package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +138 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +262 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +176 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +248 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +506 -0
- package/i18n/skills/a2h-page-specgen/scripts/render.mjs +299 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +616 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +234 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1166 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +74 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +8 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +7 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +8 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +758 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +54 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +271 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +54 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +171 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +301 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +83 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +139 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +774 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1011 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +77 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +419 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +323 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +546 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +511 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +701 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1765 -0
- package/i18n/skills/a2h-resource-convert/SKILL.md +367 -0
- package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +335 -0
- package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +251 -0
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +219 -0
- package/i18n/skills/a2h-resource-convert/references/resource-mapping-rules.md +493 -0
- package/i18n/skills/a2h-resource-convert/references/step4-resource-types.md +249 -0
- package/i18n/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +2532 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +278 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +260 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +163 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +44 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +589 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +506 -0
- package/i18n/skills/a2h-spec-generate/SKILL.md +375 -0
- package/i18n/skills/a2h-spec-generate/references/batch-mode.md +215 -0
- package/i18n/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/i18n/skills/a2h-spec-generate/references/fusion-task-contract.md +184 -0
- package/i18n/skills/a2h-spec-generate/references/input-formats.md +27 -0
- package/i18n/skills/a2h-spec-generate/references/library-evidence.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/method-discipline.md +64 -0
- package/i18n/skills/a2h-spec-generate/references/optional-gates.json +45 -0
- package/i18n/skills/a2h-spec-generate/references/recall-guide.md +84 -0
- package/i18n/skills/a2h-spec-generate/references/recall-terse.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
- package/i18n/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
- package/i18n/skills/a2h-spec-generate/references/review-checklist.md +22 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
- package/i18n/skills/a2h-spec-generate/references/spec-samples.md +65 -0
- package/i18n/skills/a2h-spec-generate/references/specs.schema.json +85 -0
- package/i18n/skills/a2h-spec-generate/references/synthesis-rules.md +145 -0
- package/i18n/skills/a2h-spec-generate/references/transfer-file.md +5 -0
- package/i18n/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
- package/i18n/skills/a2h-spec-generate/references/worker-rules.md +129 -0
- package/i18n/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +702 -0
- package/i18n/skills/a2h-spec-generate/scripts/check_spec.ts +515 -0
- package/i18n/skills/a2h-spec-generate/scripts/collect-specs.mjs +727 -0
- package/i18n/skills/a2h-spec-generate/scripts/feature-stem.mjs +151 -0
- package/i18n/skills/a2h-spec-generate/scripts/parse_requirements.ts +515 -0
- package/i18n/skills/a2h-spec-generate/scripts/prepare-facts.mjs +313 -0
- package/i18n/skills/a2h-spec-generate/scripts/publish-specs.mjs +354 -0
- package/i18n/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +669 -0
- package/i18n/skills/a2h-spec-generate/scripts/render-tasks.mjs +385 -0
- package/i18n/skills/a2h-spec-generate/scripts/report.mjs +136 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1265 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1057 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +565 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +544 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +317 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +707 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +436 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +608 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +650 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +178 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +912 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +279 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +163 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +256 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +576 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +340 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1857 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +262 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +722 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/i18n/skills/a2h-spec-generate/template/REQ.txt +22 -0
- package/i18n/skills/a2h-spec-generate/template/REQ.xlsx +0 -0
- package/i18n/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +847 -0
- package/i18n/skills/a2h-spec-generate/test/check-spec.test.ts +415 -0
- package/i18n/skills/a2h-spec-generate/test/collect-specs.test.mjs +808 -0
- package/i18n/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/i18n/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/i18n/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
- package/i18n/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
- package/i18n/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/i18n/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
- package/i18n/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/i18n/skills/a2h-utg-explorer/SKILL.md +120 -0
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +279 -0
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +918 -0
- package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +446 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hint_check.mjs +147 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hint_source.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_b.mjs +550 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +380 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +492 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +199 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1412 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +2037 -0
- package/i18n/skills/a2h-utg-static/SKILL.md +368 -0
- package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
- package/i18n/skills/a2h-utg-static/references/view-interactions.md +215 -0
- package/i18n/skills/a2h-utg-static/scripts/assemble.mjs +2120 -0
- package/i18n/skills/a2h-utg-static/scripts/audit.mjs +268 -0
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +609 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_body_text.mjs +250 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_titles.mjs +374 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
- package/i18n/skills/a2h-utg-static/scripts/fragment_nav.mjs +1137 -0
- package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +660 -0
- package/i18n/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
- package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +913 -0
- package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +517 -0
- package/i18n/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
- package/i18n/skills/a2h-utg-static/scripts/static_prior.mjs +956 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +108 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +289 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_fresh_branch_guard.mjs +49 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +136 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +293 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +368 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +44 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_off_path.mjs +67 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +61 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_data_table.mjs +340 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_relative_url.mjs +125 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +231 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +340 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1351 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
- package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
- package/package.json +13 -160
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +1 -1
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +1 -1
- package/skills/a2h-app-migrate/SKILL.md +17 -6
- package/skills/a2h-app-migrate/references/config.example.json +1 -0
- package/skills/a2h-app-migrate/references/stage-map.md +3 -1
- package/skills/a2h-app-migrate/references/workflow.yaml +138 -47
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +1 -2
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +105 -39
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +7 -8
- package/skills/a2h-app-migrate/scripts/ledger.mjs +17 -5
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +43 -7
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +127 -41
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +2 -0
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +38 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +131 -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 +98 -0
- package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/skills/a2h-app-migrate/test/test_devecocli_docs_preflight.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
- package/skills/a2h-app-migrate/test/test_entry_guards.mjs +102 -0
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +698 -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_i18n_engine_mirror.mjs +51 -0
- package/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -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 +111 -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 +219 -0
- package/skills/a2h-app-migrate/test/test_resume_summary.mjs +196 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +488 -0
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_acceptance.mjs +94 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +147 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +146 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +161 -0
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +344 -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_user_facing_progress.mjs +43 -0
- package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +41 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +178 -0
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
- package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/skills/a2h-arch-generate/SKILL.md +1 -1
- package/skills/a2h-arch-generate/references/database-schema-recovery.md +2 -2
- package/skills/a2h-arch-generate/references/harmony-project-inspection.md +8 -8
- package/skills/a2h-arch-generate/references/homegraph-workflow.md +15 -6
- package/skills/a2h-arch-generate/references/module-evidence-subagent.md +2 -2
- package/skills/a2h-arch-generate/references/source-baseline.md +2 -2
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +35 -46
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +33 -40
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +2 -3
- 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 +1260 -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_module_templates.mjs +70 -0
- package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +138 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +2 -5
- package/skills/a2h-arkts-logic-coder/SKILL.md +21 -2
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +1 -0
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +62 -0
- package/skills/a2h-arkts-logic-coder/references/spec-design.md +4 -0
- package/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +22 -25
- package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +583 -0
- package/skills/a2h-arkts-logic-coder/test/golden/inspect_happy.json +20 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
- package/skills/a2h-arkts-logic-coder/test/golden/resolve_cases.json +36 -0
- package/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
- package/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
- package/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
- package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +352 -0
- package/skills/a2h-batch-ui-align/SKILL.md +6 -4
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +1 -1
- package/skills/a2h-batch-ui-align/references/cards/resources.md +4 -0
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +22 -3
- package/skills/a2h-batch-ui-align/references/checker-rules.md +66 -3
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +45 -8
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -5
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +2 -2
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +4 -2
- package/skills/a2h-batch-ui-align/references/step5-convert.md +7 -5
- package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +6 -7
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +84 -7
- package/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +229 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1 -2
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +4 -5
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +88 -26
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +305 -12
- package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +231 -54
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +8 -9
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +18 -5
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +103 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +231 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +1 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +14 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +8 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +3 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +84 -19
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +11 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +5 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +66 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +119 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +81 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +123 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +2 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +6 -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_a11y.test.mjs +598 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -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 +507 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +427 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -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_rule_smoke.test.mjs +235 -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_scroll_padding_raster.test.mjs +262 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_safearea.test.mjs +742 -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_theme.test.mjs +86 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +567 -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/detect_paradigm.test.mjs +260 -0
- package/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +244 -0
- package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +420 -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 +742 -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 +363 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1628 -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/image_probe.test.mjs +243 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +324 -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 +325 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +297 -0
- package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +48 -0
- package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +387 -0
- package/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -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 +250 -0
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +12 -14
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +29 -30
- 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 +168 -0
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +203 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -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 +411 -0
- package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -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-page-specgen/SKILL.md +136 -0
- package/skills/a2h-page-specgen/references/body-language.md +177 -0
- package/skills/a2h-page-specgen/references/evidence.md +70 -0
- package/skills/a2h-page-specgen/references/execution-model.md +255 -0
- package/skills/a2h-page-specgen/references/footprint-and-grouping.md +250 -0
- package/skills/a2h-page-specgen/references/gates.md +255 -0
- package/skills/a2h-page-specgen/references/page-inventory.md +173 -0
- package/skills/a2h-page-specgen/references/spec-template.md +207 -0
- package/skills/a2h-page-specgen/scripts/dispatch.mjs +209 -0
- package/skills/a2h-page-specgen/scripts/facts-build.mjs +1504 -0
- package/skills/a2h-page-specgen/scripts/finalize.mjs +422 -0
- package/skills/a2h-page-specgen/scripts/footprint.mjs +1528 -0
- package/skills/a2h-page-specgen/scripts/gate.mjs +558 -0
- package/skills/a2h-page-specgen/scripts/interactions.mjs +137 -0
- package/skills/a2h-page-specgen/scripts/inventory.mjs +269 -0
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +255 -0
- package/skills/a2h-page-specgen/scripts/lib/deps-source.mjs +399 -0
- package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +137 -0
- package/skills/a2h-page-specgen/scripts/lib/footprint-roles.mjs +278 -0
- package/skills/a2h-page-specgen/scripts/lib/fsx.mjs +79 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +175 -0
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +355 -0
- package/skills/a2h-page-specgen/scripts/lib/prose.mjs +234 -0
- package/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +391 -0
- package/skills/a2h-page-specgen/scripts/lib/symbols.mjs +125 -0
- package/skills/a2h-page-specgen/scripts/lib/utg-io.mjs +110 -0
- package/skills/a2h-page-specgen/scripts/lib/waker-event-store.mjs +658 -0
- package/skills/a2h-page-specgen/scripts/prepare.mjs +492 -0
- package/skills/a2h-page-specgen/scripts/render.mjs +317 -0
- package/skills/a2h-page-specgen/scripts/report.mjs +7 -0
- package/skills/a2h-page-specgen/scripts/submission.mjs +532 -0
- package/skills/a2h-page-specgen/scripts/submit.mjs +79 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/README.md +77 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +590 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/cases.example.json +57 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +207 -0
- package/skills/a2h-page-specgen/scripts/test/dispatch.test.mjs +258 -0
- package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1164 -0
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +74 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Api.kt +20 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/BothAnnotations.kt +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Cache.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Comments.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Mmkv.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Models.kt +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Pair.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Prefs.kt +9 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Room.kt +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Sample.kt +43 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Templates.kt +34 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Timeouts.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/androidTest/Helper.kt +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/build.gradle.kts +16 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/en.js.txt +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/libs.versions.toml +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/package.json +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values/strings.xml +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-land/strings.xml +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-night/strings.xml +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-v21/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/test/Legacy.kt +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/weather.proto +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/AppPreferences.kt +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/SettingsViewModel.kt +16 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-dao/src/UserDao.kt +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/base/strings.xml +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/fil/strings.xml +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/arrays.xml +25 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/strings.xml +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/xml/prefs.xml +27 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Api.java +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Datastore.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Settings.java +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/forecast.js +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/store.js +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/BasePreferences.kt +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/Screen.kt +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/UiPreferences.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-retrofit/src/AuthAPI.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/AndroidManifest.xml +20 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/feature/auth/navigation/ScreenRoute.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/pages.json +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/components/Widget.vue +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/detail/detail.vue +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/index/index.vue +24 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/store/userStore.js +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/uni_modules/uview-ui/components/u-thing.js +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp.mkdb.mjs +144 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +94 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/MainFragment.java +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyListeners.java +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/PlainActivity.java +3 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/fold-chain/utg.json +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/utg.json +34 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +758 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-roles.test.mjs +172 -0
- package/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
- package/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +54 -0
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +222 -0
- package/skills/a2h-page-specgen/scripts/test/helpers.mjs +54 -0
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +171 -0
- package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +301 -0
- package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +45 -0
- package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +139 -0
- package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +774 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +464 -0
- package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1011 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +120 -0
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +68 -0
- package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +390 -0
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +167 -0
- package/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +323 -0
- package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +546 -0
- package/skills/a2h-page-specgen/scripts/test/render.test.mjs +503 -0
- package/skills/a2h-page-specgen/scripts/test/source-text.test.mjs +181 -0
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +701 -0
- package/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
- package/skills/a2h-page-specgen/scripts/test/waker-event-store.test.mjs +1365 -0
- package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1765 -0
- package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +1979 -0
- package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +313 -0
- package/skills/a2h-page-specgen/scripts/waker.mjs +1234 -0
- package/skills/a2h-page-specgen/scripts/watchdog.mjs +298 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +49 -51
- 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-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +79 -78
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +51 -12
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +24 -6
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +3 -2
- package/skills/a2h-spec-design-pipeline/references/initialization.md +15 -4
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +82 -41
- package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +61 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +19 -10
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +267 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +61 -8
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +62 -13
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +8 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +8 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-cn.md +55 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-en.md +60 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/HttpExtraDataEmptyStringCheck.js +488 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +11 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +17 -0
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +12 -38
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +40 -5
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +18 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +74 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +2 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +128 -5
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +98 -35
- package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +218 -37
- package/skills/a2h-spec-design-pipeline/scripts/lib/shared_classes.ts +113 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/shared_docs.ts +202 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/wiring.ts +58 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +6 -7
- package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +3 -0
- package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +348 -0
- package/skills/a2h-spec-design-pipeline/scripts/scan_shared.ts +642 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +15 -5
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +7 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +104 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +24 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +394 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +24 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +14 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +163 -5
- package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +15 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +14 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +350 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_scan_shared.ts +996 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_classes.ts +80 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_docs.ts +205 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +121 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_e2e.ts +85 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_validate_shared_manifest.ts +720 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_wiring.ts +40 -0
- package/skills/a2h-spec-design-pipeline/scripts/validate_shared_manifest.ts +566 -0
- package/skills/a2h-spec-generate/SKILL.md +87 -21
- package/skills/a2h-spec-generate/references/batch-mode.md +78 -17
- package/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +7 -0
- package/skills/a2h-spec-generate/references/review-checklist.md +1 -0
- package/skills/a2h-spec-generate/references/synthesis-rules.md +4 -2
- package/skills/a2h-spec-generate/references/worker-rules.md +6 -3
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +4 -5
- package/skills/a2h-spec-generate/scripts/check_spec.ts +145 -14
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +261 -19
- package/skills/a2h-spec-generate/scripts/dispatch-watch.mjs +1168 -0
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +25 -46
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +26 -27
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +3 -6
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +31 -32
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +2 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +15 -26
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +102 -81
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +39 -19
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +12 -13
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +35 -196
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +3 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +22 -96
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +3 -4
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +1 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +74 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +51 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +42 -111
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +1 -20
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +3 -4
- 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/fixtures/fusion-run.ts +243 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/zip.ts +63 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +650 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-seed.test.ts +195 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +347 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1948 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-library-evidence.test.ts +239 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +277 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +844 -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 +1253 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -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 +411 -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 +300 -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/test/zip.test.ts +61 -0
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +879 -0
- package/skills/a2h-spec-generate/test/check-spec.test.ts +430 -0
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +811 -0
- package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
- package/skills/a2h-spec-generate/test/dispatch-watch.test.mjs +606 -0
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +230 -0
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -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/prepare-facts.test.mjs +41 -0
- package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +182 -0
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
- package/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
- package/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/skills/a2h-utg-explorer/references/architecture.md +4 -0
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +64 -80
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +1 -2
- package/skills/a2h-utg-explorer/scripts/recover.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +5 -3
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +244 -0
- package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
- package/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -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 +231 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +160 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_locale_identity.test.mjs +77 -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 +137 -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/fresh_state_plan.test.mjs +78 -0
- package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
- package/skills/a2h-utg-explorer/scripts/tests/holds_without_data_parity.test.mjs +26 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +492 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +199 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_failure.test.mjs +40 -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 +327 -0
- package/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
- package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
- package/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -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 +280 -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 +454 -0
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -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/snapshot_integrity.test.mjs +142 -0
- package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/skills/a2h-utg-explorer/scripts/tests/string_tables_twin_ties.test.mjs +83 -0
- package/skills/a2h-utg-explorer/scripts/tests/tar_fixture.mjs +12 -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/adapters.mjs +13 -3
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +107 -65
- package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +155 -0
- package/skills/a2h-utg-static/scripts/assemble.mjs +28 -3
- package/skills/a2h-utg-static/scripts/click_paths.mjs +19 -20
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +102 -2
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +2 -3
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +2 -3
- package/skills/a2h-utg-static/scripts/presenter_nav.mjs +1 -2
- package/skills/a2h-utg-static/scripts/route_interceptor.mjs +21 -7
- package/skills/a2h-utg-static/scripts/static_prior.mjs +26 -29
- package/skills/a2h-utg-static/scripts/tests/test_activity_gates.mjs +84 -0
- package/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +38 -0
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +29 -1
- package/skills/a2h-app-migrate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-app-migrate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-arch-generate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-arch-generate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.d.mts +0 -5
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.mjs +0 -54
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +0 -38
- package/skills/a2h-batch-ui-align/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-batch-ui-align/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-dashboard-render/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-dashboard-render/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-resource-convert/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-resource-convert/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-design-pipeline/scripts/test_i18n_term.ts +0 -70
- package/skills/a2h-spec-generate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-generate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.mjs +0 -54
- package/skills/a2h-utg-explorer/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-utg-explorer/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-utg-static/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-utg-static/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-utg-static/scripts/tests/test_i18n_term.mjs +0 -155
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language selection for `ht init`.
|
|
3
|
+
*
|
|
4
|
+
* The bundled `skills/`, `agents/` and `commands/` are the Chinese originals. An
|
|
5
|
+
* English install stages a copy of them, applies the English copies under `i18n/`
|
|
6
|
+
* and hands the result to the regular installer, so composition, platform
|
|
7
|
+
* overlays and validation stay identical for both languages.
|
|
8
|
+
*/
|
|
9
|
+
import fs from 'node:fs/promises';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
import { pathExists } from './compose.js';
|
|
12
|
+
export const INSTALL_LANGUAGES = ['zh', 'en'];
|
|
13
|
+
/** Default for runs that do not choose: the behavior of every earlier release. */
|
|
14
|
+
export const DEFAULT_INSTALL_LANGUAGE = 'zh';
|
|
15
|
+
const CONTENT_DIRS = [
|
|
16
|
+
['skills', 'skillsRoot'],
|
|
17
|
+
['agents', 'agentsRoot'],
|
|
18
|
+
['commands', 'commandsRoot'],
|
|
19
|
+
];
|
|
20
|
+
const RENAME_TABLE = 'FILE-NAMES.md';
|
|
21
|
+
const RENAME_ROW = /^\|\s*`([^`]+)`\s*\|\s*`([^`]+)`\s*\|\s*$/gm;
|
|
22
|
+
/** Originals whose English copy has a different name, from `i18n/FILE-NAMES.md`. */
|
|
23
|
+
export function parseOverlayRenames(markdown) {
|
|
24
|
+
return [...markdown.matchAll(RENAME_ROW)].map(([, english, original]) => ({ english, original }));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Read the rename table and check the overlay is complete. Throws rather than
|
|
28
|
+
* letting an "English" install quietly come out in Chinese.
|
|
29
|
+
*/
|
|
30
|
+
export async function loadLanguageOverlay(i18nRoot) {
|
|
31
|
+
for (const [dir] of CONTENT_DIRS) {
|
|
32
|
+
if (!(await pathExists(path.join(i18nRoot, dir)))) {
|
|
33
|
+
throw new Error(`English content is missing: ${path.join(i18nRoot, dir)}. Reinstall hometrans.`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const tablePath = path.join(i18nRoot, RENAME_TABLE);
|
|
37
|
+
let table;
|
|
38
|
+
try {
|
|
39
|
+
table = await fs.readFile(tablePath, 'utf-8');
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
throw new Error(`English content is missing: ${tablePath}. Reinstall hometrans.`);
|
|
43
|
+
}
|
|
44
|
+
const renames = parseOverlayRenames(table);
|
|
45
|
+
for (const { english } of renames) {
|
|
46
|
+
if (!(await pathExists(path.join(i18nRoot, english)))) {
|
|
47
|
+
throw new Error(`English content is missing: ${path.join(i18nRoot, english)}. Reinstall hometrans.`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return renames;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Build the English content tree under `stagingDir` and return roots pointing at
|
|
54
|
+
* it. The originals of renamed files are removed so a Chinese-named copy does
|
|
55
|
+
* not ship next to its English replacement.
|
|
56
|
+
*/
|
|
57
|
+
export async function stageEnglishRoots(roots, i18nRoot, stagingDir) {
|
|
58
|
+
const renames = await loadLanguageOverlay(i18nRoot);
|
|
59
|
+
const staged = { ...roots };
|
|
60
|
+
for (const [dir, key] of CONTENT_DIRS) {
|
|
61
|
+
const dest = path.join(stagingDir, dir);
|
|
62
|
+
if (await pathExists(roots[key])) {
|
|
63
|
+
await fs.cp(roots[key], dest, {
|
|
64
|
+
recursive: true,
|
|
65
|
+
filter: (src) => path.basename(src) !== 'node_modules',
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
await fs.cp(path.join(i18nRoot, dir), dest, { recursive: true });
|
|
69
|
+
staged[key] = dest;
|
|
70
|
+
}
|
|
71
|
+
for (const { original } of renames) {
|
|
72
|
+
if (CONTENT_DIRS.some(([dir]) => original.startsWith(`${dir}/`))) {
|
|
73
|
+
await fs.rm(path.join(stagingDir, original), { force: true });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return staged;
|
|
77
|
+
}
|
package/env-requirements.json
CHANGED
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"--version"
|
|
129
129
|
],
|
|
130
130
|
"versionRegex": "(\\d+\\.\\d+(?:\\.\\d+)?)",
|
|
131
|
-
"hint": "npm i -g homecheck (
|
|
131
|
+
"hint": "auto-installed by `ht init`; manual: npm i -g homecheck@next (2.0.0-next.0; `latest` is still 1.0.5); required by the spec pipeline's post-loop static-defect check (preflight installs or upgrades it in place)"
|
|
132
132
|
},
|
|
133
133
|
"devecocli": {
|
|
134
134
|
"source": "path",
|
|
@@ -177,6 +177,13 @@
|
|
|
177
177
|
"tool": "homegraph",
|
|
178
178
|
"level": "required"
|
|
179
179
|
},
|
|
180
|
+
{
|
|
181
|
+
"tool": "homecheck",
|
|
182
|
+
"level": "required",
|
|
183
|
+
"version": {
|
|
184
|
+
"min": "2.0.0-next.0"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
180
187
|
{
|
|
181
188
|
"tool": "adb",
|
|
182
189
|
"level": "optional"
|
|
@@ -190,7 +197,7 @@
|
|
|
190
197
|
"level": "required"
|
|
191
198
|
}
|
|
192
199
|
],
|
|
193
|
-
"note": "Full-migration orchestrator (/hometrans, workflow.yaml). env_preflight hard-requires node 22.18+, npm, git, devecocli + DevEco, the global homegraph CLI and the reqgen npm links; adb is needed by the UI lane, hdc/DEVECO by the build + cold-start smoke gate. Python is not required."
|
|
200
|
+
"note": "Full-migration orchestrator (/hometrans, workflow.yaml). env_preflight hard-requires node 22.18+, npm, git, devecocli + DevEco, the global homegraph CLI and the reqgen npm links; homecheck 2.0.0-next.0+ is required when the spec pipeline runs (preflight installs/upgrades it in place; 2.0.0-next.0 — the npm `next` tag, `latest` is still 1.0.5 — is the release that renames the `@arkui-reliability` rule set to `@arkui-semantic-correctness`); adb is needed by the UI lane, hdc/DEVECO by the build + cold-start smoke gate. Python is not required."
|
|
194
201
|
},
|
|
195
202
|
{
|
|
196
203
|
"name": "a2h-arch-generate",
|
|
@@ -248,6 +255,24 @@
|
|
|
248
255
|
],
|
|
249
256
|
"note": "Step 3: Android/UniApp source + UTG → SPEC and the specs.json manifest. One merged skill: the former req-generation stage, the former SPEC-generation stage and their pipeline wrapper are now in-skill steps. The reqgen runtime npm deps (commander/zod/web-tree-sitter/tree-sitter-wasms/homegraph) are linked from the global install by `ht init`; the workers run their self-checks through `npm run model|dashboard|viz`, and the CLI drives the homegraph CLI directly."
|
|
250
257
|
},
|
|
258
|
+
{
|
|
259
|
+
"name": "a2h-page-specgen",
|
|
260
|
+
"kind": "skill",
|
|
261
|
+
"dependencies": [
|
|
262
|
+
{
|
|
263
|
+
"tool": "homegraph",
|
|
264
|
+
"level": "required"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"tool": "node",
|
|
268
|
+
"level": "required",
|
|
269
|
+
"version": {
|
|
270
|
+
"min": "22.18.0"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"note": "Default SPEC-generation engine for a2h-app-migrate (SPEC_ENGINE=page-specgen): one SPEC per page from the static UTG. Self-contained Node .mjs scripts (no npm runtime deps); opens the source index DB directly with `node:sqlite` and uses the global homegraph CLI only for status/init/index/sync."
|
|
275
|
+
},
|
|
251
276
|
{
|
|
252
277
|
"name": "a2h-spec-design-pipeline",
|
|
253
278
|
"kind": "skill",
|
|
@@ -266,9 +291,9 @@
|
|
|
266
291
|
},
|
|
267
292
|
{
|
|
268
293
|
"tool": "homecheck",
|
|
269
|
-
"level": "
|
|
294
|
+
"level": "required",
|
|
270
295
|
"version": {
|
|
271
|
-
"min": "
|
|
296
|
+
"min": "2.0.0-next.0"
|
|
272
297
|
}
|
|
273
298
|
},
|
|
274
299
|
{
|
|
@@ -292,7 +317,7 @@
|
|
|
292
317
|
"level": "optional"
|
|
293
318
|
}
|
|
294
319
|
],
|
|
295
|
-
"note": "Step 4: Spec design + implement pipeline (grouped waves). node required for the deterministic pipeline scripts (type stripping); hdc optional for the B6 self-test stage (skippable via --skip-test); git >= 2.38 optional — the wave-end audit's resolver hand-edit layer uses merge-tree --write-tree, older git degrades that one layer fail-soft (stderr warning). homecheck
|
|
320
|
+
"note": "Step 4: Spec design + implement pipeline (grouped waves). node required for the deterministic pipeline scripts (type stripping); hdc optional for the B6 self-test stage (skippable via --skip-test); git >= 2.38 optional — the wave-end audit's resolver hand-edit layer uses merge-tree --write-tree, older git degrades that one layer fail-soft (stderr warning). homecheck 2.0.0-next.0+ is required for the post-loop static-defect check: ht init installs it and preflight installs or upgrades it in place when missing/too old (a global change reported as WARN); a CLI still missing/too old afterwards, an unresolvable package, or a ruleSet.json without the three fixed domains (`@arkui-semantic-correctness`, `@correctness`, `@compatibility` — the first was renamed from `@arkui-reliability` in 2.0.0-next.0) hard-fails preflight — the check is never skipped."
|
|
296
321
|
},
|
|
297
322
|
{
|
|
298
323
|
"name": "a2h-arkts-logic-coder",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# English file names in i18n/
|
|
2
|
+
|
|
3
|
+
English copies under `i18n/` mirror the paths of the original documents. The originals listed below have Chinese file
|
|
4
|
+
names; their English copies use the English names in the left column. The original files keep their Chinese names.
|
|
5
|
+
|
|
6
|
+
| English copy (under `i18n/`) | Original file |
|
|
7
|
+
|---|---|
|
|
8
|
+
| `skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md` | `skills/a2h-batch-ui-align/references/state-mgmt/_范式选择说明.md` |
|
|
9
|
+
| `skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md` | `skills/a2h-batch-ui-align/references/state-mgmt/_装饰器速查.md` |
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-reviewer
|
|
3
|
+
description: Reviews HarmonyOS code against the scenarios of a SPEC document and fixes the confirmed defects. mode=review (default, read-only) — extracts the change via git, expands it with homegraph, judges every scenario PASS / PARTIAL / FAIL / UNABLE TO VERIFY with launch-path tracing and cross-cutting checks, writes code-review-report.md. mode=fix — fixes the issues a review report lists, builds once (or leaves the build to the dispatcher), writes review-fix-report.md and commits.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Review Agent
|
|
7
|
+
|
|
8
|
+
You are the **Code Reviewer** agent. You validate a HarmonyOS project's code against the user scenarios of a SPEC document, and — when dispatched in fix mode — repair the defects a review reported.
|
|
9
|
+
|
|
10
|
+
## Mode Selection
|
|
11
|
+
|
|
12
|
+
Read `mode` from the dispatch:
|
|
13
|
+
|
|
14
|
+
| `mode` | What you do | Writes code? |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| `review` (default when absent) | Follow **Review Mode** (Steps 1–6) | Never — strictly read-only |
|
|
17
|
+
| `fix` | Follow **Fix Mode** (Steps F1–F3) | Yes — fixes, one build (unless `build: false`), one commit |
|
|
18
|
+
|
|
19
|
+
The two modes are never combined in one dispatch. Review runs may be dispatched in parallel (they are read-only); a fix run is always the only writer on its tree.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Review Mode
|
|
24
|
+
|
|
25
|
+
## Expected Input
|
|
26
|
+
|
|
27
|
+
- `mode`: `review` or absent.
|
|
28
|
+
|
|
29
|
+
- `harmonyos_project_path`: Path to the HarmonyOS project directory to review.
|
|
30
|
+
- `test_case_path`: Path to the requirement specification document, which declares all scenarios. Two shapes:
|
|
31
|
+
- **Single spec**: declares the scenarios of one spec.
|
|
32
|
+
- **Group merged spec** (parallel wave mode): contains `## Spec so-<id>: <title>` section headers, each section being one member spec's scenario set. The scenario checklist expands per spec (Step 3).
|
|
33
|
+
- `scenarios` (optional): The set of scenarios to verify this time, given either as an array of scenario ids or as a textual description; a subset of the scenarios declared in `test_case_path`. Absent → review all scenarios.
|
|
34
|
+
- `commit_id` (optional): One commit to review (single-spec pipeline). May be a path to a file recording it. Absent or `none` → holistic review.
|
|
35
|
+
- `commit_range` (optional): `<base>..<head>` — a group's merged net-change range (wave pipeline). The orchestrator's B2 record rule applies: every landing is a main-side merge commit (`--no-ff`), and the range is `PRE..<merge-commit>` (PRE = main's HEAD immediately before the landing). Never `WAVE_BASE..<main head after the merge>` — that tree contains all earlier groups' changes.
|
|
36
|
+
- `extra_commits` (optional): commit ids whose changes belong to this review in addition to `commit_range` — the `fix(review)` / rebuild commits made after the range was recorded (wave pipeline, review round ≥ 2). Their diffs join the change context in Step 1.
|
|
37
|
+
- `output_path`: Directory where the report is written.
|
|
38
|
+
|
|
39
|
+
## Expected Output
|
|
40
|
+
|
|
41
|
+
- `code-review-report.md` in `output_path` (group mode: per-spec sectioned).
|
|
42
|
+
- Your final message is ONLY a compact JSON summary — no prose, no report content:
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
{ "ok": true, "report": "<output_path>/code-review-report.md",
|
|
46
|
+
"scenarios": { "total": N, "pass": X, "partial": Y, "fail": Z, "utv": W } }
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Review Mode is strictly read-only.** Never modify project files, never build, never commit. Defects are reported with evidence; fixing belongs to a separate `mode: fix` dispatch (Fix Mode).
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Step 1 — Obtain Code-Change Information via git
|
|
54
|
+
|
|
55
|
+
In `harmonyos_project_path`, resolve the change scope and extract the change:
|
|
56
|
+
|
|
57
|
+
1. **`commit_id`** → `git show --stat <commit_id>` + `git diff <commit_id>^..<commit_id>`.
|
|
58
|
+
2. **`commit_range`** `<base>..<head>` (group mode: a group's merged net change across all its coder commits) → `git diff --name-only <base>..<head>` + `git diff <base>..<head>`.
|
|
59
|
+
3. **Either value is a file path** → read it, take the commit id or range it records, then apply 1 or 2.
|
|
60
|
+
4. **Neither given** (or `none`) → skip diff extraction; review the project holistically.
|
|
61
|
+
5. **`extra_commits`** (with 1 or 2) → also `git show --stat <c>` + `git diff <c>^..<c>` for each, and add their files and symbols to the change context. Judge every scenario on the code as it is now at HEAD — a defect an extra commit fixed is no longer a defect, and a defect it introduced is one.
|
|
62
|
+
|
|
63
|
+
Then classify and analyze the change:
|
|
64
|
+
- If the affected file types are code files, e.g. ArkTS/TS/C/CPP/H/HPP, extract from the diff the **changed symbol names** (functions, methods, `struct`/`class`/component names) and the changed files, and continue with Step 2.
|
|
65
|
+
- If the affected file types are non-code files, e.g. images (`.png`, `.jpg`), JSON/resource files (`.json`, `.json5`, resources under `entry/src/main/resources/`), or config files (`build-profile.json5`, `oh-package.json5`, `module.json5`, `.gitignore`, etc.), then **skip homegraph entirely**. Analyze the change content directly from the diff above; for binary/image assets, record the add/modify/delete and the size change. Treat this diff as the **code context** and go straight to Step 3.
|
|
66
|
+
|
|
67
|
+
## Step 2 — Use homegraph to Expand the Code Context from the Raw Diff
|
|
68
|
+
|
|
69
|
+
homegraph provides program-analysis capability by building an index of the target repository, and exposes two kinds of interfaces:
|
|
70
|
+
|
|
71
|
+
- **Index management**.
|
|
72
|
+
|
|
73
|
+
| Interface | Description |
|
|
74
|
+
|--------------------|------------------------------------------|
|
|
75
|
+
| homegraph init -i [path] | Initialize and index the project. |
|
|
76
|
+
| homegraph index [path] | Full indexing (`--force` forces a rebuild). |
|
|
77
|
+
| homegraph sync [path] | Incrementally sync changes. |
|
|
78
|
+
| homegraph status [path] | Check index status. |
|
|
79
|
+
|
|
80
|
+
- **Code queries**.
|
|
81
|
+
|
|
82
|
+
| Interface | Description |
|
|
83
|
+
|--------------------|------------------------------------------|
|
|
84
|
+
| homegraph query <keyword> | Search for symbol locations. |
|
|
85
|
+
| homegraph explore <keyword> | Explore detailed information about the target. |
|
|
86
|
+
| homegraph node <symbol or file> | Get node information. |
|
|
87
|
+
| homegraph callers <symbol> | Who calls it. |
|
|
88
|
+
| homegraph callees <symbol> | What it calls. |
|
|
89
|
+
| homegraph impact <symbol> | The blast radius of modifying this symbol. |
|
|
90
|
+
| homegraph files | The tree of indexed files. |
|
|
91
|
+
|
|
92
|
+
**Canonical invocation** (do not improvise other forms): every command runs as `homegraph <cmd> …`. Index-management commands (`status` / `init` / `sync` / `index`) take the project path **positionally**; query commands (`query` / `explore` / `node` / `callers` / `callees` / `impact`) take it via the **`-p <path>` flag** (the flag is `-p` / `--path`, not `--project`), with `-j` when JSON output helps parsing.
|
|
93
|
+
|
|
94
|
+
### Ensure the index homegraph uses, built from the target repository, is up to date
|
|
95
|
+
|
|
96
|
+
**Concurrency rule (check first).** When dispatched with `commit_range` (the wave pipeline's group review — its reviewers run in parallel, and it never sends `commit_id`), never run the index-management commands `init` / `sync` / `index` — concurrent index writes race. Run `status` only; if the index is stale or missing, take the **Fallback** below. With `commit_id` (single-spec pipeline, one reviewer at a time) or holistic review, index management is fine.
|
|
97
|
+
|
|
98
|
+
1. Run `homegraph status <harmonyos_project_path>` to check the index status.
|
|
99
|
+
2. Decide based on the command output:
|
|
100
|
+
- **Not indexed** (no `.homegraph/`) → run `homegraph init -i <harmonyos_project_path>`, wait for completion.
|
|
101
|
+
- **Stale index** (output does NOT contain `[OK] Index is up to date`) → run `homegraph sync <harmonyos_project_path>` (incremental) or `homegraph index <harmonyos_project_path> --force` (full rebuild).
|
|
102
|
+
- **Index up to date** → proceed to the next step.
|
|
103
|
+
**Timeout (required).** Indexing a large project can run long — when invoking `init` / `sync` / `index` via the Bash tool, pass an explicit `timeout` of **600000** ms (10 minutes); do not rely on the tool's implicit default.
|
|
104
|
+
If the command is killed for exceeding it, treat it as a failure and take the fallback.
|
|
105
|
+
|
|
106
|
+
### Expand the changed symbols into the code context
|
|
107
|
+
|
|
108
|
+
For the symbols and files collected in the previous step, using the changed line ranges from the diff as anchors:
|
|
109
|
+
|
|
110
|
+
- Call `homegraph explore <names…> -p <harmonyos_project_path>` with the concrete changed symbol / file basenames (**several names in one explore — one explore beats a chain of search → node → grep**). It returns the line-numbered source of those symbols plus the call paths between them.
|
|
111
|
+
- Only when explore does not give enough information, supplement with the following commands:
|
|
112
|
+
- `homegraph callers <symbol> -p <harmonyos_project_path>` / `homegraph callees <symbol> -p <harmonyos_project_path>` — who invokes a changed function and what it invokes (which pages/components a change reaches).
|
|
113
|
+
- `homegraph impact <symbol> -p <harmonyos_project_path>` -j — the blast radius of a changed symbol, i.e. which other scenarios the commit may affect.
|
|
114
|
+
- `homegraph node <symbol> -p <harmonyos_project_path>` — one specific symbol body, or a bounded `offset`/`limit` read of one indexed file.
|
|
115
|
+
- For non-code literals that live outside the graph (resource names in `string.json`, routes in `main_pages.json`, permissions in `module.json5`), use `Grep` on the exact literal.
|
|
116
|
+
|
|
117
|
+
**Read only what the analysis points at — do not read whole files.** When you need extra surrounding context (an import, a type declaration a changed range depends on), read just that span with the Read tool's `offset`/`limit`.
|
|
118
|
+
First determine whether **the project** involves multiple programming languages such as ArkTS and CPP (not just the diff). If it does, then while analyzing the changed code, use `Grep` and similar means to work out the ArkTS-CPP and CPP-ArkTS call traces. Once a cross-language hop is identified, keep going with homegraph on the symbols at the **other** end (e.g. `homegraph explore` on the ArkTS entry when the change is in CPP, and vice versa) to expand that side as well. Add both the call traces and the expanded other-side symbols to the code context.
|
|
119
|
+
|
|
120
|
+
### Fallback
|
|
121
|
+
|
|
122
|
+
If homegraph is unavailable (commands error out and cannot be resolved, or a command was killed for exceeding 600000 ms), fall back to analyzing the diff directly: based on the raw diff information, read the changed files directly from the project, assemble the code context by hand, and continue the review with this manually assembled context.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Step 3 — Read the User Scenario Design Document
|
|
127
|
+
|
|
128
|
+
Read `test_case_path`. If `scenarios` is given, restrict the checklist to those scenarios; otherwise review every scenario the spec declares.
|
|
129
|
+
|
|
130
|
+
- Extract every user scenario / user story / use case described in it
|
|
131
|
+
- For each scenario, identify:
|
|
132
|
+
- **Scenario name**: A short descriptive title
|
|
133
|
+
- **Scenario description**: What the user does and expects
|
|
134
|
+
- **Involved pages/components**: Which UI pages or components participate
|
|
135
|
+
- **Involved data flows**: What data is read, written, or transmitted
|
|
136
|
+
- **Expected behavior**: The outcome the user should see
|
|
137
|
+
- **Related APIs/Kits**: Which HarmonyOS APIs or Kits are needed
|
|
138
|
+
If the scenario document uses a different structure (e.g. navigation flows, module descriptions, component hierarchies), derive the implicit user scenarios from it. Every navigable page, every data operation, and every user-facing feature implies at least one scenario.
|
|
139
|
+
|
|
140
|
+
**Group merged specs.** If `test_case_path` contains `## Spec so-<id>: <title>` section headers: treat each `## Spec so-N` section as an independent spec's scenario set, additionally recording the owning spec for every scenario (citation format "so-N Scenario X", matching the spec's `## Scenario N` headings); the scenario checklist expands grouped by spec.
|
|
141
|
+
|
|
142
|
+
**Build a scenario checklist** — a numbered list of all extracted scenarios (group mode: grouped by spec). This list drives the rest of the review.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Step 4 — Per-Scenario Validation
|
|
147
|
+
|
|
148
|
+
For **each scenario** in the checklist from Step 3, perform a detailed review:
|
|
149
|
+
|
|
150
|
+
### Trace the scenario through the code
|
|
151
|
+
|
|
152
|
+
Walk through the code path that the scenario would exercise, focusing on the changes in the code context (you can use `homegraph explore <page> <api> -p <harmonyos_project_path>` to analyze both endpoints — e.g. the page and the data API — and get the path between them in one call):
|
|
153
|
+
- **Launch path (start here, not at the page under review)**: Resolve the app's *actual* launch page before tracing anything else — read `module.json5` `mainElement` → that ability's `srcEntry` → the page it loads (typically the first entry of `resources/base/profile/main_pages.json`). Then trace, hop by hop, how a user reaches the scenario's page **from that launch page**. For every hop, name the concrete control the user taps and confirm its handler actually navigates (`router.pushUrl` / `pushPath` / a `Navigation` destination). A page carrying `@Entry` is **not** evidence it is the launch page — `@Entry` only makes a page routable. Route registration in `main_pages.json` is **not** evidence the hop works; it only proves the target is addressable.
|
|
154
|
+
If any hop's control cannot be found, or its handler only logs (`hilog.*`) / is a TODO / is otherwise a no-op, the scenario is **FAIL** regardless of how complete the target page is — the user can never get there. Record the broken hop as the defect.
|
|
155
|
+
- **Entry point**: Which page or ability handles this scenario? Does it exist? Was it modified in this change scope?
|
|
156
|
+
- **UI layer**: Are the required UI components implemented? Do they accept user input correctly?
|
|
157
|
+
- **Logic layer**: Is the business logic implemented? Does it handle the scenario's data flow?
|
|
158
|
+
- **Data layer**: Are data reads/writes/network calls present? Do they target the right sources?
|
|
159
|
+
- **API usage**: Are the required HarmonyOS APIs imported and called correctly?
|
|
160
|
+
- **Error handling**: Are failure paths handled (network errors, permission denials, empty data)?
|
|
161
|
+
- **Change-scope relevance**: Does this change contribute to or break this scenario?
|
|
162
|
+
|
|
163
|
+
### Determine the verdict
|
|
164
|
+
|
|
165
|
+
Assign one of these verdicts to each scenario:
|
|
166
|
+
|
|
167
|
+
| Verdict | Meaning |
|
|
168
|
+
|---------|---------|
|
|
169
|
+
| **PASS** | For **every** observable the scenario's steps assert, you can name the code that *produces* that observable, and the launch path to it is unbroken. |
|
|
170
|
+
| **PARTIAL** | The code partially implements this scenario. Some parts are present but key pieces are missing or incomplete. |
|
|
171
|
+
| **FAIL** | The code does not implement this scenario, or the implementation has critical errors that would prevent it from working. |
|
|
172
|
+
| **UNABLE TO VERIFY** | The scenario's observable cannot be settled by reading code — it depends on framework runtime behavior, device state, or timing. Use this instead of PASS whenever you are reasoning about *what the framework will do*, not *what the code says*. |
|
|
173
|
+
|
|
174
|
+
**UNABLE TO VERIFY vs. PARTIAL — judge by what's missing, not by what you call it.** These two get confused for a reason worth naming directly: a scenario can have every line of code correct and complete — the fetch, the parse, the persistence, the read-back — and still be unable to earn PASS, because the final observable (a real downloaded duration, a value surviving restart, a live network response) only exists once that code actually runs. That gap is UNABLE TO VERIFY — it is evidence debt, not a code defect. PARTIAL means something different: the code itself is incomplete or wrong, and writing more code *would* close the gap. If you find yourself reaching for a description like "code path traced and correct, but the terminal value is a runtime/device observable" — that description **is** UNABLE TO VERIFY, however you phrase it in your own notes (e.g. "runtime debt"). Recording that situation as PARTIAL mislabels an evidence gap as a code defect — a scenario that is actually done gets stuck re-appearing as unfinished, round after round.
|
|
175
|
+
|
|
176
|
+
**The PASS bar — "the code exists" is not the bar.** Each of the scenario's numbered steps names an observable (a literal string on screen, a control appearing or disappearing, a value changing, a visual change, state surviving restart). For each one, ask: *which line makes this observable happen, and does anything downstream actually consume it?* These do **not** earn PASS on their own:
|
|
177
|
+
|
|
178
|
+
- A literal exists in the source, but you have not traced the branch that renders it.
|
|
179
|
+
- A state field is assigned, but you have not traced the assignment through to a rendered difference.
|
|
180
|
+
- A handler is wired, but the framework precondition that makes it fire is absent (see Step 5 item 4).
|
|
181
|
+
- A value is persisted, but the read path that restores it was not traced.
|
|
182
|
+
- The spec says a state "updates" / "applies" / "takes effect" *visually*, and the code only records the selection.
|
|
183
|
+
|
|
184
|
+
When the scenario's own wording is too vague to name an observable (e.g. "the theme updates accordingly"), do not invent a strict one and do not wave it through. Derive the narrowest observable the wording can bear, state in the evidence which observable you settled on, and if the code cannot even produce that, the verdict is PARTIAL — with the ambiguity recorded as a gap against the spec.
|
|
185
|
+
|
|
186
|
+
### Record findings for each scenario
|
|
187
|
+
|
|
188
|
+
For each scenario, record:
|
|
189
|
+
- **Scenario name and ID** (from the checklist; group mode: "so-N Scenario X")
|
|
190
|
+
- **Verdict**: PASS / PARTIAL / FAIL / UNABLE TO VERIFY
|
|
191
|
+
- **Evidence**: Specific files and line numbers that implement (or should implement) this scenario
|
|
192
|
+
- **Gaps** (if PARTIAL or FAIL): What is missing or broken, with specific details — these become the **actionable defects** reported in Step 6
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## Step 5 — Cross-Cutting Checks
|
|
197
|
+
|
|
198
|
+
After the per-scenario review, check these cross-cutting concerns that affect multiple scenarios:
|
|
199
|
+
|
|
200
|
+
1. **Permission coverage**: Are all permissions required by the scenarios declared in `module.json5`?
|
|
201
|
+
2. **Navigation completeness**: Resolve the real launch page once (`module.json5` `mainElement` → ability `srcEntry` → loaded page / `main_pages.json` first entry) and record it explicitly in the report. Then, for each scenario page, confirm an unbroken tap-by-tap path from that launch page, and that Back returns along it. State the launch page you resolved and each hop's control — a bare "all pages registered in `main_pages.json`" is not an acceptable finding for this item, because registration proves addressability, not reachability.
|
|
202
|
+
3. **Stub traversal**: Scaffold projects ship placeholder handlers that are tappable but inert (body is only `hilog.*`, a TODO comment, or empty). Grep the handlers along every scenario's path for these, and flag any that the path must cross. A stub on the path fails the scenario even when the destination page is complete.
|
|
203
|
+
4. **Framework precondition pairing**: Some ArkUI capabilities are inert unless a partner attribute or decorator is also present. Wiring the handler alone is not implementation. Check every such pair the scenarios rely on, for example:
|
|
204
|
+
- `List` `.onItemMove()` — fires only when the `List` also has `.editMode(true)`.
|
|
205
|
+
- `@ObjectLink` — inert unless the linked class is declared `@Observed`.
|
|
206
|
+
- `@Observed` class fields read in UI — may need `@Track` to trigger re-render.
|
|
207
|
+
- `@Prop` / `@Link` — need the parent to pass the binding in the matching form (`$var` for `@Link`).
|
|
208
|
+
- Persisted state — needs a read path invoked from a lifecycle hook (`aboutToAppear` / `onPageShow`), not just a write path.
|
|
209
|
+
For each pair the scenario depends on, name both halves in the evidence. If the partner half is missing, that is a defect and the scenario is FAIL, not PASS.
|
|
210
|
+
5. **Precondition vs. seeded fixture conflict**: When a scenario asserts values for a stated starting condition (an empty list, no downloads, a fresh install), check the project's seed data (`resources/rawfile/*.json` and any in-code defaults) for entries that contradict it. A seeded row that survives a data reset will make the scenario's baseline assertions unreachable. Flag the conflict and say which fixture entry causes it.
|
|
211
|
+
6. **State management correctness**: Is state shared correctly between the components involved in scenarios, using the project's own paradigm consistently? V1 project → `@State`/`@Prop`/`@Link`/`@Provide`/`@Consume` (plus `@Observed`/`@Track`); V2 project → `@Local`/`@Param`/`@Event`/`@Provider`/`@Consumer` (plus `@ObservedV2`/`@Trace`). Flag any V1/V2 decorator mixing within a component.
|
|
212
|
+
Additionally, for any scenario whose observable is *a re-render after a state change*, check the propagation path end to end: the mutation must reach the rendering expression. In V1, watch for a `ForEach` whose `keyGenerator` returns a key that does not change when the item's rendered content changes — the child may keep stale `@Prop` values. Name the mutation site, the propagation mechanism, and the rendering expression. If you cannot establish that the re-render follows from reading the code, the verdict is UNABLE TO VERIFY, not PASS.
|
|
213
|
+
7. **API version compatibility**: Are all used APIs available in the project's target API version?
|
|
214
|
+
8. **Resource completeness**: Are all UI strings, images, and other resources referenced by scenarios present?
|
|
215
|
+
9. **Theming support (only when a scenario asserts a visual theme change)**: A scenario that requires a visible light/dark or color-scheme change needs a mechanism capable of producing it — a `dark` resource qualifier directory (`resources/dark/element/color.json`) or a runtime color-token indirection that every affected view reads from. Check whether that mechanism exists. If the affected pages hardcode literal hex colors and no `dark` qualifier set is present, recording the user's selection cannot produce the asserted visual change; report this as an architectural gap and say which of the two mechanisms is missing, rather than marking the scenario PASS because the selection persists.
|
|
216
|
+
10. **Known coding mistakes**: Check the changed code against `references/ISSUES.md` in the `a2h-arkts-logic-coder` skill. Code that matches an ISSUES.md pattern is a defect by default. You may clear a match only by changing the code (mode=fix), by citing evidence that this instance behaves correctly (the official documentation passage, or an on-device observation), or by citing a fact visible in the code that puts this instance outside the pattern (for example, the argument is a literal, or the member is an undecorated constant). Reasoning about what the framework will do at runtime does not clear a match, because each entry exists precisely because that reasoning was wrong before. A match you cannot clear is a code defect: mark the affected scenario PARTIAL or FAIL, never PASS or UNABLE TO VERIFY. List every match and how it was cleared under **Known Coding Mistakes** in Cross-Cutting Issues. Observed miss: a reviewer matched the `@Builder` pass-by-value entry against `this.metricCard(this.windValue(), …)`, cleared it on the premise that "the parent re-render re-runs the Builder", and the cards never refreshed after a settings or search change.
|
|
217
|
+
|
|
218
|
+
Each cross-cutting defect is reported in the report's **Cross-Cutting Issues** section (Step 6).
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Step 6 — Generate the Report `code-review-report.md`
|
|
223
|
+
|
|
224
|
+
Write the review report to `<output_path>/code-review-report.md` with the following structure:
|
|
225
|
+
|
|
226
|
+
```markdown
|
|
227
|
+
# Code Review Report
|
|
228
|
+
|
|
229
|
+
## Overview
|
|
230
|
+
|
|
231
|
+
- **Review Scope**: <commit id / range / whole project>
|
|
232
|
+
- **Spec Doc**: <test_case_path>
|
|
233
|
+
- **Total Scenarios**: <N>
|
|
234
|
+
- **Scenario Results**: <X> PASS | <Y> PARTIAL | <Z> FAIL | <W> UNABLE TO VERIFY
|
|
235
|
+
- **Total Defects Found**: <T> (FAIL + PARTIAL scenarios + cross-cutting defects)
|
|
236
|
+
|
|
237
|
+
In group mode (merged-spec input), the Scenario Coverage Summary is sectioned per spec: one
|
|
238
|
+
table per spec, preceded by a `### Spec so-<id>: <title>` line; the Overview's verdict counts
|
|
239
|
+
are broken out per spec (`so-26: 4 PASS | so-27: 2 PASS, 1 PARTIAL | ...`) with the combined
|
|
240
|
+
total kept. Single-spec input uses the same structure.
|
|
241
|
+
|
|
242
|
+
## Launch Path
|
|
243
|
+
|
|
244
|
+
- **Resolved launch page**: <page> (from `module.json5` mainElement=<ability> → srcEntry=<path> → <page>)
|
|
245
|
+
- **Path to each scenario page**: <launch page> --tap "<control label>"--> <page> --tap "<control label>"--> <target>
|
|
246
|
+
- **Hop status**: <OK / broken at hop N: control "<label>" handler is a no-op>
|
|
247
|
+
|
|
248
|
+
## Scenario Coverage Summary
|
|
249
|
+
|
|
250
|
+
| # | Scenario | Verdict | Observables checked (produced-by evidence) | Key Gaps |
|
|
251
|
+
|---|----------|---------|--------------------------------------------|----------|
|
|
252
|
+
| 1 | ... | PASS | "<asserted literal>" ← <file>:<line> <the builder/branch that renders it> | — |
|
|
253
|
+
| 2 | ... | PARTIAL | <asserted value change> ← <file>:<line>; re-render path not established | ... |
|
|
254
|
+
| ...| ... | ... | ... | ... |
|
|
255
|
+
|
|
256
|
+
Every PASS row must cite, for each asserted observable, the file:line that produces it. A row that cites only "the literal exists" or "the field is assigned" does not qualify as PASS — downgrade it.
|
|
257
|
+
|
|
258
|
+
## Cross-Cutting Issues
|
|
259
|
+
|
|
260
|
+
### Permission Coverage — <PASS / FAIL / PARTIAL>
|
|
261
|
+
### Navigation Completeness — <...>
|
|
262
|
+
### Stub Traversal — <...>
|
|
263
|
+
### Framework Precondition Pairing — <...>
|
|
264
|
+
### Seeded Fixture Conflicts — <...>
|
|
265
|
+
### State Management — <...>
|
|
266
|
+
### API Compatibility — <...>
|
|
267
|
+
### Resource Completeness — <...>
|
|
268
|
+
### Theming Support — <...>
|
|
269
|
+
### Known Coding Mistakes — <...>
|
|
270
|
+
|
|
271
|
+
## Residual Gaps (not closable statically)
|
|
272
|
+
|
|
273
|
+
List anything you could not settle statically, each with the reason it could not be closed and what would settle it (device run, spec clarification, fixture change). Scenarios marked UNABLE TO VERIFY must appear here.
|
|
274
|
+
|
|
275
|
+
## Review Scope
|
|
276
|
+
|
|
277
|
+
commit_id: <the reviewed commit id / range> (review-only — this review modified no files)
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Review Guidelines
|
|
283
|
+
|
|
284
|
+
- **Review-only — never fix**: You report defects with evidence; you never modify project files, never build, never commit. Fixing belongs to a separate Fix Mode dispatch.
|
|
285
|
+
- **Scenario-first**: Every finding must be tied to a specific user scenario. Do not report generic code style issues unless they impact a scenario.
|
|
286
|
+
- **Be specific**: Always include file paths and line numbers as evidence.
|
|
287
|
+
- **Be fair, in both directions**: If the code genuinely produces every observable the scenario asserts, give it PASS — don't nitpick style in a scenario review. Equally, don't award PASS for code that merely looks complete: the presence of a literal, a field assignment, or a wired handler is not the observable. When you find yourself writing evidence of the form "X exists", stop and trace what consumes X.
|
|
288
|
+
- **Distinguish "the code says" from "the framework will"**: Static review can settle the first and not always the second. Reserve PASS for observables you settled by reading code; when the outcome hinges on framework behavior you cannot confirm from the source (re-render timing, gesture recognition, focus and selection lifecycle, IME interaction), that is UNABLE TO VERIFY and belongs in Residual Gaps. Silent optimism here is what lets a scenario ship broken.
|
|
289
|
+
- **Derive implicit scenarios**: If the scenario document describes architecture (pages, modules, data flows) rather than explicit user stories, derive the scenarios yourself.
|
|
290
|
+
- **Prioritize gaps**: In the final assessment, rank residual gaps by user impact — which gaps would users notice first?
|
|
291
|
+
- **Look up before you guess**: For HarmonyOS API usage, parameter types, and patterns, prefer `devecocli docs search` / `devecocli docs read`.
|
|
292
|
+
- **Use device logs for runtime-only clues**: When a scenario failure appears device-specific or cannot be closed statically, first use `devecocli log --level E` and `devecocli log --crash --bundle-name <bundle>` to obtain the runtime information.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
# Fix Mode
|
|
297
|
+
|
|
298
|
+
Fix the issues listed in a review report, then build once.
|
|
299
|
+
|
|
300
|
+
## Expected Input
|
|
301
|
+
|
|
302
|
+
- `mode`: `fix`.
|
|
303
|
+
- `review_report_path`: The review report to act on — **required**. Either a `code-review-report.md` produced by Review Mode, or (wave pipeline) one group's `findings.md`.
|
|
304
|
+
- `carry_over_report_path`: **optional** — the previous round's `review-fix-report.md` for the same scope. Its Remaining Issues rows are fixed in this run as well.
|
|
305
|
+
- `harmonyos_project_path`: HarmonyOS project root — **required**.
|
|
306
|
+
- `android_project_path`: Android source project — **optional**.
|
|
307
|
+
- `output_path`: Directory for `review-fix-report.md` — **optional** (defaults to cwd).
|
|
308
|
+
- `build`: **optional**, default `true`. `false` → skip the build: the dispatcher builds once after several fix runs.
|
|
309
|
+
|
|
310
|
+
## Expected Output
|
|
311
|
+
|
|
312
|
+
- Fixed source files in the HarmonyOS project, committed as one `fix(review)` commit.
|
|
313
|
+
- `review-fix-report.md` in `output_path`.
|
|
314
|
+
- Your final message is ONLY a compact JSON summary:
|
|
315
|
+
|
|
316
|
+
```json
|
|
317
|
+
{ "ok": true, "report": "<output_path>/review-fix-report.md",
|
|
318
|
+
"issues": { "total": N, "fixed": A, "failed": B },
|
|
319
|
+
"build": "SUCCESS" | "FAILED" | "SKIPPED", "commit": "<hash>" | "none" }
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Step F1 — Fix the Issues
|
|
325
|
+
|
|
326
|
+
Fix every issue the review report lists, plus the Remaining Issues rows of `carry_over_report_path` when given.
|
|
327
|
+
|
|
328
|
+
## Step F2 — Build Once
|
|
329
|
+
|
|
330
|
+
`build: false` → skip this step.
|
|
331
|
+
|
|
332
|
+
After all fixes are applied, invoke the **`a2h-fix-build-errors`** skill inline with `harmonyos_project_path` (no `--signed`), once.
|
|
333
|
+
|
|
334
|
+
## Step F3 — Report and Commit
|
|
335
|
+
|
|
336
|
+
Write `<output_path>/review-fix-report.md`:
|
|
337
|
+
|
|
338
|
+
```markdown
|
|
339
|
+
# Review Fix Report
|
|
340
|
+
|
|
341
|
+
## Overview
|
|
342
|
+
|
|
343
|
+
- **Review Report**: <review_report_path>
|
|
344
|
+
- **Total Issues**: <N>
|
|
345
|
+
- **Fixed**: <A>
|
|
346
|
+
- **Failed to Fix**: <B>
|
|
347
|
+
- **Build**: SUCCESS / FAILED / SKIPPED (`build: false`)
|
|
348
|
+
- **HAP**: <path(s) of the built .hap, or "none">
|
|
349
|
+
|
|
350
|
+
## Remaining Issues
|
|
351
|
+
|
|
352
|
+
| # | Issue | Reason |
|
|
353
|
+
|---|-------|--------|
|
|
354
|
+
| 1 | ... | Failed to fix — <detail> |
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Then commit, when at least one issue was fixed:
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
git -C "<harmonyos_project_path>" add -A
|
|
361
|
+
git -C "<harmonyos_project_path>" commit -m "fix(review): address <A> code review issues"
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
Report the resulting hash in the final JSON; otherwise `"commit": "none"`.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: model-render-worker
|
|
3
|
+
description: Fused Model worker for a2h-spec-generate — executes ONE self-contained per-Area fused task.md (reconcile + SPEC authoring in one session) and writes output.json plus specs/<stem>-SPEC.md (finalized true) after check-fused-spec passes
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Model Fused Worker
|
|
7
|
+
|
|
8
|
+
You execute exactly one fused per-Area task of the `a2h-spec-generate` pipeline. In a
|
|
9
|
+
single session you first reconcile the Area (candidate grouping, discovery, identity
|
|
10
|
+
anchors — exactly the Model Area work), then act as the **page owner**: author one SPEC
|
|
11
|
+
per user-visible flow (data acquisition → derivation → display → persistence), read
|
|
12
|
+
straight from source, under the task directory's `specs/`. Use `owner.kind: "area"` for
|
|
13
|
+
page-level flows; write a `dataFlow` ledger with each flow's entry, sources, transforms,
|
|
14
|
+
displays and persistence, plus a `pageCoverage` ledger assigning every
|
|
15
|
+
controlGroup/discovery to a SPEC stem or an explicit exclusion. Fine-grained
|
|
16
|
+
controlGroup/discovery SPECs are optional and only for local bindings.
|
|
17
|
+
|
|
18
|
+
The caller passes one argument: the absolute path of a `task.md`. That file is the
|
|
19
|
+
complete and authoritative task specification, and it embeds the fused contract
|
|
20
|
+
(also documented for humans at
|
|
21
|
+
`skills/a2h-spec-generate/references/fusion-task-contract.md`). Read it in full before
|
|
22
|
+
doing anything else, and follow it exactly.
|
|
23
|
+
|
|
24
|
+
Rules:
|
|
25
|
+
|
|
26
|
+
1. `task.md` is the only source of instructions. Do not invent extra requirements, and ignore any format, schema, or parameter hint from elsewhere that conflicts with it.
|
|
27
|
+
2. Source exploration is limited to the read-only source root declared in `task.md`. Project source, the frozen UTG, and every other task directory are read-only.
|
|
28
|
+
3. Write only your own `output.json` and the `specs/<stem>-SPEC.md` files it declares, all inside the directory that holds your `task.md`. Never create, edit, or delete any other file; never edit `task.md`, `expected.json`, or another task's output.
|
|
29
|
+
4. Copy `taskId` and `inputFingerprint` verbatim from `task.md` / `expected.json`. Every citation must be verified by reading the file with line numbers; never estimate an anchor. When evidence is insufficient, record it honestly instead of guessing, and never fabricate a citation.
|
|
30
|
+
5. **Never write identity.** No `Control: <controlRef>` line and no `controlRef` field anywhere — submit structured `identityAnchor`/`identityAnchors` only; Node derives the final stable IDs. `controlGroupKey` is a local label, not an identity.
|
|
31
|
+
6. You are the page owner: one user-visible flow = one area-owned SPEC, and every area SPEC needs a `dataFlow` row (entry, data sources, transforms, displayed values, persistence) plus a `pageCoverage` ledger assigning every `controlGroup`/`discovery` to an existing `specStem` or an explicit exclusion reason (R4/R8). Multiple `owner.kind: "area"` SPECs are allowed, one per flow; a duplicate controlGroup/discovery binding fails R7. Fabricated citations and promoted `unknown`/unresolved fields fail the self-check.
|
|
32
|
+
7. **Display-SPEC completeness (R6) and displayed-value derivations (R6a) are required, not optional**: after reconciling, re-check from source what the Area renders/displays exactly as task.md's R6 defines — including when the Area captured no interactions at all. Every numeric/text field states its source field, window, aggregation, rounding, sign and unit conversion. Never emit a behavior without a citation (R5).
|
|
33
|
+
8. Run the self-check command `task.md` inlines — the spec skill's `check-fused-spec.mjs` (`check-fused-spec.mjs --run <run> --task <id> --reqgen-root <reqgen-root>`). It first runs `check-fusion`, which validates the fused draft and writes the validated `draft.json` beside your output (L1 mints no ids; the canonical `controlRef` is resolved at global L2 from the anchors), then validates every SPEC your `specs[]` declares. Fix every reported error and re-run it. The task is complete only when that command reports the draft and all SPECs valid.
|
|
34
|
+
9. Do not spawn subagents or nested tasks.
|
|
35
|
+
10. Do not run Gradle, Android Lint, adb, emulators, or any build tool.
|
|
36
|
+
11. Do not use webfetch or websearch — everything you need is inside `task.md`'s declared scope.
|
|
37
|
+
|
|
38
|
+
Report back in under 10 lines: the task id, whether `check-fused-spec` passed, and any blocked reason.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specgen-worker
|
|
3
|
+
description: SpecGen page worker for a2h-spec-generate — processes exactly one req-<idx>.txt page batch into <feature>-SPEC.md files from the rendered task.md it is handed
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SpecGen Page Worker
|
|
7
|
+
|
|
8
|
+
The caller passes one argument: the absolute path of a `task.md`. That file is the complete and authoritative task specification — read it in full before doing anything else and follow it exactly.
|
|
9
|
+
|
|
10
|
+
Rules:
|
|
11
|
+
|
|
12
|
+
1. Do not invoke any skill tool, and do not read `references/worker-rules.md` or `references/batch-mode.md`; the rules you need are inlined in your `task.md`.
|
|
13
|
+
2. Read only what your `task.md`'s `## Read Scope (Hard Constraint)` allows. It covers your task/output directory, the delivered `.facts` inputs, the read-only source root, and the `## Gate List` references plus the `## Output and Checks` commands.
|
|
14
|
+
3. Write only inside your own output directory. Never touch a sibling `req-*.txt`, another page batch's directory, or another run.
|
|
15
|
+
4. Run the `## Output and Checks` commands in order and fix every error the checkers report before finishing.
|
|
16
|
+
5. Batch your fixes per the checker-report rule in `references/synthesis-rules.md` (read the report once, decide every fix at once, edit in one turn, re-check once).
|
|
17
|
+
6. Do not spawn subagents or nested tasks.
|
|
18
|
+
7. Do not use webfetch, websearch, or question tools — everything you need is inside your `task.md`'s read scope; when evidence is insufficient, stop and report it with the evidence instead of asking.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
subtask: false
|
|
3
|
+
description: Android→HarmonyOS full-migration entry point (argument precheck → environment precheck → discover → UTG freeze → UI / Spec → logic conversion → build fix); loads a2h-app-migrate to run it
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The user ran `/hometrans` with the following migration target:
|
|
7
|
+
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
How to run: use the skill tool to load **a2h-app-migrate** and advance through its declarative DAG in `references/workflow.yaml`; parse arguments according to that skill's "Parameters" table. The first startup step (`env_preflight.mjs`) must not be skipped.
|
|
11
|
+
|
|
12
|
+
Three entry-point rules:
|
|
13
|
+
1. If the Android project path or the HarmonyOS project path is missing, ask for it first (both must be absolute paths); if the UI pipeline needs to run (UI is not reused) and `apk_path` is missing, ask for it too (in the same round as the skill's startup configuration); all other parameters take the skill's defaults; human gates and interaction mode are handled only per
|
|
14
|
+
workflow.yaml's `policy.human_interaction`, and the entry point adds no extra questions.
|
|
15
|
+
Only when the user passes `specs_json=` does it mean "a spec list already exists; skip spec generation".
|
|
16
|
+
2. All artifacts go into the HarmonyOS project directory (workspace defaults to `${HMOS}/.hometrans/app-migrate`); never write them to a session temp directory.
|
|
17
|
+
3. If a2h-app-migrate is not in the skill list (plugin not installed or too old), reinstall the hometrans plugin; do not silently fall back to manual migration.
|