@buaa_smat/hometrans 0.1.19 → 26.0.0-devecocli.2
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 +406 -0
- package/agents/code-reviewer.md +461 -496
- package/agents/model-render-worker.md +34 -0
- package/agents/model-worker.md +23 -0
- package/agents/specgen-worker.md +18 -0
- package/commands/hometrans.md +17 -0
- package/devecocli-plugin/common.ts +2203 -0
- package/devecocli-plugin/install.ts +61 -0
- package/devecocli-plugin/uninstall.ts +26 -0
- package/devecocli-plugin/update.ts +66 -0
- package/index.js +1418 -0
- package/package.json +81 -66
- package/platforms/atomcode/agents/build-fixer.frontmatter.md +6 -0
- package/platforms/atomcode/agents/code-reviewer.frontmatter.md +6 -0
- package/platforms/atomcode/agents/model-render-worker.frontmatter.md +6 -0
- package/platforms/atomcode/agents/model-worker.frontmatter.md +6 -0
- package/platforms/atomcode/agents/specgen-worker.frontmatter.md +6 -0
- package/platforms/deveco/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/deveco/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/deveco/agents/model-worker.frontmatter.md +5 -0
- package/platforms/deveco/agents/specgen-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/opencode/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/model-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/specgen-worker.frontmatter.md +5 -0
- package/plugin.jsonc +12 -0
- package/skills/a2h-app-migrate/SKILL.md +181 -0
- package/skills/a2h-app-migrate/references/config.example.json +27 -0
- package/skills/a2h-app-migrate/references/specs.example.json +19 -0
- package/skills/a2h-app-migrate/references/stage-map.md +33 -0
- package/skills/a2h-app-migrate/references/workflow.yaml +1600 -0
- package/skills/a2h-app-migrate/scripts/android_index.mjs +109 -0
- package/skills/a2h-app-migrate/scripts/check_arch_done.mjs +80 -0
- package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +95 -0
- package/skills/a2h-app-migrate/scripts/check_signing.mjs +152 -0
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +114 -0
- package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +277 -0
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +77 -0
- package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +147 -0
- package/skills/a2h-app-migrate/scripts/cli_values.mjs +32 -0
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +1388 -0
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +651 -0
- package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +53 -0
- package/skills/a2h-app-migrate/scripts/json_io.mjs +35 -0
- package/skills/a2h-app-migrate/scripts/ledger.mjs +104 -0
- package/skills/a2h-app-migrate/scripts/lib-yaml-lite.mjs +288 -0
- package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +713 -0
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +205 -0
- package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +121 -0
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +212 -0
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +30 -0
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +455 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +80 -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 +92 -0
- package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/skills/a2h-app-migrate/test/test_entry_guards.mjs +93 -0
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +505 -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_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 +109 -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 +83 -0
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +144 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +315 -0
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +133 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +133 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +158 -0
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +181 -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_utg_dirs.mjs +39 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +168 -0
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
- package/skills/a2h-arch-generate/SKILL.md +375 -0
- package/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-android.md +103 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-uniapp.md +106 -0
- package/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
- package/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
- package/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
- package/skills/a2h-arch-generate/references/clustering-guidance.md +33 -0
- package/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
- package/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
- package/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
- package/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
- package/skills/a2h-arch-generate/references/homegraph-workflow.md +120 -0
- package/skills/a2h-arch-generate/references/module-evidence-subagent.md +45 -0
- package/skills/a2h-arch-generate/references/reconciliation-model.md +204 -0
- package/skills/a2h-arch-generate/references/scope-policy.md +28 -0
- package/skills/a2h-arch-generate/references/semantic-review.md +65 -0
- package/skills/a2h-arch-generate/references/source-baseline.md +93 -0
- package/skills/a2h-arch-generate/references/source-ecosystems.md +54 -0
- package/skills/a2h-arch-generate/references/transformation-model.md +78 -0
- package/skills/a2h-arch-generate/scripts/check_module_staleness.mjs +284 -0
- package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +260 -0
- package/skills/a2h-arch-generate/scripts/compute_processing_order.mjs +325 -0
- package/skills/a2h-arch-generate/scripts/create_project.mjs +149 -0
- package/skills/a2h-arch-generate/scripts/dump_core_facts.mjs +151 -0
- package/skills/a2h-arch-generate/scripts/extract_core_components.mjs +167 -0
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +363 -0
- package/skills/a2h-arch-generate/scripts/generate_state.mjs +60 -0
- package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +326 -0
- package/skills/a2h-arch-generate/scripts/inspect_android_project.mjs +3739 -0
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +800 -0
- package/skills/a2h-arch-generate/scripts/inspect_project.mjs +251 -0
- package/skills/a2h-arch-generate/scripts/inspect_uniapp_project.mjs +809 -0
- package/skills/a2h-arch-generate/scripts/lib/py_compat.mjs +1454 -0
- package/skills/a2h-arch-generate/scripts/module_create/create.mjs +136 -0
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +636 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/build-profile.json5 +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/oh-package.json5 +10 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/applicationability/ApplicationAbility.ets +43 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/pages/Index.ets +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/module.json5 +26 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/color.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/string.json +16 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/background.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/foreground.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/layered_image.json +7 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/startIcon.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/profile/main_pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/mock/mock-config.json5 +2 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/Index.ets +1 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/build-profile.json5 +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/oh-package.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/ets/components/MainPage.ets +19 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/module.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/resources/base/element/string.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/Index.ets +1 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/build-profile.json5 +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/consumer-rules.txt +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/oh-package.json5 +10 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/pages/Index.ets +20 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/utils/Calc.ets +3 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/module.json5 +12 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/element/string.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/profile/main_pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
- package/skills/a2h-arch-generate/scripts/resolve_android_stores.mjs +529 -0
- package/skills/a2h-arch-generate/scripts/scaffold_project.mjs +230 -0
- 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 +1122 -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_router.mjs +138 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +829 -0
- package/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +937 -0
- package/skills/a2h-arch-generate/scripts/validate_homegraph_artifacts.mjs +542 -0
- package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +415 -0
- package/skills/a2h-arkts-logic-coder/SKILL.md +125 -0
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +6 -0
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +124 -0
- package/skills/a2h-arkts-logic-coder/scripts/check_module_scope.ts +224 -0
- package/skills/a2h-arkts-logic-coder/scripts/check_mvvm.ts +377 -0
- package/skills/a2h-arkts-logic-coder/scripts/stop_check_hook.ts +443 -0
- package/skills/a2h-arkts-logic-coder/scripts/test_check_scripts.ts +211 -0
- package/skills/a2h-arkts-logic-coder/scripts/test_worktree_compat.ts +81 -0
- package/skills/a2h-batch-ui-align/SKILL.md +309 -0
- package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +81 -0
- package/skills/a2h-batch-ui-align/flowchart.html +271 -0
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/conversion-procedure.md +523 -661
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +139 -0
- package/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +8 -8
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +3 -0
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +32 -0
- package/skills/a2h-batch-ui-align/references/step3-capture.md +211 -0
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +192 -0
- package/skills/a2h-batch-ui-align/references/step5-convert.md +202 -0
- package/skills/a2h-batch-ui-align/scripts/agent_cli.mjs +572 -0
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/scripts/android_parse_fast.ts +246 -39
- package/skills/a2h-batch-ui-align/scripts/answers_check.mjs +86 -0
- package/skills/a2h-batch-ui-align/scripts/arkts_static_check.ts +2689 -0
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +1656 -0
- package/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
- package/skills/a2h-batch-ui-align/scripts/detach.mjs +258 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1524 -0
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
- package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +166 -0
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1437 -0
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +1869 -0
- package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +696 -0
- package/skills/a2h-batch-ui-align/scripts/harmony_index.mjs +218 -0
- package/skills/a2h-batch-ui-align/scripts/host_env.mjs +208 -0
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1229 -0
- package/skills/a2h-batch-ui-align/scripts/occlusion.mjs +141 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1124 -0
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +996 -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_align_tint.test.mjs +253 -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_shell.test.mjs +72 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +353 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +345 -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/export_ui_info.test.mjs +507 -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 +189 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1451 -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/measure_pack.test.mjs +170 -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 +244 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +130 -0
- package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +49 -0
- package/skills/a2h-coldstart-smoke-gate/SKILL.md +57 -0
- package/skills/a2h-dashboard-render/SKILL.md +65 -0
- package/skills/a2h-dashboard-render/references/artifact-contract.jsonc +147 -0
- package/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
- package/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
- package/skills/a2h-dashboard-render/references//347/234/213/346/235/277/350/257/264/346/230/216.md +83 -0
- package/skills/a2h-dashboard-render/scripts/artifact_contract.mjs +138 -0
- package/skills/a2h-dashboard-render/scripts/check-registry.mjs +87 -0
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +3215 -0
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +2010 -0
- package/skills/a2h-dashboard-render/scripts/page_capture.mjs +828 -0
- package/skills/a2h-dashboard-render/scripts/usage_readers.mjs +459 -0
- package/skills/a2h-dashboard-render/scripts/usage_worker.mjs +13 -0
- 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 +170 -0
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +182 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +64 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1172 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +251 -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 +303 -0
- package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +444 -0
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/SKILL.md +305 -293
- package/skills/a2h-module-semantic-docs/SKILL.md +227 -0
- package/skills/a2h-module-semantic-docs/scripts/commit_module_state.mjs +168 -0
- package/skills/a2h-module-semantic-docs/scripts/lib/py_compat.mjs +688 -0
- package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +1021 -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-resource-convert/SKILL.md +369 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/code-vector-icon-rules.md +4 -4
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/conversion-rules.md +16 -5
- package/skills/a2h-resource-convert/references/incremental-page-migration.md +251 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/lottie-conversion-rules.md +17 -17
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/resource-mapping-rules.md +15 -4
- package/skills/a2h-resource-convert/references/step3_5-dependency-filter.md +54 -0
- package/skills/a2h-resource-convert/references/step4-qualifiers-and-values.md +142 -0
- package/skills/a2h-resource-convert/references/step4-resource-types.md +249 -0
- package/skills/a2h-resource-convert/references/step5-reference-resolution.md +154 -0
- package/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/xml-drawable-to-svg-rules.md +38 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/a2h_resource_convert.ts +456 -90
- package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +1072 -0
- package/skills/a2h-resource-convert/scripts/app_identity.ts +947 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/code_vector_icons.ts +19 -3
- package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +989 -0
- package/skills/a2h-resource-convert/scripts/extract_project_resources.ts +1464 -0
- 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-spec-design/SKILL.md +336 -0
- package/skills/a2h-spec-design/scripts/inspect_spec_design_inputs.mjs +146 -0
- package/skills/a2h-spec-design/scripts/lib/py_compat.mjs +481 -0
- package/skills/a2h-spec-design/scripts/move_spec_technical_reference.mjs +159 -0
- package/skills/a2h-spec-design/scripts/resolve_module_design.mjs +102 -0
- package/skills/a2h-spec-design/scripts/validate_spec_design_output.mjs +285 -0
- package/skills/a2h-spec-design/test/golden/inspect_happy.json +20 -0
- package/skills/a2h-spec-design/test/golden/move_design.md +18 -0
- package/skills/a2h-spec-design/test/golden/move_design_crlf.md +18 -0
- package/skills/a2h-spec-design/test/golden/move_spec.md +7 -0
- package/skills/a2h-spec-design/test/golden/resolve_cases.json +36 -0
- package/skills/a2h-spec-design/test/golden/validate_issue_file.md +12 -0
- package/skills/a2h-spec-design/test/golden/validate_issues.json +57 -0
- package/skills/a2h-spec-design/test/test_spec_design_scripts.mjs +381 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +228 -0
- package/skills/a2h-spec-design-pipeline/package.json +4 -0
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +63 -0
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +69 -0
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +24 -0
- package/skills/a2h-spec-design-pipeline/references/initialization.md +57 -0
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +21 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +27 -0
- package/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +21 -0
- package/skills/a2h-spec-design-pipeline/scripts/atomic_write.ts +42 -0
- package/skills/a2h-spec-design-pipeline/scripts/audit_claims.ts +252 -0
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +77 -0
- package/skills/a2h-spec-design-pipeline/scripts/deps_ready.ts +195 -0
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +651 -0
- package/skills/a2h-spec-design-pipeline/scripts/git_baseline.ts +124 -0
- package/skills/a2h-spec-design-pipeline/scripts/inflight.mjs +944 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/bgcli.mjs +95 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +502 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_waves.ts +475 -0
- package/skills/a2h-spec-design-pipeline/scripts/reconcile.mjs +218 -0
- package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +164 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_atomic_write.ts +44 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_audit_claims.ts +301 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_bgcli.mjs +64 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_branch_landed.ts +87 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_deps_ready.ts +265 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +675 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_git_baseline.ts +105 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_inflight.mjs +452 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +375 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_waves.ts +561 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_reconcile.mjs +182 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +138 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_watchdog.mjs +289 -0
- package/skills/a2h-spec-design-pipeline/scripts/watchdog.mjs +441 -0
- package/skills/a2h-spec-generate/SKILL.md +285 -0
- package/skills/a2h-spec-generate/package.json +9 -0
- package/skills/a2h-spec-generate/references/batch-mode.md +151 -0
- package/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +114 -0
- package/skills/a2h-spec-generate/references/input-formats.md +27 -0
- package/skills/a2h-spec-generate/references/library-evidence.md +3 -0
- package/skills/a2h-spec-generate/references/method-discipline.md +64 -0
- package/skills/a2h-spec-generate/references/optional-gates.json +45 -0
- package/skills/a2h-spec-generate/references/recall-guide.md +83 -0
- package/skills/a2h-spec-generate/references/recall-terse.md +3 -0
- package/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
- package/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
- package/skills/a2h-spec-generate/references/review-checklist.md +21 -0
- package/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
- package/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
- package/skills/a2h-spec-generate/references/spec-samples.md +65 -0
- package/skills/a2h-spec-generate/references/specs.schema.json +79 -0
- package/skills/a2h-spec-generate/references/synthesis-rules.md +143 -0
- package/skills/a2h-spec-generate/references/transfer-file.md +5 -0
- package/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
- package/skills/a2h-spec-generate/references/worker-rules.md +126 -0
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +514 -0
- package/skills/a2h-spec-generate/scripts/check_spec.ts +361 -0
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +470 -0
- package/skills/a2h-spec-generate/scripts/detect-project.mjs +271 -0
- package/skills/a2h-spec-generate/scripts/ensure-index.mjs +188 -0
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +150 -0
- package/skills/a2h-spec-generate/scripts/inspect-uniapp.mjs +733 -0
- package/skills/{hmos-spec-generate → a2h-spec-generate}/scripts/parse_requirements.ts +1 -1
- package/skills/a2h-spec-generate/scripts/prepare-facts.mjs +307 -0
- package/skills/a2h-spec-generate/scripts/publication-verdict.mjs +171 -0
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +280 -0
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +399 -0
- package/skills/a2h-spec-generate/scripts/report.mjs +132 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/dashboard.html +149 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-api.js +49 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-code-view.js +140 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-format.js +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-handoff.js +42 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-splitters.js +78 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-state.js +47 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-tree.js +194 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-virtual-list.js +118 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.css +245 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.html +99 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.js +220 -0
- package/skills/a2h-spec-generate/scripts/reqgen/package-lock.json +47 -0
- package/skills/a2h-spec-generate/scripts/reqgen/package.json +23 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/agent-render/serve.ts +95 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/callback-call-sites.ts +82 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/area-ownership.ts +496 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/callback-flow.ts +386 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/index.ts +24 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/index.ts +22 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1270 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/index.ts +10 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/projection.ts +804 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/render-projection.ts +51 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/android-interaction-registry.ts +286 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/builder.ts +453 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/compose-api-registry.ts +526 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/index.ts +15 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/connector/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/connector/utg-inbound.ts +763 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/area-graph.ts +383 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/artifact.ts +68 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/common.ts +88 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/diagnostic.ts +64 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/gap-audit.ts +113 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/index.ts +12 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/name-traceability.ts +108 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/raw-fact.ts +377 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/req-model.ts +238 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/run.ts +134 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/semantic-completeness.ts +35 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/source-facts.ts +48 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/utg.ts +133 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/core/output-guard.ts +42 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/core/stable-id.ts +118 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/cross-area-tally-cli.ts +179 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dashboard-cli.ts +188 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump/dump.ts +1184 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump-cli.ts +373 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1014 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-output.ts +32 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +142 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +312 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +310 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +685 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/graph/paths.ts +575 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/homegraph-cli.ts +50 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/android-resource-resolver.ts +391 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/androidx-preference-contracts.ts +44 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +640 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/cross-area.ts +207 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/finalizer.ts +1297 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/identity.ts +186 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/index.ts +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/planner.ts +312 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/preference-enrichment.ts +793 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/raw-facts.ts +355 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/rules.ts +271 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/scanner.ts +666 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/schema.ts +365 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/stable-key.ts +144 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +301 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/uniapp-utg-adapter.ts +543 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/xml-adapter.ts +262 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/assemble.ts +2079 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +157 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +809 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/index.ts +17 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/io.ts +165 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +806 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/query.ts +360 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/seeds.ts +218 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/spec-bindings-sidecar.ts +240 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +359 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model-cli.ts +500 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/pipeline/index.ts +7 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/pipeline/output.ts +307 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +172 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-cov/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-cov/source-cov.ts +176 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/area-graph.ts +490 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/index.ts +23 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-model.ts +957 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +248 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/semantic-area-graph.ts +1600 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/types.ts +10 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/artifact-data.ts +201 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-api.ts +74 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-code-view.ts +180 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-format.ts +18 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-handoff.ts +55 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-splitters.ts +78 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-state.ts +66 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-tree.ts +232 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-virtual-list.ts +179 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz.ts +240 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/contracts.d.ts +86 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/index.ts +3 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/server.ts +239 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/source-project.ts +316 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz-cli.ts +200 -0
- 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/fusion-area-facts.test.ts +576 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +290 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1323 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +574 -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 +831 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +548 -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 +396 -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 +298 -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/tsconfig.json +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/tsconfig.viz-client.json +12 -0
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +632 -0
- package/skills/a2h-spec-generate/test/check-spec.test.ts +200 -0
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +538 -0
- package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +45 -0
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +147 -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/publication-verdict.test.mjs +157 -0
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +282 -0
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +593 -0
- package/skills/a2h-utg-explorer/SKILL.md +120 -0
- package/skills/a2h-utg-explorer/assets/final_viewer.html +64 -0
- package/skills/a2h-utg-explorer/assets/u2.LICENSE +21 -0
- package/skills/a2h-utg-explorer/assets/u2.NOTICE +25 -0
- package/skills/a2h-utg-explorer/assets/u2.jar +0 -0
- package/skills/a2h-utg-explorer/references/architecture.md +270 -0
- package/skills/a2h-utg-explorer/references/protocol.md +9 -0
- package/skills/a2h-utg-explorer/scripts/app_settings.mjs +143 -0
- package/skills/a2h-utg-explorer/scripts/audit.mjs +167 -0
- package/skills/a2h-utg-explorer/scripts/close_phases.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +749 -0
- package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +597 -0
- package/skills/a2h-utg-explorer/scripts/device_health.mjs +227 -0
- package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +276 -0
- package/skills/a2h-utg-explorer/scripts/evidence.mjs +108 -0
- package/skills/a2h-utg-explorer/scripts/final_utg.mjs +376 -0
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/plan.mjs +258 -0
- package/skills/a2h-utg-explorer/scripts/promote_dynamic.mjs +170 -0
- package/skills/a2h-utg-explorer/scripts/recover.mjs +467 -0
- package/skills/a2h-utg-explorer/scripts/recover_b.mjs +542 -0
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +302 -0
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +203 -0
- package/skills/a2h-utg-explorer/scripts/report.mjs +143 -0
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +831 -0
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +137 -0
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.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 +223 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +88 -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 +136 -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/generalization_fixes.test.mjs +251 -0
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +42 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +162 -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 +204 -0
- package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +355 -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 +207 -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 +453 -0
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +131 -0
- package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +229 -0
- package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +321 -0
- package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -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/_device_io.mjs +244 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/_py.mjs +2097 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +1213 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/attest.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/chain.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/coverage.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/device_lock.mjs +46 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1136 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +1513 -0
- package/skills/a2h-utg-explorer/scripts/variant.mjs +75 -0
- package/skills/a2h-utg-explorer/scripts/worklist_parts.mjs +122 -0
- package/skills/a2h-utg-static/SKILL.md +361 -0
- package/skills/a2h-utg-static/config.json +19 -0
- package/skills/a2h-utg-static/references/extractors.md +217 -0
- package/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
- package/skills/a2h-utg-static/references/view-interactions.md +215 -0
- package/skills/a2h-utg-static/scripts/_graph.mjs +361 -0
- package/skills/a2h-utg-static/scripts/_py.mjs +2177 -0
- package/skills/a2h-utg-static/scripts/_spawn.mjs +45 -0
- package/skills/a2h-utg-static/scripts/activity_nav.mjs +738 -0
- package/skills/a2h-utg-static/scripts/activity_widgets.mjs +254 -0
- package/skills/a2h-utg-static/scripts/adapter_nav.mjs +229 -0
- package/skills/a2h-utg-static/scripts/androidfragment_nav.mjs +208 -0
- package/skills/a2h-utg-static/scripts/assemble.mjs +2065 -0
- package/skills/a2h-utg-static/scripts/audit.mjs +268 -0
- package/skills/a2h-utg-static/scripts/carry_answers.mjs +201 -0
- package/skills/a2h-utg-static/scripts/click_paths.mjs +594 -0
- package/skills/a2h-utg-static/scripts/compose_body_text.mjs +172 -0
- package/skills/a2h-utg-static/scripts/compose_merge.mjs +263 -0
- package/skills/a2h-utg-static/scripts/compose_nav.mjs +1216 -0
- package/skills/a2h-utg-static/scripts/compose_navbar_nav.mjs +238 -0
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +2760 -0
- package/skills/a2h-utg-static/scripts/compose_titles.mjs +365 -0
- package/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
- package/skills/a2h-utg-static/scripts/dialog_listener_nav.mjs +237 -0
- package/skills/a2h-utg-static/scripts/dialogshow_nav.mjs +308 -0
- package/skills/a2h-utg-static/scripts/fragfactory_nav.mjs +170 -0
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +1136 -0
- package/skills/a2h-utg-static/scripts/guard_subjects.mjs +162 -0
- package/skills/a2h-utg-static/scripts/hg_query.mjs +137 -0
- package/skills/a2h-utg-static/scripts/host_resolve.mjs +393 -0
- package/skills/a2h-utg-static/scripts/hybrid_bundle.mjs +165 -0
- package/skills/a2h-utg-static/scripts/hybrid_pages.mjs +713 -0
- package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +660 -0
- package/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
- package/skills/a2h-utg-static/scripts/io_utils.mjs +59 -0
- package/skills/a2h-utg-static/scripts/label_resolve.mjs +864 -0
- package/skills/a2h-utg-static/scripts/launch_extras.mjs +91 -0
- package/skills/a2h-utg-static/scripts/layout_resolve.mjs +148 -0
- package/skills/a2h-utg-static/scripts/manifest.mjs +483 -0
- package/skills/a2h-utg-static/scripts/measure/measure_corpus.mjs +297 -0
- package/skills/a2h-utg-static/scripts/measure/measure_guards.mjs +98 -0
- package/skills/a2h-utg-static/scripts/media_browse_nav.mjs +356 -0
- package/skills/a2h-utg-static/scripts/menu_nav.mjs +603 -0
- package/skills/a2h-utg-static/scripts/navactions_nav.mjs +255 -0
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +453 -0
- package/skills/a2h-utg-static/scripts/orphan_overlay_nav.mjs +89 -0
- package/skills/a2h-utg-static/scripts/phase_plan.mjs +108 -0
- package/skills/a2h-utg-static/scripts/phase_planner.mjs +119 -0
- package/skills/a2h-utg-static/scripts/plaindialog_nav.mjs +411 -0
- package/skills/a2h-utg-static/scripts/preference_nav.mjs +761 -0
- package/skills/a2h-utg-static/scripts/preference_widgets.mjs +142 -0
- package/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
- package/skills/a2h-utg-static/scripts/registry_nav.mjs +288 -0
- package/skills/a2h-utg-static/scripts/run_pipeline.mjs +870 -0
- package/skills/a2h-utg-static/scripts/scope_utils.mjs +430 -0
- package/skills/a2h-utg-static/scripts/screen_merge.mjs +287 -0
- package/skills/a2h-utg-static/scripts/screen_nav.mjs +279 -0
- package/skills/a2h-utg-static/scripts/single_host_nav.mjs +291 -0
- package/skills/a2h-utg-static/scripts/starter_nav.mjs +198 -0
- package/skills/a2h-utg-static/scripts/state_guard.mjs +579 -0
- package/skills/a2h-utg-static/scripts/static_prior.mjs +904 -0
- package/skills/a2h-utg-static/scripts/tests/_zipw.mjs +28 -0
- package/skills/a2h-utg-static/scripts/tests/probe_autoload.mjs +108 -0
- package/skills/a2h-utg-static/scripts/tests/probe_layout_fragments.mjs +90 -0
- package/skills/a2h-utg-static/scripts/tests/probe_unknown_scope.mjs +61 -0
- package/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
- package/skills/a2h-utg-static/scripts/tests/test_activity_alias_launcher.mjs +90 -0
- package/skills/a2h-utg-static/scripts/tests/test_activity_supertype_chain.mjs +106 -0
- package/skills/a2h-utg-static/scripts/tests/test_bottom_sheet_container.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_branch_guard.mjs +19 -0
- package/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
- package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +103 -0
- package/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
- package/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
- package/skills/a2h-utg-static/scripts/tests/test_commit_scope.mjs +113 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_file_private_route.mjs +117 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_nested_graph.mjs +166 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_route_holder_collision.mjs +112 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +267 -0
- package/skills/a2h-utg-static/scripts/tests/test_custom_source_root.mjs +71 -0
- package/skills/a2h-utg-static/scripts/tests/test_defensive_null_guard.mjs +77 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialog_orphan_entries.mjs +99 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialog_page_owner.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialogshow_builder_forms.mjs +96 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialogshow_java_factory.mjs +37 -0
- package/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
- package/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
- package/skills/a2h-utg-static/scripts/tests/test_edge_dedupe_by_gesture.mjs +111 -0
- package/skills/a2h-utg-static/scripts/tests/test_edge_provenance_lint.mjs +70 -0
- package/skills/a2h-utg-static/scripts/tests/test_enclosing_gesture.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_external_surface_roots.mjs +43 -0
- package/skills/a2h-utg-static/scripts/tests/test_find_package_indirect.mjs +67 -0
- package/skills/a2h-utg-static/scripts/tests/test_forwarding_wrapper.mjs +38 -0
- package/skills/a2h-utg-static/scripts/tests/test_fragment_containment.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_fragment_helper_trigger.mjs +92 -0
- package/skills/a2h-utg-static/scripts/tests/test_graph.mjs +55 -0
- package/skills/a2h-utg-static/scripts/tests/test_guard_clause.mjs +86 -0
- package/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +119 -0
- package/skills/a2h-utg-static/scripts/tests/test_host_kind_by_chain.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +293 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
- package/skills/a2h-utg-static/scripts/tests/test_interaction_sites.mjs +272 -0
- package/skills/a2h-utg-static/scripts/tests/test_item_data_instance.mjs +51 -0
- package/skills/a2h-utg-static/scripts/tests/test_kotlin_fn_spans.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
- package/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
- package/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
- package/skills/a2h-utg-static/scripts/tests/test_layout_declared_fragment.mjs +103 -0
- package/skills/a2h-utg-static/scripts/tests/test_listener_call_forms.mjs +79 -0
- package/skills/a2h-utg-static/scripts/tests/test_listener_receiver_binding.mjs +47 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_exported_default.mjs +40 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_filters_modules.mjs +84 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_srcfile.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_namespace.mjs +33 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +44 -0
- package/skills/a2h-utg-static/scripts/tests/test_multiple_entry_contracts.mjs +80 -0
- package/skills/a2h-utg-static/scripts/tests/test_nav_graph_xml.mjs +35 -0
- package/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
- package/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_node_id_collision.mjs +57 -0
- package/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
- package/skills/a2h-utg-static/scripts/tests/test_out_of_scope_and_settings.mjs +72 -0
- package/skills/a2h-utg-static/scripts/tests/test_overload_and_climb.mjs +86 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_page_source.mjs +78 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_position_zero.mjs +65 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_variant_guard.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +107 -0
- package/skills/a2h-utg-static/scripts/tests/test_plain_dialog_nodes.mjs +167 -0
- package/skills/a2h-utg-static/scripts/tests/test_plaindialog_shared_anchor.mjs +117 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_click_nav.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_host_binding.mjs +87 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_nesting.mjs +183 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
- package/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
- package/skills/a2h-utg-static/scripts/tests/test_resolver_tier_parity.mjs +126 -0
- package/skills/a2h-utg-static/scripts/tests/test_result_launcher.mjs +142 -0
- package/skills/a2h-utg-static/scripts/tests/test_review_fixes.mjs +135 -0
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +66 -0
- package/skills/a2h-utg-static/scripts/tests/test_same_name_decl_scope.mjs +236 -0
- package/skills/a2h-utg-static/scripts/tests/test_scope_utils.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
- package/skills/a2h-utg-static/scripts/tests/test_shared_overlay_split.mjs +63 -0
- package/skills/a2h-utg-static/scripts/tests/test_slug_parity.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_starter_node_id.mjs +41 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_arity.mjs +109 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_commented_candidates.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_model_gates.mjs +127 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
- package/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
- package/skills/a2h-utg-static/scripts/tests/test_template_method_layout.mjs +81 -0
- package/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_trigger_id_spelling.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_action_override.mjs +91 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_nl_hint_key.mjs +89 -0
- package/skills/a2h-utg-static/scripts/tests/test_uiless_host_fold.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +231 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_click_refs.mjs +104 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_id_label.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_interactions.mjs +346 -0
- package/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +273 -0
- package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_widget_class_scope.mjs +92 -0
- package/skills/a2h-utg-static/scripts/tests/test_window_nav_kotlin.mjs +158 -0
- package/skills/a2h-utg-static/scripts/tests/test_worklist_parts.mjs +65 -0
- package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1119 -0
- package/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
- package/skills/a2h-utg-static/scripts/utg_html.mjs +721 -0
- package/skills/a2h-utg-static/scripts/view_interactions.mjs +799 -0
- package/skills/a2h-utg-static/scripts/view_widgets.mjs +512 -0
- package/skills/a2h-utg-static/scripts/viewpage_nav.mjs +485 -0
- package/skills/a2h-utg-static/scripts/vm_nav.mjs +422 -0
- package/skills/a2h-utg-static/scripts/window_nav.mjs +240 -0
- package/skills/a2h-utg-static/scripts/worklist_parts.mjs +154 -0
- package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
- package/skills/a2h-utg-static/tools/package.json +3 -0
- package/README.md +0 -427
- package/agents/logic-coder.md +0 -224
- package/agents/logic-context-builder.md +0 -212
- package/agents/scripts/hmos-precheck/backends/arkts.mjs +0 -567
- package/agents/scripts/hmos-precheck/backends/arkts_diff.mjs +0 -159
- package/agents/scripts/hmos-precheck/backends/arkts_project_rules.mjs +0 -398
- package/agents/scripts/hmos-precheck/backends/codelinter.mjs +0 -250
- package/agents/scripts/hmos-precheck/backends/project_integrity.mjs +0 -321
- package/agents/scripts/hmos-precheck/backends/static_precheck.mjs +0 -247
- package/agents/scripts/hmos-precheck/core/config.mjs +0 -184
- package/agents/scripts/hmos-precheck/core/diagnostic_scope.mjs +0 -20
- package/agents/scripts/hmos-precheck/core/process_adapter.mjs +0 -47
- package/agents/scripts/hmos-precheck/core/project_catalog.mjs +0 -50
- package/agents/scripts/hmos-precheck/core/result_projection.mjs +0 -147
- package/agents/scripts/hmos-precheck/core/scope_plan.mjs +0 -131
- package/agents/scripts/hmos-precheck/core/sdk_context.mjs +0 -67
- package/agents/scripts/hmos-precheck/docs/architecture.md +0 -37
- package/agents/scripts/hmos-precheck/docs/performance-optimization.md +0 -28
- package/agents/scripts/hmos-precheck/docs/upstream-reference.json +0 -19
- package/agents/scripts/hmos-precheck/docs/validation.md +0 -50
- package/agents/scripts/hmos-precheck/index.mjs +0 -17
- package/agents/scripts/hmos-precheck/invocation.mjs +0 -231
- package/agents/scripts/hmos-precheck/rules/rule_case_matrix.csv +0 -32
- package/agents/scripts/hmos-precheck/rules/rule_inventory.csv +0 -64
- package/agents/scripts/hmos-precheck/rules/rule_inventory.mjs +0 -59
- package/agents/scripts/hmos-precheck/rules/rule_policy.mjs +0 -54
- package/agents/scripts/platform_query.mjs +0 -626
- package/agents/scripts/platform_query.test.mjs +0 -422
- package/agents/self-test-fixer.md +0 -298
- package/agents/self-tester.md +0 -376
- package/agents/test-case-generation-generator.md +0 -317
- package/agents/test-case-generation-validator.md +0 -231
- package/dist/cli/config-store.js +0 -390
- package/dist/cli/config.js +0 -46
- package/dist/cli/env-vars.js +0 -127
- package/dist/cli/index.js +0 -56
- package/dist/cli/init.js +0 -1194
- package/dist/cli/uninstall.js +0 -427
- package/dist/utils/regex.js +0 -8
- package/env-requirements.json +0 -178
- package/resource/choose_editor.png +0 -0
- package/resource/convert_pipeline_process.svg +0 -103
- package/resource/project_architecture.svg +0 -122
- package/resource/set_environment.png +0 -0
- package/resource/set_multimodel.png +0 -0
- package/resource/set_sdk.png +0 -0
- package/resource/title_dark.png +0 -0
- package/skills/hmos-batch-ui-align/SKILL.md +0 -413
- package/skills/hmos-batch-ui-align/scripts/arkts_static_check.ts +0 -1592
- package/skills/hmos-batch-ui-align/scripts/measure_pack.ts +0 -752
- package/skills/hmos-convert-pipeline/SKILL.md +0 -476
- package/skills/hmos-incremental-ui-align/README.md +0 -251
- package/skills/hmos-incremental-ui-align/SKILL.md +0 -375
- package/skills/hmos-incremental-ui-align/diff_analysis.md +0 -53
- package/skills/hmos-incremental-ui-align/page_align.md +0 -62
- package/skills/hmos-incremental-ui-align/references/Comparison_Template.md +0 -38
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/MVVM/346/250/241/345/274/217V1.md +0 -911
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243//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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/!!/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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/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/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +0 -47
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2//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/hmos-incremental-ui-align/references/State_Model_Template.md +0 -74
- package/skills/hmos-incremental-ui-align/references/UI_Analysis_Template.md +0 -34
- package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +0 -2533
- package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-interaction-mapping-reference.md +0 -555
- package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-layout-mapping-reference.md +0 -117
- package/skills/hmos-incremental-ui-align/scripts/app_feature_verify.ts +0 -937
- package/skills/hmos-incremental-ui-align/scripts/extract_checklist.ts +0 -343
- package/skills/hmos-incremental-ui-align/scripts/navigation-capure.md +0 -76
- package/skills/hmos-incremental-ui-align/scripts/page_capture.ts +0 -977
- package/skills/hmos-incremental-ui-align/scripts/page_capture_burst.ts +0 -188
- package/skills/hmos-integration-test/README.md +0 -300
- package/skills/hmos-integration-test/SKILL.md +0 -397
- package/skills/hmos-resources-convert/SKILL.md +0 -891
- package/skills/hmos-spec-generate/SKILL.md +0 -404
- package/skills/hmos-test-case-generation/README.md +0 -241
- package/skills/hmos-test-case-generation/SKILL.md +0 -324
- package/skills/hmos-test-case-generation/references/contract.md +0 -315
- package/skills/hmos-test-case-generation/references/review-notes-template.md +0 -84
- package/skills/hmos-test-case-generation/references/ui-elements-schema.md +0 -142
- package/skills/hmos-test-case-generation/tools/convert_to_ui_elements.ts +0 -550
- package/skills/hmos-test-case-generation/tools/validate.ts +0 -1312
- package/tools/bfs-crawl/README.md +0 -73
- package/tools/bfs-crawl/android_viewtree_bfs_crawler.ts +0 -1662
- package/tools/test-tools/autotest/config.ts +0 -175
- package/tools/test-tools/autotest/deps/autotest-agent-0.1.1.tgz +0 -0
- package/tools/test-tools/autotest/docs/README.md +0 -266
- package/tools/test-tools/autotest/docs/testcases_schema.md +0 -143
- package/tools/test-tools/autotest/engine/batch-launcher.ts +0 -327
- package/tools/test-tools/autotest/engine/report-tool.ts +0 -773
- package/tools/test-tools/autotest/engine/self-test-runner.ts +0 -961
- package/tools/test-tools/autotest/engine/testcases-tool.ts +0 -246
- package/tools/test-tools/autotest/paths.ts +0 -41
- package/tools/test-tools/autotest/resolve-metadata-tool.ts +0 -143
- package/tools/test-tools/autotest/runner/logger.ts +0 -45
- package/tools/test-tools/autotest/runner/process-utils.ts +0 -41
- package/tools/test-tools/autotest/validate.ts +0 -167
- /package/skills/{hmos-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md" → a2h-arch-generate/references/arkts-mvvm-v2.md} +0 -0
- /package/{README.en.md → skills/a2h-arch-generate/scripts/module_create/har/consumer-rules.txt} +0 -0
- /package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +0 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md" +0 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md" +0 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md" +0 -0
- /package/skills/{hmos-batch-ui-align → 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 -0
- /package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/arkts-strict-patterns.md +0 -0
- /package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/known-patterns.md +0 -0
- /package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/rdb-entity-pattern.md +0 -0
- /package/skills/{hmos-resources-convert → a2h-resource-convert}/references/dependency-analysis-rules.md +0 -0
- /package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/svg_fidelity_check.ts +0 -0
- /package/skills/{hmos-spec-generate → a2h-spec-generate}/template/REQ.txt +0 -0
- /package/skills/{hmos-spec-generate → a2h-spec-generate}/template/REQ.xlsx +0 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: a2h-spec-generate
|
|
3
|
+
description: "Generate HarmonyOS migration specifications from an Android or UniApp project. Two entries: (1) fused mode — from an existing UTG workspace (utg.json + click_paths.json), one fused per-Area pass reconciles the UTG Areas and authors the page SPEC files in the same session, then the deterministic layer finalizes the model, collects the SPECs and publishes the specs.json manifest; (2) SPEC-only mode — from existing REQ documents (one requirement file or a directory of req-N.txt page batches), dispatched per page batch via references/batch-mode.md. Use for full source-to-SPEC generation, or for converting existing REQ texts into SPECs."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Android / UniApp to HarmonyOS Spec Generation
|
|
7
|
+
|
|
8
|
+
Complete end-to-end workflow from Android or UniApp source + UTG workspace to HarmonyOS implementation specifications and a validated `specs.json` manifest. This is a **single skill**: the former req-generation stage, the former SPEC-generation stage, and the pipeline that chained them are now one router with in-skill steps — the reqgen CLI runs from this skill's own `scripts/reqgen/`, and the SPEC scripts (`collect-specs`, `publish-specs`, `check-fused-spec`, …) ship beside it under `scripts/`.
|
|
9
|
+
|
|
10
|
+
## In-skill path bindings
|
|
11
|
+
|
|
12
|
+
- `<skill-dir>`: the directory holding this `SKILL.md` (this skill's own directory, e.g. `…/skills/a2h-spec-generate`).
|
|
13
|
+
- `<reqgen-root>`: `<skill-dir>/scripts/reqgen` (the Node CLI: `package.json`, `src/`, `assets/`). It is an internal path, never a user input.
|
|
14
|
+
- Gate references, templates and the SPEC schema live under `<skill-dir>/references/`, `<skill-dir>/template/` and `<skill-dir>/scripts/`.
|
|
15
|
+
- Every step below is an **in-skill step**, not an external stage. There is no second skill to invoke by absolute path.
|
|
16
|
+
|
|
17
|
+
## Inputs
|
|
18
|
+
|
|
19
|
+
### Required — fused mode (source + UTG → SPEC)
|
|
20
|
+
|
|
21
|
+
- `<android-project-path>`: Absolute path to the Android or UniApp source project root. Keep this existing parameter name for compatibility; the CLI detects the project type from the source.
|
|
22
|
+
- `utg-workspace=<utg-workspace>`: Absolute path to an existing UTG workspace containing `utg.json` and `click_paths.json` (frozen input; read-only).
|
|
23
|
+
|
|
24
|
+
### Required — SPEC-only mode (existing REQ documents → SPEC, no UTG)
|
|
25
|
+
|
|
26
|
+
- `requirements_input=<path>`: Either one requirement file (Excel `.xlsx`/`.xlsm`/`.csv`, or text `.txt`/`.md`) or a directory of `req-<positive integer>.txt` page batches. `references/input-formats.md` defines the formats; `references/batch-mode.md` is the mode's operating procedure.
|
|
27
|
+
- Optional in this mode: `spec_output_dir=<dir>` (the SPEC root; defaults to `<requirements_input>/specs`, required for a single-file input) and `req_selection=<sel>` (one index `3`, an inclusive range `2..5`, or a union `1,3,6..8`; omitted = all).
|
|
28
|
+
|
|
29
|
+
### Optional (both modes)
|
|
30
|
+
|
|
31
|
+
- `output=<run-directory>`: Override the default `.hometrans/reqgen/` run directory. If omitted, this skill determines it automatically.
|
|
32
|
+
- `concurrency=<n>`: Max concurrent subagents for the fused per-Area fan-out (default 8).
|
|
33
|
+
- `application-module=<module>`: The application module (e.g. `:app`). A supplied value is authoritative and is forwarded verbatim to `prepare --application`. When omitted, this skill determines it itself per Step 0 — never the CLI: `--application` is required and has no default.
|
|
34
|
+
- `hmos-project=<dir>`: Absolute path to the target HarmonyOS project root. When supplied (the fused-mode orchestrator passes it), `publish-specs` declares the published SPEC root as `spec_root` in `<dir>/.hometrans/artifact-registry.jsonl` so `a2h-dashboard-render` resolves it precisely. Optional: omitted (e.g. standalone SPEC-only runs) → no registry declaration, the board falls back to its `.hometrans` scan.
|
|
35
|
+
|
|
36
|
+
REQ documents supplied **together with** a UTG workspace are not SPEC-only input: they (and/or a natural-language scope description) act as scope/history exclusion for the fused mode — read `references/requirement-scope.md` before preparing the run.
|
|
37
|
+
|
|
38
|
+
## Run directory layout
|
|
39
|
+
|
|
40
|
+
`<run-directory>` is the single run root — the Model workspace, not a wrapper around `stage1/` or `model/` directories. The layout is fixed; do not derive another default output root:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
<run-directory>/
|
|
44
|
+
├── model-input.json / imported-utg.json / area-graph.json / source-facts.json
|
|
45
|
+
├── req-model.json / run-report.json / gap-audit.json
|
|
46
|
+
├── interaction/
|
|
47
|
+
│ ├── manifest.json
|
|
48
|
+
│ ├── facts-shared/<sha>.md # content-addressed slices shared by ≥2 Areas
|
|
49
|
+
│ ├── review-<id>/ # candidate review (one ReviewUnit per task)
|
|
50
|
+
│ └── area-<id>/ # one fused task per Area (reconcile + SPEC)
|
|
51
|
+
│ ├── task.md / expected.json
|
|
52
|
+
│ ├── area-facts.md # deterministic Area facts pack (prepare; read-only)
|
|
53
|
+
│ ├── shape-example.json # full, schema-valid draft example (read on demand)
|
|
54
|
+
│ ├── output.json # worker draft (finalized: true)
|
|
55
|
+
│ ├── draft.json # L1 self-check output (check-fused-spec → check-fusion)
|
|
56
|
+
│ └── specs/<feature>-SPEC.md
|
|
57
|
+
└── generation/
|
|
58
|
+
├── spec-bindings.json # Model finalize publishes the SPEC binding sidecar
|
|
59
|
+
└── specs/ # collect-specs relocates + injects identity here
|
|
60
|
+
├── <idx>/<feature>-SPEC.md
|
|
61
|
+
└── specs.json # publish-specs — ✓ published manifest
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
`area-facts.md` and `shape-example.json` are written by `prepare` (the deterministic layer), not by the worker: the pack is the Area's frozen facts — candidate evidence ranges, copy-ready identity anchors, the Area's UTG links (with the `utgEdgeRef`s that are legal), and one verbatim, citable excerpt per source range; a slice more than one Area needs is written once under `interaction/facts-shared/<sha>.md` and referenced by each pack. The worker reads the pack first and only reads source outside it, with an explicit line range.
|
|
65
|
+
|
|
66
|
+
The supplied UTG workspace stays outside the run root and is always read-only; it is never copied into the run directory.
|
|
67
|
+
|
|
68
|
+
## Expected output
|
|
69
|
+
|
|
70
|
+
**Key deliverables**:
|
|
71
|
+
|
|
72
|
+
- `specs.json`: the published manifest of every SPEC in deterministic page-batch order — `<run-directory>/generation/specs/specs.json`.
|
|
73
|
+
- `N × <feature>-SPEC.md`: platform-neutral HarmonyOS implementation specifications — `<run-directory>/generation/specs/<idx>/<feature>-SPEC.md`.
|
|
74
|
+
|
|
75
|
+
## Mode selection (Step 0 picks one)
|
|
76
|
+
|
|
77
|
+
- **Fused mode** — `<android-project-path>` + `utg-workspace=`. Source + frozen UTG → SPEC in one pass. Steps 0–6 below.
|
|
78
|
+
- **SPEC-only mode** — `<android-project-path>` + `requirements_input=`, no UTG workspace. Read and execute `references/batch-mode.md` as the dispatcher: platform detection (`scripts/detect-project.mjs`), index freshness (`scripts/ensure-index.mjs`), UniApp inspection (`scripts/inspect-uniapp.mjs --out`), the facts pack (`scripts/prepare-facts.mjs`), task rendering (`scripts/render-tasks.mjs`), then dispatch one `specgen-worker` per rendered `task.md` (rolling, background — never a wave barrier), each writing its page batch under `<spec_output_dir>/<idx>/`. The dispatcher runs none of the per-file steps; it performs the batch audit, then `scripts/report.mjs` and `scripts/publish-specs.mjs --root <spec_output_dir>`. The rest of this file (run directory, Steps 1–6) describes the fused mode.
|
|
79
|
+
|
|
80
|
+
## Workflow
|
|
81
|
+
|
|
82
|
+
### Step 0 — Parse and validate inputs
|
|
83
|
+
|
|
84
|
+
1. Parse the user's prompt to extract:
|
|
85
|
+
- `<android-project-path>` (required, positional or named)
|
|
86
|
+
- `utg-workspace=<path>` (fused mode, named)
|
|
87
|
+
- `requirements_input=<path>` / `spec_output_dir=<dir>` / `req_selection=<sel>` (SPEC-only mode, named)
|
|
88
|
+
- `output=<path>` (optional, named)
|
|
89
|
+
- `concurrency=<n>` (optional, named)
|
|
90
|
+
- `application-module=<module>` (optional, named)
|
|
91
|
+
2. Pick the mode (see "Mode selection"): `utg-workspace` → fused; `requirements_input` without a UTG workspace → SPEC-only (follow `references/batch-mode.md`; the rest of this step applies to the fused mode). Neither input, or an ambiguous combination → report and stop.
|
|
92
|
+
3. Validate required paths exist:
|
|
93
|
+
- `<android-project-path>` must be a directory.
|
|
94
|
+
- `<utg-workspace>` must be a directory containing both `utg.json` and `click_paths.json`.
|
|
95
|
+
4. If validation fails, report the exact missing path or file and stop.
|
|
96
|
+
|
|
97
|
+
Determine the remaining parameters yourself — the CLI defaults none of them:
|
|
98
|
+
|
|
99
|
+
- `case-id`: a stable slug derived from the source project directory name (`deriveCaseId()`); a resumed run reuses the value already recorded in the run's `model-input.json` instead of re-deriving it. The timestamp lives only in the run directory, never in the `case-id`.
|
|
100
|
+
- `application-module`: analysis-context metadata only — it never selects the scan root (that is always `<android-project-path>`). A supplied `application-module=` is authoritative and is passed straight through as `prepare --application`. Otherwise determine it yourself and never guess by running build tools: for Android, match the UTG source anchors against the module directories and use the Gradle-style name (e.g. `:app`) when exactly one matches; for UniApp, use the most stable uniquely-determining item among appid, package name, or directory slug. Multiple equally-valid choices or insufficient evidence → ask the user once.
|
|
101
|
+
- `configuration`: analysis-context label; default `source` (only take `debug` / `release` when the user explicitly asks to distinguish artifacts).
|
|
102
|
+
- `run-directory`: the user's `output=`, else the default `<workspace-root>/.hometrans/reqgen/<case-id-path-slug>--YYYY-MM-DD_HH-mm-ss` (`<case-id-path-slug>` only turns the `.` and `_` of the `case-id` into `-` for the path; the recorded `case-id` itself is unchanged).
|
|
103
|
+
|
|
104
|
+
Tell the user the exact run directory before any model call.
|
|
105
|
+
|
|
106
|
+
### Step 1 — Prepare the run (deterministic)
|
|
107
|
+
|
|
108
|
+
Ensure the runtime dependencies are present: Node.js 22.18 or newer (22.19 is the currently verified version), and the npm deps (`commander`, `homegraph`, `tree-sitter-wasms@0.1.13`, `web-tree-sitter@0.20.8`, `zod`) linked into `<reqgen-root>/node_modules` by `ht init`. Do not run `npm install` / `npm ci` / `npm link` inside the skill; if module resolution fails, stop and ask the user to rerun `ht init`.
|
|
109
|
+
|
|
110
|
+
For Android, maintain the HomeGraph index from `<reqgen-root>` (UniApp skips HomeGraph and goes straight to prepare):
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
npm run homegraph -- status <project-path> --json
|
|
114
|
+
npm run homegraph -- init -i <project-path>
|
|
115
|
+
npm run homegraph -- sync <project-path>
|
|
116
|
+
npm run homegraph -- index <project-path>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Run `sync` before every prepare; run `init -i` only on the first run, and a full `index` when `index.state` is not `complete` / `reindexStarted` is true. The HomeGraph database must live outside `<run-directory>` (prepare freezes it, along with the source fingerprint, between prepare and finalize).
|
|
120
|
+
|
|
121
|
+
**WSL**: `/mnt` paths disable the live watcher, and the first `init -i` may ask how to keep the index fresh — use a controllable interactive terminal and explicitly choose manual sync; never install or modify the project's git hooks. When the host cannot control that interaction, state the blockage before `init` and ask the user for an already-indexed project instead; do not accept the default hook option.
|
|
122
|
+
|
|
123
|
+
Then run `prepare` from `<reqgen-root>`:
|
|
124
|
+
|
|
125
|
+
```powershell
|
|
126
|
+
cmd /c "npm run model -- prepare --utg <utg-workspace> --source <project-path> --output <run-directory> --case-id <case-id> --application <application-module> --configuration <configuration>"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Non-PowerShell environments run the equivalent `npm run model -- prepare …`. With a scope, prepare a scope file and append `--scope <scope-json>`; place it beside (not inside) the fresh run directory.
|
|
130
|
+
|
|
131
|
+
Only when the caller explicitly needs to override a default, append the real arguments `--homegraph <database>`, `--max-areas-per-shard <n>`, or `--max-candidates-per-shard <n>` (never type the brackets shown here). The default candidate soft cap is 12 per review task; the caps are part of the input fingerprint — changing them requires a fresh run and never reuses old worker outputs. The candidate budget only decides how many review tasks an Area needs; the area-fusion task count is always one per Area.
|
|
132
|
+
|
|
133
|
+
`prepare` freezes the imported UTG, assigns scanner candidates to the existing UTG Areas, packs one `candidate-review` task per Area (atomic ReviewUnits), writes exactly **one `area-fusion` task per selected Area** — the single-session contract that reconciles the Area and authors one SPEC per control/discovery plus the source-backed display SPECs — and writes that Area's **deterministic facts pack** (`interaction/area-<id>/area-facts.md` plus `interaction/facts-shared/<sha>.md` and the `shape-example.json` draft example). It resolves the SPEC gate references and the `<spec-skill-dir>` (default: this skill root, `<reqgen-root>/../../../a2h-spec-generate`; override with `--spec-skill-dir`) and fails before writing if that is not an `a2h-spec-generate` skill root.
|
|
134
|
+
|
|
135
|
+
Read the stdout summary and `interaction/manifest.json`. Any UTG change, source-boundary violation, or input-fingerprint drift is an infrastructure error: stop and report it. Ordinary unresolved candidates, weak Area assignments and `UTG_NAV_CONFLICT` are recoverable semantic gaps — keep dispatching the other tasks. `fusion: true` is folded into the input fingerprint, so a run directory is never reused across inputs.
|
|
136
|
+
|
|
137
|
+
The fused task's authoritative contract is `references/fusion-task-contract.md`; the run-directory layout and the write scopes are fixed by this SKILL and by the rendered `task.md`.
|
|
138
|
+
|
|
139
|
+
### Step 2 — Dispatch the fused per-Area workers (rolling, background)
|
|
140
|
+
|
|
141
|
+
Run the manifest's unfinished tasks at the chosen `concurrency`. Hand each worker only the absolute path of one `task.md`; its workspace is the directory holding that file (`review-<id>/` or `area-<id>/`). The `task.md` is the complete and authoritative specification — do not add a second prompt.
|
|
142
|
+
|
|
143
|
+
**Write scopes (enforced by the task contract, mirrored here):**
|
|
144
|
+
|
|
145
|
+
- A `candidate-review` worker writes only its own `output.json`.
|
|
146
|
+
- An `area-fusion` worker writes only its own `output.json` and the `specs/<stem>-SPEC.md` files it declares — nothing else in the run directory, and never `task.md`, `expected.json`, or another task's output.
|
|
147
|
+
- **Read order for a fused worker**: its own `area-facts.md` first (the deterministic pack), then the slices it references (its own excerpts, plus `interaction/facts-shared/<sha>.md` for the ones marked shared), then `shape-example.json` only when the inline field tables leave a shape unclear. Source outside the pack is read **with an explicit line range**, never whole-file by default.
|
|
148
|
+
- Project source, the frozen UTG, and every other task directory are read-only. No worker may spawn a nested agent. Node — never the worker — mints the canonical `控件:<controlRef>` identity; the worker submits structured `identityAnchor`/`identityAnchors` only.
|
|
149
|
+
|
|
150
|
+
**Rolling dispatch, not waves.** Dispatch every worker with **background mode** (`background: true`): the dispatch call returns immediately with a `sessionID`, and the worker's final message arrives later as a completion notification. Keep a transient dispatch map `sessionID → taskId` (this-session bookkeeping only — crash recovery reads the on-disk `manifest.json` / `output.json` / `draft.json`, never the map) and a per-task state `pending → in_flight → done/failed`. At no instant may more than `concurrency` workers be in flight, and there is **no whole-wave barrier**.
|
|
151
|
+
|
|
152
|
+
**Event loop.** First: dispatch every ready task (see the scheduling order below), mark them `in_flight`, and end the turn to wait for notifications. Then, on each completion notification:
|
|
153
|
+
|
|
154
|
+
1. Match it back through the dispatch map and read its result (task id / self-check pass / blocking reason).
|
|
155
|
+
2. **Pass** → dispatch the tasks it unlocks **first** (background), **then** mark state. This order is deliberate: interrupted between the two, the surviving live session still notifies (a missed state mark is fixed by turn-end reconciliation); the reverse order leaves an `in_flight` task that can never notify. Unlock rule: after a candidate-review passes, once **all** of that Area's reviews are `done`, dispatch that Area's single `area-fusion` task **immediately** — never wait for other Areas, never set a global barrier. An Area with no scanner candidates is dispatched at once.
|
|
156
|
+
3. **Fail** → **continue that task's own session** (see *Completion & continuation* below) and immediately refill the next ready task.
|
|
157
|
+
4. After the turn's notifications: if the window is not full and ready tasks remain, keep refilling; otherwise end the turn and wait for the next notification.
|
|
158
|
+
|
|
159
|
+
**Scheduling order** (dependencies):
|
|
160
|
+
|
|
161
|
+
1. Dispatch every `candidate-review` task in parallel. A review worker judges only its own ReviewUnit and emits exactly one of `accept` / `correct` / `exclude` (no discovery, merge or unresolved); `correct` requires a source citation, `exclude` a `reasonCode`. It then runs its `task.md`'s `check-task`.
|
|
162
|
+
2. Once all of an Area's reviews pass, dispatch that Area's single `area-fusion` task. The worker starts from the pack it owns — its own `area-facts.md` (Area facts, UTG links, the candidate census, copy-ready identity anchors, verbatim citable excerpts) plus the shared slices that pack references — then reads its own `ReviewUnits`/decisions through `model query`, does the in-scope discovery, groups controls/actions, and — this is the folded SpecGen step — authors one SPEC per control/discovery plus the source-backed display SPECs. It records structured identity anchors only; visible text, target page and business prose are never identity.
|
|
163
|
+
3. The worker then runs `check-fused-spec` (see below). It passes only for a valid draft **and** valid SPECs.
|
|
164
|
+
|
|
165
|
+
**Self-check gate — `check-fused-spec`.** The fused worker's only self-check is the combined gate, run from its rendered `task.md`:
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
node --experimental-strip-types <spec-skill-dir>/scripts/check-fused-spec.mjs \
|
|
169
|
+
--run <run-directory> --task <taskId> --reqgen-root <reqgen-root>
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
It runs `check-fusion` first (validates R1–R5 plus the SPEC coverage rules R4/R7 — every controlGroup/discovery bound by exactly one `specs[]` record or explicitly confirmed, and each owner at most one record — and the Area's conservation, writing the validated `draft.json` beside the worker's output — L1 mints no IDs), then validates every SPEC its `specs[]` declares (existence, `# <stem>SPEC` H1, `## UI序列` verbatim = `title`, `stem` canonical, and the decidable `check_spec.ts` rules; an undeclared `*-SPEC.md` under `specs/` fails the gate). The canonical `控件:<controlRef>` identity is minted by the global L2 (`finalize`), not here. On failure the worker fixes only its own `output.json` and SPECs and re-runs the gate.
|
|
173
|
+
|
|
174
|
+
**Worker profiles.** Prefer the `model-render-worker` profile for `area-fusion` tasks and `model-worker` for `candidate-review` tasks; fall back to a plain subagent only when the host has neither. Either way the "no nested agent" rule rests on this SKILL and the workers' own rules — the agent frontmatter carries no tool gating.
|
|
175
|
+
|
|
176
|
+
**Completion is an artifact fact, never a worker's claim.** Decide `done` from the task's own output and let the gate decide, not the closing message:
|
|
177
|
+
|
|
178
|
+
- `area-fusion`: `<task-dir>/draft.json` exists — `check-fusion` writes it only after the draft validates — and re-running that task's `check-fused-spec` exits 0 (it re-validates R1–R7 and every SPEC its `specs[]` declares).
|
|
179
|
+
- `candidate-review`: re-running that task's `check-task` exits 0 (it validates `output.json` in place and writes nothing).
|
|
180
|
+
|
|
181
|
+
`output.json`'s `finalized: true` alone is **not** evidence: the measured failure mode is a session that ends believing it is finished (`finish="stop"`, no tool call) whose artifact was never written. Run that one gate call yourself per completion — it is cheap, and the worker's own last message is never the completion signal:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
# area-fusion
|
|
185
|
+
node --experimental-strip-types <spec-skill-dir>/scripts/check-fused-spec.mjs \
|
|
186
|
+
--run <run-directory> --task <taskId> --reqgen-root <reqgen-root>
|
|
187
|
+
# candidate-review
|
|
188
|
+
npm --prefix <reqgen-root> run model -- check-task --input <run-directory> --task <taskId>
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**Continuation, not restart.** A failed or unfinished task is continued **in its own session**: send it one more message (the dispatch map already holds that `sessionID`), state the artifact condition and quote the gate output verbatim, e.g.
|
|
192
|
+
|
|
193
|
+
> 你的产物未通过门禁:`draft.json` 不存在 / `check-fused-spec` 退出码非 0。门禁输出原文:<verbatim>。请只修正本任务目录的 `output.json` 与 `specs/`,重跑门禁并把输出原样贴出。
|
|
194
|
+
|
|
195
|
+
Then re-run the gate yourself and re-read the artifact. This rule exists because of the measured cost asymmetry: the failing session had already spent 199 s establishing its context, the restart spent 840 s redoing the same work, and the whole failure was one missing artifact — a continuation costs a single round (~15 s) and keeps that context. A continuation occupies the task's own slot in the rolling window (it is the same task, not a new one), so it never inflates the in-flight count. Restart a **fresh** session only when the session itself is gone (the dispatch was lost, the session closed, no notification ever arrived) — and say so in the report. Cap continuations at **2** per task; after that mark the task `failed`, keep dispatching everything that does not depend on it, and put the gate output into the report as the diagnosis.
|
|
196
|
+
|
|
197
|
+
**Reuse on rerun.** Retry only failed tasks. A task whose gate passes on disk (`draft.json` present and passing for `area-fusion`; a clean `check-task` for `candidate-review`) is reused and skipped on a rerun. Tasks that keep failing are recorded and the Areas that do not depend on them keep going; an Area whose review failed is marked incomplete, never silently skipped.
|
|
198
|
+
|
|
199
|
+
**Turn-end reconciliation (before ending any turn).** Align state with the dispatch map (`live` = its completion notification has not been processed). An `in_flight` task with no live entry was a lost dispatch (narrated, no tool call): first check disk with the task's own gate (`draft.json` present and passing, or a clean `check-task`); if the artifact is missing, **continue that session** with the completion instruction above, and only if the session is gone re-dispatch it as a fresh session (same workspace, background).
|
|
200
|
+
|
|
201
|
+
**Terminal condition.** Every manifest task is `done` or `failed`, and no live entry remains.
|
|
202
|
+
|
|
203
|
+
### Step 3 — Finalize the model
|
|
204
|
+
|
|
205
|
+
After every executable task is settled, run exactly one finalize writer on the run directory (never concurrently):
|
|
206
|
+
|
|
207
|
+
```powershell
|
|
208
|
+
cmd /c "npm run model -- finalize --input <run-directory>"
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
`finalize` owns candidate conservation, the review/Area dependencies, citation scope, structured anchors, stable IDs, cross-Area duplicate detection and Tier-B demotion, and the `SourceFacts` / `AreaGraph` / `ReqModel` consistency; it publishes `generation/spec-bindings.json` (the per-Area `specs[]` binding). Read `run-report.json`, `gap-audit.json` and the interaction conservation summary, and confirm the Area/link counts match the frozen UTG. Do not hand-edit any JSON.
|
|
212
|
+
|
|
213
|
+
`run-report.json` is the run's **publication commit marker**: `status: succeeded` / `publishable: true` only when the model is semantically complete. Two independent findings make it negative: an Area that did not finalize, and an interaction candidate that is still `unresolved` (`CANDIDATE_NOT_PLANNED` — the scanner saw an interaction and the planner could not attribute it to any Area, so no worker was ever asked about it; `metadata.unresolvedInteractions` and `metadata.unresolvedInteractionReasonCodes` carry the count and the codes). Such a run is still written (every artifact stays for inspection and repair) but the marker is `status: failed` / `publishable: false`, and `finalize` then **exits non-zero**, naming the reason it found and the artifacts to read. That is the fail-closed path: the SPEC publication refuses such a run. Fix the finding the message names (retry the failed Areas; for an unowned candidate, compare its evidence with the Area anchors — the page's own class file and the layouts its widgets live in are anchors — or exclude that page deliberately with `--scope`), re-run `finalize`, and only then continue; `--allow-incomplete` (on finalize and on each publication step) publishes a partial run deliberately.
|
|
214
|
+
|
|
215
|
+
### Step 4 — Collect the SPECs into the publish root
|
|
216
|
+
|
|
217
|
+
`publish-specs` only scans `<root>/<idx>/<stem>-SPEC.md`, while the fused worker authored each SPEC beside its Area task. Relocate and inject identity:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
node <skill-dir>/scripts/collect-specs.mjs --run <run-directory> [--root <spec_output_dir>] [--allow-incomplete]
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
It walks `generation/spec-bindings.json` `areas[]` in order (`idx = index + 1`), joins each `utgNodeId` to its task directory through `interaction/manifest.json`, copies `<taskDir>/specs/<stem>-SPEC.md` to `<root>/<idx>/<stem>-SPEC.md`, and injects a `控件:<controlRef>` line immediately after the H1 when the sidecar bound one. It is fail-loud (missing SPEC, mismatched H1, unjoinable Area, a non-segment `stem`, or two bindings in one `idx` declaring the same destination name — normally two folded drafts with a same-stem SPEC — aborts instead of letting the later copy overwrite the earlier SPEC), and it refuses a run whose `run-report.json` is not a completed, publishable finalize — never collect SPECs out of a partial run by accident (`--allow-incomplete` collects them on purpose and logs that the collection is partial). `--root` defaults to `<run-directory>/generation/specs`.
|
|
224
|
+
|
|
225
|
+
The **default** publish root is rebuilt as a whole: every declared SPEC is read and validated first, the complete set is staged beside the root, and only then is the old root replaced. A recovery rerun that inserts a previously failed Area (shifting later `idx` values) therefore cannot leave an old `<idx>/<stem>-SPEC.md` for `publish-specs` to re-publish. A custom `--root` is written in place to avoid destroying a caller-owned tree; pass `--replace-root` to opt it into the same staged replacement.
|
|
226
|
+
|
|
227
|
+
### Step 5 — Publish the `specs.json` manifest
|
|
228
|
+
|
|
229
|
+
Once every requirement has been processed (or explicitly skipped) and reported, publish this run's manifest — once for the whole root, never per Area:
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
node <skill-dir>/scripts/publish-specs.mjs --root <run-directory>/generation/specs [--run <run-directory>] [--registry-root <hmos-project>] [--allow-incomplete]
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
It extracts each `*-SPEC.md`'s `UI Sequence` and optional `控件:` identity and writes `<root>/specs.json` in deterministic numeric-aware path order; its shape is `references/specs.schema.json`. Point `--root` at this run's own publish root — everything below it is included. `publish-specs` exits non-zero when the root holds no `*-SPEC.md`. When `--registry-root <hmos-project>` is supplied (the fused-mode orchestrator passes it), the published SPEC root is also declared as `spec_root` in `<hmos-project>/.hometrans/artifact-registry.jsonl` (fail-soft — a registry write never fails the publish).
|
|
236
|
+
|
|
237
|
+
**Publication gate.** When the run is known (an explicit `--run`, or inferred from a `--root` that is `<run>/generation/specs`), `publish-specs` verifies the run's commit marker first and records the verdict in the manifest: `completeness: "complete"`, or `completeness: "incomplete-known"` plus `incomplete: { areas, failedShards, unresolved, unresolvedReasonCodes }` for a partial run published with `--allow-incomplete`. A run whose marker is negative is **refused** without that flag, so a partial run can no longer be published as if it were complete. A root with no run at all (batch mode, hand-made root) is ungated and omits `completeness`. Never present a partial run as a complete manifest: if any selected Area has no SPEC, report the gap and state whether the manifest was written.
|
|
238
|
+
|
|
239
|
+
### Step 6 — Final verification and report
|
|
240
|
+
|
|
241
|
+
1. Verify the key outputs exist: `<run-directory>/generation/specs/specs.json` and at least one `<run-directory>/generation/specs/*/*-SPEC.md`.
|
|
242
|
+
2. Read `specs.json`: item count, and first/last `so-id` (confirming contiguous ordering). `completeness` must be `complete` for a full run; when it is `incomplete-known`, report the gap (`incomplete`) instead of presenting the manifest as the complete page set.
|
|
243
|
+
3. Optionally run the reporter over the publish root:
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
node <skill-dir>/scripts/report.mjs --output <run-directory>/generation/specs
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Adopt its per-SPEC rows and aggregates; add by hand the loss list the reporter cannot see (no-recall skips and unsupported claims).
|
|
250
|
+
|
|
251
|
+
Report concisely (under 30 lines):
|
|
252
|
+
|
|
253
|
+
- **Inputs**: source project, UTG workspace, run directory.
|
|
254
|
+
- **SPEC**: `<run-directory>/generation/specs/*/*-SPEC.md` count and `specs.json` item count.
|
|
255
|
+
- **Deliverables**: `specs.json` path, the per-index SPEC path shape.
|
|
256
|
+
- **Dispositions**: candidates accepted / corrected / excluded / final unresolved, merged duplicate actions and discoveries, review and Area task counts, incomplete Areas, failed tasks, callback budget.
|
|
257
|
+
- **Gaps**: failed Areas, fallbacks, `UTG_NAV_CONFLICT`, `CROSS_AREA_DUPLICATE_ANCHOR` / `CROSS_AREA_ANCHOR_COLLISION` and their disposition.
|
|
258
|
+
|
|
259
|
+
State `complete` only when every selected Area's review, reconciliation, discovery and SPEC authoring finished **and no interaction candidate is left `unresolved`**; otherwise state `incomplete-known` and list the unresolved interactions. Never claim UTG pages are absolutely complete, and never present "every discovered candidate was dispositioned" as "runtime interactions are fully covered".
|
|
260
|
+
|
|
261
|
+
## Error Recovery
|
|
262
|
+
|
|
263
|
+
- **Prepare fails**: fix the source project, UTG workspace, or HomeGraph index, then rerun from scratch.
|
|
264
|
+
- **A worker fails**: continue that task's own session with the gate output (never restart a live session), and retry only that task; the Area's dependents stay blocked until its gate passes on disk. Reuse any gate-passing output on a rerun.
|
|
265
|
+
- **The manifest is not published**: keep the successful SPECs. Resolve the reported `collect-specs` / `publish-specs` problem and rerun only Steps 4–5; do not regenerate the whole run. Step 4 rebuilds the default publish root, so an Area fixed after a failed run (and any resulting `idx` shift) does not need a manual `generation/specs` cleanup.
|
|
266
|
+
- **Partial run**: rerunning with the same `output=<run-directory>` lets `prepare` reuse existing outputs when fingerprints match; re-dispatch only the tasks whose gate does not pass on disk (a rerun happens in a new dispatcher turn, so its failed sessions are gone and there is nothing left to continue). A run directory is never reused once its input fingerprint drifts. Draft contract 6.0.0 onward, an old run directory (5.0.0 `draft.json`) cannot be resumed — start a new run after upgrading.
|
|
267
|
+
|
|
268
|
+
## Invariants
|
|
269
|
+
|
|
270
|
+
- This skill never modifies the source project or the UTG workspace. Generated files and analysis caches follow the documented write scopes.
|
|
271
|
+
- Android deterministic scanning uses HomeGraph/Tree-sitter plus XML limited to `res/layout*`, `menu*`, `navigation*`, `xml*` (never `Manifest` or `values`); UniApp uses the frozen UTG's action widgets, route triggers and Vue binding positions, and never initializes HomeGraph.
|
|
272
|
+
- `<reqgen-root>`, the gate references, and the SPEC scripts are all in-skill paths resolved from this `SKILL.md`; never ask the user for them.
|
|
273
|
+
- `specs.json` is published only after every page batch for this run is ready.
|
|
274
|
+
- Paths are always absolute or explicitly relative to a known absolute root.
|
|
275
|
+
- All subagent concurrency and fingerprint handling is delegated to the reqgen CLI and the rendered `task.md`.
|
|
276
|
+
- Node mints every canonical `控件:<controlRef>` identity; no worker ever writes it.
|
|
277
|
+
|
|
278
|
+
## Forbidden
|
|
279
|
+
|
|
280
|
+
- Do not fabricate `specs.json` or any SPEC file; report only what the CLI and workers produce.
|
|
281
|
+
- Do not modify the `<run-directory>` layout; respect the structure above.
|
|
282
|
+
- Do not run `finalize` concurrently, and do not run it before every executable task is settled.
|
|
283
|
+
- Do not dispatch an `area-fusion` task before all of its Area's reviews pass.
|
|
284
|
+
- Do not hand-edit the sidecar, `req-model.json`, or any generated JSON to paper over a gap.
|
|
285
|
+
- Do not run Gradle, Android Lint, JDK, Android SDK, adb, or dynamic crawling.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "a2h-spec-generate-tests",
|
|
3
|
+
"private": true,
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Test entry for the a2h-spec-generate skill. `npm test` must include the .ts suite too: node --test with an explicit glob (node expands it itself, so this works in cmd.exe as well).",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "node --experimental-strip-types --test \"test/*.test.{mjs,ts}\""
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Directory batch mode
|
|
2
|
+
|
|
3
|
+
Use this workflow only when `requirements_input` resolves to a directory. The current Agent is the dispatcher; it must not execute the single-file generation workflow itself.
|
|
4
|
+
|
|
5
|
+
## Resolve the batch
|
|
6
|
+
|
|
7
|
+
1. Enumerate only immediate child files matching `req-<positive integer>.txt`, sort them by numeric index, and reject duplicate numeric indices such as `req-1.txt` plus `req-01.txt`.
|
|
8
|
+
2. Parse `req_selection` when supplied. Accept one index (`3`), an inclusive range (`2..5`), or a comma-separated union (`1,3,6..8`). Deduplicate the result while preserving numeric order. Reject malformed, descending, zero, negative, or undiscovered indices before launching workers. Omitted selection means all discovered files.
|
|
9
|
+
3. Resolve the page-batch output root. Use the caller's absolute `spec_output_dir` when supplied; otherwise use `<requirements_input>/specs`. For each selected `req-N.txt`, its output directory is `<spec_output_dir>/N`.
|
|
10
|
+
|
|
11
|
+
## Dispatch page workers
|
|
12
|
+
|
|
13
|
+
**First, prepare the run (once, deterministic).** Before any worker starts, run in this order:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
# ① 先检测:ensure-index 需要它选出的 sourceRoot。
|
|
17
|
+
# 先确认 <absolute source project> 存在且是目录——否则亮出该路径并停止(不要进入检测)。
|
|
18
|
+
node <skill-dir>/scripts/detect-project.mjs --project <absolute source project> # 解析 stdout 取 projectType / sourceRoot
|
|
19
|
+
# ② 用检测到的 sourceRoot 建索引
|
|
20
|
+
node <skill-dir>/scripts/ensure-index.mjs --source-root "<检测到的 sourceRoot>"
|
|
21
|
+
# ③ 平台专属检查(`--out` 由脚本自建父目录并写文件——不要用 shell 重定向,也不要 mkdir)
|
|
22
|
+
node <skill-dir>/scripts/inspect-uniapp.mjs --project <absolute source project> --out "<absolute page-batch output root>/.facts/uniapp-inspection.json" # 仅 UniApp:stdout 之外还可 --out 写文件;非零退出=检查错误(见下),不是 HomeGraph 失败
|
|
23
|
+
node <skill-dir>/scripts/parse_requirements.ts --input <absolute req file> --json # 仅 Excel/csv 输入(文件模式)
|
|
24
|
+
# ④ 事实包
|
|
25
|
+
node <skill-dir>/scripts/prepare-facts.mjs --project "<检测到的 sourceRoot>" \
|
|
26
|
+
--requirements-input <absolute requirements_input> --output <absolute page-batch output root>
|
|
27
|
+
# ⑤ 渲染 worker 任务
|
|
28
|
+
node <skill-dir>/scripts/render-tasks.mjs --skill-dir <skill-dir> \
|
|
29
|
+
--output <absolute page-batch output root> --platform <projectType> \
|
|
30
|
+
--source-root "<检测到的 sourceRoot>" --requirements-input <absolute requirements_input> \
|
|
31
|
+
--facts-dir <absolute page-batch output root>/.facts \
|
|
32
|
+
--index-state "<② stdout 的 indexed 值>" \
|
|
33
|
+
--uniapp-inspection "<absolute page-batch output root>/.facts/uniapp-inspection.json" # 仅 UniApp
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**① 的存在性检查与 sourceRoot 取值**:`<absolute source project>` 必须先确认**存在且是目录**——不是目录就亮出该路径并停止整个战役,绝不进入检测。**sourceRoot 一律用检测器选出的那个**:`detect-project.mjs` 会绕开 UniApp 的根镜像与生成的 `dist`,改用调用方手写的源码路径去索引,既浪费索引量,又可能索引到不该索引的产物目录。
|
|
37
|
+
|
|
38
|
+
`--index-state` 取自 ② `ensure-index.mjs` 的 **stdout**(其新鲜度即 `homegraph status --json` 的 `lastIndexed`,形如 `indexed <lastIndexed>`)——它是渲染进 `task.md` 的既成事实,不是随手写的 `<fresh @ …>` 字面量。
|
|
39
|
+
|
|
40
|
+
③ 的 UniApp 检查结果走**文件交付通道**:`inspect-uniapp.mjs` 的 stdout 写进 `<absolute page-batch output root>/.facts/uniapp-inspection.json`(与事实包同一 `.facts` 目录),再由 ⑤ 的 `--uniapp-inspection` 把该**绝对路径**写进每份 `task.md` 的 `## 已确定的输入`。worker 由此**读文件**,而不是指望别人的内存里还留着它。
|
|
41
|
+
|
|
42
|
+
**③ 的失败归属**:`inspect-uniapp.mjs` 的**非零退出是检查错误,不是 HomeGraph 失败**——亮出它并**终止整个战役**,绝不带着不受支持的事实继续渲染与派发。
|
|
43
|
+
|
|
44
|
+
Excel/csv 输入只在**文件模式**下用 `--requirements-json`(把 ③ 的 `parse_requirements.ts --json` 输出交给渲染器):它渲染的是单个 `<root>/task.md`,不是 `<root>/N/task.md`,所以目录战役永远不走这条路径——目录战役的 `req-N.txt` 一律用 `--requirements-input`。
|
|
45
|
+
|
|
46
|
+
`ensure-index.mjs` 的规程与**硬失败策略**(CLI 不在 PATH → `ht init` 指引、绝不自行安装;任何
|
|
47
|
+
`status`/`init`/`sync`/`index`/查询的操作性错误 → 报错并停;**查询零命中不算错误**)适用;新鲜度必须来自
|
|
48
|
+
`homegraph status --json`(人类可读输出没有可判定的标记)。
|
|
49
|
+
|
|
50
|
+
**失败范围(先分清战役与批次)。** 预备阶段的失败终止**整个战役**,worker 的失败只影响**它自己的批次**:
|
|
51
|
+
|
|
52
|
+
- `detect-project.mjs` 返回 `projectType: unknown` 时 → **亮出检测器的 evidence,停整个战役**——不要让调用方选、不要猜。
|
|
53
|
+
- ①–⑤ 任一命令失败 → **停整个战役、不派发任何 worker**,报错并停;绝不派一个没有 `task.md` 的 worker。
|
|
54
|
+
- **批次内归出两个以上 owner** 由 worker 推导并报告(dispatcher 不执行单文件生成流程,见本文首段,因此不预先推导 owner、也不因预判扣下批次);一旦某个 worker 报告它的批次出现**两个以上 owner** → **停整个战役、报出该 owner 列表**,要求调用方把一个源文件拆成每页一个(**绝不静默合并,也绝不自己挑选页面**)。
|
|
55
|
+
- **worker** 自身的失败则是**批次局部**的:其余相互独立的批次可以跑完,战役随后以一个**部分**结果收场(见下方的发布规则)。
|
|
56
|
+
|
|
57
|
+
Then dispatch. For each selected index, launch **`specgen-worker`** in background mode with the
|
|
58
|
+
concrete single-file task:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
Read <absolute page-batch output root>/<index>/task.md — it is the complete and authoritative task
|
|
62
|
+
specification. Follow it exactly.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Launch each worker with the concrete single-file task above, in **background mode**
|
|
66
|
+
(`background: true`): the dispatch call returns immediately with a `sessionID`, and
|
|
67
|
+
the worker's final message arrives later as a completion notification. Keep a
|
|
68
|
+
transient dispatch map `sessionID → index` (this-run bookkeeping only — recovery
|
|
69
|
+
never reads it; it re-derives everything from the output dirs) and a per-index
|
|
70
|
+
state `pending → in_flight → done/failed`.
|
|
71
|
+
|
|
72
|
+
Dispatch them **rolling, not in waves**: bring up to eight workers up at once,
|
|
73
|
+
then end the turn and wait for notifications. The pages are mutually independent,
|
|
74
|
+
so there is no dependency to respect and no reason for a wave barrier. On each
|
|
75
|
+
completion notification:
|
|
76
|
+
|
|
77
|
+
- Match it back through the dispatch map, then decide the index's state. A page's
|
|
78
|
+
unit is complete only when its output dir holds at least one `-SPEC.md`; a
|
|
79
|
+
requirement the worker reports as no-recall produced no SPEC and is named in its
|
|
80
|
+
report instead.
|
|
81
|
+
- Start the next not-yet-started index **before** writing the state mark: a turn
|
|
82
|
+
interrupted between the two leaves a live session that still notifies, whereas
|
|
83
|
+
the reverse order leaves an `in_flight` index with no session, which can never
|
|
84
|
+
notify. Keep the window full until no index is left to start.
|
|
85
|
+
- A worker that fails records its exact error and the already launched or
|
|
86
|
+
independent selected workers finish — never retry silently. A **worker** failure is
|
|
87
|
+
batch-local (unlike a prep failure, which aborts the whole campaign): the other
|
|
88
|
+
independent batches may finish, and the campaign then ends **partial** — see the
|
|
89
|
+
publish rule below.
|
|
90
|
+
|
|
91
|
+
**Turn end — reconcile.** Before ending any turn, align per-index state with the
|
|
92
|
+
dispatch map (*live* = its completion has not been processed): an index marked
|
|
93
|
+
`in_flight` with no live entry was a lost dispatch — re-check its output dir first
|
|
94
|
+
(an index that already holds a `-SPEC.md` is `done`) and otherwise re-dispatch it
|
|
95
|
+
(background, same prompt). A dispatch that was only narrated, with no tool call,
|
|
96
|
+
created nothing.
|
|
97
|
+
|
|
98
|
+
Terminal: every selected index is `done` or `failed` and no live entry remains.
|
|
99
|
+
|
|
100
|
+
A worker follows its own rendered `task.md` and must not rediscover sibling `req-*.txt` files.
|
|
101
|
+
|
|
102
|
+
## Audit the selected outputs, report the campaign, and publish the manifest
|
|
103
|
+
|
|
104
|
+
After all selected workers finish:
|
|
105
|
+
|
|
106
|
+
1. **Report the campaign** — run the bundled reporter once from the dispatcher, over the whole root:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
node <skill-dir>/scripts/report.mjs --output <absolute page-batch output root>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
It reads every SPEC off disk and prints the per-spec rows (batch, scenario count,
|
|
113
|
+
deviation count, title), the aggregate counts (batches, specs, scenarios, deviations)
|
|
114
|
+
and every deviation note quoted verbatim. Adopt its rows and aggregates as the
|
|
115
|
+
campaign's own numbers — the dispatcher must not re-derive them. The reporter is
|
|
116
|
+
**blind to what is not a file**: a requirement skipped as no-recall produced no SPEC
|
|
117
|
+
and has no row, so the dispatcher adds that **loss list by hand** from each worker's
|
|
118
|
+
Step 3 report (see `worker-rules.md` §Step 3 汇报义务).
|
|
119
|
+
|
|
120
|
+
2. For each successful requirement, require at least one `<feature>-SPEC.md` under that index's output directory.
|
|
121
|
+
|
|
122
|
+
3. **Cross-batch surface check** — no two selected indices may cover the same user-visible surface.
|
|
123
|
+
Compare the `## UI序列` line of every SPEC: two indices whose SPECs share one surface must be
|
|
124
|
+
reported and their REQs combined into one same-page input. Never merge silently, never guess a winner.
|
|
125
|
+
|
|
126
|
+
4. **Publish the manifest** — from the dispatcher, once for the whole root, never per worker:
|
|
127
|
+
|
|
128
|
+
Publish `<root>/specs.json` **only when every selected index is `done`**. If any selected index is `failed`, do not publish: report the failed indices and the exact error, and state that the manifest was not written. Never present a partial campaign as a complete manifest.
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
node <skill-dir>/scripts/publish-specs.mjs --root <absolute page-batch output root>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
It writes `<root>/specs.json` in deterministic numeric-aware path order (page-batch directory, then SPEC filename). `publish-specs.mjs` exits non-zero when the root holds no `*-SPEC.md`, so a run whose every selected index failed cannot publish by mistake.
|
|
135
|
+
|
|
136
|
+
## Report
|
|
137
|
+
|
|
138
|
+
Report the discovered indices, selected indices, per-index generation status, audit result, the absolute page-batch output root, and the `specs.json` path. State the campaign's numbers from the reporter's own rows and aggregates (per-spec rows, aggregates, quoted deviations), and add by hand the loss list the reporter cannot see (no-recall skips and unproven claims, per requirement).
|
|
139
|
+
|
|
140
|
+
When the selected set covers every discovered REQ and all audits pass, state that the campaign's manifest is complete — `specs.json` was published for the whole root. Otherwise list the failed or unselected indices and state that the manifest was **not published** (see the publish rule above: a partial campaign is never presented as a complete manifest).
|
|
141
|
+
|
|
142
|
+
The output has this shape:
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
<spec_output_dir>/
|
|
146
|
+
├── specs.json
|
|
147
|
+
├── 1/
|
|
148
|
+
│ └── <feature-a>-SPEC.md
|
|
149
|
+
└── 2/
|
|
150
|
+
└── <feature-b>-SPEC.md
|
|
151
|
+
```
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# 删除的爆炸半径
|
|
2
|
+
|
|
3
|
+
- **for a delete, the full blast radius.** Trace the DAO/repository delete through homegraph, then search the source for `DELETE FROM`, the persistence delete annotation and any foreign-key cascade (`ON DELETE CASCADE`) to enumerate the primary table and every child table it orphans. Read the delete implementation for disk cleanup (`File.delete()`, recursive directory removal, media-store removal) and record each released file's logical role, naming rule, timing relative to the rows, and failure behavior.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# 融合任务契约(fused per-Area worker)
|
|
2
|
+
|
|
3
|
+
本文件是每个选中 Area 的 fused worker 的权威契约;`prepare` 把契约的字段表内嵌进该 Area 的
|
|
4
|
+
`task.md`(完整的填好示例写在同目录的 `shape-example.json`,只在需要时读),`task.md` 才是子任务的
|
|
5
|
+
唯一输入。本文件供人阅读与核对,worker 无需另行读取。
|
|
6
|
+
|
|
7
|
+
## 1. 输入与边界
|
|
8
|
+
|
|
9
|
+
- 一个 fused 任务 = 一个选中 Area。它依赖该 Area 的全部 candidate-review 任务;review 全部通过
|
|
10
|
+
`check-task` 后才可启动。
|
|
11
|
+
- **事实包(先读它)**:`prepare` 为每个 Area 生成确定性事实包 `interaction/area-<id>/area-facts.md`
|
|
12
|
+
——Area 事实与静态访问路径、该 Area 的 UTG 边(标注了哪些 `utgEdgeRef` 可引用)、候选清单、
|
|
13
|
+
可直接照抄的身份锚点,以及一份份**逐字**的源码片段(片段标题的 `path:start-end` 就是可用的
|
|
14
|
+
citation 目标;正文不含行号)。多个 Area 都要用的同一片段只写一份,放在
|
|
15
|
+
`interaction/facts-shared/<sha>.md`,由 pack 引用。读法纪律:先读 pack,pack 没覆盖的
|
|
16
|
+
源码才读,且**必须带行范围**,禁止把整文件读当默认手段。
|
|
17
|
+
- 只读:本任务目录(`task.md`、`expected.json`、`area-facts.md`、`shape-example.json`)与其他任务
|
|
18
|
+
已产出的 `output.json`、pack 引用的共享片段、只读源码根、`task.md` 门禁清单列出的 references、
|
|
19
|
+
以及 `model query` / `check-fused-spec` 命令。不得读取 reqgen/skill 自身源码(门禁清单列出的
|
|
20
|
+
文件除外)或其他 run 目录。
|
|
21
|
+
- 只写:本任务目录下的 `output.json` 与 `specs/<stem>-SPEC.md`(每个控件/discovery 一份 SPEC)。
|
|
22
|
+
不得启动子 Agent。
|
|
23
|
+
- `expected.json` 提供 `taskId`、`inputFingerprint`、`areaRef`、`candidateKeys`、`reviewTaskIds`、
|
|
24
|
+
`allowedUtgEdgeRefs`。这些值必须逐字使用。
|
|
25
|
+
|
|
26
|
+
## 2. 融合草稿(`output.json`)
|
|
27
|
+
|
|
28
|
+
`contractVersion` 为 `6.0.0`。它是「Area 归并产出」加「SPEC 产出」:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
{
|
|
32
|
+
contractVersion: "6.0.0",
|
|
33
|
+
taskId, inputFingerprint, finalized: true,
|
|
34
|
+
areaRef,
|
|
35
|
+
// ---- reconciliation ----
|
|
36
|
+
restorations, overrides, discoveries, controlGroups, coverage, scopeExclusions?,
|
|
37
|
+
// ---- SPEC 绑定 ----
|
|
38
|
+
renderConfirmations: RenderConfirmation[],
|
|
39
|
+
specs: SpecRecord[] // 必需(可为 []:仅当每个 owner 都被确认或本 Area 零交互)
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
归并字段(`restorations`/`overrides`/`discoveries`/`controlGroups`/`coverage`)与今日 Area 任务完全
|
|
44
|
+
同形。`specs` 把每个 controlGroup/discovery(及源码复核新增的展示行为)绑定到它在
|
|
45
|
+
`specs/<stem>-SPEC.md` 写出的 SPEC(**正文单源在 SPEC 文件**,草稿只记 `stem`/`title`/`owner` 等)。
|
|
46
|
+
|
|
47
|
+
### RenderConfirmation
|
|
48
|
+
|
|
49
|
+
`RenderConfirmation`(`ownerKind`/`ownerKey`/`disposition`/`reason`)的字段级形状由 prepare 连同本
|
|
50
|
+
契约内嵌进 worker 的 `task.md`,要求见 R4;它显式确认「该实体本轮不出 SPEC」。
|
|
51
|
+
|
|
52
|
+
### SpecRecord 与 SPEC 产出
|
|
53
|
+
|
|
54
|
+
`SpecRecord`(`owner`/`stem`/`title`/`citations`/`disposition`)为每个 controlGroup/discovery 绑定
|
|
55
|
+
一份 SPEC(R4/R7);`owner.kind:"agent-added"` 的记录自带结构化 `identityAnchors`(`control`
|
|
56
|
+
必填),代表源码复核新增的交互或展示行为:
|
|
57
|
+
|
|
58
|
+
- `stem` **不得手写**,用 `node <spec-skill-dir>/scripts/feature-stem.mjs "<title>" ["<title>" …]`
|
|
59
|
+
生成(一次可以给多个标题,每行输出一个 stem —— 一个任务的全部 stem 一次铸完);
|
|
60
|
+
文件名冲突时追加 `-2`/`-3`…(同一任务内两份 SPEC 的 `stem` 不得重复,门禁查重);跨 Area
|
|
61
|
+
折叠进同一 sidecar entry 后若两份 SPEC 同名,L2 保留先声明者、丢弃后声明者并记
|
|
62
|
+
`INVALID_AGENT_OUTPUT` 诊断——需要给其中一份加后缀后重跑门禁与 `finalize`;
|
|
63
|
+
- 在 `specs/<stem>-SPEC.md` 写出该 SPEC(H1 为 `# <stem>SPEC`,`## UI序列` 为 `title` 逐字,
|
|
64
|
+
正文按内联的常驻规则与门禁清单撰写);
|
|
65
|
+
- `owner` 是三变体联合:`controlGroup`(按 `controlGroupKey`)、`discovery`(按 `discoveryKey`)、
|
|
66
|
+
`agent-added`(自带 `identityAnchors`);`citations` ≥1 且行号可核对。
|
|
67
|
+
|
|
68
|
+
常驻规则(`worker-rules.md` 正文)与门禁清单(必读 + 命中才读)由 prepare **内嵌**进 `task.md`;
|
|
69
|
+
SPEC 的机械校验规则见 `check_spec.ts`。
|
|
70
|
+
|
|
71
|
+
## 3. 规则(`check-fusion` 逐条校验)
|
|
72
|
+
|
|
73
|
+
- **R1 身份由 Node 生成**:整份 output 不得出现 `控件:` 行或任何 `controlRef` 字段。只提交结构化
|
|
74
|
+
锚点。
|
|
75
|
+
- **R2 锚点非空**:每个 `controlGroup` 的 `identityAnchor`、每个 discovery 的 `identityAnchors`
|
|
76
|
+
必须可解析。
|
|
77
|
+
- **R3 SPEC 归属**:`specRecord.owner` 必须指向本 draft 内已存在的 controlGroup/discovery,或为
|
|
78
|
+
`agent-added` 且自带结构化 `identityAnchors`(`control` 必填——它是身份解析的 join key;
|
|
79
|
+
`action` 可选,仅作 provenance,展示类 SPEC 可以没有 action);`stem` 在本 draft 内唯一且必须
|
|
80
|
+
用 CLI 铸造;`title` 非空且逐字等于该 SPEC 的 `## UI序列` 行;`citations` ≥1 且行号可核对。
|
|
81
|
+
- **R4 全覆盖(draft 内)**:每个 `controlGroup` 和每个 `discovery` 必须被**恰好一条** `specRecord`
|
|
82
|
+
绑定,或在 `renderConfirmations` 中以同名 key 显式确认;两者皆无 → 校验失败。
|
|
83
|
+
(这里没有 Model 基线,不要去找 featureId。)
|
|
84
|
+
- **守恒**:每个被接纳的 candidate/discovery 恰好出现在一个 controlGroup 的一个 action 中;被
|
|
85
|
+
review/override 排除的项不得出现;同 Area 内规范化锚点唯一。源码复核发现的交互必须记为
|
|
86
|
+
`discovery`(成为某个 ControlGroup 的成员);**ActionGroup 不得为空成员**;本 Area 无交互时
|
|
87
|
+
`controlGroups` 为空。
|
|
88
|
+
- **R5 边界**:不得创建 Area/UTG link;`utgEdgeRef` 只能引用本 Area 冻结 link;不得把 unresolved
|
|
89
|
+
字段升格为确定事实;正文不得出现 Android/UniApp/Compose 等框架名。
|
|
90
|
+
- **R6 展示类 SPEC 完备性(必需,非可选)**:归并完成后必须再对本 Area 渲染/展示出来的数据做一次
|
|
91
|
+
源码复核(显示值、格式化与派生、空态/加载态、列表/弹窗内容、数据变化后的刷新);凡源码能证明、
|
|
92
|
+
用户可见且未被任何 `controlGroup`/`discovery` 覆盖的展示行为,补一条 `owner.kind="agent-added"`
|
|
93
|
+
的 `specRecord` 及对应 SPEC 文件(自带锚点、≥1 可核对 citation、`disposition:"added"`)。
|
|
94
|
+
**交互面为空时也不例外**。没有 citation 支撑的展示行为不得编造。R6 机器无法判定"是否漏"——
|
|
95
|
+
漏了不报错,但任务未完成。
|
|
96
|
+
- **R7 SPEC 唯一性(`check-fusion` 机械校验)**:每个 `controlGroup`/`discovery` **至多一条**
|
|
97
|
+
`specRecord`(重复失败——合并为一份 SPEC;一个 Control 一份 SPEC);`agent-added` 数量不限
|
|
98
|
+
(`stem` 仍须唯一)。`specs/` 目录下未声明的 `*-SPEC.md` 仍使 `check-fused-spec` 失败
|
|
99
|
+
(未声明的 SPEC 不会进入发布面)。
|
|
100
|
+
|
|
101
|
+
## 4. 自检与落盘
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
node --experimental-strip-types <spec-skill-dir>/scripts/check-fused-spec.mjs \
|
|
105
|
+
--run <run> --task <taskId> --reqgen-root <reqgen-root>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
`check-fused-spec` 先跑 `check-fusion`(读取你的 `output.json`,校验 R1–R5 与本 Area 守恒,把校验后的
|
|
109
|
+
草稿写入同目录 `draft.json`),再逐个校验 `specs[]` 声明的 SPEC(存在性、H1/`## UI序列` 一致、
|
|
110
|
+
`stem` 为 `title` 的 canonical stem、以及 `check_spec.ts` 的可判定规则)。L1 只校验结构、
|
|
111
|
+
**不铸造任何 ID**:canonical `控件:<controlRef>` 身份由全局 L2 依锚点解析(只有 L2 拥有装配后的图,
|
|
112
|
+
才能得到 `control:<caseId>/<kind>/<hash>`)。失败时只修正 `output.json`(与对应 SPEC)并重跑。
|
|
113
|
+
全局 L2(跨 Area 查重、Tier-B 降级、发布 `req-model.json` 与 `generation/spec-bindings.json`)
|
|
114
|
+
由 `finalize` 完成,不需要你参与。
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Requirement input formats
|
|
2
|
+
|
|
3
|
+
Read this file at Step 0 item 1, before splitting `requirements_input` into individual requirements. It defines the three file-mode input types and their splitting rules. This file is the operative rulebook.
|
|
4
|
+
1. Verify `requirement_description_file` exists and is a readable file, then split its content into individual requirements by input type. Keep each requirement's title and body verbatim except for the explicit app-reqgen precondition propagation below, and record them in order; do NOT analyze them yet. If no requirement can be extracted, stop and report the error.
|
|
5
|
+
- **Excel type (`.xlsx` / `.xlsm` / `.csv`)**: run `node <skill-dir>/scripts/parse_requirements.ts --input <requirement_description_file> --json` via the shell to read the file content. Each item of the returned JSON array is one raw requirement: `uiPath` is the title, `description` is the requirement body. If the script errors, surface it verbatim and stop.
|
|
6
|
+
- **Generic text type (`.txt` / `.md`)**: read the content directly. When the first non-empty line is not an Area metadata line, split on blank-line-separated paragraphs; each requirement starts with a title line followed by its description.
|
|
7
|
+
- **App-reqgen text type (`.txt` / `.md`)**: select this mode when the first non-empty line matches `访问路径:<path>` or `访问路径:<path>`.
|
|
8
|
+
- Treat the consecutive leading `访问路径` / `前置条件` / `区域说明` lines before the first blank line as Area metadata, never as a requirement. Require a non-empty access path.
|
|
9
|
+
- **`控件:<controlRef>` lines are per-requirement identity metadata**: a block that opens with a `控件:` line carries that requirement's stable Control identity (e.g. `控件:control:weatherapp/interactive-control/3259f93bec43be1b69ac`); the value after `控件:` is the `controlRef`, and the requirement's title is the next non-metadata line. Record the `controlRef` with the requirement and carry it into the spec's identity line (Step 2.5); never treat the `控件:` line itself as title or body text. A `控件:` token that is not the opening line of its block is plain body text — it carries no identity and must not be stripped or promoted. Requirements without one (Excel-sourced, legacy REQ files) simply have no control identity — never invent one.
|
|
10
|
+
- In the remaining text, identify each requirement's UI-path/title line and its following behavior description. A blank line followed by the next identifiable title starts a new requirement; blank lines inside a description do not split it. The title need not repeat the exact `访问路径` prefix: navigation wording and quotation marks may differ. Preserve each original title and body rather than rewriting them to match the metadata.
|
|
11
|
+
- **Precondition propagation format**: prepend the `前置条件:<value>` line verbatim — label included — as the first line of the requirement's in-memory description, then the original body lines. Do not merge it into the body prose and do not drop the label.
|
|
12
|
+
- If a requirement boundary cannot be identified, or body text has no identifiable title, report the ambiguous section and stop instead of guessing, merging requirements, or inventing a title.
|
|
13
|
+
- Keep `访问路径` as navigation context alongside the original feature titles, not as their required textual prefix. Prepend a non-empty `前置条件` value to each requirement's in-memory description so it remains available during exploration and spec synthesis; do not rewrite the source REQ file. Ignore `区域说明` as Area-level metadata.
|
|
14
|
+
- Do not invoke or modify `parse_requirements.ts` for this text mode.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Feature stem sanitization (Step 0.6)
|
|
19
|
+
|
|
20
|
+
Derive the feature stem from the requirement **title line in full**, with only illegal filesystem characters sanitized:
|
|
21
|
+
|
|
22
|
+
- Replace each of `< > : " / \ | ? *`, every ASCII control character, and every whitespace run (spaces, tabs) with `-`. Do not shorten, translate, re-split, or summarize the title; the stem keeps the whole UI path (e.g. `设置-歌词-悬浮窗状态栏歌词`).
|
|
23
|
+
- Collapse a run of consecutive `-` produced by sanitization into one, and trim leading/trailing `-` and whitespace.
|
|
24
|
+
- The same `<feature>` is the filename stem of the emitted `<feature>-SPEC.md`; `feature-stem.mjs --check` fails when a stem is not canonical for its `## UI序列` title line.
|
|
25
|
+
- If two requirements sanitize to the same stem, append `-2`, `-3`, … in source order and note the collision in the Step 3 report.
|
|
26
|
+
|
|
27
|
+
**Title-embedded platform symbols**: when the title carries a platform annotation — `(R.string.xxx)`, an Activity/class name, a `file:line`, or any symbol banned by 平台中立化规则 — resolve it to the user-visible value it denotes (per the rewrite table in `references/synthesis-rules.md`) or drop the parenthetical, and use the **resolved title** for the `<feature>` stem, the H1, and `## UI序列`. The original title stays verbatim in the source REQ file, and each affected spec lists the neutralization in its deviation section and the Step 3 report. A verbatim platform symbol in the H1 or `## UI序列` fails `check_spec.ts` — keeping it is not an option; the verbatim rule preserves the UI path, not platform annotations.
|