@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
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: a2h-spec-generate
|
|
3
|
+
description: "Generate HarmonyOS migration specifications from an Android or UniApp project. Two entries: (1) fused mode — from an existing UTG workspace (utg.json + click_paths.json), one fused per-Area pass reconciles the UTG Areas and authors the page SPEC files in the same session, then the deterministic layer finalizes the model, collects the SPECs and publishes the specs.json manifest; (2) SPEC-only mode — from existing REQ documents (one requirement file or a directory of req-N.txt page batches), dispatched per page batch via references/batch-mode.md. Use for full source-to-SPEC generation, or for converting existing REQ texts into SPECs."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Android / UniApp to HarmonyOS Spec Generation
|
|
7
|
+
|
|
8
|
+
Complete end-to-end workflow from Android or UniApp source + UTG workspace to HarmonyOS implementation specifications and a validated `specs.json` manifest. This is a **single skill**: the former req-generation stage, the former SPEC-generation stage, and the pipeline that chained them are now one router with in-skill steps — the reqgen CLI runs from this skill's own `scripts/reqgen/`, and the SPEC scripts (`collect-specs`, `publish-specs`, `check-fused-spec`, …) ship beside it under `scripts/`.
|
|
9
|
+
|
|
10
|
+
## In-skill path bindings
|
|
11
|
+
|
|
12
|
+
- `<skill-dir>`: the directory holding this `SKILL.md` (this skill's own directory, e.g. `…/skills/a2h-spec-generate`).
|
|
13
|
+
- `<reqgen-root>`: `<skill-dir>/scripts/reqgen` (the Node CLI: `package.json`, `src/`, `assets/`). It is an internal path, never a user input.
|
|
14
|
+
- Gate references, templates and the SPEC schema live under `<skill-dir>/references/`, `<skill-dir>/template/` and `<skill-dir>/scripts/`.
|
|
15
|
+
- Every step below is an **in-skill step**, not an external stage. There is no second skill to invoke by absolute path.
|
|
16
|
+
|
|
17
|
+
## Inputs
|
|
18
|
+
|
|
19
|
+
### Required — fused mode (source + UTG → SPEC)
|
|
20
|
+
|
|
21
|
+
- `<android-project-path>`: Absolute path to the Android or UniApp source project root. Keep this existing parameter name for compatibility; the CLI detects the project type from the source.
|
|
22
|
+
- `utg-workspace=<utg-workspace>`: Absolute path to an existing UTG workspace containing `utg.json` and `click_paths.json` (frozen input; read-only).
|
|
23
|
+
|
|
24
|
+
### Required — SPEC-only mode (existing REQ documents → SPEC, no UTG)
|
|
25
|
+
|
|
26
|
+
- `requirements_input=<path>`: Either one requirement file (Excel `.xlsx`/`.xlsm`/`.csv`, or text `.txt`/`.md`) or a directory of `req-<positive integer>.txt` page batches. `references/input-formats.md` defines the formats; `references/batch-mode.md` is the mode's operating procedure.
|
|
27
|
+
- Optional in this mode: `spec_output_dir=<dir>` (the SPEC root; defaults to `<requirements_input>/specs`, required for a single-file input) and `req_selection=<sel>` (one index `3`, an inclusive range `2..5`, or a union `1,3,6..8`; omitted = all).
|
|
28
|
+
|
|
29
|
+
### Optional (both modes)
|
|
30
|
+
|
|
31
|
+
- `output=<run-directory>`: Override the default `.hometrans/reqgen/` run directory. If omitted, this skill determines it automatically.
|
|
32
|
+
- `concurrency=<n>`: Max concurrent subagents for the fused per-Area fan-out (default 8).
|
|
33
|
+
- `image-read=<true|false>`: Whether this host's sub-agents can read image files (a2h-app-migrate probes it at bootstrap). Default `true`. `false` adds the no-image sentence of Step 2 to every worker dispatch. Never probe it by opening an image in this session.
|
|
34
|
+
- `application-module=<module>`: The application module (e.g. `:app`). A supplied value is authoritative and is forwarded verbatim to `prepare --application`. When omitted, this skill determines it itself per Step 0 — never the CLI: `--application` is required and has no default.
|
|
35
|
+
- `hmos-project=<dir>`: Absolute path to the target HarmonyOS project root. When supplied (the fused-mode orchestrator passes it), `publish-specs` declares the published SPEC root as `spec_root` in `<dir>/.hometrans/artifact-registry.jsonl` so `a2h-dashboard-render` resolves it precisely. Optional: omitted (e.g. standalone SPEC-only runs) → no registry declaration, the board falls back to its `.hometrans` scan.
|
|
36
|
+
|
|
37
|
+
REQ documents supplied **together with** a UTG workspace are not SPEC-only input: they (and/or a natural-language scope description) act as scope/history exclusion for the fused mode — read `references/requirement-scope.md` before preparing the run.
|
|
38
|
+
|
|
39
|
+
## Run directory layout
|
|
40
|
+
|
|
41
|
+
`<run-directory>` is the single run root — the Model workspace, not a wrapper around `stage1/` or `model/` directories. The layout is fixed; do not derive another default output root:
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
<run-directory>/
|
|
45
|
+
├── .dispatch/ # dispatch-watch ledger + wake lock (transient, never a deliverable)
|
|
46
|
+
├── model-input.json / imported-utg.json / area-graph.json / source-facts.json
|
|
47
|
+
├── req-model.json / run-report.json / gap-audit.json
|
|
48
|
+
├── interaction/
|
|
49
|
+
│ ├── manifest.json
|
|
50
|
+
│ ├── facts-shared/<sha>.md # content-addressed slices shared by ≥2 Areas
|
|
51
|
+
│ ├── review-<id>/ # candidate review (one ReviewUnit per task)
|
|
52
|
+
│ └── area-<id>/ # one fused task per Area (reconcile + SPEC)
|
|
53
|
+
│ ├── task.md / expected.json
|
|
54
|
+
│ ├── area-facts.md # deterministic Area facts pack (prepare; read-only)
|
|
55
|
+
│ ├── shape-example.json # full, schema-valid draft example (read on demand)
|
|
56
|
+
│ ├── output.json # worker draft (finalized: true)
|
|
57
|
+
│ ├── draft.json # L1 self-check output (check-fused-spec → check-fusion)
|
|
58
|
+
│ └── specs/<feature>-SPEC.md
|
|
59
|
+
└── generation/
|
|
60
|
+
├── spec-bindings.json # Model finalize publishes the SPEC binding sidecar
|
|
61
|
+
├── specs/ # collect-specs relocates + injects identity and the
|
|
62
|
+
│ # trailing `## Source locations` provenance section here
|
|
63
|
+
│ ├── <idx>/<feature>-SPEC.md
|
|
64
|
+
│ └── specs.json # publish-specs — ✓ published manifest
|
|
65
|
+
└── pages/ # Step 5b: page-grouped re-publication of the same SPECs
|
|
66
|
+
├── <page>/<feature>-SPEC.md
|
|
67
|
+
├── pages.json # regroup-by-page view (groups, member ids, warnings)
|
|
68
|
+
└── specs.json # publish-specs over the page root — downstream input
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
`.dispatch/` (ledger, wake lock) is **transient dispatch bookkeeping**, written by
|
|
72
|
+
`scripts/dispatch-watch.mjs`, never a deliverable: deleting it only loses in-memory
|
|
73
|
+
progress — the task plan is re-derived from `interaction/manifest.json`. It lives
|
|
74
|
+
beside the run's artifacts so a resumed run reuses the same ledger.
|
|
75
|
+
|
|
76
|
+
`area-facts.md` and `shape-example.json` are written by `prepare` (the deterministic layer), not by the worker: the pack is the Area's frozen facts — candidate evidence ranges, copy-ready identity anchors, the Area's UTG links (with the `utgEdgeRef`s that are legal), and one verbatim, citable excerpt per source range; a slice more than one Area needs is written once under `interaction/facts-shared/<sha>.md` and referenced by each pack. The worker reads the pack first and only reads source outside it, with an explicit line range.
|
|
77
|
+
|
|
78
|
+
The supplied UTG workspace stays outside the run root and is always read-only; it is never copied into the run directory.
|
|
79
|
+
|
|
80
|
+
## Expected output
|
|
81
|
+
|
|
82
|
+
**Key deliverables**:
|
|
83
|
+
|
|
84
|
+
- `specs.json`: the published manifest of every SPEC in deterministic page-batch order — `<run-directory>/generation/specs/specs.json` (idx anchor root).
|
|
85
|
+
- `N × <feature>-SPEC.md`: platform-neutral HarmonyOS implementation specifications — `<run-directory>/generation/specs/<idx>/<feature>-SPEC.md`, re-published page-grouped at `<run-directory>/generation/pages/<page>/<feature>-SPEC.md` by Step 5b.
|
|
86
|
+
- `pages/`: the page-grouped re-publication of the same SPECs for page-oriented consumers (`a2h-spec-design-pipeline` groups by the spec file's parent directory) — `<run-directory>/generation/pages/<page>/<feature>-SPEC.md` plus its own `specs.json` (so-ids re-minted in page order — a fresh campaign key, never swapped in mid-pipeline).
|
|
87
|
+
|
|
88
|
+
**Source provenance in every published SPEC.** `collect-specs` appends one `## Source locations`
|
|
89
|
+
section at the end of every SPEC. It is the only place a source path may appear: the body stays
|
|
90
|
+
platform-neutral and carries no `file:line` (`check_spec`'s `code-anchor-leak` rule), so the section
|
|
91
|
+
is the only traceability channel a consumer gets.
|
|
92
|
+
|
|
93
|
+
```text
|
|
94
|
+
## Source locations
|
|
95
|
+
|
|
96
|
+
- Whole page: `feature/main/…/CartScreen.kt:266-274`, `…/CartViewModel.kt:191-216`
|
|
97
|
+
- Scenario 1: `feature/main/…/CartScreen.kt:266-274`, `…/CartViewModel.kt:108-114`
|
|
98
|
+
- Scenario 2: `feature/main/…/CartScreen.kt:328-339`
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`Whole page` holds the record's own `specs[].citations`; each `Scenario N` bullet holds the anchors
|
|
102
|
+
of the behaviours that sat under that scenario heading (`behaviors[].anchors`). Paths are relative to
|
|
103
|
+
`<android-project-path>`, ranges are 1-based and inclusive, a single-line anchor has no range, and a
|
|
104
|
+
long list is split across several bullets sharing one label (take their union). A scope with no
|
|
105
|
+
verified anchor gets no bullet, and a SPEC with no evidence at all gets no section.
|
|
106
|
+
|
|
107
|
+
The section is publisher-owned: whatever a worker wrote under `## Source locations` is removed before the
|
|
108
|
+
section is rebuilt from the draft, so an unverifiable path can never be published (no evidence ⇒ no
|
|
109
|
+
section). The gate exempts a path by SHAPE, not by section: only a ``- <label>: `a.kt:1-2`, `b.kt:3` `` bullet
|
|
110
|
+
inside that section is skipped, so prose written there is still judged. A scenario section after
|
|
111
|
+
`## Source locations`, or an empty section, is a structure error.
|
|
112
|
+
|
|
113
|
+
## Mode selection (Step 0 picks one)
|
|
114
|
+
|
|
115
|
+
- **Fused mode** — `<android-project-path>` + `utg-workspace=`. Source + frozen UTG → SPEC in one pass. Steps 0–6 below.
|
|
116
|
+
- **SPEC-only mode** — `<android-project-path>` + `requirements_input=`, no UTG workspace. Read and execute `references/batch-mode.md` as the dispatcher: platform detection (`scripts/detect-project.mjs`), index freshness (`scripts/ensure-index.mjs`), UniApp inspection (`scripts/inspect-uniapp.mjs --out`), the facts pack (`scripts/prepare-facts.mjs`), task rendering (`scripts/render-tasks.mjs`), then dispatch one `specgen-worker` per rendered `task.md` (rolling, background — never a wave barrier), each writing its page batch under `<spec_output_dir>/<idx>/`. The dispatcher runs none of the per-file steps; it performs the batch audit, then `scripts/report.mjs` and `scripts/publish-specs.mjs --root <spec_output_dir>`. The rest of this file (run directory, Steps 1–6) describes the fused mode.
|
|
117
|
+
|
|
118
|
+
## Workflow
|
|
119
|
+
|
|
120
|
+
### Step 0 — Parse and validate inputs
|
|
121
|
+
|
|
122
|
+
1. Parse the user's prompt to extract:
|
|
123
|
+
- `<android-project-path>` (required, positional or named)
|
|
124
|
+
- `utg-workspace=<path>` (fused mode, named)
|
|
125
|
+
- `requirements_input=<path>` / `spec_output_dir=<dir>` / `req_selection=<sel>` (SPEC-only mode, named)
|
|
126
|
+
- `output=<path>` (optional, named)
|
|
127
|
+
- `concurrency=<n>` (optional, named)
|
|
128
|
+
- `application-module=<module>` (optional, named)
|
|
129
|
+
2. Pick the mode (see "Mode selection"): `utg-workspace` → fused; `requirements_input` without a UTG workspace → SPEC-only (follow `references/batch-mode.md`; the rest of this step applies to the fused mode). Neither input, or an ambiguous combination → report and stop.
|
|
130
|
+
3. Validate required paths exist:
|
|
131
|
+
- `<android-project-path>` must be a directory.
|
|
132
|
+
- `<utg-workspace>` must be a directory containing both `utg.json` and `click_paths.json`.
|
|
133
|
+
4. If validation fails, report the exact missing path or file and stop.
|
|
134
|
+
|
|
135
|
+
Determine the remaining parameters yourself — the CLI defaults none of them:
|
|
136
|
+
|
|
137
|
+
- `case-id`: a stable slug derived from the source project directory name (`deriveCaseId()`); a resumed run reuses the value already recorded in the run's `model-input.json` instead of re-deriving it. The timestamp lives only in the run directory, never in the `case-id`.
|
|
138
|
+
- `application-module`: analysis-context metadata only — it never selects the scan root (that is always `<android-project-path>`). A supplied `application-module=` is authoritative and is passed straight through as `prepare --application`. Otherwise determine it yourself and never guess by running build tools: for Android, match the UTG source anchors against the module directories and use the Gradle-style name (e.g. `:app`) when exactly one matches; for UniApp, use the most stable uniquely-determining item among appid, package name, or directory slug. Multiple equally-valid choices or insufficient evidence → ask the user once; a caller that forbids questions (a2h-app-migrate passes `application-module=` from its preflight) never reaches this.
|
|
139
|
+
- `configuration`: analysis-context label; default `source` (only take `debug` / `release` when the user explicitly asks to distinguish artifacts).
|
|
140
|
+
- `run-directory`: the user's `output=`, else the default `<workspace-root>/.hometrans/reqgen/<case-id-path-slug>--YYYY-MM-DD_HH-mm-ss` (`<case-id-path-slug>` only turns the `.` and `_` of the `case-id` into `-` for the path; the recorded `case-id` itself is unchanged).
|
|
141
|
+
|
|
142
|
+
Tell the user the exact run directory before any model call.
|
|
143
|
+
|
|
144
|
+
### Step 1 — Prepare the run (deterministic)
|
|
145
|
+
|
|
146
|
+
Ensure the runtime dependencies are present: Node.js 22.18 or newer (22.19 is the currently verified version), and the npm deps (`commander`, `homegraph`, `tree-sitter-wasms@0.1.13`, `web-tree-sitter@0.20.8`, `zod`) linked into `<reqgen-root>/node_modules` by `ht init`. Do not run `npm install` / `npm ci` / `npm link` inside the skill; if module resolution fails, stop and ask the user to rerun `ht init`.
|
|
147
|
+
|
|
148
|
+
For Android, maintain the HomeGraph index from `<reqgen-root>` (UniApp skips HomeGraph and goes straight to prepare):
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
npm run homegraph -- status <project-path> --json
|
|
152
|
+
npm run homegraph -- init -i <project-path>
|
|
153
|
+
npm run homegraph -- sync <project-path>
|
|
154
|
+
npm run homegraph -- index <project-path>
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Under a2h-app-migrate the index is maintained by its `discover.android_index` node: run only `sync`, and when `init` / a full `index` would be needed, fail the run with this step's text instead (the caller rebuilds it). Standalone: run `sync` before every prepare; run `init -i` only on the first run, and a full `index` when `index.state` is not `complete` / `reindexStarted` is true, **or when the index's builder version differs from the CLI in use** (`status --json`: `index.builtWithVersion` ≠ `version`) — prepare's gate requires `indexed_with_version` to equal the installed homegraph exactly, a no-change `sync` never re-stamps it, and skipping the rebuild means the deterministic scanner is skipped for the whole run. The HomeGraph database must live outside `<run-directory>` (prepare freezes it, along with the source fingerprint, between prepare and finalize).
|
|
158
|
+
|
|
159
|
+
**WSL**: `/mnt` paths disable the live watcher, and the first `init -i` may ask how to keep the index fresh — use a controllable interactive terminal and explicitly choose manual sync; never install or modify the project's git hooks. When the host cannot control that interaction, state the blockage before `init` and ask the user for an already-indexed project instead; do not accept the default hook option.
|
|
160
|
+
|
|
161
|
+
Then run `prepare` from `<reqgen-root>`:
|
|
162
|
+
|
|
163
|
+
```powershell
|
|
164
|
+
cmd /c "npm run model -- prepare --utg <utg-workspace> --source <project-path> --output <run-directory> --case-id <case-id> --application <application-module> --configuration <configuration>"
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Non-PowerShell environments run the equivalent `npm run model -- prepare …`. With a scope, prepare a scope file and append `--scope <scope-json>`; place it beside (not inside) the fresh run directory.
|
|
168
|
+
|
|
169
|
+
Only when the caller explicitly needs to override a default, append the real arguments `--homegraph <database>`, `--max-areas-per-shard <n>`, or `--max-candidates-per-shard <n>` (never type the brackets shown here). The default candidate soft cap is 12 per review task; the caps are part of the input fingerprint — changing them requires a fresh run and never reuses old worker outputs. The candidate budget only decides how many review tasks an Area needs; the area-fusion task count is always one per Area.
|
|
170
|
+
|
|
171
|
+
`prepare` freezes the imported UTG, assigns scanner candidates to the existing UTG Areas, packs one `candidate-review` task per Area (atomic ReviewUnits), writes exactly **one `area-fusion` task per selected Area** — the single-session contract that reconciles the Area and authors one SPEC per control/discovery plus the source-backed display SPECs — and writes that Area's **deterministic facts pack** (`interaction/area-<id>/area-facts.md` plus `interaction/facts-shared/<sha>.md` and the `shape-example.json` draft example). It resolves the SPEC gate references and the `<spec-skill-dir>` (default: this skill root, `<reqgen-root>/../../../a2h-spec-generate`; override with `--spec-skill-dir`) and fails before writing if that is not an `a2h-spec-generate` skill root.
|
|
172
|
+
|
|
173
|
+
Read the stdout summary and `interaction/manifest.json`. Any UTG change, source-boundary violation, or input-fingerprint drift is an infrastructure error: stop and report it. Ordinary unresolved candidates, weak Area assignments and `UTG_NAV_CONFLICT` are recoverable semantic gaps — keep dispatching the other tasks. `fusion: true` is folded into the input fingerprint, so a run directory is never reused across inputs.
|
|
174
|
+
|
|
175
|
+
The fused task's authoritative contract is `references/fusion-task-contract.md`; the run-directory layout and the write scopes are fixed by this SKILL and by the rendered `task.md`.
|
|
176
|
+
|
|
177
|
+
### Step 2 — Dispatch the fused per-Area workers (rolling, background)
|
|
178
|
+
|
|
179
|
+
Run the manifest's unfinished tasks at the chosen `concurrency`. Hand each worker only the absolute path of one `task.md`; its workspace is the directory holding that file (`review-<id>/` or `area-<id>/`). The `task.md` is the complete and authoritative specification — do not add a second prompt. The one exception is `image-read=false`: then the dispatch line also carries, verbatim, `Do not open any image file (.png/.jpg/.jpeg/.webp/.gif): image content crashes this host session; all evidence you need is text.` A worker that still dies on image content (`messages.content.type` invalid; it cannot be resumed) means the same: add that sentence to every later dispatch of this run, redispatch the task fresh, and note it in the report.
|
|
180
|
+
|
|
181
|
+
**Dispatch watchdog — notification and slot tracking.** A background notification that is lost is indistinguishable from a worker still running, and its task would hold an in-flight slot forever. Before the first dispatch, and on every resumed run, initialize the ledger (the source of truth for who is in flight; full contract in `references/dispatch-watchdog.md`):
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
node <skill-dir>/scripts/dispatch-watch.mjs init --root <run-directory> --concurrency <n>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
For **every** background dispatch, in the same order: `dispatch --root <run-directory> --task <taskId>` immediately before the `subagent` call, then `attach --root <run-directory> --task <taskId> --session <sessionID>` once it returns. Never dispatch beyond `status.slots.free` — the ledger, not a memory map, is the concurrency authority, and `dispatch` itself refuses exit 3 when no slot is free.
|
|
188
|
+
|
|
189
|
+
The ledger has four states:
|
|
190
|
+
|
|
191
|
+
```text
|
|
192
|
+
pending ──dispatch──► in_flight ──complete (notification)──► done
|
|
193
|
+
│
|
|
194
|
+
└──lease 20 min, no file change──► fail
|
|
195
|
+
|
|
196
|
+
fail ──dispatch──► in_flight (or retry → pending)
|
|
197
|
+
fail ──resume────► in_flight (same attempt, same live session)
|
|
198
|
+
fail ──complete (late notification)► done
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
`done` means **the notification arrived**, not that the task content is valid. `fail` means **no notification arrived**, not that the task failed. The content gate below is a separate quality check and never changes these states.
|
|
202
|
+
|
|
203
|
+
A lease expiry frees the slot; it does not stop the worker. Before dispatching a `fail` task whose session may still be alive, either `resume --task <taskId>` it (keeps the attempt and session, so two workers never write the same output) or pass `--ended <sessionID>` to prove that session is gone. `status.orphanSessions` lists the failed tasks that still hold a session.
|
|
204
|
+
|
|
205
|
+
Keep exactly one watchdog waiter armed while any task is in flight. It is a bounded **background shell command**, not a subagent:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
node <skill-dir>/scripts/dispatch-watch.mjs wait --root <run-directory> --max-wait 300 --poll 5
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
It wakes on a ledger change or a lease deadline; file writes only renew the lease and do not wake the dispatcher. A second waiter exits with `{ "skipped": "lock-held" }` — healthy dedup, not a timeout. `--poll` must be greater than 0. On a resumed run a leftover `in_flight` unit keeps its slot until its lease expires (20 minutes by default): `status` shows its `idleMin`, and `reap` is the deliberate way to reclaim it early.
|
|
212
|
+
|
|
213
|
+
**Write scopes (enforced by the task contract, mirrored here):**
|
|
214
|
+
|
|
215
|
+
- A `candidate-review` worker writes only its own `output.json`.
|
|
216
|
+
- An `area-fusion` worker writes only its own `output.json` and the `specs/<stem>-SPEC.md` files it declares — nothing else in the run directory, and never `task.md`, `expected.json`, or another task's output.
|
|
217
|
+
- **Read order for a fused worker**: its own `area-facts.md` first (the deterministic pack), then the slices it references (its own excerpts, plus `interaction/facts-shared/<sha>.md` for the ones marked shared), then `shape-example.json` only when the inline field tables leave a shape unclear. Source outside the pack is read **with an explicit line range**, never whole-file by default.
|
|
218
|
+
- Project source, the frozen UTG, and every other task directory are read-only. No worker may spawn a nested agent. Node — never the worker — mints the canonical `Control: <controlRef>` identity; the worker submits structured `identityAnchor`/`identityAnchors` only.
|
|
219
|
+
|
|
220
|
+
**Rolling dispatch, not waves.** Dispatch every worker with **background mode** (`background: true`): the dispatch call returns immediately with a `sessionID`, and the worker's final message arrives later as a completion notification. Record it in the watchdog ledger (`dispatch` before the call, `attach` after it — see *Dispatch watchdog*). Keep a transient dispatch map `sessionID → taskId` (this-session bookkeeping only — crash recovery reads the on-disk `.dispatch/ledger.jsonl` / `manifest.json`, never the map) and a per-task state `pending → in_flight → done/fail`. The watchdog owns the slot count; the map is only for matching notifications. At no instant may more than `concurrency` background workers be in flight, and there is **no whole-wave barrier**.
|
|
221
|
+
|
|
222
|
+
**Event loop.** First: dispatch every ready task (see the scheduling order below), register each one, and end the turn with exactly one watchdog `wait` armed. Then, on **each** wake — a worker notification, a watchdog event, or a watchdog timeout:
|
|
223
|
+
|
|
224
|
+
1. Run `reap` first (see *Dispatch watchdog*): every in-flight task silent for the 20-minute lease with no file change becomes `fail`, and its slot is freed.
|
|
225
|
+
2. A worker notification is the **delivery fact**: call `dispatch-watch complete --task <taskId> --session <sessionID>` for it (this frees the slot; a notification from another session is ignored, so a late delivery cannot free the live task's slot), then run that task's content gate (below). A gate failure is a content gap: continue that task's own session with the gate output and record it; the watchdog state stays `done` because the background job did notify.
|
|
226
|
+
3. Run `status`: dispatch `ready` tasks up to `slots.free`, and redispatch the `fail` ones (`resume` while the old session is alive, otherwise `dispatch --ended <old-session>`). The watchdog has no dependency model — apply the scheduling order below yourself.
|
|
227
|
+
4. Re-arm the waiter if anything is still in flight and no waiter is live.
|
|
228
|
+
|
|
229
|
+
**Scheduling order** (dependencies):
|
|
230
|
+
|
|
231
|
+
1. Dispatch every `candidate-review` task in parallel. A review worker judges only its own ReviewUnit and emits exactly one of `accept` / `correct` / `exclude` (no discovery, merge or unresolved); `correct` requires a source citation, `exclude` a `reasonCode`. It then runs its `task.md`'s `check-task`.
|
|
232
|
+
2. Once all of an Area's reviews pass, dispatch that Area's single `area-fusion` task. The worker starts from the pack it owns — its own `area-facts.md` (Area facts, UTG links, the candidate census, copy-ready identity anchors, verbatim citable excerpts) plus the shared slices that pack references — then reads its own `ReviewUnits`/decisions through `model query`, does the in-scope discovery, groups controls/actions, and — this is the folded SpecGen step — authors one SPEC per control/discovery plus the source-backed display SPECs. It records structured identity anchors only; visible text, target page and business prose are never identity.
|
|
233
|
+
3. The worker then runs `check-fused-spec` (see below). It passes only for a valid draft **and** valid SPECs.
|
|
234
|
+
|
|
235
|
+
**Self-check gate — `check-fused-spec`.** The fused worker's only self-check is the combined gate, run from its rendered `task.md`:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
node --experimental-strip-types <spec-skill-dir>/scripts/check-fused-spec.mjs \
|
|
239
|
+
--run <run-directory> --task <taskId> --reqgen-root <reqgen-root>
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
It runs `check-fusion` first (validates R1–R5 plus the SPEC coverage rules R4/R7 — when a page-owned `pageCoverage` ledger is present it must assign every controlGroup/discovery to an existing SPEC stem or an explicit exclusion; otherwise each controlGroup/discovery needs exactly one `specs[]` record or confirmation, and multiple `area` SPECs are allowed — and the Area's conservation, writing the validated `draft.json` beside the worker's output — L1 mints no IDs), then validates every SPEC its `specs[]` declares (existence, `# <stem>SPEC` H1, `## UI Sequence` verbatim = `title`, `stem` canonical, and the decidable `check_spec.ts` rules; an undeclared `*-SPEC.md` under `specs/` fails the gate). The canonical `Control: <controlRef>` identity is minted by the global L2 (`finalize`), not here. On failure the worker fixes only its own `output.json` and SPECs and re-runs the gate.
|
|
243
|
+
|
|
244
|
+
**Worker profiles.** Prefer the `model-render-worker` profile for `area-fusion` tasks and `model-worker` for `candidate-review` tasks; fall back to a plain subagent only when the host has neither. Either way the "no nested agent" rule rests on this SKILL and the workers' own rules — the agent frontmatter carries no tool gating.
|
|
245
|
+
|
|
246
|
+
**Content completion — the gate, not the notification.** The watchdog's `done` only says the notification arrived; it does **not** claim the task content is valid. Content completion is still decided by the task's own gate, not by the worker's closing message:
|
|
247
|
+
|
|
248
|
+
- `area-fusion`: `<task-dir>/draft.json` exists — `check-fusion` writes it only after the draft validates — and re-running that task's `check-fused-spec` exits 0 (it re-validates R1–R7 and every SPEC its `specs[]` declares).
|
|
249
|
+
- `candidate-review`: re-running that task's `check-task` exits 0 (it validates `output.json` in place and writes nothing).
|
|
250
|
+
|
|
251
|
+
`output.json`'s `finalized: true` alone is **not** evidence: the measured failure mode is a session that ends believing it is finished (`finish="stop"`, no tool call) whose artifact was never written. Run that one gate call yourself per notification — it is cheap, and the worker's own last message is never the content signal:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
# area-fusion
|
|
255
|
+
node --experimental-strip-types <spec-skill-dir>/scripts/check-fused-spec.mjs \
|
|
256
|
+
--run <run-directory> --task <taskId> --reqgen-root <reqgen-root>
|
|
257
|
+
# candidate-review
|
|
258
|
+
npm --prefix <reqgen-root> run model -- check-task --input <run-directory> --task <taskId>
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
A gate failure after `complete` is a **content gap, not a slot leak**: the background job did notify, so its slot is correctly free. Continue that task's own session (below) and report the gap; the final manifest counts only gate-passing SPECs.
|
|
262
|
+
|
|
263
|
+
**Continuation, not restart.** A failed or unfinished task is continued **in its own session**: send it one more message (the dispatch map already holds that `sessionID`), state the artifact condition and quote the gate output verbatim, e.g.
|
|
264
|
+
|
|
265
|
+
> Your artifact did not pass the gate: `draft.json` does not exist / `check-fused-spec` exited non-zero. Verbatim gate output: <verbatim>. Fix only this task directory's `output.json` and `specs/`, rerun the gate, and paste its output back verbatim.
|
|
266
|
+
|
|
267
|
+
Then re-run the gate yourself and re-read the artifact. This rule exists because of the measured cost asymmetry: the failing session had already spent 199 s establishing its context, the restart spent 840 s redoing the same work, and the whole failure was one missing artifact — a continuation costs a single round (~15 s) and keeps that context. A continuation is the same task's session, not a new background dispatch, so it does not take a new watchdog slot. Restart a **fresh** background session only when the session itself is gone (the dispatch was lost, the session closed, no notification ever arrived); if the watchdog had already recorded the delivery as `done` but the content still needs a fresh background attempt, use `dispatch-watch reset --task <taskId>` (an operator repair, not a normal state transition) and dispatch it again. Cap continuations at **2** per task; after that keep the content gap in the report.
|
|
268
|
+
|
|
269
|
+
**Reuse on rerun.** Retry only failed tasks. Content reuse is decided by the gate, not by the watchdog's `done`: a task whose gate passes on disk (`draft.json` present and passing for `area-fusion`; a clean `check-task` for `candidate-review`) is reused and skipped on a rerun. Tasks that keep failing are recorded and the Areas that do not depend on them keep going; an Area whose review failed is marked incomplete, never silently skipped.
|
|
270
|
+
|
|
271
|
+
**Turn-end reconciliation (before ending any turn).** `dispatch-watch status` is the mechanical check. An `in_flight` task with no processed notification is a lost delivery: `reap` turns it into `fail` after its 20-minute lease, and `status.redispatch` names it. Never end a turn with an in-flight task and no armed watchdog.
|
|
272
|
+
|
|
273
|
+
**Terminal condition.** `dispatch-watch status` prints `terminal: true` when no task is `pending` or `in_flight`; `fail` tasks may remain and are reported as lost notifications; if `status.redispatch` is non-empty, either re-dispatch those tasks or record them as gaps before Step 3. Then stop the waiter with `dispatch-watch stop` (do not re-arm it) and continue to Step 3. This watchdog terminal is about slots and delivery only: finalization and publication still require gate-passing artifacts.
|
|
274
|
+
|
|
275
|
+
### Step 3 — Finalize the model
|
|
276
|
+
|
|
277
|
+
After every executable task is settled, run exactly one finalize writer on the run directory (never concurrently):
|
|
278
|
+
|
|
279
|
+
```powershell
|
|
280
|
+
cmd /c "npm run model -- finalize --input <run-directory>"
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
`finalize` owns candidate conservation, the review/Area dependencies, citation scope, structured anchors, stable IDs, cross-Area duplicate detection and Tier-B demotion, and the `SourceFacts` / `AreaGraph` / `ReqModel` consistency; it publishes `generation/spec-bindings.json` (the per-Area `specs[]` binding). Read `run-report.json`, `gap-audit.json` and the interaction conservation summary, and confirm the Area/link counts match the frozen UTG. Do not hand-edit any JSON.
|
|
284
|
+
|
|
285
|
+
`run-report.json` is the run's **publication commit marker**: `status: succeeded` / `publishable: true` only when the model is semantically complete. Two independent findings make it negative: an Area that did not finalize, and an interaction candidate that is still `unresolved` (`CANDIDATE_NOT_PLANNED` — the scanner saw an interaction and the planner could not attribute it to any Area, so no worker was ever asked about it; `metadata.unresolvedInteractions` and `metadata.unresolvedInteractionReasonCodes` carry the count and the codes). Such a run is still written (every artifact stays for inspection and repair) but the marker is `status: failed` / `publishable: false`, and `finalize` then **exits non-zero**, naming the reason it found and the artifacts to read. That is the fail-closed path: the SPEC publication refuses such a run. Fix the finding the message names (retry the failed Areas; for an unowned candidate, compare its evidence with the Area anchors — the page's own class file and the layouts its widgets live in are anchors — or exclude that page deliberately with `--scope`), re-run `finalize`, and only then continue; `--allow-incomplete` (on finalize and on each publication step) publishes a partial run deliberately.
|
|
286
|
+
|
|
287
|
+
### Step 4 — Collect the SPECs into the publish root
|
|
288
|
+
|
|
289
|
+
`publish-specs` only scans `<root>/<idx>/<stem>-SPEC.md`, while the fused worker authored each SPEC beside its Area task. Relocate and inject identity:
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
node <skill-dir>/scripts/collect-specs.mjs --run <run-directory> [--root <spec_output_dir>] [--allow-incomplete]
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
It walks `generation/spec-bindings.json` `areas[]` in order (`idx = index + 1`), joins each `utgNodeId` to its task directory through `interaction/manifest.json`, copies `<taskDir>/specs/<stem>-SPEC.md` to `<root>/<idx>/<stem>-SPEC.md`, and injects a `Control: <controlRef>` line immediately after the H1 when the sidecar bound one. It also writes the source provenance: the worker's `<!-- behavior:<id> -->` markers are removed and their anchors — plus the record's own citations — become one trailing `## Source locations` section, grouped by the scenario each marker sat in, from the same Area's `draft.json` — already verified against the source census by `finalize`, so this step adds none of its own risk and no model call (see **Source provenance in every published SPEC**). A missing `draft.json` degrades to stripping the markers, never fails — but it is never silent either: the run prints a `provenance:` summary (`N/M SPECs carry a Source locations section`) and a `[warn]` line naming which SPECs or behaviours lost their provenance, so a complete run that somehow lost a draft cannot pass unnoticed. It is fail-loud (missing SPEC, mismatched H1, unjoinable Area, a non-segment `stem`, or two bindings in one `idx` declaring the same destination name — normally two folded drafts with a same-stem SPEC — aborts instead of letting the later copy overwrite the earlier SPEC), and it refuses a run whose `run-report.json` is not a completed, publishable finalize — never collect SPECs out of a partial run by accident (`--allow-incomplete` collects them on purpose and logs that the collection is partial). `--root` defaults to `<run-directory>/generation/specs`.
|
|
296
|
+
|
|
297
|
+
The **default** publish root is rebuilt as a whole: every declared SPEC is read and validated first, the complete set is staged beside the root, and only then is the old root replaced. A recovery rerun that inserts a previously failed Area (shifting later `idx` values) therefore cannot leave an old `<idx>/<stem>-SPEC.md` for `publish-specs` to re-publish. A custom `--root` is written in place to avoid destroying a caller-owned tree; pass `--replace-root` to opt it into the same staged replacement.
|
|
298
|
+
|
|
299
|
+
### Step 5 — Publish the `specs.json` manifest
|
|
300
|
+
|
|
301
|
+
Once every requirement has been processed (or explicitly skipped) and reported, publish this run's manifest — once for the whole root, never per Area:
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
node <skill-dir>/scripts/publish-specs.mjs --root <run-directory>/generation/specs [--run <run-directory>] [--registry-root <hmos-project>] [--allow-incomplete]
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
It extracts each `*-SPEC.md`'s `UI Sequence` and optional `Control:` identity and writes `<root>/specs.json` in deterministic numeric-aware path order; its shape is `references/specs.schema.json`. Point `--root` at this run's own publish root — everything below it is included. `publish-specs` exits non-zero when the root holds no `*-SPEC.md`. When `--registry-root <hmos-project>` is supplied (the fused-mode orchestrator passes it), the published SPEC root is also declared as `spec_root` in `<hmos-project>/.hometrans/artifact-registry.jsonl` (fail-soft — a registry write never fails the publish).
|
|
308
|
+
|
|
309
|
+
**Publication gate.** When the run is known (an explicit `--run`, or inferred from a `--root` that is `<run>/generation/specs` or `<run>/generation/pages`), `publish-specs` verifies the run's commit marker first and records the verdict in the manifest: `completeness: "complete"`, or `completeness: "incomplete-known"` plus `incomplete: { areas, failedShards, unresolved, unresolvedReasonCodes }` for a partial run published with `--allow-incomplete`. A run whose marker is negative is **refused** without that flag, so a partial run can no longer be published as if it were complete. A root with no run at all (batch mode, hand-made root) is ungated and omits `completeness`. Never present a partial run as a complete manifest: if any selected Area has no SPEC, report the gap and state whether the manifest was written.
|
|
310
|
+
|
|
311
|
+
### Step 5b — Page-grouped re-publication (fused mode)
|
|
312
|
+
|
|
313
|
+
Re-publish the same SPECs grouped by user-visible page so page-oriented consumers (`a2h-spec-design-pipeline` keys its design/conversion groups on the spec file's parent directory) can consume the page root directly:
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
node <skill-dir>/scripts/regroup-by-page.mjs --run <run-directory>
|
|
317
|
+
node <skill-dir>/scripts/publish-specs.mjs --root <run-directory>/generation/pages --run <run-directory>
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
- `regroup-by-page` derives page membership from the run's own frozen topology (`imported-utg.json`) — deterministic, no LLM, no human input: activity nodes and user-class fragment-transaction / route targets are page roots; structural embeds and start-destinations fold into their host's page; open-overlay dialogs fold into the opener's page (chained dialogs inherit up the fold tree); an edge-less node becomes its own page, and a dialog opened from two different hosts keeps link-order precedence — both are named in the warnings. Tab/pager navigation (`hybrid-tabbar`, `pager-swipe`, …) deliberately does **not** page-break: the whole tab strip is one screen's code, and one migration unit must not be scattered across parallel conversion worktrees — a page with many SPECs is chunked by the scenario cap downstream (`max_scenarios_per_chunk`), and the per-page counts in `pages.json` make oversized groups visible.
|
|
321
|
+
- An optional rename map at `<run-directory>/pages-map.json` (`{ "<utgNodeId>": "<page name>" }`) overrides names and membership: an entry keyed by a page ROOT renames the whole fold group; an entry keyed by any other node moves that node's SPECs into the named group. Absent → pages are named by the topology node labels. The map may be authored by the dispatcher (e.g. translate label names to user-facing names); it is never required for coverage.
|
|
322
|
+
- The page root is rebuilt as a whole on every run (stage-and-swap), and coverage is fail-loud: the sidecar enumerates every SPEC, the copy total must equal it, and a key resolving to neither the topology nor the map would land in `_unclassified/` — the step exits non-zero instead. Never run the republish over a page root containing `_unclassified/`.
|
|
323
|
+
- Two SPECs mapping to the same destination are **not** fatal (cross-Area same-stem files are legal in the idx root, and dialogs fold into their opener's page): byte-identical copies are deduplicated, different-content ones get a deterministic `-<idx>` suffix — both are warned in `pages.json`. Destinations colliding modulo letter case are refused (Windows filesystems cannot hold both). Page names that are Windows reserved device names (`CON`, `NUL`, …) or directory names the dashboard prunes from discovery (`build`, `entry`, …) are rejected — rename via the pages-map.
|
|
324
|
+
- Stale staging/backup directories left behind by a crashed run are removed at the start of the next run; the published `pages.json` carries no timestamps and no absolute paths, so an idempotent rerun reproduces it byte for byte.
|
|
325
|
+
- Republishing with `publish-specs --root .../pages --run <run-directory>` mints the page root's own `specs.json` (same schema; same `completeness` gate). Its so-ids are re-minted in page path order: the page root is a **fresh campaign key** — do not swap a pipeline from the idx root to the page root mid-run (commit-message so-id resume would desync). When the page view is the intended downstream input, declare it to consumers: pass `--registry-root <hmos-project>` on this publication — the artifact registry resolves the newest `spec_root` declaration. The fused-mode orchestrator (`a2h-app-migrate`) passes `hmos-project` precisely for this publication, and its `SPEC_DIR` / `SPECS_JSON` defaults already point at this root (`spec_layout.mjs`).
|
|
326
|
+
- SPEC-only mode (batch `req-N.txt`) has no frozen topology and no sidecar; this step applies to the fused mode only.
|
|
327
|
+
|
|
328
|
+
### Step 6 — Final verification and report
|
|
329
|
+
|
|
330
|
+
1. Verify the key outputs exist: `<run-directory>/generation/specs/specs.json` and at least one `<run-directory>/generation/specs/*/*-SPEC.md`.
|
|
331
|
+
2. Read `specs.json`: item count, and first/last `so-id` (confirming contiguous ordering). `completeness` must be `complete` for a full run; when it is `incomplete-known`, report the gap (`incomplete`) instead of presenting the manifest as the complete page set.
|
|
332
|
+
3. Verify the page view (fused mode, Step 5b): `<run-directory>/generation/pages/specs.json` exists, its item count equals the idx root's manifest, and no `_unclassified/` directory remains. State which root downstream consumption should use.
|
|
333
|
+
4. Optionally run the reporter over the publish root:
|
|
334
|
+
|
|
335
|
+
```bash
|
|
336
|
+
node <skill-dir>/scripts/report.mjs --output <run-directory>/generation/specs
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Adopt its per-SPEC rows and aggregates; add by hand the loss list the reporter cannot see (no-recall skips and unsupported claims).
|
|
340
|
+
|
|
341
|
+
Report concisely (under 30 lines):
|
|
342
|
+
|
|
343
|
+
- **Inputs**: source project, UTG workspace, run directory.
|
|
344
|
+
- **SPEC**: `<run-directory>/generation/specs/*/*-SPEC.md` count and `specs.json` item count.
|
|
345
|
+
- **Deliverables**: `specs.json` path, the per-index SPEC path shape, and the page root (`generation/pages/`) for page-oriented downstream consumption.
|
|
346
|
+
- **Dispositions**: candidates accepted / corrected / excluded / final unresolved, merged duplicate actions and discoveries, review and Area task counts, incomplete Areas, failed tasks, callback budget.
|
|
347
|
+
- **Gaps**: failed Areas, fallbacks, `UTG_NAV_CONFLICT`, `CROSS_AREA_DUPLICATE_ANCHOR` / `CROSS_AREA_ANCHOR_COLLISION`, `GUARD_NOT_PLANNED`, `GUARD_SIGNAL_UNSEEDED`, and their disposition.
|
|
348
|
+
|
|
349
|
+
State `complete` only when every selected Area's review, reconciliation, discovery and SPEC authoring finished **and no interaction candidate is left `unresolved`**; otherwise state `incomplete-known` and list the unresolved interactions. Never claim UTG pages are absolutely complete, and never present "every discovered candidate was dispositioned" as "runtime interactions are fully covered".
|
|
350
|
+
|
|
351
|
+
## Error Recovery
|
|
352
|
+
|
|
353
|
+
- **Prepare fails**: fix the source project, UTG workspace, or HomeGraph index, then rerun from scratch.
|
|
354
|
+
- **A worker fails**: if it never notifies, `dispatch-watch reap` marks it `fail` after the 20-minute lease and `status.redispatch` names it; re-dispatch it, passing `--ended <sessionID>` when that session is gone, or `resume` it while it is still alive. A delivered notification whose content gate fails is a content gap: continue that task's own session with the gate output (never restart a live session) and report it (`references/dispatch-watchdog.md`).
|
|
355
|
+
- **The manifest is not published**: keep the successful SPECs. Resolve the reported `collect-specs` / `publish-specs` problem and rerun only Steps 4–5; do not regenerate the whole run. Step 4 rebuilds the default publish root, so an Area fixed after a failed run (and any resulting `idx` shift) does not need a manual `generation/specs` cleanup. The page view follows automatically — rerun Step 5b after Steps 4–5; `regroup-by-page` rebuilds `generation/pages` as a whole, so a shifted idx or a changed sidecar never leaves a stale page root behind.
|
|
356
|
+
- **Partial run**: rerunning with the same `output=<run-directory>` lets `prepare` reuse existing outputs when fingerprints match; re-dispatch only the tasks whose gate does not pass on disk (a rerun happens in a new dispatcher turn, so its failed sessions are gone and there is nothing left to continue). A run directory is never reused once its input fingerprint drifts. Draft contract 7.0.0 onward, only a draft written under the current fused contract version counts as complete; an older `draft.json` is re-dispatched rather than resumed.
|
|
357
|
+
|
|
358
|
+
## Invariants
|
|
359
|
+
|
|
360
|
+
- This skill never modifies the source project or the UTG workspace. Generated files and analysis caches follow the documented write scopes.
|
|
361
|
+
- Android deterministic scanning uses HomeGraph/Tree-sitter plus XML limited to `res/layout*`, `menu*`, `navigation*`, `xml*` (never `Manifest` or `values`); UniApp uses the frozen UTG's action widgets, route triggers and Vue binding positions, and never initializes HomeGraph.
|
|
362
|
+
- `<reqgen-root>`, the gate references, and the SPEC scripts are all in-skill paths resolved from this `SKILL.md`; never ask the user for them.
|
|
363
|
+
- `specs.json` is published only after every page batch for this run is ready.
|
|
364
|
+
- Paths are always absolute or explicitly relative to a known absolute root.
|
|
365
|
+
- All subagent concurrency is tracked by `dispatch-watch` (its ledger is authoritative); fingerprint handling is delegated to the reqgen CLI and the rendered `task.md`.
|
|
366
|
+
- Node mints every canonical `Control: <controlRef>` identity; no worker ever writes it.
|
|
367
|
+
|
|
368
|
+
## Forbidden
|
|
369
|
+
|
|
370
|
+
- Do not fabricate `specs.json` or any SPEC file; report only what the CLI and workers produce.
|
|
371
|
+
- Do not modify the `<run-directory>` layout; respect the structure above.
|
|
372
|
+
- Do not run `finalize` concurrently, and do not run it before every executable task is settled.
|
|
373
|
+
- Do not dispatch an `area-fusion` task before all of its Area's reviews pass.
|
|
374
|
+
- Do not hand-edit the sidecar, `req-model.json`, or any generated JSON to paper over a gap.
|
|
375
|
+
- Do not run Gradle, Android Lint, JDK, Android SDK, adb, or dynamic crawling.
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# Directory batch mode
|
|
2
|
+
|
|
3
|
+
Use this workflow only when `requirements_input` resolves to a directory. The current Agent is the dispatcher; it must not execute the single-file generation workflow itself.
|
|
4
|
+
|
|
5
|
+
## Resolve the batch
|
|
6
|
+
|
|
7
|
+
1. Enumerate only immediate child files matching `req-<positive integer>.txt`, sort them by numeric index, and reject duplicate numeric indices such as `req-1.txt` plus `req-01.txt`.
|
|
8
|
+
2. Parse `req_selection` when supplied. Accept one index (`3`), an inclusive range (`2..5`), or a comma-separated union (`1,3,6..8`). Deduplicate the result while preserving numeric order. Reject malformed, descending, zero, negative, or undiscovered indices before launching workers. Omitted selection means all discovered files.
|
|
9
|
+
3. Resolve the page-batch output root. Use the caller's absolute `spec_output_dir` when supplied; otherwise use `<requirements_input>/specs`. For each selected `req-N.txt`, its output directory is `<spec_output_dir>/N`.
|
|
10
|
+
|
|
11
|
+
## Dispatch page workers
|
|
12
|
+
|
|
13
|
+
**First, prepare the run (once, deterministic).** Before any worker starts, run in this order:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
# ① Detect first: ensure-index needs the sourceRoot it selects.
|
|
17
|
+
# First confirm <absolute source project> exists and is a directory — otherwise surface the path and stop (do not run detection).
|
|
18
|
+
node <skill-dir>/scripts/detect-project.mjs --project <absolute source project> # parse stdout for projectType / sourceRoot
|
|
19
|
+
# ② Build the index on the detected sourceRoot
|
|
20
|
+
node <skill-dir>/scripts/ensure-index.mjs --source-root "<detected sourceRoot>"
|
|
21
|
+
# ③ Platform-specific inspection (`--out` creates its parent directory and writes the file itself — no shell redirection, no mkdir)
|
|
22
|
+
node <skill-dir>/scripts/inspect-uniapp.mjs --project <absolute source project> --out "<absolute page-batch output root>/.facts/uniapp-inspection.json" # UniApp only: besides stdout, --out writes a file; non-zero exit = inspection error (see below), not a HomeGraph failure
|
|
23
|
+
node <skill-dir>/scripts/parse_requirements.ts --input <absolute req file> --json # Excel/csv input only (file mode)
|
|
24
|
+
# ④ Facts pack
|
|
25
|
+
node <skill-dir>/scripts/prepare-facts.mjs --project "<detected sourceRoot>" \
|
|
26
|
+
--requirements-input <absolute requirements_input> --output <absolute page-batch output root>
|
|
27
|
+
# ⑤ Render the worker tasks
|
|
28
|
+
node <skill-dir>/scripts/render-tasks.mjs --skill-dir <skill-dir> \
|
|
29
|
+
--output <absolute page-batch output root> --platform <projectType> \
|
|
30
|
+
--source-root "<detected sourceRoot>" --requirements-input <absolute requirements_input> \
|
|
31
|
+
--facts-dir <absolute page-batch output root>/.facts \
|
|
32
|
+
--index-state "<the indexed value from ②'s stdout>" \
|
|
33
|
+
--uniapp-inspection "<absolute page-batch output root>/.facts/uniapp-inspection.json" # UniApp only
|
|
34
|
+
# ⑥ Initialize the dispatch watchdog (concurrency slots and wakeup guarantee; state under <root>/.dispatch/)
|
|
35
|
+
node <skill-dir>/scripts/dispatch-watch.mjs init --root <absolute page-batch output root> --concurrency 8
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**①'s existence check and the sourceRoot value**: first confirm that `<absolute source project>` **exists and is a directory** — if it is not, surface the path and stop the whole campaign; never proceed to detection. **Always use the sourceRoot the detector selects**: `detect-project.mjs` steers around UniApp's root mirror and the generated `dist`; indexing a hand-written source path from the caller instead wastes index volume and may index build-output directories that must not be indexed.
|
|
39
|
+
|
|
40
|
+
`--index-state` comes from the **stdout** of ② `ensure-index.mjs` (its freshness is the `lastIndexed` of `homegraph status --json`, in the form `indexed <lastIndexed>`) — it is an established fact rendered into `task.md`, not a casually written `<fresh @ …>` literal.
|
|
41
|
+
|
|
42
|
+
③'s UniApp inspection result travels through the **file delivery channel**: the stdout of `inspect-uniapp.mjs` is written to `<absolute page-batch output root>/.facts/uniapp-inspection.json` (the same `.facts` directory as the facts pack), and ⑤'s `--uniapp-inspection` then writes that **absolute path** into the `## Resolved Inputs` section of every `task.md`. The worker therefore **reads a file** instead of relying on the result still being held in someone else's memory.
|
|
43
|
+
|
|
44
|
+
**Failure ownership for ③**: a **non-zero exit of `inspect-uniapp.mjs` is an inspection error, not a HomeGraph failure** — surface it and **abort the whole campaign**; never continue rendering and dispatching with unsupported facts.
|
|
45
|
+
|
|
46
|
+
Excel/csv input uses `--requirements-json` only in **file mode** (handing ③'s `parse_requirements.ts --json` output to the renderer): it renders a single `<root>/task.md`, not `<root>/N/task.md`, so a directory campaign never takes this path — a directory campaign's `req-N.txt` files always use `--requirements-input`.
|
|
47
|
+
|
|
48
|
+
The `ensure-index.mjs` procedure and its **hard-failure policy** apply (CLI not on PATH → `ht init` guidance, never self-install; any
|
|
49
|
+
operational error from `status`/`init`/`sync`/`index`/a query → report and stop; **a query with zero hits is not an error**); freshness must come from
|
|
50
|
+
`homegraph status --json` (the human-readable output has no decidable marker). When the index builder differs from the current CLI version
|
|
51
|
+
(`builtWithVersion` ≠ `version`), `index.state` is incomplete, or `reindexRecommended` is set, the script **automatically rebuilds the whole
|
|
52
|
+
repository with `index`** (sync does not rewrite the version stamp when nothing changed) — this closes the loop required by prepare's exact gate (`indexed_with_version`
|
|
53
|
+
must equal the installed homegraph); only a failed rebuild stops under the hard-failure policy.
|
|
54
|
+
|
|
55
|
+
**Failure scope (distinguish campaign from batch first).** A failure in the preparation phase aborts **the whole campaign**; a worker failure only affects **its own batch**:
|
|
56
|
+
|
|
57
|
+
- When `detect-project.mjs` returns `projectType: unknown` → **surface the detector's evidence and stop the whole campaign** — do not let the caller choose, do not guess.
|
|
58
|
+
- Any of the commands ①–⑤ fails → **stop the whole campaign and dispatch no worker**; report the error and stop. Never dispatch a worker without a `task.md`.
|
|
59
|
+
- **A batch that resolves to more than one owner** is derived and reported by the worker (the dispatcher does not run the single-file generation workflow, see the first paragraph of this document, so it neither pre-derives owners nor holds back a batch on a prediction); as soon as a worker reports that its batch has **more than one owner** → **stop the whole campaign and report that owner list**, asking the caller to split the source file into one per page (**never merge silently, and never pick a page yourself**).
|
|
60
|
+
- A failure of the **worker** itself is **batch-local**: the other, mutually independent batches may finish, and the campaign then ends with a **partial** result (see the publish rule below).
|
|
61
|
+
|
|
62
|
+
Then dispatch. For each selected index, launch **`specgen-worker`** in background mode with the
|
|
63
|
+
concrete single-file task:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
Read <absolute page-batch output root>/<index>/task.md — it is the complete and authoritative task
|
|
67
|
+
specification. Follow it exactly.
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Launch each worker with the concrete single-file task above, in **background mode**
|
|
71
|
+
(`background: true`): the dispatch call returns immediately with a `sessionID`, and
|
|
72
|
+
the worker's final message arrives later as a completion notification. Keep a
|
|
73
|
+
transient dispatch map `sessionID → index` (this-run bookkeeping only — recovery
|
|
74
|
+
never reads it; it re-derives everything from the output dirs) and a per-index
|
|
75
|
+
state `pending → in_flight → done/fail`.
|
|
76
|
+
|
|
77
|
+
**Dispatch watchdog (the concurrency guarantee).** A notification-only rolling window has a known
|
|
78
|
+
failure mode: a worker has already stopped (down) or finished, but its completion notification never
|
|
79
|
+
reaches the main agent, so that index holds a concurrency slot forever. Register every background
|
|
80
|
+
dispatch in `.dispatch/ledger.jsonl`, and let a **bounded background shell command** supply an
|
|
81
|
+
independent wakeup (its exit is itself a notification — see `references/dispatch-watchdog.md`):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Register the intent before the dispatch, then attach the sessionID it returns
|
|
85
|
+
# (an interrupted turn between the two still leaves the intent on disk).
|
|
86
|
+
node <skill-dir>/scripts/dispatch-watch.mjs dispatch --root <absolute page-batch output root> --task page:<index>
|
|
87
|
+
node <skill-dir>/scripts/dispatch-watch.mjs attach --root <absolute page-batch output root> --task page:<index> --session <sessionID>
|
|
88
|
+
# While anything is in flight, arm exactly one waiter (background).
|
|
89
|
+
node <skill-dir>/scripts/dispatch-watch.mjs wait --root <absolute page-batch output root> --max-wait 300 --poll 5
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The state machine has four states:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
pending ──dispatch──► in_flight ──complete (notification)──► done
|
|
96
|
+
│
|
|
97
|
+
└──lease 20 min, no file change──► fail
|
|
98
|
+
|
|
99
|
+
fail ──dispatch──► in_flight (or retry → pending)
|
|
100
|
+
fail ──resume────► in_flight (same attempt, same session)
|
|
101
|
+
fail ──complete (late notification)► done
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
`done` means **the notification arrived**, not that the page content is valid. `fail` means **no
|
|
105
|
+
notification arrived**, not that the task failed. Content completion is still decided by the gate
|
|
106
|
+
(at least one `-SPEC.md` in the output dir); the gate never changes the watchdog state.
|
|
107
|
+
|
|
108
|
+
Take the slot count from `status.slots.free`; never exceed it from an in-memory map, and note that
|
|
109
|
+
`dispatch` itself refuses with exit 3 when the window is full. On every wake (worker notification,
|
|
110
|
+
watchdog event, or watchdog timeout) run the same sequence:
|
|
111
|
+
|
|
112
|
+
1. `reap --root <root>`: any in-flight index silent for 20 minutes with no file change becomes
|
|
113
|
+
`fail`, and its slot is freed.
|
|
114
|
+
2. A worker notification is the **delivery fact**: call
|
|
115
|
+
`complete --task page:<index> --session <sessionID>` (slot freed; a notification from another
|
|
116
|
+
session is ignored, so a late one cannot free a running index's slot), then run that page's
|
|
117
|
+
content gate. A failing gate is a content gap: continue the worker's own session and record it;
|
|
118
|
+
the watchdog stays `done` because the background job did notify.
|
|
119
|
+
3. `status --root <root>`: dispatch `ready` indices up to `slots.free`; for a `fail` index use
|
|
120
|
+
`resume --task page:<index>` while its session is alive, else
|
|
121
|
+
`dispatch --task page:<index> --ended <old-session>`.
|
|
122
|
+
4. Re-arm the waiter while anything is still in flight and no waiter is live.
|
|
123
|
+
|
|
124
|
+
A lease expiry frees the slot but does not stop the worker, so never start a second worker over a
|
|
125
|
+
session that may still be writing: `resume` keeps the same attempt and session.
|
|
126
|
+
|
|
127
|
+
File writes only renew the lease; they do **not** wake the waiter. The waiter returns on a ledger
|
|
128
|
+
change or a lease deadline. A second waiter exits with `{ "skipped": "lock-held" }` — normal dedup,
|
|
129
|
+
not a timeout. `--poll` must be greater than 0.
|
|
130
|
+
|
|
131
|
+
Dispatch them **rolling, not in waves**: bring up to eight workers up at once,
|
|
132
|
+
then end the turn and wait for notifications. The pages are mutually independent,
|
|
133
|
+
so there is no dependency to respect and no reason for a wave barrier. On each
|
|
134
|
+
completion notification:
|
|
135
|
+
|
|
136
|
+
- Match it back through the dispatch map, then `complete` that index. A page's
|
|
137
|
+
**content** is complete only when its output dir holds at least one `-SPEC.md`;
|
|
138
|
+
a requirement the worker reports as no-recall produced no SPEC and is named in
|
|
139
|
+
its report instead.
|
|
140
|
+
- Record the completion **before** starting the next index: `complete` frees the
|
|
141
|
+
slot, then `status.ready` supplies the next index within `slots.free`. The ledger,
|
|
142
|
+
not the interleaving of the turn, decides the window; dispatching first would count
|
|
143
|
+
both jobs and can exceed the concurrency limit. An interrupted turn loses nothing:
|
|
144
|
+
a `pending` index is simply dispatched on the next wake.
|
|
145
|
+
- A worker that fails records its exact error and the already launched or
|
|
146
|
+
independent selected workers finish — never retry silently. A **worker** failure is
|
|
147
|
+
batch-local (unlike a prep failure, which aborts the whole campaign): the other
|
|
148
|
+
independent batches may finish, and the campaign then ends **partial** — see the
|
|
149
|
+
publish rule below.
|
|
150
|
+
|
|
151
|
+
**Turn end — reconcile.** Before ending any turn, run `dispatch-watch status`: an index marked
|
|
152
|
+
`in_flight` with no processed notification is a lost delivery; `reap` turns it into `fail` after its
|
|
153
|
+
20-minute lease, and `status.redispatch` names it. A dispatch that was only narrated, with no tool
|
|
154
|
+
call, has no session and no notification, so the same lease reclaims it. Never end a turn with an
|
|
155
|
+
in-flight index and no armed waiter.
|
|
156
|
+
|
|
157
|
+
Terminal: `dispatch-watch status` prints `terminal: true` when no index is `pending` or `in_flight`;
|
|
158
|
+
`fail` indices may remain and are reported as lost notifications; if `status.redispatch` is
|
|
159
|
+
non-empty, either re-dispatch them (`resume` while the session is alive, otherwise
|
|
160
|
+
`--ended <old-session>`) or record them as gaps. Run `dispatch-watch stop` and do not
|
|
161
|
+
re-arm the waiter. This terminal is about slots and delivery only: publishing still requires the
|
|
162
|
+
content gate above.
|
|
163
|
+
|
|
164
|
+
A worker follows its own rendered `task.md` and must not rediscover sibling `req-*.txt` files.
|
|
165
|
+
|
|
166
|
+
## Audit the selected outputs, report the campaign, and publish the manifest
|
|
167
|
+
|
|
168
|
+
After all selected workers finish:
|
|
169
|
+
|
|
170
|
+
1. **Report the campaign** — run the bundled reporter once from the dispatcher, over the whole root:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
node <skill-dir>/scripts/report.mjs --output <absolute page-batch output root>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
It reads every SPEC off disk and prints the per-spec rows (batch, scenario count,
|
|
177
|
+
deviation count, title), the aggregate counts (batches, specs, scenarios, deviations)
|
|
178
|
+
and every deviation note quoted verbatim. Adopt its rows and aggregates as the
|
|
179
|
+
campaign's own numbers — the dispatcher must not re-derive them. The reporter is
|
|
180
|
+
**blind to what is not a file**: a requirement skipped as no-recall produced no SPEC
|
|
181
|
+
and has no row, so the dispatcher adds that **loss list by hand** from each worker's
|
|
182
|
+
Step 3 report (see `worker-rules.md` §Step 3 Reporting Duty).
|
|
183
|
+
|
|
184
|
+
2. For each successful requirement, require at least one `<feature>-SPEC.md` under that index's output directory.
|
|
185
|
+
|
|
186
|
+
3. **Cross-batch surface check** — no two selected indices may cover the same user-visible surface.
|
|
187
|
+
Compare the `## UI Sequence` line of every SPEC: two indices whose SPECs share one surface must be
|
|
188
|
+
reported and their REQs combined into one same-page input. Never merge silently, never guess a winner.
|
|
189
|
+
|
|
190
|
+
4. **Publish the manifest** — from the dispatcher, once for the whole root, never per worker:
|
|
191
|
+
|
|
192
|
+
Publish `<root>/specs.json` **only when every selected index is `done`**. If any selected index is `failed`, do not publish: report the failed indices and the exact error, and state that the manifest was not written. Never present a partial campaign as a complete manifest.
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
node <skill-dir>/scripts/publish-specs.mjs --root <absolute page-batch output root>
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
It writes `<root>/specs.json` in deterministic numeric-aware path order (page-batch directory, then SPEC filename). `publish-specs.mjs` exits non-zero when the root holds no `*-SPEC.md`, so a run whose every selected index failed cannot publish by mistake.
|
|
199
|
+
|
|
200
|
+
## Report
|
|
201
|
+
|
|
202
|
+
Report the discovered indices, selected indices, per-index generation status, audit result, the absolute page-batch output root, and the `specs.json` path. State the campaign's numbers from the reporter's own rows and aggregates (per-spec rows, aggregates, quoted deviations), and add by hand the loss list the reporter cannot see (no-recall skips and unproven claims, per requirement).
|
|
203
|
+
|
|
204
|
+
When the selected set covers every discovered REQ and all audits pass, state that the campaign's manifest is complete — `specs.json` was published for the whole root. Otherwise list the failed or unselected indices and state that the manifest was **not published** (see the publish rule above: a partial campaign is never presented as a complete manifest).
|
|
205
|
+
|
|
206
|
+
The output has this shape:
|
|
207
|
+
|
|
208
|
+
```text
|
|
209
|
+
<spec_output_dir>/
|
|
210
|
+
├── specs.json
|
|
211
|
+
├── 1/
|
|
212
|
+
│ └── <feature-a>-SPEC.md
|
|
213
|
+
└── 2/
|
|
214
|
+
└── <feature-b>-SPEC.md
|
|
215
|
+
```
|