@buaa_smat/hometrans 26.0.2 → 26.0.4
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 +8 -7
- package/agents/code-reviewer.md +111 -154
- 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 +436 -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 +206 -0
- package/i18n/skills/a2h-app-migrate/references/config.example.json +28 -0
- package/i18n/skills/a2h-app-migrate/references/feature-scope.md +121 -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 +2007 -0
- package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +187 -0
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1656 -0
- package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +728 -0
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +541 -0
- package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +143 -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 +713 -0
- package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +117 -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 +271 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +222 -0
- package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +136 -0
- package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +552 -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 +263 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +165 -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 +207 -0
- package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/i18n/skills/a2h-arch-generate/SKILL.md +378 -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 +131 -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/SKILL.md +304 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +10 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +249 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +344 -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 +877 -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 +597 -0
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +372 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +35 -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 +85 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +23 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +89 -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 +62 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +30 -0
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +930 -0
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +420 -0
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +158 -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 +2552 -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 +175 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +251 -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 +232 -0
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +206 -0
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +232 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +2005 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +2118 -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 +1805 -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 +1959 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -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 +1632 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1300 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1234 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +417 -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 +216 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +615 -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 +49 -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/dialog_backboard.ts +91 -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/event_default_click.ts +179 -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/hit_test.ts +339 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +780 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -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 +408 -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/overlay_binds.ts +56 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +179 -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 +81 -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/relative_container_height.ts +102 -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 +147 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -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 +127 -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/swiper_index.ts +65 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +184 -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/waterflow_sections.ts +231 -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_input_runtime.test.mjs +514 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +651 -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_overlay_lottie.test.mjs +199 -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/branch_coverage.test.mjs +116 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +693 -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 +326 -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 +356 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +60 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +395 -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 +62 -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 +2050 -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 +265 -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 +239 -0
- package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +1174 -0
- package/i18n/skills/a2h-page-specgen/references/body-language.md +179 -0
- package/i18n/skills/a2h-page-specgen/references/gates.md +329 -0
- package/i18n/skills/a2h-page-specgen/references/page-inventory.md +220 -0
- package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +274 -0
- package/i18n/skills/a2h-page-specgen/references/spec-example.md +312 -0
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +210 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
- package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
- package/i18n/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
- package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +1613 -0
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +1650 -0
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +864 -0
- package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +346 -0
- package/i18n/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +155 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +235 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +684 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +252 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -0
- package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +1542 -0
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +864 -0
- package/i18n/skills/a2h-page-specgen/scripts/render.mjs +276 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +897 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +25 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +47 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +267 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +57 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +373 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +300 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +553 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +546 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +655 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1234 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +520 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1516 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +759 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +630 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +118 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +798 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +886 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +205 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1205 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +271 -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/uniapp-source/App.vue +1 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -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 +1029 -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 +143 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +1121 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +188 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +549 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +368 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +348 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +250 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +776 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1103 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +240 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +427 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -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 +418 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1782 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +536 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +1239 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -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 +1801 -0
- package/i18n/skills/a2h-resource-convert/SKILL.md +375 -0
- package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +336 -0
- package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +272 -0
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +226 -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 +251 -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 +2596 -0
- package/i18n/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +238 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +358 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +307 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +103 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +266 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +71 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +55 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +246 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +752 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +661 -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 +126 -0
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +282 -0
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +908 -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/hybrid_route_cdp.mjs +376 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_b.mjs +550 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +647 -0
- package/i18n/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -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/diagnostics.test.mjs +252 -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/hybrid_route_identity.test.mjs +146 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +614 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +214 -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/seed_recipes.test.mjs +261 -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/diagnostics.mjs +196 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1562 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +2714 -0
- package/i18n/skills/a2h-utg-static/SKILL.md +372 -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 +2190 -0
- package/i18n/skills/a2h-utg-static/scripts/audit.mjs +268 -0
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +720 -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/data_model.mjs +590 -0
- package/i18n/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
- package/i18n/skills/a2h-utg-static/scripts/fragment_nav.mjs +1137 -0
- package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +705 -0
- package/i18n/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
- package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +958 -0
- package/i18n/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
- package/i18n/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
- package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +545 -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 +125 -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_data_model.mjs +120 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +113 -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_provenance.mjs +150 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +457 -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 +78 -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_routes.mjs +161 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +330 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -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 +1394 -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 +11 -161
- 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 +31 -12
- package/skills/a2h-app-migrate/references/config.example.json +1 -0
- package/skills/a2h-app-migrate/references/feature-scope.md +121 -0
- package/skills/a2h-app-migrate/references/stage-map.md +4 -2
- package/skills/a2h-app-migrate/references/workflow.yaml +427 -103
- package/skills/a2h-app-migrate/scripts/android_index.mjs +35 -8
- package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +39 -1
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +78 -6
- package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +144 -9
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +14 -1
- package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +46 -5
- package/skills/a2h-app-migrate/scripts/diagnose.mjs +162 -0
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +178 -44
- package/skills/a2h-app-migrate/scripts/feature_scope.mjs +347 -0
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +81 -11
- package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +17 -1
- package/skills/a2h-app-migrate/scripts/ledger.mjs +80 -10
- package/skills/a2h-app-migrate/scripts/migration_manifest.mjs +351 -0
- package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +9 -23
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +72 -12
- package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +33 -1
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +137 -41
- package/skills/a2h-app-migrate/scripts/scope_model.mjs +255 -0
- package/skills/a2h-app-migrate/scripts/scope_report.mjs +128 -0
- package/skills/a2h-app-migrate/scripts/source_fp.mjs +120 -0
- 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 +143 -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 +713 -0
- package/skills/a2h-app-migrate/test/test_feature_scope.mjs +217 -0
- package/skills/a2h-app-migrate/test/test_finalize.mjs +117 -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_incremental_acceptance.mjs +145 -0
- package/skills/a2h-app-migrate/test/test_incremental_phase2.mjs +223 -0
- package/skills/a2h-app-migrate/test/test_incremental_phase2_acceptance.mjs +157 -0
- package/skills/a2h-app-migrate/test/test_incremental_profile.mjs +84 -0
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +101 -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 +150 -0
- package/skills/a2h-app-migrate/test/test_migration_manifest.mjs +225 -0
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +86 -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 +271 -0
- package/skills/a2h-app-migrate/test/test_resume_summary.mjs +222 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +136 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +552 -0
- package/skills/a2h-app-migrate/test/test_scope_model.mjs +172 -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 +155 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +263 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +165 -0
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +511 -0
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_capture_audit.mjs +106 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +65 -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 +214 -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 +20 -17
- 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 +25 -14
- package/skills/a2h-arch-generate/references/module-evidence-subagent.md +2 -2
- package/skills/a2h-arch-generate/references/source-baseline.md +4 -4
- package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +34 -3
- package/skills/a2h-arch-generate/scripts/create_project.mjs +24 -1
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +35 -46
- package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +29 -5
- 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 +208 -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 +164 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +2 -5
- package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +4 -2
- package/skills/a2h-arkts-logic-coder/SKILL.md +163 -15
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +3 -1
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +120 -1
- package/skills/a2h-arkts-logic-coder/references/spec-design.md +46 -11
- 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 +873 -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 +596 -0
- package/skills/a2h-batch-ui-align/SKILL.md +78 -26
- package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +16 -2
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +5 -1
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +6 -1
- package/skills/a2h-batch-ui-align/references/cards/interaction.md +2 -1
- package/skills/a2h-batch-ui-align/references/cards/resources.md +9 -3
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +27 -3
- package/skills/a2h-batch-ui-align/references/cards/window.md +2 -1
- package/skills/a2h-batch-ui-align/references/checker-rules.md +301 -13
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +53 -13
- package/skills/a2h-batch-ui-align/references/host-dispatch.md +2 -0
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +28 -9
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +14 -9
- 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/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +28 -1
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +30 -0
- package/skills/a2h-batch-ui-align/references/step3-capture.md +25 -6
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +7 -2
- package/skills/a2h-batch-ui-align/references/step5-convert.md +33 -9
- package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +6 -7
- package/skills/a2h-batch-ui-align/scripts/branch_coverage.mjs +155 -0
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +463 -22
- package/skills/a2h-batch-ui-align/scripts/capture_audit.mjs +474 -0
- package/skills/a2h-batch-ui-align/scripts/capture_fast.mjs +665 -0
- package/skills/a2h-batch-ui-align/scripts/capture_verify.mjs +552 -0
- package/skills/a2h-batch-ui-align/scripts/detach.mjs +5 -2
- package/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +263 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +20 -3
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +4 -5
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +220 -35
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +517 -41
- package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +147 -0
- package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +231 -54
- package/skills/a2h-batch-ui-align/scripts/list_existing.mjs +141 -0
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +239 -14
- package/skills/a2h-batch-ui-align/scripts/page_gap.mjs +210 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +98 -11
- package/skills/a2h-batch-ui-align/scripts/progress_identity.mjs +208 -0
- package/skills/a2h-batch-ui-align/scripts/scroll_verdict.mjs +62 -0
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +118 -4
- package/skills/a2h-batch-ui-align/scripts/shell_requests.mjs +273 -0
- package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +9 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +231 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/baseline.ts +79 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +1 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +90 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +44 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +61 -12
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +32 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +3 -17
- 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/attr_chain.ts +1 -19
- 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/dialog_backboard.ts +91 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/event_default_click.ts +179 -0
- 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/hit_test.ts +339 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/image_source.ts +84 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/input_traps.ts +249 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +234 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_host.ts +145 -0
- 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 +110 -12
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_binds.ts +56 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_string.ts +96 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +179 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +3 -2
- 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/relative_container_height.ts +102 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +54 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/runtime_traps.ts +440 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -23
- 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/swiper_index.ts +65 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +184 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/waterflow_sections.ts +231 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +4 -4
- 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 +30 -2
- package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +231 -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_baseline.test.mjs +129 -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_coolmall_runtime2.test.mjs +697 -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_hit_test.test.mjs +298 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_input_runtime.test.mjs +514 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +651 -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_overlay_lottie.test.mjs +199 -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 +269 -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_runtime_api.test.mjs +346 -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_theme_runtime.test.mjs +95 -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/branch_coverage.test.mjs +116 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +693 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +291 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_audit.test.mjs +179 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_fast.test.mjs +56 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_gate.test.mjs +197 -0
- package/skills/a2h-batch-ui-align/scripts/tests/capture_review_fixes.test.mjs +322 -0
- package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +93 -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 +435 -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/fixtures/icon_drift_search_sheet/SearchMenuDialog.buggy.ets +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/meta.json +21 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/screenshot.png +0 -0
- package/skills/a2h-batch-ui-align/scripts/tests/fixtures/icon_drift_search_sheet/page_0002_SearchMenuFragment/view.xml +35 -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_pack_evidence.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1782 -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/icon_coverage.test.mjs +314 -0
- package/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
- package/skills/a2h-batch-ui-align/scripts/tests/list_existing.test.mjs +157 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +326 -0
- package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/skills/a2h-batch-ui-align/scripts/tests/page_gap.test.mjs +115 -0
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +356 -0
- package/skills/a2h-batch-ui-align/scripts/tests/progress_identity.test.mjs +174 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +302 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_requests.test.mjs +158 -0
- package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +60 -0
- package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +395 -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-coldstart-smoke-gate/SKILL.md +7 -4
- 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_device_locale_dialogs.mjs +17 -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/SKILL.md +51 -13
- package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +66 -11
- 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_incremental_fingerprint.mjs +94 -0
- package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/skills/a2h-page-specgen/SKILL.md +240 -0
- package/skills/a2h-page-specgen/references/behavior-ledger.md +1170 -0
- package/skills/a2h-page-specgen/references/body-language.md +179 -0
- package/skills/a2h-page-specgen/references/evidence.md +105 -0
- package/skills/a2h-page-specgen/references/execution-model.md +364 -0
- package/skills/a2h-page-specgen/references/footprint-and-grouping.md +255 -0
- package/skills/a2h-page-specgen/references/gates.md +323 -0
- package/skills/a2h-page-specgen/references/page-inventory.md +220 -0
- package/skills/a2h-page-specgen/references/scenario-authoring.md +272 -0
- package/skills/a2h-page-specgen/references/spec-example.md +312 -0
- package/skills/a2h-page-specgen/references/spec-template.md +210 -0
- package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +2436 -0
- package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +1833 -0
- package/skills/a2h-page-specgen/scripts/behavior-model.mjs +181 -0
- package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +1205 -0
- package/skills/a2h-page-specgen/scripts/dispatch.mjs +212 -0
- package/skills/a2h-page-specgen/scripts/entry-evidence.mjs +1123 -0
- package/skills/a2h-page-specgen/scripts/facts-build.mjs +1613 -0
- package/skills/a2h-page-specgen/scripts/finalize.mjs +825 -0
- package/skills/a2h-page-specgen/scripts/footprint.mjs +1650 -0
- package/skills/a2h-page-specgen/scripts/gate.mjs +848 -0
- package/skills/a2h-page-specgen/scripts/interactions.mjs +344 -0
- package/skills/a2h-page-specgen/scripts/inventory.mjs +371 -0
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +155 -0
- package/skills/a2h-page-specgen/scripts/lib/deps-source.mjs +399 -0
- package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +229 -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/graph-evidence.mjs +235 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +683 -0
- package/skills/a2h-page-specgen/scripts/lib/homegraph-process.mjs +102 -0
- package/skills/a2h-page-specgen/scripts/lib/homegraph-query.mjs +161 -0
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +478 -0
- package/skills/a2h-page-specgen/scripts/lib/main-module.mjs +24 -0
- package/skills/a2h-page-specgen/scripts/lib/operation-reviews.mjs +913 -0
- package/skills/a2h-page-specgen/scripts/lib/prose.mjs +238 -0
- package/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/skills/a2h-page-specgen/scripts/lib/recovery-policy.mjs +28 -0
- package/skills/a2h-page-specgen/scripts/lib/scope.mjs +355 -0
- package/skills/a2h-page-specgen/scripts/lib/semantic-detail.mjs +353 -0
- package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +497 -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/operation-evidence.mjs +1542 -0
- package/skills/a2h-page-specgen/scripts/prepare.mjs +840 -0
- package/skills/a2h-page-specgen/scripts/render.mjs +294 -0
- package/skills/a2h-page-specgen/scripts/report.mjs +340 -0
- package/skills/a2h-page-specgen/scripts/submission.mjs +697 -0
- package/skills/a2h-page-specgen/scripts/submit.mjs +85 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/README.md +77 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +871 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.java +15 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.json +26 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.java +36 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.json +43 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +2694 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +726 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +108 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.review.md +65 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +265 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.java +47 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.json +54 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +347 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +298 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/branch-checklist.md +32 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/gate-results.json +22 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/manifest.json +111 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/portability.test.mjs +141 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/review.md +22 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +515 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/cases.example.json +57 -0
- package/skills/a2h-page-specgen/scripts/test/android-entry-evidence.test.mjs +585 -0
- package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +755 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-group.test.mjs +543 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-post.test.mjs +652 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +1231 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-component-gate.test.mjs +494 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +1513 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-finalize.test.mjs +758 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +623 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-model.test.mjs +116 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +795 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-regression.test.mjs +883 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +205 -0
- package/skills/a2h-page-specgen/scripts/test/dispatch.test.mjs +258 -0
- package/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +475 -0
- package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1203 -0
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +243 -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 +112 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.java +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanels.kt +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/BottomPanelsKotlinForms.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ChildContent.java +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ComposeLifecycle.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleCallAndOverride.java +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/LifecycleHooks.kt +31 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/MainFragment.java +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyLifecycleHooks.kt +12 -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/src/RefreshOnResume.java +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/RefreshResultNoise.kt +36 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/SelectionView.java +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ShowPage.vue +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ThirdPartyLifecycle.kt +25 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/fragment_detail.xml +1 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/App.vue +1 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-conflict-record.json +17 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/bundle-record.json +17 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/manifest.json +3 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages/list/index.vue +80 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/pages.json +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/source-record.json +15 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/components/RefreshPanel.vue +15 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/composables/useRefresh.ts +50 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/pages/help/index.vue +9 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/uniapp-source/src/state/store.ts +4 -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 +1029 -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 +143 -0
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +1078 -0
- package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +332 -0
- package/skills/a2h-page-specgen/scripts/test/helpers.mjs +188 -0
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +549 -0
- package/skills/a2h-page-specgen/scripts/test/homegraph-process-fixture.mjs +130 -0
- package/skills/a2h-page-specgen/scripts/test/homegraph-query.test.mjs +288 -0
- package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +368 -0
- package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +310 -0
- package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +250 -0
- package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +776 -0
- package/skills/a2h-page-specgen/scripts/test/ledger-lock.test.mjs +77 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +464 -0
- package/skills/a2h-page-specgen/scripts/test/main-module.test.mjs +43 -0
- package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +1002 -0
- package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1103 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-homegraph-reproduction.mjs +365 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-homegraph.test.mjs +569 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +160 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-pipeline.test.mjs +326 -0
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +236 -0
- package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +398 -0
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +531 -0
- package/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +418 -0
- package/skills/a2h-page-specgen/scripts/test/recovery-policy.test.mjs +14 -0
- package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +1782 -0
- package/skills/a2h-page-specgen/scripts/test/render.test.mjs +546 -0
- package/skills/a2h-page-specgen/scripts/test/report.test.mjs +296 -0
- package/skills/a2h-page-specgen/scripts/test/review-followup.test.mjs +467 -0
- package/skills/a2h-page-specgen/scripts/test/scope.test.mjs +292 -0
- package/skills/a2h-page-specgen/scripts/test/semantic-detail.test.mjs +949 -0
- package/skills/a2h-page-specgen/scripts/test/source-text.test.mjs +181 -0
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +1231 -0
- package/skills/a2h-page-specgen/scripts/test/uniapp-operation-evidence.test.mjs +639 -0
- package/skills/a2h-page-specgen/scripts/test/utg-footprint-contract.test.mjs +274 -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 +1801 -0
- package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +1993 -0
- package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +342 -0
- package/skills/a2h-page-specgen/scripts/waker.mjs +1301 -0
- package/skills/a2h-page-specgen/scripts/watchdog.mjs +299 -0
- package/skills/a2h-resource-convert/SKILL.md +9 -1
- package/skills/a2h-resource-convert/references/code-vector-icon-rules.md +2 -1
- package/skills/a2h-resource-convert/references/incremental-page-migration.md +23 -2
- package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +7 -0
- package/skills/a2h-resource-convert/references/step4-resource-types.md +2 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +115 -53
- package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +68 -0
- package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +45 -3
- package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +42 -5
- package/skills/a2h-resource-convert/scripts/lottie_hosts.ts +415 -0
- package/skills/a2h-resource-convert/scripts/lottie_refs.ts +398 -0
- package/skills/a2h-resource-convert/scripts/merge_mapping.ts +316 -0
- package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +2 -1
- 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/code_vector_guard.test.mjs +75 -0
- package/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/skills/a2h-resource-convert/scripts/tests/lottie_hosts.test.mjs +222 -0
- package/skills/a2h-resource-convert/scripts/tests/lottie_incremental.test.mjs +178 -0
- package/skills/a2h-resource-convert/scripts/tests/merge_mapping.test.mjs +201 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +98 -121
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +170 -45
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +62 -12
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +6 -4
- package/skills/a2h-spec-design-pipeline/references/homegraph-cli.md +229 -0
- package/skills/a2h-spec-design-pipeline/references/initialization.md +49 -6
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +198 -54
- package/skills/a2h-spec-design-pipeline/references/permission-index.json +206 -0
- package/skills/a2h-spec-design-pipeline/references/post-loop.md +23 -0
- package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +67 -0
- package/skills/a2h-spec-design-pipeline/references/review-loop.md +46 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +47 -14
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +390 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +148 -29
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +104 -24
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +18 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +16 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +47 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +31 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +698 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +96 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +103 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +124 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +138 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +106 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +113 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +705 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +1063 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +473 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/platform/ExtraDataSubCheck.js +485 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +13 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +18 -0
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +12 -38
- package/skills/a2h-spec-design-pipeline/scripts/check_design_map.ts +108 -0
- package/skills/a2h-spec-design-pipeline/scripts/check_permissions.ts +420 -0
- package/skills/a2h-spec-design-pipeline/scripts/check_review_evidence.ts +45 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +95 -7
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +156 -7
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +71 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +22 -3
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +63 -4
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +33 -3
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +2 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +232 -13
- package/skills/a2h-spec-design-pipeline/scripts/ensure_index.ts +866 -0
- package/skills/a2h-spec-design-pipeline/scripts/fixtures/homecheck-stub.cjs +47 -0
- package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +220 -44
- 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 +178 -14
- package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +3 -0
- package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +368 -0
- package/skills/a2h-spec-design-pipeline/scripts/scan_shared.ts +642 -0
- package/skills/a2h-spec-design-pipeline/scripts/sync_permission_index.ts +340 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +281 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +690 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_check_design_map.ts +46 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_check_permissions.ts +201 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +42 -8
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +27 -9
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +242 -9
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +192 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +531 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +49 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +92 -4
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +51 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index.ts +572 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_index_real.ts +56 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +17 -10
- package/skills/a2h-spec-design-pipeline/scripts/test_homegraph_docs.ts +217 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_permission_index.ts +214 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +155 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +308 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +14 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +401 -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 +165 -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 +89 -23
- 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/specs.schema.json +24 -11
- 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/ensure-index.mjs +1 -2
- 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 +229 -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/SKILL.md +9 -3
- package/skills/a2h-utg-explorer/references/architecture.md +7 -0
- package/skills/a2h-utg-explorer/scripts/audit.mjs +8 -2
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +120 -85
- package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +47 -2
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +1 -2
- package/skills/a2h-utg-explorer/scripts/hybrid_route_cdp.mjs +376 -0
- package/skills/a2h-utg-explorer/scripts/plan.mjs +8 -0
- package/skills/a2h-utg-explorer/scripts/recover.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +288 -21
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +5 -3
- package/skills/a2h-utg-explorer/scripts/report.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +67 -10
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +10 -2
- package/skills/a2h-utg-explorer/scripts/seed_recipes.mjs +426 -0
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/tests/blank_wait.test.mjs +126 -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/default_override.test.mjs +109 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +160 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_locale_dialogs.test.mjs +29 -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/diagnostics.test.mjs +254 -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/foreground_spelling.test.mjs +155 -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/hybrid_route.test.mjs +120 -0
- package/skills/a2h-utg-explorer/scripts/tests/hybrid_route_identity.test.mjs +146 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +614 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +214 -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/pr169_review_fixes.test.mjs +218 -0
- package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +292 -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/recover_d_grounding.test.mjs +164 -0
- package/skills/a2h-utg-explorer/scripts/tests/replay_reroute.test.mjs +143 -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 +458 -0
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle_follow.test.mjs +35 -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/seed_recipes.test.mjs +261 -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 +135 -7
- package/skills/a2h-utg-explorer/scripts/utg_explorer/diagnostics.mjs +196 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/hybrid_route.mjs +140 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +245 -69
- package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +47 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +164 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +718 -42
- package/skills/a2h-utg-explorer/scripts/variant.mjs +57 -11
- package/skills/a2h-utg-static/SKILL.md +6 -2
- package/skills/a2h-utg-static/scripts/assemble.mjs +93 -3
- package/skills/a2h-utg-static/scripts/click_paths.mjs +135 -25
- package/skills/a2h-utg-static/scripts/compose_body_text.mjs +3 -3
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +110 -3
- package/skills/a2h-utg-static/scripts/compose_titles.mjs +5 -5
- package/skills/a2h-utg-static/scripts/compose_widgets.mjs +4 -4
- package/skills/a2h-utg-static/scripts/data_model.mjs +590 -0
- package/skills/a2h-utg-static/scripts/data_producers.mjs +431 -0
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +2 -3
- package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +46 -1
- package/skills/a2h-utg-static/scripts/label_resolve.mjs +49 -4
- package/skills/a2h-utg-static/scripts/lib/hybrid-provenance.mjs +201 -0
- package/skills/a2h-utg-static/scripts/lib/uniapp-routes.mjs +195 -0
- package/skills/a2h-utg-static/scripts/menu_nav.mjs +1 -1
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +34 -7
- 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/run_pipeline.mjs +86 -4
- 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_carry_answers.mjs +30 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +18 -0
- package/skills/a2h-utg-static/scripts/tests/test_data_model.mjs +120 -0
- package/skills/a2h-utg-static/scripts/tests/test_data_producers.mjs +114 -0
- package/skills/a2h-utg-static/scripts/tests/test_guard_kinds_locale.mjs +12 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_provenance.mjs +150 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +165 -1
- package/skills/a2h-utg-static/scripts/tests/test_library_activity.mjs +45 -0
- package/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +38 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +35 -1
- package/skills/a2h-utg-static/scripts/tests/test_nl_hints_default_override.mjs +50 -0
- package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +21 -0
- package/skills/a2h-utg-static/scripts/tests/test_pr169_review_fixes.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_redirect_path_cost.mjs +136 -0
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +29 -1
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_route_jump.mjs +175 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_routes.mjs +161 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +99 -0
- package/skills/a2h-utg-static/scripts/tests/test_utg_specgen_boundary.mjs +45 -0
- package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +21 -0
- package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +112 -69
- package/skills/a2h-utg-static/scripts/vm_nav.mjs +9 -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/ensure_wt_index.ts +0 -885
- 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_ensure_wt_index.ts +0 -856
- 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
|
@@ -42,7 +42,7 @@ Full batch mode also needs (incremental mode: the device is optional; without on
|
|
|
42
42
|
| One online device/emulator | `adb devices` lists the serial you will pass (the explorer requires an explicit serial). If the caller passed `ADB_SERIAL` (and `ADB_PATH`), use that device and that adb | ask the user which device; do not pick one |
|
|
43
43
|
| `homegraph` | `homegraph --version` | Step 3.1 cannot index the source; ask the user |
|
|
44
44
|
|
|
45
|
-
Both modes also need **background sub-agents** and **pre-approved writes**. Run `node ./scripts/host_env.mjs check` and follow its `action`: `none` means go on; `enable` / `restart` (opencode v1, DevEco) means the user must restart the host session with the flag set, so stop until they do, or continue with blocking waves if they decline. The session must be allowed to edit under `harmony_project_dir` and run `node <this skill>/scripts/*`, `node <a2h-utg-*>/scripts/*` and `adb` without asking, because sub-agents inherit the parent's permissions. Host-by-host detail (version checks, `verify`, the flags): [references/host-dispatch.md](references/host-dispatch.md).
|
|
45
|
+
Both modes also need **background sub-agents** and **pre-approved writes**. Run `node ./scripts/host_env.mjs check` and follow its `action`: `none` means go on; `enable` / `restart` (opencode v1, DevEco) means the user must restart the host session with the flag set, so stop until they do, or continue with blocking waves if they decline (a caller that pre-answers, e.g. the migrate workflow in auto, means declined). The session must be allowed to edit under `harmony_project_dir` and run `node <this skill>/scripts/*`, `node <a2h-utg-*>/scripts/*` and `adb` without asking, because sub-agents inherit the parent's permissions. Host-by-host detail (version checks, `verify`, the flags): [references/host-dispatch.md](references/host-dispatch.md).
|
|
46
46
|
|
|
47
47
|
### Step 0.1 — How sub-agents are dispatched (every step)
|
|
48
48
|
|
|
@@ -55,7 +55,7 @@ Every sub-agent of this skill (Step 2 resources, Step 3 reviewers, Step 5 groups
|
|
|
55
55
|
5. **Sub-agents cannot dispatch sub-agents**; every prompt says so.
|
|
56
56
|
5a. **`image_read=false` (Step 1)**: every prompt opens with the `NO_IMAGE` block of `scripts/group_queue.mjs` (`lease` adds it to group messages; the parent adds it to the others), and the parent never opens an image either.
|
|
57
57
|
6. **Without background sub-agents** each `lease` is dispatched as one blocking wave; say so in Step 7.
|
|
58
|
-
7. **One parent per campaign.** A new session re-runs `group_queue.mjs init`, which keeps results. Before writing anything under `.hometrans/`, check that no other parent is still driving the campaign (`Q init` refuses with `another parent session may still be driving this campaign`); if one may be, ask the user: monitor only, or `init --takeover`. A monitoring session never calls `Q wait` / `lease` / `reap` / `refresh`.
|
|
58
|
+
7. **One parent per campaign.** A new session re-runs `group_queue.mjs init`, which keeps results. Before writing anything under `.hometrans/`, check that no other parent is still driving the campaign (`Q init` refuses with `another parent session may still be driving this campaign`); if one may be, ask the user: monitor only, or `init --takeover`. A monitoring session never calls `Q wait` / `lease` / `reap` / `refresh`. The previous parent's heartbeat (`.hometrans/queue_parent.json`, written by every queue command and each `wait` poll) settles a crash: when it is older than 10 min and no group or reviewer activity followed it, `init` resumes without `--takeover` and returns that parent's still-running background jobs as `adopt_jobs` (wait on them with `wait --job`; do not restart or kill them). A refusal that a crash could explain ends with `retry_after_s=N`: a session that cannot ask the user re-runs `init` after N s instead of giving up.
|
|
59
59
|
|
|
60
60
|
## Step 1 — Parse User Request
|
|
61
61
|
|
|
@@ -71,9 +71,10 @@ Extract from the user's message (natural language, no fixed format):
|
|
|
71
71
|
| `pages` (optional) | A page subset the user listed explicitly | "1. .../page_0001_X" ... |
|
|
72
72
|
| `android_index_ready` (optional) | `true` when the caller has just built and synced `android_project_dir`'s HomeGraph index and other agents read it concurrently (a2h-app-migrate does). Step 3.1 then skips `homegraph init` / `homegraph index` | — |
|
|
73
73
|
| `reuse_static_workspace` (optional) | A finished static-UTG workspace from this run's `discover.utg_static`. When set, Step 3.1 may copy it into `.hometrans/utg_static` and skip the pipeline. Omit it whenever that discover step did not run | — |
|
|
74
|
-
| `image_read` (optional) | `true` \| `false`: whether this host's sub-agents can read image files
|
|
74
|
+
| `image_read` (optional) | `true` \| `false`: whether this host's sub-agents can read image files. a2h-app-migrate may probe at bootstrap for a tip only and **must not** pass the result here — when called from migrate, **probe again** (below). Standalone callers may pass it; **when not passed, probe it** before the first dispatch; never assume `true`, and never probe by opening an image in the parent | — |
|
|
75
75
|
| `MODE` | `full` \| `incremental`, per Mode Routing | existing Harmony version + a named page/module ⇒ `incremental` |
|
|
76
|
-
| `scope_request` | **Incremental only, required.** The user's own words for the range | "短视频播放页", "短视频模块所有缺失页面" |
|
|
76
|
+
| `scope_request` | **Incremental only, required unless `scope_file` is given.** The user's own words for the range | "短视频播放页", "短视频模块所有缺失页面" |
|
|
77
|
+
| `scope_file` | Incremental only. A `scope.json` already confirmed per feature (a2h-app-migrate `discover.feature_scope`); skips I1–I4 (`references/incremental-scope.md` "Confirmed scope") | `<harmony>/.hometrans/incremental/scope.json` |
|
|
77
78
|
|
|
78
79
|
If `android_project_dir`, `harmony_project_dir` or `apk_path` is missing, **ask the user**, and do not guess. In incremental mode, also ask if no page or module was named; do not fall back to converting everything. `ui_info_root` and `pages` have defaults, so never ask for them.
|
|
79
80
|
|
|
@@ -81,16 +82,18 @@ Then, once in the parent, resolve these and pass them to every later step and su
|
|
|
81
82
|
|
|
82
83
|
- **`host_caps.json`**: `${harmony_project_dir}/.hometrans/work/host_caps.json` must hold `image_read` before the first dispatch (Step 2). `group_queue.mjs` reads it on every lease (Step 0.1 item 5a).
|
|
83
84
|
- **Passed by the caller**: write `{"image_read": <true|false>}` as given.
|
|
84
|
-
- **Not passed → probe it with one throwaway sub-agent, before any other dispatch** (resources, reviewers and groups all wait for it, so a text-only host never loses a real unit to its first PNG):
|
|
85
|
+
- **Not passed → probe it with one throwaway sub-agent, before any other dispatch** (resources, reviewers and groups all wait for it, so a text-only host never loses a real unit to its first PNG; do this even if a2h-app-migrate already probed at bootstrap — that tip is not this campaign's verdict):
|
|
85
86
|
1. `node ./scripts/image_probe.mjs prepare --hp ${harmony_project_dir}` → one JSON line `{image, state, prompt}`.
|
|
86
87
|
2. Dispatch **one** fresh sub-agent with `prompt` verbatim, and wait for its reply in the foreground (it takes seconds; no `bind`, never resumed or reused). **The parent never reads the probe image itself**: on a text-only host that breaks the parent's own session.
|
|
87
|
-
3. Write its reply verbatim to a file, then `node ./scripts/image_probe.mjs verify --hp ${harmony_project_dir} --reply-file <that file
|
|
88
|
+
3. Write its reply verbatim to a file, then `node ./scripts/image_probe.mjs verify --hp ${harmony_project_dir} --reply-file <that file> --cleanup`. Write the reply file inside the probe directory (`.hometrans/work/image_probe/`, the `image` path's directory) so `--cleanup` removes it with the directory. If the sub-agent call errored (e.g. `messages.content.type` invalid), write the error text as the reply. Never put the reply on the command line: error texts are JSON with quotes, `$` and backticks that break shell quoting. The verdict is `true` for the right 4 digits or a one-digit near match (OCR slip ≠ host dropped the image), and `verify --hp` writes it with its `probe_reason` to `host_caps.json`.
|
|
88
89
|
4. Anything unexpected (the script exits non-zero, no sub-agent tool) → write `{"image_read": false}` and note why. Never fall back to `true`.
|
|
90
|
+
4a. Always finish with `node ./scripts/image_probe.mjs cleanup --hp ${harmony_project_dir}`, whatever happened above (it does nothing when `--cleanup` already removed everything). If its `left` is not null, delete that directory with the shell; if that also fails, note the path for Step 7 and continue.
|
|
91
|
+
5. If the verdict is `false`: tip the user once and **continue immediately** (no hard stop, no waiting) — this session cannot recognise images, so conversion will use view trees / measurements without screenshot visual comparison; to enable model screenshot recognition, switch to a multimodal model (Qwen3.8-Max, Kimi-K3, Opus-5 recommended), enable vision/image input, then **open a new session** and re-enter the original command. Do not tip the user to pass `image_read=`.
|
|
89
92
|
Step 7 reports how `image_read` was decided (passed / probed + `probe_reason`).
|
|
90
93
|
- **`ALL_MODULES`**: every module under `${harmony_project_dir}` with `src/main/ets` or `src/main/resources`.
|
|
91
94
|
- **`PARADIGM = V1 | V2`**: run `node ./scripts/detect_paradigm.mjs ${harmony_project_dir}` and use its `paradigm` field as-is (rule: `./references/state-mgmt/_范式选择说明.md`). Do not grep decorators by hand: the DevEco scaffold `pages/Index.ets` (`@Component` + `@State message`) is not evidence of an existing V1 project, and the script ignores it, so a freshly created project correctly defaults to V2. It is project-level, so sub-agents must not re-detect it.
|
|
92
95
|
- **References**: always skill-bundled, with no user override: mappings `./references/mappings/` and the state-management cheat sheet `./references/state-mgmt/_装饰器速查.md` (one file for both paradigms). They are loaded lazily. The official V1/V2 state-management docs are **not** bundled: a sub-agent reads one with `node ./scripts/state_doc.mjs read <key> --project ${harmony_project_dir}` (keys in the cheat sheet's 深读 columns, `list` prints them all), and only for what the cheat sheet doesn't cover. Prompts must never tell an agent to read a whole doc directory, and never to run `devecocli docs search` itself.
|
|
93
|
-
- **`STATE_DOCS`**: run `node ./scripts/state_doc.mjs check --project ${harmony_project_dir}` once (it resolves every key through `devecocli docs` and caches the IDs in `.hometrans/work/state_docs.json`). On exit 1 (meaning of each message: [references/host-dispatch.md](references/host-dispatch.md)), **stop and ask the user before Step 5**: fix it, or explicitly accept converting without the official docs. Only on that explicit acceptance, tell every prompt `STATE_DOCS=unavailable`; agents then use the cheat sheet alone, and the Step 7 report says so.
|
|
96
|
+
- **`STATE_DOCS`**: run `node ./scripts/state_doc.mjs check --project ${harmony_project_dir}` once (it resolves every key through `devecocli docs` and caches the IDs in `.hometrans/work/state_docs.json`). On exit 1 (meaning of each message: [references/host-dispatch.md](references/host-dispatch.md)), **stop and ask the user before Step 5**: fix it, or explicitly accept converting without the official docs (a caller's pre-answer counts as acceptance). Only on that explicit acceptance, tell every prompt `STATE_DOCS=unavailable`; agents then use the cheat sheet alone, and the Step 7 report says so.
|
|
94
97
|
|
|
95
98
|
## Step 2 — Resource Conversion
|
|
96
99
|
|
|
@@ -103,11 +106,13 @@ Run the `a2h-resource-convert` skill with:
|
|
|
103
106
|
|
|
104
107
|
It decodes the APK and converts strings, colors, drawables, images, Lottie and code-defined vector icons into `${harmony_project_dir}/${ui_module}/src/main/resources/`. It writes the mapping document and resolves `${app_module}` (Android application module) and `${ui_module}` (Harmony target module from `build-profile.json5`, e.g. `entry` or `products/phone`). Take both from its report for later steps.
|
|
105
108
|
|
|
106
|
-
**Full mode — run it as a background sub-agent (Step 0.1) and go on to Step 3.** Its outputs are not needed before Step 4.4, and a blocking sub-agent would hold the parent the whole time. Write the task above to `${harmony_project_dir}/.hometrans/work/prompts/resources.md` and dispatch one background sub-agent with: "Read `<that file>` and follow it fully. When done, write your full report to `${harmony_project_dir}/.hometrans/work/resources.report.md` and reply with one line `DONE resources`."
|
|
109
|
+
**Full mode — run it as a background sub-agent (Step 0.1) and go on to Step 3.** Its outputs are not needed before Step 4.4, and a blocking sub-agent would hold the parent the whole time. Write the task above to `${harmony_project_dir}/.hometrans/work/prompts/resources.md` and dispatch one background sub-agent with: "Read `<that file>` and follow it fully. When done, write your full report to `${harmony_project_dir}/.hometrans/work/resources.report.md` and reply with one line `DONE resources`." Then bind it so `wait` follows it: `Q review-bind ${harmony_project_dir} --name resources --kind skill-agent --answers <that report path>` (the 5.5 wiring and Step 6 verify agents likewise, with their report).
|
|
107
110
|
|
|
108
111
|
**Join before Step 4.4.** The join is the report file existing; an early host notice only means "check it now". While the file is missing and the agent still runs, do other work. If the agent ended without the file, resume it in its own session once (Step 0.1 item 4), and if that fails, run Step 2 blocking.
|
|
109
112
|
|
|
110
|
-
**Incremental mode — run it blocking, after I4's user confirmation.** Use that skill's incremental mode (`<a2h-resource-convert skill>/references/incremental-page-migration.md`) with the page source files from I1/I2 as `page_files
|
|
113
|
+
**Incremental mode — run it blocking, after I4's user confirmation.** Use that skill's incremental mode (`<a2h-resource-convert skill>/references/incremental-page-migration.md`) with the page source files from I1/I2 as `page_files` and `resource_mapping_path` = `${harmony_project_dir}/.hometrans/resource_mapping.md`, so its toolchain step 5 merges this scope's rows into the document Steps 4.3 and 4.4 read. It already handles reference closure, the already-migrated check, never auto-overwriting a same-name-different-value conflict, and merging element JSON; do not re-implement any of it here. It must finish before Step 4.3. Then check that the merge ran: `resource_mapping.md` exists and holds a Mapping Details row for a resource of the scope's pages (grep one name from the run's `converter_mapping.md`). If it does not, re-run that step 5 before Step 4.3, or Step 4.3 finds no Lottie section and the group packs resolve no `$r(...)` for this scope's resources.
|
|
114
|
+
|
|
115
|
+
**Incremental mode — record the static-check baseline before the first write.** The checker scans every module, so the user's own code can already fail a GATE (an orphaned component, a permission without `reason`). Before Step 2 writes anything into `harmony_project_dir`, first run Step 4.4's `shell_contract.mjs` command (`references/step4-prepare.md` "App shell"), then run the Step 6.1 command once with `--write-baseline ${harmony_project_dir}/.hometrans/work/static_baseline.<scope_id>.json` added (`scope_id` from `progress_identity.mjs resume`); it always exits 0. The contract comes first because the theme rules (`theme-color-literal`, `theme-sheet-background-default`, `theme-runtime-color-static`) read `.hometrans/shell_contract.json` and are skipped without it: a baseline recorded without the contract misses the user's pre-existing theme findings, and the first `phase5_check.mjs` then blocks on code this run never touched. Running it this early is safe: it writes only under `.hometrans/`, and its inputs are there (the static UTG is an I1 prerequisite; the theme and shell-host facts come from the Android source alone). Step 4.4 still runs it again, which fills in what only exists later (`conversion_set.json`'s `entry_node` / `launcher_host`, fonts Step 2 adds). Never re-record it later in the campaign, not even on resume: a baseline taken after a group wrote would excuse that group's defects. A new scope (another `scope_id`) records a fresh one under its own name; another scope's file is never read.
|
|
111
116
|
|
|
112
117
|
**Resource-fidelity gate (before Step 5, both modes).** If the report's **Vector Fidelity Issues** section has `error` rows, fix those resources first. A drawable with a dropped `clip-path`, or a stroke-only path given a solid `fill`, keeps its file name, so every page using it passes reference checks and compiles while rendering wrong. If no fresh report exists, run the checker directly (static, no device):
|
|
113
118
|
|
|
@@ -155,7 +160,7 @@ The parent drives `a2h-utg-explorer`'s `run_cycle.mjs` from its `scripts/` direc
|
|
|
155
160
|
```
|
|
156
161
|
|
|
157
162
|
**Convert while exploring.** Once Step 2's report exists: the first time run Step 4.4's `shell_contract.mjs`, Step 4.3 and `group_queue.mjs init`; every time, build packs and prompts for new groups and run one pass of the Step 5.4 loop before the next reviewer wave. When `finished` is true, run both commands once more without `--exploring`.
|
|
158
|
-
6. **Stop the fixture server** once `finished: true`, or when Step 3.2 is abandoned: `detach.mjs stop ${harmony_project_dir} --name fixture_server`, then `d_prereqs.mjs release --config $C/config.json`.
|
|
163
|
+
6. **Stop the fixture server** once `finished: true`, or when Step 3.2 is abandoned: `detach.mjs stop ${harmony_project_dir} --name fixture_server`, then `d_prereqs.mjs release --config $C/config.json`. Step 7 repeats this unconditionally (after stopping `run_cycle`), so a run that ends before `finished` does not leave it running.
|
|
159
164
|
|
|
160
165
|
Record for Step 7: coverage from `report.md`, phase states and `skipped` stages, `export_manifest.json` counts, `deferred_human.json`, and `conversion_set.json`'s `summary`.
|
|
161
166
|
|
|
@@ -171,6 +176,34 @@ Install the APK first (`adb [-s <ADB_SERIAL>] install -r -t <apk_path>`); the ex
|
|
|
171
176
|
|
|
172
177
|
**Coverage gate.** `pages_captured == 0`: stop and report (incremental mode without a device proceeds source-only and says so in Step 7). Otherwise report `captured / source-only / attached / skipped` before Step 5, and review the `skip` rows once; only the user re-includes a skipped page. Report `pages_tree_only` too: these are captured pages whose every screenshot was FLAG_SECURE-blocked, so only their view trees exist (step4-prepare.md item 6).
|
|
173
178
|
|
|
179
|
+
**Evidence quality gate** (`scripts/capture_verify.mjs`). Coverage counts directories; it does not ask whether a frame shows anything. Run it on the ui_info root and report the three numbers:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
node <this skill>/scripts/capture_verify.mjs <ui_info_root> --write --json <ui_info_root>/capture_quality.json
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
- `capture_verify` decodes each primary frame and classifies it `rich` / `sparse` / `none` **by pixels** — the only readiness signal that works for every shell (a hybrid page's view tree is a single WebView node, so `content_loading`'s `%1$s` test and the explorer's spinner test are both blind there). `export_ui_info.mjs` already writes the same record into `meta.capture_quality`; this command is what re-checks captures made by another tool, and what a resume runs before Step 4.
|
|
186
|
+
- `rejected` (`level: none`) = the frame draws nothing below the title/action bars. `build_conversion_set.mjs` demotes such a page to `source-only` (`summary.pages_capture_rejected`, `row.pixels: "rejected"`, `meta.degraded_from: "capture"`; `meta.evidence_tier` keeps the value the capture wrote, the marker alone makes the page source-only, and the directory and its verdict survive every rebuild and re-export) and `group_pack.mjs` prints an **EMPTY FRAME** banner in the group prompt. Do **not** re-include it by hand. Re-capture it in Step 3.2 when a device is available; otherwise convert it from source and say so.
|
|
187
|
+
- `sparse` = a few elements only (an empty state, or a page captured before its data arrived). It is kept as a *state* reference and the prompt says to take the layout from source. A real empty state (tabs + "No more data") lands here too: refusing it would throw away evidence, accepting it silently would rebuild a page from whitespace.
|
|
188
|
+
- Report both numbers — `captured` and `captured − rejected` — to the user before Step 5, and list the rejected page dirs in the Step 7 report.
|
|
189
|
+
|
|
190
|
+
**Capture contract gate** (`scripts/capture_audit.mjs`) — this is a machine gate, not advice. It is what stops a capture directory from being called `captured` just because it exists. Run it after `capture_verify.mjs` and before Step 4:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
node <this skill>/scripts/capture_audit.mjs <ui_info_root> \
|
|
194
|
+
--source <android_project_dir> --json <ui_info_root>/capture_audit.json
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Exit 0 is required. It checks, per page, that every declared screenshot/view tree exists and is paired, that the primary frame is not blank, that `pages.json` still lists every captured page, and — the failure this gate was written for — that **a page with a vertical scroll container has either proven scroll frames (`scroll_frames > 0` + `scroll_completeness: complete`) or a probe that proved there is no overflow (`not-scrollable`)**. The scroll rule is one function (`scripts/scroll_verdict.mjs`), shared by the audit, `build_conversion_set.mjs` and `group_pack.mjs`:
|
|
198
|
+
- **hard gap** (exit 1, not waivable; `scroll_gap` on the group, `group_queue.mjs` will not lease it): fake completion only, i.e. `complete` with 0 frames (`scroll_false_complete`), `not-scrollable` contradicted by the probe (`scroll_probe_conflict`), or a scroll container with no verdict at all (`scroll_unverified`);
|
|
199
|
+
- **degraded** (exit 0, head `DEGRADED`; `scroll_degraded` on the group, not held, the prompt carries the SINGLE VIEWPORT warning): an honest partial record, i.e. `truncated` (`scroll_truncated`), `not-swept`, `no-effect`, `aborted`, `unreached` (`scroll_partial`). The first viewport is real evidence and the rest comes from the Android source. `--allow-degraded --reason <text>` (or a `capture_waivers.json` entry) records the decision.
|
|
200
|
+
|
|
201
|
+
- Fix a gap with `scripts/capture_fast.mjs` (P1's fast hybrid path): it jumps the route, waits for content, probes the real scroll element, writes `screenshot_scroll_N.png` / `view_scroll_N.xml`, sets `scroll_completeness`, runs the pixel gate, and merges `pages.json` / `export_manifest.json` without shrinking them.
|
|
202
|
+
- If the page genuinely does not need a sweep, capture the probe (`not-scrollable`). **Hard evidence gaps cannot be waived**: `scroll_unverified`, `scroll_false_complete`, `scroll_probe_conflict`, `blank_capture`, `screenshot_missing`, `view_tree_missing`, `pages_json_gap` and `manifest_gap` must be fixed by capturing frames, recapturing the blank page, demoting it to source-only, or rebuilding `pages.json`. `--allow-degraded` records only degraded findings and non-evidence decisions; `auto` mode may not invent one. A `scroll_unverified` waiver in `capture_waivers.json` is ignored. In `a2h-app-migrate`, a hard gap neither stops the pipeline nor counts as a failed UI batch: `review.ui_batch` records `ui_status=evidence_gaps` with the gap list, and the final report lists it.
|
|
203
|
+
- Membership: `pages.json`, `pages_captured.json` (a `--scope` build's out-of-scope captures) and `export_manifest.json` `pages` + `earlier` all count. Only `page_*` dirs take part in `pages_json_gap` / `manifest_gap`; `activity_*` / `route_*` / `overlay_*` / `mode_*` / `dyn_*` / `manual_*` are read through the Step 4 Glob fallback.
|
|
204
|
+
- `naming_legacy` (e.g. `screen.png`) is a warning: the consumers now pair by `meta.screenshots`, but `capture_fast.mjs` writes the canonical `screenshot.png`.
|
|
205
|
+
|
|
206
|
+
|
|
174
207
|
## Step 4 — Prepare the Conversion Set
|
|
175
208
|
|
|
176
209
|
**Read [references/step4-prepare.md](references/step4-prepare.md) in full before starting Step 4.** It holds the page-set priority, exact-path validation, the plan field table, manual grouping, the Lottie index format, and the Step 4.4 pack commands with how to read and pass each pack.
|
|
@@ -191,8 +224,8 @@ Progress persists in `${harmony_project_dir}/.hometrans/batch_progress.json`:
|
|
|
191
224
|
"scope_id": "<incremental only: stable digest of the confirmed SCOPE member list>",
|
|
192
225
|
"updated_at": "<ISO timestamp>",
|
|
193
226
|
"stages": {
|
|
194
|
-
"resources": { "done": true, "at": "<ISO>" },
|
|
195
|
-
"capture": { "done": true, "
|
|
227
|
+
"resources": { "done": true, "at": "<ISO>", "scope_id": "<the scope_id it was set under; null in full mode>" },
|
|
228
|
+
"capture": { "done": true, "at": "<ISO>", "scope_id": "<same>" }
|
|
196
229
|
},
|
|
197
230
|
"pages": {
|
|
198
231
|
"page_0001_<A>Activity": { "status": "done", "output": "pages/<A>Page.ets", "summary": "..." },
|
|
@@ -204,15 +237,17 @@ Progress persists in `${harmony_project_dir}/.hometrans/batch_progress.json`:
|
|
|
204
237
|
```
|
|
205
238
|
|
|
206
239
|
- `status` is `pending` | `done` | `failed`; `tier` is `captured` | `source-only`.
|
|
207
|
-
- **Resume identity** is `harmony_project_dir` + `mode` + `scope_id`.
|
|
208
|
-
-
|
|
209
|
-
-
|
|
240
|
+
- **Resume identity** is `harmony_project_dir` + `mode` + `scope_id`. Never compare or compute it by hand: run `node ./scripts/progress_identity.mjs resume ${harmony_project_dir} --mode <full|incremental> [--scope ${harmony_project_dir}/.hometrans/incremental/scope.json]` before Step 2 and act on its one-line JSON. In incremental mode, `scope.json` (I5's format) is therefore written as soon as I4 is confirmed, not at I5. `scope_id` is a digest of the scope's node ids, independent of order; `conversion_set.json` `plan.scope_id` carries the same value, and `group_queue.mjs init` refuses a `batch_progress.json` whose `mode` / `scope_id` differ from the plan's (it never marks pages `done` from another run's file).
|
|
241
|
+
- `action: resume` (all three match): merge the file into the discovered set. `done` pages are skipped in Step 5, and `pending`/`failed` pages are (re)processed.
|
|
242
|
+
- `action: restart` (any one differs; `why` says which): this is a different run. The script has archived the old file (`archived`, named after the old `scope_id`, or `full`) and written a fresh one with every page `pending` and no stages.
|
|
243
|
+
- `action: restore` (full mode only): the identity differs, but an archived full run (`batch_progress.full[.<n>].json`) matches it, as after full → incremental → full. The script archived the current file (`archived`) and put that run back (`restored`); treat it as `resume`, including `skip`. Skipping Step 2 here is what keeps the element JSON the full run's pages merged into.
|
|
244
|
+
- `action: new`: no progress yet; the script wrote one with the identity.
|
|
210
245
|
- Before skipping a `done` page, check that its `output` still exists, otherwise treat it as `pending`.
|
|
211
246
|
- A page recorded `source-only` whose node is now `captured` resets to `pending`. It is re-converted against the capture, using the existing `.ets` as the starting point.
|
|
212
|
-
- **Stage markers: a resume does not redo finished stages.** The parent sets `
|
|
213
|
-
- `stages.resources.done` and `resource_mapping.md` exists: **skip Step 2
|
|
214
|
-
- `stages.capture.done` and `${ui_info_root}/pages.json` exists: **skip Step 3 (3.1–3.3)
|
|
215
|
-
- Re-run either stage only on an explicit user request ("重新转换资源" / "重新抓取"). Doing so invalidates the resume: archive `batch_progress.json` and start fresh.
|
|
247
|
+
- **Stage markers: a resume does not redo finished stages.** The parent sets them with `node ./scripts/progress_identity.mjs mark ${harmony_project_dir} --stage <resources|capture> [--scope <scope.json>]`, never by editing the file: `resources` after Step 2 succeeds, and `capture` only once capture has ended (full mode when `run_cycle.mjs` returned `finished: true` and Step 3.3 confirmed `pages.json`; incremental mode when I5's capture wrote `pages.json`). A `pages.json` written mid-exploration does not count. Each marker carries the `scope_id` it was set under, so one scope's finished stages never count for another: a second scope always runs its own Step 2 (its `page_files` differ) and records its own static-check baseline. `mark` exits 1 when the file belongs to another run. On a matching resume, `resume`'s `skip` says what to skip:
|
|
248
|
+
- `stages.resources.done` and `resource_mapping.md` exists: **skip Step 2** (`resume` reports it as `skip.resources`, and only for a marker set under this `scope_id`). Re-running it rewrites `resources/**/element/*.json`, wiping the entries page conversions and Scheduling rule 7 merged in, and media the Phase 5 fixes replaced.
|
|
249
|
+
- `stages.capture.done` and `${ui_info_root}/pages.json` exists: **skip Step 3 (3.1–3.3)** (`resume` reports it as `skip.capture`, only for a marker set under this `scope_id`; pass `--ui-info` when `ui_info_root` is not the default). A fresh capture renumbers `page_NNNN_*` / re-promotes captures, so the `pages` keys recorded as `done` would point at different snapshots. Without the marker, full mode resumes the campaign (`run_cycle.mjs` continues from `cycle_state.json`) instead of starting over.
|
|
250
|
+
- Re-run either stage only on an explicit user request ("重新转换资源" / "重新抓取"). Doing so invalidates the resume: archive `batch_progress.json` and start fresh. Name the archive `batch_progress.rerun-<ISO time>.json`: a `batch_progress.full*.json` name would be restored by the next full-mode `resume`.
|
|
216
251
|
|
|
217
252
|
If a task-tracking tool is available, create one task per page, with already-`done` pages marked completed. Report the split to the user (e.g. "Resuming: 7 done, 12 remaining").
|
|
218
253
|
|
|
@@ -226,11 +261,11 @@ If a task-tracking tool is available, create one task per page, with already-`do
|
|
|
226
261
|
|
|
227
262
|
7. **The shared registry surface is parent-owned while any other group is in flight.** Every concurrently dispatched group's prompt states: do not edit `main_pages.json`, `resources/**/element/*.json`, `oh-package*.json5`, `module.json5` or the ability's `loadContent()`. Instead, list the additions in the report under `registry_requests`. The parent applies each group's requests when that group is released, one group at a time. Merge, never overwrite: an existing name with a different value is a conflict, so keep the existing value and record it in the report.
|
|
228
263
|
- **5.4** Never dispatch blocking waves. `Q init` once, then one pass per parent turn: release (`Q reap` → `Q release`), lease and dispatch (`Q lease`, pass `message` verbatim, `Q bind`), verify every `returned_unverified` group (`phase5_check.mjs --group`, `Q verified`, `group_commit.mjs`), then `Q wait` with a shell timeout above 9 min. Go on only when `summary.idle` is true, nothing is unverified and `summary.stuck` is empty.
|
|
229
|
-
- **5.5** One background sub-agent (Step 0.1) does the wiring: confirm every `registry_requests` was applied, wire self-contained components and shell hosts, and wire navigation from `navigates_to`. No group is in flight any more, so this agent may edit the registry surface of Rule 7. The parent writes `${harmony_project_dir}/.hometrans/work/prompts/wiring.md` (the Step 5.5 procedure of step5-convert.md plus its inputs), dispatches it the way Step 2 is dispatched, and joins on `.hometrans/work/wiring.report.md`. **Gate (parent re-checks after the join):** `orphan-component` is zero, and `phase5_check.mjs --files <every file changed since the last group commit>` has `blocking` 0, before Step 6. Take that file list from `git status --porcelain` (modified and untracked), not from the report: a file the agent edited but left out of the report would otherwise skip the gate and still be committed. The parent then commits the wiring.
|
|
264
|
+
- **5.5** One background sub-agent (Step 0.1) does the wiring: confirm every `registry_requests` was applied, wire self-contained components and shell hosts, and wire navigation from `navigates_to`. No group is in flight any more, so this agent may edit the registry surface of Rule 7. The parent writes `${harmony_project_dir}/.hometrans/work/prompts/wiring.md` (the Step 5.5 procedure of step5-convert.md plus its inputs), dispatches it the way Step 2 is dispatched, and joins on `.hometrans/work/wiring.report.md`. **Gate (parent re-checks after the join):** `orphan-component` is zero, and `phase5_check.mjs --files <every file changed since the last group commit>` has `blocking` 0, and `node scripts/shell_requests.mjs verify --hp ${harmony_project_dir}` exits 0 (every ledger id answered, every deleted `.ets` has its merge line), before Step 6. Run `shell_requests.mjs collect` before writing `wiring.md` and put its table in the prompt; carry every `deferred` row into Step 7's Manual Follow-up TODOs. Take that file list from `git status --porcelain` (modified and untracked), not from the report: a file the agent edited but left out of the report would otherwise skip the gate and still be committed. The parent then commits the wiring.
|
|
230
265
|
|
|
231
266
|
## Step 6 — Static Check, Build, Smoke Gate
|
|
232
267
|
|
|
233
|
-
**Steps 6.1–6.
|
|
268
|
+
**Steps 6.1–6.3 run in one background sub-agent (Step 0.1), dispatched after the Step 5.5 gate passes and the wiring is committed.** The parent writes `${harmony_project_dir}/.hometrans/work/prompts/verify.md` with this whole Step 6 section, `harmony_project_dir`, `android_project_dir`, `ui_module`, `ALL_MODULES`, `DEVECO_HOME`, `ADB_SERIAL` / `ADB_PATH` and `ui_info_root`, and dispatches it the way Step 2 is dispatched: "Read `<that file>` and follow it fully. When done, write your full report to `${harmony_project_dir}/.hometrans/work/verify.report.md` and reply with one line `DONE verify`." The agent itself runs the `a2h-fix-build-errors` and `a2h-coldstart-smoke-gate` skills (neither dispatches sub-agents). It never asks the user. A login in the smoke gate comes back as its `DEPLOY_ERROR` with the instruction. Where `a2h-fix-build-errors` would ask (no DevEco path resolves, `devecocli` is not on PATH), the agent stops, writes `BLOCKED: <the human step>` at the top of the report and ends; the parent relays that step to the user and resumes the agent once it is done. The prompt forbids `git` and dispatching sub-agents. The report carries, for Step 7: the 6.1 `[GATE]` count of the last run and every `[CANDIDATES]` item reviewed but deliberately not fixed, with the reason; the 6.2 outcome; the 6.3 verdict with evidence path; and every file edited.
|
|
234
269
|
|
|
235
270
|
**Join** on the report file, as in Step 2. Then the parent re-runs the 6.1 command once (it takes under a second); a non-zero `[GATE]` means the agent's report is wrong, so resume the agent in its own session with that output. The parent also runs `phase5_check.mjs --files` on every file `git status --porcelain` shows since the wiring commit (`blocking` 0), for the same reason as in 5.5. The parent commits the agent's fixes and writes Step 7 from the report.
|
|
236
271
|
|
|
@@ -259,6 +294,7 @@ node ./scripts/arkts_static_check.ts \
|
|
|
259
294
|
- **Union of roots.** Cross-module facts are resolved over the union of the roots passed: `orphan-component`'s import surface, `entry-route-not-converted`'s `loadContent` target, and resource lookups. Pass every participating module.
|
|
260
295
|
- **`--android`** enables the immersive cross-check. It greps for `enableEdgeToEdge` / `setDecorFitsSystemWindows` and, when no Harmony component extends into the bars (`ignoresLayoutSafeAreaEdges` / `expandSafeArea`), lists the call sites under `[CANDIDATES]`. This defect is invisible on the Harmony side alone, because an edge-to-edge page looks the same shape as a bar-avoiding one. It also enables the GATE `framework-picker-appearance`: an Android `TimePicker` / `DatePicker` (or their dialogs) in its default clock / calendar mode, converted to the ArkUI wheel of the same name (conversion-procedure.md Phase 4.3「外观替换」). Omitted, both checks are skipped silently. Independent of `--android`, `window-fullscreen-layout` and `system-bar-height-read` are GATEs: a window-level full-screen layout, or any read of a bar height, breaks the `system_bars` policy.
|
|
261
296
|
- **`--resources`** enables three GATE rules that read the *content* of referenced SVGs, because a resource that exists can still render as a black, white or grey box (icon tiering: conversion-procedure.md Phase 4.3). Omitted, they are skipped silently.
|
|
297
|
+
- **`--baseline`** (incremental mode): pass `--baseline ${harmony_project_dir}/.hometrans/work/static_baseline.<scope_id>.json` (Step 2). Findings the project had before this run are printed under `[BASELINE]` and do not count; every other finding gates as usual. Matching ignores line numbers, so edits above an old finding do not turn it into a new one. `phase5_check.mjs` applies the same file by itself when `batch_progress.json` says `mode: incremental`, picking it by that file's `scope_id`. Full mode never passes it.
|
|
262
298
|
|
|
263
299
|
Output has two sections, and the exit code is `1` only when the first is non-empty:
|
|
264
300
|
|
|
@@ -274,7 +310,7 @@ Once Step 6.1 has zero `[GATE]`, call the `a2h-fix-build-errors` skill with `har
|
|
|
274
310
|
|
|
275
311
|
### Step 6.3 — Cold-Start Smoke Gate
|
|
276
312
|
|
|
277
|
-
Run the `a2h-coldstart-smoke-gate` skill with `harmony_project_dir
|
|
313
|
+
Run the `a2h-coldstart-smoke-gate` skill with `harmony_project_dir` and `image_read` (Step 1), then record:
|
|
278
314
|
- the verdict, always, in Step 7's Build status;
|
|
279
315
|
- **every verdict other than `PASS`** in Manual Follow-up TODOs as well, never only in Build status:
|
|
280
316
|
- `FAIL_*`: the verdict + evidence path; a human takes over;
|
|
@@ -283,6 +319,18 @@ Run the `a2h-coldstart-smoke-gate` skill with `harmony_project_dir`, then record
|
|
|
283
319
|
|
|
284
320
|
## Step 7 — Final Report
|
|
285
321
|
|
|
322
|
+
**Teardown first, every exit path.** Before writing the report, and also whenever the run stops early (user abort, a gate stops the run, the session hands off with groups still `pending`), stop the background cycle and then the fixture server, unconditionally:
|
|
323
|
+
|
|
324
|
+
```bash
|
|
325
|
+
node ./scripts/detach.mjs stop ${harmony_project_dir} --name run_cycle # 1. the cycle first
|
|
326
|
+
node ./scripts/detach.mjs stop ${harmony_project_dir} --name fixture_server # 2. then the server
|
|
327
|
+
node <a2h-utg-explorer>/scripts/d_prereqs.mjs release --config ${harmony_project_dir}/.hometrans/utg_explore/config.json # only if that config.json exists
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
**Order matters.** On an early exit `run_cycle` may still be running in the background (converting while exploring, a gate stops the run, a hand-off with groups `pending`). Stopping the server under it makes every recovery D recipe hit a closed URL and be recorded as "state cannot be built" (cf. Step 3.2's `check` rule). So end the cycle first: `stop` returns only after the wrapper has recorded the cycle's exit (or after 15 s, when it kills the wrapper too), and it is a no-op when the cycle is not `running`. To keep the cycle's results instead, wait until `detach.mjs status ${harmony_project_dir} --name run_cycle` no longer shows `running`, then stop the server.
|
|
331
|
+
|
|
332
|
+
The fixture server is a `--service` job: nothing else ends it, and Step 3.2.6 fires only on `finished: true`, which a run that converts while exploring may never reach. `stop` is idempotent (`state: unknown` / not `running` → no-op), so call it blindly. A later re-run of Step 3.2 starts the server again on the same port.
|
|
333
|
+
|
|
286
334
|
Write the cumulative report to `${harmony_project_dir}/.hometrans/batch_report.md`:
|
|
287
335
|
|
|
288
336
|
0. **本次范围** (incremental only) — how `scope_request` was resolved:
|
|
@@ -297,6 +345,7 @@ Write the cumulative report to `${harmony_project_dir}/.hometrans/batch_report.m
|
|
|
297
345
|
- `error` for failed pages;
|
|
298
346
|
- a mark on every page whose evidence was parent-reconstructed.
|
|
299
347
|
2. **Build status** — the outcomes of Steps 6.1, 6.2 and 6.3, including `[CANDIDATES]` reviewed but deliberately not "fixed", with the reason.
|
|
348
|
+
In incremental mode, also list the 6.1 `[BASELINE]` section: defects that were in the project before this run, left as they were.
|
|
300
349
|
3. **Manual Follow-up TODOs** — items that need a human, each with enough context to act on:
|
|
301
350
|
- **Unassigned Lottie animations** — `lottie_by_page["Unknown"]` plus multi-host entries. Give `source`, `target`, `load_path`, `host_android`, `host_layout`, `notes` verbatim, and what is needed (the hosting page and the start/stop trigger).
|
|
302
351
|
- **Source-only pages awaiting visual calibration** — these were converted from source. List each with its uncertain items (template-borrowed or framework-default values). Re-running Step 3.2 with a fixture, then `build_conversion_set.mjs`, flips them to `captured`, and resume resets them to `pending`.
|
|
@@ -306,7 +355,7 @@ Write the cumulative report to `${harmony_project_dir}/.hometrans/batch_report.m
|
|
|
306
355
|
- **Uncaptured popups and menus** — attached `panel` nodes with no capture directory, such as a menu that only appears after a tap. Give each one's Harmony implementation (`bindMenu` / dialog). Any custom-drawn overlay must carry its `APPEARANCE-ESCALATED` ruling.
|
|
307
356
|
- **No visual comparison (`image_read=false`)** — say how it was decided (passed by the caller, or the Step 1 probe and its `probe_reason`). This host's sub-agents could not read images, so no page was compared with its screenshots by eye; geometry, alignment and pull/transition visuals rest on view trees and measurements only. List every captured page, and name the items a reviewer should check on screen first (indicator positions, left/right alignment of buttons, deviations the reports noted).
|
|
308
357
|
- **Captured but not converted** (full mode) — `export_manifest.json`'s `dynamic_only` count and `foreign_tree_captures`.
|
|
309
|
-
- **Degraded items (`已降级`)** — icons that could not be sourced (Phase 4.3 L3), and transitions declared but not implemented (过渡实现证据). They may ship degraded, but not unmentioned.
|
|
358
|
+
- **Degraded items (`已降级`)** — icons that could not be sourced (Phase 4.3 L3), and transitions declared but not implemented (过渡实现证据). They may ship degraded, but not unmentioned: paste the output of `node <skill>/scripts/draw_coverage.mjs degraded ${harmony_project_dir}` (every such line of every group report, verbatim) instead of choosing items by hand.
|
|
310
359
|
- **Pending fetch (`待拉取`)** — Phase 4.3 **L2.5-Remote** icons. Give the original web path, the absolute URL, the suggested media name, and what the page renders meanwhile. Keep this list separate from `已降级`: these need only a download, whereas an L3 needs new artwork.
|
|
311
360
|
- **Unfixed `error`-severity resource-fidelity rows** — anything the Step 2 gate flagged that was accepted rather than repaired.
|
|
312
361
|
- **Smoke-gate items** — every non-`PASS` verdict: unresolved `FAIL_*` (verdict + evidence path + fixes attempted), `SKIPPED_*` (the reason) and `DEPLOY_ERROR` (the gate's message and any instruction it carries).
|
|
@@ -315,7 +364,10 @@ Write the cumulative report to `${harmony_project_dir}/.hometrans/batch_report.m
|
|
|
315
364
|
|
|
316
365
|
- **Use the right resource.** Find it in `harmony_project_dir`; if it is missing, find it in `android_project_dir` and transfer it. Never invent one.
|
|
317
366
|
- **Never fabricate a measurement for a source-only page.** No px/vp from "typical" screens, and no colour picked by eye from a template's screenshot for a region the template does not share. Use XML dp, theme/style resolution, template-shared values or framework defaults, each labelled as such.
|
|
318
|
-
- **Work through the 常见误译速查 table** at the end of Phase 5 before declaring a page done. It is the static backstop; Step 6.
|
|
367
|
+
- **Work through the 常见误译速查 table** at the end of Phase 5 before declaring a page done. It is the static backstop; the only runtime check is Step 6.3's cold start.
|
|
319
368
|
- **Edit `.ets` / `.json5` / `.json` only with the file edit/write tools, or a script that reads and writes UTF-8 explicitly.** Never `Get-Content … -replace … | Set-Content` or `(Get-Content f) -replace` in Windows PowerShell 5.1: it reads UTF-8 without BOM as the ANSI code page (GBK) and writes it back mangled.
|
|
320
|
-
- **
|
|
321
|
-
- **
|
|
369
|
+
- **Do not hand-roll a route loop; use `scripts/capture_fast.mjs`.** It is the compliant fast path for a hybrid/uni-app shell: route jump, content-stable wait, real scroll probe, every scroll frame, `capture_quality`, and a resumable state file. If Step 3.2's route/task machinery cannot finish, this is the replacement — not a `screencap` + one `uiautomator dump` loop.
|
|
370
|
+
- **Any capture path must pass `scripts/capture_audit.mjs` (exit 0) before Step 4.** That includes a capture made by another tool and a directory the user supplied. The audit is what makes `captured` a verified claim: every declared screenshot/view tree exists and is paired, the primary frame is not blank, `pages.json` still lists every captured page, and no scrolling page claims a completion it cannot prove (a partial sweep is listed as degraded, not hidden). A hand-rolled loop that writes "captured" dirs with blank frames or only the first viewport is how 26 pages were converted from a white rectangle and the `life` page lost its below-fold sections. Waiting for a fixed `sleep` after a route jump is not a readiness test: the frame has to *show* content, and the scroll has to *move*.
|
|
371
|
+
- **Never treat a route jump or a settled view tree as "page rendered".** For a hybrid app the view tree is one WebView node, so "stable" is immediate and "no `%1$s` placeholder" is always true. Readiness for those pages is decided by the frame (pixels), never by the tree.
|
|
372
|
+
- **Incremental mode never overwrites a `placeholder` page without a backup.** Copy the existing `.ets` to `${harmony_project_dir}/.hometrans/backup/<timestamp>/<path relative to the project>` before the sub-agent writes, and report the path in §0b. Backups never go into the source tree: a `.bak` next to the page, or under `resources/` (contract item 2), would be committed with the conversion and shipped in the patch; `.hometrans/` is gitignored.
|
|
373
|
+
- **Incremental mode may edit `loadContent()` and the app entry, and GATE `entry-route-not-converted` stays in force.** A migrated page that is routable but never reachable from the ability is invisible work. But if reconciling the route would change which screen an existing app opens on, say so and let the user decide.
|
|
@@ -72,10 +72,24 @@ export function blendARGB(color1: string, color2: string, ratio: number): string
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// ColorUtils.setAlphaComponent(color, alpha), alpha 0..255.
|
|
75
|
+
// A computed alpha such as 0.3 * 255 (= 76.5) is rounded to the nearest byte rather than rejected: throwing
|
|
76
|
+
// here would turn a slightly-off color into a runtime crash. Compose `copy(alpha = 0.5f)` is 0..1: use withAlpha()
|
|
77
|
+
// below, never setAlphaComponent(c, 0.5) (0.5 would round to 01, almost transparent); GATE alpha-scale-mismatch
|
|
78
|
+
// catches that literal form.
|
|
75
79
|
export function setAlphaComponent(color: string, alpha: number): string {
|
|
76
|
-
if (alpha
|
|
80
|
+
if (!(alpha >= 0 && alpha <= 255)) {
|
|
77
81
|
throw new Error('ColorUtils.setAlphaComponent: alpha must be 0..255, got ' + alpha)
|
|
78
82
|
}
|
|
79
83
|
const c: ArgbChannels = parseColor(color)
|
|
80
|
-
return colorToHex({ alpha: alpha, red: c.red, green: c.green, blue: c.blue })
|
|
84
|
+
return colorToHex({ alpha: Math.round(alpha), red: c.red, green: c.green, blue: c.blue })
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Compose Color.copy(alpha = fraction), fraction 0..1. Compose stores alpha as a float and
|
|
88
|
+
// converts it to 8 bits with round-half-up (Color.toArgb: (alpha * 255 + 0.5).toInt()).
|
|
89
|
+
export function withAlpha(color: string, fraction: number): string {
|
|
90
|
+
if (fraction < 0 || fraction > 1) {
|
|
91
|
+
throw new Error('ColorUtils.withAlpha: fraction must be 0..1, got ' + fraction)
|
|
92
|
+
}
|
|
93
|
+
const c: ArgbChannels = parseColor(color)
|
|
94
|
+
return colorToHex({ alpha: Math.floor(fraction * 255 + 0.5), red: c.red, green: c.green, blue: c.blue })
|
|
81
95
|
}
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
**两种容器的该轴属性不同名,必须按容器类型取**:`Column` 的水平方向是交叉轴 → `.alignItems(HorizontalAlign.*)`;`Row` 的水平方向是主轴 → `.justifyContent(FlexAlign.*)`。
|
|
9
9
|
`Row` 上的 `.alignItems(VerticalAlign.*)` 管的是**纵轴**,**不满足本项** —— 它常常本身完全正确(对应 Android 的 `verticalAlignment`/`gravity="center_vertical"`),正因如此最容易被当成"对齐已经写了"而放过:一个正确的纵轴设置掩盖了缺失的横轴设置,两处单看都没错。实测漏检形态是日期分隔行、章节标题居中而 Android 齐左。判据:宽度撑满的 `Row` 里若有收缩宽度的 `Text`,就必须能指出是哪个属性把它定在了左边。**ArkUI `Column` 默认居中、Android `LinearLayout`/Compose `Column` 默认 start** —— Android 侧未写 gravity 时必须显式译成 `.alignItems(HorizontalAlign.Start)`,不能同样"不写"。未显式声明且未说明依据者判定失败(居中确为本意时,注明理由即可通过,例如空态插图、按钮内图标)。此项漏检的典型表现是章节标题、列表项文字整体居中而 Android 是齐左,且逐属性对照会确认成"翻译正确"。
|
|
10
10
|
**对齐要看父容器,不只看含 Text 的那个容器**:`Column` 的子节点里只要有**收缩宽度**的容器(未设 `.width()` / `.layoutWeight()` 的 `Row`/`Column`/`Stack`,典型是「图标 + 标题」行),决定它水平位置的是**父** `Column` 的 `alignItems`,子 `Row` 自己的 `justifyContent(FlexAlign.Start)` 只管 Row **内部**,管不到 Row 在父中的位置。实测漏检:卡片标题行 `Row() { Image; Text }` 被报 `container-align-unset`,回答「Row 主轴默认 Start」本身正确,于是放行,而真正让它居中的是未写 `alignItems` 的卡片 `Column`。修法:父 `Column` 显式 `.alignItems(HorizontalAlign.Start)`,或给子行 `.width('100%')`。检查器 CAND `column-shrink-child-centered`。
|
|
11
|
-
**`Scroll` 的 `.align()` 决定内容短于视口时的位置**,默认 `Alignment.Center`。**`Alignment.Start` = 左 + 垂直居中,不是左上**。Android `ScrollView`/`NestedScrollView`/`RecyclerView` 内容默认从顶部开始,通常应取 `Alignment.TopStart`(或 `Top`/`TopEnd`)。例外要有 Android 依据:`fillViewport="true"` + 子布局 `gravity="center"`(登录页、空状态页居中)对应 `Alignment.Center`;`stackFromEnd`/`reverseLayout`(聊天页靠底)对应 `Bottom
|
|
11
|
+
**`Scroll` 的 `.align()` 决定内容短于视口时的位置**,默认 `Alignment.Center`。**`Alignment.Start` = 左 + 垂直居中,不是左上**。Android `ScrollView`/`NestedScrollView`/`RecyclerView` 内容默认从顶部开始,通常应取 `Alignment.TopStart`(或 `Top`/`TopEnd`)。例外要有 Android 依据:`fillViewport="true"` + 子布局 `gravity="center"`(登录页、空状态页居中)对应 `Alignment.Center`;`stackFromEnd`/`reverseLayout`(聊天页靠底)对应 `Bottom*`。**`align` 是通用属性(API 参考「位置设置」),文档列明它在 `Scroll` 上生效、默认 `Alignment.Center`** —— `scroll.d.ts` 里搜不到 `align` 是因为它定义在 `CommonMethod`,不是 Scroll 不支持,不能据此跳过。「内容恒超视口,对齐无所谓」也不是理由:内容来自 `ForEach`/`LazyForEach`/`Repeat` 时,条数少(筛选后、首屏只回一页、空态切回)是常态。检查器:`Alignment.Start` 报 GATE `scroll-align-not-top`(几乎必是误当左上);其余非 Top 值报 CAND `scroll-align-not-top`;未写 `.align()` 且内容是数据驱动列表时报 GATE `scroll-align-default-center`,只能用 Scroll 上方的 `// SCROLL-CENTER: <依据>` 降级(EVIDENCE 文字不关闭),静态内容未写时为 CAND。
|
|
12
|
+
**横向 `Scroll`(`LazyRow` / `HorizontalScrollView`)看的是水平位置**:未写宽度时它按内容收缩,所在 `Column` 默认 `HorizontalAlign.Center` 会把整排推到中间(「我的足迹」只有一两条时居中,安卓从左排起)。写 `.width('100%').align(Alignment.Start)`(横向时 `Start` = 左 + 垂直居中,正是所需),或父 `Column` 写 `.alignItems(HorizontalAlign.Start)`。GATE/CAND `hscroll-centered-in-column`。
|
|
12
13
|
**Compose `Box` 子节点的单独对齐(`Modifier.align(X)`)**:`Box(contentAlignment = C)` 里子节点写 `Modifier.align(X)`(X ≠ C)时,该子节点按 X 放、其余按 C 放。ArkUI `Stack` 没有按子节点的对齐,子节点 `.align()` 只排它自己的内容,所以 X 必须单独表达:把该子节点包进与 Stack 同尺寸的容器并在容器里按 X 排(`BottomCenter` + `padding(bottom = 5.dp)` → `Column() { … }.width('100%').height('100%').justifyContent(FlexAlign.End).padding({ bottom: 5 })`;`CenterStart` → `Row()…justifyContent(FlexAlign.Start)`),或用 `.position` / `.markAnchor` 定位。**只留下 `padding` 改成单侧 `margin` 不算译了对齐**:Stack 仍居中,它压在居中的兄弟上。group pack 的「Box children with their own alignment」一节列出本组每一处(`文件:行号`),本项逐条给出鸿蒙侧的 `文件:行号` 与所用写法。检查器:显式 `alignContent: Alignment.Center` 与不写一样走 GATE `stack-overlay-default-center` / `stack-child-align-noop`。
|
|
13
14
|
|
|
14
15
|
### Phase 5「水平内缩证据」—— 判据
|
|
@@ -26,6 +27,9 @@
|
|
|
26
27
|
| **`Stack()` 里用子节点 `.align(Alignment.Bottom)` 贴底** | 把 `.align` 当成"本节点在父中的对齐" | `.align` 只排子节点自己的内容;`Stack` 默认 `alignContent: Center`,底部导航悬在屏幕中部 | 贴底/贴边由 `Stack({ alignContent })` 决定;跨页共享 chrome 用宿主容器组件(step5-convert.md 合同第 7 条)。GATE `stack-child-align-noop` |
|
|
27
28
|
| **从别页复制 chrome 调用、漏抄父 `Stack` 的 `alignContent`** | 只复制 `Bar(...).margin({ bottom })`,根容器写成 `Stack()` | 默认 Center 下 `margin.bottom` 只上移几 vp,导航栏停在屏幕中部,复制了同一调用的页面全部如此 | 复制时连 `Stack({ alignContent })` 一起复制;宿主 Activity 只画一份 chrome 时建壳(step5-convert.md Step 5.5)。GATE `stack-overlay-default-center` / `shared-chrome-placement-drift` |
|
|
28
29
|
| **容器对齐默认值两端相反** | ArkUI `Column`/`Row` 默认居中,Android 默认 start;两边都不写时字面一致 | 收缩宽度的 `Text`、标题整体居中,而 Android 齐左 | → Phase 5「文字对齐证据」(含父容器一段);CAND `container-align-unset` / `column-shrink-child-centered` |
|
|
30
|
+
| **ConstraintLayout / MotionLayout 分层译成裸 `Stack()`** | 折叠头部、叠层背景不便用 `RelativeContainer` 表达,改用「背景层 + 滚动层 + 头部覆盖层」的 `Stack`;层内坐标都按 view.xml 用 `.position` 写,逐条核对都对 | Android 子视图由约束锚在顶部,`Stack` 默认 `alignContent: Center`(Stack API 文档):没撑满的覆盖层(自定义组件根 `Stack().height(346)`)被整体垂直居中,组件内所有 `.position` 坐标跟着下移约 (Stack 高 − 组件高)/2,头部文字压住下方内容 | 根 `Stack({ alignContent: Alignment.TopStart })`;或在调用处 `.position({ x: 0, y: 0 })`;或让组件根 `.width('100%').height('100%')`。核对「层内坐标对」之前先核对「层本身落在哪」。GATE `stack-custom-child-default-center` |
|
|
29
31
|
| **Compose `Box` 译成裸 `Stack()`** | 组件映射表写「Box → Stack」,两边都不写对齐时字面一致 | Compose `Box` 默认左上,`Stack` 默认居中:顶栏图标、角标落到屏幕/卡片中部 | `Box()` → `Stack({ alignContent: Alignment.TopStart })`,`Box(contentAlignment = X)` → X;GATE `stack-bar-default-center` |
|
|
30
32
|
| **`Box` 子节点的 `Modifier.align(X)` 被丢掉** | 映射成 `Stack({ alignContent: C })` 后,子节点上只剩 `.padding(…)`,顺手译成单侧 `margin` | 标签/角标停在 Stack 中部,与居中的数字、图标重叠(「UV」压在数字上) | 子节点包一层与 Stack 同尺寸、按 X 排的 `Column`/`Row`,或 `.position`/`.markAnchor`;逐条对照 group pack「Box children with their own alignment」;GATE `stack-overlay-default-center` |
|
|
31
33
|
| **`Alignment.Start` 被当成「左上」** | ArkUI 九宫格 `Start` = 左 + 垂直居中,左上是 `TopStart` | `Scroll` 内容短于视口时悬在屏幕中部 | → Phase 5「文字对齐证据」的 `Scroll` 段;GATE `scroll-align-not-top` |
|
|
34
|
+
| **纵向 `Scroll` 不写 `.align()`,理由是「SDK 没有 Scroll.align」或「内容恒超视口」** | 在 `scroll.d.ts` 里搜不到 `align`(它在 `CommonMethod`);参考帧恰好是满屏数据 | 列表条数少时整列悬在视口中部(分类商品页从左-中排起,安卓从左上) | `.align(Alignment.TopStart)`;数据驱动内容 GATE `scroll-align-default-center`,降级只认 `// SCROLL-CENTER:` |
|
|
35
|
+
| **`LazyRow` 译成未定宽的横向 `Scroll`** | 只关注滚动方向,没看宽度;父卡片 `Column` 又没写 `alignItems` | 内容不足一屏时整排居中,安卓从左排起 | 横向 Scroll `.width('100%').align(Alignment.Start)`;GATE `hscroll-centered-in-column` |
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
| 负 margin(如 `layout_marginTop="-30dp"`) | 保留为负值 `.margin({top:-30})` 或 `.offset({y:-30})`,并在报告中说明用途 | 直接丢弃 → 该块及其后所有内容整体下移,常见于「顶部区域上移贴合状态栏」的场景 |
|
|
25
25
|
| 元素自身的 `margin` | 落在**该元素**上 | 提升为父容器 `padding` → 影响同级所有子元素,同级元素被一起推移 |
|
|
26
26
|
| `layout_constraintStart_toEndOf="parent"` (被推出可见区) | 该状态下不渲染,或按需 `.visibility()` | 当作普通约束照译 → 元素错误地留在屏内 |
|
|
27
|
+
| `layout_height="wrap_content"` 的 ConstraintLayout 卡片(子节点 `Top_toTopOf="parent"` / `Bottom_toBottomOf="parent"`,如「图标纵向居中 + 右侧两行文字」) | `Row { Image; Column { 标题; 数值 } }`(`alignItems(VerticalAlign.Center)` 即纵向居中),角落元素用 `Stack` + `Alignment`;确需 `RelativeContainer` 时,纵向只锚兄弟节点(首个子节点不写纵向 alignRules,默认贴顶)并写 `.height('auto')`,或写参考 view tree 实测高度 | 逐条照译 alignRules 锚 `'__container__'` 的 top/bottom → RelativeContainer 文档:该方向有子组件以容器为锚点时 `"auto"` / `wrapContent` **不生效**、视为未设高度(容器高与子组件布局循环依赖,FAQ faqs-arkui-318);容器在 Scroll 里被撑到远高于 Android 的内容高度。补一个 `.height('auto')` 也修不好。GATE `relative-container-unsized-in-scroll` |
|
|
27
28
|
| 二维约束:某元素只与**部分**兄弟共用一段纵向区间(如右下角的「箭头 + 差值」链只贴 `parent` 底、`start_toEndOf` 第二行文字;第一行标题右侧不受约束) | 保留二维关系:`RelativeContainer` + `.alignRules()`;或 `Stack`,角落元素按 `Alignment.BottomEnd` 等单独排,主体 `Row/Column` 撑满 | 拆成一维 `Row [图标][Column(标题, 数值).layoutWeight(1)][角落元素]` → 角落元素在**整个高度**上占一列,标题可用宽度被扣掉,`wrap_content` 的单行标题折成两行、卡片变高;照抄属性逐项都对,编译与检查全过 |
|
|
28
29
|
| **固定 dp 尺寸** + `layout_constraintEnd_toEndOf="parent"` + `layout_marginEnd`(右锚定;`Bottom_toBottomOf` 同理为下锚定) | 表达为**对齐关系**而非坐标:`RelativeContainer` + `.alignRules()`(见 layout mapping 表 `ConstraintLayout → RelativeContainer`);或父 `Stack` 用 `Alignment.TopEnd` + 子 `.margin({right})`;或由父容器实测宽度推导 `x = parentWidth - marginEnd - childWidth` | 按参考分辨率算出绝对偏移写成 `.position({x: <常量>})` → 该常量**只在参考设备宽度上成立**,换到更窄的屏幕时元素右侧**移出可视区被裁切**。尺寸维度无歧义(dp 是显式的),最易漏检;或用撑满父容器的容器(`width('100%')` + `height('100%')` + 贴边对齐)承载该锚定 → 视觉正确,但它成为兄弟节点中的**最上层**,吞掉其下所有可点击元素的命中测试(`hitTestBehavior` 取默认值即响应命中),该区域点击全部失效 |
|
|
29
30
|
|
|
@@ -65,6 +66,8 @@ measure_summary 的 `dialog panel` 行为准(不是带背景 inset 的 window
|
|
|
65
66
|
| `.width('100%')` 与 `.margin({left,right})` 叠加 | 直觉认为 `100%` 会自动扣掉 margin | 实际宽度 = 父宽 + 左右 margin,**右侧溢出**、圆角被裁 | 搜同一元素上同时出现 `width('100%')` 与左右 `margin`;改为父 `padding` 或 `layoutWeight(1)` |
|
|
66
67
|
| **`0dp` + `layout_weight` 译成多个兄弟都 `width('100%')`** | 等分页签每个都"撑满自己那格",逐个看都对 | 第一个兄弟吃满整行,其余被挤出屏幕 | 权重一律 `.layoutWeight(n)`,`@Builder` 根节点同理。GATE `main-axis-pct-siblings` |
|
|
67
68
|
| **竖向 `LinearLayout` 里的卡片不写宽度** | Android 子 View 不写 LayoutParams 也是满宽,源码里看不到 `MATCH_PARENT` | ArkUI `Column` 的子节点默认按内容收缩:每张卡宽度不同、右缘参差不齐,整页看起来"排版很乱" | 卡片 `.width('100%')`;tree-only 页按 group pack 的几何表(`full` 行)核对。GATE `card-width-wraps` |
|
|
69
|
+
| **`wrap_content` 卡片译成未定高的 `RelativeContainer`,子节点锚容器上下边** | 二维约束一律译成 RelativeContainer(上表「二维约束」行)、以为它像 ConstraintLayout 一样按内容求高 | 卡片在 Scroll 里被撑高(天气首页日出/日落、信息卡);`.height('auto')` 在纵向锚容器时同样无效 | → 上表「`wrap_content` 的 ConstraintLayout 卡片」行。GATE `relative-container-unsized-in-scroll` |
|
|
70
|
+
| **整卡蒙层写成 `.overlay('<颜色>')`** | `percent-height-in-scroll` 拦下 Stack 蒙层的 `'100%'` 后,改用 overlay 并以为字符串是颜色 | 色值当文字画在卡片左上角(「transparent」「#66FFFFFF」),蒙层不画 | `.overlay(@Builder)`,builder 根 `width/height('100%')` + `backgroundColor` + `hitTestBehavior(HitTestMode.Transparent)`。GATE `overlay-string-color` |
|
|
68
71
|
| **WRAP 父 + MATCH 子译成 `constraintSize({ minHeight })` 父 + `'100%'` 子** | Android 的两遍测量会让 MATCH_PARENT 子在 WRAP_CONTENT 父里回落为内容高度,逐属性照译看着等价 | ArkUI 的百分比按上层约束解析,在 Scroll 里约等于视口,组件被撑得特别长;共享组件一错,多处同时出问题 | 子节点去掉 `'100%'`,改用 `alignItems` + `min…`。GATE `pct-in-auto-size-parent` |
|
|
69
72
|
| 用父容器尺寸充当子元素的约束尺寸 | Android `0dp` + 约束被当成「填满父容器」 | 区域偏大/偏高,挤压后续内容 | 拿参考 view tree 的实测尺寸与父容器比;不等就不能用 `'100%'` |
|
|
70
73
|
| 负 margin 被丢弃 | 负值看起来像笔误 | 整块内容下移(常见于顶部贴合状态栏) | 在 Android 布局里 grep `margin.*="-`,逐个确认已译出 |
|
|
@@ -76,5 +79,7 @@ measure_summary 的 `dialog panel` 行为准(不是带背景 inset 的 window
|
|
|
76
79
|
| **「相对兄弟」的偏移写进 `Stack` 子节点** | 按 `Top_toBottomOf=@sibling` 算出「距兄弟底边 N」,结构却改成 `Stack` 兄弟(便于叠背景/做折叠) | `Stack` 里 margin 从容器顶算起,元素整体上移一个兄弟高度;插值到另一端点(常为负值)时与兄弟完全重叠(折叠后两行文字叠在一起),首帧往往看不出 | → Phase 4.2「硬性要求(坐标系)」原点一段:逐个写明原点,起止端点回代纵向区间 |
|
|
77
80
|
| **二维约束拆成一维 `Row` 的三列** | ConstraintLayout 写在一个容器里,最顺手的译法是「左图标 / 中文字 / 右角标」 | 只占一角的元素在整个高度上吃掉宽度,单行标题折行、卡片变高 | → 约束布局转写表「二维约束」行;`RelativeContainer` 或 `Stack` + 角落对齐 |
|
|
78
81
|
| 撑满容器承载底/右锚定,吞掉其下点击 | 既满足「不写死坐标」又视觉正确 | 其下可点击元素**点击无响应**,控制台亦无输出 | → Phase 5「交互可达性证据」:逐个确认撑满容器可交互或已设 `hitTestBehavior(HitTestMode.None)` |
|
|
79
|
-
| **`padding` 语义反向**:把 Android 的「N dp 图标 + P dp padding」直译成 `.width(N).padding(P)` | Android 的 `padding` 在声明尺寸**之外**(总占位 N+2P),ArkUI 在**之内**。逐属性对照翻译时两边字面完全一致,最像"忠实" | 内容区被压成 `N-2P`(P≥N/2 时为 **0**)——元素**照常占位、完全不可见**。相邻元素位置全对,只有它消失;编译、`[GATE]`、资源引用检查全过 | 逐个列出同时带 `.width()/.height()` 与 `.padding()` 的元素,核对声明值**是否已包含** padding(Android 侧 `src` N dp + `padding` P dp ⇒ ArkUI 应写 `N+2P`)。`Image` + 圆形图标按钮这类"图标 + 内边距"
|
|
82
|
+
| **`padding` 语义反向**:把 Android 的「N dp 图标 + P dp padding」直译成 `.width(N).padding(P)` | Android 的 `padding` 在声明尺寸**之外**(总占位 N+2P),ArkUI 在**之内**。逐属性对照翻译时两边字面完全一致,最像"忠实" | 内容区被压成 `N-2P`(P≥N/2 时为 **0**)——元素**照常占位、完全不可见**。相邻元素位置全对,只有它消失;编译、`[GATE]`、资源引用检查全过 | 逐个列出同时带 `.width()/.height()` 与 `.padding()` 的元素,核对声明值**是否已包含** padding(Android 侧 `src` N dp + `padding` P dp ⇒ ArkUI 应写 `N+2P`)。`Image` + 圆形图标按钮这类"图标 + 内边距"样式是高发处。字面量尺寸且 padding ≥ 尺寸时由 GATE `padding-consumes-fixed-size` 拦截;非字面量或部分压缩仍需人工核对 |
|
|
83
|
+
| **`BasicTextField` 译成定高 `TextInput` 却没写 `.padding()`** | Compose `BasicTextField` / 无装饰 `EditText` 没有内边距,照抄 `height(24)` 看着就是 1:1 | ArkUI `TextInput`/`TextArea` 默认 padding 上下 8vp、左右 16vp(下划线模式上下 12vp),24vp 高只剩 8vp 给 16fp 文字:**输入文字只显示上半截**;左缘还多出 16vp | 对应 `.padding(0)`(文档建议同时 `.borderRadius(0)` 防光标被截);要留内距就把高度写成行高 + padding。GATE `text-input-default-padding-clips` |
|
|
84
|
+
| **只靠背景显示的空容器没写宽或高** | Android `View` 的 `match_parent` / 约束尺寸来自父布局,背景图跟着 View 尺寸画;ArkUI 宽高缺省时取子组件内容的尺寸,空容器就是 0,`.background()` / `.backgroundImage()` 不参与测量 | 背景层宽度 0,头图、底色、分隔条整块不显示 | 每个没有子节点、只靠 background* / 渐变显示的容器两轴都要有尺寸来源(`'100%'` / 显式值 / `layoutWeight` / `size`);GATE `bg-only-container-collapsed` |
|
|
80
85
|
| **`layout_weight` 译到自定义组件的 build() 根节点上** | Android 的 `layout_weight` 写在 View 自己身上,逐属性照译恰好落到组件内部根节点;调用处不链属性时它还真能生效 | 调用处一链属性(`.margin()`、`.onClick()` 都算),组件被套上 `__Common__` 节点,父 `Row`/`Column` 读不到权重:组件按内容收缩,**行尾留白** | 权重写在**调用处** `Cell({ … }).layoutWeight(1)`,**同时**内部根节点在父主轴上撑满(父 Row → `.width('100%')`);只移权重不撑满,背景仍按内容收缩。`@Builder` 内联展开,不受影响。GATE `layout-weight-on-component-root` |
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
| 规则 | 依据(原文所在) | 一句话 |
|
|
7
7
|
|---|---|---|
|
|
8
|
-
| `
|
|
8
|
+
| `stack-swallows-taps` (GATE) | `conversion-procedure.md` Phase 5「交互可达性证据」;API 参考《枚举说明》HitTestMode、FAQ faqs-arkui-549 | Stack 里后画的撑满层自身和子树都不收事件,却盖住前面的可点击兄弟:Default 会阻塞兄弟节点,有没有 onClick 都一样。加 `.hitTestBehavior(HitTestMode.None)` |
|
|
9
|
+
| `fullsize-container` (GATE/CAND) | 同上 | 检查器按层叠结构证明不了不吞点击的撑满节点。GATE 只能靠改代码或检查器核验的标记 `// HIT-TEST: blocks-input:` / `covers-below:` 关闭,EVIDENCE 文字关不掉;CAND 是检查器看不到的部分(范围外组件、zIndex、无调用处) |
|
|
9
10
|
| `a11y-content-desc-unobservable` (GATE/CAND) | `references/checker-rules.md` 本条 | `uitest` 视图树只导出 `accessibilityDescription`。纯图标/符号控件补 `.accessibilityDescription(X)`,与 Android `content-desc` 同值 |
|
|
10
11
|
| `orphan-component` (GATE) | `step5-convert.md` Step 5.5「Gate」与 self-contained 组件接线 | 没被 import 或实例化的 `export struct` 永远不会渲染:在宿主页 import、实例化,并把触发器接到它的显示开关上 |
|
|
11
12
|
| `converted-page-unreachable` (GATE) | `step5-convert.md` Step 5.5「wire navigation to real pages」 | 沿 `conversion_set.json` 每页的 `navigates_to`,给每条指向已转换页的边写真实的 `router.pushUrl` 或组件切换,并登记 `main_pages.json` |
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
**字符串资源取值 —— `$r()` 不是字符串**:`$r('app.string.x')` 返回 `Resource` 对象(资源令牌),没有重写 `toString()`。Android `getString(R.string.x)` / Compose `stringResource(R.string.x)` 返回的是真 `String`,**不能**译成 `$r('app.string.x').toString()`、`String($r(…))`、模板插值或与字符串 `+` 拼接,这些写法都得到字面量 `"[object Object]"`,编译与运行都不报错。只展示时把 `Resource` 直接交给 `Text()` / `promptAction.showToast({ message })` 等(它们接受 `Resource`);带参数用 `$r('app.string.x', arg)`;必须拼接或在逻辑里用时,先取真字符串:`this.getUIContext().getHostContext()!.resourceManager.getStringSync($r('app.string.x').id[, arg])`(`getStringSync(resource)` 重载自 API 20 起废弃,传 `.id`)。ViewModel 没有 UIContext,由页面传入 context 或已取好的字符串。GATE `resource-as-string`。
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**主题会变的颜色 —— 写成资源,不写死**:先读 `项目事实(外壳契约)` 的 Theme mechanism。`theme.mode` 不是 `static` 时(安卓有 `darkColorScheme` / `isSystemInDarkTheme` / night mode / `values-night`,或配色方案的 `primary` 取自变量),安卓主题会改变的每个颜色都用 `$r('app.color.<name>')`:浅色值进 `base/element/color.json`,深色值进 `dark/element/color.json`,名字相同,深色值引用安卓深色方案的 `文件:行号`(截图只有浅色,深色值不从截图取)。原因是 `ApplicationContext.setColorMode` 只切换资源限定词目录(官方《深色模式适配》),`'#FFFFFF'` 字符串和 `static readonly` 十六进制常量都不会跟着变。Compose 把调色板写在 Kotlin 常量里时,资源转换不会产出这些颜色,由本 skill 的颜色令牌层建立:令牌类成员返回 `$r(...)`,不返回十六进制串。`bindSheet` 显式传 `backgroundColor`(默认 `Color.White`)。运行时主题色(`hits_runtime` 非空):契约 `theme.runtime_slots` 列出用户可选的槽位(如 `primary`),这些槽位**一律**从 `theme.state_module` 的可观测主题状态经 getter 读取,**不得**写 `$r('app.color.<slot>')`:它是编译期资源,不随用户选的颜色变化(GATE `theme-runtime-color-static`;确实固定为品牌色的地方写 `// THEME-STATIC: <安卓 文件:行号>`)。`state_module` 由入口组建立(初值取安卓默认色),其余组只 import、不另写主题 store;持久化由逻辑阶段接上。两套方案取值相同的颜色可以保留字面量,上方写 `// THEME-FIXED: <两处方案行号>`。GATE `theme-color-literal` / `theme-sheet-background-default` / `theme-runtime-color-static`。
|
|
9
|
+
|
|
10
|
+
**颜色运算 —— 不手写混色函数**:Android 的 `ColorUtils.blendARGB` / `setAlphaComponent` / `Color.parseColor`,以及 Compose 的 `Color.copy(alpha = x)` / `Color(0x…).copy(alpha = …)` / `colorResource(…).copy(alpha = …)`,一律用本 skill 的 `assets/ColorUtils.ets`。**两种 alpha 量纲不能混**:Compose `copy(alpha = 0.5f)` 是 0..1,对应 `withAlpha(c, 0.5)`;Android `ColorUtils.setAlphaComponent(c, 128)` 是 0..255,对应 `setAlphaComponent(c, 128)`。把 Compose 的 `0.5` 传给 `setAlphaComponent` 只得到 alpha 字节 `00`/`01`,颜色几乎全透明(禁用态按钮整块消失),GATE `alpha-scale-mismatch`;asset 版本把算出来的非整数 alpha(如 `0.3 * 255`)四舍五入到最近的字节,不抛错,超出 0..255 才抛错。ArkUI 颜色串是 `#AARRGGBB`,**alpha 在前**;把 alpha 两位拼在 `#RRGGBB` **后面**得到的 `#RRGGBBAA` 合法、不报错,但会被读成另一种颜色(`'#000000' + '1A'` = `#0000001A` → alpha 00,全透明;`'#FFFFFF1A'` → 不透明黄)。GATE `color-alpha-appended`。工程里没有 `<module>/src/main/ets/common/ColorUtils.ets` 时**原样复制**过去,不改写、不另起一份。它已对 androidx 逐位测过(含 `(int)` 截断:`blend(#FFFFFF, #E5E5EA, .62)` = `#EEEEF1`,四舍五入会得 `#EFEFF2`)。输入全是固定 Palette 值的混色,优先**预计算成字面量常量**并在注释写出来源公式。EVIDENCE 里的「公式回代一致」必须是**跑出来的**输出(如 `node -e`),不接受心算。
|
|
9
11
|
|
|
10
12
|
**图标来源分级 —— 逐个图标判定并在报告中标注级别**:
|
|
11
13
|
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
**禁止的三种降级**(编译全过、静态引用检查全过,但视觉必错):
|
|
28
30
|
|
|
29
31
|
1. **emoji / Unicode / 文字字形代替图标** —— `←` `✓` `★` `🔍` `≡` 之类。
|
|
30
|
-
2. **语义不符的现有 drawable 顶替** —— 例如拿 `ic_placeholder`
|
|
32
|
+
2. **语义不符的现有 drawable 顶替** —— 例如拿 `ic_placeholder` 当设置图标、拿箭头图标当勾选标记。「名字存在且能编译」不是选它的理由。**Lottie 动画按名字或含义挑一张现成静态图代替,也属于这一条**(唯一例外是 Android 源码声明的 `lottie_fallbackRes`):源码里播放 Lottie,就集成 `@ohos/lottie`,或登记 L3 degraded 并写 `// LOTTIE-DEGRADED: <理由>`。GATE `lottie-host-not-integrated`。
|
|
31
33
|
3. **凭记忆手写 SVG path** —— 手写产物几乎必然带 Material web SVG 的包围盒 path,被 `.fillColor()` 染色后整个图标变实心色块(见 Phase 5「资源引用错用」)。
|
|
32
34
|
|
|
33
35
|
**L3 未登记即判定失败。** 宁可显式记一条「缺图标」,也不要静默换成一个错的。
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
备选:把描边几何改写成等价的 fill 几何(等宽圆环 = 外圆 + 内圆同 path + `fill-rule="evenodd"`);改用目标端原生组件;或按状态准备两份已着色素材。
|
|
60
62
|
**染色检查要追到调用点**:`Image(icon)` 的实参是 `@Builder`/方法参数时,文件里没有 `$r` 字面量与 `.fillColor()` 同处,必须到每个调用点取出实际传入的 media 逐个打开核对。检查器会追调用点;追不到时报 CAND `fillcolor-media-unresolved`,不得视为通过。
|
|
61
63
|
|
|
62
|
-
- **是否存在铺满 viewBox 的 `fill="none"` 包围盒 path**(形如 `<path d="M0 0h24v24H0z" fill="none"
|
|
64
|
+
- **是否存在铺满 viewBox 的 `fill="none"` 包围盒 path**(形如 `<path d="M0 0h24v24H0z" fill="none"/>`,或旧版 Material 文件里的 `<rect fill="none" width="24" height="24"/>`,两种写法效果相同;带可见 `stroke` 的满尺寸 rect 是边框,不算)。`fillColor` 叠加到**全部**几何,`fill="none"` 拦不住它 —— 该 path 会被染成实心色块,盖住整个图标。Android `<vector>` 源**不会**产生这条 path(它是 Material web SVG 的写法),所以它的出现即证明该 SVG 是凭记忆手写的,应从 `res/drawable` 重新转换。
|
|
63
65
|
- **`fill`/`stroke` 是否残留未解析的 `?attr/...` 主题属性**。SVG 不认识 Android 主题属性,该几何不会着色(白框)。需回到 Android 源把它解析成 theme 里的具体颜色。
|
|
64
66
|
- **是否是占位 SVG**(灰底矩形 + 资源名文本)。那是资源转换阶段为保证编译而生成的,不是真实图标,界面上渲染为灰框。
|
|
65
67
|
- **是否是合法 XML —— 同一元素上有没有重复属性**。重复属性在 XML 规范下是**致命错误**,解析器拒绝整份文档,于是该图标**一个像素都画不出来**(空白,而非画错)。这一条与上面各条的性质不同:其余各条都是"先假定文件是有效 SVG,再查语义",而本条查的是"这份文件解析得开吗"——语义检查再多也覆盖不到。已知来源是转换器给每个 path 先写死 `fill-opacity="1"`、再把 Android 的 `fillAlpha` 作为**第二个** `fill-opacity` 追加。修法:回 Android `<vector>` 源核对该属性,只保留正确取值(转换器先默认后真值时保留后者)。机械兜底:GATE 规则 `media-duplicate-attribute`。
|
|
@@ -77,7 +79,11 @@
|
|
|
77
79
|
| 取值规则的作用域/粒度被改变 | 源侧提到循环外的常量被改成每条目自算(或反向) | 映射与 `$r()` 全对,渲染出的变体系统性错误 | → Phase 4.2「数据驱动的可见变体」:追到值被生成并传入的调用点 |
|
|
78
80
|
| **`.fillColor()` 染 `stroke` 着色的 SVG** | SVG 按规则写成 `fill="none"`,染色按直觉用 `fillColor`,两边都对 | 颜色**完全不生效**(`renderMode(Template)` 也无效),常只在选中态显形 | → Phase 5「资源引用错用」染色通道子项:首选 `.supportSvg2(true)` + `.colorFilter(...)`;`Image(参数)` 追到调用点。GATE `fillcolor-on-stroke-svg` |
|
|
79
81
|
| **`stringResource()` 译成 `$r(…).toString()`** | Android 取到的是 String,`.toString()` 看起来只是显式化 | `Resource` 无 `toString()`,界面显示 `[object Object]`,零报错 | 展示直接传 `Resource`;拼接用 `resourceManager.getStringSync($r(…).id)`;GATE `resource-as-string` |
|
|
82
|
+
| **Compose 的 0..1 alpha 传给 `setAlphaComponent`** | `copy(alpha = 0.5f)` 照抄数值,没注意函数是 Android 的 0..255 量纲 | `0.5` 只得到 alpha `00`/`01`:颜色几乎全透明,按钮禁用态看不见(登录按钮「输入后才出现」),零报错 | Compose 量纲用 `withAlpha(c, 0.5)`,或 `setAlphaComponent(c, 128)`;GATE `alpha-scale-mismatch` |
|
|
80
83
|
| **alpha 拼在颜色串末尾** | Compose `Color.copy(alpha = x)` 直觉译成 `'#RRGGBB' + hex(x)` | `#RRGGBBAA` 被按 `#AARRGGBB` 读:底色全透明或变色,零报错 | `setAlphaComponent()`(`assets/ColorUtils.ets`);GATE `color-alpha-appended` |
|
|
84
|
+
| **`.fillColor()` 染位图(png/webp/jpg)** | Android 对 `mipmap`/`drawable` 位图用 `tint`,直译成 `fillColor` | SDK:fillColor 仅对 SVG 图源生效,位图保持原色(如白色加号在浅色背景下看不见),零报错 | 改用 `.colorFilter(...)`(矩阵同上)或把 `<vector>` 转成 SVG;GATE `fillcolor-on-raster-media`(查所有限定目录,不只 base/) |
|
|
81
85
|
| **凭记忆手写图标 SVG** | 图标是库编译的 `ImageVector`,`res/` 里没有 | 包围盒 path 被 `fillColor` 染成**实心色块** | → Phase 4.3 图标来源分级(拿不到素材就登记 `已降级`);GATE `fillcolor-on-full-viewport-path` |
|
|
86
|
+
| **主题模式只存不用** | 设置页把 `ThemeMode` 写进主题状态,「深浅色由资源限定词负责」于是不再接线 | 资源限定词只有 `setColorMode` 切换后才换值:全工程不调用时选深色/浅色/跟随系统都没变化 | 设置处调用 `getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_DARK / _LIGHT / _NOT_SET)`;它不持久化(FAQ「深色模式适配及持久化实现方式」),入口 Ability 启动时读已存模式再调一次。GATE `theme-mode-closure` |
|
|
87
|
+
| **主题色抄成十六进制常量** | 截图只有浅色,按「1:1 抄录」把 Compose 调色板写成 `static readonly '#…'` | 切到深色或换主题色后页面不变,只有显式读主题状态的少数组件变 | 读外壳契约 theme;令牌返回 `$r('app.color.*')` + base/dark 两份 color.json;GATE `theme-color-literal` |
|
|
82
88
|
| **消费了内容画不出来的 media** | 只用 `ls media/` 确认"存在" | 残留 `?attr/...` → 白框;占位 SVG → 灰框 | → Phase 5「资源引用错用」;GATE `media-unresolved-theme-attr` / `media-placeholder-in-use` |
|
|
83
89
|
| 手写颜色混合/拼接函数 | `blendARGB` 看着只是几行算术,EVIDENCE 心算「回代一致」就过了 | 算错的串(如 `'#FFEDF2EDF2F109'`)被 ArkUI **静默忽略**:背景透明、描边变黑,零报错 | → 4.3「颜色运算」:用 `assets/ColorUtils.ets` 或预计算字面量。GATE `color-literal-malformed`、CAND `color-built-at-runtime` |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 知识卡 — 框架复合控件与外观
|
|
2
2
|
|
|
3
|
-
> 必读。Phase 4.3
|
|
3
|
+
> 必读。Phase 4.3 的部件归属、外观替换、系统弹窗与菜单;Phase 5「装饰重复检查」(A 档)的依据。
|
|
4
4
|
> 本卡由 `conversion-procedure.md` 拆出,规则原文不变;卡内提到的 Phase 编号指 `conversion-procedure.md` 的对应阶段。
|
|
5
5
|
|
|
6
6
|
**框架复合控件的部件归属 —— 逐个判定,不要照抄 view tree**:
|
|
@@ -26,13 +26,37 @@
|
|
|
26
26
|
|
|
27
27
|
**外观替换 —— 参照已捕获的外观不得自行「降级」**:框架控件(选择器、弹窗、开关、进度条……)若参照截图里的**图形结构**与目标 ArkUI 同名组件不同,第 2 问的结论只能是 (b2) 覆写或 (a) 自绘,或标 `需上报`;**不得**写「ArkUI 无此形态,已降级为 X」了事。这与 Phase 5「过渡实现证据」的捕获态规则同理:截图拍到的外观本身就是验收目标。典型实例是 Android `TimePicker` / `TimePickerDialog` 默认表盘、`DatePicker` / `DatePickerDialog` 默认月历,而 ArkUI 同名组件都是滚轮(映射表「按模式映射」行;GATE `framework-picker-appearance`)。父流程接受差异时,在该行上方写 `// APPEARANCE-ESCALATED(<Widget>): <裁决出处>`,并在报告里登记 `需上报`。
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
**一个节点只挂一个半模态 / 全模态**:`bindSheet` / `bindContentCover` 由所挂节点托管,一个节点只维护一个模态生命周期;同一属性链上挂两个,其中一个刚弹出就被关掉(「点一下闪一下就没了」),编译与冒烟都看不出来。Compose 里每个 `ModalBottomSheet` 有自己的 state,对应到 ArkUI 是各自独立的宿主节点:挂到各自的触发节点上,或各包一层空容器作宿主;弹层多时改用 `UIContext.openBindSheet` / `closeBindSheet` 管理。Step 5.5 接线追加弹层时同样适用。GATE `multiple-overlay-binds-same-node`。
|
|
30
|
+
|
|
31
|
+
**系统弹窗与菜单 —— 锚定用原生机制,外观跟源主题走**:Android `PopupMenu` / `ContextMenu` / 锚定在按钮上的 `ListPopupWindow`、`AlertDialog.Builder` / `MaterialAlertDialogBuilder` 是框架控件,**外观由 Android 应用主题决定**,不是由「系统」决定;换到 ArkUI 后,「系统外观」就成了鸿蒙的外观。映射表写「直接映射」只说明 API 对得上,外观并不一致。
|
|
32
|
+
|
|
33
|
+
- **菜单**:锚定一律在**触发组件上**写 `.bindMenu(...)`(长按菜单用 `.bindContextMenu(...)`),**禁止**用状态变量驱动的 overlay 自绘(宽度、圆角、分隔线、阴影、位置都没有来源,也不锚定按钮;GATE `popup-menu-not-bound`)。外观上,参数传 `@Builder` 返回 `Menu(){ MenuItem() }`,按下面的优先级取值,**不传 `MenuElement[]`**,因为那样渲染的是鸿蒙系统菜单(GATE `popup-menu-default-look`)。
|
|
34
|
+
- **对话框**:不用 `showAlertDialog` / `AlertDialog.show` / `showActionSheet` 的默认外观(标题居中、按钮均分整行),按源主题画一个**共享对话框组件**(标题、正文、0–3 个文字按钮),用 `getUIContext().getPromptAction().openCustomDialog(ComponentContent)` 或 `CustomDialogController` 弹出(GATE `framework-dialog-appearance`)。先查 `harmony_index.md` / 已有 `components/`,已有就复用;没有时由本组在 `components/` 新建,并在报告里写明组件名,供后续组复用。
|
|
35
|
+
**背板就是面板,只有一层**:`openCustomDialog` / `CustomDialogController` 有自己的背板,默认圆角 32vp,模糊材质在 API 26.0.0 之前默认 `COMPONENT_ULTRA_THICK`、之后为 `NONE`(promptAction / CustomDialog 文档),不写就随设备变化。Android 的 window 与 panel 之间那圈 inset(AppCompat 16dp)是**透明**的,屏幕上只看得见 panel。所以 Android panel 的外观写在**背板选项**上:`width: '<panel 占屏宽>%'`(measure_summary 的 `dialog panel` 行)、`backgroundBlurStyle: BlurStyle.NONE`、`backgroundColor: <面板色>`、`cornerRadius: <面板圆角>`,阴影写 `shadow`;builder 根节点 `width('100%')`,**不再加** padding、背景、圆角、阴影。把 inset 译成 builder 根的 `padding(16)` 再在里层画面板,等于在面板外多包一层背板(GATE `dialog-backboard-default`)。`CustomDialogController` 也可写 `customStyle: true`,由 builder 根节点自绘面板。
|
|
36
|
+
- **取值优先级**:① 该浮层的 capture(`measure_pack`:面板宽度占比、行高、文字内缩、前景/背景色);② 同一应用里**已采集**的同类浮层(别的页面的菜单/对话框,`模板页实测`);③ 下表按源主题给出的默认值(主题链读 application 模块 `src/main` 的 AndroidManifest `android:theme` → `res/values/` 的 `<style parent>`;检查器输出里会给出解析出的主题链。`values-v21/` / `values-night/` 把同一主题改成别的家族时,实际外观由设备决定,检查器只报 CAND 并给出两条链,以 capture 为准)。**三者都没有时不要套用鸿蒙默认值。**
|
|
37
|
+
|
|
38
|
+
| 源主题(parent 链) | AlertDialog | PopupMenu |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| `Theme.Material*`(framework,`android:style/Theme.Material.*`) | 圆角 2dp;左右 24dp;标题 20sp medium 靠起始边;正文 16sp 次要色;**无边框文字按钮**,全大写 14sp medium,`colorAccent`,靠结束边排列(确定在最右);无分隔线 | 圆角 2dp + 阴影;行高 48dp;16sp 文字、左右内缩 16dp;无分隔线;宽度随内容 |
|
|
41
|
+
| `Theme.AppCompat*` | 同上(圆角 2dp、按钮全大写、强调色、靠结束边) | 同上 |
|
|
42
|
+
| `Theme.MaterialComponents*` | 圆角 4dp;标题 20sp;正文 16sp;全大写 `colorPrimary` 文字按钮,靠结束边 | 圆角 4dp;行高 48dp;16sp;内缩 16dp |
|
|
43
|
+
| `Theme.Material3*` | 圆角 28dp;内边距 24dp;标题 24sp 靠起始边;正文 14sp `onSurfaceVariant`;**句首大写**(不转大写)`colorPrimary` 文字按钮,靠结束边 | 圆角 4dp;`surfaceContainer` 底;上下内边距 8dp;行高 48dp;16sp(BodyLarge);内缩 16dp |
|
|
44
|
+
| `Theme.Holo*` / `Theme.DeviceDefault*` / 无法识别 | 厂商外观,以 capture 为准;没有 capture 时标 `需上报` | 同左 |
|
|
45
|
+
|
|
46
|
+
表中 Material3 / MaterialComponents 两行取自 MDC 源码(`theme/res/values/themes_base.xml` 及 `menu/`、`dialog/` 资源),Theme.Material / AppCompat 两行是 AOSP framework / AppCompat 默认值;有 capture 时一律以 `measure_pack` 为准。
|
|
47
|
+
|
|
48
|
+
**主题来源的已知局限**:检查器只读 `<application android:theme>`(SplashScreen 启动主题会沿 `postSplashScreenTheme` 找到真正的应用主题)。Activity 自己的 `android:theme`、以及 `AlertDialog.Builder(context, R.style.X)` / `MaterialAlertDialogBuilder(context, R.style.X)` 显式传入的对话框主题都**不会**被读到,这时报告里的主题链可能与实际不符:转换时先看该对话框/菜单所在 Activity 与构造参数,有显式主题就按它取值。
|
|
49
|
+
|
|
50
|
+
二、三级浮层(菜单项打开的确认框、列表对话框)几乎都没有被采集:它们用**和同一应用一级浮层相同的主题**,因此取值按 ②/③,不要「没截图就用原生默认」。父流程接受差异时,在该行上方写 `// APPEARANCE-ESCALATED(PopupMenu|AlertDialog): <裁决出处>` 降为 CAND,并在报告里登记 `需上报`。
|
|
30
51
|
|
|
31
52
|
## 常见误译(编译期无法发现)
|
|
32
53
|
|
|
33
54
|
| 误译 | 为什么会发生 | 后果 | 自查方法 |
|
|
34
55
|
|---|---|---|---|
|
|
35
|
-
| **`PopupMenu` 自绘成 overlay 面板** | 统一套用"浮层 = 状态驱动 overlay"的写法 | 菜单尺寸、圆角、分隔线、位置都是凭空设定,也不锚定按钮 | 触发组件上写 `.bindMenu(
|
|
56
|
+
| **`PopupMenu` 自绘成 overlay 面板** | 统一套用"浮层 = 状态驱动 overlay"的写法 | 菜单尺寸、圆角、分隔线、位置都是凭空设定,也不锚定按钮 | 触发组件上写 `.bindMenu(this.xxxMenu)`(`@Builder` + `Menu/MenuItem`)。GATE `popup-menu-not-bound` |
|
|
57
|
+
| **`PopupMenu` / `AlertDialog` 用鸿蒙系统默认外观** | 映射表「直接映射」+「没截图的浮层优先用原生组件」 | 菜单圆角/宽度/字号、对话框标题对齐与按钮排布都换成了鸿蒙样式;二、三级弹窗没有 capture,全过 | 按「系统弹窗与菜单」的源主题表取值:菜单用 `@Builder Menu`,对话框用共享的源主题对话框组件。GATE `popup-menu-default-look` / `framework-dialog-appearance` |
|
|
58
|
+
| **对话框面板外再包一层背板** | 把 measure_pack 的 window 行(含 inset)当成容器:外层 `width('95%') + padding(16)`、里层画面板;背板选项只写了 `width` | 白色面板外多出一圈背板(默认圆角,API 26 之前还有磨砂模糊),像「方框之外还包着一层背景」 | →「对话框」段「背板就是面板」:面板外观写在背板选项上,builder 根不加 padding / 背景。GATE `dialog-backboard-default` |
|
|
36
59
|
| **定宽定高的文字字形按钮**(`'•••'`、`'‹'`、`'×'`) | Android 同字号同盒宽放得下 | HarmonyOS 回退字体的 `•` 等符号更宽,无 `maxLines` 时折行,「•••」排成「⁘」 | 定宽 `Text` 加 `.maxLines(1)`,估算 CJK/符号按 1em;GATE `fixed-box-text-wraps` |
|
|
37
60
|
| **框架选择器"同名直接映射"** | 映射表写着 `TimePicker → TimePicker` | Android 默认表盘/月历,ArkUI 是滚轮,整体外观不同 | 先判 Android 侧模式(`timePickerMode`/`datePickerMode`/主题),非 spinner 就按 Phase 4.3「外观替换」处理。GATE `framework-picker-appearance` |
|
|
61
|
+
| **金额输入框用 `InputType.Number`** | 映射表 `number → Number`;Android `numberDecimal` / Compose `KeyboardType.Decimal` 只换键盘、不过滤字符,直觉以为 ArkUI 也一样 | ArkUI `InputType.Number` 是「纯数字输入模式,不支持负数、小数」,会**过滤**掉小数点:键入 99.9 只剩 999 | 金额、价格、重量等可带小数的字段用 `InputType.NUMBER_DECIMAL`(只允许一个小数点,不支持负数;要负数用 `inputFilter`)。GATE `input-type-decimal-domain` |
|
|
38
62
|
| **在原子组件之外重建它自带的装饰** | view tree 暴露了框架复合控件的内部件,逐个映射显得更「忠实」 | 同一视觉元素画两遍,多出的线/框常落在组件**外部** | → Phase 4.3「框架复合控件的部件归属」、Phase 5「装饰重复检查」 |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
检索范围优先本页宿主 Activity 及其 Application/基类;宿主自身没有时,命中项属于别的 Activity(如崩溃页、全屏阅读页)**不能**算作本页的证据。
|
|
11
11
|
**禁止用截图推断本项**:「截图里状态栏可见」「内容起点在状态栏下方」都**不能**推出非沉浸式 —— edge-to-edge 页面会自行对 insets 做 padding,其截图形态与非沉浸式**完全同形**,该判据在沉浸式场景下必然误判。截图只能用于交叉印证,不能作为①的依据。
|
|
12
12
|
② **窗口层**:固定为默认布局 —— `EntryAbility` **不调用** `setWindowLayoutFullScreen`(可设 `setWindowSystemBarProperties` 改栏前景色)。内容由系统排在安全区、自动避让状态栏与导航条。本项只需写明「窗口层默认布局」,调用了 `setWindowLayoutFullScreen(true)` 即判定失败(`window-fullscreen-layout` GATE)。
|
|
13
|
-
③ **组件层**:①为沉浸式时,贴着系统栏的 chrome 只把**背景**延伸进去 —— 壳/页根 `.background(<色>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`,底部 chrome `[LayoutSafeAreaEdge.BOTTOM]`;内容本身必须画进状态栏的(全屏封面、视频)在该组件上用 `expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])`。**两种写法在 `Refresh` / `Scroll` / `List` 里面都不生效**(这些容器 `clip` 默认 true,裁掉延伸部分,GATE `safe-area-in-clipping-ancestor`):贴栏 chrome 位于这些容器里时(下拉刷新里的折叠头部),把它的背景放到页根下、容器之外的单独一层,高度用同一状态驱动并设 `.hitTestBehavior(HitTestMode.None)
|
|
13
|
+
③ **组件层**:①为沉浸式时,贴着系统栏的 chrome 只把**背景**延伸进去 —— 壳/页根 `.background(<色>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })`,底部 chrome `[LayoutSafeAreaEdge.BOTTOM]`;内容本身必须画进状态栏的(全屏封面、视频)在该组件上用 `expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])`。**两种写法在 `Refresh` / `Scroll` / `List` 里面都不生效**(这些容器 `clip` 默认 true,裁掉延伸部分,GATE `safe-area-in-clipping-ancestor`):贴栏 chrome 位于这些容器里时(下拉刷新里的折叠头部),把它的背景放到页根下、容器之外的单独一层,高度用同一状态驱动并设 `.hitTestBehavior(HitTestMode.None)`,内容留在原处。**这一层必须写 `.width('100%')`**:它通常是没有子节点的空容器,宽高缺省时取子组件尺寸(尺寸设置文档),空容器即为 0,`.background()` 不参与测量,不写宽度整层不显示(GATE `bg-only-container-collapsed`)。它所在的页根 `Stack` 写 `alignContent: Alignment.TopStart`,否则定高的背景层被垂直居中。**这一层的高度是安全区内的高度(与内容层同值),用 `.background(<色或 @Builder>, { ignoresLayoutSafeAreaEdges: [LayoutSafeAreaEdge.TOP] })` 画**:背景区域在组件之上再加一个状态栏高,组件布局不变。**不要**用固定高度 + `expandSafeArea`:固定宽高(或 `'auto'`)扩展后尺寸不变,组件整体上移一个栏高,底边跟着上移(安全区域文档 expandSafeArea 约束;GATE/CAND `fixed-size-expand-safe-area`)。`@Builder` 背景不随 builder 内部状态更新,渐隐等 `opacity` 设在这一层自身上。
|
|
14
14
|
**栏下逐层**:「背景」指 Android 在系统栏区域里**实际画出来的全部层**,不只是一个底色。按 z 序逐层列出栏下区域(屏幕 y < 状态栏高)的绘制者 —— 容器底色、铺满的 `ImageView`(头图,常配 `scaleType=fitXY/centerCrop`)、渐变/shape、遮罩 —— 每一层都要进延伸层:颜色层用 `.background(<色>, …)`,图片层用 `.background(<画该图的 @Builder>, …)`(或在延伸层里叠一层同尺寸 `Image`),多层就在延伸层里按原 z 序叠。依据写 Android 布局 `文件:行号`(该 View 的约束贴 `parent` 顶、或负 `marginTop` 把它推到栏下)。只搬了最底下的色块、而上面的图留在裁剪容器里时,状态栏只显示纯色 —— `safe-area-in-clipping-ancestor` 抓不到(那张图本身没写安全区 API),CAND `backdrop-image-in-clipping-ancestor` 会列出可疑的铺满 `Image`。
|
|
15
15
|
全出血内容用 `expandSafeArea` 时同样不能是固定高度,用百分比高度。①为非沉浸式时写明「未使用」。列出实际所在 `文件:行号`;壳宿主的 Fragment 页由壳承担,写明引用壳的行号。
|
|
16
16
|
④ ①②③ 三者是否等价。
|
|
@@ -26,4 +26,5 @@
|
|
|
26
26
|
| edge-to-edge 译成窗口层全屏 + 每页按栏高 padding | `setDecorFitsSystemWindows(false)` 看着像「窗口全屏」 | 栏高读不到/读到旧值时(避让区可为 0、V2 一次性读取不更新),**全批**顶栏落进状态栏、点不到;跨页一致性满分 | → Phase 5「窗口模式证据」②③与「关键」段;GATE `window-fullscreen-layout` / `system-bar-height-read` |
|
|
27
27
|
| **贴栏背景放在 `Refresh` / `Scroll` / `List` 里** | `expandSafeArea` / `ignoresLayoutSafeAreaEdges` 写在需要沉浸的组件上,看起来就对 | 状态栏只显示页根底色,沉浸消失;编译、冒烟全过 | → Phase 5「窗口模式证据」③;GATE `safe-area-in-clipping-ancestor` |
|
|
28
28
|
| **延伸层只搬了底色,栏下的头图留在裁剪容器里** | 规则示例写的是 `.background(<色>, …)`,把「背景」读成单一颜色,头图被当成「内容」留在原处 | 状态栏是纯色、Android 是图;`safe-area-in-clipping-ancestor`、`android-immersive-not-mirrored` 全过 | → Phase 5「窗口模式证据」③「栏下逐层」;CAND `backdrop-image-in-clipping-ancestor` |
|
|
29
|
+
| **页根外的背景层写成空 `Stack().height(h).background(…)`** | 照③写了单独一层、高度跟状态走,只写了高度 | 空容器宽度取子组件尺寸 = 0,`.background()` 不参与测量:头图、头部底色整层消失,页面只剩页根底色;编译、冒烟、EVIDENCE 全过 | 背景层 `.width('100%')` + 状态驱动高度,页根 `Stack({ alignContent: Alignment.TopStart })`;GATE `bg-only-container-collapsed` |
|
|
29
30
|
| **固定高度的背景层配 `expandSafeArea(TOP)`** | 以为延伸会在原高度上再加一个状态栏高 | 固定尺寸扩展后尺寸不变,层整体上移,底边少一个栏高:头图盖不住底部文字;只看状态栏有没有画进去时发现不了 | → Phase 5「窗口模式证据」③;改用 `background(…, { ignoresLayoutSafeAreaEdges })`;GATE/CAND `fixed-size-expand-safe-area` |
|