@buaa_smat/hometrans 26.0.2 → 26.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/agents/code-reviewer.md +25 -138
- package/dist/cli/index.js +4 -1
- package/dist/cli/init.js +131 -26
- package/dist/cli/uninstall.js +5 -5
- package/dist/platform/language.js +77 -0
- package/env-requirements.json +30 -5
- package/i18n/FILE-NAMES.md +9 -0
- package/i18n/agents/code-reviewer.md +364 -0
- package/i18n/agents/model-render-worker.md +38 -0
- package/i18n/agents/specgen-worker.md +18 -0
- package/i18n/commands/hometrans.md +17 -0
- package/i18n/skills/a2h-app-migrate/SKILL.md +198 -0
- package/i18n/skills/a2h-app-migrate/references/config.example.json +28 -0
- package/i18n/skills/a2h-app-migrate/references/specs.example.json +19 -0
- package/i18n/skills/a2h-app-migrate/references/stage-map.md +50 -0
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +1760 -0
- package/i18n/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +114 -0
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1588 -0
- package/i18n/skills/a2h-app-migrate/scripts/human_review_gate.mjs +657 -0
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +541 -0
- package/i18n/skills/a2h-app-migrate/test/test_android_index.mjs +131 -0
- package/i18n/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
- package/i18n/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/i18n/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
- package/i18n/skills/a2h-app-migrate/test/test_env_requirements.mjs +698 -0
- package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +89 -0
- package/i18n/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
- package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/i18n/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +219 -0
- package/i18n/skills/a2h-app-migrate/test/test_resume_summary.mjs +196 -0
- package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/i18n/skills/a2h-app-migrate/test/test_run_dir.mjs +488 -0
- package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +146 -0
- package/i18n/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +161 -0
- package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/i18n/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/i18n/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +171 -0
- package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/i18n/skills/a2h-arch-generate/SKILL.md +375 -0
- package/i18n/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
- package/i18n/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
- package/i18n/skills/a2h-arch-generate/references/arkts-mvvm-v2.md +1407 -0
- package/i18n/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
- package/i18n/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
- package/i18n/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
- package/i18n/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
- package/i18n/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
- package/i18n/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
- package/i18n/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
- package/i18n/skills/a2h-arch-generate/references/homegraph-workflow.md +120 -0
- package/i18n/skills/a2h-arch-generate/references/source-baseline.md +93 -0
- package/i18n/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +360 -0
- package/i18n/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +798 -0
- package/i18n/skills/a2h-arch-generate/scripts/lib/contract_terms.mjs +40 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/generate.mjs +639 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
- package/i18n/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1261 -0
- package/i18n/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
- package/i18n/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +851 -0
- package/i18n/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +982 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +9 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +192 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/spec-design.md +303 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/design/move_spec_technical_reference.mjs +162 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +298 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +587 -0
- package/i18n/skills/a2h-arkts-logic-coder/scripts/test_check_units.ts +149 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
- package/i18n/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +352 -0
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +323 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +31 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/build.md +13 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +17 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +27 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +80 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +22 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +87 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/state-v1.md +29 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/state.md +14 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +57 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +29 -0
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +705 -0
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +417 -0
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +139 -0
- package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2549 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +560 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +148 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_decorator-quickref.md +220 -0
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +28 -0
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +216 -0
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +203 -0
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +210 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +2005 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +1748 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/detect_paradigm.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1787 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/gen_rule_docs.mjs +100 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1836 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/image_probe.mjs +405 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1406 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1226 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1220 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/state_doc.mjs +412 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/cli.ts +134 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +18 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +173 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +629 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +125 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +67 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/block_comment_break.ts +64 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +134 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_call_sites.ts +242 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +136 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/canvas.ts +255 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +109 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/column_shrink.ts +154 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +39 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/container_align.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_root_builtin.ts +69 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_route.ts +114 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/fixed_size_safe_area.ts +103 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/format_string.ts +157 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +115 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +551 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +138 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +374 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/offset_in_scroll.ts +163 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/orphan_component.ts +119 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +119 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/page_reachability.ts +94 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/path_commands_vp.ts +50 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +80 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +137 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/r_template_string.ts +37 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/request_permission.ts +98 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/resource_as_string.ts +68 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +97 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/safe_area_clipping.ts +168 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sdk_api.ts +195 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shared_chrome.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_blur.ts +95 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/shell_content.ts +198 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/stack_occluding.ts +118 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_decorators.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/state_name_shadows.ts +93 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/string_quote_leak.ts +73 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/surface_stroke.ts +50 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +123 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/track_getter.ts +132 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +53 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +67 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +427 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +560 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +245 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +324 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +325 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +48 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +387 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +470 -0
- package/i18n/skills/a2h-coldstart-smoke-gate/SKILL.md +59 -0
- package/i18n/skills/a2h-dashboard-render/SKILL.md +73 -0
- package/i18n/skills/a2h-dashboard-render/references/artifact-contract.jsonc +117 -0
- package/i18n/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
- package/i18n/skills/a2h-dashboard-render/references/dashboard-guide.md +91 -0
- package/i18n/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
- package/i18n/skills/a2h-dashboard-render/scripts/dashboard.mjs +3245 -0
- package/i18n/skills/a2h-dashboard-render/scripts/device_capture.mjs +2048 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/i18n/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/i18n/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +154 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
- package/i18n/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/i18n/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/i18n/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
- package/i18n/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/i18n/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
- package/i18n/skills/a2h-fix-build-errors/SKILL.md +304 -0
- package/i18n/skills/a2h-fix-build-errors/references/arkts-strict-patterns.md +219 -0
- package/i18n/skills/a2h-fix-build-errors/references/rdb-entity-pattern.md +131 -0
- package/i18n/skills/a2h-module-semantic-docs/SKILL.md +227 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/i18n/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/i18n/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/i18n/skills/a2h-page-specgen/SKILL.md +136 -0
- package/i18n/skills/a2h-page-specgen/references/body-language.md +177 -0
- package/i18n/skills/a2h-page-specgen/references/gates.md +262 -0
- package/i18n/skills/a2h-page-specgen/references/page-inventory.md +173 -0
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +207 -0
- package/i18n/skills/a2h-page-specgen/scripts/facts-build.mjs +1504 -0
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +1528 -0
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +576 -0
- package/i18n/skills/a2h-page-specgen/scripts/interactions.mjs +138 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +262 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +176 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/prose.mjs +248 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +506 -0
- package/i18n/skills/a2h-page-specgen/scripts/render.mjs +299 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +616 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +234 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1166 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +74 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +8 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +7 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +8 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +758 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +54 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +271 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/helpers.mjs +54 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +171 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/integration.test.mjs +301 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +83 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +139 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/keys.test.mjs +774 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1011 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +77 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/prose.test.mjs +419 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +323 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +546 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/render.test.mjs +511 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +701 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1765 -0
- package/i18n/skills/a2h-resource-convert/SKILL.md +367 -0
- package/i18n/skills/a2h-resource-convert/references/code-vector-icon-rules.md +335 -0
- package/i18n/skills/a2h-resource-convert/references/incremental-page-migration.md +251 -0
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +219 -0
- package/i18n/skills/a2h-resource-convert/references/resource-mapping-rules.md +493 -0
- package/i18n/skills/a2h-resource-convert/references/step4-resource-types.md +249 -0
- package/i18n/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +2532 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +278 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +260 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/merge-queue.md +163 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +44 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +589 -0
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +506 -0
- package/i18n/skills/a2h-spec-generate/SKILL.md +375 -0
- package/i18n/skills/a2h-spec-generate/references/batch-mode.md +215 -0
- package/i18n/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/i18n/skills/a2h-spec-generate/references/fusion-task-contract.md +184 -0
- package/i18n/skills/a2h-spec-generate/references/input-formats.md +27 -0
- package/i18n/skills/a2h-spec-generate/references/library-evidence.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/method-discipline.md +64 -0
- package/i18n/skills/a2h-spec-generate/references/optional-gates.json +45 -0
- package/i18n/skills/a2h-spec-generate/references/recall-guide.md +84 -0
- package/i18n/skills/a2h-spec-generate/references/recall-terse.md +3 -0
- package/i18n/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
- package/i18n/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
- package/i18n/skills/a2h-spec-generate/references/review-checklist.md +22 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
- package/i18n/skills/a2h-spec-generate/references/spec-samples.md +65 -0
- package/i18n/skills/a2h-spec-generate/references/specs.schema.json +85 -0
- package/i18n/skills/a2h-spec-generate/references/synthesis-rules.md +145 -0
- package/i18n/skills/a2h-spec-generate/references/transfer-file.md +5 -0
- package/i18n/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
- package/i18n/skills/a2h-spec-generate/references/worker-rules.md +129 -0
- package/i18n/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +702 -0
- package/i18n/skills/a2h-spec-generate/scripts/check_spec.ts +515 -0
- package/i18n/skills/a2h-spec-generate/scripts/collect-specs.mjs +727 -0
- package/i18n/skills/a2h-spec-generate/scripts/feature-stem.mjs +151 -0
- package/i18n/skills/a2h-spec-generate/scripts/parse_requirements.ts +515 -0
- package/i18n/skills/a2h-spec-generate/scripts/prepare-facts.mjs +313 -0
- package/i18n/skills/a2h-spec-generate/scripts/publish-specs.mjs +354 -0
- package/i18n/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +669 -0
- package/i18n/skills/a2h-spec-generate/scripts/render-tasks.mjs +385 -0
- package/i18n/skills/a2h-spec-generate/scripts/report.mjs +136 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1265 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1057 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +565 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +544 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +317 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +707 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +436 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +608 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +650 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +178 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +912 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +279 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +163 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +256 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +576 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +340 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1857 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +262 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +722 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/i18n/skills/a2h-spec-generate/template/REQ.txt +22 -0
- package/i18n/skills/a2h-spec-generate/template/REQ.xlsx +0 -0
- package/i18n/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +847 -0
- package/i18n/skills/a2h-spec-generate/test/check-spec.test.ts +415 -0
- package/i18n/skills/a2h-spec-generate/test/collect-specs.test.mjs +808 -0
- package/i18n/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/i18n/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/i18n/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/i18n/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
- package/i18n/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
- package/i18n/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/i18n/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
- package/i18n/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/i18n/skills/a2h-utg-explorer/SKILL.md +120 -0
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +279 -0
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +918 -0
- package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +446 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hint_check.mjs +147 -0
- package/i18n/skills/a2h-utg-explorer/scripts/hint_source.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_b.mjs +550 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +380 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +492 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +199 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1412 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +2037 -0
- package/i18n/skills/a2h-utg-static/SKILL.md +368 -0
- package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
- package/i18n/skills/a2h-utg-static/references/view-interactions.md +215 -0
- package/i18n/skills/a2h-utg-static/scripts/assemble.mjs +2120 -0
- package/i18n/skills/a2h-utg-static/scripts/audit.mjs +268 -0
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +609 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_body_text.mjs +250 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_titles.mjs +374 -0
- package/i18n/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
- package/i18n/skills/a2h-utg-static/scripts/fragment_nav.mjs +1137 -0
- package/i18n/skills/a2h-utg-static/scripts/hybrid_scope.mjs +660 -0
- package/i18n/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
- package/i18n/skills/a2h-utg-static/scripts/label_resolve.mjs +913 -0
- package/i18n/skills/a2h-utg-static/scripts/nl_hints.mjs +517 -0
- package/i18n/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
- package/i18n/skills/a2h-utg-static/scripts/static_prior.mjs +956 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +108 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +289 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_fresh_branch_guard.mjs +49 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +136 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +293 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +368 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +44 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_nl_hints_off_path.mjs +67 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +61 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_data_table.mjs +340 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_relative_url.mjs +125 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +231 -0
- package/i18n/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +340 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1351 -0
- package/i18n/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
- package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
- package/package.json +13 -160
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +1 -1
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +1 -1
- package/skills/a2h-app-migrate/SKILL.md +17 -6
- package/skills/a2h-app-migrate/references/config.example.json +1 -0
- package/skills/a2h-app-migrate/references/stage-map.md +3 -1
- package/skills/a2h-app-migrate/references/workflow.yaml +138 -47
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +1 -2
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +105 -39
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +7 -8
- package/skills/a2h-app-migrate/scripts/ledger.mjs +17 -5
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +43 -7
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +127 -41
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +2 -0
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +38 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +131 -0
- package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +63 -0
- package/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +98 -0
- package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/skills/a2h-app-migrate/test/test_devecocli_docs_preflight.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_ensure_utg_snapshot.mjs +147 -0
- package/skills/a2h-app-migrate/test/test_entry_guards.mjs +102 -0
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +698 -0
- package/skills/a2h-app-migrate/test/test_finalize.mjs +89 -0
- package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +146 -0
- package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +68 -0
- package/skills/a2h-app-migrate/test/test_i18n_engine_mirror.mjs +51 -0
- package/skills/a2h-app-migrate/test/test_image_probe.mjs +120 -0
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +91 -0
- package/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/skills/a2h-app-migrate/test/test_json_io.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +111 -0
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_parse_args.mjs +69 -0
- package/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +219 -0
- package/skills/a2h-app-migrate/test/test_resume_summary.mjs +196 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +488 -0
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +144 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_acceptance.mjs +94 -0
- package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +147 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +146 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +161 -0
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +344 -0
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +83 -0
- package/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
- package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +41 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +178 -0
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
- package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/skills/a2h-arch-generate/SKILL.md +1 -1
- package/skills/a2h-arch-generate/references/database-schema-recovery.md +2 -2
- package/skills/a2h-arch-generate/references/harmony-project-inspection.md +8 -8
- package/skills/a2h-arch-generate/references/homegraph-workflow.md +15 -6
- package/skills/a2h-arch-generate/references/module-evidence-subagent.md +2 -2
- package/skills/a2h-arch-generate/references/source-baseline.md +2 -2
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +35 -46
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +33 -40
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +2 -3
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +11 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +12 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +17 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +14 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +10 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +6 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +16 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1260 -0
- package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +191 -0
- package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +52 -0
- package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +34 -0
- package/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
- package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +138 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +2 -5
- package/skills/a2h-arkts-logic-coder/SKILL.md +21 -2
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +1 -0
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +62 -0
- package/skills/a2h-arkts-logic-coder/references/spec-design.md +4 -0
- package/skills/a2h-arkts-logic-coder/scripts/design/validate_spec_design_output.mjs +22 -25
- package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +583 -0
- package/skills/a2h-arkts-logic-coder/test/golden/inspect_happy.json +20 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_design.md +18 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_design_crlf.md +18 -0
- package/skills/a2h-arkts-logic-coder/test/golden/move_spec.md +7 -0
- package/skills/a2h-arkts-logic-coder/test/golden/resolve_cases.json +36 -0
- package/skills/a2h-arkts-logic-coder/test/golden/validate_issue_file.md +12 -0
- package/skills/a2h-arkts-logic-coder/test/golden/validate_issues.json +57 -0
- package/skills/a2h-arkts-logic-coder/test/test_spec_design_scripts.mjs +547 -0
- package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +352 -0
- package/skills/a2h-batch-ui-align/SKILL.md +6 -4
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +1 -1
- package/skills/a2h-batch-ui-align/references/cards/resources.md +4 -0
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +22 -3
- package/skills/a2h-batch-ui-align/references/checker-rules.md +66 -3
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +45 -8
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +7 -5
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +2 -2
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +4 -2
- package/skills/a2h-batch-ui-align/references/step5-convert.md +7 -5
- package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +6 -7
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +84 -7
- package/skills/a2h-batch-ui-align/scripts/draw_coverage.mjs +264 -0
- package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +229 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1 -2
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +4 -5
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +88 -26
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +305 -12
- package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +231 -54
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +8 -9
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +18 -5
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +103 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +231 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +1 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +14 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +8 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +3 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +84 -19
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +11 -4
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_dialog.ts +110 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +5 -5
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +66 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/padding_in_size.ts +119 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +81 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_delta.ts +178 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +123 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +2 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +6 -0
- package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +217 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_a11y.test.mjs +598 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_blur.test.mjs +217 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_builder_calls.test.mjs +323 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +507 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +427 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_occlusion_offset_format.test.mjs +372 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +235 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +262 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_safearea.test.mjs +742 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +91 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme.test.mjs +86 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +473 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +567 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +290 -0
- package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +74 -0
- package/skills/a2h-batch-ui-align/scripts/tests/detect_paradigm.test.mjs +260 -0
- package/skills/a2h-batch-ui-align/scripts/tests/draw_coverage.test.mjs +244 -0
- package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +420 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +31 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +742 -0
- package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +126 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +363 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1628 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +215 -0
- package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +115 -0
- package/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +243 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +324 -0
- package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +325 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +297 -0
- package/skills/a2h-batch-ui-align/scripts/tests/skill_doc_contract.test.mjs +48 -0
- package/skills/a2h-batch-ui-align/scripts/tests/state_doc.test.mjs +387 -0
- package/skills/a2h-batch-ui-align/scripts/tests/static_check_registry.test.mjs +122 -0
- package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +49 -0
- package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +250 -0
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +12 -14
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +29 -30
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +1 -0
- package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +168 -0
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +118 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +93 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +203 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1369 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +318 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +411 -0
- package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +512 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/skills/a2h-page-specgen/SKILL.md +136 -0
- package/skills/a2h-page-specgen/references/body-language.md +177 -0
- package/skills/a2h-page-specgen/references/evidence.md +70 -0
- package/skills/a2h-page-specgen/references/execution-model.md +255 -0
- package/skills/a2h-page-specgen/references/footprint-and-grouping.md +250 -0
- package/skills/a2h-page-specgen/references/gates.md +255 -0
- package/skills/a2h-page-specgen/references/page-inventory.md +173 -0
- package/skills/a2h-page-specgen/references/spec-template.md +207 -0
- package/skills/a2h-page-specgen/scripts/dispatch.mjs +209 -0
- package/skills/a2h-page-specgen/scripts/facts-build.mjs +1504 -0
- package/skills/a2h-page-specgen/scripts/finalize.mjs +422 -0
- package/skills/a2h-page-specgen/scripts/footprint.mjs +1528 -0
- package/skills/a2h-page-specgen/scripts/gate.mjs +558 -0
- package/skills/a2h-page-specgen/scripts/interactions.mjs +137 -0
- package/skills/a2h-page-specgen/scripts/inventory.mjs +269 -0
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +255 -0
- package/skills/a2h-page-specgen/scripts/lib/deps-source.mjs +399 -0
- package/skills/a2h-page-specgen/scripts/lib/draft-store.mjs +137 -0
- package/skills/a2h-page-specgen/scripts/lib/footprint-roles.mjs +278 -0
- package/skills/a2h-page-specgen/scripts/lib/fsx.mjs +79 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +175 -0
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +355 -0
- package/skills/a2h-page-specgen/scripts/lib/prose.mjs +234 -0
- package/skills/a2h-page-specgen/scripts/lib/reach.mjs +53 -0
- package/skills/a2h-page-specgen/scripts/lib/source-text.mjs +391 -0
- package/skills/a2h-page-specgen/scripts/lib/symbols.mjs +125 -0
- package/skills/a2h-page-specgen/scripts/lib/utg-io.mjs +110 -0
- package/skills/a2h-page-specgen/scripts/lib/waker-event-store.mjs +658 -0
- package/skills/a2h-page-specgen/scripts/prepare.mjs +492 -0
- package/skills/a2h-page-specgen/scripts/render.mjs +317 -0
- package/skills/a2h-page-specgen/scripts/report.mjs +7 -0
- package/skills/a2h-page-specgen/scripts/submission.mjs +532 -0
- package/skills/a2h-page-specgen/scripts/submit.mjs +79 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/README.md +77 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/acceptance.mjs +590 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/cases.example.json +57 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +207 -0
- package/skills/a2h-page-specgen/scripts/test/dispatch.test.mjs +258 -0
- package/skills/a2h-page-specgen/scripts/test/facts.test.mjs +1164 -0
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +74 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Api.kt +20 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/BothAnnotations.kt +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Cache.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Comments.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Mmkv.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Models.kt +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Pair.kt +7 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Prefs.kt +9 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Room.kt +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Sample.kt +43 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Templates.kt +34 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/Timeouts.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/androidTest/Helper.kt +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/build.gradle.kts +16 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/en.js.txt +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/i18n/zh.js.txt +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/libs.versions.toml +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/package.json +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values/strings.xml +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-b+zh+Hans/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-land/strings.xml +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-night/strings.xml +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-v21/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/res/values-zh/strings.xml +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/test/Legacy.kt +4 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts/weather.proto +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/AppPreferences.kt +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-container/src/SettingsViewModel.kt +16 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-dao/src/UserDao.kt +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/base/strings.xml +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-moko/i18n/src/commonMain/moko-resources/fil/strings.xml +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/arrays.xml +25 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/values/strings.xml +10 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/res/xml/prefs.xml +27 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Api.java +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Datastore.kt +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/Settings.java +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/forecast.js +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-pref/src/store.js +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/BasePreferences.kt +13 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/Screen.kt +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-receiver/src/UiPreferences.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/facts-retrofit/src/AuthAPI.kt +26 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/AndroidManifest.xml +20 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/feature/auth/navigation/ScreenRoute.kt +8 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/pages.json +19 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/components/Widget.vue +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/detail/detail.vue +14 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/pages/index/index.vue +24 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/store/userStore.js +11 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp/src/uni_modules/uview-ui/components/u-thing.js +5 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/fp.mkdb.mjs +144 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +94 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/MainFragment.java +6 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/ManyListeners.java +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/src/PlainActivity.java +3 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/click_paths.json +28 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/fold-chain/utg.json +12 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/utg/utg.json +34 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +758 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-roles.test.mjs +172 -0
- package/skills/a2h-page-specgen/scripts/test/fsx.test.mjs +32 -0
- package/skills/a2h-page-specgen/scripts/test/gate-partial.test.mjs +54 -0
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +222 -0
- package/skills/a2h-page-specgen/scripts/test/helpers.mjs +54 -0
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +171 -0
- package/skills/a2h-page-specgen/scripts/test/integration.test.mjs +301 -0
- package/skills/a2h-page-specgen/scripts/test/interactions.test.mjs +45 -0
- package/skills/a2h-page-specgen/scripts/test/inventory.test.mjs +139 -0
- package/skills/a2h-page-specgen/scripts/test/keys.test.mjs +774 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +464 -0
- package/skills/a2h-page-specgen/scripts/test/plan-build.test.mjs +1011 -0
- package/skills/a2h-page-specgen/scripts/test/prepare-index.test.mjs +120 -0
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +68 -0
- package/skills/a2h-page-specgen/scripts/test/prose.test.mjs +390 -0
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +167 -0
- package/skills/a2h-page-specgen/scripts/test/reach.test.mjs +93 -0
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +323 -0
- package/skills/a2h-page-specgen/scripts/test/recovery.test.mjs +546 -0
- package/skills/a2h-page-specgen/scripts/test/render.test.mjs +503 -0
- package/skills/a2h-page-specgen/scripts/test/source-text.test.mjs +181 -0
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +701 -0
- package/skills/a2h-page-specgen/scripts/test/utg-io.test.mjs +90 -0
- package/skills/a2h-page-specgen/scripts/test/waker-event-store.test.mjs +1365 -0
- package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +1765 -0
- package/skills/a2h-page-specgen/scripts/test/waker.test.mjs +1979 -0
- package/skills/a2h-page-specgen/scripts/test/watchdog.test.mjs +313 -0
- package/skills/a2h-page-specgen/scripts/waker.mjs +1234 -0
- package/skills/a2h-page-specgen/scripts/watchdog.mjs +298 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +49 -51
- package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +182 -0
- package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +206 -0
- package/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +79 -78
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +51 -12
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +24 -6
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +3 -2
- package/skills/a2h-spec-design-pipeline/references/initialization.md +15 -4
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +82 -41
- package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +61 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +19 -10
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +267 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +61 -8
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +62 -13
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +8 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +8 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-cn.md +55 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/http-extra-data-empty-string-en.md +60 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/HttpExtraDataEmptyStringCheck.js +488 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +11 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +17 -0
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +12 -38
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +40 -5
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +18 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +74 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +2 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +128 -5
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +98 -35
- package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +218 -37
- package/skills/a2h-spec-design-pipeline/scripts/lib/shared_classes.ts +113 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/shared_docs.ts +202 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/wiring.ts +58 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +6 -7
- package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +3 -0
- package/skills/a2h-spec-design-pipeline/scripts/resolver_prompt.ts +348 -0
- package/skills/a2h-spec-design-pipeline/scripts/scan_shared.ts +642 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +15 -5
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +7 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +104 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +24 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +394 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +24 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +14 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +163 -5
- package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +15 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +14 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolver_prompt.ts +350 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_scan_shared.ts +996 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_classes.ts +80 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_docs.ts +205 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +121 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_e2e.ts +85 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_validate_shared_manifest.ts +720 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_wiring.ts +40 -0
- package/skills/a2h-spec-design-pipeline/scripts/validate_shared_manifest.ts +566 -0
- package/skills/a2h-spec-generate/SKILL.md +87 -21
- package/skills/a2h-spec-generate/references/batch-mode.md +78 -17
- package/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +7 -0
- package/skills/a2h-spec-generate/references/review-checklist.md +1 -0
- package/skills/a2h-spec-generate/references/synthesis-rules.md +4 -2
- package/skills/a2h-spec-generate/references/worker-rules.md +6 -3
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +4 -5
- package/skills/a2h-spec-generate/scripts/check_spec.ts +145 -14
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +261 -19
- package/skills/a2h-spec-generate/scripts/dispatch-watch.mjs +1168 -0
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +1 -2
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +25 -46
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +26 -27
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +3 -6
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +31 -32
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +2 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +15 -26
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +102 -81
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +39 -19
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +12 -13
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/navigation-guard.ts +363 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +35 -196
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +3 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +22 -96
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +3 -4
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +1 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +74 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +51 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +42 -111
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +1 -20
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +3 -4
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +50 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +75 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +256 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/fusion-run.ts +243 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fixtures/zip.ts +63 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +650 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-detectors.test.ts +176 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +103 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-schema.test.ts +111 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-seed.test.ts +195 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-selfcheck.test.ts +307 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +347 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1948 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-library-evidence.test.ts +239 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-navigation-guard.test.ts +277 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +844 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +1253 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +608 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +117 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +411 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +175 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +300 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +286 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +25 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/zip.test.ts +61 -0
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +879 -0
- package/skills/a2h-spec-generate/test/check-spec.test.ts +430 -0
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +811 -0
- package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
- package/skills/a2h-spec-generate/test/dispatch-watch.test.mjs +606 -0
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +230 -0
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +157 -0
- package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +8 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +6 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +4 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +8 -0
- package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +1 -0
- package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
- package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +182 -0
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +295 -0
- package/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +596 -0
- package/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/skills/a2h-utg-explorer/references/architecture.md +4 -0
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +64 -80
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +1 -2
- package/skills/a2h-utg-explorer/scripts/recover.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +5 -3
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +244 -0
- package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +302 -0
- package/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +104 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +231 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +160 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_locale_identity.test.mjs +77 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +187 -0
- package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +137 -0
- package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +16 -0
- package/skills/a2h-utg-explorer/scripts/tests/fresh_state_plan.test.mjs +78 -0
- package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +252 -0
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +129 -0
- package/skills/a2h-utg-explorer/scripts/tests/holds_without_data_parity.test.mjs +26 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +492 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_bridge.test.mjs +199 -0
- package/skills/a2h-utg-explorer/scripts/tests/launch_failure.test.mjs +40 -0
- package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +193 -0
- package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +327 -0
- package/skills/a2h-utg-explorer/scripts/tests/overlay_identity.test.mjs +204 -0
- package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +393 -0
- package/skills/a2h-utg-explorer/scripts/tests/pager_navigation.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/panel_routes.test.mjs +208 -0
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +212 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +280 -0
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +213 -0
- package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +454 -0
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +194 -0
- package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +229 -0
- package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +336 -0
- package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +142 -0
- package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/skills/a2h-utg-explorer/scripts/tests/string_tables_twin_ties.test.mjs +83 -0
- package/skills/a2h-utg-explorer/scripts/tests/tar_fixture.mjs +12 -0
- package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +346 -0
- package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +112 -0
- package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +24 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +13 -3
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +107 -65
- package/skills/a2h-utg-explorer/scripts/utg_explorer/strings.mjs +155 -0
- package/skills/a2h-utg-static/scripts/assemble.mjs +28 -3
- package/skills/a2h-utg-static/scripts/click_paths.mjs +19 -20
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +102 -2
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +2 -3
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +2 -3
- package/skills/a2h-utg-static/scripts/presenter_nav.mjs +1 -2
- package/skills/a2h-utg-static/scripts/route_interceptor.mjs +21 -7
- package/skills/a2h-utg-static/scripts/static_prior.mjs +26 -29
- package/skills/a2h-utg-static/scripts/tests/test_activity_gates.mjs +84 -0
- package/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +38 -0
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +29 -1
- package/skills/a2h-app-migrate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-app-migrate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-arch-generate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-arch-generate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.d.mts +0 -5
- package/skills/a2h-arkts-logic-coder/scripts/design/i18n-term.mjs +0 -54
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +0 -38
- package/skills/a2h-batch-ui-align/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-batch-ui-align/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-dashboard-render/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-dashboard-render/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-resource-convert/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-resource-convert/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-design-pipeline/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-design-pipeline/scripts/test_i18n_term.ts +0 -70
- package/skills/a2h-spec-generate/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-generate/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.d.mts +0 -5
- package/skills/a2h-spec-generate/scripts/reqgen/src/i18n-term.mjs +0 -54
- package/skills/a2h-utg-explorer/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-utg-explorer/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-utg-static/scripts/i18n-term.d.mts +0 -5
- package/skills/a2h-utg-static/scripts/i18n-term.mjs +0 -54
- package/skills/a2h-utg-static/scripts/tests/test_i18n_term.mjs +0 -155
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# B1 — Parallel coding: dispatch ledger, event loop, turn-end guard, chunk contract
|
|
2
|
+
|
|
3
|
+
Apply this file **verbatim**. Read it before entering the wave loop and re-read the section that applies
|
|
4
|
+
on every wakeup. `SKILL.md` carries the navigation summary; this file is the authoritative B1 discipline.
|
|
5
|
+
Its numbering (event-loop steps 1–10, the guard bullets) is cross-referenced by B2, the fail-soft rules,
|
|
6
|
+
and `skills/a2h-spec-design-pipeline/references/execution-model.md`.
|
|
7
|
+
|
|
8
|
+
### B1 — Parallel coding (chunked, per-group serial, background-dispatched)
|
|
9
|
+
|
|
10
|
+
Chunk sub-agents are dispatched with the `Agent` tool in **background mode** (`background: true`). Maintain
|
|
11
|
+
a **chunk pointer per group** (`state.groups[G].chunks[k].status`: `pending` → `in_flight` →
|
|
12
|
+
`done`/`failed`); at any moment each group has at most one chunk sub-agent in flight; up to `WAVE_WIDTH`
|
|
13
|
+
chunk agents run concurrently; at most one merge (B2) is ever in progress.
|
|
14
|
+
|
|
15
|
+
**Dispatch ledger (the dropped-notification defense).** The session only wakes on background
|
|
16
|
+
notifications and durable waker events — a chunk agent that finishes with its notification lost looks
|
|
17
|
+
exactly like one still coding, and the wave waits forever. The defense is mechanical: every background
|
|
18
|
+
dispatch is claimed in the append-only ledger **before** it leaves, and a waker holds a wakeup
|
|
19
|
+
independently of any notification. At wave start (after S0, before the first claim): `node
|
|
20
|
+
<skill-dir>/scripts/dispatch.mjs <HMOS> init --wave <K> --concurrency <WAVE_WIDTH>` — a later wave is the
|
|
21
|
+
same command (same `runId`, a new plan event); `--new-run` is reserved for a genuine reset. Then **every**
|
|
22
|
+
background dispatch — chunk, retry, resolver, release-time chunk 1 — follows this protocol, no exceptions:
|
|
23
|
+
|
|
24
|
+
1. **Claim.** `node <skill-dir>/scripts/dispatch.mjs <HMOS> claim chunk:g<G>c<k>` (resolver:
|
|
25
|
+
`claim resolver:g<G>`). It prints `{unitId, attempt, claimGen, wtGen, token, worktree, branch, baseHead,
|
|
26
|
+
baseDirty}`, creates `chunk_<k>/attempt_<n>/`, and seeds the foreground baseline. A rejected claim
|
|
27
|
+
(not pending, terminal/unprovisioned group, group busy, concurrency limit) writes nothing — fix the
|
|
28
|
+
cause, never force it.
|
|
29
|
+
2. **Intent before the call.** `dispatch.mjs <HMOS> intent <unitId> --expect-gen <claimGen> --token
|
|
30
|
+
<token>` — from here on an agent **may** exist; this is what turns a silent dispatch into an
|
|
31
|
+
`orphan(no-evidence)` instead of a phantom.
|
|
32
|
+
3. **Dispatch** the sub-agent in background with the `unitId` in the prompt. When the call returns a
|
|
33
|
+
session id, prove liveness: `dispatch.mjs <HMOS> confirm <unitId> --expect-gen <claimGen> --token
|
|
34
|
+
<token> --session <sessionID>` (use `start` only when the harness exposes no session id).
|
|
35
|
+
4. **Keep progress visible.** At every turn end (and whenever a long agent is quiet), `dispatch.mjs
|
|
36
|
+
<HMOS> progress` reports the units whose last commit / attempt-artifact / dirty-path mtime moved past
|
|
37
|
+
`lastProgress`; write `beat <unitId> --expect-gen <claimGen> --token <token>` for each. A healthy 40+
|
|
38
|
+
minute agent therefore never hits the lease.
|
|
39
|
+
5. **On completion evidence.** The coder writes only files (`commit-info.md` / `issues.md` / `wiring.md` /
|
|
40
|
+
`state_docs_used.md`) into the attempt directory. The orchestrator runs `dispatch.mjs <HMOS> evidence <unitId>` and reads its
|
|
41
|
+
`{kind, reason, stateDocs?, warnings?}` — the deterministic per-attempt check (fresh mtime, `TASK_BASE..HEAD` so-id coverage,
|
|
42
|
+
`commit-id` in range, quiet worktree relative to `baseDirty`). A `state_docs_used.md` with no line carrying
|
|
43
|
+
`state-docs: available|unavailable|not-applicable` still completes, with `warnings: ["state-docs-invalid"]`;
|
|
44
|
+
a missing file is `warnings: ["state-docs-missing"]` and a valid `unavailable` verdict is `warnings:
|
|
45
|
+
["state-docs-unavailable"]` in the JSON, never silently assumed. Append every `warnings`
|
|
46
|
+
entry to the wave log and to the final report's Manual Follow-up TODOs, so a skipped gate stays
|
|
47
|
+
visible even when the chunk completes. Only `kind: "completed"` authorizes
|
|
48
|
+
`dispatch.mjs <HMOS> artifact <unitId> --path <commit-info.md>` and `dispatch.mjs <HMOS> submit
|
|
49
|
+
<unitId> --expect-gen <claimGen> --token <token> --kind completed`. `kind: "failed"` (a fresh `issues.md`
|
|
50
|
+
wins regardless of write order — a blocked attempt writes `issues.md` and may still emit
|
|
51
|
+
`commit-id: none`) is `submit --kind failed`; `kind: "invalid"` is `reject --reason
|
|
52
|
+
evidence-invalid` in the same turn (do not wait out `EVIDENCE_TTL`); `kind: "incomplete"` means do
|
|
53
|
+
nothing and re-check on the next event — never `submit` from a session message alone.
|
|
54
|
+
6. **Then release.** `release <unitId> --expect-gen <claimGen> --token <token> --outcome done` for a
|
|
55
|
+
successful chunk (or `failed` for a requested content failure; `merged` is reserved for the resolver
|
|
56
|
+
after landing). The ledger row is the truth; state marks (`done`, `coded`, `audit`, design map) follow
|
|
57
|
+
the release in the triage step below.
|
|
58
|
+
|
|
59
|
+
**Mutation commands.** Only `dispatch.mjs` writes the ledger. `abandon` (phantom/dispatch-error/dead-run),
|
|
60
|
+
`orphan` (no-evidence/lease-expired/dead-run), `reject` (evidence-invalid/evidence-expired), `retry`
|
|
61
|
+
(one content retry; `--force` only for a manual `abandoned` reset), `close`
|
|
62
|
+
(content-exhausted/dead/ladder-exhausted/blocked), `accept` (wave-end), and `group-*` are the only ways a
|
|
63
|
+
unit changes state outside claim/submit/release. `abandon(dispatch-error)` also covers a failed Agent call
|
|
64
|
+
after `intent` (no confirmed session); once `confirm` landed, a live unit is never abandoned. Every
|
|
65
|
+
identity-bearing command needs the claim's
|
|
66
|
+
`--expect-gen` + `--token`; a mismatched identity prints `{stale:true}` and writes nothing — report and
|
|
67
|
+
ignore it (a zombie agent's late output never mutates a newer generation). `accept` compares only
|
|
68
|
+
`claimGen`; `close(blocked)`, `retry`, and `group-*` carry no identity. The ledger files are never
|
|
69
|
+
hand-edited.
|
|
70
|
+
|
|
71
|
+
**Event loop.** After W0: claim and dispatch chunk 1 of every **ready** member, then end the turn and
|
|
72
|
+
wait — `held` members are not dispatched; the release sweep below starts them. Each pass runs the loop
|
|
73
|
+
below in order (the spec §11 loop; reconcile is the pivot, not a second source of truth):
|
|
74
|
+
|
|
75
|
+
1. **Consume events.** Read `dispatch/orch.event.json` and `dispatch/waker.event.json` (verify `runId`,
|
|
76
|
+
then delete them), plus every completion notification. Demux a waker event: `artifact`/`git`/`ledger`/
|
|
77
|
+
`state` → targeted evidence for that unit; `deadline` → reconcile; `relay` → nothing to do, re-arm;
|
|
78
|
+
`error` → repair, do not re-arm until fixed; `exited` → a terminal stop, nothing to do.
|
|
79
|
+
1b. **Evidence sweep (before reconcile).** `progress` → `beat` every live unit that moved. For every
|
|
80
|
+
`dispatched`/`orphaned` unit, inspect its current `attempt_<n>` directory and git state: complete
|
|
81
|
+
evidence → `artifact` + `submit(completed)`; clearly invalid evidence → `reject(evidence-invalid)`
|
|
82
|
+
immediately (do not wait out `EVIDENCE_TTL`); incomplete → wait for the next round. This is the only
|
|
83
|
+
place a completed-but-unnotified agent gets back into the loop — recovery beats re-dispatch.
|
|
84
|
+
2. **`reconcile`.** It applies the timeout-derived events under the ledger lock and prints
|
|
85
|
+
`runId, wave, complete, units, groups, submitted, failed, abandoned, orphaned, accepted, closed,
|
|
86
|
+
dispatchable, freeSlots, deadGroups, groupResidue, stateMismatches, nextDeadline, verdicts`.
|
|
87
|
+
2b. **One-way state repair (ledger → state).** For every reported mismatch: a terminal ledger chunk
|
|
88
|
+
(`done`/`accepted` → `done`; `closed`/`abandoned` → `failed`) sets its state chunk row; group
|
|
89
|
+
`coding` → state `coding`, `merged` → `merged`, `failed` → `failed`; then reconcile once more. Never
|
|
90
|
+
write the ledger from state, and never "fix" state by resetting a live unit.
|
|
91
|
+
3. **Complete?** If `complete` is true, leave the loop (wave end; proceed to the audit → wiring → B3
|
|
92
|
+
chain below).
|
|
93
|
+
4. **Triage (fixed order).**
|
|
94
|
+
- `deadGroups` / `closed(reason=dead)` → `group-reset --mode fresh` when a generation remains (new
|
|
95
|
+
`WT/g<G>r<n>` + `specpipe/g<G>r<n>`), else `group-fail`.
|
|
96
|
+
- `submitted` chunk → only the group's **last non-terminal chunk** goes `queue-merge`; every submitted
|
|
97
|
+
chunk gets `release(done)`. A non-last chunk immediately dispatches its successor (claim → intent →
|
|
98
|
+
Agent → confirm) in the same turn. A submitted resolver is handled by step 5 (land, then
|
|
99
|
+
`release(merged)`).
|
|
100
|
+
- `failed` → resolver failures take the B2 ladder; a chunk failure with `contentAttempts < 2` takes
|
|
101
|
+
`retry` (then claim/dispatch the retry), otherwise `close --reason content-exhausted --expect-gen
|
|
102
|
+
<claimGen> --token <token>` + `group-fail`.
|
|
103
|
+
- `abandoned` → `group-fail` (no `close`).
|
|
104
|
+
- `closed` (other reasons) → `group-fail`.
|
|
105
|
+
- `orphaned` chunk → wait — the evidence sweep collects late evidence; only wave-end may `accept`.
|
|
106
|
+
- `orphaned` resolver → the B2 ladder hop.
|
|
107
|
+
5. **Reconcile again; drain the merge queue** (`references/merge-queue.md`): before a pop, check
|
|
108
|
+
`branch_landed.ts <HMOS> <G> --wt-gen <wtGen>`; already landed → record its `pre..range` and
|
|
109
|
+
`group-merge <G> --landed <merge_commit>`; not landed → `git merge --no-ff --no-edit
|
|
110
|
+
specpipe/g<G>r<wtGen>`, then `group-merge <G> --landed $(git -C <HMOS> rev-parse HEAD)`. A
|
|
111
|
+
zero-commit branch (`tip` present, `tip` equal to the group's recorded base, `commits_ahead_of_main:0`)
|
|
112
|
+
is the only no-op path — and only when the group was queued and every planned chunk is
|
|
113
|
+
`done`/`accepted`: `group-merge <G>` without `--landed` records `noop:true`. A zero-commit group whose
|
|
114
|
+
chunks include a `failed`/`closed` one is terminal at `landed-required` → `group-fail <G>` (never retry
|
|
115
|
+
every turn). If the generation branch was already landed and then deleted, pass the known
|
|
116
|
+
`--landed <M>` (accepted when it is a first-parent merge naming `specpipe/g<G>r<wtGen>`).
|
|
117
|
+
`group-merge` refuses while main is mid-merge (`MERGE_HEAD` exists); never run it in the same unchecked
|
|
118
|
+
shell line as `git merge`. A conflict takes ladder hop (a) and
|
|
119
|
+
parks the queue: main `merge --abort` → `claim resolver:g<G>` → worktree `git merge <main>` →
|
|
120
|
+
`resolver_prompt.ts` → `intent` → background dispatch → `confirm`. The group's state marks
|
|
121
|
+
(`stage: "B"`, `status = "merged"`) are written only after `group-merge` succeeds. A resolver that
|
|
122
|
+
finished is released (`release --outcome merged`) only after its landing commit exists, then
|
|
123
|
+
`group-merge --landed`.
|
|
124
|
+
6. **Deps release sweep (the chain's tail).** `node <skill-dir>/scripts/deps_ready.ts <HMOS> --wave <K>`
|
|
125
|
+
is a pure function of plan deps + group/chunk statuses; a nonzero exit is recorded and retried next
|
|
126
|
+
turn. A **flat** wave yields `ready` for every pending member. For every member newly in `released`
|
|
127
|
+
(ready ∧ all chunks `pending`): if the ledger group is already `provisioned` (a `group-reset` created
|
|
128
|
+
the new generation), skip the create/`group-worktree` step and go straight to index/staging.
|
|
129
|
+
Otherwise record `state.groups[G].coding_base = <current main HEAD>`, remove any leftover
|
|
130
|
+
`WT/g<G>r<wtGen>` (`worktree remove --force`, else `worktree prune`), delete a stale
|
|
131
|
+
`specpipe/g<G>r<wtGen>`, `git worktree add WT/g<G>r<wtGen> -b specpipe/g<G>r<wtGen> <coding_base>`,
|
|
132
|
+
build its index (`ensure_wt_index.ts`, skip when `ENGINE_MODE=off`; exit 1 is degraded, never a
|
|
133
|
+
release failure), run `stage_design_inputs.ts`, then `dispatch.mjs group-worktree <G> --wt-gen
|
|
134
|
+
<wtGen> --base <coding_base>` — the only claim fence. Worktree creation failure → group `failed`,
|
|
135
|
+
recorded, wave continues. Then claim and dispatch chunk 1. A release never takes an extra concurrency
|
|
136
|
+
slot.
|
|
137
|
+
7. **Reconcile; dispatch up to `freeSlots`.** For each `dispatchable` entry, claim → intent → background
|
|
138
|
+
Agent → confirm. A same-turn successor (step 4/5) and a released held group (step 6) are both covered
|
|
139
|
+
by this pass; `chunk k-1 done` is read from the **ledger**, so a lagging state never blocks dispatch.
|
|
140
|
+
8. **Residue disposal (scope = every group still holding units, including older waves).** A group whose
|
|
141
|
+
units are all terminal but whose group status is not → `queue-merge` when unlanded (then drain), or
|
|
142
|
+
`group-merge <G> --landed <merge_commit>` when `branch_landed.ts` reports it already landed. A
|
|
143
|
+
zero-commit group whose terminal chunks include `failed`/`closed` can never land: skip the queue and
|
|
144
|
+
`group-fail <G>` directly. `failed-group-residue` (a failed group still holding a non-terminal
|
|
145
|
+
unit) → dispose of those units (`reject` for invalid evidence, `orphan`/`close` as their state allows):
|
|
146
|
+
they can never reach a verdict on their own and would keep `complete` false forever. `deadGroups` → fresh
|
|
147
|
+
reset (if a generation remains) or
|
|
148
|
+
`group-fail`. At wave end (no claimed/dispatched/live/submitted unit and no queued merge): an
|
|
149
|
+
`orphaned` chunk → `accept --expect-gen <claimGen> --reason wave-end` + `group-fail`; a `pending` unit
|
|
150
|
+
whose deps can never be
|
|
151
|
+
satisfied → `close --reason blocked` + `group-fail`. Then re-check `complete`; otherwise make sure a
|
|
152
|
+
waker is armed (`probe` → `inPlace:false` or a different `runId`).
|
|
153
|
+
9. **Wait.** `dispatch.mjs <HMOS> wait --max-wait 120 --poll 5 --baseline <HMOS>/.hometrans/dispatch/snapshots/orch.snapshot.json
|
|
154
|
+
--event-file <HMOS>/.hometrans/dispatch/orch.event.json` (the next deadline comes from reconcile). It
|
|
155
|
+
persists its event before returning, so an event created at the end of a turn is still consumed at the
|
|
156
|
+
start of the next.
|
|
157
|
+
10. Go to step 1.
|
|
158
|
+
|
|
159
|
+
**Never-strand guard (checked at every turn end, in this order).**
|
|
160
|
+
|
|
161
|
+
- **Merge-queue rule.** A non-empty queue with no active resolver and no in-progress resolver-backed
|
|
162
|
+
merge → keep popping until it empties or a pop conflicts. A parked resolver whose unit is `orphaned`
|
|
163
|
+
or `closed` can never land: `git -C <worktree> merge --abort`, then advance the ladder **without hop
|
|
164
|
+
(a)** — hop (b) when a generation remains, else hop (c) fail-soft (`group-fail`). A parked merge with
|
|
165
|
+
an active resolver unit waits; its `orphan`/`close` event re-runs this rule.
|
|
166
|
+
- **Nothing active, queue empty.** Run step 8's disposal: every member must be `merged`/`failed` before
|
|
167
|
+
the wave ends. An `orphaned` chunk that is still coding is accepted (`--expect-gen <claimGen> --reason
|
|
168
|
+
wave-end`) and its group failed; a `pending` member unable to satisfy deps is `close --reason blocked`
|
|
169
|
+
+ `group-fail`. Then the
|
|
170
|
+
wave is terminal: **write `dispatch/waker.stop`** (idempotent) and proceed to the audit → wiring → B3
|
|
171
|
+
chain in the same turn.
|
|
172
|
+
- **Units still active.** A turn may end only when `dispatch.mjs probe` reports a live waker for the
|
|
173
|
+
current `runId` (`inPlace:true`) — otherwise arm it (see below). An unprocessed completion already in
|
|
174
|
+
context is not in flight: process it, never end on it.
|
|
175
|
+
- **Pending member with a worktree but no live unit and no active ledger row.** A handler was
|
|
176
|
+
interrupted mid-chain: re-derive the chunk position from the worktree's so-id log (the resume rule
|
|
177
|
+
below) and claim the first chunk that is neither `done` nor covered by an active unit; when every
|
|
178
|
+
chunk is `done`, finish the handler instead — `queue-merge` + the group state marks.
|
|
179
|
+
- **Pending member with no worktree** (the dispatch-hold shape): route by `deps_ready.ts` — `held` →
|
|
180
|
+
not dispatched; `ready` → step 6's release procedure, **never a bare chunk dispatch**.
|
|
181
|
+
|
|
182
|
+
**Waker arming.** When active units remain: `dispatch.mjs <HMOS> probe` → if `inPlace:false` or
|
|
183
|
+
`runId` differs, clear a stale stop file and dispatch a general-purpose sub-agent in **background mode**
|
|
184
|
+
whose entire task is one shell call (timeout 0): `node <skill-dir>/scripts/dispatch.mjs <HMOS> waker
|
|
185
|
+
--interval 30`. Its final message is only `{ "code": <exit> }`. It occupies no concurrency slot and is
|
|
186
|
+
never a ledger unit. If the harness caps background shell duration, loop the `wait` command in `--once`
|
|
187
|
+
form inside that one shell and re-arm when it returns. On every terminal path — wave barrier, resume,
|
|
188
|
+
abort, Finalization — write `dispatch/waker.stop`; never leave a waker alive after the flow it guards
|
|
189
|
+
ends.
|
|
190
|
+
|
|
191
|
+
**Coding-complete** (no member still coding — every member `coded`, `merged`, or `failed`): keep draining
|
|
192
|
+
the merge queue as above. B1⇄B2 finish together when every member is `merged` or `failed`, the queue is
|
|
193
|
+
empty, and `reconcile` reports `complete:true` → stop the waker → run the wave's actual-write audit (B2
|
|
194
|
+
step 0) → wiring application → B3.
|
|
195
|
+
|
|
196
|
+
Each chunk dispatch is a general-purpose sub-agent whose prompt invokes the `a2h-arkts-logic-coder` skill
|
|
197
|
+
with these fields (the skill's Inputs). The orchestrator owns every ledger write; the coder writes only
|
|
198
|
+
its artifacts.
|
|
199
|
+
|
|
200
|
+
- `harmonyos-project-path`: the group's worktree `WT/g<G>r<wtGen>` (W0's per-project worktree root)
|
|
201
|
+
- `spec-file`: this chunk's `chunk_<k>_spec.md` (absolute path into main-tree `.hometrans`)
|
|
202
|
+
- `spec-design-file`: `<DESIGN_DIR>/SPEC_DESIGN_G<G>_c<k>.md` (absolute path into the main tree)
|
|
203
|
+
- `design-mode`: `true` when the chunk's design file is absent or its `_issue.md` exists (delete both
|
|
204
|
+
before dispatch in that case); `false` when a valid design exists
|
|
205
|
+
- `design-ui-sequence`: the chunk's `ui_sequence` (may be empty)
|
|
206
|
+
- `design-display-root`: `basename(<HMOS>)` (the design's `<path_display_root>/` prefix; never the
|
|
207
|
+
worktree's `g<G>`)
|
|
208
|
+
- `design-engine-mode`: `<ENGINE_MODE>`
|
|
209
|
+
- `design-mvvm`: `<MVVM_MODE>`
|
|
210
|
+
- `design-database-design` / `design-preferences-design`: only when I2 resolved non-default locations
|
|
211
|
+
- `unitId`: `chunk:g<G>c<k>` (for the coder's logs and its returned JSON; it never writes the ledger)
|
|
212
|
+
- `output-path`: `<HMOS>/.hometrans/spec_group_<G>/chunk_<k>/attempt_<n>` — the per-attempt directory
|
|
213
|
+
(`n` is the claim's `attempt`)
|
|
214
|
+
- `wiring-mode`: `true`
|
|
215
|
+
- `wiring-list`: the wiring surface in **compact form** — the Tier-1 categorical rules (any `Index.ets`,
|
|
216
|
+
`module.json5`, `oh-package*.json5`, `main_pages.json`, `route_map.json`, `resources/**/element/*.json`
|
|
217
|
+
— all locale variants) + the discrete entries of `state.config.wiring_files` that match no category
|
|
218
|
+
(project-specific: ability sources, the DB registration file, `*Routes.ets`) + the lock-file rule
|
|
219
|
+
(never edit, no wiring rows — the build regenerates). The compact list is derived from
|
|
220
|
+
`state.config.wiring_files` (the source of truth); `resolve_wiring.ts` also persists the same rendering
|
|
221
|
+
as `state.config.wiring_compact`, which `resolver_prompt.ts` treats as a fallback only when
|
|
222
|
+
`wiring_files` is absent. Never paste the raw full list (~167 paths ≈ ~3k tokens per dispatch).
|
|
223
|
+
- `state-docs-mode`: `<state.config.state_docs_mode>` (`available` / `unavailable`) — the coder's
|
|
224
|
+
state-management doc gate reads it (`a2h-arkts-logic-coder` → `references/code-generation.md`
|
|
225
|
+
Step 2). With `unavailable` the coder skips the `devecocli docs` wrapper, falls back to its
|
|
226
|
+
`references/ISSUES.md`, and records `state-docs: unavailable` in `state_docs_used.md`. Never paste
|
|
227
|
+
the doc rules or a doc key list into the prompt — the coder skill owns them.
|
|
228
|
+
- worktree index: `<worktree>/.homegraph/`, built by the dispatcher when the worktree was created
|
|
229
|
+
(`ensure_wt_index.ts` — W0 for ready members, the deps release sweep for held ones). Read-only for the
|
|
230
|
+
coder; the prompt clause below carries the usage rules. **No usable index** (the script exited 1, or
|
|
231
|
+
the orchestrator skipped the build for `ENGINE_MODE=off` — both recorded in the wave log) → the clause
|
|
232
|
+
is omitted and the coder uses plain grep/read.
|
|
233
|
+
- worktree index clause (append it to the `prompt extra` **only** when the index build exited 0 — the
|
|
234
|
+
same condition as the bullet above; omit the whole clause when the build was degraded or skipped,
|
|
235
|
+
never paste a conditional sentence): "**HomeGraph rule**: this worktree has its own read-only index —
|
|
236
|
+
query it with `homegraph explore -p <this worktree> \"<query>\"`. Prefer the CLI; the MCP tool may be
|
|
237
|
+
used only when the MCP session's bound root is this worktree (a mismatched `projectPath` is ignored by
|
|
238
|
+
the server and answers from the bound tree). Never run `homegraph init`/`sync`/`index`, and never query
|
|
239
|
+
`<HMOS>`'s index — it answers from a different branch and the CLI prints no mismatch warning. The index
|
|
240
|
+
is a snapshot from this worktree's creation (or its last `--sync`), so symbols you write now may be
|
|
241
|
+
missing from it."
|
|
242
|
+
- prompt extra: "Implement all scenarios in the given spec-file (the slice already contains only this
|
|
243
|
+
chunk's specs). Every commit message MUST start with the so-ids implemented in that commit
|
|
244
|
+
('so-26,so-27: ...'). Resume note: so-<id> is already committed; continue the implementation from so-<next>.**Code-first rule**: the
|
|
245
|
+
design document's semantic descriptions may lag the actual code — always treat the ACTUAL code in this
|
|
246
|
+
worktree as ground truth; when an implementation already exists, reuse/extend it instead of rewriting;
|
|
247
|
+
the design's anchors (UI/data/logic file paths) locate the code and impose no file-scope restriction.
|
|
248
|
+
**No-build rule**: the coder must not build, compile, or install dependencies in the worktree — no
|
|
249
|
+
`devecocli build`, `hvigorw`, `ohpm install`, or any equivalent; static checks (the skill's node
|
|
250
|
+
scripts, git) are fine. Compile verification belongs to B3 alone (`build-fixer` runs `devecocli build`
|
|
251
|
+
once per wave on the main tree). **State-refresh rule**: before choosing any state variable or
|
|
252
|
+
decorator, follow the coder skill's state-management doc gate and write `state_docs_used.md`; never
|
|
253
|
+
settle a decorator from memory or analogy. **Your final JSON must echo the `unitId` given above.**" — resume
|
|
254
|
+
detection is mechanical: parse `git -C <worktree> log --oneline <TASK_BASE>..` commit-message so-id
|
|
255
|
+
prefixes to find the last completed so-id before any re-dispatch. `TASK_BASE` = the ledger group's
|
|
256
|
+
`base` (falling back to `WAVE_BASE`); `coding_base` in state is a read-only cache. Filter the parsed
|
|
257
|
+
so-id prefixes against this group's own spec so-id set as a backstop (non-contiguous so-id inputs are
|
|
258
|
+
never skip-read).
|
|
259
|
+
- return JSON: `{ "ok": true, "unitId": "chunk:g<G>c<k>", "commits": "<TASK_BASE>..<HEAD>",
|
|
260
|
+
"change_type": "code", "wiring": "wiring.md"|null, "note": null }`
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# B2 — Serial merge queue: actual-write audit, landing, recovery ladder, wiring application
|
|
2
|
+
|
|
3
|
+
Apply this file **verbatim** whenever a merge is enqueued, popped, or conflicts, and when wiring is
|
|
4
|
+
applied at wave end. `SKILL.md` carries the navigation summary; this file is the authoritative B2 text
|
|
5
|
+
(step 0 actual-write audit, landing, the recovery ladder, the wave-end wiring application).
|
|
6
|
+
|
|
7
|
+
### B2 — Serial merge queue, interleaved with B1 (the only git-writer moment)
|
|
8
|
+
|
|
9
|
+
B2 is not a phase that starts after B1 — it is a **merge queue** the B1 event loop drains while coding
|
|
10
|
+
continues. A group enters the queue at its coding-complete event (`queue-merge <G>` only when its last
|
|
11
|
+
non-terminal chunk completed); the queue is processed strictly serially (main is the single git-writer),
|
|
12
|
+
popped in coding-completion order (same-turn ties and resume use group order), and at most one merge —
|
|
13
|
+
normal or resolver-backed — is in progress at any moment. A normal merge is an orchestrator shell command
|
|
14
|
+
— same-turn. A conflict resolution is a **background** sub-agent (the ladder below) — only the merge
|
|
15
|
+
queue is parked; the resolver's completion event releases it. `dequeue-merge <G>` drops a queued item;
|
|
16
|
+
`group-merge <G> --landed <merge-commit>` is written **only after** the landing merge commit exists (a
|
|
17
|
+
zero-commit branch records an explicit no-op without `--landed`); `group-fail <G>` is the fail-soft exit.
|
|
18
|
+
`group-merge` refuses to write while main is mid-merge (`MERGE_HEAD` exists, reason `merge-in-progress`),
|
|
19
|
+
when the branch has unlanded commits and `--landed` is absent (`landed-required`), when the supplied sha
|
|
20
|
+
is not that group's landing merge commit (`landed-mismatch`/`landed-unknown`), and for a `failed` group
|
|
21
|
+
(`group-failed`). The ledger row is the truth; the state file is written **after** a successful
|
|
22
|
+
`group-merge`, never before.
|
|
23
|
+
|
|
24
|
+
0. **Actual-write audit** (deterministic, observability — never a stop): runs **once per wave, when
|
|
25
|
+
B1⇄B2 finish** — after the merge queue drains (every member `merged`/`failed`), before wiring
|
|
26
|
+
application — `node <skill-dir>/scripts/audit_claims.ts <HMOS> --wave <K> --base <WAVE_BASE>`. Each
|
|
27
|
+
group is audited through its recorded coder snapshot `state.groups[G].audit = { base, tip }` (base =
|
|
28
|
+
the group's coding base — `WAVE_BASE`, the hop-b reset HEAD of a re-coded group, or the release-fork
|
|
29
|
+
HEAD (`coding_base`) of a held-then-released member; tip freezes the branch before any hop-a resolver
|
|
30
|
+
merge can mutate it): `git diff --name-only base tip` → coder files, wiring-surface edits
|
|
31
|
+
(wiring-mode violations), empty diffs, and same-wave groups whose actual write sets intersect. For a
|
|
32
|
+
hop-a group the audit additionally reports `resolver_edits` / `resolver_registry_edits` — hand-written
|
|
33
|
+
post-coder work on the first-parent chain above the recorded `tip`; per merge in that chain, a file
|
|
34
|
+
counts as hand-written only when it differs from the auto-merge of the parents **and** from both
|
|
35
|
+
parents (a clean auto-merge and a verbatim take are not hand-written). A group without a recorded pair
|
|
36
|
+
falls back to `WAVE_BASE..specpipe/g<G>r<wtGen>`, with each group's `wtGen` read from the dispatch
|
|
37
|
+
ledger (one generation per group; `--wt-gen <n>` is the no-ledger fallback; `--branch` wins) — lower confidence
|
|
38
|
+
if the branch was ladder-mutated. The recorded pairs make the audit independent of merge/resolver
|
|
39
|
+
timing. Findings are data: registry edits, resolver registry edits, and overlap files flow into B4's
|
|
40
|
+
merged findings (the fix list); cross-group actual overlaps are post-hoc observation of the conflicts
|
|
41
|
+
B2's ladder already handled. Nonzero exit = malformed inputs — record and continue without audit data.
|
|
42
|
+
|
|
43
|
+
Then, for each group popped from the queue:
|
|
44
|
+
1. **Landing.** The group's branch is the **current generation** recorded in the ledger group
|
|
45
|
+
(`state.groups[G].branch`, `specpipe/g<G>r<wtGen>`). First check
|
|
46
|
+
`node <skill-dir>/scripts/branch_landed.ts <HMOS> <G> --wt-gen <wtGen>`; if `landed:true`, the branch
|
|
47
|
+
is already on main (a crash between the merge and the state write) — record its `pre..range` and write
|
|
48
|
+
`dispatch.mjs <HMOS> group-merge <G> --landed <merge_commit>` without re-merging. Otherwise
|
|
49
|
+
`PRE = git -C <HMOS> rev-parse HEAD`, then `git -C <HMOS> merge --no-ff --no-edit
|
|
50
|
+
specpipe/g<G>r<wtGen>` — **every landing is a main-side merge commit** (first parent = `PRE`); no
|
|
51
|
+
landing ever fast-forwards (a fast-forward would put the branch's own commit on main with an inverted
|
|
52
|
+
parent order, poisoning both the range rule and main's first-parent line). Non-overlapping hunks
|
|
53
|
+
auto-merge; later groups three-way-merge against main (base = `WAVE_BASE`). Overlapping edits between
|
|
54
|
+
same-wave groups are **expected** — the ladder below handles them. **Record the group's net-change
|
|
55
|
+
range for B4 as `PRE..<merge-commit>`** where `<merge-commit> = git rev-parse HEAD` after a successful
|
|
56
|
+
merge. Only after the landing commit exists: `dispatch.mjs <HMOS> group-merge <G> --landed
|
|
57
|
+
<merge-commit>`, then set the group's specs to `stage: "B"` and `state.groups[G].status = "merged"`.
|
|
58
|
+
A merge command that exits non-zero, or that exits 0 without creating a commit (`Already up to date`),
|
|
59
|
+
produces **no** landing merge commit: never call `group-merge --landed` in that state; resolve the
|
|
60
|
+
conflict or take the no-op path below. `group-merge` itself refuses while `MERGE_HEAD` exists.
|
|
61
|
+
|
|
62
|
+
**Zero-commit no-op.** When `branch_landed.ts` reports `tip` present, `tip` equal to the group's
|
|
63
|
+
recorded base, `commits_ahead_of_main: 0` and `landed:false`, merging the branch creates no commit
|
|
64
|
+
(`Already up to date`). This is a valid landing only when the group was queued (`mergeQueued`) and
|
|
65
|
+
every planned chunk is `done`/`accepted`; then `dispatch.mjs <HMOS> group-merge <G>` (no `--landed`)
|
|
66
|
+
records `noop:true`. An explicit `--landed` on this path is a caller that believed a merge commit
|
|
67
|
+
exists → `landed-mismatch`. A missing branch, a branch moved off its base, a failed/closed chunk, or a
|
|
68
|
+
non-queued group → `landed-required` (never launder it into `merged`). **A zero-commit group whose
|
|
69
|
+
planned chunks include a `failed`/`closed` one can never produce a landing: `landed-required` is
|
|
70
|
+
terminal for it — run `group-fail <G>` and continue; never retry `group-merge` on every reconcile.**
|
|
71
|
+
When the generation branch was already merged and then deleted (C), pass the known landing commit via
|
|
72
|
+
`--landed <M>`: the gate accepts `M` when it is a first-parent merge on main whose subject names
|
|
73
|
+
`specpipe/g<G>r<wtGen>` (`landed-mismatch` otherwise).
|
|
74
|
+
|
|
75
|
+
Never hand B4 `WAVE_BASE..<main head after the merge>` — that tree contains all earlier groups'
|
|
76
|
+
changes. State marks (`stage: "B"`, group `merged`, the B4 range) follow a successful `group-merge`
|
|
77
|
+
in the same turn.
|
|
78
|
+
|
|
79
|
+
2. **On conflict — the recovery ladder (per group, max 2 hops then fail-soft; hop counters are
|
|
80
|
+
conversation-transient — a crash restart re-arms the ladder, position re-derives from the ledger +
|
|
81
|
+
git, never from remembered hops):**
|
|
82
|
+
a. **Conflict-resolve re-dispatch (1×, background).** Order is fixed — the claim must exist before the
|
|
83
|
+
worktree merge/render (the prompt carries the attempt's paths), and the worktree merge must exist
|
|
84
|
+
before the prompt can list conflicts:
|
|
85
|
+
1. `git -C <HMOS> merge --abort` (main returns to `PRE`; `group-merge` refuses while `MERGE_HEAD`
|
|
86
|
+
exists). Then, inside the group's worktree, abort a leftover in-progress merge from a crashed
|
|
87
|
+
resolver.
|
|
88
|
+
2. Claim: `dispatch.mjs <HMOS> claim resolver:g<G>` (prints `claimGen`, `token`, `attempt`).
|
|
89
|
+
3. Run `git -C <worktree> merge <main HEAD>`. A clean merge creates a merge commit with no conflict
|
|
90
|
+
— the renderer below reports `resolver_needed:false`, and the attempt is abandoned as a phantom.
|
|
91
|
+
4. Render the prompt: `node <skill-dir>/scripts/resolver_prompt.ts <HMOS> <G>
|
|
92
|
+
[--index-usable yes|no]` → one strict-JSON line
|
|
93
|
+
`{resolver_needed, unitId, worktree, conflicts, groups, issues_file, prompt}`. The renderer
|
|
94
|
+
derives the involved groups from each landed group's `<merge>^1..<merge>` net-change range
|
|
95
|
+
intersected with the conflicted files; `--groups G1,G2` is a manual override (the current group
|
|
96
|
+
is always included). `--index-usable` mirrors B1's worktree decision and defaults to `no`.
|
|
97
|
+
`--dry-run` is operator-only (prints the markdown; no ledger write). `resolver_needed:false`
|
|
98
|
+
(empty conflict list) is a phantom: `abandon resolver:g<G> --expect-gen <claimGen> --token
|
|
99
|
+
<token> --reason phantom`, then finish the landing (step 1) / no-op.
|
|
100
|
+
5. `intent resolver:g<G> --expect-gen <claimGen> --token <token>`.
|
|
101
|
+
6. Dispatch a general-purpose sub-agent **in background** with the rendered `prompt` verbatim; then
|
|
102
|
+
`confirm resolver:g<G> --expect-gen <claimGen> --token <token> --session <sessionID>` when the
|
|
103
|
+
call returns.
|
|
104
|
+
The prompt carries the `unitId`, the conflicted file list, **each involved group's ORIGINAL SPEC**
|
|
105
|
+
plus its chunk SPECs and design docs (absolute paths; the resolver reads only those relevant to the
|
|
106
|
+
conflicted files), **the worktree path as its exclusive working directory (never touch main)**, the
|
|
107
|
+
wiring forbidden list in the same compact form as B1's chunk dispatch, the HomeGraph rule only when
|
|
108
|
+
`--index-usable yes` (`homegraph explore -p <worktree>` only — never `init`/`sync`/`index`, never
|
|
109
|
+
`<HMOS>`'s index), the exact `resolver/attempt_<n>/issues.md` path for a failure, the instruction
|
|
110
|
+
"while preserving the other group's already-merged scenarios, land this group's scenarios onto the
|
|
111
|
+
current code", and a required strict-JSON return
|
|
112
|
+
(`{ "ok": true, "unitId": "resolver:g<G>", "merge_commit": "<hash>" }`). The resolver works **only
|
|
113
|
+
in the group's worktree**; main is untouched until the post-completion landing (step 1).
|
|
114
|
+
Evidence: run `dispatch.mjs <HMOS> evidence resolver:g<G>` (read-only; exit 0 = `completed`, 1 =
|
|
115
|
+
not). `completed` → `artifact` + `submit(completed)`; `failed` (a fresh `resolver/attempt_<n>/issues.md`)
|
|
116
|
+
→ `submit(failed)`; `invalid` → `reject --reason evidence-invalid`. `incomplete` **on the
|
|
117
|
+
agent-return path** (the call returned but no merge commit exists) is terminal for this attempt →
|
|
118
|
+
`submit --kind failed`; never leave it live waiting for another event, and never issue
|
|
119
|
+
`release --outcome failed` (`release` only applies to a `submitted` unit). On success, land the
|
|
120
|
+
merge (step 1), then `release resolver:g<G> --expect-gen <claimGen> --token <token> --outcome
|
|
121
|
+
merged` and `group-merge <G> --landed <merge_commit>` — the landing must exist before
|
|
122
|
+
`group-merge`, which also removes the group's older-generation worktrees/branches (`cleaned` in its
|
|
123
|
+
output) and leaves the current generation for the audit. A failed resolver with `contentAttempts <
|
|
124
|
+
2` takes an explicit `retry` and hop (a) re-dispatch; otherwise advance to hop (b). An
|
|
125
|
+
orphaned/closed resolver that can never land takes hop (b) directly, never hop (a):
|
|
126
|
+
`git -C <worktree> merge --abort`, then `dequeue-merge <G>` before the reset.
|
|
127
|
+
b. **Group re-code (1×):** `dequeue-merge <G>`; if the failed resolver left a worktree merge,
|
|
128
|
+
`git -C <worktree> merge --abort`. Choose the generation mode by the trigger:
|
|
129
|
+
- **content failure** → `group-reset <G> --mode reuse --base <current main HEAD> --reason hop-b`
|
|
130
|
+
(the in-place `reset --hard`; `wtGen` unchanged), then `ensure_wt_index.ts <HMOS>
|
|
131
|
+
WT/g<G>r<wtGen> --sync` (the reset moved the code under the index; skip when `ENGINE_MODE=off`).
|
|
132
|
+
- **orphaned/dead resolver** → `group-reset <G> --mode fresh --base <current main HEAD>
|
|
133
|
+
--reason hop-b --worktree <abs>/WT/g<G>r<next> --branch specpipe/g<G>r<next>`: the generation
|
|
134
|
+
fence creates the new generation and **leaves the old tree/branch in place** (`group-merge` and
|
|
135
|
+
C remove older generations); it fails with
|
|
136
|
+
`max-generations` when `wtGen+1 >= 3` (the generation budget is exhausted → hop (c)). Then build
|
|
137
|
+
the new generation's index (`ensure_wt_index.ts <HMOS> WT/g<G>r<next>`) before any coder starts.
|
|
138
|
+
In both modes run `stage_design_inputs.ts <HMOS> WT/g<G>r<n>` (idempotent) and reset the group's
|
|
139
|
+
state chunk rows and group status to `pending` (the ledger reset already did its side). Record
|
|
140
|
+
`state.groups[G].audit.base = <that HEAD>` (the `tip` is re-recorded when the re-code completes)
|
|
141
|
+
and re-run the chunks through the same event loop (claim → intent → dispatch → confirm; the design
|
|
142
|
+
is reused unless an issue file exists). The so-id resume rule covers the re-code's own commits if
|
|
143
|
+
it crashes midway. Exit 1 from `ensure_wt_index` → record `reason`/`detail` and continue; exit 0
|
|
144
|
+
with `reason:"sync_incomplete"` is a degraded refresh, never a re-dispatch trigger.
|
|
145
|
+
c. **Fail-soft:** `close resolver:g<G> --expect-gen <claimGen> --token <token> --reason
|
|
146
|
+
ladder-exhausted` (the `close` records the terminal reason), then `group-fail <G>` and continue with
|
|
147
|
+
the next group; list it in the final report (groups that depended on its code are flagged).
|
|
148
|
+
|
|
149
|
+
3. Every merge is followed by nothing yet — one build covers the whole wave (B3).
|
|
150
|
+
|
|
151
|
+
After every member is `merged` or `failed` and the merge queue is empty (the B2 step-0 audit has run
|
|
152
|
+
first): **apply wiring** — idempotently: skip the whole application when a `wiring` commit already exists
|
|
153
|
+
in `WAVE_BASE..HEAD` (`git log --oneline <WAVE_BASE>..HEAD --grep '^wiring$'`); per row, if the target
|
|
154
|
+
file already contains the row's key (route name / string key / entity name), skip that row and note it in
|
|
155
|
+
the wave log. For each group (in order), aggregate its chunks' `wiring.md` files
|
|
156
|
+
(`.hometrans/spec_group_<G>/chunk_<k>/wiring.md`, chunk order — the winning attempt's files are promoted
|
|
157
|
+
to `chunk_<k>/` on `release`, `resolver/` for a resolver) and mechanically apply the rows to the target
|
|
158
|
+
files (change types: routes / pages / permissions / dependencies / entities / symbol exports / abilities /
|
|
159
|
+
strings — the surface is `state.config.wiring_files`; lock files are skipped, the build regenerates
|
|
160
|
+
them). **Same-key check**: rows from different groups targeting the same file + same key → record as a
|
|
161
|
+
cross-group wiring conflict for the final report's manual follow-up list (do not block — the later row
|
|
162
|
+
wins; needs human adjudication). Then one commit `wiring`. If all wiring files are empty/absent, skip the
|
|
163
|
+
commit.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Files in this skill
|
|
2
|
+
|
|
3
|
+
- `SKILL.md` — the orchestrator's contract (this skill's main document).
|
|
4
|
+
- `package.json` — declares the skill folder an ES-module package (`"type": "module"`), so the `.ts` scripts parse as ESM wherever the folder is installed — no dependence on the host project's package type.
|
|
5
|
+
- `scripts/plan_groups.ts` — grouping (one group per spec-file parent directory; group_id = the directory's basename, widened only when two parent dirs share a basename), group-level deps, scenario counting, chunk packing with per-chunk spec slices and design paths, merged-spec generation, plan v2 emission, state v2 seeding with seed cleanup of runtime design artifacts (deterministic; has tests).
|
|
6
|
+
- `scripts/resolve_wiring.ts` — three-tier wiring-surface derivation into `state.config.wiring_files` (single source of truth) **and** its compact rendering into `state.config.wiring_compact` (a cache of the same rendering; deterministic; has tests).
|
|
7
|
+
- `scripts/git_baseline.ts` — I3 campaign-start baseline: gitignores `.hometrans/` + `.homegraph/` (plus an in-repo custom `--design-dir`), and before the first wave commits an unborn-HEAD / dirty tree as `pre-campaign baseline` so W0 has a `WAVE_BASE` and a clean tree; no-op once a wave is assigned (deterministic; has tests).
|
|
8
|
+
- `scripts/stage_design_inputs.ts` — W0 and the deps release sweep: stages the semantic design docs (`project_design.md`, `database_design.md` / `preferences_design.md` when present, and per-module `module_design.md`) from `<HMOS>/.hometrans` into a worktree's `.hometrans`, so the coder's design step resolves them from the worktree; skips the runtime subtrees (`spec_design`, `dispatch`, `spec_pipeline_archive`, `spec_group_*`, `wave_*`) (deterministic; has tests).
|
|
9
|
+
- `scripts/ensure_wt_index.ts` — the worktree's own HomeGraph index, built at worktree creation (W0 for `ready` members, the deps release sweep for held ones; a resumable kept worktree or a hop-b reset is refreshed with `--sync`): `init` when none is local (a worktree inherits no `.homegraph/`; the main index is never borrowed — it answers from another branch, silently for the CLI), `index` (full rebuild) when the local index is not usable — empty/partial, or a corrupt db that makes `homegraph status --json` itself fail (`homegraph init` does nothing when the directory already holds an index db, so a leftover index needs `index`), `none` when usable, `sync` unconditionally with `--sync` (the engine's `pendingChanges` only counts uncommitted edits, so a commit- or reset-driven refresh must not be gated on it). Usable = local ∧ `lastIndexed` set ∧ `fileCount > 0` ∧ the engine finalized the last build (`index.state` `complete`/`partial`; `indexing` is the engine's "killed mid-index" marker and `failed` reported failure, so both are rebuilt; a missing state is a pre-marker engine and falls back to the content check). After EVERY failed attempt the index is re-read: a build that exits non-zero but leaves a complete index is accepted (and stops the retries); a failed refresh that leaves the previous usable index returns exit 0 with `reason: "sync_incomplete"` (the snapshot is stale — record it); otherwise only this worktree's own `.homegraph/` is removed - never `homegraph uninit` (which resolves upward and would delete an ancestor workspace index), never a symlink/junction (dangling included), never a plain file, and never a directory that holds tracked files (`.homegraph/.gitignore` is legitimately tracked in some repos). A timed-out first build or rebuild is a failure (exit 1; the next run rebuilds). On Windows the engine runs behind a cmd.exe shim and `spawnSync` kills only that shim, so the writer this call started (the PID in `<worktree>/.homegraph/homegraph.lock`) is reaped with the attempt's process tree; an index it never finalized reports `index.state: "indexing"` and the next run rebuilds it. A symlinked/junctioned `.homegraph/` — dangling included — is never followed or deleted (deterministic; has tests).
|
|
10
|
+
- `scripts/plan_waves.ts` — deterministic deps-aware backfill wave slicing (bump same-wave-dep candidates when a clean candidate can backfill, else hold in-wave for runtime dispatch-hold) with a flat fallback: a pool larger than one wave whose deps forecast exceeds 2× the width-bound ideal dispatch rounds slices pure group order with `mode: "flat"` (deps stop shaping concurrency; has tests).
|
|
11
|
+
- `scripts/deps_ready.ts` — dispatch-hold verdicts for a wave's pending members: `ready`/`held` per group-level deps (cycle edges ignored + recorded) plus the `released` (no-dispatch-yet) subset; a `mode: "flat"` wave yields `ready` for every pending member; read-only over plan + state + wave plan (deterministic; has tests).
|
|
12
|
+
- `scripts/branch_landed.ts` — the read-only resume "merged" predicate: landed ⇔ a `--no-ff` merge on main's first-parent line has the branch tip as its second parent (a zero-commit branch is never landed, unlike `merge-base --is-ancestor`); takes `[--wt-gen <n>] [--branch <name>]` (the generation branch `specpipe/g<G>r<n>`; `--branch` wins) and returns the landing's B4 range `PRE..M` (has tests). The predicate itself lives in `scripts/dispatch/landing.mjs` so `dispatch.mjs group-merge` uses exactly one implementation.
|
|
13
|
+
- `scripts/resolver_prompt.ts` — the deterministic B2 hop-a conflict-resolver prompt: derives the involved groups from each landed group's `<merge>^1..<merge>` net-change range intersected with the conflicted files, and renders `references/resolver-prompt.md` with every involved group's ORIGINAL SPEC + chunk SPECs + design docs, the worktree-only rule, the compact wiring list (derived from `state.config.wiring_files`, `wiring_compact` as fallback), the HomeGraph rule (`--index-usable`, default `no`), the exact `resolver/attempt_<n>/issues.md` path, the strict-JSON return, and an empty-conflict `{resolver_needed:false}` (phantom) path. A non-dry-run render requires a claimed resolver (claim-first). Output is one strict-JSON line; `--groups` overrides derivation, `--index-usable`, `--worktree <abs>` overrides the ledger worktree (never `<hmos>`), and `--dry-run` (operator-only) prints the markdown. Read-only; no `--out`/`--intent`/`--attempt`/prompt hash (has tests).
|
|
14
|
+
- `scripts/audit_claims.ts` — actual-write audit when B1⇄B2 finish (B2 step 0), on recorded per-group coder pairs, with each group's generation read from the dispatch ledger (`--wt-gen` is the no-ledger fallback, `--branch` overrides) for the fallback range: wiring-surface violations, resolver hand-edit violations, empty diffs, same-wave cross-group overlaps (deterministic; has tests).
|
|
15
|
+
- `scripts/homecheck_scan.ts` — post-loop Homecheck scan: generates the project/rule configs for the three fixed rule sets plus the skill's `rules/migration-rules` set (`plugin:@hometrans/all`, installed by Homecheck's ext-rule loader into an OS-temp sandbox), runs the installed CLI, and writes `findings.json` with every `error` plus the custom set's `warnings[]` (fixed-set warnings are dropped — out of repair scope; a previous `findings.json` is deleted before any probe, so a killed run never leaves a stale clean result). A scan whose log does not prove the custom set and every one of its rules loaded, or that aborted checker callbacks, is recorded as `scan_error` — never as a clean pass. Reports are English by default (`--language cn` on demand) so the messages and the rule docs behind `docPath` match the English gate contract (deterministic; has tests).
|
|
16
|
+
- `scripts/dispatch.mjs` — the dispatch CLI and the **only writer** of `<HMOS>/.hometrans/dispatch/ledger.jsonl`: `init` (plan per wave; `--new-run` starts a new `runId`), `group-worktree`, `claim` / `intent` / `confirm` / `start` / `beat` / `submit` / `abandon` / `orphan` / `reject` / `retry` / `release` / `accept` / `close` / `artifact`, `group-reset` / `group-merge --landed` / `group-fail` / `queue-merge` / `dequeue-merge`, and the read/projection commands `reconcile [--check]`, `wait`, `waker`, `probe`, `status`, `progress`, `evidence` (read-only per-attempt gate; exit 0 = completed). `group-merge` is a landing gate (`landed-required` / `landed-unknown` / `landed-mismatch` / `merge-in-progress` / `group-failed`; an explicit no-op for a zero-commit queued branch; duplicate/legacy answers append nothing and a legacy row with unlanded branch commits reports `unlanded:true`). It is the CAS + lock layer (claimGen/token identity, stale events ignored), prints compact JSON, and is the only command the runbook uses for dispatch state (has tests).
|
|
17
|
+
- `scripts/dispatch/ledger.mjs` — ledger file paths, the atomic `{pid,host,boot,nonce,at}` lock (boot/nonce-aware stale-owner takeover, nonce-owned release, orphan-temp pruning), tail repair, fatal corrupt detection, append/fsync, `foldLedger` + the `dispatch/state.json` cache writer, and the `runId`/token/claimGen generators.
|
|
18
|
+
- `scripts/dispatch/fold.mjs` — the pure dispatch FSM: `createState`, `applyEvent`, `foldEvents`, `deriveTimeouts`, `isComplete`, `parseUnitId`, `DEFAULTS` (claim/no-evidence/lease/evidence TTLs, content/dispatch attempts, generations), terminal/active sets.
|
|
19
|
+
- `scripts/dispatch/plan.mjs` — `buildPlanEvent`: reads `spec_wave_plan.json` + `spec_group_plan.json` and builds the wave's `plan` event (unit universe per group).
|
|
20
|
+
- `scripts/dispatch/evidence.mjs` — per-attempt evidence: attempt-directory layout, `commit-info.md` parsing, `state_docs_used.md` verdict parsing (unrecognised verdict → `warnings: ["state-docs-invalid"]`), chunk/resolver evidence rules, quiet-worktree check (`git status --porcelain=v1 -z --untracked-files=all --no-renames`), and `promoteAttempt` (the winning attempt's artifacts — `commit-info.md`, `issues.md`, `wiring.md`, `state_docs_used.md` — copied to the chunk/resolver dir on release).
|
|
21
|
+
- `scripts/dispatch/reconcile.mjs` — the reconcile projection: derived-timeout application, `dispatchable`, `groupResidue`, `deadGroups`, verdicts, `nextDeadline`; the ledger write path stays in `dispatch.mjs`.
|
|
22
|
+
- `scripts/dispatch/state-mirror.mjs` — ledger → `spec_pipeline_state.json` mismatch projection (units, chunks, groups) for the orchestrator's one-way repair.
|
|
23
|
+
- `scripts/dispatch/wait.mjs` — snapshot/diff engine and the foreground `wait` (gitdir files, attempt artifacts, ledger, state, deadline), baseline seeding from `claim`, and the durable event file.
|
|
24
|
+
- `scripts/dispatch/waker.mjs` — the durable waker: `waker.lock` ownership, 30-second wait slices, lock renewal, relay after 120 timeouts, `waker.stop` disarm, and the event payload (`runId` checked by the parent).
|
|
25
|
+
- `scripts/dispatch/progress.mjs` — progress observation for live units (last commit / attempt-artifact / dirty-path mtimes) feeding `beat`.
|
|
26
|
+
- `scripts/dispatch/landing.mjs` — the single landing predicate (`landingInfo`): branch tip as a non-first parent of a first-parent merge on main, zero-commit branches excluded, returns `merge_commit`/`pre`/`range` or `commits_ahead_of_main`; also the lock-time `groupMergeGuard` and the all-waves `plannedChunksDone` used by `dispatch.mjs`.
|
|
27
|
+
- `scripts/lib/wiring.ts` — the compact wiring rendering shared by `resolve_wiring.ts` and `resolver_prompt.ts`: the fixed Tier-1 category rules, the discrete non-category entries, and the lock-file rule (also exported as `TIER1_BASENAMES`/`isTier1`).
|
|
28
|
+
- `scripts/dispatch/worktree.mjs` — generation-aware worktree plumbing: `WT/g<G>r<n>` / `specpipe/g<G>r<n>`, `provisionGroup` (rebuilds a stale branch at the requested base), `resetGroup` (reuse), `cleanupGenerations`, and `git`/`gitRaw`.
|
|
29
|
+
- `scripts/dispatch/timeouts.mjs` — `nextDeadline` over claimed/dispatched/live/orphaned/submitted and `buildDerived` for the next timeout projection.
|
|
30
|
+
- `scripts/lib/io.mjs` — shared plumbing: atomic JSON/file writes (temp + fsync + rename), BOM-tolerant JSON reads, `ensureDir`, and junction/case-safe `isMain`.
|
|
31
|
+
- `scripts/atomic_write.ts` — crash-safe file replacement (temp + fsync + rename, optional `.bak`) shared by the `.ts` scripts above.
|
|
32
|
+
- `scripts/test_plan_groups.ts`, `scripts/test_resolve_wiring.ts`, `scripts/test_wiring.ts`, `scripts/test_resolver_prompt.ts`, `scripts/test_git_baseline.ts`, `scripts/test_stage_design_inputs.ts`, `scripts/test_ensure_wt_index.ts`, `scripts/test_branch_landed.ts`, `scripts/test_plan_waves.ts`, `scripts/test_deps_ready.ts`, `scripts/test_audit_claims.ts`, `scripts/test_atomic_write.ts`, `scripts/test_homecheck_scan.ts` — unit tests (run with `node --test <file>`).
|
|
33
|
+
- `scripts/test_dispatch_commands.mjs`, `scripts/test_dispatch_e2e.mjs`, `scripts/test_dispatch_evidence.mjs`, `scripts/test_dispatch_fold.mjs`, `scripts/test_dispatch_landing.mjs`, `scripts/test_dispatch_ledger.mjs`, `scripts/test_dispatch_plan.mjs`, `scripts/test_dispatch_progress.mjs`, `scripts/test_dispatch_reconcile.mjs`, `scripts/test_dispatch_wait.mjs`, `scripts/test_dispatch_waker.mjs`, `scripts/test_dispatch_worktree.mjs` — the dispatch ledger's unit and end-to-end tests: lock/CAS, fold, plan, evidence, the group-merge landing gate, reconcile, wait/waker, progress, worktree generations, and the mini-wave harness (run with `node --test <file>`).
|
|
34
|
+
- `references/specs.example.json` — example of the specs.json input format (the format is owned by the producing skill, a2h-spec-generate's publish-specs).
|
|
35
|
+
- `references/initialization.md` — I1–I4 verbatim (steps 1–12): input validation, the `plan_groups.ts` + `resolve_wiring.ts` precompute, environment prerequisites, one-time setup (git baseline, docs baseline), announcement.
|
|
36
|
+
- `references/coding-loop.md` — B1 verbatim: chunk pointers, the dispatch ledger protocol (`claim/intent/confirm/start/beat/submit/release/...`), the spec §11 event loop, the turn-end guard with `reconcile`/`wait`/`waker`, and the chunk dispatch contract with the so-id resume rule.
|
|
37
|
+
- `references/merge-queue.md` — B2 verbatim: the step-0 actual-write audit, generation-branch landing (`branch_landed --wt-gen`, `group-merge --landed` after the landing commit), the claim-first resolver recovery ladder (`resolver_prompt.ts`), and the wave-end wiring application.
|
|
38
|
+
- `references/resolver-prompt.md` — the conflict-resolver prompt template rendered by `scripts/resolver_prompt.ts`; placeholders are `{{G}}`, `{{UNIT_ID}}`, `{{WORKTREE}}`, `{{HMOS}}`, `{{CONFLICTS}}`, `{{GROUPS}}`, `{{WIRING}}`, `{{HOMEGRAPH_RULE}}`, `{{ISSUES_PATH}}`, `{{BASE_HEAD}}` (the renderer fails closed on any leftover).
|
|
39
|
+
- `references/state-and-resume.md` — mid-flight detection (resume into an interrupted wave), `runId` + reconcile, one-way state repair, generation-aware `WT/g<G>r<n>` paths, and the state file contract (schema, sibling-file ownership, atomic writes, `.bak` restore).
|
|
40
|
+
- `references/execution-model.md` — the dispatch ledger contract: files, events, identity/CAS, the state machine, timeouts/`runId`, commands, reconcile output, `wait`/waker discipline, ledger integrity.
|
|
41
|
+
- `references/static-defect-gate.md` — the post-loop Homecheck check before the smoke gate: fixed plus migration rule sets, scan/fix rounds, error + custom-warning repair, the closing verification scan, the per-campaign `runId`, build-before-smoke rule, summary schema, and resume behavior.
|
|
42
|
+
- `references/legacy-cleanup.md` — the one-time runtime cleanup of retired `.hometrans` dispatch files on resume (exact filenames; runtime artifacts only).
|
|
43
|
+
- `references/final-report-template.md` — the Finalization summary report template (every section mandatory).
|
|
44
|
+
- `references/scripts.md` — this file.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specs": [
|
|
3
|
+
{
|
|
4
|
+
"so-id": 1,
|
|
5
|
+
"path": "D:/specs/3/Launch App-Splash Screen-Auto-enter Onboarding or Main Screen-SPEC.md",
|
|
6
|
+
"ui_sequence": "Launch App - Splash Screen - Auto-enter Onboarding or Main Screen"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"so-id": 2,
|
|
10
|
+
"path": "D:/specs/9/Main Screen-Bottom Navigation Bar-Tap a Navigation Item to Switch Pages-SPEC.md",
|
|
11
|
+
"ui_sequence": "Main Screen - Bottom Navigation Bar - Tap a Navigation Item to Switch Pages"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"so-id": 3,
|
|
15
|
+
"path": "D:/specs/9/Main Screen-Swipe the Main Content Left or Right to Switch Pages-SPEC.md",
|
|
16
|
+
"ui_sequence": "Main Screen - Swipe the Main Content Left or Right to Switch Pages"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|