@buaa_smat/hometrans 26.0.4 → 26.0.5-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 +2 -0
- package/agents/model-render-worker.md +1 -1
- package/devecocli-plugin/common.ts +2271 -0
- package/devecocli-plugin/content-resolver.ts +363 -0
- package/devecocli-plugin/install.ts +72 -0
- package/devecocli-plugin/uninstall.ts +26 -0
- package/devecocli-plugin/update.ts +77 -0
- package/i18n/agents/code-reviewer.md +2 -0
- package/i18n/agents/model-render-worker.md +1 -1
- package/i18n/skills/a2h-app-migrate/SKILL.md +51 -3
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +140 -32
- package/i18n/skills/a2h-app-migrate/scripts/dag_graph.mjs +297 -0
- package/i18n/skills/a2h-app-migrate/scripts/validate_workflow.mjs +134 -21
- package/i18n/skills/a2h-app-migrate/test/test_finalize.mjs +21 -4
- package/i18n/skills/a2h-app-migrate/test/test_image_probe.mjs +3 -3
- package/i18n/skills/a2h-app-migrate/test/test_resume_plan.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +1 -1
- package/i18n/skills/a2h-app-migrate/test/test_utg_static_done.mjs +12 -5
- package/i18n/skills/a2h-arkts-logic-coder/SKILL.md +7 -8
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +1 -1
- package/i18n/skills/a2h-arkts-logic-coder/references/code-generation.md +27 -15
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +1 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +4 -0
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +36 -0
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +4 -0
- package/i18n/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +4 -0
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +3 -3
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/main.ts +8 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_in_linear.ts +164 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/self_drawn_sheet.ts +105 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/staggered_lanes.ts +127 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/window_size_constant.ts +114 -0
- package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +4 -1
- package/i18n/skills/a2h-page-specgen/references/spec-example.md +35 -5
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +4 -4
- package/i18n/skills/a2h-spec-generate/SKILL.md +3 -1
- package/i18n/skills/a2h-spec-generate/references/fusion-task-contract.md +15 -3
- package/i18n/skills/a2h-spec-generate/references/review-checklist.md +1 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-complex.md +16 -0
- package/i18n/skills/a2h-spec-generate/references/spec-sample-transfer.md +16 -0
- package/i18n/skills/a2h-spec-generate/references/spec-samples.md +5 -1
- package/i18n/skills/a2h-spec-generate/references/synthesis-rules.md +21 -1
- package/i18n/skills/a2h-spec-generate/references/worker-rules.md +25 -2
- package/i18n/skills/a2h-spec-generate/scripts/check_spec.ts +121 -6
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +2 -1
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +3 -0
- package/i18n/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +16 -2
- package/i18n/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +11 -2
- package/i18n/skills/a2h-spec-generate/test/check-spec.test.ts +35 -0
- package/index.js +1643 -0
- package/package.json +8 -8
- package/plugin.jsonc +12 -0
- package/skills/a2h-app-migrate/SKILL.md +53 -5
- package/skills/a2h-app-migrate/references/workflow.yaml +140 -32
- package/skills/a2h-app-migrate/scripts/assert_dag_complete.mjs +226 -0
- package/skills/a2h-app-migrate/scripts/dag_graph.mjs +297 -0
- package/skills/a2h-app-migrate/scripts/dag_process_executor.mjs +199 -0
- package/skills/a2h-app-migrate/scripts/dag_production_executor.mjs +897 -0
- package/skills/a2h-app-migrate/scripts/dag_runner.mjs +1767 -0
- package/skills/a2h-app-migrate/scripts/ledger.mjs +15 -2
- package/skills/a2h-app-migrate/scripts/lib-yaml-lite.mjs +8 -2
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +3 -8
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +134 -21
- package/skills/a2h-app-migrate/test/test_dag_complete.mjs +222 -0
- package/skills/a2h-app-migrate/test/test_dag_production.mjs +670 -0
- package/skills/a2h-app-migrate/test/test_dag_runner.mjs +423 -0
- package/skills/a2h-app-migrate/test/test_finalize.mjs +21 -4
- package/skills/a2h-app-migrate/test/test_image_probe.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +16 -1
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +1 -1
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +12 -5
- package/skills/a2h-arkts-logic-coder/SKILL.md +7 -8
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +1 -1
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +27 -15
- package/skills/a2h-batch-ui-align/SKILL.md +1 -1
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +4 -0
- package/skills/a2h-batch-ui-align/references/checker-rules.md +36 -0
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +4 -0
- package/skills/a2h-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +4 -0
- package/skills/a2h-batch-ui-align/references/step5-convert.md +3 -3
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +49 -3
- package/skills/a2h-batch-ui-align/scripts/static_check/core/android.ts +36 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/main.ts +8 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/registry.ts +8 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/overlay_in_linear.ts +164 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/self_drawn_sheet.ts +105 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/staggered_lanes.ts +127 -0
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/window_size_constant.ts +114 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_coolmall_ds1123.test.mjs +433 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_overlay_in_linear.test.mjs +288 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +46 -0
- package/skills/a2h-page-specgen/references/scenario-authoring.md +4 -1
- package/skills/a2h-page-specgen/references/spec-example.md +35 -5
- package/skills/a2h-page-specgen/references/spec-template.md +4 -4
- package/skills/a2h-spec-generate/SKILL.md +3 -1
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +15 -3
- package/skills/a2h-spec-generate/references/review-checklist.md +1 -0
- package/skills/a2h-spec-generate/references/spec-sample-complex.md +16 -0
- package/skills/a2h-spec-generate/references/spec-sample-transfer.md +16 -0
- package/skills/a2h-spec-generate/references/spec-samples.md +5 -1
- package/skills/a2h-spec-generate/references/synthesis-rules.md +21 -1
- package/skills/a2h-spec-generate/references/worker-rules.md +25 -2
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +3 -1
- package/skills/a2h-spec-generate/scripts/check_spec.ts +262 -6
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +12 -2
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-behavior-e2e.test.ts +3 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +16 -2
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +54 -3
- package/skills/a2h-spec-generate/test/check-spec.test.ts +247 -0
- package/README.md +0 -440
- package/dist/cli/config-store.js +0 -128
- package/dist/cli/config.js +0 -48
- package/dist/cli/editors.json +0 -114
- package/dist/cli/env-vars.js +0 -127
- package/dist/cli/index.js +0 -76
- package/dist/cli/init.js +0 -2618
- package/dist/cli/uninstall.js +0 -406
- package/dist/platform/compose.js +0 -228
- package/dist/platform/frontmatter.js +0 -151
- package/dist/platform/installer.js +0 -417
- package/dist/platform/language.js +0 -77
- package/dist/platform/registry.js +0 -337
- package/dist/platform/transform.js +0 -363
- package/dist/platform/types.js +0 -9
- package/dist/platform/validate.js +0 -152
- package/dist/utils/regex.js +0 -7
- package/env-requirements.json +0 -536
- package/resource/choose_editor.png +0 -0
- package/resource/convert_pipeline_process.svg +0 -114
- package/resource/project_architecture.svg +0 -120
- 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
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 740" width="1400" height="740">
|
|
2
|
-
<style>
|
|
3
|
-
text { font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', 'Microsoft JhengHei', 'SimHei', sans-serif; }
|
|
4
|
-
.title { font-size: 16px; font-weight: 600; fill: #111827; }
|
|
5
|
-
.grp { font-size: 13px; font-weight: 600; fill: #4b5563; }
|
|
6
|
-
.nt { font-size: 12px; font-weight: 600; fill: #111827; }
|
|
7
|
-
.nts { font-size: 11px; font-weight: 600; fill: #111827; }
|
|
8
|
-
.ns { font-size: 10px; fill: #6b7280; }
|
|
9
|
-
.pout { font-size: 10px; fill: #047857; }
|
|
10
|
-
.ent { font-size: 14px; font-weight: 600; fill: #065f46; }
|
|
11
|
-
</style>
|
|
12
|
-
|
|
13
|
-
<rect width="1400" height="740" fill="#ffffff"/>
|
|
14
|
-
<text x="700" y="28" text-anchor="middle" class="title">HomeTrans 能力全景图</text>
|
|
15
|
-
|
|
16
|
-
<!-- 入口层 -->
|
|
17
|
-
<rect x="40" y="44" width="1320" height="58" rx="12" fill="#ecfdf5" stroke="#059669" stroke-width="1.8"/>
|
|
18
|
-
<text x="700" y="68" text-anchor="middle" class="ent">全流程入口:/hometrans → a2h-app-migrate</text>
|
|
19
|
-
<text x="700" y="88" text-anchor="middle" class="ns">参数/环境预检 → 架构生成 + 静态UTG → UI迁移 ∥ Spec生成 → 规格设计实现 → 构建修复 + 冷启动冒烟(断点续跑 · 人工闸门)</text>
|
|
20
|
-
<path d="M700 102 L700 114" stroke="#059669" stroke-width="1.6"/>
|
|
21
|
-
<path d="M694 110 L700 117 L706 110" fill="none" stroke="#059669" stroke-width="1.6"/>
|
|
22
|
-
|
|
23
|
-
<!-- 能力层 -->
|
|
24
|
-
<rect x="40" y="118" width="1320" height="180" rx="12" fill="#fbfdff" stroke="#93c5fd" stroke-width="1.4" stroke-dasharray="8,5"/>
|
|
25
|
-
<text x="700" y="140" text-anchor="middle" class="grp">能力层:Skills(4步主流程,可单独调用)</text>
|
|
26
|
-
|
|
27
|
-
<rect x="80" y="158" width="280" height="80" rx="8" fill="#eff6ff" stroke="#2563eb" stroke-width="1.6"/>
|
|
28
|
-
<text x="220" y="185" text-anchor="middle" class="nt">步骤1 架构生成</text>
|
|
29
|
-
<text x="220" y="205" text-anchor="middle" class="nts">a2h-arch-generate</text>
|
|
30
|
-
<text x="220" y="224" text-anchor="middle" class="pout">Android源码 → 架构设计 + 工程骨架</text>
|
|
31
|
-
|
|
32
|
-
<rect x="380" y="158" width="280" height="80" rx="8" fill="#eff6ff" stroke="#2563eb" stroke-width="1.6"/>
|
|
33
|
-
<text x="520" y="185" text-anchor="middle" class="nt">步骤2 UI迁移</text>
|
|
34
|
-
<text x="520" y="205" text-anchor="middle" class="nts">a2h-batch-ui-align</text>
|
|
35
|
-
<text x="520" y="224" text-anchor="middle" class="pout">Activity快照 → ArkTS页面 + 资源 + UTG</text>
|
|
36
|
-
|
|
37
|
-
<rect x="680" y="158" width="280" height="80" rx="8" fill="#eff6ff" stroke="#2563eb" stroke-width="1.6"/>
|
|
38
|
-
<text x="820" y="178" text-anchor="middle" class="nt">步骤3 需求规格生成</text>
|
|
39
|
-
<text x="820" y="196" text-anchor="middle" class="nts">a2h-spec-generate</text>
|
|
40
|
-
<text x="820" y="211" text-anchor="middle" class="ns">fused per-Area:归并 + SPEC 同一会话</text>
|
|
41
|
-
<text x="820" y="228" text-anchor="middle" class="pout">Android/UniApp源码 + UTG → specs.json + SPEC.md</text>
|
|
42
|
-
|
|
43
|
-
<rect x="980" y="158" width="280" height="80" rx="8" fill="#eff6ff" stroke="#2563eb" stroke-width="1.6"/>
|
|
44
|
-
<text x="1120" y="185" text-anchor="middle" class="nt">步骤4 规格设计实现流水线</text>
|
|
45
|
-
<text x="1120" y="205" text-anchor="middle" class="nts">a2h-spec-design-pipeline</text>
|
|
46
|
-
<text x="1120" y="224" text-anchor="middle" class="pout">specs.json → 业务逻辑代码 + group G提交</text>
|
|
47
|
-
|
|
48
|
-
<text x="700" y="262" text-anchor="middle" class="ns">内部依赖skills: a2h-resource-convert · a2h-utg-static · a2h-utg-explorer · a2h-fix-build-errors · a2h-coldstart-smoke-gate</text>
|
|
49
|
-
<text x="700" y="280" text-anchor="middle" class="ns">a2h-spec-generate · a2h-spec-design-pipeline · a2h-arkts-logic-coder · a2h-module-semantic-docs · a2h-dashboard-render</text>
|
|
50
|
-
|
|
51
|
-
<g transform="translate(0, 78)">
|
|
52
|
-
<!-- 执行层 -->
|
|
53
|
-
<rect x="40" y="240" width="1320" height="140" rx="12" fill="#f8f6ff" stroke="#c4b5fd" stroke-width="1.4" stroke-dasharray="8,5"/>
|
|
54
|
-
<text x="700" y="262" text-anchor="middle" class="grp">执行层:Agents(由 skills 调度的执行单元)</text>
|
|
55
|
-
|
|
56
|
-
<rect x="470" y="288" width="200" height="70" rx="8" fill="#f5f3ff" stroke="#7c3aed" stroke-width="1.6"/>
|
|
57
|
-
<text x="570" y="308" text-anchor="middle" class="nt">build-fixer</text>
|
|
58
|
-
<text x="570" y="324" text-anchor="middle" class="ns">构建修复 Agent</text>
|
|
59
|
-
<text x="570" y="343" text-anchor="middle" class="pout">解析编译错误循环修复</text>
|
|
60
|
-
|
|
61
|
-
<rect x="730" y="288" width="200" height="70" rx="8" fill="#f5f3ff" stroke="#7c3aed" stroke-width="1.6"/>
|
|
62
|
-
<text x="830" y="308" text-anchor="middle" class="nt">code-reviewer</text>
|
|
63
|
-
<text x="830" y="324" text-anchor="middle" class="ns">代码评审 / 修复 Agent</text>
|
|
64
|
-
<text x="830" y="343" text-anchor="middle" class="pout">按场景校验覆盖 · 复核修复缺陷</text>
|
|
65
|
-
|
|
66
|
-
<!-- 支撑层 -->
|
|
67
|
-
<rect x="40" y="400" width="1320" height="185" rx="12" fill="#ffffff" stroke="#f59e0b" stroke-width="1.8"/>
|
|
68
|
-
<text x="700" y="422" text-anchor="middle" class="grp">支撑层:Tools + 外部依赖</text>
|
|
69
|
-
|
|
70
|
-
<rect x="85" y="445" width="150" height="60" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
71
|
-
<text x="160" y="470" text-anchor="middle" class="nt">DevEco Studio ≥6.1</text>
|
|
72
|
-
<text x="160" y="490" text-anchor="middle" class="ns">鸿蒙官方IDE</text>
|
|
73
|
-
|
|
74
|
-
<rect x="265" y="445" width="150" height="60" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
75
|
-
<text x="340" y="470" text-anchor="middle" class="nt">devecocli</text>
|
|
76
|
-
<text x="340" y="490" text-anchor="middle" class="ns">构建入口/工程脚手架</text>
|
|
77
|
-
|
|
78
|
-
<rect x="445" y="445" width="150" height="60" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
79
|
-
<text x="520" y="470" text-anchor="middle" class="nt">homegraph</text>
|
|
80
|
-
<text x="520" y="490" text-anchor="middle" class="ns">代码分析引擎 / 语义源</text>
|
|
81
|
-
|
|
82
|
-
<rect x="625" y="445" width="150" height="60" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
83
|
-
<text x="700" y="470" text-anchor="middle" class="nt">Android Studio</text>
|
|
84
|
-
<text x="700" y="490" text-anchor="middle" class="ns">adb / SDK</text>
|
|
85
|
-
|
|
86
|
-
<rect x="805" y="445" width="150" height="60" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
87
|
-
<text x="880" y="470" text-anchor="middle" class="nt">Python ≥3.12</text>
|
|
88
|
-
<text x="880" y="490" text-anchor="middle" class="ns">架构分析/爬取脚本</text>
|
|
89
|
-
|
|
90
|
-
<rect x="85" y="525" width="150" height="30" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
91
|
-
<text x="160" y="545" text-anchor="middle" class="nt">Node.js ≥22.18</text>
|
|
92
|
-
|
|
93
|
-
<rect x="265" y="525" width="150" height="30" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
94
|
-
<text x="340" y="545" text-anchor="middle" class="nt">Git</text>
|
|
95
|
-
|
|
96
|
-
<rect x="445" y="525" width="150" height="30" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
97
|
-
<text x="520" y="545" text-anchor="middle" class="nt">鸿蒙真机 / 模拟器</text>
|
|
98
|
-
|
|
99
|
-
<rect x="625" y="525" width="150" height="30" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
100
|
-
<text x="700" y="545" text-anchor="middle" class="nt">Android真机 / 模拟器</text>
|
|
101
|
-
|
|
102
|
-
<rect x="805" y="525" width="150" height="30" rx="8" fill="#fff7ed" stroke="#ea580c" stroke-width="1.6"/>
|
|
103
|
-
<text x="880" y="545" text-anchor="middle" class="nt">LLM</text>
|
|
104
|
-
|
|
105
|
-
<!-- 图例 -->
|
|
106
|
-
<g transform="translate(940, 605)">
|
|
107
|
-
<rect x="0" y="0" width="18" height="12" rx="3" fill="#eff6ff" stroke="#2563eb" stroke-width="1.4"/>
|
|
108
|
-
<text x="26" y="10" class="ns">主流程技能</text>
|
|
109
|
-
<rect x="0" y="20" width="18" height="12" rx="3" fill="#f5f3ff" stroke="#7c3aed" stroke-width="1.4"/>
|
|
110
|
-
<text x="26" y="30" class="ns">Agent执行单元</text>
|
|
111
|
-
</g>
|
|
112
|
-
|
|
113
|
-
<g transform="translate(1120, 605)">
|
|
114
|
-
<rect x="0" y="0" width="18" height="12" rx="3" fill="#fff7ed" stroke="#ea580c" stroke-width="1.4"/>
|
|
115
|
-
<text x="26" y="10" class="ns">外部依赖</text>
|
|
116
|
-
<rect x="0" y="20" width="18" height="12" rx="3" fill="#ecfdf5" stroke="#059669" stroke-width="1.4"/>
|
|
117
|
-
<text x="26" y="30" class="ns">编排入口</text>
|
|
118
|
-
</g>
|
|
119
|
-
</g>
|
|
120
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
package/resource/set_sdk.png
DELETED
|
Binary file
|
package/resource/title_dark.png
DELETED
|
Binary file
|