@buaa_smat/hometrans 26.0.0-devecocli.4 → 26.0.0-devecocli.5
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/agents/build-fixer.md +1 -2
- package/agents/code-reviewer.md +30 -127
- package/agents/model-render-worker.md +9 -5
- package/devecocli-plugin/common.ts +323 -323
- package/devecocli-plugin/install.ts +10 -10
- package/devecocli-plugin/uninstall.ts +5 -5
- package/devecocli-plugin/update.ts +8 -8
- package/index.js +28 -28
- package/package.json +9 -5
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +1 -1
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +1 -1
- package/plugin.jsonc +1 -1
- package/skills/a2h-app-migrate/SKILL.md +17 -11
- package/skills/a2h-app-migrate/references/stage-map.md +22 -7
- package/skills/a2h-app-migrate/references/workflow.yaml +279 -210
- package/skills/a2h-app-migrate/scripts/android_index.mjs +34 -16
- package/skills/a2h-app-migrate/scripts/check_arch_done.mjs +12 -12
- package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +12 -12
- package/skills/a2h-app-migrate/scripts/check_signing.mjs +16 -16
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +16 -16
- package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +141 -62
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +12 -12
- package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +26 -26
- package/skills/a2h-app-migrate/scripts/cli_values.mjs +7 -7
- package/skills/a2h-app-migrate/scripts/ensure_utg_snapshot.mjs +144 -0
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +517 -365
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +111 -105
- package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +6 -6
- package/skills/a2h-app-migrate/scripts/json_io.mjs +1 -1
- package/skills/a2h-app-migrate/scripts/ledger.mjs +15 -15
- package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +99 -99
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +25 -25
- package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +9 -9
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +33 -33
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +13 -11
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +128 -80
- package/skills/a2h-app-migrate/scripts/write_resume_summary.mjs +349 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +54 -3
- package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +16 -10
- 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 +25 -16
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +183 -69
- package/skills/a2h-app-migrate/test/test_finalize.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +3 -3
- package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_image_probe.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_interaction.mjs +4 -4
- package/skills/a2h-app-migrate/test/test_json_io.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +6 -4
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +6 -6
- package/skills/a2h-app-migrate/test/test_resume_summary.mjs +196 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +31 -31
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +14 -5
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +14 -14
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +13 -12
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +169 -6
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +5 -5
- package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +4 -4
- package/skills/a2h-app-migrate/test/test_user_facing_progress.mjs +43 -0
- package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +4 -2
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +11 -1
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +2 -2
- package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +87 -0
- package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +21 -21
- package/skills/a2h-arch-generate/scripts/create_project.mjs +23 -23
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +14 -17
- package/skills/a2h-arch-generate/scripts/generate_state.mjs +7 -7
- package/skills/a2h-arch-generate/scripts/inspect_android_project.mjs +10 -1
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +7 -9
- package/skills/a2h-arch-generate/scripts/lib/contract_terms.mjs +40 -0
- package/skills/a2h-arch-generate/scripts/lib/py_compat.mjs +1 -1
- package/skills/a2h-arch-generate/scripts/module_create/create.mjs +17 -17
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +53 -50
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/pages/Index.ets +2 -2
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/ets/components/MainPage.ets +2 -2
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/pages/Index.ets +2 -2
- package/skills/a2h-arch-generate/scripts/scaffold_project.mjs +42 -42
- package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +47 -47
- package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +232 -94
- package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +19 -19
- package/skills/a2h-arch-generate/scripts/tests/test_module_templates.mjs +70 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +65 -43
- package/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +62 -17
- package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +5 -4
- package/skills/a2h-arkts-logic-coder/SKILL.md +59 -9
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -0
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +90 -17
- package/skills/{a2h-spec-design/SKILL.md → a2h-arkts-logic-coder/references/spec-design.md} +48 -77
- package/skills/a2h-arkts-logic-coder/scripts/check_mvvm.ts +1 -1
- package/skills/a2h-arkts-logic-coder/scripts/check_units.ts +448 -0
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/inspect_spec_design_inputs.mjs +18 -12
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/lib/py_compat.mjs +1 -1
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/move_spec_technical_reference.mjs +10 -7
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/resolve_module_design.mjs +13 -7
- package/skills/{a2h-spec-design/scripts → a2h-arkts-logic-coder/scripts/design}/validate_spec_design_output.mjs +34 -21
- package/skills/a2h-arkts-logic-coder/scripts/state_doc.mjs +583 -0
- package/skills/a2h-arkts-logic-coder/scripts/stop_check_hook.ts +66 -323
- package/skills/a2h-arkts-logic-coder/scripts/test_check_scripts.ts +66 -108
- package/skills/a2h-arkts-logic-coder/scripts/test_check_units.ts +149 -0
- package/skills/a2h-arkts-logic-coder/scripts/test_worktree_compat.ts +5 -18
- package/skills/{a2h-spec-design → a2h-arkts-logic-coder}/test/test_spec_design_scripts.mjs +177 -11
- package/skills/a2h-arkts-logic-coder/test/test_state_doc.mjs +352 -0
- package/skills/a2h-batch-ui-align/SKILL.md +39 -39
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +31 -0
- package/skills/a2h-batch-ui-align/references/cards/build.md +13 -0
- package/skills/a2h-batch-ui-align/references/cards/canvas.md +17 -0
- package/skills/a2h-batch-ui-align/references/cards/dynamics.md +27 -0
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +80 -0
- package/skills/a2h-batch-ui-align/references/cards/interaction.md +22 -0
- package/skills/a2h-batch-ui-align/references/cards/resources.md +86 -0
- package/skills/a2h-batch-ui-align/references/cards/state-v1.md +29 -0
- package/skills/a2h-batch-ui-align/references/cards/state.md +14 -0
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +38 -0
- package/skills/a2h-batch-ui-align/references/cards/window.md +29 -0
- package/skills/a2h-batch-ui-align/references/checker-rules.md +660 -0
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +110 -265
- package/skills/a2h-batch-ui-align/references/host-dispatch.md +34 -0
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +16 -4
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +3 -1
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +32 -1
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +28 -0
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +220 -0
- package/skills/a2h-batch-ui-align/references/step3-capture.md +14 -12
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +16 -10
- package/skills/a2h-batch-ui-align/references/step5-convert.md +26 -21
- package/skills/a2h-batch-ui-align/scripts/agent_cli.mjs +44 -44
- package/skills/a2h-batch-ui-align/scripts/android_parse_fast.ts +230 -230
- package/skills/a2h-batch-ui-align/scripts/arkts_static_check.ts +42 -3854
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +39 -31
- package/skills/a2h-batch-ui-align/scripts/detach.mjs +1 -1
- package/skills/a2h-batch-ui-align/scripts/detect_paradigm.mjs +245 -0
- package/skills/a2h-batch-ui-align/scripts/evidence_gate.mjs +229 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +194 -51
- package/skills/a2h-batch-ui-align/scripts/gen_rule_docs.mjs +100 -0
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +21 -21
- package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +1 -1
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +244 -35
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +432 -28
- package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +8 -8
- package/skills/a2h-batch-ui-align/scripts/host_env.mjs +1 -1
- package/skills/a2h-batch-ui-align/scripts/image_probe.mjs +228 -0
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +443 -266
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +65 -32
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +241 -57
- package/skills/a2h-batch-ui-align/scripts/state_doc.mjs +410 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +80 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/cli.ts +134 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/findings.ts +21 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/i18n.ts +18 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/meta.ts +34 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/parse.ts +668 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/core/scan.ts +392 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +169 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/package.json +3 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +103 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/a11y.ts +629 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/android_immersive.ts +125 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +67 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/block_comment_break.ts +64 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/blur_mirrored.ts +134 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_call_sites.ts +242 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/builder_invokes_callback.ts +71 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/canvas.ts +255 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/color_string.ts +109 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/column_shrink.ts +154 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/constant_coordinate.ts +39 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/container_align.ts +140 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_root_builtin.ts +69 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/entry_route.ts +114 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/fixed_size_safe_area.ts +103 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/format_string.ts +157 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/framework_picker.ts +115 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +551 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_content.ts +138 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +310 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/offset_in_scroll.ts +163 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/orphan_component.ts +119 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/page_reachability.ts +94 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/path_commands_vp.ts +50 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/percent_height_in_scroll.ts +80 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/popup_menu.ts +64 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/r_template_string.ts +37 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/request_permission.ts +98 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/resource_as_string.ts +68 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/root_weight.ts +97 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/safe_area_clipping.ts +168 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/scroll_align.ts +75 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sdk_api.ts +195 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/shared_chrome.ts +73 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_blur.ts +95 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/shell_content.ts +198 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/stack_occluding.ts +118 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/state_decorators.ts +73 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/state_name_shadows.ts +93 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/string_quote_leak.ts +73 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/surface_stroke.ts +50 -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/track_getter.ts +132 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/wide_constant_width.ts +53 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_mode.ts +67 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +153 -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 +59 -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 +3 -3
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +63 -1
- 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_rule_smoke.test.mjs +203 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +1 -1
- 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_theme.test.mjs +86 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +1 -1
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +113 -0
- package/skills/a2h-batch-ui-align/scripts/tests/detect_paradigm.test.mjs +260 -0
- package/skills/a2h-batch-ui-align/scripts/tests/evidence_gate.test.mjs +420 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +212 -34
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +124 -2
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +155 -2
- package/skills/a2h-batch-ui-align/scripts/tests/image_probe.test.mjs +131 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +156 -2
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +63 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +131 -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/text_color_diff.test.mjs +34 -3
- package/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +65 -65
- package/skills/a2h-coldstart-smoke-gate/SKILL.md +8 -6
- package/skills/a2h-dashboard-render/SKILL.md +15 -7
- package/skills/a2h-dashboard-render/references/artifact-contract.jsonc +5 -35
- package/skills/a2h-dashboard-render/references/artifact-registry-spec.md +4 -4
- package/skills/a2h-dashboard-render/references/dashboard-guide.md +91 -0
- package/skills/a2h-dashboard-render/scripts/check-registry.mjs +17 -17
- package/skills/a2h-dashboard-render/scripts/dashboard.css +3546 -0
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +1012 -938
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +85 -47
- package/skills/a2h-dashboard-render/scripts/page_capture.mjs +8 -8
- package/skills/a2h-dashboard-render/scripts/usage_readers.mjs +67 -37
- package/skills/a2h-dashboard-render/scripts/usage_worker.mjs +4 -4
- package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +17 -19
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +13 -13
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +28 -92
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +30 -1
- package/skills/a2h-dashboard-render/test/test_dashboard_i18n.mjs +203 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +219 -36
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +81 -14
- package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +1 -1
- package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +109 -1
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +92 -24
- package/skills/a2h-fix-build-errors/SKILL.md +1 -2
- package/skills/a2h-resource-convert/SKILL.md +1 -3
- package/skills/a2h-resource-convert/references/step7-report-template.md +2 -2
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +320 -317
- package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +170 -170
- package/skills/a2h-resource-convert/scripts/app_identity.ts +162 -162
- package/skills/a2h-resource-convert/scripts/code_vector_icons.ts +95 -95
- package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +132 -132
- package/skills/a2h-resource-convert/scripts/extract_project_resources.ts +220 -220
- package/skills/a2h-resource-convert/scripts/svg_fidelity_check.ts +74 -74
- package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +4 -4
- package/skills/a2h-resource-convert/scripts/tests/docs_only_i18n.test.mjs +44 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +121 -70
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +254 -45
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +333 -62
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +5 -2
- package/skills/a2h-spec-design-pipeline/references/initialization.md +23 -9
- package/skills/a2h-spec-design-pipeline/references/legacy-cleanup.md +18 -0
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +151 -9
- package/skills/a2h-spec-design-pipeline/references/resolver-prompt.md +61 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +39 -17
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +267 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +169 -8
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +228 -0
- 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/audit_claims.ts +33 -5
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +41 -47
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/evidence.mjs +128 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/fold.mjs +933 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/landing.mjs +74 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/ledger.mjs +234 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/plan.mjs +33 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/progress.mjs +31 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/reconcile.mjs +94 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/state-mirror.mjs +55 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/timeouts.mjs +34 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +92 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/waker.mjs +60 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/worktree.mjs +89 -0
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +674 -0
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +267 -33
- package/skills/a2h-spec-design-pipeline/scripts/git_baseline.ts +30 -10
- package/skills/a2h-spec-design-pipeline/scripts/homecheck_scan.ts +815 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/io.mjs +33 -0
- 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 +104 -17
- 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/stage_design_inputs.ts +79 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_atomic_write.ts +4 -4
- package/skills/a2h-spec-design-pipeline/scripts/test_audit_claims.ts +121 -38
- package/skills/a2h-spec-design-pipeline/scripts/test_branch_landed.ts +58 -11
- package/skills/a2h-spec-design-pipeline/scripts/test_deps_ready.ts +31 -31
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +574 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_e2e.mjs +344 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_evidence.mjs +264 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_fold.mjs +1048 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_landing.mjs +394 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_ledger.mjs +178 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_plan.mjs +60 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_progress.mjs +81 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_reconcile.mjs +91 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +74 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_waker.mjs +95 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_worktree.mjs +81 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +183 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_git_baseline.ts +29 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_homecheck_scan.ts +302 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +157 -30
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_waves.ts +2 -2
- 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_stage_design_inputs.ts +72 -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 +107 -28
- package/skills/a2h-spec-generate/references/batch-mode.md +82 -18
- package/skills/a2h-spec-generate/references/dispatch-watchdog.md +150 -0
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +90 -21
- package/skills/a2h-spec-generate/references/recall-guide.md +1 -0
- package/skills/a2h-spec-generate/references/requirement-scope.md +1 -1
- package/skills/a2h-spec-generate/references/review-checklist.md +1 -0
- package/skills/a2h-spec-generate/references/specs.schema.json +6 -0
- package/skills/a2h-spec-generate/references/synthesis-rules.md +4 -2
- package/skills/a2h-spec-generate/references/worker-rules.md +5 -4
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +304 -116
- package/skills/a2h-spec-generate/scripts/check_spec.ts +217 -116
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +221 -11
- package/skills/a2h-spec-generate/scripts/dispatch-watch.mjs +1168 -0
- package/skills/a2h-spec-generate/scripts/ensure-index.mjs +74 -14
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +3 -2
- package/skills/a2h-spec-generate/scripts/parse_requirements.ts +65 -65
- package/skills/a2h-spec-generate/scripts/prepare-facts.mjs +8 -2
- package/skills/a2h-spec-generate/scripts/publication-verdict.mjs +8 -2
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +78 -4
- package/skills/a2h-spec-generate/scripts/regroup-by-page.mjs +669 -0
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +23 -37
- package/skills/a2h-spec-generate/scripts/report.mjs +7 -3
- package/skills/a2h-spec-generate/scripts/reqgen/assets/dashboard.html +26 -26
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-api.js +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-code-view.js +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-format.js +4 -4
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-handoff.js +6 -6
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-tree.js +3 -3
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.html +23 -23
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.js +16 -16
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +4 -9
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +30 -42
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-output.ts +7 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/behavior-seed.ts +544 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/library-evidence.ts +544 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +177 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +424 -29
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +133 -7
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +210 -173
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/zip.ts +99 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +8 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/schema.ts +5 -1
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +9 -77
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +4 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +43 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +366 -5
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/query.ts +102 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +48 -88
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +2 -11
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +10 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-api.ts +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-code-view.ts +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-format.ts +4 -4
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-handoff.ts +6 -6
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-tree.ts +3 -3
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz.ts +16 -16
- 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-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 +113 -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 +58 -8
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +542 -8
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-library-evidence.test.ts +239 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +152 -4
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +430 -8
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +68 -8
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +19 -4
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +3 -1
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +2 -2
- package/skills/a2h-spec-generate/scripts/reqgen/test/zip.test.ts +61 -0
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +288 -41
- package/skills/a2h-spec-generate/test/check-spec.test.ts +213 -18
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +240 -1
- package/skills/a2h-spec-generate/test/dispatch-watch.test.mjs +606 -0
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +186 -1
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +14 -4
- package/skills/a2h-spec-generate/test/prepare-facts.test.mjs +41 -0
- package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +25 -0
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +13 -0
- package/skills/a2h-spec-generate/test/regroup-by-page.test.mjs +354 -0
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +4 -1
- package/skills/a2h-spec-generate/test/report.test.mjs +47 -0
- package/skills/a2h-utg-explorer/SKILL.md +1 -1
- package/skills/a2h-utg-explorer/assets/final_viewer.html +21 -21
- package/skills/a2h-utg-explorer/references/architecture.md +13 -4
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +193 -24
- package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +21 -3
- package/skills/a2h-utg-explorer/scripts/device_health.mjs +91 -6
- package/skills/a2h-utg-explorer/scripts/final_utg.mjs +20 -2
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +67 -9
- package/skills/a2h-utg-explorer/scripts/hint_source.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/panel_routes.mjs +229 -0
- package/skills/a2h-utg-explorer/scripts/plan.mjs +45 -2
- package/skills/a2h-utg-explorer/scripts/recover.mjs +7 -1
- package/skills/a2h-utg-explorer/scripts/recover_b.mjs +10 -2
- package/skills/a2h-utg-explorer/scripts/report.mjs +38 -18
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +9 -2
- package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +244 -0
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +60 -1
- package/skills/a2h-utg-explorer/scripts/tests/content_wait.test.mjs +207 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +11 -3
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +73 -1
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +4 -3
- 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 +3 -2
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +87 -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 +330 -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/overflow_prefix.test.mjs +126 -3
- 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 +38 -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/run_cycle.test.mjs +3 -2
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +142 -0
- package/skills/a2h-utg-explorer/scripts/tests/tar_fixture.mjs +12 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +281 -28
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +224 -12
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +521 -46
- package/skills/a2h-utg-static/SKILL.md +8 -1
- package/skills/a2h-utg-static/references/view-interactions.md +1 -1
- package/skills/a2h-utg-static/scripts/assemble.mjs +35 -5
- package/skills/a2h-utg-static/scripts/click_paths.mjs +34 -19
- package/skills/a2h-utg-static/scripts/compose_body_text.mjs +23 -5
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +33 -5
- package/skills/a2h-utg-static/scripts/compose_titles.mjs +10 -1
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +1 -0
- package/skills/a2h-utg-static/scripts/label_resolve.mjs +51 -2
- package/skills/a2h-utg-static/scripts/manifest.mjs +91 -10
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +67 -3
- package/skills/a2h-utg-static/scripts/route_interceptor.mjs +374 -0
- package/skills/a2h-utg-static/scripts/static_prior.mjs +65 -13
- package/skills/a2h-utg-static/scripts/tests/test_activity_alias_launcher.mjs +45 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +108 -0
- package/skills/a2h-utg-static/scripts/tests/test_fresh_branch_guard.mjs +49 -0
- package/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +17 -0
- package/skills/a2h-utg-static/scripts/tests/test_login_interceptor.mjs +328 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_namespace.mjs +50 -0
- package/skills/a2h-utg-static/scripts/tests/test_nl_hints_off_path.mjs +67 -0
- package/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +3 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_data_table.mjs +340 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_relative_url.mjs +125 -0
- package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +240 -8
- package/skills/a2h-utg-static/scripts/utg_html.mjs +51 -51
- package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +100 -100
- package/skills/a2h-arkts-logic-coder/scripts/check_module_scope.ts +0 -224
- package/skills/a2h-batch-ui-align/flowchart.html +0 -271
- package/skills/a2h-batch-ui-align/references/mvvm/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -648
- package/skills/a2h-batch-ui-align/references/mvvm/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +0 -2089
- package/skills/a2h-batch-ui-align/references/mvvm/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +0 -1033
- package/skills/a2h-batch-ui-align/references/mvvm/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -1183
- package/skills/a2h-batch-ui-align/references/mvvm/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +0 -576
- package/skills/a2h-batch-ui-align/references/mvvm/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +0 -297
- package/skills/a2h-batch-ui-align/references/mvvm/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +0 -395
- package/skills/a2h-batch-ui-align/references/mvvm/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -903
- package/skills/a2h-batch-ui-align/references/mvvm/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +0 -106
- package/skills/a2h-batch-ui-align/references/mvvm/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -1178
- package/skills/a2h-batch-ui-align/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md +0 -911
- package/skills/a2h-batch-ui-align/references/mvvm/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -355
- package/skills/a2h-batch-ui-align/references/mvvm//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +0 -11
- package/skills/a2h-batch-ui-align/references/mvvm-v2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +0 -206
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +0 -373
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +0 -158
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +0 -750
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +0 -1704
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +0 -1012
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +0 -164
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +0 -840
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -856
- package/skills/a2h-batch-ui-align/references/mvvm-v2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +0 -83
- package/skills/a2h-batch-ui-align/references/mvvm-v2/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -294
- package/skills/a2h-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +0 -1407
- package/skills/a2h-batch-ui-align/references/mvvm-v2/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -1220
- package/skills/a2h-batch-ui-align/references/mvvm-v2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +0 -47
- package/skills/a2h-batch-ui-align/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +0 -133
- package/skills/a2h-batch-ui-align/references/mvvm-v2//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +0 -840
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +0 -32
- package/skills/a2h-dashboard-render/references//347/234/213/346/235/277/350/257/264/346/230/216.md +0 -83
- package/skills/a2h-spec-design-pipeline/scripts/inflight.mjs +0 -944
- package/skills/a2h-spec-design-pipeline/scripts/lib/bgcli.mjs +0 -95
- package/skills/a2h-spec-design-pipeline/scripts/reconcile.mjs +0 -218
- package/skills/a2h-spec-design-pipeline/scripts/test_bgcli.mjs +0 -64
- package/skills/a2h-spec-design-pipeline/scripts/test_inflight.mjs +0 -452
- package/skills/a2h-spec-design-pipeline/scripts/test_reconcile.mjs +0 -182
- package/skills/a2h-spec-design-pipeline/scripts/test_watchdog.mjs +0 -289
- package/skills/a2h-spec-design-pipeline/scripts/watchdog.mjs +0 -441
- /package/skills/{a2h-spec-design → a2h-arkts-logic-coder}/test/golden/inspect_happy.json +0 -0
- /package/skills/{a2h-spec-design → a2h-arkts-logic-coder}/test/golden/move_design.md +0 -0
- /package/skills/{a2h-spec-design → a2h-arkts-logic-coder}/test/golden/move_design_crlf.md +0 -0
- /package/skills/{a2h-spec-design → a2h-arkts-logic-coder}/test/golden/move_spec.md +0 -0
- /package/skills/{a2h-spec-design → a2h-arkts-logic-coder}/test/golden/resolve_cases.json +0 -0
- /package/skills/{a2h-spec-design → a2h-arkts-logic-coder}/test/golden/validate_issue_file.md +0 -0
- /package/skills/{a2h-spec-design → a2h-arkts-logic-coder}/test/golden/validate_issues.json +0 -0
package/agents/build-fixer.md
CHANGED
|
@@ -61,8 +61,7 @@ Stop at the **first** source that yields a path:
|
|
|
61
61
|
0. **`deveco_home` input**, when the caller passed it.
|
|
62
62
|
1. **Environment variables**: `DEVECO_HOME` if non-empty → that is `<deveco>`; else `DEVECO_SDK_HOME` → `<deveco>` is its **parent directory**; else (legacy) strip the trailing `/sdk/default/openharmony/ets` from `OHOS_SDK_PATH` (or `/sdk/default/hms/ets` from `HMS_SDK_PATH`) to get `<deveco>`.
|
|
63
63
|
2. **Auto-detect** (0c below).
|
|
64
|
-
3.
|
|
65
|
-
4. If all fail, **ask the user** for the DevEco Studio install path (suggest running `ht init` to persist it as an environment variable).
|
|
64
|
+
3. If all fail, **ask the user** for the DevEco Studio install path (suggest running `ht init` to persist it as an environment variable).
|
|
66
65
|
|
|
67
66
|
> Example: `DEVECO_SDK_HOME = D:/DevEco Studio/sdk` → `<deveco> = D:/DevEco Studio`.
|
|
68
67
|
|
package/agents/code-reviewer.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-reviewer
|
|
3
|
-
description: Reviews HarmonyOS code against the scenarios of a SPEC document and fixes the confirmed defects. mode=review (default, read-only) — extracts the change via git, expands it with homegraph, judges every scenario PASS / PARTIAL / FAIL / UNABLE TO VERIFY with launch-path tracing and cross-cutting checks, writes code-review-report.md. mode=fix —
|
|
3
|
+
description: Reviews HarmonyOS code against the scenarios of a SPEC document and fixes the confirmed defects. mode=review (default, read-only) — extracts the change via git, expands it with homegraph, judges every scenario PASS / PARTIAL / FAIL / UNABLE TO VERIFY with launch-path tracing and cross-cutting checks, writes code-review-report.md. mode=fix — fixes the issues a review report lists, builds once (or leaves the build to the dispatcher), writes review-fix-report.md and commits.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Code Review Agent
|
|
@@ -14,7 +14,7 @@ Read `mode` from the dispatch:
|
|
|
14
14
|
| `mode` | What you do | Writes code? |
|
|
15
15
|
|---|---|---|
|
|
16
16
|
| `review` (default when absent) | Follow **Review Mode** (Steps 1–6) | Never — strictly read-only |
|
|
17
|
-
| `fix` | Follow **Fix Mode** (Steps F1–
|
|
17
|
+
| `fix` | Follow **Fix Mode** (Steps F1–F3) | Yes — fixes, one build (unless `build: false`), one commit |
|
|
18
18
|
|
|
19
19
|
The two modes are never combined in one dispatch. Review runs may be dispatched in parallel (they are read-only); a fix run is always the only writer on its tree.
|
|
20
20
|
|
|
@@ -33,6 +33,7 @@ The two modes are never combined in one dispatch. Review runs may be dispatched
|
|
|
33
33
|
- `scenarios` (optional): The set of scenarios to verify this time, given either as an array of scenario ids or as a textual description; a subset of the scenarios declared in `test_case_path`. Absent → review all scenarios.
|
|
34
34
|
- `commit_id` (optional): One commit to review (single-spec pipeline). May be a path to a file recording it. Absent or `none` → holistic review.
|
|
35
35
|
- `commit_range` (optional): `<base>..<head>` — a group's merged net-change range (wave pipeline). The orchestrator's B2 record rule applies: every landing is a main-side merge commit (`--no-ff`), and the range is `PRE..<merge-commit>` (PRE = main's HEAD immediately before the landing). Never `WAVE_BASE..<main head after the merge>` — that tree contains all earlier groups' changes.
|
|
36
|
+
- `extra_commits` (optional): commit ids whose changes belong to this review in addition to `commit_range` — the `fix(review)` / rebuild commits made after the range was recorded (wave pipeline, review round ≥ 2). Their diffs join the change context in Step 1.
|
|
36
37
|
- `output_path`: Directory where the report is written.
|
|
37
38
|
|
|
38
39
|
## Expected Output
|
|
@@ -57,6 +58,7 @@ In `harmonyos_project_path`, resolve the change scope and extract the change:
|
|
|
57
58
|
2. **`commit_range`** `<base>..<head>` (group mode: a group's merged net change across all its coder commits) → `git diff --name-only <base>..<head>` + `git diff <base>..<head>`.
|
|
58
59
|
3. **Either value is a file path** → read it, take the commit id or range it records, then apply 1 or 2.
|
|
59
60
|
4. **Neither given** (or `none`) → skip diff extraction; review the project holistically.
|
|
61
|
+
5. **`extra_commits`** (with 1 or 2) → also `git show --stat <c>` + `git diff <c>^..<c>` for each, and add their files and symbols to the change context. Judge every scenario on the code as it is now at HEAD — a defect an extra commit fixed is no longer a defect, and a defect it introduced is one.
|
|
60
62
|
|
|
61
63
|
Then classify and analyze the change:
|
|
62
64
|
- If the affected file types are code files, e.g. ArkTS/TS/C/CPP/H/HPP, extract from the diff the **changed symbol names** (functions, methods, `struct`/`class`/component names) and the changed files, and continue with Step 2.
|
|
@@ -211,7 +213,7 @@ After the per-scenario review, check these cross-cutting concerns that affect mu
|
|
|
211
213
|
7. **API version compatibility**: Are all used APIs available in the project's target API version?
|
|
212
214
|
8. **Resource completeness**: Are all UI strings, images, and other resources referenced by scenarios present?
|
|
213
215
|
9. **Theming support (only when a scenario asserts a visual theme change)**: A scenario that requires a visible light/dark or color-scheme change needs a mechanism capable of producing it — a `dark` resource qualifier directory (`resources/dark/element/color.json`) or a runtime color-token indirection that every affected view reads from. Check whether that mechanism exists. If the affected pages hardcode literal hex colors and no `dark` qualifier set is present, recording the user's selection cannot produce the asserted visual change; report this as an architectural gap and say which of the two mechanisms is missing, rather than marking the scenario PASS because the selection persists.
|
|
214
|
-
10. **Known coding mistakes**: Check the changed code against `references/ISSUES.md` in the `a2h-arkts-logic-coder` skill.
|
|
216
|
+
10. **Known coding mistakes**: Check the changed code against `references/ISSUES.md` in the `a2h-arkts-logic-coder` skill. Code that matches an ISSUES.md pattern is a defect by default. You may clear a match only by changing the code (mode=fix), by citing evidence that this instance behaves correctly (the official documentation passage, or an on-device observation), or by citing a fact visible in the code that puts this instance outside the pattern (for example, the argument is a literal, or the member is an undecorated constant). Reasoning about what the framework will do at runtime does not clear a match, because each entry exists precisely because that reasoning was wrong before. A match you cannot clear is a code defect: mark the affected scenario PARTIAL or FAIL, never PASS or UNABLE TO VERIFY. List every match and how it was cleared under **Known Coding Mistakes** in Cross-Cutting Issues. Observed miss: a reviewer matched the `@Builder` pass-by-value entry against `this.metricCard(this.windValue(), …)`, cleared it on the premise that "the parent re-render re-runs the Builder", and the cards never refreshed after a settings or search change.
|
|
215
217
|
|
|
216
218
|
Each cross-cutting defect is reported in the report's **Cross-Cutting Issues** section (Step 6).
|
|
217
219
|
|
|
@@ -264,6 +266,7 @@ Every PASS row must cite, for each asserted observable, the file:line that produ
|
|
|
264
266
|
### API Compatibility — <...>
|
|
265
267
|
### Resource Completeness — <...>
|
|
266
268
|
### Theming Support — <...>
|
|
269
|
+
### Known Coding Mistakes — <...>
|
|
267
270
|
|
|
268
271
|
## Residual Gaps (not closable statically)
|
|
269
272
|
|
|
@@ -292,126 +295,45 @@ commit_id: <the reviewed commit id / range> (review-only — this review modifie
|
|
|
292
295
|
|
|
293
296
|
# Fix Mode
|
|
294
297
|
|
|
295
|
-
|
|
298
|
+
Fix the issues listed in a review report, then build once.
|
|
296
299
|
|
|
297
300
|
## Expected Input
|
|
298
301
|
|
|
299
302
|
- `mode`: `fix`.
|
|
300
|
-
- `review_report_path`: The review report to act on — **required**. Either a `code-review-report.md` produced by Review Mode, or (wave pipeline)
|
|
303
|
+
- `review_report_path`: The review report to act on — **required**. Either a `code-review-report.md` produced by Review Mode, or (wave pipeline) one group's `findings.md`.
|
|
304
|
+
- `carry_over_report_path`: **optional** — the previous round's `review-fix-report.md` for the same scope. Its Remaining Issues rows are fixed in this run as well.
|
|
301
305
|
- `harmonyos_project_path`: HarmonyOS project root — **required**.
|
|
302
|
-
- `android_project_path`: Android source project — **optional
|
|
306
|
+
- `android_project_path`: Android source project — **optional**.
|
|
303
307
|
- `output_path`: Directory for `review-fix-report.md` — **optional** (defaults to cwd).
|
|
308
|
+
- `build`: **optional**, default `true`. `false` → skip the build: the dispatcher builds once after several fix runs.
|
|
304
309
|
|
|
305
310
|
## Expected Output
|
|
306
311
|
|
|
307
|
-
- Fixed source files in the HarmonyOS project, committed as one `fix(review)` commit
|
|
312
|
+
- Fixed source files in the HarmonyOS project, committed as one `fix(review)` commit.
|
|
308
313
|
- `review-fix-report.md` in `output_path`.
|
|
309
314
|
- Your final message is ONLY a compact JSON summary:
|
|
310
315
|
|
|
311
316
|
```json
|
|
312
317
|
{ "ok": true, "report": "<output_path>/review-fix-report.md",
|
|
313
|
-
"issues": { "total": N, "
|
|
314
|
-
"build": "SUCCESS" | "FAILED", "commit": "<hash>" | "none" }
|
|
318
|
+
"issues": { "total": N, "fixed": A, "failed": B },
|
|
319
|
+
"build": "SUCCESS" | "FAILED" | "SKIPPED", "commit": "<hash>" | "none" }
|
|
315
320
|
```
|
|
316
321
|
|
|
317
|
-
## Principles
|
|
318
|
-
|
|
319
|
-
- **Verify before fix.** The report is an LLM's claim — possibly an earlier run of this same agent. Treat every finding as someone else's assertion and confirm it from the code before touching anything. If verification shows it does not hold, it is a false positive: record what you found instead and move on.
|
|
320
|
-
- **Logic, not UI.** You fix ViewModels, services, repositories, data entities, DB/Preferences access, permissions, resources and navigation wiring. You never author ArkUI page layouts — a missing page belongs to UI conversion (`a2h-batch-ui-align`); a placeholder written here would collide with the real page later. Record it as `UI_OUT_OF_SCOPE`.
|
|
321
|
-
- **Minimal, root-cause changes.** Fix only confirmed defects. Do not refactor, restyle, or "improve" working code. Check shared state, components and resources before changing them.
|
|
322
|
-
- **Match the project.** Follow its state-management paradigm (V1 or V2 — never mix), navigation mechanism, naming and file layout. An in-project precedent beats documentation.
|
|
323
|
-
|
|
324
|
-
---
|
|
325
|
-
|
|
326
|
-
## Step F1 — Extract and Triage the Issues
|
|
327
|
-
|
|
328
|
-
The report follows the Review Mode Step 6 structure (group mode: one Scenario Coverage table per `### Spec so-<id>` section; merged-findings: several such reports concatenated, plus an audit section). Extract one issue per:
|
|
329
|
-
|
|
330
|
-
1. **Scenario rows** with verdict **FAIL** or **PARTIAL** — scenario id (`so-N 场景X` in group mode), verdict, the *Observables checked* cell as the cited evidence, the *Key Gaps* cell as the defect.
|
|
331
|
-
2. **Launch Path** — a broken hop (`broken at hop N: control "<label>" …`).
|
|
332
|
-
3. **Cross-Cutting Issues** — every section whose status is not PASS: Permission Coverage, Navigation Completeness, Stub Traversal, Framework Precondition Pairing, Seeded Fixture Conflicts, State Management, API Compatibility, Resource Completeness, Theming Support.
|
|
333
|
-
4. **Wave audit findings** (merged-findings only):
|
|
334
|
-
- **Registry edit** — a group's coder edited a wiring-surface file (`main_pages.json`, `module.json5`, `Index.ets`, `resources/**/element/*.json`, route maps, …) directly instead of through the wave's wiring commit.
|
|
335
|
-
- **Cross-group overlap** — a file both groups of a same-wave pair wrote, merged by B2.
|
|
336
|
-
|
|
337
|
-
Ignore PASS rows, UNABLE TO VERIFY rows, and the **Residual Gaps** section — by the review's own definition those are not closable by reading or writing code.
|
|
338
|
-
|
|
339
|
-
**Triage before verifying.** Move these straight to Remaining Issues without verification effort:
|
|
340
|
-
- The gap is a runtime/device observable (rendering, animation, timing, live network or DB contents) → `SKIPPED_STATIC`.
|
|
341
|
-
- The defect is a missing ArkUI page/component body → `UI_OUT_OF_SCOPE`, naming the expected path and the scenario that needs it.
|
|
342
|
-
- The finding gives no locatable target (no file, symbol, key or table) → `SKIPPED_STATIC`.
|
|
343
|
-
|
|
344
|
-
**Fix order** for the rest: Permissions → Launch path / Navigation / Stubs / Registry edits → Resources → Framework precondition pairing / State management → Seeded fixture conflicts → API compatibility → FAIL scenarios → PARTIAL scenarios → Cross-group overlaps → Theming. Earlier categories unblock later ones.
|
|
345
|
-
|
|
346
|
-
---
|
|
347
|
-
|
|
348
|
-
## Step F2 — Verify Each Issue (batched)
|
|
349
|
-
|
|
350
|
-
**Group the issues by category and run one bulk query per category**; dispatch independent categories' queries in parallel. N issues of one category need one read, not N.
|
|
351
|
-
|
|
352
|
-
| Category | Batched verification |
|
|
353
|
-
|---|---|
|
|
354
|
-
| Permission | Read `module.json5` once; check every reported permission against `requestPermissions`. |
|
|
355
|
-
| Launch path / Navigation | Resolve the launch page once (`module.json5` `mainElement` → ability `srcEntry` → loaded page / first `main_pages.json` entry); read `main_pages.json` once; walk each cited hop and read its handler. |
|
|
356
|
-
| Stub traversal | One grep over the cited handlers for bodies that are only `hilog.*`, a TODO, or empty. |
|
|
357
|
-
| Framework precondition pairing | Read each cited file once and check both halves of every reported pair: `.onItemMove` ↔ `.editMode(true)`; `@ObjectLink` ↔ `@Observed`; V1 fields read in UI ↔ `@Track`; `@Link` ↔ parent passes `$var`; V2 `@ObservedV2` ↔ `@Trace`; persisted state ↔ read path in `aboutToAppear` / `onPageShow`. |
|
|
358
|
-
| State management | Determine the project paradigm once (grep `@ComponentV2` vs `@Component`); then read each cited component once. For re-render findings, check the `ForEach` `keyGenerator` against the fields the item renders. |
|
|
359
|
-
| Seeded fixture conflict | Read `resources/rawfile/*.json` once and grep the in-code defaults the finding names. |
|
|
360
|
-
| API compatibility | Read `compatibleSdkVersion` / `targetSdkVersion` from `build-profile.json5` once; confirm each API's availability with `devecocli docs search`. |
|
|
361
|
-
| Resource completeness | Read `resources/base/element/string.json` (and the other locale/element files the finding names) once, list `resources/base/media/` once. |
|
|
362
|
-
| Theming | Check once whether `resources/dark/` exists; grep the affected pages for literal hex colors. |
|
|
363
|
-
| Registry edit | Read the wiring file's current content: entries well-formed, no duplicates, no other group's registration lost, every referenced page/symbol exists. |
|
|
364
|
-
| Cross-group overlap | Read the merged file: no duplicated declarations, no half-merged hunks, both groups' changes present and mutually consistent. |
|
|
365
|
-
| Scenario gap (logic / data flow) | Read the cited file and its immediate collaborators and trace the flow (inherently per-issue). Use `homegraph explore <names…> -p <harmonyos_project_path>` when the index is present. |
|
|
366
|
-
|
|
367
|
-
Assign each issue one result:
|
|
368
|
-
|
|
369
|
-
| Result | Meaning | Action |
|
|
370
|
-
|---|---|---|
|
|
371
|
-
| **CONFIRMED** | The code shows the defect | Fix in F3 |
|
|
372
|
-
| **FALSE_POSITIVE** | The code does not have the defect | Skip; record what you found instead (`file:line`) |
|
|
373
|
-
| **UNCERTAIN** | Static reading cannot settle it | Skip; flag for manual review |
|
|
374
|
-
|
|
375
|
-
Rules: read the actual file — cited line numbers may be stale; "file X does not exist" → glob for it under other names; "API Y not imported" → grep the whole project; when in doubt, UNCERTAIN — skipping a real defect is cheaper than breaking working code.
|
|
376
|
-
|
|
377
322
|
---
|
|
378
323
|
|
|
379
|
-
## Step
|
|
380
|
-
|
|
381
|
-
Read every file before editing it. Track which files each issue touches (F4 needs it). Look up unfamiliar APIs with `devecocli docs search` / `devecocli docs read`, after checking the project for a precedent.
|
|
382
|
-
|
|
383
|
-
| Category | Fix |
|
|
384
|
-
|---|---|
|
|
385
|
-
| Permission | Add `{ "name": "ohos.permission.XXX" }` (plus `reason` / `usedScene` for user-grant permissions, following existing entries) to `requestPermissions`. Unfamiliar name → confirm it with `devecocli docs search` first. User-grant permissions also need `abilityAccessCtrl.createAtManager().requestPermissionsFromUser()` at the point the Android source requests them. |
|
|
386
|
-
| Launch path / Navigation | Page file exists → register it in `main_pages.json` and add the navigation call at the calling control, using the project's existing mechanism (`router.pushUrl` / `pushPath` / `Navigation` destination). Page file missing → `UI_OUT_OF_SCOPE`. |
|
|
387
|
-
| Stub traversal | Replace the inert body with the real action the scenario needs (navigation, state change, service call), taken from the Android listener when available. |
|
|
388
|
-
| Framework precondition pairing | Add the missing half; never remove the existing one. |
|
|
389
|
-
| State management | Fix within the project's paradigm — never introduce V1 decorators into a V2 component or vice versa. Stale re-renders: make the `ForEach` key include the fields the item renders. |
|
|
390
|
-
| Seeded fixture conflict | Make the scenario's stated baseline hold — fix the seed or the reset logic per the Android source. If other scenarios rely on that seed row, mark UNCERTAIN instead. |
|
|
391
|
-
| API compatibility | Replace with an API available at `compatibleSdkVersion`, confirmed via `devecocli docs`. |
|
|
392
|
-
| Resource completeness | Add missing keys to every locale `element` file that exists, taking text from Android `res/values*/strings.xml`. Missing media → record "media resource needed"; never create placeholder images. |
|
|
393
|
-
| Theming | A missing `dark` qualifier set or hardcoded page colors is a UI-architecture gap → `UI_OUT_OF_SCOPE`. Fix only the logic side (e.g. the color-mode setting not being applied via `setColorMode`). |
|
|
394
|
-
| Registry edit | Repair the wiring file to the consistent union of all groups' registrations; never drop another group's entry. |
|
|
395
|
-
| Cross-group overlap | Reconcile so both groups' scenarios hold — remove duplicates, restore lost hunks. |
|
|
396
|
-
| Scenario gap | Implement the missing logic (ViewModel / service / repository / entity / DB / Preferences), mirroring the Android implementation; update the observable state the UI already binds to rather than editing layouts. |
|
|
324
|
+
## Step F1 — Fix the Issues
|
|
397
325
|
|
|
398
|
-
|
|
326
|
+
Fix every issue the review report lists, plus the Remaining Issues rows of `carry_over_report_path` when given.
|
|
399
327
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
## Step F4 — Build Once
|
|
328
|
+
## Step F2 — Build Once
|
|
403
329
|
|
|
404
|
-
|
|
330
|
+
`build: false` → skip this step.
|
|
405
331
|
|
|
406
|
-
|
|
407
|
-
2. Success → all fixes stand. Record the produced `.hap` path(s).
|
|
408
|
-
3. Failure → attribute the remaining errors to issues by the files they land in, revert only those issues' changes (one alternative attempt per F3 allowed), and run the skill a **second and last** time. Still failing → revert every change this run made and record all issues as unfixed with the build error; the commit is `none`.
|
|
409
|
-
|
|
410
|
-
---
|
|
332
|
+
After all fixes are applied, invoke the **`a2h-fix-build-errors`** skill inline with `harmonyos_project_path` (no `--signed`), once.
|
|
411
333
|
|
|
412
|
-
## Step
|
|
334
|
+
## Step F3 — Report and Commit
|
|
413
335
|
|
|
414
|
-
Write `<output_path>/review-fix-report.md
|
|
336
|
+
Write `<output_path>/review-fix-report.md`:
|
|
415
337
|
|
|
416
338
|
```markdown
|
|
417
339
|
# Review Fix Report
|
|
@@ -419,43 +341,24 @@ Write `<output_path>/review-fix-report.md` in **exactly** this structure. The Ov
|
|
|
419
341
|
## Overview
|
|
420
342
|
|
|
421
343
|
- **Review Report**: <review_report_path>
|
|
422
|
-
- **
|
|
423
|
-
- **
|
|
424
|
-
- **Fix Date**: <date>
|
|
425
|
-
- **Total Issues in Report**: <N>
|
|
426
|
-
- **Verified (CONFIRMED)**: <X>
|
|
427
|
-
- **False Positives**: <Y>
|
|
428
|
-
- **Uncertain (skipped)**: <Z — includes SKIPPED_STATIC and UI_OUT_OF_SCOPE>
|
|
429
|
-
- **Successfully Fixed**: <A>
|
|
344
|
+
- **Total Issues**: <N>
|
|
345
|
+
- **Fixed**: <A>
|
|
430
346
|
- **Failed to Fix**: <B>
|
|
431
|
-
- **
|
|
432
|
-
- **Build**: SUCCESS / FAILED (<1 or 2> a2h-fix-build-errors runs)
|
|
347
|
+
- **Build**: SUCCESS / FAILED / SKIPPED (`build: false`)
|
|
433
348
|
- **HAP**: <path(s) of the built .hap, or "none">
|
|
434
349
|
|
|
435
|
-
## Verification Summary
|
|
436
|
-
|
|
437
|
-
`Evidence` = what the code actually showed (`file:line`). For a false positive it is what was found instead — the feedback loop for Review Mode, so make it specific. `Fix` = what changed, in one clause.
|
|
438
|
-
|
|
439
|
-
| # | Issue | Category | Verdict | Verification | Evidence | Action | Fix |
|
|
440
|
-
|---|-------|----------|---------|--------------|----------|--------|-----|
|
|
441
|
-
| 1 | so-26 场景2: delete button handler is a stub | Stub traversal | FAIL | CONFIRMED | `pages/Detail.ets:88` body only `hilog.info` | Fixed | calls `vm.deleteItem()` then `router.back()` |
|
|
442
|
-
| 2 | READ_IMAGEVIDEO not declared | Permission | — | FALSE_POSITIVE | declared at `module.json5:31` | Skipped | — |
|
|
443
|
-
| 3 | dark theme not applied | Theming | PARTIAL | UI_OUT_OF_SCOPE | no `resources/dark/`; pages hardcode hex | Deferred | — |
|
|
444
|
-
|
|
445
350
|
## Remaining Issues
|
|
446
351
|
|
|
447
|
-
| # | Issue | Reason |
|
|
448
|
-
|
|
449
|
-
| 1 | ... | Failed to fix — <detail> |
|
|
450
|
-
| 2 | ... | SKIPPED_STATIC — needs device | On-device verification |
|
|
451
|
-
| 3 | ... | UI_OUT_OF_SCOPE — expected `pages/X.ets` | UI conversion (`a2h-batch-ui-align`) |
|
|
352
|
+
| # | Issue | Reason |
|
|
353
|
+
|---|-------|--------|
|
|
354
|
+
| 1 | ... | Failed to fix — <detail> |
|
|
452
355
|
```
|
|
453
356
|
|
|
454
|
-
Then commit, when at least one issue was fixed
|
|
357
|
+
Then commit, when at least one issue was fixed:
|
|
455
358
|
|
|
456
359
|
```bash
|
|
457
360
|
git -C "<harmonyos_project_path>" add -A
|
|
458
|
-
git -C "<harmonyos_project_path>" commit -m "fix(review): address <A> code review issues"
|
|
361
|
+
git -C "<harmonyos_project_path>" commit -m "fix(review): address <A> code review issues"
|
|
459
362
|
```
|
|
460
363
|
|
|
461
|
-
Report the resulting hash in the final JSON; otherwise `"commit": "none"
|
|
364
|
+
Report the resulting hash in the final JSON; otherwise `"commit": "none"`.
|
|
@@ -7,9 +7,13 @@ description: Fused Model worker for a2h-spec-generate — executes ONE self-cont
|
|
|
7
7
|
|
|
8
8
|
You execute exactly one fused per-Area task of the `a2h-spec-generate` pipeline. In a
|
|
9
9
|
single session you first reconcile the Area (candidate grouping, discovery, identity
|
|
10
|
-
anchors — exactly the Model Area work), then author one SPEC
|
|
11
|
-
|
|
12
|
-
directory's `specs/`.
|
|
10
|
+
anchors — exactly the Model Area work), then act as the **page owner**: author one SPEC
|
|
11
|
+
per user-visible flow (data acquisition → derivation → display → persistence), read
|
|
12
|
+
straight from source, under the task directory's `specs/`. Use `owner.kind: "area"` for
|
|
13
|
+
page-level flows; write a `dataFlow` ledger with each flow's entry, sources, transforms,
|
|
14
|
+
displays and persistence, plus a `pageCoverage` ledger assigning every
|
|
15
|
+
controlGroup/discovery to a SPEC stem or an explicit exclusion. Fine-grained
|
|
16
|
+
controlGroup/discovery SPECs are optional and only for local bindings.
|
|
13
17
|
|
|
14
18
|
The caller passes one argument: the absolute path of a `task.md`. That file is the
|
|
15
19
|
complete and authoritative task specification, and it embeds the fused contract
|
|
@@ -24,8 +28,8 @@ Rules:
|
|
|
24
28
|
3. Write only your own `output.json` and the `specs/<stem>-SPEC.md` files it declares, all inside the directory that holds your `task.md`. Never create, edit, or delete any other file; never edit `task.md`, `expected.json`, or another task's output.
|
|
25
29
|
4. Copy `taskId` and `inputFingerprint` verbatim from `task.md` / `expected.json`. Every citation must be verified by reading the file with line numbers; never estimate an anchor. When evidence is insufficient, record it honestly instead of guessing, and never fabricate a citation.
|
|
26
30
|
5. **Never write identity.** No `控件:<controlRef>` line and no `controlRef` field anywhere — submit structured `identityAnchor`/`identityAnchors` only; Node derives the final stable IDs. `controlGroupKey` is a local label, not an identity.
|
|
27
|
-
6.
|
|
28
|
-
7. **Display-SPEC completeness (R6)
|
|
31
|
+
6. You are the page owner: one user-visible flow = one area-owned SPEC, and every area SPEC needs a `dataFlow` row (entry, data sources, transforms, displayed values, persistence) plus a `pageCoverage` ledger assigning every `controlGroup`/`discovery` to an existing `specStem` or an explicit exclusion reason (R4/R8). Multiple `owner.kind: "area"` SPECs are allowed, one per flow; a duplicate controlGroup/discovery binding fails R7. Fabricated citations and promoted `unknown`/unresolved fields fail the self-check.
|
|
32
|
+
7. **Display-SPEC completeness (R6) and displayed-value derivations (R6a) are required, not optional**: after reconciling, re-check from source what the Area renders/displays exactly as task.md's R6 defines — including when the Area captured no interactions at all. Every numeric/text field states its source field, window, aggregation, rounding, sign and unit conversion. Never emit a behavior without a citation (R5).
|
|
29
33
|
8. Run the self-check command `task.md` inlines — the spec skill's `check-fused-spec.mjs` (`check-fused-spec.mjs --run <run> --task <id> --reqgen-root <reqgen-root>`). It first runs `check-fusion`, which validates the fused draft and writes the validated `draft.json` beside your output (L1 mints no ids; the canonical `controlRef` is resolved at global L2 from the anchors), then validates every SPEC your `specs[]` declares. Fix every reported error and re-run it. The task is complete only when that command reports the draft and all SPECs valid.
|
|
30
34
|
9. Do not spawn subagents or nested tasks.
|
|
31
35
|
10. Do not run Gradle, Android Lint, adb, emulators, or any build tool.
|