@buaa_smat/hometrans 26.0.5-devecocli.1 → 26.0.6-devecocli.1
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/code-reviewer.md +1 -1
- package/devecocli-plugin/common.ts +41 -5
- package/i18n/agents/code-reviewer.md +1 -1
- package/i18n/platforms/atomcode/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/claude-code/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/i18n/platforms/codex/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/cursor/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +10 -0
- package/i18n/platforms/qoder/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/qoder-cn/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/i18n/platforms/trae/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/platforms/trae-cn/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/i18n/skills/a2h-app-migrate/SKILL.md +32 -15
- package/i18n/skills/a2h-app-migrate/references/stage-map.md +4 -2
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +148 -89
- package/i18n/skills/a2h-app-migrate/scripts/env_preflight.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +51 -2
- package/i18n/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_interaction.mjs +0 -2
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_skill_doc.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +9 -3
- package/i18n/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +4 -2
- package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +8 -7
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -2
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +33 -12
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +14 -12
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/canvas.md +1 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/dynamics.md +32 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/geometry.md +3 -2
- package/i18n/skills/a2h-batch-ui-align/references/cards/interaction.md +4 -0
- package/i18n/skills/a2h-batch-ui-align/references/cards/resources.md +19 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +13 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/window.md +2 -2
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +205 -7
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +10 -17
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +3 -4
- package/i18n/skills/a2h-batch-ui-align/references/lottie-integration.md +47 -2
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +52 -328
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +1 -138
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +2 -11
- package/i18n/skills/a2h-batch-ui-align/references/state-mgmt/_paradigm-selection.md +1 -1
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +8 -23
- package/i18n/skills/a2h-batch-ui-align/references/step4-prepare.md +2 -1
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +17 -9
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +239 -16
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +6 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +6 -3
- package/i18n/skills/a2h-batch-ui-align/scripts/measure_pack.ts +170 -10
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +42 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +20 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +81 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/click_handler.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/collapsing_toolbar.ts +124 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/compose_semantics.ts +287 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/flowitem_width.ts +78 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +194 -8
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/inset_stacked.ts +138 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/int_division.ts +181 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +62 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_path.ts +77 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_ready.ts +109 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +88 -18
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_cycle.ts +140 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +2 -2
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/see_through_overlay.ts +149 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_builder.ts +139 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_show_close.ts +53 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/space_between_optional.ts +115 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +7 -1
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/width_fill.ts +160 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_inset_stacked.test.mjs +155 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +60 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +38 -0
- package/i18n/skills/a2h-module-semantic-docs/SKILL.md +3 -2
- package/i18n/skills/a2h-page-specgen/SKILL.md +36 -5
- package/i18n/skills/a2h-page-specgen/references/behavior-ledger.md +89 -21
- package/i18n/skills/a2h-page-specgen/references/gates.md +33 -7
- package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +67 -13
- package/i18n/skills/a2h-page-specgen/references/spec-example.md +166 -32
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +8 -5
- package/i18n/skills/a2h-page-specgen/scripts/behavior-audit.mjs +37 -1
- package/i18n/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +241 -22
- package/i18n/skills/a2h-page-specgen/scripts/behavior-model.mjs +29 -2
- package/i18n/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/contract-calls.mjs +715 -0
- package/i18n/skills/a2h-page-specgen/scripts/footprint.mjs +129 -2
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +19 -10
- package/i18n/skills/a2h-page-specgen/scripts/lib/contracts.mjs +62 -3
- package/i18n/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +27 -0
- package/i18n/skills/a2h-page-specgen/scripts/lib/hg.mjs +116 -6
- package/i18n/skills/a2h-page-specgen/scripts/operation-evidence.mjs +270 -29
- package/i18n/skills/a2h-page-specgen/scripts/prepare.mjs +26 -14
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +216 -216
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +1 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +2 -2
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +100 -15
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +118 -25
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +104 -19
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +155 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +529 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +27 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +158 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +11 -13
- package/i18n/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +97 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +737 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +75 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +24 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +124 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +6 -2
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +106 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +32 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/hg.test.mjs +12 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +6 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +11 -3
- package/i18n/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +1 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +1 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/submit.test.mjs +159 -27
- package/i18n/skills/a2h-resource-convert/SKILL.md +1 -1
- package/i18n/skills/a2h-resource-convert/references/lottie-conversion-rules.md +2 -2
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +124 -8
- package/i18n/skills/a2h-resource-convert/scripts/sync-framework-strings.mjs +147 -0
- package/i18n/skills/a2h-resource-convert/scripts/tests/framework_strings.test.mjs +131 -0
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +15 -12
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +38 -10
- package/i18n/skills/a2h-spec-design-pipeline/references/initialization.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/post-loop.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/reply-recovery.md +172 -0
- package/i18n/skills/a2h-spec-design-pipeline/references/review-loop.md +2 -2
- package/i18n/skills/a2h-spec-design-pipeline/references/scripts.md +5 -3
- package/i18n/skills/a2h-spec-design-pipeline/references/state-and-resume.md +7 -1
- package/i18n/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +1 -1
- package/i18n/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +2 -0
- package/i18n/skills/a2h-spec-generate/references/input-formats.md +1 -1
- package/i18n/skills/a2h-utg-explorer/SKILL.md +11 -5
- package/i18n/skills/a2h-utg-explorer/references/architecture.md +37 -19
- package/i18n/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +48 -3
- package/i18n/skills/a2h-utg-explorer/scripts/final_utg.mjs +21 -0
- package/i18n/skills/a2h-utg-explorer/scripts/recover_d.mjs +67 -8
- package/i18n/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +32 -0
- package/i18n/skills/a2h-utg-explorer/scripts/tests/dialog_own_layout.test.mjs +40 -0
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +63 -2
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +143 -14
- package/i18n/skills/a2h-utg-static/SKILL.md +3 -3
- package/i18n/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +4 -3
- package/i18n/skills/a2h-utg-static/scripts/click_paths.mjs +1 -1
- package/i18n/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +25 -0
- package/i18n/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +1 -0
- package/index.js +35 -1
- package/package.json +2 -1
- package/platforms/atomcode/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/claude-code/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/codebuddy/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/model-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/agents/specgen-worker.frontmatter.md +5 -0
- package/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/platforms/codex/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/cursor/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/deveco/agents/build-fixer.frontmatter.md +2 -0
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +2 -0
- package/platforms/deveco/agents/model-render-worker.frontmatter.md +2 -0
- package/platforms/deveco/agents/model-worker.frontmatter.md +2 -0
- package/platforms/deveco/agents/specgen-worker.frontmatter.md +2 -0
- package/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/opencode/agents/build-fixer.frontmatter.md +2 -0
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +2 -0
- package/platforms/opencode/agents/model-render-worker.frontmatter.md +2 -0
- package/platforms/opencode/agents/model-worker.frontmatter.md +2 -0
- package/platforms/opencode/agents/specgen-worker.frontmatter.md +2 -0
- package/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +10 -0
- package/platforms/qoder/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/qoder-cn/skills/a2h-app-migrate/SKILL.unique.md +8 -0
- package/platforms/trae/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/platforms/trae-cn/skills/a2h-app-migrate/SKILL.unique.md +3 -0
- package/plugin.jsonc +2 -2
- package/skills/a2h-app-migrate/SKILL.md +31 -14
- package/skills/a2h-app-migrate/references/stage-map.md +4 -2
- package/skills/a2h-app-migrate/references/workflow.yaml +152 -89
- package/skills/a2h-app-migrate/scripts/assert_dag_complete.mjs +1 -1
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +28 -11
- package/skills/a2h-app-migrate/scripts/dag_action_catalog.mjs +76 -0
- package/skills/a2h-app-migrate/scripts/dag_production_executor.mjs +60 -5
- package/skills/a2h-app-migrate/scripts/dag_runner.mjs +184 -4
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +1 -1
- package/skills/a2h-app-migrate/scripts/ledger.mjs +2 -2
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +3 -3
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +51 -2
- package/skills/a2h-app-migrate/test/test_dag_blocked_guard.mjs +291 -0
- package/skills/a2h-app-migrate/test/test_dag_production.mjs +40 -0
- package/skills/a2h-app-migrate/test/test_dag_runner.mjs +4 -3
- package/skills/a2h-app-migrate/test/test_i18n_engine_mirror.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_interaction.mjs +0 -2
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_spec_engine_contract.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +36 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +19 -6
- package/skills/a2h-app-migrate/test/test_validate_workflow_bilingual.mjs +4 -2
- package/skills/a2h-arkts-logic-coder/SKILL.md +8 -7
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -2
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +33 -12
- package/skills/a2h-batch-ui-align/SKILL.md +14 -12
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -0
- package/skills/a2h-batch-ui-align/references/cards/canvas.md +1 -0
- package/skills/a2h-batch-ui-align/references/cards/dynamics.md +32 -1
- package/skills/a2h-batch-ui-align/references/cards/geometry.md +3 -2
- package/skills/a2h-batch-ui-align/references/cards/interaction.md +4 -0
- package/skills/a2h-batch-ui-align/references/cards/resources.md +19 -1
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +13 -1
- package/skills/a2h-batch-ui-align/references/cards/window.md +2 -2
- package/skills/a2h-batch-ui-align/references/checker-rules.md +205 -7
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +10 -17
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +3 -4
- package/skills/a2h-batch-ui-align/references/lottie-integration.md +47 -2
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +52 -328
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +1 -138
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +2 -11
- package/skills/a2h-batch-ui-align/references/state-mgmt/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +1 -1
- package/skills/a2h-batch-ui-align/references/step3-capture.md +8 -23
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +2 -1
- package/skills/a2h-batch-ui-align/references/step5-convert.md +17 -9
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +239 -16
- package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +6 -1
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +6 -0
- package/skills/a2h-batch-ui-align/scripts/group_pass.mjs +270 -0
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +134 -16
- package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +39 -8
- package/skills/a2h-batch-ui-align/scripts/icon_coverage.mjs +6 -3
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +170 -10
- package/skills/a2h-batch-ui-align/scripts/module_placement.mjs +189 -0
- package/skills/a2h-batch-ui-align/scripts/overlay_effects.mjs +205 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +42 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +20 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +28 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/attr_chain.ts +81 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/click_handler.ts +140 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/collapsing_toolbar.ts +124 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/compose_semantics.ts +287 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/flowitem_width.ts +78 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +194 -8
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/inset_stacked.ts +138 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/int_division.ts +181 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/layout_placement.ts +62 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_path.ts +77 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/lottie_ready.ts +109 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +88 -18
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_cycle.ts +140 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/relative_container_height.ts +2 -2
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/see_through_overlay.ts +149 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_builder.ts +139 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/sheet_show_close.ts +53 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/space_between_optional.ts +115 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/theme_color.ts +7 -1
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/width_fill.ts +160 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/scan_file.ts +28 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_chrome_defaults.test.mjs +328 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_click_handler.test.mjs +127 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_compose_semantics.test.mjs +150 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +117 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_inset_stacked.test.mjs +155 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +60 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rule_smoke.test.mjs +413 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_runtime_api.test.mjs +159 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_sheet_builder.test.mjs +192 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_theme.test.mjs +4 -2
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +38 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_compose.test.mjs +106 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +15 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pass.test.mjs +150 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +125 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +56 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack_icon_leaf.test.mjs +143 -0
- package/skills/a2h-batch-ui-align/scripts/tests/module_placement.test.mjs +248 -0
- package/skills/a2h-batch-ui-align/scripts/tests/overlay_effects.test.mjs +214 -0
- package/skills/a2h-fix-build-errors/references/known-patterns.md +5 -5
- package/skills/a2h-module-semantic-docs/SKILL.md +3 -2
- package/skills/a2h-module-semantic-docs/scripts/commit_module_state.mjs +10 -0
- package/skills/a2h-module-semantic-docs/scripts/design_baseline.mjs +158 -0
- package/skills/a2h-module-semantic-docs/test/test_design_baseline.mjs +128 -0
- package/skills/a2h-page-specgen/SKILL.md +36 -5
- package/skills/a2h-page-specgen/references/behavior-ledger.md +88 -21
- package/skills/a2h-page-specgen/references/evidence.md +2 -1
- package/skills/a2h-page-specgen/references/execution-model.md +13 -5
- package/skills/a2h-page-specgen/references/gates.md +33 -7
- package/skills/a2h-page-specgen/references/scenario-authoring.md +67 -13
- package/skills/a2h-page-specgen/references/spec-example.md +166 -32
- package/skills/a2h-page-specgen/references/spec-template.md +8 -5
- package/skills/a2h-page-specgen/scripts/behavior-audit.mjs +40 -2
- package/skills/a2h-page-specgen/scripts/behavior-discovery.mjs +241 -22
- package/skills/a2h-page-specgen/scripts/behavior-model.mjs +29 -2
- package/skills/a2h-page-specgen/scripts/behavior-reconcile.mjs +35 -2
- package/skills/a2h-page-specgen/scripts/contract-calls.mjs +715 -0
- package/skills/a2h-page-specgen/scripts/finalize.mjs +55 -2
- package/skills/a2h-page-specgen/scripts/footprint.mjs +129 -2
- package/skills/a2h-page-specgen/scripts/gate.mjs +20 -11
- package/skills/a2h-page-specgen/scripts/lib/contracts.mjs +56 -3
- package/skills/a2h-page-specgen/scripts/lib/graph-evidence.mjs +27 -0
- package/skills/a2h-page-specgen/scripts/lib/hg.mjs +114 -5
- package/skills/a2h-page-specgen/scripts/lib/ledger.mjs +20 -3
- package/skills/a2h-page-specgen/scripts/operation-evidence.mjs +270 -29
- package/skills/a2h-page-specgen/scripts/prepare.mjs +25 -14
- package/skills/a2h-page-specgen/scripts/report.mjs +26 -5
- package/skills/a2h-page-specgen/scripts/submission.mjs +69 -2
- package/skills/a2h-page-specgen/scripts/submit.mjs +105 -4
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.discovery.json +224 -224
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +1 -1
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +2 -2
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +110 -18
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +97 -12
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/run.mjs +153 -3
- package/skills/a2h-page-specgen/scripts/test/android-operation-evidence.test.mjs +529 -1
- package/skills/a2h-page-specgen/scripts/test/behavior-audit-pre.test.mjs +27 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-discovery.test.mjs +158 -0
- package/skills/a2h-page-specgen/scripts/test/behavior-fixtures.mjs +11 -13
- package/skills/a2h-page-specgen/scripts/test/behavior-reconcile.test.mjs +97 -0
- package/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +737 -0
- package/skills/a2h-page-specgen/scripts/test/contracts.test.mjs +82 -3
- package/skills/a2h-page-specgen/scripts/test/finalize.test.mjs +24 -0
- package/skills/a2h-page-specgen/scripts/test/fixtures/hg.mkdb.mjs +11 -0
- package/skills/a2h-page-specgen/scripts/test/footprint-resolve.test.mjs +6 -2
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +94 -1
- package/skills/a2h-page-specgen/scripts/test/graph-evidence.test.mjs +32 -0
- package/skills/a2h-page-specgen/scripts/test/hg.test.mjs +14 -0
- package/skills/a2h-page-specgen/scripts/test/ledger.test.mjs +49 -1
- package/skills/a2h-page-specgen/scripts/test/operation-reviews.test.mjs +6 -1
- package/skills/a2h-page-specgen/scripts/test/prompt-tpl.test.mjs +12 -4
- package/skills/a2h-page-specgen/scripts/test/protocol-docs.test.mjs +1 -1
- package/skills/a2h-page-specgen/scripts/test/recovery-e2e.test.mjs +1 -0
- package/skills/a2h-page-specgen/scripts/test/report.test.mjs +80 -1
- package/skills/a2h-page-specgen/scripts/test/submit.test.mjs +159 -27
- package/skills/a2h-page-specgen/scripts/test/waker-process.test.mjs +23 -0
- package/skills/a2h-page-specgen/scripts/waker.mjs +8 -1
- package/skills/a2h-resource-convert/SKILL.md +1 -1
- package/skills/a2h-resource-convert/data/framework-strings/NOTICE +10 -0
- package/skills/a2h-resource-convert/data/framework-strings/manifest.json +90 -0
- package/skills/a2h-resource-convert/data/framework-strings/strings.json +382 -0
- package/skills/a2h-resource-convert/references/conversion-rules.md +7 -1
- package/skills/a2h-resource-convert/references/lottie-conversion-rules.md +2 -2
- package/skills/a2h-resource-convert/references/step5-reference-resolution.md +16 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +124 -8
- package/skills/a2h-resource-convert/scripts/sync-framework-strings.mjs +147 -0
- package/skills/a2h-resource-convert/scripts/tests/framework_strings.test.mjs +131 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +14 -11
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +38 -10
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +3 -0
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +6 -3
- package/skills/a2h-spec-design-pipeline/references/initialization.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/post-loop.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/reply-recovery.md +172 -0
- package/skills/a2h-spec-design-pipeline/references/review-loop.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/scripts.md +4 -3
- package/skills/a2h-spec-design-pipeline/references/shared-layer.md +24 -19
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +7 -1
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +12 -5
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +5 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +4 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/README.md +27 -3
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-param-contract.json +46 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/data/api-permission-map.json +2511 -295
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-cn.md +27 -72
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/api-permission-declared-en.md +39 -83
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +132 -101
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +158 -115
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-cn.md +60 -93
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/platform-api-contract-en.md +73 -100
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/route-page-side-effect-import-cn.md +52 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/route-page-side-effect-import-en.md +59 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ApiPermissionDeclaredCheck.js +57 -8
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +475 -18
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/PlatformApiContractCheck.js +472 -4
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/RoutePageSideEffectImportCheck.js +570 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/arkui/RouteParamCarrierSubCheck.js +1053 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/sql/SqlIdentifierAnalysis.js +427 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +7 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/settle.ts +785 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_api_permission_declared.ts +286 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_arkui_runtime_pitfall.ts +166 -2
- package/skills/a2h-spec-design-pipeline/scripts/test_docs_refresh_contract.ts +40 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +2 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_platform_api_contract.ts +350 -7
- package/skills/a2h-spec-design-pipeline/scripts/test_route_page_side_effect_import.ts +185 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_route_param_carrier.ts +341 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_settle.ts +593 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_shared_layer_docs.ts +92 -1
- package/skills/a2h-spec-design-pipeline/scripts/test_sql_identifier_analysis.ts +137 -0
- package/skills/a2h-spec-generate/references/input-formats.md +1 -1
- package/skills/a2h-utg-explorer/SKILL.md +11 -5
- package/skills/a2h-utg-explorer/references/architecture.md +37 -19
- package/skills/a2h-utg-explorer/scripts/audit.mjs +6 -2
- package/skills/a2h-utg-explorer/scripts/close_phases.mjs +8 -5
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +95 -19
- package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +192 -4
- package/skills/a2h-utg-explorer/scripts/final_utg.mjs +21 -0
- package/skills/a2h-utg-explorer/scripts/panel_routes.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/plan.mjs +16 -1
- package/skills/a2h-utg-explorer/scripts/predicates.mjs +270 -0
- package/skills/a2h-utg-explorer/scripts/promote_dynamic.mjs +2 -0
- package/skills/a2h-utg-explorer/scripts/recover.mjs +4 -3
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +67 -8
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +4 -3
- package/skills/a2h-utg-explorer/scripts/report.mjs +32 -2
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +103 -36
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +3 -8
- package/skills/a2h-utg-explorer/scripts/schedule_states.mjs +189 -0
- package/skills/a2h-utg-explorer/scripts/tests/calendar_round_fixes.test.mjs +9 -0
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +11 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +31 -2
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/tests/diagnostics.test.mjs +32 -0
- package/skills/a2h-utg-explorer/scripts/tests/dialog_own_layout.test.mjs +40 -0
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +4 -1
- package/skills/a2h-utg-explorer/scripts/tests/hybrid_route.test.mjs +6 -28
- package/skills/a2h-utg-explorer/scripts/tests/in_route_surface.test.mjs +125 -0
- package/skills/a2h-utg-explorer/scripts/tests/list_probe_target_wait.test.mjs +86 -0
- package/skills/a2h-utg-explorer/scripts/tests/multi_host.test.mjs +167 -0
- package/skills/a2h-utg-explorer/scripts/tests/nested_list.test.mjs +58 -0
- package/skills/a2h-utg-explorer/scripts/tests/overlay_opener.test.mjs +100 -0
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +8 -1
- package/skills/a2h-utg-explorer/scripts/tests/pr169_review_fixes.test.mjs +1 -0
- package/skills/a2h-utg-explorer/scripts/tests/pr191_review_fixes.test.mjs +2 -31
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +1 -1
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +56 -7
- package/skills/a2h-utg-explorer/scripts/tests/snapshot_integrity.test.mjs +117 -6
- package/skills/a2h-utg-explorer/scripts/tests/state_inventory.test.mjs +414 -0
- package/skills/a2h-utg-explorer/scripts/tests/tree_unreliable.test.mjs +197 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +196 -30
- package/skills/a2h-utg-explorer/scripts/utg_explorer/hosts.mjs +146 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +63 -2
- package/skills/a2h-utg-explorer/scripts/utg_explorer/states.mjs +286 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +197 -19
- package/skills/a2h-utg-static/SKILL.md +3 -3
- package/skills/a2h-utg-static/references/extractors.md +7 -0
- package/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +4 -3
- package/skills/a2h-utg-static/scripts/click_paths.mjs +1 -1
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +642 -22
- package/skills/a2h-utg-static/scripts/tests/test_compose_res_text.mjs +25 -0
- package/skills/a2h-utg-static/scripts/tests/test_in_route_surface.mjs +123 -0
- package/skills/a2h-utg-static/scripts/tests/test_overlay_host_effects.mjs +239 -0
- package/skills/a2h-utg-static/scripts/tests/test_shared_host_depths.mjs +48 -0
- package/skills/a2h-utg-static/scripts/utg_html.mjs +2 -0
- package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +1 -0
- package/i18n/skills/a2h-app-migrate/references/specs.example.json +0 -19
- package/i18n/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +0 -79
- package/i18n/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +0 -47
- package/skills/a2h-app-migrate/references/specs.example.json +0 -19
- package/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +0 -79
- package/skills/a2h-utg-explorer/scripts/utg_explorer/state_phase.mjs +0 -47
package/agents/code-reviewer.md
CHANGED
|
@@ -384,7 +384,7 @@ Fix every issue the review report lists, plus the Remaining Issues rows of `carr
|
|
|
384
384
|
|
|
385
385
|
**Permissions are allowlisted.** A missing-permission finding is fixed in `module.json5` `requestPermissions` only with a name that appears in the pipeline's `references/permission-index.json` (`a2h-spec-design-pipeline`; read it, do not guess) **and** is not `"restricted": true` there. A name absent from the index (an invented or misspelled permission) or a restricted (ACL) permission is never written: list it under Remaining Issues as `permission <name>: not in permission-index` / `restricted (ACL) — needs a manual application`, exactly as B2's wiring step and F0 skip them. Append only; never rewrite or reorder the existing entries.
|
|
386
386
|
|
|
387
|
-
**A fix that adds or removes a visible element checks the Android render branch first.** A spec step such as "the bottom shows the load-more footer" can come from a ViewModel assignment that the Android UI never draws in that state. When `android_project_path` is available, before adding or removing a visible element, open the Android UI code for that state (the Compose `when (state)` / `if` branch, View `visibility`, the adapter's item types) and confirm the element is drawn there. If the Android branch does not draw it, do not change the code: list the row under Remaining Issues as `spec contradicts Android render: <spec step> vs <android file:line>`, so the spec is corrected instead of the app. Observed miss: a spec said an empty
|
|
387
|
+
**A fix that adds or removes a visible element checks the Android render branch first.** A spec step such as "the bottom shows the load-more footer" can come from a ViewModel assignment that the Android UI never draws in that state. When `android_project_path` is available, before adding or removing a visible element, open the Android UI code for that state (the Compose `when (state)` / `if` branch, View `visibility`, the adapter's item types) and confirm the element is drawn there. If the Android branch does not draw it, do not change the code: list the row under Remaining Issues as `spec contradicts Android render: <spec step> vs <android file:line>`, so the spec is corrected instead of the app. Observed miss: a spec said an empty list tab "shows the load-more initial state at the bottom" because the Android ViewModel sets the load state to its initial value on an empty first page; Android's `Empty` branch draws only the empty-state view, the fix added the footer anyway, and every empty tab gained a load-more line.
|
|
388
388
|
|
|
389
389
|
**Do not revert a legitimate deviation.** A detail recorded in `commit-info.md`'s `## Spec 偏差` (search `<harmonyos_project_path>/.hometrans/spec_group_*/chunk_*/commit-info.md`) was filled from the Android source because the spec left it uncertain: when `android_project_path` is available, check the anchor and keep that behavior; change it only when the basis no longer holds (the anchor is unrelated, the spec actually settles the detail, or the report shows the implementation is wrong), and re-record the row when you do.
|
|
390
390
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* the OpenCode family (opencode / deveco) rewrites it as metadata opencode/slash to expose
|
|
44
44
|
* a slash command; other non-standard top-level fields (type / domain etc.) all move into the standard metadata field.
|
|
45
45
|
* - agent md: the OpenCode family passes it through as is (mode / permission are native); claude-code /
|
|
46
|
-
* codebuddy / trae map permission deny entries to a disallowedTools denylist;
|
|
46
|
+
* codebuddy / trae / trae-cn map permission deny entries to a disallowedTools denylist;
|
|
47
47
|
* qoder / pi map to a tools allowlist; cursor maps edit deny to readonly; codex converts to
|
|
48
48
|
* TOML (sandbox_mode has no effect in custom agents and is no longer written; bash deny ->
|
|
49
49
|
* features.shell_tool = false); atomcode converts to the role format (permission + difficulty
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
* -- description is kept on all platforms; argument-hint only on codebuddy / codex /
|
|
54
54
|
* claude-code; agent / subtask are native only to the OpenCode family (claude-code translates
|
|
55
55
|
* subtask: true to context: fork); the body template is untouched ($ARGUMENTS / $1-$3
|
|
56
|
-
* are the cross-platform intersection). Directories: trae
|
|
56
|
+
* are the cross-platform intersection). Directories: trae / trae-cn's global commands
|
|
57
|
+
* directories ~/.trae/commands and ~/.trae-cn/commands and pi's
|
|
57
58
|
* prompt template directory ~/.pi/prompts are installed again; codex commands are converted to skills
|
|
58
59
|
* and installed into skills/ ($ARGUMENTS replaced with an argument description, openai.yaml disables implicit invocation);
|
|
59
60
|
* dsh likewise converts to skills (a native key combination makes them user-invoked only); cursor commands go globally to
|
|
@@ -410,8 +411,9 @@ function home(...segments: string[]): string {
|
|
|
410
411
|
* - opencode / deveco: ~/.config/{opencode,deveco} (deveco-code is based on OpenCode;
|
|
411
412
|
* consistent with defaultEditors() in src/cli/config-store.ts); the commands'
|
|
412
413
|
* agent / subtask fields are native to both platforms
|
|
413
|
-
* - trae-cn: ~/.trae
|
|
414
|
-
*
|
|
414
|
+
* - trae / trae-cn: ~/.trae (international build) and ~/.trae-cn (mainland-China build;
|
|
415
|
+
* officially %userprofile%/.trae-cn on Windows); global commands directories
|
|
416
|
+
* ~/.trae/commands and ~/.trae-cn/commands
|
|
415
417
|
* - pi: global skills in ~/.pi/skills (pi's own directory, not the shared fallback directory
|
|
416
418
|
* ~/.agents/skills used by ht init; see the pi platform entry for why); subagents are simple-subagents
|
|
417
419
|
* extension profiles in ~/.pi/agent/agents (project-level profiles are ignored); commands
|
|
@@ -464,6 +466,23 @@ export function resolvePlatforms(): Map<string, AgentPlatform> {
|
|
|
464
466
|
verbatim: false,
|
|
465
467
|
legacyDirs: [],
|
|
466
468
|
},
|
|
469
|
+
{
|
|
470
|
+
// Trae CN is the mainland-China build of Trae: same tool set and file
|
|
471
|
+
// formats, but its own user-level root ~/.trae-cn (the international
|
|
472
|
+
// build uses ~/.trae).
|
|
473
|
+
name: 'trae-cn',
|
|
474
|
+
markerDir: home('.trae-cn'),
|
|
475
|
+
skillsDir: home('.trae-cn', 'skills'),
|
|
476
|
+
agentsDir: home('.trae-cn', 'agents'),
|
|
477
|
+
commandsDir: home('.trae-cn', 'commands'),
|
|
478
|
+
agentFormat: 'trae',
|
|
479
|
+
skillKeepAllowedTools: false,
|
|
480
|
+
skillKeepArgumentHint: false,
|
|
481
|
+
skillSlashMetadata: false,
|
|
482
|
+
commandKeepKeys: ['name', 'description'],
|
|
483
|
+
verbatim: false,
|
|
484
|
+
legacyDirs: [],
|
|
485
|
+
},
|
|
467
486
|
{
|
|
468
487
|
name: 'pi',
|
|
469
488
|
markerDir: home('.pi'),
|
|
@@ -557,6 +576,23 @@ export function resolvePlatforms(): Map<string, AgentPlatform> {
|
|
|
557
576
|
verbatim: false,
|
|
558
577
|
legacyDirs: [],
|
|
559
578
|
},
|
|
579
|
+
{
|
|
580
|
+
// Qoder CN is the mainland-China build of Qoder: same tool set and file
|
|
581
|
+
// formats, but its own user-level root ~/.qoder-cn (the international
|
|
582
|
+
// build uses ~/.qoder).
|
|
583
|
+
name: 'qoder-cn',
|
|
584
|
+
markerDir: home('.qoder-cn'),
|
|
585
|
+
skillsDir: home('.qoder-cn', 'skills'),
|
|
586
|
+
agentsDir: home('.qoder-cn', 'agents'),
|
|
587
|
+
commandsDir: home('.qoder-cn', 'commands'),
|
|
588
|
+
agentFormat: 'qoder',
|
|
589
|
+
skillKeepAllowedTools: false,
|
|
590
|
+
skillKeepArgumentHint: false,
|
|
591
|
+
skillSlashMetadata: false,
|
|
592
|
+
commandKeepKeys: ['description'],
|
|
593
|
+
verbatim: false,
|
|
594
|
+
legacyDirs: [],
|
|
595
|
+
},
|
|
560
596
|
{
|
|
561
597
|
name: 'claude-code',
|
|
562
598
|
markerDir: home('.claude'),
|
|
@@ -1277,7 +1313,7 @@ export function validateAgentFile(
|
|
|
1277
1313
|
if (!name) {
|
|
1278
1314
|
issues.push({ level: 'error', message: `${base}: missing name` });
|
|
1279
1315
|
} else {
|
|
1280
|
-
if (platform.name === 'trae' && name.length > 50) {
|
|
1316
|
+
if ((platform.name === 'trae' || platform.name === 'trae-cn') && name.length > 50) {
|
|
1281
1317
|
issues.push({ level: 'error', message: `${base}: name ${name.length} chars > 50 (trae limit)` });
|
|
1282
1318
|
}
|
|
1283
1319
|
if (platform.name === 'claude-code') {
|
|
@@ -386,7 +386,7 @@ Fix every issue the review report lists, plus the Remaining Issues rows of `carr
|
|
|
386
386
|
|
|
387
387
|
**Permissions are allowlisted.** A missing-permission finding is fixed in `module.json5` `requestPermissions` only with a name that appears in the pipeline's `references/permission-index.json` (`a2h-spec-design-pipeline`; read it, do not guess) **and** is not `"restricted": true` there. A name absent from the index (an invented or misspelled permission) or a restricted (ACL) permission is never written: list it under Remaining Issues as `permission <name>: not in permission-index` / `restricted (ACL) — needs a manual application`, exactly as B2's wiring step and F0 skip them. Append only; never rewrite or reorder the existing entries.
|
|
388
388
|
|
|
389
|
-
**A fix that adds or removes a visible element checks the Android render branch first.** A spec step such as "the bottom shows the load-more footer" can come from a ViewModel assignment that the Android UI never draws in that state. When `android_project_path` is available, before adding or removing a visible element, open the Android UI code for that state (the Compose `when (state)` / `if` branch, View `visibility`, the adapter's item types) and confirm the element is drawn there. If the Android branch does not draw it, do not change the code: list the row under Remaining Issues as `spec contradicts Android render: <spec step> vs <android file:line>`, so the spec is corrected instead of the app. Observed miss: a spec said an empty
|
|
389
|
+
**A fix that adds or removes a visible element checks the Android render branch first.** A spec step such as "the bottom shows the load-more footer" can come from a ViewModel assignment that the Android UI never draws in that state. When `android_project_path` is available, before adding or removing a visible element, open the Android UI code for that state (the Compose `when (state)` / `if` branch, View `visibility`, the adapter's item types) and confirm the element is drawn there. If the Android branch does not draw it, do not change the code: list the row under Remaining Issues as `spec contradicts Android render: <spec step> vs <android file:line>`, so the spec is corrected instead of the app. Observed miss: a spec said an empty list tab "shows the load-more initial state at the bottom" because the Android ViewModel sets the load state to its initial value on an empty first page; Android's `Empty` branch draws only the empty-state view, the fix added the footer anyway, and every empty tab gained a load-more line.
|
|
390
390
|
|
|
391
391
|
**Do not revert a legitimate deviation.** A detail recorded in `commit-info.md`'s `## Spec deviations` (search `<harmonyos_project_path>/.hometrans/spec_group_*/chunk_*/commit-info.md`) was filled from the Android source because the spec left it uncertain: when `android_project_path` is available, check the anchor and keep that behavior; change it only when the basis no longer holds (the anchor is unrelated, the spec actually settles the detail, or the report shows the implementation is wrong), and re-record the row when you do.
|
|
392
392
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is atomcode (AtomCode). Nesting depth is 1 by default — run every skill node with primary_skill_inline and never dispatch a node as a sub-agent (a node sub-agent has no task / subagent, so the leaf's internal workers cannot be dispatched); do not probe the depth configuration, do not stop and wait, do not explain scheduling to the user, and do not ask about serial or parallel.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is claude-code (Claude Code). Multi-level agent nesting is supported by default (verified on v2.1.332: up to 3 levels below the main session; the migration workflow needs only 2) — no depth probing, no blocking prompt: nodes still dispatch one sub-agent at a time per policy.dispatch (only one node sub-agent runs at any moment), and a node sub-agent can dispatch workers itself; do not explain scheduling to the user, do not ask about serial or parallel.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is codebuddy (CodeBuddy; IDE and CLI share `~/.codebuddy`). The install layer already declares `tools: Agent` in every agent frontmatter (verified: it only adds dispatch capability and narrows no other tools). Distinguish by host form:
|
|
4
|
+
|
|
5
|
+
- **CodeBuddy CLI (>= v2.187.0, verified)**: nesting depth >= 2 is supported — nodes still dispatch one sub-agent at a time per policy.dispatch (only one node sub-agent runs at any moment), and a node sub-agent can dispatch workers itself.
|
|
6
|
+
- **CodeBuddy IDE (v4.12.4, verified unsupported)**: nesting depth is 1 by default — run every skill node with primary_skill_inline and never dispatch a node sub-agent.
|
|
7
|
+
|
|
8
|
+
Do not probe the depth configuration, do not stop and wait, do not explain scheduling to the user, and do not ask about serial or parallel.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is codex (Codex CLI). Nesting depth >= 2 is supported by default — no depth probing, no blocking prompt: nodes are still dispatched one at a time per policy.dispatch (only one node sub-agent runs at a time), and a node sub-agent may dispatch its own workers; do not explain scheduling to the user, do not ask about serial or parallel.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is cursor (Cursor). Nesting depth >= 2 is supported by default — no depth probing, no blocking prompt: nodes are still dispatched one at a time per policy.dispatch (only one node sub-agent runs at a time), and a node sub-agent may dispatch its own workers; do not explain scheduling to the user, do not ask about serial or parallel.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is deveco (DevEco Code, semantically equivalent to opencode). The install layer already declares `permission: task: allow` in every agent frontmatter (verified on v0.2.6: granting the task permission on the agents is all dispatch needs), and the default nesting depth is already >= 2 — no depth probing, no blocking prompt: nodes still dispatch one sub-agent at a time per policy.dispatch (only one node sub-agent runs at any moment), and a node sub-agent can dispatch workers itself; do not explain scheduling to the user, do not ask about serial or parallel.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is opencode. Before the formal migration workflow starts, run these read-only checks (do not explain scheduling to the user, do not ask about serial or parallel):
|
|
4
|
+
|
|
5
|
+
1. **Determine the opencode version**: run `opencode --version` and tell from its output whether the current version is v1 or v2.
|
|
6
|
+
2. **Determine the current nesting depth**: look at `~/.config/opencode/opencode.json` and `~/.config/opencode/opencode.jsonc`, and read the `experimental.subagent_depth` field — that value is the current nesting depth (v1.19.6 accepts both the v1 and v2 config forms, so always read this field; v2.4.x only accepts the v2 form). If the field is undefined, it defaults to 1.
|
|
7
|
+
3. **Serial → block immediately**: if the current nesting depth is 1 (serial only), **block immediately** and prompt the user to manually edit the configuration file and set `experimental.subagent_depth` to **>= 2**; on v1 the change is **not hot-reloaded — opencode must be restarted** for it to take effect, while v2 hot-reloads it; **do not run any subsequent step this round** — continue only after the user has fixed the configuration and started a new run.
|
|
8
|
+
If the depth is already >= 2, go straight on to the subsequent workflow.
|
|
9
|
+
|
|
10
|
+
v1 additionally requires the agents to carry the task grant — the install layer already declares `permission: task: allow` in every agent frontmatter, so the user has nothing to do; v2 has no such requirement (the declaration is harmless there).
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is qoder (Qoder international build). MCP nested dispatch has not been verified on it, so take the conservative line: nesting depth is 1 by default — run every skill node with primary_skill_inline and never dispatch a node sub-agent; do not probe the depth configuration, do not stop and wait, do not explain scheduling to the user, and do not ask about serial or parallel.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is qoder-cn (Qoder CN, default path `~/.qoder-cn`). Distinguish by host form:
|
|
4
|
+
|
|
5
|
+
- **Qoder CN IDE (>= v0.5.21, verified)**: nesting depth >= 2 is supported — dispatch goes through MCP `create_chat_session`, which spins up an independent session with a fresh context: nodes are still dispatched one at a time per policy.dispatch (only one node session runs at any moment), the task prompt stays self-contained per the common header, and the node is done when that session finishes and its final message carries the JSON; a node session can dispatch workers again through the same MCP.
|
|
6
|
+
- **Qoder CN CLI (v1.1.100, verified unsupported)**: nesting depth is 1 by default — run every skill node with primary_skill_inline and never dispatch a node sub-agent.
|
|
7
|
+
|
|
8
|
+
Do not probe the depth configuration, do not stop and wait, do not explain scheduling to the user, and do not ask about serial or parallel.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is trae (Trae). Nesting depth is 1 by default — run every skill node with primary_skill_inline and never dispatch a node as a sub-agent (a node sub-agent has no task / subagent, so the leaf's internal workers cannot be dispatched); do not probe the depth configuration, do not stop and wait, do not explain scheduling to the user, and do not ask about serial or parallel.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Before Step #
|
|
2
|
+
|
|
3
|
+
This platform is trae-cn (Trae CN, default path `~/.trae-cn`). Nesting depth is 1 by default — run every skill node with primary_skill_inline and never dispatch a node as a sub-agent (a node sub-agent has no task / subagent, so the leaf's internal workers cannot be dispatched); do not probe the depth configuration, do not stop and wait, do not explain scheduling to the user, and do not ask about serial or parallel.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: a2h-app-migrate
|
|
3
|
-
description: "
|
|
3
|
+
description: "Use when the user wants to migrate an entire Android app to HarmonyOS end to end, or to resume an interrupted migration. Orchestrates env preflight, staged gates, parallel discovery, UTG snapshot, and per-page UI spec generation, then writes a manifest and a final migration report. A single failed page does not stop the rest of the run. Not for one page's spec (use a2h-page-specgen). Triggers: migrate Android app to HarmonyOS, Android to HarmonyOS, full app migration, full migration orchestration, resume migration, continue migration."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# a2h-app-migrate — workflow executor
|
|
@@ -10,7 +10,7 @@ This skill is a **thin executor** for the declarative graph in [references/workf
|
|
|
10
10
|
**The single authority on topology, gates, invoke, artifact contracts and failure policy:** `references/workflow.yaml` (especially `policy.*` + the node DAG).
|
|
11
11
|
Artifact sources of truth / CLI contract quick reference: [references/stage-map.md](references/stage-map.md).
|
|
12
12
|
|
|
13
|
-
Load the yaml → trim by `PROFILE` → let the production DAG Runner advance each node's `needs`, while semantic `invoke` work is handed to the current host
|
|
13
|
+
Load the yaml → trim by `PROFILE` → let the production DAG Runner advance each node's `needs`, while semantic `invoke` work is handed to the current host according to the node's `dispatch`: each skill node is run by one dispatched sub-agent that returns JSON, and the main session only orchestrates and calls the result back to the Runner; the production executor initializes MANIFEST, and the Runner exclusively commits LEDGER and node terminal states. Do not restate the details in this file.
|
|
14
14
|
|
|
15
15
|
**No voluntary stop for context budget** — the model must not end the run on its own because of the context budget (`policy.context_budget`). The context window, remaining tokens, a growing session or compaction are not stop conditions.
|
|
16
16
|
|
|
@@ -27,7 +27,7 @@ node ${SKILLS_ROOT}/a2h-app-migrate/scripts/dag_runner.mjs continue --state <DAG
|
|
|
27
27
|
node ${SKILLS_ROOT}/a2h-app-migrate/scripts/dag_runner.mjs status --state <DAG_RUN_DIR>/dag-run-state.json
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
`DAG_RUN_DIR` stores only Runner state, attempt requests/results and action cursors; it must be separate from production `${WORK}`, `${RUN_DIR}` and `${HMOS}`. Do not write production directories before preflight passes; `run_start` is committed only after `boot.workspace` succeeds. `continue` resumes the same `run_id`; a committed action cursor is inherited only for Runner interruption recovery, while business retries and review rewinds use a new cursor.
|
|
30
|
+
`DAG_RUN_DIR` stores only Runner state, attempt requests/results and action cursors; it must be separate from production `${WORK}`, `${RUN_DIR}` and `${HMOS}`. Do not write production directories before preflight passes; `run_start` is committed only after `boot.workspace` succeeds. `continue` resumes the same `run_id`; a committed action cursor is inherited only for Runner interruption recovery, while business retries and review rewinds use a new cursor. When `${SKILLS_ROOT}` is not passed, the Runner uses its own install location (the parent of the skill that holds `dag_runner.mjs`).
|
|
31
31
|
|
|
32
32
|
Every `run` / `continue` / `complete` / `confirm` / `rewind` stdout includes `presentation`. Before handling a wait, the host must refresh the fixed progress block from `policy.user_facing` in `events` order: render the full checklist from `checklist` and current `nodes`; select the sentence for `doing` / `terminal` from `event.user_facing`, status, reason/evidence; immediately give the user the warning requested by a `notice` event's `event.text`. Merge multiple events from one response into one checklist instead of flooding separate messages. Announce a terminal state only after the Runner returns `terminal`, never merely because the executor returned `ok:true`; `status` does not replay historical events.
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ Every `run` / `continue` / `complete` / `confirm` / `rewind` stdout includes `pr
|
|
|
35
35
|
|
|
36
36
|
When `run` / `continue` returns `waiting_external`, read `wait.kind` from the current attempt's `<file_id>.request.json`:
|
|
37
37
|
|
|
38
|
-
- `skill`: the primary session loads `wait.skill` and executes `wait.invoke`
|
|
38
|
+
- `skill`: execute according to `wait.dispatch`. `task_subagent` → **dispatch one sub-agent**, which loads `wait.skill` and executes `wait.invoke` (task prompt per `policy.dispatch`); the main session does not load the leaf skill. `primary_skill_inline` → the primary session loads `wait.skill` and executes `wait.invoke` inline. A host that cannot dispatch sub-agents or has a nesting depth of 1 falls back to inline (`policy.dispatch`). The sub-agent never calls the executor / Runner; callbacks are issued only by the main session. Never substitute a shell worker for the Skill.
|
|
39
39
|
- `host_action`: the current host performs signing adoption, the final report or another host action.
|
|
40
40
|
- `config`: collect startup configuration from the user. `image_read`: strictly follow `wait.instructions` and launch a one-shot foreground sub-agent to read images. These two use the executor's `answer` callback; the others use `complete`.
|
|
41
41
|
|
|
@@ -51,6 +51,23 @@ node ${SKILLS_ROOT}/a2h-app-migrate/scripts/dag_runner.mjs complete \
|
|
|
51
51
|
|
|
52
52
|
For config / image-read answers, replace the executor subcommand with `answer --answer <answer.json>`, then call Runner `complete` as above. The executor produces only the strict result; the host must not append node terminal states, `run_start` or `run_end`. Stale attempts, invalid results and early executor exits block the run; never record them as business soft failures or pretend they completed. Only a contract script exiting non-zero by contract (including capture_audit / gate scripts) and a host `ok:false` count as business failed; executor protocol errors, config errors (e.g. `INVALID_SKILL`, `INVALID_SET_VARS`) and implementation gaps (`UNSUPPORTED_*`) always exit non-zero without a result, and the Runner blocks.
|
|
53
53
|
|
|
54
|
+
### Runner blocked: stop and ask the user; never modify the skill
|
|
55
|
+
|
|
56
|
+
When the Runner returns `status: "blocked"` (exit 3), stdout carries a `blocked` field: `category` is the kind of block, `blocked_on` is the code the run is actually stuck on, and `host_instruction` is what the host must do. A blocked run is not a normal migration state and not something the host can fix:
|
|
57
|
+
|
|
58
|
+
| `category` | Meaning | Typical codes |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| `skill_defect` | The migration skill itself is defective: yaml / code mismatch, skill files changed | `UNSUPPORTED_*`, `INVALID_SKILL`, `SKILL_FILES_CHANGED`, `WORKFLOW_CHANGED`, or an `EXECUTOR_EXIT` whose executor stderr names one of them |
|
|
61
|
+
| `business_failure` | A node still failed after its retries, or completion evidence is incomplete: a migration result, nothing the skill can be edited into fixing | `FINALIZE_FAILED`, `DAG_INCOMPLETE`, `INVALID_COMPLETION_EVIDENCE` |
|
|
62
|
+
| `executor_error` | The executor / a host step produced no valid result: crash, timeout, missing or malformed result file | `EXECUTOR_EARLY_STOP`, `EXECUTOR_EXIT`, `EXECUTOR_INVALID_RESULT`, `EXECUTOR_TIMEOUT` |
|
|
63
|
+
| `interrupted` | The previous Runner process exited while a node was running | `RUNNER_INTERRUPTED` |
|
|
64
|
+
|
|
65
|
+
1. **Stop immediately**: report `error.code`, `error.message` and the blocked node to the user verbatim and ask how to proceed; advance no further node this turn. For `executor_error`, first check your own last command (for example a wrong `complete --result-file` path), then report.
|
|
66
|
+
2. **Never modify, patch or replace any file under `${SKILLS_ROOT}`** (`dag_runner.mjs`, `dag_production_executor.mjs`, `workflow.yaml`, leaf scripts), and never work around the check by running steps by hand, changing variables or forging results. The Runner records the sha256 and location of every script under `a2h-app-migrate/scripts` when the run starts and re-checks them on every `continue` / `complete` / `confirm` / `rewind`: an edited script or a different Runner copy blocks with `SKILL_FILES_CHANGED`, an edited `workflow.yaml` with `WORKFLOW_CHANGED`, so editing only makes the run unrecoverable.
|
|
67
|
+
3. **Only after the user explicitly decides to retry**, run `dag_runner.mjs continue --state <state> --confirmed-by user`; a `continue` without `--confirmed-by user` is refused with `BLOCKED_NEEDS_USER_CONFIRMATION`. `EXECUTOR_EARLY_STOP` needs confirmation too and is never retried automatically: the executor rejecting an action the yaml names also shows up as an executor that stopped early, and an automatic retry is exactly where a host turns to editing the skill. After the user reinstalls / upgrades hometrans to fix the defect, resume in a new DAG control directory with `run --resume-from <node>`.
|
|
68
|
+
4. Every confirmation is recorded in the state file's `blocked_acks` and shown in every Runner output; the final report must list each `blocked_acks` entry (code, node, confirmation time) so the user can check that every retry was their own decision.
|
|
69
|
+
5. The one exception is `interrupted` (`RUNNER_INTERRUPTED`): it is not a defect; just `continue` and the Runner opens a new attempt, no user confirmation needed.
|
|
70
|
+
|
|
54
71
|
`waiting_human` can advance only through a real gate confirmation or a bounded rewind, not a normal `complete` bypass:
|
|
55
72
|
|
|
56
73
|
```bash
|
|
@@ -75,13 +92,13 @@ Parsed from the user's message (in any order). Paths must be absolute.
|
|
|
75
92
|
| `WORK` | Pipeline workspace; default `${HMOS}/.hometrans/app-migrate` | No |
|
|
76
93
|
| `RUN_DIR` | Run directory of enrich.spec_gen (the pipeline passes `output=`); managed by `scripts/run_dir.mjs` by default: each fresh run gets `${WORK}/reqgen/run-<timestamp>`, the pointer `${WORK}/reqgen/current.json` records the current one, and an unfinished run is resumed and reused | No |
|
|
77
94
|
| `SPECS_JSON` | Ordered spec manifest; default `${SPEC_DIR}/specs.json` (produced by Step 5b's page-grouped root of enrich.spec_gen). **Explicitly provided = use this manifest directly**: `SKIP_SPEC_GENERATE` is set to true, spec generation and review.spec_gen are skipped, and preflight strictly validates the file | No |
|
|
78
|
-
| `PROFILE` | `full` \| `ui-only` \| `incremental
|
|
95
|
+
| `PROFILE` | `full` \| `ui-only` \| `incremental`. `incremental` = migrate the pages `SCOPE` names into an **existing** HarmonyOS project (scenario 3): ui.batch runs I1–I5 with `MODE=incremental`, and the `${HMOS}/.hometrans/incremental/scope.json` confirmed at I4 also scopes SPEC generation (`page-specgen` only); the previous round's UI / SPEC / logic outputs are not reused | No |
|
|
79
96
|
| `SCOPE` | The incremental scope: pages (page names / class names / UTG node ids, resolved by ui.batch I1–I4), `auto` (migrate "migrated pages whose source changed + pages new since the last migration", found by fingerprints; usable under auto) or one feature description (resolved by `discover.feature_scope` per `references/feature-scope.md`). Incremental needs at least one of `SCOPE` / `SCOPE_DOC` / `ANDROID_DIFF` / `SCOPE_FILE`, or preflight FAILs. Under auto the model settles the scope itself without asking the user (work types are computed by the scripts); under interactive it stops at the confirmation table | One of four when incremental |
|
|
80
97
|
| `SCOPE_DOC` | Requirement / feature documents (comma-separated; `.md` / `.txt` / `.docx` / `.pdf`), resolved into features | No |
|
|
81
98
|
| `ANDROID_DIFF` | An Android version range (git range, e.g. `v2.3..v2.4`): migrate what it added / changed | No |
|
|
82
99
|
| `REQ_HISTORY` | Requirements already described, excluded as whole features | No |
|
|
83
100
|
| `SCOPE_FILE` | A confirmed `scope.json` (v1 / v2), validated and used as is | No |
|
|
84
|
-
| `FROM_NODE` | Node id to resume from (`
|
|
101
|
+
| `FROM_NODE` | Node id to resume from (anything other than `bootstrap` means resume). Resume inherits the original run's profile (read from the ledger; cannot be changed); ancestors the original run completed must be reused and their artifacts must be complete, skipped / soft-failed ones keep their original results, and FROM_NODE and its downstream run as usual (`resume_plan.mjs`, see `policy.resume_from`) | No |
|
|
85
102
|
| `RESUME_BASE_PROFILE` | The original run's profile when resuming; required only when the ledger is missing (WORK deleted) | No |
|
|
86
103
|
| `ENGINE_MODE` | Homegraph evidence strictness, passed to design-pipeline / module-docs; `auto`\|`off`\|`required`, default `auto` | No |
|
|
87
104
|
| `SPEC_ENGINE` | SPEC generation engine: `page-specgen` (default, one SPEC per page, publishes with holes instead of hard-stopping: a partial or gate-failed run records `completeness:"incomplete-known"` and the node still succeeds) \| `spec-generate` (optional, the fused a2h-spec-generate chain); written into the run pointer and the ledger, a resume inherits it and an explicit switch is a Hard-Stop | No |
|
|
@@ -139,7 +156,7 @@ devecocli login: a prerequisite only when **the project has no signing config ye
|
|
|
139
156
|
Emulator network: when an online hdc target is an **emulator** (`127.0.0.1:`), preflight probes that emulator's internet connectivity via `hdc -t <target> shell ping`; unreachable is only a WARN (the host's VPN / proxy / firewall often cuts the emulator's NAT). Real devices are not checked.
|
|
140
157
|
`ask_run_config_once` must come **before** preflight; workspace disk writes must come **after** preflight (see `policy.human_interaction`).
|
|
141
158
|
Image-read probe (see `policy.image_read`): when UI will run this round, bootstrap env-probes after preflight (`probe_image_read` / `tip_image_read_false`); **never** pass that verdict to `ui.batch` — the leaf Step 1 **probes again** and writes `host_caps.json`. Skip the env probe on resume after UI is done / UI reuse (`REUSE_UI_BATCH=true`).
|
|
142
|
-
|
|
159
|
+
Scheduling is fixed serial; skill nodes run in dispatched sub-agents (`policy.dispatch`).
|
|
143
160
|
Ask for the run mode first: `auto` / `interactive`. Once `auto` is chosen, do not show the gates that need a manual check again, and record `INTERACTIVE_GATES` as an empty string. Only when `interactive` is chosen, ask a separate question to tick the gates; do not put it in the same question as the run mode.
|
|
144
161
|
|
|
145
162
|
---
|
|
@@ -151,18 +168,19 @@ The full text lives only in `workflow.yaml` → `policy.*`. The executor must co
|
|
|
151
168
|
1. **Single authority** — topology / invoke / gates come only from the yaml; before changing an invoke, read the leaf skill's Invocation (contract table in stage-map.md).
|
|
152
169
|
2. **scaffold_new** — `discover.arch` must be the first to touch `${HMOS}` (`create_project`'s emptiness check ignores only `.git`) → `policy.parallel_rule`.
|
|
153
170
|
3. **post_utg** — fixed serial: `ui.batch` → `enrich.spec_gen`; spec_gen always reads only `${UTG_SNAPSHOT}` → `policy.parallel_rule`.
|
|
154
|
-
4. **
|
|
155
|
-
5. **Gates** — do not skip a node because of an `auto` confirmation (otherwise nobody writes the checkpoint); `auto` or the gate not in `INTERACTIVE_GATES` → `--write-confirmed --confirmed-by auto`; on the whitelist, stop and wait, and after the user confirms, `--write-confirmed --confirmed-by user` → `policy.human_interaction`. `review.arch` does **not** `skip_if` on `REUSE_DISCOVER_ARCH` (reusing the docs ≠ confirmation; a missing checkpoint must be rewritten / re-asked — see `policy.human_gate_protocol`). Producer nodes (`discover.arch` / `enrich.spec_gen` / `ui.batch`) must run their `before_run` **before actually executing** (`--clear-checkpoint` invalidates the corresponding gate); when reusing artifacts or skipping, clearing is **forbidden**.
|
|
171
|
+
4. **Dispatch** — the main session loads only this skill and orchestrates; it **loads no leaf skill**. The Runner's skill wait carries `wait.dispatch`: the 6 skill nodes (arch / utg_static / ui.batch / spec_gen / module_docs / spec_pipeline) are `task_subagent` and each run in one dispatched sub-agent (depth 1; the leaves' internal workers are at depth 2), one at a time, in fixed serial order. task prompt = the `policy.dispatch` common header + `wait.invoke`. A sub-agent must not end its turn to wait for background notifications: page-specgen gets `wait_mode=foreground` and spec_pipeline gets `WAIT_MODE=foreground`. The return value is not trusted: the main session only writes it as the outcome callback, and the Runner judges completion by the node's success checks; a reply that is not JSON → continue the same session, at most 2 times. The only exception: with `SPEC_ENGINE=spec-generate` enrich.spec_gen is `primary_skill_inline` and runs inline in the main session → `policy.dispatch`.
|
|
172
|
+
5. **Gates** — do not skip a node because of an `auto` confirmation (otherwise nobody writes the checkpoint); `auto` or the gate not in `INTERACTIVE_GATES` → `--write-confirmed --confirmed-by auto`; on the whitelist, stop and wait, and after the user confirms, `--write-confirmed --confirmed-by user` → `policy.human_interaction`. `review.arch` does **not** `skip_if` on `REUSE_DISCOVER_ARCH` (reusing the docs ≠ confirmation; a missing checkpoint must be rewritten / re-asked — see `policy.human_gate_protocol`). Producer nodes (`discover.arch` / `enrich.spec_gen` / `ui.batch`) must run their `before_run` **before actually executing** (`--clear-checkpoint` invalidates the corresponding gate); when reusing artifacts or skipping, clearing is **forbidden**. The production executor commits the before_run cursor item by item before returning the Skill wait; for a node with `after_run`, the executor runs it first after the host callback, then the Runner judges success.
|
|
156
173
|
6. **spec boundary** — `specs.json` is written only by enrich.spec_gen's leaf picked by `SPEC_ENGINE` (`spec-generate` → a2h-spec-generate's `publish-specs`; `page-specgen` → a2h-page-specgen's `finalize`); do not expand the leaf's internals; do not change the `${RUN_DIR}` layout → `policy.spec_order_boundary`. When semantics are incomplete, publish with gaps per the **deveco-cli contract**: the three steps use `--allow-incomplete`, specs.json records `completeness: "incomplete-known"` + `incomplete{...}`, the node still succeeds, downstream consumes as usual, and the gaps stay in specs.json incomplete; they are not written into the final report (see enrich.spec_gen's invoke); the one exception: on an incremental run, scope pages that got no SPEC (`incomplete.scopeUnmatched` / `scope.unmatched`) are the outcome of the incremental scope, not a SPEC quality gap, and logic.finalize's "Incremental scope" section (`scope_report.mjs`) lists them under "what was skipped". `page-specgen` publishes with holes the same way: `finalize` exits 0 whenever it published a `specs.json`; a partial or gate-failed run writes `incomplete{areas,pages,failedShards,...}` into the manifest and the ledger, not the final report, and downstream consumes it as usual; only "no SPEC published at all" fails the node. Switching engines = a new run.
|
|
157
174
|
|
|
158
175
|
7. **module_docs** — pass only `--engine-mode` / `--incremental preserve` / `--scope project-source` (no `--hometrans-dir` / `--doc-layout`); it refreshes the `.hometrans/project_design.md` written by arch, and completion is judged by `module_understanding/.module_semantic_docs_state.json`.
|
|
159
176
|
8. **soft_continue** — a failed node is recorded in the ledger and downstream is scheduled as usual (`policy.failure_semantics`); when `ui.batch` fails, `review.ui_batch` switches to `--upstream-failed` (the user chooses "drop UI, continue" / "rerun"; auto confirms directly), and the logic chain **must not** be hard-stopped because of a UI failure.
|
|
160
|
-
9. **Leaf questions** — known questions (arch's homegraph init, the application module, smoke-test login, paths/keys) are answered in advance by the orchestrator;
|
|
177
|
+
9. **Leaf questions** — known questions (arch's homegraph init, the application module, smoke-test login, paths/keys) are answered in advance by the orchestrator; sub-agents never ask the user directly: under interactive they return `needs_input`, the main session asks the user and redispatches the same node with the answer; auto uses the safe default or returns `ok:false` → `policy.leaf_questions` / `policy.dispatch`.
|
|
161
178
|
10. **homegraph** — global CLI + the reqgen package. `env_preflight` runs `homegraph --version`; if it is not on PATH (or spec generation runs this round and the version is below 1.5.2), first run `npm i -g homegraph@^1.5.2 arkanalyzer`, then verify again. Still unavailable → **Hard-Stop**. Spec generation also loads the homegraph package from `reqgen/node_modules` (`ht init` wires it with npm link); if it cannot be resolved → FAIL. An index/CLI version mismatch self-heals via a full rebuild in `discover.android_index` (see that node).
|
|
162
179
|
11. **Talking to the user** — progress is sent only as a fixed chat block: the title "Migration progress" + the `progress_checklist` numbered list (completed items ticked, started ones marked "In progress", items not done this round take no number) + one `user_facing` sentence under the list for the step that just changed. Refresh only when an orchestration node starts / reaches a terminal state; do not go into leaf internals, and do not build a board. The reviews of the architecture notes / converted UI / feature list and signing are not in the list. Node ids are appended at the end only for resume or rerun. See `policy.user_facing`.
|
|
163
|
-
12. **Context budget** — the model must not end the run on its own because of the context budget. The context window, remaining tokens, a growing session or compaction are not terminal states; after compaction continue from the ledger and artifacts. Stopping is allowed only for the hard_stop, gate waits
|
|
180
|
+
12. **Context budget** — the model must not end the run on its own because of the context budget. The context window, remaining tokens, a growing session or compaction are not terminal states; after compaction continue from the ledger and artifacts. Stopping is allowed only for the hard_stop, gate waits, needs_input questions, fail_matrix already written in the yaml, the platform adaptation layer's Before Step nesting-depth check being unsatisfied (stop and wait while the user fixes the configuration), and `enrich.spec_gen` (only `SPEC_ENGINE=spec-generate`, inline) waiting for background completion notifications; waiting for a sub-agent to return is not a stop → `policy.context_budget`.
|
|
164
181
|
13. **Resume summaries** — write `${WORK}/resume_summaries/<node>.json` with the ledger (`run_at` / skipped tombstone); fresh runs `--clear-stale`. On resume open with `write_resume_summary.mjs --work ${WORK} --show [--ledger ${LEDGER}]` (read `JSON.line`). Do **not** hang on `after_run` or use as a REUSE basis → `policy.failure_semantics` / `policy.resume_from`.
|
|
165
182
|
14. **Cheap ancestors on resume** — `review.arch` still runs even when arch docs are reused (a valid checkpoint makes the gate exit 0 immediately); `discover.utg_snapshot` digests the contract files (`utg.json` + `click_paths.json`) and skips the copy when they match → `policy.resume_from`.
|
|
183
|
+
15. **blocked means stop** — when the Runner is `blocked`, stop and tell the user verbatim according to `blocked.category`; **never modify any file under `${SKILLS_ROOT}` or work around the check**; only after the user decides to retry run `continue --confirmed-by user` (except `interrupted`); the final report lists `blocked_acks` → "Runner blocked" above.
|
|
166
184
|
|
|
167
185
|
### SPEC engine differences (`SPEC_ENGINE=page-specgen`, the default engine)
|
|
168
186
|
|
|
@@ -198,7 +216,7 @@ See workflow.yaml → `observability`.
|
|
|
198
216
|
| `references/workflow.yaml` | **Single authority: policy + DAG + invoke** |
|
|
199
217
|
| `references/stage-map.md` | Artifact source-of-truth / CLI contract table |
|
|
200
218
|
| `references/config.example.json` | Parameter example |
|
|
201
|
-
| `scripts/env_preflight.mjs` | Startup preflight / one-click customer self-check (fills in work/run-dir/ui-info-root by default); fixed serial |
|
|
219
|
+
| `scripts/env_preflight.mjs` | Startup preflight / one-click customer self-check (fills in work/run-dir/ui-info-root by default); scheduling is fixed serial |
|
|
202
220
|
| `scripts/infer_android_root.mjs` | At entry, determines the Android project root from the APK path prefix (substitutes it when the given path is not the project root, before preflight) |
|
|
203
221
|
| `scripts/paths_preflight.mjs` | Path submodule |
|
|
204
222
|
| `scripts/validate_workflow.mjs` | Static self-check of workflow.yaml (including every production node's Runner kind, fixed order, reuse/skip, gates and finalize ownership) |
|
|
@@ -210,13 +228,13 @@ See workflow.yaml → `observability`.
|
|
|
210
228
|
| `scripts/check_signing.mjs` | adopt.signing: whether build-profile.json5 can do a signed build (`app.signingConfigs` non-empty, and the built product's `signingConfig` references one of them; only the reference missing → exit 3) |
|
|
211
229
|
| `scripts/check_spec_pipeline_done.mjs` | Completion check for logic.spec_pipeline (all groups terminal, no unfinished chunks, Finalization has written `state.finalization` **with both gate markers** `finalization.homecheck` / `finalization.smoke` — `done` alone is not completion; all failed → exit 3; hard fingerprint `specs_json_sha256`/paths mismatch → exit 4; soft knobs like `wave_width` go to `soft_stale` only and do not archive; `--archive-stale` / `--archive-failed` archive only on exit 4/3 so before_run can start a new round) |
|
|
212
230
|
| `scripts/check_module_docs_done.mjs` | Completion check for enrich.module_docs (`--mark` records the start time; the state file must be no older than it — the state file is the incremental baseline and is kept across runs) |
|
|
213
|
-
| `scripts/check_ui_batch_done.mjs` | Probe 4: whether ui.batch is reusable (batch_report.md exists, batch_progress.json's mode is full, no pending pages) |
|
|
231
|
+
| `scripts/check_ui_batch_done.mjs` | Probe 4: whether ui.batch is reusable (batch_report.md exists, batch_progress.json's mode is full, no pending pages, no open group); also the ui.batch node's success check (`--mode incremental` under profile=incremental) |
|
|
214
232
|
| `scripts/ledger.mjs` | Reads/writes `${LEDGER}`: append only, kept across runs; supports `--start` / `--node … --status` / `--failures`; in production only the Runner commits run_start, node terminal states and the unique run_end, never the host directly |
|
|
215
233
|
| `scripts/diagnose.mjs` | Incremental start-up diagnosis (read-only): scenario 1 / 2 / 3, reuse / repair / rebuild per artifact, migrated pages whose source changed and new pages, the scope `SCOPE=auto` recommends |
|
|
216
234
|
| `scripts/source_fp.mjs` | Per-page Android source fingerprint (UTG anchors + referenced layouts, line endings normalised); written into the ledger at finalize, so the diagnosis finds migrated pages whose source changed |
|
|
217
235
|
| `scripts/migration_manifest.mjs` | logic.finalize step 4: merges this round's UI / business-logic status per UTG page id into `${HMOS}/.hometrans/migration_manifest.json` (kept across runs and scopes; a failed retry never overwrites a migrated record; never fails the node) |
|
|
218
236
|
| `scripts/write_resume_summary.mjs` | Write/clear resume summaries; `--show` reads a one-line progress handoff (`JSON.line`) |
|
|
219
|
-
| `scripts/resume_plan.mjs` | Reuse decisions for
|
|
237
|
+
| `scripts/resume_plan.mjs` | Reuse decisions for resuming from FROM_NODE: inherits the original run's profile and, based on ancestors / downstream / original terminal states, yields each REUSE_*, the probe items that must be complete, and the failures carried over |
|
|
220
238
|
| `scripts/android_index.mjs` | discover.android_index: the Android-side homegraph index is built / synced only here, once (init the first time, index only when incomplete, sync every time; `--check` verifies read-only); downstream only reads |
|
|
221
239
|
| `scripts/check_utg_static_done.mjs` | Completion check for discover.utg_static (every stage of this run is 0, not degraded, reached Phase B, artifacts are not leftovers; `next=resume` reruns with `--resume`) |
|
|
222
240
|
| `scripts/ensure_utg_snapshot.mjs` | discover.utg_snapshot: skip the copy when contract-file sha256 matches; otherwise overwrite the whole tree into `${UTG_SNAPSHOT}` |
|
|
@@ -250,5 +268,4 @@ Just resend the original startup command.
|
|
|
250
268
|
|
|
251
269
|
- Running a single step only → call the corresponding a2h-* leaf skill directly (see `CORE_SKILLS` in `env_preflight.mjs`)
|
|
252
270
|
- Only need source→SPEC→specs.json → use `a2h-spec-generate` directly
|
|
253
|
-
|
|
254
271
|
- Only need grouped/wave logic conversion (specs.json is ready) → use `a2h-spec-design-pipeline` directly
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
| a2h-batch-ui-align | ui.batch (PROFILE≠incremental: full campaign, matching `batch_progress` → Resume from progress; PROFILE=incremental: MODE=incremental, writes `${HMOS}/.hometrans/incremental/scope.json` once I4 is confirmed) | android_project_dir, harmony_project_dir, apk_path; [app_module], [ADB_PATH / ADB_SERIAL], [DEVECO_HOME], android_index_ready=true, [takeover_allowed=true]; incremental adds MODE=incremental, scope_request=${SCOPE} |
|
|
33
33
|
| a2h-arch-generate | discover.arch | android, --target-project-dir, --layered-architecture; [--scope], [--follow-source], [--app-module] |
|
|
34
34
|
| a2h-spec-generate | enrich.spec_gen | android, utg-workspace=${UTG_SNAPSHOT}, output=${RUN_DIR}, concurrency=${SPEC_CONCURRENCY} (decided by run_dir.mjs: resume and reuse / otherwise create a new run-<timestamp>), [application-module=${APP_MODULE}] |
|
|
35
|
-
| a2h-page-specgen | enrich.spec_gen (only SPEC_ENGINE=page-specgen) | <src> ${UTG_SNAPSHOT} ${HMOS} --out ${SPEC_DIR} --concurrency ${SPEC_CONCURRENCY} --engine-mode ${ENGINE_MODE} --design-dir ${DESIGN_DIR} [--scope ${SCOPE_JSON} only PROFILE=incremental]; prepare → waker rearm → event loop → finalize |
|
|
36
|
-
| a2h-spec-design-pipeline | logic.spec_pipeline (
|
|
35
|
+
| a2h-page-specgen | enrich.spec_gen (only SPEC_ENGINE=page-specgen) | <src> ${UTG_SNAPSHOT} ${HMOS} --out ${SPEC_DIR} --concurrency ${SPEC_CONCURRENCY} --engine-mode ${ENGINE_MODE} --design-dir ${DESIGN_DIR} [--scope ${SCOPE_JSON} only PROFILE=incremental]; `wait_mode=foreground` (foreground waker wait inside the sub-agent); prepare → waker rearm → event loop → finalize |
|
|
36
|
+
| a2h-spec-design-pipeline | logic.spec_pipeline (dispatched sub-agent, `WAIT_MODE=foreground` **mandatory**) | specs.json, android, hmos, design_dir, WAIT_MODE=foreground; groups are split by the SPEC `./<page>/` page directories (pages root; spec-design-pipeline derives it via spec_layout) |
|
|
37
37
|
| a2h-module-semantic-docs | enrich.module_docs | hmos, --engine-mode, --incremental preserve, **--scope project-source** |
|
|
38
38
|
| human_review_gate.mjs | review.arch / review.spec_gen / review.ui_batch | `--gate arch\|spec_gen\|ui_batch`; add `--write-confirmed --confirmed-by auto` when `INTERACTION_MODE=auto` or the gate is not in `INTERACTIVE_GATES`, and `--confirmed-by user` after the user confirms; `--clear-checkpoint` before a producer node actually runs |
|
|
39
39
|
|
|
@@ -48,3 +48,5 @@
|
|
|
48
48
|
### What the logic report reads
|
|
49
49
|
|
|
50
50
|
`logic.finalize` reads: `${HMOS}/.hometrans/spec_pipeline_state.json` (v2), `${DESIGN_DIR}/design_map.md`, and optionally `wave_*/claim_audit.json`. The orchestration does not set `REQ_DIR` (no REQ is produced).
|
|
51
|
+
|
|
52
|
+
The `groups[].review.open / scenarios / cross_cutting` entries in it are **review-time snapshots**: the remaining waves still merge after that group's review, so a gap in the snapshot may already have been closed by a later group. Before any such item enters ${LOGIC_REPORT} as a "known leftover", it must be re-verified item by item against the final merged trunk (rule in workflow.yaml `logic.finalize` step 2: resolved items are reported as resolved with evidence, only unresolved ones are listed as leftovers, runtime-only items are labeled as review-time snapshots).
|