@buaa_smat/hometrans 0.1.20 → 26.0.0-devecocli.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/agents/build-fixer.md +406 -0
- package/agents/code-reviewer.md +461 -496
- package/agents/model-render-worker.md +34 -0
- package/agents/model-worker.md +23 -0
- package/agents/specgen-worker.md +18 -0
- package/commands/hometrans.md +17 -0
- package/devecocli-plugin/common.ts +2203 -0
- package/devecocli-plugin/install.ts +61 -0
- package/devecocli-plugin/uninstall.ts +26 -0
- package/devecocli-plugin/update.ts +66 -0
- package/index.js +1418 -0
- package/package.json +81 -64
- package/platforms/atomcode/agents/build-fixer.frontmatter.md +6 -0
- package/platforms/atomcode/agents/code-reviewer.frontmatter.md +6 -0
- package/platforms/atomcode/agents/model-render-worker.frontmatter.md +6 -0
- package/platforms/atomcode/agents/model-worker.frontmatter.md +6 -0
- package/platforms/atomcode/agents/specgen-worker.frontmatter.md +6 -0
- package/platforms/deveco/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/deveco/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/deveco/agents/model-worker.frontmatter.md +5 -0
- package/platforms/deveco/agents/specgen-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/build-fixer.frontmatter.md +5 -0
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +5 -0
- package/platforms/opencode/agents/model-render-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/model-worker.frontmatter.md +5 -0
- package/platforms/opencode/agents/specgen-worker.frontmatter.md +5 -0
- package/plugin.jsonc +12 -0
- package/skills/a2h-app-migrate/SKILL.md +181 -0
- package/skills/a2h-app-migrate/references/config.example.json +27 -0
- package/skills/a2h-app-migrate/references/specs.example.json +19 -0
- package/skills/a2h-app-migrate/references/stage-map.md +33 -0
- package/skills/a2h-app-migrate/references/workflow.yaml +1600 -0
- package/skills/a2h-app-migrate/scripts/android_index.mjs +109 -0
- package/skills/a2h-app-migrate/scripts/check_arch_done.mjs +80 -0
- package/skills/a2h-app-migrate/scripts/check_module_docs_done.mjs +95 -0
- package/skills/a2h-app-migrate/scripts/check_signing.mjs +152 -0
- package/skills/a2h-app-migrate/scripts/check_spec_gen_done.mjs +114 -0
- package/skills/a2h-app-migrate/scripts/check_spec_pipeline_done.mjs +277 -0
- package/skills/a2h-app-migrate/scripts/check_ui_batch_done.mjs +77 -0
- package/skills/a2h-app-migrate/scripts/check_utg_static_done.mjs +147 -0
- package/skills/a2h-app-migrate/scripts/cli_values.mjs +32 -0
- package/skills/a2h-app-migrate/scripts/env_preflight.mjs +1412 -0
- package/skills/a2h-app-migrate/scripts/human_review_gate.mjs +651 -0
- package/skills/a2h-app-migrate/scripts/infer_android_root.mjs +53 -0
- package/skills/a2h-app-migrate/scripts/json_io.mjs +35 -0
- package/skills/a2h-app-migrate/scripts/ledger.mjs +104 -0
- package/skills/a2h-app-migrate/scripts/lib-yaml-lite.mjs +288 -0
- package/skills/a2h-app-migrate/scripts/paths_preflight.mjs +881 -0
- package/skills/a2h-app-migrate/scripts/resume_plan.mjs +205 -0
- package/skills/a2h-app-migrate/scripts/reuse_static_utg.mjs +121 -0
- package/skills/a2h-app-migrate/scripts/run_dir.mjs +212 -0
- package/skills/a2h-app-migrate/scripts/spec_layout.mjs +30 -0
- package/skills/a2h-app-migrate/scripts/validate_workflow.mjs +455 -0
- package/skills/a2h-app-migrate/test/test_android_index.mjs +80 -0
- package/skills/a2h-app-migrate/test/test_apk_preflight.mjs +63 -0
- package/skills/a2h-app-migrate/test/test_arch_done.mjs +54 -0
- package/skills/a2h-app-migrate/test/test_build_fixer_contract.mjs +92 -0
- package/skills/a2h-app-migrate/test/test_config_example.mjs +42 -0
- package/skills/a2h-app-migrate/test/test_entry_guards.mjs +93 -0
- package/skills/a2h-app-migrate/test/test_env_requirements.mjs +544 -0
- package/skills/a2h-app-migrate/test/test_finalize.mjs +89 -0
- package/skills/a2h-app-migrate/test/test_gate_checkpoint.mjs +146 -0
- package/skills/a2h-app-migrate/test/test_hmos_fingerprint.mjs +68 -0
- package/skills/a2h-app-migrate/test/test_infer_android_root.mjs +91 -0
- package/skills/a2h-app-migrate/test/test_interaction.mjs +122 -0
- package/skills/a2h-app-migrate/test/test_json_io.mjs +32 -0
- package/skills/a2h-app-migrate/test/test_leaf_questions.mjs +109 -0
- package/skills/a2h-app-migrate/test/test_module_docs_done.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_parse_args.mjs +69 -0
- package/skills/a2h-app-migrate/test/test_preflight_report.mjs +93 -0
- package/skills/a2h-app-migrate/test/test_resume_plan.mjs +144 -0
- package/skills/a2h-app-migrate/test/test_reuse_static_utg.mjs +100 -0
- package/skills/a2h-app-migrate/test/test_run_dir.mjs +315 -0
- package/skills/a2h-app-migrate/test/test_skill_doc.mjs +133 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_done.mjs +133 -0
- package/skills/a2h-app-migrate/test/test_spec_gen_gate.mjs +158 -0
- package/skills/a2h-app-migrate/test/test_spec_pipeline_done.mjs +181 -0
- package/skills/a2h-app-migrate/test/test_specs_json_preflight.mjs +76 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_done.mjs +53 -0
- package/skills/a2h-app-migrate/test/test_ui_batch_gate.mjs +226 -0
- package/skills/a2h-app-migrate/test/test_uniapp_preflight.mjs +83 -0
- package/skills/a2h-app-migrate/test/test_utg_dirs.mjs +39 -0
- package/skills/a2h-app-migrate/test/test_utg_static_done.mjs +168 -0
- package/skills/a2h-app-migrate/test/test_validate_races.mjs +50 -0
- package/skills/a2h-arch-generate/SKILL.md +375 -0
- package/skills/a2h-arch-generate/examples/reconcile-existing-project.md +107 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-android.md +103 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-backend.md +70 -0
- package/skills/a2h-arch-generate/examples/simple-conversion-uniapp.md +106 -0
- package/skills/{hmos-batch-ui-align/references/mvvm-v2/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md → a2h-arch-generate/references/arkts-mvvm-v2.md} +1407 -1407
- package/skills/a2h-arch-generate/references/artifact-contracts.generate.md +120 -0
- package/skills/a2h-arch-generate/references/artifact-contracts.reconcile.md +123 -0
- package/skills/a2h-arch-generate/references/bpta-layered-architecture-design.md +88 -0
- package/skills/a2h-arch-generate/references/clustering-guidance.md +33 -0
- package/skills/a2h-arch-generate/references/database-schema-recovery.md +107 -0
- package/skills/a2h-arch-generate/references/existing-target-annotation.md +68 -0
- package/skills/a2h-arch-generate/references/harmony-project-inspection.md +150 -0
- package/skills/a2h-arch-generate/references/harmony-target-architecture.md +94 -0
- package/skills/a2h-arch-generate/references/homegraph-workflow.md +120 -0
- package/skills/a2h-arch-generate/references/module-evidence-subagent.md +45 -0
- package/skills/a2h-arch-generate/references/reconciliation-model.md +204 -0
- package/skills/a2h-arch-generate/references/scope-policy.md +28 -0
- package/skills/a2h-arch-generate/references/semantic-review.md +65 -0
- package/skills/a2h-arch-generate/references/source-baseline.md +93 -0
- package/skills/a2h-arch-generate/references/source-ecosystems.md +54 -0
- package/skills/a2h-arch-generate/references/transformation-model.md +78 -0
- package/skills/a2h-arch-generate/scripts/check_module_staleness.mjs +284 -0
- package/skills/a2h-arch-generate/scripts/cleanup_intermediates.mjs +260 -0
- package/skills/a2h-arch-generate/scripts/compute_processing_order.mjs +325 -0
- package/skills/a2h-arch-generate/scripts/create_project.mjs +149 -0
- package/skills/a2h-arch-generate/scripts/dump_core_facts.mjs +151 -0
- package/skills/a2h-arch-generate/scripts/extract_core_components.mjs +167 -0
- package/skills/a2h-arch-generate/scripts/generate_source_baseline.mjs +363 -0
- package/skills/a2h-arch-generate/scripts/generate_state.mjs +60 -0
- package/skills/a2h-arch-generate/scripts/inspect_and_route.mjs +326 -0
- package/skills/a2h-arch-generate/scripts/inspect_android_project.mjs +3739 -0
- package/skills/a2h-arch-generate/scripts/inspect_harmony_target.mjs +800 -0
- package/skills/a2h-arch-generate/scripts/inspect_project.mjs +251 -0
- package/skills/a2h-arch-generate/scripts/inspect_uniapp_project.mjs +809 -0
- package/skills/a2h-arch-generate/scripts/lib/py_compat.mjs +1454 -0
- package/skills/a2h-arch-generate/scripts/module_create/create.mjs +136 -0
- package/skills/a2h-arch-generate/scripts/module_create/generate.mjs +636 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/build-profile.json5 +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/oh-package.json5 +10 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/applicationability/ApplicationAbility.ets +43 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/ets/pages/Index.ets +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/module.json5 +26 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/color.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/element/string.json +16 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/background.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/foreground.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/layered_image.json +7 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/media/startIcon.png +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/main/resources/base/profile/main_pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/mock/mock-config.json5 +2 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hap/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/Index.ets +1 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/build-profile.json5 +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/oh-package.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/ets/components/MainPage.ets +19 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/module.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/main/resources/base/element/string.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/har/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/Index.ets +1 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/build-profile.json5 +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/consumer-rules.txt +0 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/hvigorfile.ts +6 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/obfuscation-rules.txt +23 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/oh-package.json5 +10 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/pages/Index.ets +20 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/ets/utils/Calc.ets +3 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/module.json5 +12 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/element/float.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/element/string.json +8 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/main/resources/base/profile/main_pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/ets/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/ohosTest/module.json5 +11 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/test/List.test.ets +5 -0
- package/skills/a2h-arch-generate/scripts/module_create/hsp/src/test/LocalUnit.test.ets +33 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/reconcile-layer-PROJECT_DESIGN.md +47 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/single-entry-PROJECT_DESIGN.md +15 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/three-layer-PROJECT_DESIGN.md +36 -0
- package/skills/a2h-arch-generate/scripts/module_create/testdata/verification-report.md +150 -0
- package/skills/a2h-arch-generate/scripts/resolve_android_stores.mjs +529 -0
- package/skills/a2h-arch-generate/scripts/scaffold_project.mjs +230 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/build.gradle +11 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/AndroidManifest.xml +12 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/MainActivity.kt +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/app/src/main/java/com/example/notes/NotesStore.kt +17 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/build.gradle +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/android_source/settings.gradle +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/AppScope/app.json5 +8 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/build-profile.json5 +14 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/common/utils/src/main/ets/utils/Format.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/home/src/main/ets/pages/Home.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/features/sync/src/main/ets/engine/SyncEngine.ets +3 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/hvigorfile.ts +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/oh-package.json5 +1 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/build-profile.json5 +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/oh-package.json5 +9 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/harmony_target/products/app/src/main/ets/pages/Index.ets +7 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/App.vue +10 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/manifest.json +6 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages/index/index.vue +16 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/fixtures/uniapp_source/pages.json +5 -0
- package/skills/a2h-arch-generate/scripts/tests/e2e/run_e2e.mjs +548 -0
- package/skills/a2h-arch-generate/scripts/tests/run_tests.mjs +1122 -0
- package/skills/a2h-arch-generate/scripts/tests/test_cleanup.mjs +191 -0
- package/skills/a2h-arch-generate/scripts/tests/test_console_encoding.mjs +52 -0
- package/skills/a2h-arch-generate/scripts/tests/test_git_root.mjs +34 -0
- package/skills/a2h-arch-generate/scripts/tests/test_router.mjs +138 -0
- package/skills/a2h-arch-generate/scripts/validate_architecture_docs.mjs +829 -0
- package/skills/a2h-arch-generate/scripts/validate_data_docs.mjs +937 -0
- package/skills/a2h-arch-generate/scripts/validate_homegraph_artifacts.mjs +542 -0
- package/skills/a2h-arch-generate/scripts/validate_incremental_docs.mjs +415 -0
- package/skills/a2h-arkts-logic-coder/SKILL.md +125 -0
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +6 -0
- package/skills/a2h-arkts-logic-coder/references/code-generation.md +124 -0
- package/skills/a2h-arkts-logic-coder/scripts/check_module_scope.ts +224 -0
- package/skills/a2h-arkts-logic-coder/scripts/check_mvvm.ts +377 -0
- package/skills/a2h-arkts-logic-coder/scripts/stop_check_hook.ts +443 -0
- package/skills/a2h-arkts-logic-coder/scripts/test_check_scripts.ts +211 -0
- package/skills/a2h-arkts-logic-coder/scripts/test_worktree_compat.ts +81 -0
- package/skills/a2h-batch-ui-align/SKILL.md +321 -0
- package/skills/a2h-batch-ui-align/assets/ColorUtils.ets +81 -0
- package/skills/a2h-batch-ui-align/flowchart.html +271 -0
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +572 -0
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +139 -0
- package/skills/a2h-batch-ui-align/references/lottie-integration.md +43 -0
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +2535 -2533
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mappings/android-to-harmonyOS-ui-interaction-mapping-reference.md +558 -555
- package/skills/{hmos-incremental-ui-align/references → a2h-batch-ui-align/references/mappings}/android-to-harmonyOS-ui-layout-mapping-reference.md +117 -117
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +648 -648
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +2088 -2088
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +1033 -1033
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +1183 -1183
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +576 -576
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +297 -297
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +395 -395
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +902 -902
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +106 -106
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +1178 -1178
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm/MVVM/346/250/241/345/274/217/357/274/210V1/357/274/211.md +911 -911
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +354 -354
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243 → a2h-batch-ui-align/references/mvvm}//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +11 -11
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +206 -206
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +373 -373
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +158 -158
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +750 -750
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +1704 -1704
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +1012 -1012
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +164 -164
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +840 -840
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +856 -856
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +83 -83
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +294 -294
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/MVVM/346/250/241/345/274/217/357/274/210V2/357/274/211.md +1407 -1407
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +1220 -1220
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +47 -47
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/references/mvvm-v2/_/350/243/205/351/245/260/345/231/250/351/200/237/346/237/245.md +133 -133
- package/skills/{hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2 → a2h-batch-ui-align/references/mvvm-v2}//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +840 -840
- package/skills/a2h-batch-ui-align/references/source-only-tier.md +32 -0
- package/skills/a2h-batch-ui-align/references/step3-capture.md +214 -0
- package/skills/a2h-batch-ui-align/references/step4-prepare.md +196 -0
- package/skills/a2h-batch-ui-align/references/step5-convert.md +205 -0
- package/skills/a2h-batch-ui-align/scripts/agent_cli.mjs +572 -0
- package/skills/{hmos-batch-ui-align → a2h-batch-ui-align}/scripts/android_parse_fast.ts +246 -39
- package/skills/a2h-batch-ui-align/scripts/answers_check.mjs +86 -0
- package/skills/a2h-batch-ui-align/scripts/arkts_static_check.ts +3858 -0
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +1675 -0
- package/skills/a2h-batch-ui-align/scripts/databinding_analyzer_design.md +79 -0
- package/skills/a2h-batch-ui-align/scripts/detach.mjs +258 -0
- package/skills/a2h-batch-ui-align/scripts/export_ui_info.mjs +1644 -0
- package/skills/a2h-batch-ui-align/scripts/generate_pages_json.mjs +612 -0
- package/skills/a2h-batch-ui-align/scripts/group_commit.mjs +166 -0
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +1627 -0
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +1869 -0
- package/skills/a2h-batch-ui-align/scripts/group_watch.mjs +696 -0
- package/skills/a2h-batch-ui-align/scripts/harmony_index.mjs +218 -0
- package/skills/a2h-batch-ui-align/scripts/host_env.mjs +208 -0
- package/skills/a2h-batch-ui-align/scripts/measure_pack.ts +1229 -0
- package/skills/a2h-batch-ui-align/scripts/occlusion.mjs +141 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +1179 -0
- package/skills/a2h-batch-ui-align/scripts/shell_contract.mjs +1036 -0
- package/skills/a2h-batch-ui-align/scripts/tests/agent_cli.test.mjs +217 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_align_tint.test.mjs +253 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_canvas_pct.test.mjs +312 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_fidelity.test.mjs +241 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_layout_placement.test.mjs +341 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_review_fixes.test.mjs +298 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_rules.test.mjs +365 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_shell.test.mjs +91 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_weight_color.test.mjs +445 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set.test.mjs +356 -0
- package/skills/a2h-batch-ui-align/scripts/tests/build_conversion_set_scope.test.mjs +290 -0
- package/skills/a2h-batch-ui-align/scripts/tests/color_utils_asset.test.mjs +74 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_scroll_states.test.mjs +31 -0
- package/skills/a2h-batch-ui-align/scripts/tests/export_ui_info.test.mjs +564 -0
- package/skills/a2h-batch-ui-align/scripts/tests/generate_pages_json.test.mjs +123 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_commit.test.mjs +126 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_pack.test.mjs +241 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +1451 -0
- package/skills/a2h-batch-ui-align/scripts/tests/group_watch.test.mjs +215 -0
- package/skills/a2h-batch-ui-align/scripts/tests/harmony_index.test.mjs +95 -0
- package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +115 -0
- package/skills/a2h-batch-ui-align/scripts/tests/measure_pack.test.mjs +170 -0
- package/skills/a2h-batch-ui-align/scripts/tests/occlusion.test.mjs +102 -0
- package/skills/a2h-batch-ui-align/scripts/tests/phase5_check.test.mjs +244 -0
- package/skills/a2h-batch-ui-align/scripts/tests/shell_contract.test.mjs +166 -0
- package/skills/a2h-batch-ui-align/scripts/tests/test_bfs_exit.ts +49 -0
- package/skills/a2h-batch-ui-align/scripts/tests/text_color_diff.test.mjs +219 -0
- package/skills/a2h-batch-ui-align/scripts/text_color_diff.mjs +470 -0
- package/skills/a2h-coldstart-smoke-gate/SKILL.md +57 -0
- package/skills/a2h-dashboard-render/SKILL.md +65 -0
- package/skills/a2h-dashboard-render/references/artifact-contract.jsonc +147 -0
- package/skills/a2h-dashboard-render/references/artifact-registry-spec.md +67 -0
- package/skills/a2h-dashboard-render/references/dashboard.config.example.json +19 -0
- package/skills/a2h-dashboard-render/references//347/234/213/346/235/277/350/257/264/346/230/216.md +83 -0
- package/skills/a2h-dashboard-render/scripts/artifact_contract.mjs +138 -0
- package/skills/a2h-dashboard-render/scripts/check-registry.mjs +87 -0
- package/skills/a2h-dashboard-render/scripts/dashboard.mjs +3215 -0
- package/skills/a2h-dashboard-render/scripts/device_capture.mjs +2010 -0
- package/skills/a2h-dashboard-render/scripts/page_capture.mjs +828 -0
- package/skills/a2h-dashboard-render/scripts/usage_readers.mjs +459 -0
- package/skills/a2h-dashboard-render/scripts/usage_worker.mjs +13 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/broken.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/expected.json +156 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/hmos.json +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/list.xml +1 -0
- package/skills/a2h-dashboard-render/test/fixtures/page_capture/nested_scroll.xml +1 -0
- package/skills/a2h-dashboard-render/test/test_artifact_contract.mjs +170 -0
- package/skills/a2h-dashboard-render/test/test_cli_check_registry.mjs +99 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_architecture.mjs +182 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_build.mjs +64 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_node.mjs +1172 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_spec_pipeline.mjs +251 -0
- package/skills/a2h-dashboard-render/test/test_dashboard_ui_pipeline.mjs +81 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_env.mjs +115 -0
- package/skills/a2h-dashboard-render/test/test_device_capture_policy.mjs +303 -0
- package/skills/a2h-dashboard-render/test/test_page_capture.mjs +147 -0
- package/skills/a2h-dashboard-render/test/test_usage_readers.mjs +444 -0
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/SKILL.md +305 -293
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/arkts-strict-patterns.md +219 -219
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/known-patterns.md +157 -157
- package/skills/{hmos-fix-build-errors → a2h-fix-build-errors}/references/rdb-entity-pattern.md +131 -131
- package/skills/a2h-module-semantic-docs/SKILL.md +227 -0
- package/skills/a2h-module-semantic-docs/scripts/commit_module_state.mjs +168 -0
- package/skills/a2h-module-semantic-docs/scripts/lib/py_compat.mjs +688 -0
- package/skills/a2h-module-semantic-docs/scripts/scan_modules.mjs +1021 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_structure.json +187 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_understanding.json +351 -0
- package/skills/a2h-module-semantic-docs/test/golden/module_update_plan.json +495 -0
- package/skills/a2h-module-semantic-docs/test/golden/project_directory_structure.json +157 -0
- package/skills/a2h-module-semantic-docs/test/test_scan_and_commit.mjs +388 -0
- package/skills/a2h-resource-convert/SKILL.md +369 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/code-vector-icon-rules.md +335 -335
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/conversion-rules.md +687 -676
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/dependency-analysis-rules.md +410 -410
- package/skills/a2h-resource-convert/references/incremental-page-migration.md +251 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/lottie-conversion-rules.md +219 -219
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/resource-mapping-rules.md +493 -482
- package/skills/a2h-resource-convert/references/step3_5-dependency-filter.md +54 -0
- package/skills/a2h-resource-convert/references/step4-qualifiers-and-values.md +142 -0
- package/skills/a2h-resource-convert/references/step4-resource-types.md +249 -0
- package/skills/a2h-resource-convert/references/step5-reference-resolution.md +154 -0
- package/skills/a2h-resource-convert/references/step7-report-template.md +217 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/references/xml-drawable-to-svg-rules.md +630 -592
- package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/a2h_resource_convert.ts +2529 -2163
- package/skills/a2h-resource-convert/scripts/a2h_resource_incremental.ts +1072 -0
- package/skills/a2h-resource-convert/scripts/app_identity.ts +947 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/code_vector_icons.ts +607 -591
- package/skills/a2h-resource-convert/scripts/extract_page_resources.ts +989 -0
- package/skills/a2h-resource-convert/scripts/extract_project_resources.ts +1464 -0
- package/skills/{hmos-resources-convert → a2h-resource-convert}/scripts/svg_fidelity_check.ts +632 -632
- package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +182 -0
- package/skills/a2h-resource-convert/scripts/tests/app_identity.test.mjs +206 -0
- package/skills/a2h-spec-design/SKILL.md +336 -0
- package/skills/a2h-spec-design/scripts/inspect_spec_design_inputs.mjs +146 -0
- package/skills/a2h-spec-design/scripts/lib/py_compat.mjs +481 -0
- package/skills/a2h-spec-design/scripts/move_spec_technical_reference.mjs +159 -0
- package/skills/a2h-spec-design/scripts/resolve_module_design.mjs +102 -0
- package/skills/a2h-spec-design/scripts/validate_spec_design_output.mjs +285 -0
- package/skills/a2h-spec-design/test/golden/inspect_happy.json +20 -0
- package/skills/a2h-spec-design/test/golden/move_design.md +18 -0
- package/skills/a2h-spec-design/test/golden/move_design_crlf.md +18 -0
- package/skills/a2h-spec-design/test/golden/move_spec.md +7 -0
- package/skills/a2h-spec-design/test/golden/resolve_cases.json +36 -0
- package/skills/a2h-spec-design/test/golden/validate_issue_file.md +12 -0
- package/skills/a2h-spec-design/test/golden/validate_issues.json +57 -0
- package/skills/a2h-spec-design/test/test_spec_design_scripts.mjs +381 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +228 -0
- package/skills/a2h-spec-design-pipeline/package.json +4 -0
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +63 -0
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +69 -0
- package/skills/a2h-spec-design-pipeline/references/final-report-template.md +24 -0
- package/skills/a2h-spec-design-pipeline/references/initialization.md +57 -0
- package/skills/a2h-spec-design-pipeline/references/merge-queue.md +21 -0
- package/skills/a2h-spec-design-pipeline/references/scripts.md +27 -0
- package/skills/a2h-spec-design-pipeline/references/specs.example.json +19 -0
- package/skills/a2h-spec-design-pipeline/references/state-and-resume.md +21 -0
- package/skills/a2h-spec-design-pipeline/scripts/atomic_write.ts +42 -0
- package/skills/a2h-spec-design-pipeline/scripts/audit_claims.ts +252 -0
- package/skills/a2h-spec-design-pipeline/scripts/branch_landed.ts +77 -0
- package/skills/a2h-spec-design-pipeline/scripts/deps_ready.ts +195 -0
- package/skills/a2h-spec-design-pipeline/scripts/ensure_wt_index.ts +651 -0
- package/skills/a2h-spec-design-pipeline/scripts/git_baseline.ts +124 -0
- package/skills/a2h-spec-design-pipeline/scripts/inflight.mjs +944 -0
- package/skills/a2h-spec-design-pipeline/scripts/lib/bgcli.mjs +95 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_groups.ts +502 -0
- package/skills/a2h-spec-design-pipeline/scripts/plan_waves.ts +475 -0
- package/skills/a2h-spec-design-pipeline/scripts/reconcile.mjs +218 -0
- package/skills/a2h-spec-design-pipeline/scripts/resolve_wiring.ts +164 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_atomic_write.ts +44 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_audit_claims.ts +301 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_bgcli.mjs +64 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_branch_landed.ts +87 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_deps_ready.ts +265 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_ensure_wt_index.ts +675 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_git_baseline.ts +105 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_inflight.mjs +452 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_groups.ts +375 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_plan_waves.ts +561 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_reconcile.mjs +182 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_resolve_wiring.ts +138 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_watchdog.mjs +289 -0
- package/skills/a2h-spec-design-pipeline/scripts/watchdog.mjs +441 -0
- package/skills/a2h-spec-generate/SKILL.md +285 -0
- package/skills/a2h-spec-generate/package.json +9 -0
- package/skills/a2h-spec-generate/references/batch-mode.md +151 -0
- package/skills/a2h-spec-generate/references/delete-blast-radius.md +3 -0
- package/skills/a2h-spec-generate/references/fusion-task-contract.md +114 -0
- package/skills/a2h-spec-generate/references/input-formats.md +27 -0
- package/skills/a2h-spec-generate/references/library-evidence.md +3 -0
- package/skills/a2h-spec-generate/references/method-discipline.md +64 -0
- package/skills/a2h-spec-generate/references/optional-gates.json +45 -0
- package/skills/a2h-spec-generate/references/recall-guide.md +83 -0
- package/skills/a2h-spec-generate/references/recall-terse.md +3 -0
- package/skills/a2h-spec-generate/references/recall-uniapp.md +10 -0
- package/skills/a2h-spec-generate/references/requirement-scope.md +122 -0
- package/skills/a2h-spec-generate/references/review-checklist.md +21 -0
- package/skills/a2h-spec-generate/references/spec-sample-complex.md +80 -0
- package/skills/a2h-spec-generate/references/spec-sample-transfer.md +43 -0
- package/skills/a2h-spec-generate/references/spec-samples.md +65 -0
- package/skills/a2h-spec-generate/references/specs.schema.json +79 -0
- package/skills/a2h-spec-generate/references/synthesis-rules.md +143 -0
- package/skills/a2h-spec-generate/references/transfer-file.md +5 -0
- package/skills/a2h-spec-generate/references/transfer-socket.md +5 -0
- package/skills/a2h-spec-generate/references/worker-rules.md +126 -0
- package/skills/a2h-spec-generate/scripts/check-fused-spec.mjs +514 -0
- package/skills/a2h-spec-generate/scripts/check_spec.ts +361 -0
- package/skills/a2h-spec-generate/scripts/collect-specs.mjs +470 -0
- package/skills/a2h-spec-generate/scripts/detect-project.mjs +271 -0
- package/skills/a2h-spec-generate/scripts/ensure-index.mjs +188 -0
- package/skills/a2h-spec-generate/scripts/feature-stem.mjs +150 -0
- package/skills/a2h-spec-generate/scripts/inspect-uniapp.mjs +733 -0
- package/skills/{hmos-spec-generate → a2h-spec-generate}/scripts/parse_requirements.ts +515 -515
- package/skills/a2h-spec-generate/scripts/prepare-facts.mjs +307 -0
- package/skills/a2h-spec-generate/scripts/publication-verdict.mjs +171 -0
- package/skills/a2h-spec-generate/scripts/publish-specs.mjs +280 -0
- package/skills/a2h-spec-generate/scripts/render-tasks.mjs +399 -0
- package/skills/a2h-spec-generate/scripts/report.mjs +132 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/dashboard.html +149 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-api.js +49 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-code-view.js +140 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-format.js +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-handoff.js +42 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-splitters.js +78 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-state.js +47 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-tree.js +194 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz-virtual-list.js +118 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.css +245 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.html +99 -0
- package/skills/a2h-spec-generate/scripts/reqgen/assets/viz.js +220 -0
- package/skills/a2h-spec-generate/scripts/reqgen/package-lock.json +47 -0
- package/skills/a2h-spec-generate/scripts/reqgen/package.json +23 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/agent-render/serve.ts +95 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/callback-call-sites.ts +82 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/area-ownership.ts +496 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/build.ts +2217 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/callback-flow.ts +386 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/component-variants.ts +845 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/graph/index.ts +24 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/index.ts +22 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/policy.ts +572 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/names/traceability.ts +580 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/build.ts +1270 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/index.ts +10 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/projection.ts +804 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/req-model/render-projection.ts +51 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/android-interaction-registry.ts +286 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/builder.ts +453 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/compose-api-registry.ts +526 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/analysis/source-facts/index.ts +15 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/connector/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/connector/utg-inbound.ts +763 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/area-graph.ts +383 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/artifact.ts +68 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/common.ts +88 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/diagnostic.ts +64 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/gap-audit.ts +113 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/index.ts +12 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/name-traceability.ts +108 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/raw-fact.ts +377 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/req-model.ts +238 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/run.ts +134 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/semantic-completeness.ts +35 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/source-facts.ts +48 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/contracts/utg.ts +133 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/core/output-guard.ts +42 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/core/stable-id.ts +118 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/cross-area-tally-cli.ts +179 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dashboard-cli.ts +188 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump/dump.ts +1184 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/dump-cli.ts +373 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-facts.ts +1014 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/area-output.ts +32 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/schema.ts +142 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/selfcheck.ts +312 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/spec-bindings.ts +310 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/fusion/task-contract.ts +685 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/graph/paths.ts +575 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/homegraph-cli.ts +50 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/android-resource-resolver.ts +391 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/androidx-preference-contracts.ts +44 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/contracts.ts +640 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/cross-area.ts +207 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/finalizer.ts +1297 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/identity.ts +186 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/index.ts +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/planner.ts +312 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/preference-enrichment.ts +793 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/raw-facts.ts +355 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/rules.ts +271 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/scanner.ts +666 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/schema.ts +365 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/stable-key.ts +144 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/task-contract.ts +301 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/tree-sitter-adapter.ts +923 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/uniapp-utg-adapter.ts +543 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/interaction-analysis/xml-adapter.ts +262 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/assemble.ts +2079 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/contracts.ts +157 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/finalize.ts +809 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/index.ts +17 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/io.ts +165 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/prepare.ts +806 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/query.ts +360 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/seeds.ts +218 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/spec-bindings-sidecar.ts +240 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model/task.ts +359 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/model-cli.ts +500 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/pipeline/index.ts +7 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/pipeline/output.ts +307 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/requirement-scope.ts +172 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-cov/index.ts +1 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-cov/source-cov.ts +176 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/source-index/homegraph.ts +1039 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/area-graph.ts +490 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/index.ts +23 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-model.ts +957 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/req-text.ts +248 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/semantic-area-graph.ts +1600 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/validation/types.ts +10 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/artifact-data.ts +201 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-api.ts +74 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-code-view.ts +180 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-format.ts +18 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-handoff.ts +55 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-splitters.ts +78 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-state.ts +66 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-tree.ts +232 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz-virtual-list.ts +179 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/client/viz.ts +240 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/contracts.d.ts +86 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/index.ts +3 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/server.ts +239 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz/source-project.ts +316 -0
- package/skills/a2h-spec-generate/scripts/reqgen/src/viz-cli.ts +200 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-fact-join.test.ts +50 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/control-name-uniapp.test.ts +75 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/cross-area-anchor.test.ts +256 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-area-facts.test.ts +576 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-contract.test.ts +290 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-finalize.test.ts +1323 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-prepare.test.ts +574 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-scope.test.ts +339 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-selfcheck.test.ts +831 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/fusion-spec.test.ts +548 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-cli-blockers.test.ts +117 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-scope.test.ts +396 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-seeds.test.ts +175 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-task-contract.test.ts +298 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/model-v4.test.ts +1061 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/specgen-completeness.test.ts +286 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/stagem-stored-path.test.ts +25 -0
- package/skills/a2h-spec-generate/scripts/reqgen/test/uniapp-scanner.test.ts +159 -0
- package/skills/a2h-spec-generate/scripts/reqgen/tsconfig.json +16 -0
- package/skills/a2h-spec-generate/scripts/reqgen/tsconfig.viz-client.json +12 -0
- package/skills/{hmos-spec-generate → a2h-spec-generate}/template/REQ.txt +22 -22
- package/skills/a2h-spec-generate/test/check-fused-spec.test.mjs +632 -0
- package/skills/a2h-spec-generate/test/check-spec.test.ts +200 -0
- package/skills/a2h-spec-generate/test/collect-specs.test.mjs +538 -0
- package/skills/a2h-spec-generate/test/detect-project.test.mjs +37 -0
- package/skills/a2h-spec-generate/test/ensure-index.test.mjs +45 -0
- package/skills/a2h-spec-generate/test/feature-stem.test.mjs +147 -0
- package/skills/a2h-spec-generate/test/fixtures/android/app/src/main/AndroidManifest.xml +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/build.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/android/settings.gradle +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/package.json +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/App.vue +8 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/components/MyCard.vue +9 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/feature/editor/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/main.ts +6 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/manifest.json +4 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/detail/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/home/index.vue +33 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages/settings/index.vue +1 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/pages.json +23 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/src/services/items.ts +3 -0
- package/skills/a2h-spec-generate/test/fixtures/uniapp-src/tsconfig.json +8 -0
- package/skills/a2h-spec-generate/test/fixtures/unknown/README.txt +1 -0
- package/skills/a2h-spec-generate/test/inspect-uniapp.test.mjs +54 -0
- package/skills/a2h-spec-generate/test/publication-verdict.test.mjs +157 -0
- package/skills/a2h-spec-generate/test/publish-specs.test.mjs +282 -0
- package/skills/a2h-spec-generate/test/render-tasks.test.mjs +593 -0
- package/skills/a2h-utg-explorer/SKILL.md +120 -0
- package/skills/a2h-utg-explorer/assets/final_viewer.html +64 -0
- package/skills/a2h-utg-explorer/assets/u2.LICENSE +21 -0
- package/skills/a2h-utg-explorer/assets/u2.NOTICE +25 -0
- package/skills/a2h-utg-explorer/assets/u2.jar +0 -0
- package/skills/a2h-utg-explorer/references/architecture.md +270 -0
- package/skills/a2h-utg-explorer/references/protocol.md +9 -0
- package/skills/a2h-utg-explorer/scripts/app_settings.mjs +143 -0
- package/skills/a2h-utg-explorer/scripts/audit.mjs +167 -0
- package/skills/a2h-utg-explorer/scripts/close_phases.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/compile_tasks.mjs +749 -0
- package/skills/a2h-utg-explorer/scripts/d_prereqs.mjs +597 -0
- package/skills/a2h-utg-explorer/scripts/device_health.mjs +227 -0
- package/skills/a2h-utg-explorer/scripts/direct_launch.mjs +276 -0
- package/skills/a2h-utg-explorer/scripts/evidence.mjs +108 -0
- package/skills/a2h-utg-explorer/scripts/final_utg.mjs +428 -0
- package/skills/a2h-utg-explorer/scripts/hint_check.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/plan.mjs +258 -0
- package/skills/a2h-utg-explorer/scripts/promote_dynamic.mjs +170 -0
- package/skills/a2h-utg-explorer/scripts/recover.mjs +467 -0
- package/skills/a2h-utg-explorer/scripts/recover_b.mjs +542 -0
- package/skills/a2h-utg-explorer/scripts/recover_d.mjs +369 -0
- package/skills/a2h-utg-explorer/scripts/rejudge.mjs +203 -0
- package/skills/a2h-utg-explorer/scripts/report.mjs +143 -0
- package/skills/a2h-utg-explorer/scripts/run_cycle.mjs +844 -0
- package/skills/a2h-utg-explorer/scripts/run_device.mjs +137 -0
- package/skills/a2h-utg-explorer/scripts/tests/attest.test.mjs +66 -0
- package/skills/a2h-utg-explorer/scripts/tests/chain.test.mjs +45 -0
- package/skills/a2h-utg-explorer/scripts/tests/compose_identity.test.mjs +243 -0
- package/skills/a2h-utg-explorer/scripts/tests/coverage_rules.test.mjs +104 -0
- package/skills/a2h-utg-explorer/scripts/tests/d_prereqs.test.mjs +223 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_health.test.mjs +88 -0
- package/skills/a2h-utg-explorer/scripts/tests/device_lock_retry.test.mjs +187 -0
- package/skills/a2h-utg-explorer/scripts/tests/direct_launch.test.mjs +130 -0
- package/skills/a2h-utg-explorer/scripts/tests/explorer_review_fixes.test.mjs +136 -0
- package/skills/a2h-utg-explorer/scripts/tests/final_utg.test.mjs +135 -0
- package/skills/a2h-utg-explorer/scripts/tests/first_round_phases.test.mjs +16 -0
- package/skills/a2h-utg-explorer/scripts/tests/generalization_fixes.test.mjs +251 -0
- package/skills/a2h-utg-explorer/scripts/tests/hint_check.test.mjs +42 -0
- package/skills/a2h-utg-explorer/scripts/tests/interruptions.test.mjs +162 -0
- package/skills/a2h-utg-explorer/scripts/tests/node_coverage.test.mjs +193 -0
- package/skills/a2h-utg-explorer/scripts/tests/overflow_prefix.test.mjs +204 -0
- package/skills/a2h-utg-explorer/scripts/tests/page_identity_tiers.test.mjs +355 -0
- package/skills/a2h-utg-explorer/scripts/tests/pipeline.test.mjs +240 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover.test.mjs +212 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_b.test.mjs +173 -0
- package/skills/a2h-utg-explorer/scripts/tests/recover_d.test.mjs +267 -0
- package/skills/a2h-utg-explorer/scripts/tests/review_fixes.test.mjs +213 -0
- package/skills/a2h-utg-explorer/scripts/tests/robustness_fixes.test.mjs +345 -0
- package/skills/a2h-utg-explorer/scripts/tests/run_cycle.test.mjs +453 -0
- package/skills/a2h-utg-explorer/scripts/tests/runner_capabilities.test.mjs +131 -0
- package/skills/a2h-utg-explorer/scripts/tests/scope.test.mjs +229 -0
- package/skills/a2h-utg-explorer/scripts/tests/scroll_sweep.test.mjs +336 -0
- package/skills/a2h-utg-explorer/scripts/tests/semantics.test.mjs +102 -0
- package/skills/a2h-utg-explorer/scripts/tests/state_ambiguity.test.mjs +92 -0
- package/skills/a2h-utg-explorer/scripts/tests/twin_opener.test.mjs +119 -0
- package/skills/a2h-utg-explorer/scripts/tests/u2_backend.test.mjs +346 -0
- package/skills/a2h-utg-explorer/scripts/tests/ui_state_anchors.test.mjs +112 -0
- package/skills/a2h-utg-explorer/scripts/tests/variant_strings.test.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/tests/worklist_parts.test.mjs +24 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/_device_io.mjs +244 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/_py.mjs +2097 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/adapters.mjs +1231 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/attest.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/chain.mjs +63 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/coverage.mjs +89 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/device_lock.mjs +46 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/semantics.mjs +1200 -0
- package/skills/a2h-utg-explorer/scripts/utg_explorer/task_runner.mjs +1558 -0
- package/skills/a2h-utg-explorer/scripts/variant.mjs +75 -0
- package/skills/a2h-utg-explorer/scripts/worklist_parts.mjs +122 -0
- package/skills/a2h-utg-static/SKILL.md +361 -0
- package/skills/a2h-utg-static/config.json +19 -0
- package/skills/a2h-utg-static/references/extractors.md +217 -0
- package/skills/a2h-utg-static/references/ui-elements-static-utg-schema.md +248 -0
- package/skills/a2h-utg-static/references/view-interactions.md +215 -0
- package/skills/a2h-utg-static/scripts/_graph.mjs +361 -0
- package/skills/a2h-utg-static/scripts/_py.mjs +2177 -0
- package/skills/a2h-utg-static/scripts/_spawn.mjs +45 -0
- package/skills/a2h-utg-static/scripts/activity_nav.mjs +738 -0
- package/skills/a2h-utg-static/scripts/activity_widgets.mjs +254 -0
- package/skills/a2h-utg-static/scripts/adapter_nav.mjs +229 -0
- package/skills/a2h-utg-static/scripts/androidfragment_nav.mjs +208 -0
- package/skills/a2h-utg-static/scripts/assemble.mjs +2065 -0
- package/skills/a2h-utg-static/scripts/audit.mjs +268 -0
- package/skills/a2h-utg-static/scripts/carry_answers.mjs +201 -0
- package/skills/a2h-utg-static/scripts/click_paths.mjs +594 -0
- package/skills/a2h-utg-static/scripts/compose_body_text.mjs +226 -0
- package/skills/a2h-utg-static/scripts/compose_merge.mjs +263 -0
- package/skills/a2h-utg-static/scripts/compose_nav.mjs +1216 -0
- package/skills/a2h-utg-static/scripts/compose_navbar_nav.mjs +238 -0
- package/skills/a2h-utg-static/scripts/compose_overlay.mjs +2760 -0
- package/skills/a2h-utg-static/scripts/compose_titles.mjs +365 -0
- package/skills/a2h-utg-static/scripts/compose_widgets.mjs +498 -0
- package/skills/a2h-utg-static/scripts/dialog_listener_nav.mjs +237 -0
- package/skills/a2h-utg-static/scripts/dialogshow_nav.mjs +308 -0
- package/skills/a2h-utg-static/scripts/fragfactory_nav.mjs +170 -0
- package/skills/a2h-utg-static/scripts/fragment_nav.mjs +1136 -0
- package/skills/a2h-utg-static/scripts/guard_subjects.mjs +162 -0
- package/skills/a2h-utg-static/scripts/hg_query.mjs +137 -0
- package/skills/a2h-utg-static/scripts/host_resolve.mjs +393 -0
- package/skills/a2h-utg-static/scripts/hybrid_bundle.mjs +165 -0
- package/skills/a2h-utg-static/scripts/hybrid_pages.mjs +713 -0
- package/skills/a2h-utg-static/scripts/hybrid_scope.mjs +660 -0
- package/skills/a2h-utg-static/scripts/interaction_sites.mjs +267 -0
- package/skills/a2h-utg-static/scripts/io_utils.mjs +59 -0
- package/skills/a2h-utg-static/scripts/label_resolve.mjs +864 -0
- package/skills/a2h-utg-static/scripts/launch_extras.mjs +91 -0
- package/skills/a2h-utg-static/scripts/layout_resolve.mjs +148 -0
- package/skills/a2h-utg-static/scripts/manifest.mjs +483 -0
- package/skills/a2h-utg-static/scripts/measure/measure_corpus.mjs +297 -0
- package/skills/a2h-utg-static/scripts/measure/measure_guards.mjs +98 -0
- package/skills/a2h-utg-static/scripts/media_browse_nav.mjs +356 -0
- package/skills/a2h-utg-static/scripts/menu_nav.mjs +603 -0
- package/skills/a2h-utg-static/scripts/navactions_nav.mjs +255 -0
- package/skills/a2h-utg-static/scripts/nl_hints.mjs +453 -0
- package/skills/a2h-utg-static/scripts/orphan_overlay_nav.mjs +89 -0
- package/skills/a2h-utg-static/scripts/phase_plan.mjs +108 -0
- package/skills/a2h-utg-static/scripts/phase_planner.mjs +119 -0
- package/skills/a2h-utg-static/scripts/plaindialog_nav.mjs +411 -0
- package/skills/a2h-utg-static/scripts/preference_nav.mjs +761 -0
- package/skills/a2h-utg-static/scripts/preference_widgets.mjs +142 -0
- package/skills/a2h-utg-static/scripts/presenter_nav.mjs +490 -0
- package/skills/a2h-utg-static/scripts/registry_nav.mjs +288 -0
- package/skills/a2h-utg-static/scripts/run_pipeline.mjs +870 -0
- package/skills/a2h-utg-static/scripts/scope_utils.mjs +430 -0
- package/skills/a2h-utg-static/scripts/screen_merge.mjs +287 -0
- package/skills/a2h-utg-static/scripts/screen_nav.mjs +279 -0
- package/skills/a2h-utg-static/scripts/single_host_nav.mjs +291 -0
- package/skills/a2h-utg-static/scripts/starter_nav.mjs +198 -0
- package/skills/a2h-utg-static/scripts/state_guard.mjs +579 -0
- package/skills/a2h-utg-static/scripts/static_prior.mjs +904 -0
- package/skills/a2h-utg-static/scripts/tests/_zipw.mjs +28 -0
- package/skills/a2h-utg-static/scripts/tests/probe_autoload.mjs +108 -0
- package/skills/a2h-utg-static/scripts/tests/probe_layout_fragments.mjs +90 -0
- package/skills/a2h-utg-static/scripts/tests/probe_unknown_scope.mjs +61 -0
- package/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +1261 -0
- package/skills/a2h-utg-static/scripts/tests/test_activity_alias_launcher.mjs +90 -0
- package/skills/a2h-utg-static/scripts/tests/test_activity_supertype_chain.mjs +106 -0
- package/skills/a2h-utg-static/scripts/tests/test_bottom_sheet_container.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_branch_guard.mjs +19 -0
- package/skills/a2h-utg-static/scripts/tests/test_callee_string_default.mjs +30 -0
- package/skills/a2h-utg-static/scripts/tests/test_carry_answers.mjs +103 -0
- package/skills/a2h-utg-static/scripts/tests/test_chrome_tokens.mjs +60 -0
- package/skills/a2h-utg-static/scripts/tests/test_commented_out_trigger.mjs +111 -0
- package/skills/a2h-utg-static/scripts/tests/test_commit_scope.mjs +113 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_file_private_route.mjs +117 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_nested_graph.mjs +166 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_route_holder_collision.mjs +112 -0
- package/skills/a2h-utg-static/scripts/tests/test_compose_vm_nav.mjs +284 -0
- package/skills/a2h-utg-static/scripts/tests/test_custom_source_root.mjs +71 -0
- package/skills/a2h-utg-static/scripts/tests/test_defensive_null_guard.mjs +77 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialog_orphan_entries.mjs +99 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialog_page_owner.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialogshow_builder_forms.mjs +96 -0
- package/skills/a2h-utg-static/scripts/tests/test_dialogshow_java_factory.mjs +37 -0
- package/skills/a2h-utg-static/scripts/tests/test_disabled_guard.mjs +42 -0
- package/skills/a2h-utg-static/scripts/tests/test_drawer_panel_gesture.mjs +140 -0
- package/skills/a2h-utg-static/scripts/tests/test_edge_dedupe_by_gesture.mjs +111 -0
- package/skills/a2h-utg-static/scripts/tests/test_edge_provenance_lint.mjs +70 -0
- package/skills/a2h-utg-static/scripts/tests/test_enclosing_gesture.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_external_surface_roots.mjs +43 -0
- package/skills/a2h-utg-static/scripts/tests/test_find_package_indirect.mjs +67 -0
- package/skills/a2h-utg-static/scripts/tests/test_forwarding_wrapper.mjs +38 -0
- package/skills/a2h-utg-static/scripts/tests/test_fragment_containment.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_fragment_helper_trigger.mjs +92 -0
- package/skills/a2h-utg-static/scripts/tests/test_graph.mjs +55 -0
- package/skills/a2h-utg-static/scripts/tests/test_guard_clause.mjs +86 -0
- package/skills/a2h-utg-static/scripts/tests/test_hint_language.mjs +119 -0
- package/skills/a2h-utg-static/scripts/tests/test_host_kind_by_chain.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundle_attribution.mjs +74 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_bundled_pages.mjs +181 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_scope.mjs +293 -0
- package/skills/a2h-utg-static/scripts/tests/test_hybrid_title_renders.mjs +118 -0
- package/skills/a2h-utg-static/scripts/tests/test_interaction_sites.mjs +272 -0
- package/skills/a2h-utg-static/scripts/tests/test_item_data_instance.mjs +51 -0
- package/skills/a2h-utg-static/scripts/tests/test_kotlin_fn_spans.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_label_accessor_forms.mjs +187 -0
- package/skills/a2h-utg-static/scripts/tests/test_label_source.mjs +70 -0
- package/skills/a2h-utg-static/scripts/tests/test_launch_intent_guard.mjs +67 -0
- package/skills/a2h-utg-static/scripts/tests/test_layout_declared_fragment.mjs +103 -0
- package/skills/a2h-utg-static/scripts/tests/test_listener_call_forms.mjs +79 -0
- package/skills/a2h-utg-static/scripts/tests/test_listener_receiver_binding.mjs +47 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_exported_default.mjs +40 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_filters_modules.mjs +84 -0
- package/skills/a2h-utg-static/scripts/tests/test_manifest_srcfile.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_mode_and_cb_param.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_namespace.mjs +33 -0
- package/skills/a2h-utg-static/scripts/tests/test_module_strings.mjs +44 -0
- package/skills/a2h-utg-static/scripts/tests/test_multiple_entry_contracts.mjs +80 -0
- package/skills/a2h-utg-static/scripts/tests/test_nav_graph_xml.mjs +35 -0
- package/skills/a2h-utg-static/scripts/tests/test_nl_hint_grammar.mjs +42 -0
- package/skills/a2h-utg-static/scripts/tests/test_nl_hints_gate.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_node_id_collision.mjs +57 -0
- package/skills/a2h-utg-static/scripts/tests/test_non_gesture_step_flag.mjs +62 -0
- package/skills/a2h-utg-static/scripts/tests/test_out_of_scope_and_settings.mjs +72 -0
- package/skills/a2h-utg-static/scripts/tests/test_overload_and_climb.mjs +86 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_page_source.mjs +78 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_position_zero.mjs +65 -0
- package/skills/a2h-utg-static/scripts/tests/test_pager_variant_guard.mjs +172 -0
- package/skills/a2h-utg-static/scripts/tests/test_pipeline_llm_phases.mjs +107 -0
- package/skills/a2h-utg-static/scripts/tests/test_plain_dialog_nodes.mjs +167 -0
- package/skills/a2h-utg-static/scripts/tests/test_plaindialog_shared_anchor.mjs +117 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_click_nav.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_host_binding.mjs +87 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_nesting.mjs +183 -0
- package/skills/a2h-utg-static/scripts/tests/test_preference_widgets.mjs +48 -0
- package/skills/a2h-utg-static/scripts/tests/test_read_text_crlf.mjs +41 -0
- package/skills/a2h-utg-static/scripts/tests/test_resolver_tier_parity.mjs +126 -0
- package/skills/a2h-utg-static/scripts/tests/test_result_launcher.mjs +142 -0
- package/skills/a2h-utg-static/scripts/tests/test_review_fixes.mjs +135 -0
- package/skills/a2h-utg-static/scripts/tests/test_route_token_words.mjs +66 -0
- package/skills/a2h-utg-static/scripts/tests/test_same_name_decl_scope.mjs +236 -0
- package/skills/a2h-utg-static/scripts/tests/test_scope_utils.mjs +85 -0
- package/skills/a2h-utg-static/scripts/tests/test_sealed_dialog_state.mjs +148 -0
- package/skills/a2h-utg-static/scripts/tests/test_shared_overlay_split.mjs +63 -0
- package/skills/a2h-utg-static/scripts/tests/test_slug_parity.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_starter_node_id.mjs +41 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_arity.mjs +109 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_commented_candidates.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_guard_model_gates.mjs +127 -0
- package/skills/a2h-utg-static/scripts/tests/test_state_specific_hop.mjs +130 -0
- package/skills/a2h-utg-static/scripts/tests/test_synthetic_label_identity.mjs +51 -0
- package/skills/a2h-utg-static/scripts/tests/test_template_method_layout.mjs +81 -0
- package/skills/a2h-utg-static/scripts/tests/test_template_title.mjs +58 -0
- package/skills/a2h-utg-static/scripts/tests/test_trigger_id_spelling.mjs +68 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_action_override.mjs +91 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_flow_filter.mjs +110 -0
- package/skills/a2h-utg-static/scripts/tests/test_ui_elements_nl_hint_key.mjs +89 -0
- package/skills/a2h-utg-static/scripts/tests/test_uiless_host_fold.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_uniapp_source.mjs +231 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_click_refs.mjs +104 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_id_label.mjs +69 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_interactions.mjs +346 -0
- package/skills/a2h-utg-static/scripts/tests/test_viewpage_nav.mjs +340 -0
- package/skills/a2h-utg-static/scripts/tests/test_vm_nav_helper_navigate.mjs +98 -0
- package/skills/a2h-utg-static/scripts/tests/test_widget_class_scope.mjs +92 -0
- package/skills/a2h-utg-static/scripts/tests/test_window_nav_kotlin.mjs +158 -0
- package/skills/a2h-utg-static/scripts/tests/test_worklist_parts.mjs +65 -0
- package/skills/a2h-utg-static/scripts/uniapp_nav.mjs +1119 -0
- package/skills/a2h-utg-static/scripts/uniapp_widgets.mjs +244 -0
- package/skills/a2h-utg-static/scripts/utg_html.mjs +721 -0
- package/skills/a2h-utg-static/scripts/view_interactions.mjs +799 -0
- package/skills/a2h-utg-static/scripts/view_widgets.mjs +512 -0
- package/skills/a2h-utg-static/scripts/viewpage_nav.mjs +589 -0
- package/skills/a2h-utg-static/scripts/vm_nav.mjs +422 -0
- package/skills/a2h-utg-static/scripts/window_nav.mjs +240 -0
- package/skills/a2h-utg-static/scripts/worklist_parts.mjs +154 -0
- package/skills/a2h-utg-static/tools/convert_static_utg_to_ui_elements.ts +769 -0
- package/skills/a2h-utg-static/tools/package.json +3 -0
- package/README.md +0 -445
- package/agents/logic-coder.md +0 -224
- package/agents/logic-context-builder.md +0 -212
- package/agents/scripts/hmos-precheck/backends/arkts.mjs +0 -567
- package/agents/scripts/hmos-precheck/backends/arkts_diff.mjs +0 -159
- package/agents/scripts/hmos-precheck/backends/arkts_project_rules.mjs +0 -398
- package/agents/scripts/hmos-precheck/backends/codelinter.mjs +0 -250
- package/agents/scripts/hmos-precheck/backends/project_integrity.mjs +0 -321
- package/agents/scripts/hmos-precheck/backends/static_precheck.mjs +0 -247
- package/agents/scripts/hmos-precheck/core/config.mjs +0 -184
- package/agents/scripts/hmos-precheck/core/diagnostic_scope.mjs +0 -20
- package/agents/scripts/hmos-precheck/core/process_adapter.mjs +0 -47
- package/agents/scripts/hmos-precheck/core/project_catalog.mjs +0 -50
- package/agents/scripts/hmos-precheck/core/result_projection.mjs +0 -147
- package/agents/scripts/hmos-precheck/core/scope_plan.mjs +0 -131
- package/agents/scripts/hmos-precheck/core/sdk_context.mjs +0 -67
- package/agents/scripts/hmos-precheck/docs/architecture.md +0 -37
- package/agents/scripts/hmos-precheck/docs/performance-optimization.md +0 -28
- package/agents/scripts/hmos-precheck/docs/upstream-reference.json +0 -19
- package/agents/scripts/hmos-precheck/docs/validation.md +0 -50
- package/agents/scripts/hmos-precheck/index.mjs +0 -17
- package/agents/scripts/hmos-precheck/invocation.mjs +0 -231
- package/agents/scripts/hmos-precheck/rules/rule_case_matrix.csv +0 -32
- package/agents/scripts/hmos-precheck/rules/rule_inventory.csv +0 -64
- package/agents/scripts/hmos-precheck/rules/rule_inventory.mjs +0 -59
- package/agents/scripts/hmos-precheck/rules/rule_policy.mjs +0 -54
- package/agents/scripts/platform_query.mjs +0 -626
- package/agents/scripts/platform_query.test.mjs +0 -422
- package/agents/self-test-fixer.md +0 -298
- package/agents/self-tester.md +0 -55
- package/agents/test-case-generation-generator.md +0 -317
- package/agents/test-case-generation-validator.md +0 -231
- package/dist/cli/config-store.js +0 -310
- package/dist/cli/config.js +0 -44
- package/dist/cli/env-vars.js +0 -127
- package/dist/cli/index.js +0 -56
- package/dist/cli/init.js +0 -1187
- package/dist/cli/uninstall.js +0 -427
- package/dist/utils/regex.js +0 -8
- package/env-requirements.json +0 -179
- package/resource/choose_editor.png +0 -0
- package/resource/convert_pipeline_process.svg +0 -103
- package/resource/project_architecture.svg +0 -122
- package/resource/set_environment.png +0 -0
- package/resource/set_multimodel.png +0 -0
- package/resource/set_sdk.png +0 -0
- package/resource/title_dark.png +0 -0
- package/skills/hmos-batch-ui-align/SKILL.md +0 -413
- package/skills/hmos-batch-ui-align/references/conversion-procedure.md +0 -661
- package/skills/hmos-batch-ui-align/references/mappings/android-to-harmonyOS-ui-layout-mapping-reference.md +0 -117
- package/skills/hmos-batch-ui-align/references/mvvm/@Link/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -648
- package/skills/hmos-batch-ui-align/references/mvvm/@Provide/350/243/205/351/245/260/345/231/250/345/222/214@Consume/350/243/205/351/245/260/345/231/250/357/274/232/344/270/216/345/220/216/344/273/243/347/273/204/344/273/266/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -1183
- package/skills/hmos-batch-ui-align/references/mvvm/@State/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/347/212/266/346/200/201.md +0 -576
- package/skills/hmos-batch-ui-align/references/mvvm/@Track/350/243/205/351/245/260/345/231/250/357/274/232class/345/257/271/350/261/241/345/261/236/346/200/247/347/272/247/346/233/264/346/226/260.md +0 -297
- package/skills/hmos-batch-ui-align/references/mvvm/@Watch/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/346/233/264/346/224/271/351/200/232/347/237/245.md +0 -395
- package/skills/hmos-batch-ui-align/references/mvvm/AppStorage/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200/347/232/204UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -903
- package/skills/hmos-batch-ui-align/references/mvvm/LocalStorage/357/274/232/351/241/265/351/235/242/347/272/247UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -1178
- package/skills/hmos-batch-ui-align/references/mvvm/PersistentStorage/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -355
- package/skills/hmos-batch-ui-align/references/mvvm//347/256/241/347/220/206/345/272/224/347/224/250/346/213/245/346/234/211/347/232/204/347/212/266/346/200/201/346/246/202/350/277/260.md +0 -11
- package/skills/hmos-batch-ui-align/references/mvvm-v2/!!/350/257/255/346/263/225/357/274/232/345/217/214/345/220/221/347/273/221/345/256/232.md +0 -206
- package/skills/hmos-batch-ui-align/references/mvvm-v2/@Local/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/206/205/351/203/250/347/212/266/346/200/201.md +0 -750
- package/skills/hmos-batch-ui-align/references/mvvm-v2/@Param/350/243/205/351/245/260/345/231/250/357/274/232/347/273/204/344/273/266/345/244/226/351/203/250/350/276/223/345/205/245.md +0 -840
- package/skills/hmos-batch-ui-align/references/mvvm-v2/@Provider/350/243/205/351/245/260/345/231/250/345/222/214@Consumer/350/243/205/351/245/260/345/231/250/357/274/232/350/267/250/347/273/204/344/273/266/345/261/202/347/272/247/345/217/214/345/220/221/345/220/214/346/255/245.md +0 -856
- package/skills/hmos-batch-ui-align/references/mvvm-v2/AppStorageV2/357/274/232/345/272/224/347/224/250/345/205/250/345/261/200UI/347/212/266/346/200/201/345/255/230/345/202/250.md +0 -294
- package/skills/hmos-batch-ui-align/references/mvvm-v2/PersistenceV2/357/274/232/346/214/201/344/271/205/345/214/226/345/255/230/345/202/250UI/347/212/266/346/200/201.md +0 -1220
- package/skills/hmos-batch-ui-align/references/mvvm-v2//347/212/266/346/200/201/347/256/241/347/220/206V1/345/220/221V2/350/277/201/347/247/273/344/270/216/346/267/267/347/224/250/346/214/207/345/257/274.md +0 -840
- package/skills/hmos-batch-ui-align/scripts/arkts_static_check.ts +0 -1592
- package/skills/hmos-batch-ui-align/scripts/measure_pack.ts +0 -752
- package/skills/hmos-convert-pipeline/SKILL.md +0 -486
- package/skills/hmos-incremental-ui-align/README.md +0 -251
- package/skills/hmos-incremental-ui-align/SKILL.md +0 -375
- package/skills/hmos-incremental-ui-align/diff_analysis.md +0 -53
- package/skills/hmos-incremental-ui-align/page_align.md +0 -62
- package/skills/hmos-incremental-ui-align/references/Comparison_Template.md +0 -38
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Observed/350/243/205/351/245/260/345/231/250/345/222/214@ObjectLink/350/243/205/351/245/260/345/231/250/357/274/232/345/265/214/345/245/227/347/261/273/345/257/271/350/261/241/345/261/236/346/200/247/345/217/230/345/214/226.md +0 -2089
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/@Prop/350/243/205/351/245/260/345/231/250/357/274/232/347/210/266/345/255/220/345/215/225/345/220/221/345/220/214/346/255/245.md +0 -1033
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/Environment/357/274/232/350/256/276/345/244/207/347/216/257/345/242/203/346/237/245/350/257/242.md +0 -106
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243/MVVM/346/250/241/345/274/217V1.md +0 -911
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Computed/350/243/205/351/245/260/345/231/250/357/274/232/350/256/241/347/256/227/345/261/236/346/200/247.md +0 -373
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Event/350/243/205/351/245/260/345/231/250/357/274/232/350/247/204/350/214/203/347/273/204/344/273/266/350/276/223/345/207/272.md +0 -158
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Monitor/350/243/205/351/245/260/345/231/250/357/274/232/347/212/266/346/200/201/345/217/230/351/207/217/344/277/256/346/224/271/345/274/202/346/255/245/347/233/221/345/220/254.md +0 -1704
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@ObservedV2/350/243/205/351/245/260/345/231/250/345/222/214@Trace/350/243/205/351/245/260/345/231/250/357/274/232/347/261/273/345/261/236/346/200/247/345/217/230/345/214/226/350/247/202/346/265/213.md +0 -1012
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Once/350/243/205/351/245/260/345/231/250/357/274/232/345/210/235/345/247/213/345/214/226/345/220/214/346/255/245/344/270/200/346/254/241.md +0 -164
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/@Type/350/243/205/351/245/260/345/231/250/357/274/232/346/240/207/350/256/260/347/261/273/345/261/236/346/200/247/347/232/204/347/261/273/345/236/213.md +0 -83
- package/skills/hmos-incremental-ui-align/references/MVVM/345/274/200/345/217/221/346/226/207/346/241/243V2/_/350/214/203/345/274/217/351/200/211/346/213/251/350/257/264/346/230/216.md +0 -47
- package/skills/hmos-incremental-ui-align/references/State_Model_Template.md +0 -74
- package/skills/hmos-incremental-ui-align/references/UI_Analysis_Template.md +0 -34
- package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-atomic-component-mapping-reference.md +0 -2533
- package/skills/hmos-incremental-ui-align/references/android-to-harmonyOS-ui-interaction-mapping-reference.md +0 -555
- package/skills/hmos-incremental-ui-align/scripts/app_feature_verify.ts +0 -937
- package/skills/hmos-incremental-ui-align/scripts/extract_checklist.ts +0 -343
- package/skills/hmos-incremental-ui-align/scripts/navigation-capure.md +0 -76
- package/skills/hmos-incremental-ui-align/scripts/page_capture.ts +0 -977
- package/skills/hmos-incremental-ui-align/scripts/page_capture_burst.ts +0 -188
- package/skills/hmos-integration-test/README.md +0 -341
- package/skills/hmos-integration-test/SKILL.md +0 -464
- package/skills/hmos-integration-test/scripts/report-tool.ts +0 -791
- package/skills/hmos-integration-test/scripts/resolve-metadata-tool.ts +0 -125
- package/skills/hmos-integration-test/scripts/self-test-runner.ts +0 -756
- package/skills/hmos-integration-test/scripts/testcases-tool.ts +0 -239
- package/skills/hmos-resources-convert/SKILL.md +0 -891
- package/skills/hmos-spec-generate/SKILL.md +0 -404
- package/skills/hmos-test-case-generation/README.md +0 -241
- package/skills/hmos-test-case-generation/SKILL.md +0 -324
- package/skills/hmos-test-case-generation/references/contract.md +0 -315
- package/skills/hmos-test-case-generation/references/review-notes-template.md +0 -84
- package/skills/hmos-test-case-generation/references/ui-elements-schema.md +0 -142
- package/skills/hmos-test-case-generation/tools/convert_to_ui_elements.ts +0 -550
- package/skills/hmos-test-case-generation/tools/validate.ts +0 -1312
- package/tools/bfs-crawl/README.md +0 -73
- package/tools/bfs-crawl/android_viewtree_bfs_crawler.ts +0 -1662
- /package/{README.en.md → skills/a2h-arch-generate/scripts/module_create/har/consumer-rules.txt} +0 -0
- /package/skills/{hmos-spec-generate → a2h-spec-generate}/template/REQ.xlsx +0 -0
|
@@ -0,0 +1,1261 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* regression_matrix.mjs — port of tests/regression_matrix.py: cross-corpus regression lock for the
|
|
4
|
+
* static-UTG extractors.
|
|
5
|
+
*
|
|
6
|
+
* node tests/regression_matrix.mjs [--corpus <dir>]
|
|
7
|
+
*
|
|
8
|
+
* Runs each extractor (as `node <stage>.mjs`, via _spawn.stageArgv) across a matrix of real
|
|
9
|
+
* open-source apps that represent the distinct architectures the skill must cover, and asserts:
|
|
10
|
+
* * FLOOR checks — a node/edge count must stay AT OR ABOVE a known-good value.
|
|
11
|
+
* * NO-OP checks — an extractor MUST emit exactly 0 on an architecture it does not target.
|
|
12
|
+
* * MAX checks — ceilings on over-attribution counters.
|
|
13
|
+
* Floors are deliberately a bit below the measured values; they exist to catch REGRESSIONS.
|
|
14
|
+
* Exit code 0 = all pass, 1 = at least one regression.
|
|
15
|
+
*
|
|
16
|
+
* The corpus-free preflight fixtures in _PREFLIGHT_FIXTURES each run as `tests/<name>.mjs` under
|
|
17
|
+
* `node --test`. A fixture file that does not exist fails the preflight.
|
|
18
|
+
*
|
|
19
|
+
* Exports: HERE SCRIPTS DEFAULT_CORPUS _PREFLIGHT_FIXTURES CASES _METRIC_TOKENS _bootstrapWorkspace
|
|
20
|
+
* _NEEDS_WORKSPACE_ARG _NEEDS_WORKSPACE_FLAG _NEEDS_NAV_OUT _NEEDS_SCREEN_OUT _NEEDS_MERGE_ARGS
|
|
21
|
+
* _WS_POS_PROJECT_FLAG _NEEDS_COMPOSE _bootstrapCompose runExtractor runCorpus main
|
|
22
|
+
*/
|
|
23
|
+
import * as fs from 'node:fs';
|
|
24
|
+
import * as path from 'node:path';
|
|
25
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
26
|
+
import { spawnSync } from 'node:child_process';
|
|
27
|
+
import {
|
|
28
|
+
ArgumentParser, IS_WIN, EOL, pyStrip, pySplit, splitlines, sortedStr, strRepr, strTail, pyPrint,
|
|
29
|
+
pyPrintErr, decodeReplace, reSearch, pyRe, runMain,
|
|
30
|
+
} from '../_py.mjs';
|
|
31
|
+
import { _osWalk } from '../layout_resolve.mjs';
|
|
32
|
+
import { stageArgv } from '../_spawn.mjs';
|
|
33
|
+
|
|
34
|
+
export const HERE = path.dirname(fileURLToPath(import.meta.url));
|
|
35
|
+
export const SCRIPTS = path.dirname(HERE);
|
|
36
|
+
export const DEFAULT_CORPUS = 'E:/opensourced_android_repos';
|
|
37
|
+
|
|
38
|
+
const SEP = IS_WIN ? '\\' : '/';
|
|
39
|
+
/** os.path.join(a, b) for one relative segment. */
|
|
40
|
+
const osJoin = (a, b) => (a.endsWith('/') || a.endsWith(SEP) || a === '' ? a + b : a + SEP + b);
|
|
41
|
+
const fwd = (p) => p.split('\\').join('/');
|
|
42
|
+
const isDir = (p) => { try { return fs.statSync(p).isDirectory(); } catch { return false; } };
|
|
43
|
+
const exists = (p) => { try { fs.statSync(p); return true; } catch { return false; } };
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* subprocess.run(argv, capture_output=True, text=True, encoding='utf-8', errors='replace'):
|
|
47
|
+
* {returncode, stdout, stderr} as universal-newline text.
|
|
48
|
+
*/
|
|
49
|
+
function run(argv) {
|
|
50
|
+
const r = spawnSync(String(argv[0]), argv.slice(1).map(String), { maxBuffer: 1 << 30, windowsHide: true });
|
|
51
|
+
const txt = (b) => decodeReplace(b ?? Buffer.alloc(0)).replace(/\r\n?/g, '\n');
|
|
52
|
+
if (r.error && r.error.code === 'ENOENT') { throw r.error; }
|
|
53
|
+
return { returncode: r.status ?? 1, stdout: txt(r.stdout), stderr: txt(r.stderr) };
|
|
54
|
+
}
|
|
55
|
+
/** open(p, 'w', encoding='utf-8').write(s) (text mode: "\n" -> os.linesep). */
|
|
56
|
+
const writeTextMode = (p, s) => fs.writeFileSync(p, IS_WIN ? s.replace(/\n/g, '\r\n') : s, 'utf8');
|
|
57
|
+
|
|
58
|
+
// Fixture tests run by the corpus-free preflight. A mechanism belongs here when no corpus app
|
|
59
|
+
// exercises it, so a CASES row would read a uniform 0 and lock nothing (see the `hybrid_scope`
|
|
60
|
+
// note in _METRIC_TOKENS).
|
|
61
|
+
export const _PREFLIGHT_FIXTURES = ['test_view_interactions.mjs', 'test_hybrid_scope.mjs',
|
|
62
|
+
'test_plaindialog_shared_anchor.mjs',
|
|
63
|
+
// No corpus app is a uni-app SOURCE project (they are all native Android repos), so a CASES
|
|
64
|
+
// row for uniapp_nav would read a uniform 0 and stay green with the whole mechanism deleted.
|
|
65
|
+
// The fixture is the live gate — same reasoning as the hybrid_scope note above.
|
|
66
|
+
'test_uniapp_source.mjs',
|
|
67
|
+
// preference_nav NESTING. Every CASES row for this extractor measures a COUNT (dialog_prefs /
|
|
68
|
+
// edges / hosts), and the flattening defect moved none of them: only the edges' SOURCE was
|
|
69
|
+
// wrong, collapsing a two-level settings tree onto the root fragment. No count-based row can
|
|
70
|
+
// see that, so the fixture is the live gate.
|
|
71
|
+
'test_preference_nesting.mjs',
|
|
72
|
+
// Covers XML comment masking and programmatic setOnPreferenceClickListener modal recovery;
|
|
73
|
+
// corpus count metrics cannot lock these ownership/false-positive behaviours.
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
// (app_dir, extractor, metric, kind, bound)
|
|
77
|
+
// kind="floor" → measured value must be >= bound
|
|
78
|
+
// kind="max" → measured value must be <= bound (ceilings)
|
|
79
|
+
// kind="exact" → measured value must == bound (no-op / exact-count checks)
|
|
80
|
+
// metric ∈ _METRIC_TOKENS[extractor], parsed from the extractor's stderr summary line.
|
|
81
|
+
// Rationale for every row is kept as comments below (identical to the Python table).
|
|
82
|
+
|
|
83
|
+
export const CASES = [
|
|
84
|
+
// NewPipe — pure Fragment app (no presenters). Fragment layer must fire.
|
|
85
|
+
// edges floor is 30 (measured 32 after dedup by (src,tgt,mechanism); the app
|
|
86
|
+
// has only ~31 distinct src→tgt fragment pairs, so 40 was never reachable
|
|
87
|
+
// under the current dedup — a stale floor from an earlier dedup key, corrected
|
|
88
|
+
// 2026-07 alongside the containment/overlay mechanism split).
|
|
89
|
+
// `edges` floors LOWERED 2026-08 when the supertype-position exclusion landed
|
|
90
|
+
// (fragment_nav._supertype_spans). A Kotlin supertype call is spelled exactly
|
|
91
|
+
// like a constructor call -- `class SmbSearchDialog : DialogFragment()` -- so
|
|
92
|
+
// every subclass declaration used to emit a fragment-transaction edge from the
|
|
93
|
+
// subclass to its own BASE. That is inheritance reported as navigation, and
|
|
94
|
+
// these floors were partly holding it up: AnkiDroid carried 39 such edges,
|
|
95
|
+
// RetroMusic 47, Amaze 14, NewPipe 5 (verified individually -- each excluded
|
|
96
|
+
// site is a `class X : YFragment()` header, listed by
|
|
97
|
+
// scripts/tests/probe_autoload.py's sibling probe).
|
|
98
|
+
//
|
|
99
|
+
// So the drop is the defect being removed, not coverage being lost, and the
|
|
100
|
+
// floors are re-set from measured post-fix values (`measure_corpus.py
|
|
101
|
+
// --extractors fragment_nav`) with the usual margin. `nodes` is untouched: the
|
|
102
|
+
// fix removes edges only.
|
|
103
|
+
['TeamNewPipe__NewPipe', 'fragment_nav', 'nodes', 'floor', 55],
|
|
104
|
+
['TeamNewPipe__NewPipe', 'fragment_nav', 'edges', 'floor', 25], // measured 29
|
|
105
|
+
// RetroMusic — Fragment + MVP presenters + dialogs. Richest fragment graph.
|
|
106
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'nodes', 'floor', 70],
|
|
107
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'edges', 'floor', 65], // measured 73
|
|
108
|
+
// Amaze — Fragment + dialogs.
|
|
109
|
+
['TeamAmaze__AmazeFileManager', 'fragment_nav', 'nodes', 'floor', 20],
|
|
110
|
+
['TeamAmaze__AmazeFileManager', 'fragment_nav', 'edges', 'floor', 14], // measured 17
|
|
111
|
+
// `click_triggered` — transactions inside a click-listener body. A FLOOR,
|
|
112
|
+
// because the failure is silent and one-directional: a transaction found
|
|
113
|
+
// outside every listener span is classified as a lifecycle auto-load
|
|
114
|
+
// (`action:"default"`), which downstream renders as an already-visible step
|
|
115
|
+
// needing NO gesture. So a dialog the user must tap a button to open was
|
|
116
|
+
// reported as appearing by itself, and the tap vanished from the crawler's
|
|
117
|
+
// instruction entirely.
|
|
118
|
+
// Cause: `_LISTENER_RE` required `setOn...Listener\(`, but Kotlin drops the
|
|
119
|
+
// parens for a sole trailing lambda (`setOnClickListener { ... }`) — the
|
|
120
|
+
// idiomatic form. Measured before the fix: these four apps yielded 0
|
|
121
|
+
// click-triggered edges between them, every one filed as auto-load.
|
|
122
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'click_triggered', 'floor', 2],
|
|
123
|
+
['AntennaPod__AntennaPod', 'fragment_nav', 'click_triggered', 'floor', 10],
|
|
124
|
+
['TeamNewPipe__NewPipe', 'fragment_nav', 'click_triggered', 'floor', 1],
|
|
125
|
+
['TeamAmaze__AmazeFileManager', 'fragment_nav', 'click_triggered', 'floor', 1],
|
|
126
|
+
// DRAWER PANELS. A fragment committed into a container that is a DIRECT CHILD of
|
|
127
|
+
// a DrawerLayout with `layout_gravity` start/end is off-screen until the user
|
|
128
|
+
// opens the drawer, so its edge is a swipe, not a lifecycle auto-load. androidx
|
|
129
|
+
// throws on a DrawerLayout child lacking that attribute, so this is a framework
|
|
130
|
+
// rule rather than a naming guess.
|
|
131
|
+
//
|
|
132
|
+
// The floor catches the panel being reported as already visible, which deletes
|
|
133
|
+
// the revealing swipe from the instruction entirely. The `max` catches the
|
|
134
|
+
// opposite: a CONTENT-container fragment mistaken for a panel hands every page
|
|
135
|
+
// behind it a swipe nobody performs. `drawer_guarded` needs its own ceiling for a
|
|
136
|
+
// third failure that is quieter than either — a wrongly attached precondition
|
|
137
|
+
// drops a reachable page out of `P0_fresh` and the crawler never attempts it.
|
|
138
|
+
//
|
|
139
|
+
// Two apps fire, and the zeros are VERIFIED correct rather than assumed: NewPipe's
|
|
140
|
+
// panel is an `<include>`d NavigationView (its FragmentContainerViews sit inside
|
|
141
|
+
// the Coordinator with `center_horizontal`, not an edge gravity), Amaze uses a
|
|
142
|
+
// CustomNavigationView, Gadgetbridge a NavigationView. No fragment is committed
|
|
143
|
+
// into a panel in any of them, so there is nothing to rewrite.
|
|
144
|
+
['AntennaPod__AntennaPod', 'fragment_nav', 'drawer_panel', 'floor', 1],
|
|
145
|
+
['AntennaPod__AntennaPod', 'fragment_nav', 'drawer_panel', 'max', 1],
|
|
146
|
+
['AntennaPod__AntennaPod', 'fragment_nav', 'drawer_guarded', 'floor', 1],
|
|
147
|
+
['AntennaPod__AntennaPod', 'fragment_nav', 'drawer_guarded', 'max', 1],
|
|
148
|
+
['Omni-Notes-develop', 'fragment_nav', 'drawer_panel', 'floor', 1],
|
|
149
|
+
['Omni-Notes-develop', 'fragment_nav', 'drawer_panel', 'max', 1],
|
|
150
|
+
['Omni-Notes-develop', 'fragment_nav', 'drawer_guarded', 'exact', 0],
|
|
151
|
+
['TeamNewPipe__NewPipe', 'fragment_nav', 'drawer_panel', 'exact', 0],
|
|
152
|
+
['TeamAmaze__AmazeFileManager', 'fragment_nav', 'drawer_panel', 'exact', 0],
|
|
153
|
+
['Anki-Android-main', 'fragment_nav', 'drawer_panel', 'exact', 0],
|
|
154
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'drawer_panel', 'exact', 0],
|
|
155
|
+
['Timber-master', 'fragment_nav', 'drawer_panel', 'exact', 0],
|
|
156
|
+
['florisboard__florisboard', 'fragment_nav', 'drawer_panel', 'exact', 0],
|
|
157
|
+
// florisboard — pure Compose. Fragment extractor MUST be a clean no-op.
|
|
158
|
+
['florisboard__florisboard', 'fragment_nav', 'nodes', 'exact', 0],
|
|
159
|
+
['florisboard__florisboard', 'fragment_nav', 'edges', 'exact', 0],
|
|
160
|
+
// mihon — Compose-dominant, but has exactly ONE real Fragment: a
|
|
161
|
+
// PreferenceFragmentCompat subclass (SourcePreferencesScreen.kt) hosted by an
|
|
162
|
+
// Activity — a legitimate settings page, not a hallucination. `exact 1` keeps
|
|
163
|
+
// the anti-over-fire guarantee (the count can't drift up without a genuinely
|
|
164
|
+
// new fragment) while reflecting reality (corrected 2026-07; was `exact 0`,
|
|
165
|
+
// which predated that source file existing).
|
|
166
|
+
['mihonapp__mihon', 'fragment_nav', 'nodes', 'exact', 1],
|
|
167
|
+
['mihonapp__mihon', 'fragment_nav', 'edges', 'exact', 1],
|
|
168
|
+
|
|
169
|
+
// --- lifecycle vs dispatched commit (fragment_nav.classify_commit) --------
|
|
170
|
+
// A transaction NOT inside a click-listener span used to be stamped
|
|
171
|
+
// `via:auto-load`, which click_paths renders as an already-visible step
|
|
172
|
+
// needing no gesture — so a page you must tap to reach was reported as
|
|
173
|
+
// appearing by itself and the tap vanished from the instruction. Absence of a
|
|
174
|
+
// listener is not evidence of a lifecycle commit; `dispatched` is the honest
|
|
175
|
+
// verdict when the enclosing scope proves otherwise (a back-stack push, or a
|
|
176
|
+
// non-lifecycle enclosing fn).
|
|
177
|
+
//
|
|
178
|
+
// `auto_load` gets a CEILING here, the opposite direction from its usual
|
|
179
|
+
// floor: the failure being locked out is over-claiming auto-load, and it is
|
|
180
|
+
// silent (the hop still exists, it just loses its gesture). `dispatched` gets
|
|
181
|
+
// a floor so the classification cannot quietly revert to blanket auto-load.
|
|
182
|
+
['AntennaPod__AntennaPod', 'fragment_nav', 'auto_load', 'max', 12],
|
|
183
|
+
['AntennaPod__AntennaPod', 'fragment_nav', 'dispatched', 'floor', 20],
|
|
184
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'auto_load', 'max', 8],
|
|
185
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'dispatched', 'floor', 8],
|
|
186
|
+
['TeamNewPipe__NewPipe', 'fragment_nav', 'dispatched', 'floor', 6],
|
|
187
|
+
|
|
188
|
+
// --- layout-declared fragments (fragment_nav.detect_layout_edges) --------
|
|
189
|
+
// `<fragment android:name>` / `FragmentContainerView android:name` are
|
|
190
|
+
// instantiated by the framework on inflate, with no call site, so every
|
|
191
|
+
// call-keyed extractor missed the family: Signal declares 183, RetroMusic 53.
|
|
192
|
+
// It is also how an app names its FIRST screen, and without the edge
|
|
193
|
+
// assemble.py's UI-less-shell fold has no unguarded entry child and folds the
|
|
194
|
+
// host onto a click-triggered page instead (BreezyWeather: rooted the graph
|
|
195
|
+
// at the wrong fragment).
|
|
196
|
+
//
|
|
197
|
+
// CEILING as well as floor, because `layout_inflate` is the one family
|
|
198
|
+
// allowed to claim "already on screen, no gesture" — over-emitting it removes
|
|
199
|
+
// taps from paths. `layout_region` is the embedded (folded) subset.
|
|
200
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'layout_inflate', 'floor', 12],
|
|
201
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'layout_inflate', 'max', 30],
|
|
202
|
+
['RetroMusicApp__RetroMusicPlayer', 'fragment_nav', 'layout_region', 'floor', 8],
|
|
203
|
+
['Anki-Android-main', 'fragment_nav', 'layout_inflate', 'floor', 1],
|
|
204
|
+
// KMP source sets: StreetComplete keeps its Android code and resources in
|
|
205
|
+
// `src/androidMain`, so the old `/src/main/` filter discarded the app whole —
|
|
206
|
+
// fragment_nav measured 0 fragments and 0 edges for a real Fragment app.
|
|
207
|
+
['streetcomplete__StreetComplete', 'fragment_nav', 'nodes', 'floor', 100],
|
|
208
|
+
['streetcomplete__StreetComplete', 'fragment_nav', 'edges', 'floor', 8],
|
|
209
|
+
// presenter_nav sub-page detection MUST NOT over-fire on apps that don't have
|
|
210
|
+
// the "list of option objects rendered by one host" shape. The content-type
|
|
211
|
+
// heuristic always picks SOME List<X> mode, but the sub-page factory filter
|
|
212
|
+
// (returns-T + create-verb/label) must keep the count near zero on these.
|
|
213
|
+
// A ceiling check (kind="max") catches a future loosening that hallucinates
|
|
214
|
+
// sub-pages across every app.
|
|
215
|
+
['florisboard__florisboard', 'presenter_nav', 'subpages', 'exact', 0],
|
|
216
|
+
['TeamNewPipe__NewPipe', 'presenter_nav', 'subpages', 'max', 3],
|
|
217
|
+
['RetroMusicApp__RetroMusicPlayer', 'presenter_nav', 'subpages', 'max', 5],
|
|
218
|
+
// Section-catalog detection (Detector E) must fire ONLY on a keyed nav
|
|
219
|
+
// registry (map.put(KEY, new SectionType(getString(...)))). It must NOT
|
|
220
|
+
// invent a sidebar from list-row items appended in a loop, even when their
|
|
221
|
+
// type name contains "Tab" (NewPipe's ChooseTabListItem) — that's what the
|
|
222
|
+
// `.put(` structural context + section-marker filter guarantee.
|
|
223
|
+
['TeamNewPipe__NewPipe', 'presenter_nav', 'sections', 'exact', 0],
|
|
224
|
+
['RetroMusicApp__RetroMusicPlayer', 'presenter_nav', 'sections', 'exact', 0],
|
|
225
|
+
['TeamAmaze__AmazeFileManager', 'presenter_nav', 'sections', 'exact', 0],
|
|
226
|
+
['florisboard__florisboard', 'presenter_nav', 'sections', 'exact', 0],
|
|
227
|
+
// menu_nav — the View-system options/context menu layer (res/menu + inflate +
|
|
228
|
+
// getItemId dispatch). Floors are below measured (2026-07): AntennaPod 44/71,
|
|
229
|
+
// RetroMusic 13/22, NewPipe 16/21, Amaze 4/3.
|
|
230
|
+
['AntennaPod__AntennaPod', 'menu_nav', 'nodes', 'floor', 34],
|
|
231
|
+
['AntennaPod__AntennaPod', 'menu_nav', 'edges', 'floor', 56],
|
|
232
|
+
['RetroMusicApp__RetroMusicPlayer', 'menu_nav', 'nodes', 'floor', 10],
|
|
233
|
+
['RetroMusicApp__RetroMusicPlayer', 'menu_nav', 'edges', 'floor', 16],
|
|
234
|
+
['TeamNewPipe__NewPipe', 'menu_nav', 'nodes', 'floor', 12],
|
|
235
|
+
['TeamNewPipe__NewPipe', 'menu_nav', 'edges', 'floor', 16],
|
|
236
|
+
['TeamAmaze__AmazeFileManager', 'menu_nav', 'nodes', 'floor', 3],
|
|
237
|
+
// Fan-out ceiling: attributing a menu branch to every class that inflates the
|
|
238
|
+
// menu resource fabricates edges wholesale (one generic item id like a search
|
|
239
|
+
// action recurs across many menu resources → 50+ fake edges from one branch,
|
|
240
|
+
// measured before the fix). Only evidence-based joins are allowed: the
|
|
241
|
+
// handler's own class, a unique delegate's callers, or real `extends`
|
|
242
|
+
// subclasses. These ceilings catch a future loosening back to the blanket
|
|
243
|
+
// fallback — the same mention-is-not-a-navigation failure as refs-to.
|
|
244
|
+
['AntennaPod__AntennaPod', 'menu_nav', 'edges', 'max', 90],
|
|
245
|
+
['RetroMusicApp__RetroMusicPlayer', 'menu_nav', 'edges', 'max', 60],
|
|
246
|
+
// Pure-Compose apps have no res/menu at all → clean no-op, never invented.
|
|
247
|
+
['florisboard__florisboard', 'menu_nav', 'nodes', 'exact', 0],
|
|
248
|
+
['florisboard__florisboard', 'menu_nav', 'edges', 'exact', 0],
|
|
249
|
+
// mihon: has exactly one res/menu xml (6 items) but no getItemId dispatch
|
|
250
|
+
// that navigates — must stay at zero rather than guessing from the XML alone.
|
|
251
|
+
['mihonapp__mihon', 'menu_nav', 'edges', 'exact', 0],
|
|
252
|
+
|
|
253
|
+
// compose_overlay — the Compose dialog/sheet/menu layer. Previously had NO
|
|
254
|
+
// bound of any kind, which is how label resolution reached 0% on two whole
|
|
255
|
+
// apps unnoticed: the overlay and edge counts stayed healthy the entire time,
|
|
256
|
+
// so nothing in the matrix could see it. Floors (2026-07, measured):
|
|
257
|
+
// florisboard 11 overlays / 5 edges / 1 labelled, mihon 39 / 37 / 4.
|
|
258
|
+
['florisboard__florisboard', 'compose_overlay', 'overlays', 'floor', 10],
|
|
259
|
+
['florisboard__florisboard', 'compose_overlay', 'open_overlay', 'floor', 4],
|
|
260
|
+
['mihonapp__mihon', 'compose_overlay', 'overlays', 'floor', 35],
|
|
261
|
+
['mihonapp__mihon', 'compose_overlay', 'open_overlay', 'floor', 30],
|
|
262
|
+
// Label-coverage floors. These are the metric the crawler consumes: an
|
|
263
|
+
// unlabelled overlay edge degrades to a humanised code name that renders
|
|
264
|
+
// nowhere on screen. A drop here means an accessor form or a state-flag /
|
|
265
|
+
// gating shape stopped resolving. The two apps deliberately cover DIFFERENT
|
|
266
|
+
// resource accessors — florisboard `stringRes(R.string.x)`, mihon
|
|
267
|
+
// `stringResource(MR.strings.x)` (moko-resources, whose strings.xml also
|
|
268
|
+
// lives outside any `res/values*/` dir) — so a re-narrowing of either the
|
|
269
|
+
// accessor regex or the string-table walk trips one of them.
|
|
270
|
+
['florisboard__florisboard', 'compose_overlay', 'labelled', 'floor', 1],
|
|
271
|
+
// mihon's floor is 1, LOWERED from 3 after confirming the other 3 were
|
|
272
|
+
// wrong: they came from dismiss sites (`isMenuExpanded = false`) that sit on
|
|
273
|
+
// the menu's own ITEMS, so an overflow menu was labelled with a row inside
|
|
274
|
+
// it ('取消', '删除', '立即开始下载') instead of the ⋮ control that opens it.
|
|
275
|
+
// Excluding dismiss sites removed them. This is the one legitimate reason to
|
|
276
|
+
// lower a floor — the previous value was measured on incorrect output.
|
|
277
|
+
['mihonapp__mihon', 'compose_overlay', 'labelled', 'floor', 1],
|
|
278
|
+
// Label-coverage CEILINGS. The failure mode for label resolution is not
|
|
279
|
+
// fan-out but MIS-labelling: a wrong label is worse than none, because the
|
|
280
|
+
// crawler hands it to a semantic navigator that then hunts text belonging to
|
|
281
|
+
// another control (or to nothing). Both apps have architectures whose
|
|
282
|
+
// openers are genuinely unresolvable for most edges — mihon routes dialogs
|
|
283
|
+
// through a sealed-class state machine whose opener label lives in a hoisted
|
|
284
|
+
// callback parameter in a different composable — so labelled approaching
|
|
285
|
+
// open_overlay means the resolver started guessing. In particular these
|
|
286
|
+
// catch a future removal of the `widget:` sentinel refusal in
|
|
287
|
+
// _build_flag_labels, which would re-admit code names as labels.
|
|
288
|
+
['florisboard__florisboard', 'compose_overlay', 'labelled', 'max', 3],
|
|
289
|
+
['mihonapp__mihon', 'compose_overlay', 'labelled', 'max', 15],
|
|
290
|
+
// SEALED-CLASS dialog state (MVI / ScreenModel). This app holds dialog
|
|
291
|
+
// visibility as a sealed variant in a ScreenModel and renders it from a
|
|
292
|
+
// `when` arm, so neither half of the label machinery saw it: no local
|
|
293
|
+
// `mutableStateOf` holder was detected, and the render-site gate scan (which
|
|
294
|
+
// knew only `if (flag)` / `flag?.let {`) produced no token, so the lookup
|
|
295
|
+
// never ran. All 32 of its overlay edges were unlabelled for that reason.
|
|
296
|
+
// The variant NAME is the linking token, exactly as a boolean flag name is.
|
|
297
|
+
//
|
|
298
|
+
// A CEILING as well as the floor above, because resolving it required a walk
|
|
299
|
+
// ACROSS function boundaries — the recurring over-attribution risk in this
|
|
300
|
+
// skill. The first version of that walk read a fixed-width tail instead of
|
|
301
|
+
// brace-matching the lambda and returned the NEIGHBOURING arm's label (a
|
|
302
|
+
// rename button's text for a delete dialog): a wrong label reads as
|
|
303
|
+
// resolved, which is worse than none.
|
|
304
|
+
['mihonapp__mihon', 'compose_overlay', 'labelled', 'floor', 3],
|
|
305
|
+
// The other Compose apps must be UNCHANGED by that tier — it is a fallback,
|
|
306
|
+
// reached only when the local tiers found nothing, so an app using local
|
|
307
|
+
// boolean flags cannot be affected. These pin the measured values exactly.
|
|
308
|
+
['florisboard__florisboard', 'compose_overlay', 'labelled', 'floor', 1],
|
|
309
|
+
['signalapp__Signal-Android', 'compose_overlay', 'labelled', 'max', 1],
|
|
310
|
+
['streetcomplete__StreetComplete', 'compose_overlay', 'labelled', 'max', 2],
|
|
311
|
+
['wikimedia__apps-android-wikipedia', 'compose_overlay', 'labelled', 'max', 4],
|
|
312
|
+
['bitwarden__android', 'compose_overlay', 'labelled', 'max', 0],
|
|
313
|
+
// Clean no-op on View-based apps: no Compose overlay primitives at all, so
|
|
314
|
+
// nodes/edges must be exactly 0 and never invented from View dialogs.
|
|
315
|
+
['TeamNewPipe__NewPipe', 'compose_overlay', 'nodes', 'exact', 0],
|
|
316
|
+
['TeamNewPipe__NewPipe', 'compose_overlay', 'edges', 'exact', 0],
|
|
317
|
+
['RetroMusicApp__RetroMusicPlayer', 'compose_overlay', 'nodes', 'exact', 0],
|
|
318
|
+
['AntennaPod__AntennaPod', 'compose_overlay', 'nodes', 'exact', 0],
|
|
319
|
+
['TeamAmaze__AmazeFileManager', 'compose_overlay', 'nodes', 'exact', 0],
|
|
320
|
+
|
|
321
|
+
// --- device-gated pager variants (device_env / pager_variants) ----------
|
|
322
|
+
// A pager rendered inside a `when` arm over window size / orientation is one
|
|
323
|
+
// of N MUTUALLY EXCLUSIVE layout variants. Recovering the arm condition needs
|
|
324
|
+
// a walk over resolve_source's climb sites, and both failure directions are
|
|
325
|
+
// bounded here.
|
|
326
|
+
//
|
|
327
|
+
// READ THIS BEFORE RETUNING: these rows measured 0 on ALL 22 corpus apps, so
|
|
328
|
+
// what they protect is ONE property only — that the condition walk does not
|
|
329
|
+
// FABRICATE a device guard on 22 unrelated architectures. They canNOT catch
|
|
330
|
+
// the recovery silently going to zero on the shape it targets; no corpus app
|
|
331
|
+
// has a responsive-layout `when` around a pager. That floor lives outside the
|
|
332
|
+
// corpus (Salt Player: device_env=14, pager_variants=10). Same asymmetry, and
|
|
333
|
+
// the same reason, as the navactions_nav / compose_navbar_nav block below.
|
|
334
|
+
//
|
|
335
|
+
// `pager_variants` counts pager edges beyond one per (source, target) — i.e.
|
|
336
|
+
// exactly the collapse this work fixed. Before the fix four layout variants
|
|
337
|
+
// deduped onto one key and 3 of 4 were silently discarded, so on Salt Player
|
|
338
|
+
// this read 0 while the app really had 10 extra variant hops.
|
|
339
|
+
// `pager_unresolved` — pager hops whose PagerState `initialPage` could NOT be
|
|
340
|
+
// resolved. This is the bound that would have caught the wrong-direction bug
|
|
341
|
+
// at its source, and it is a CEILING because the failure mode is silent by
|
|
342
|
+
// nature: an unresolved initialPage falls back to a blind 0, which then
|
|
343
|
+
// decides every branch's swipe direction and whether the first branch is a
|
|
344
|
+
// gesture-free `default`. On Salt Player 4 edges carried
|
|
345
|
+
// initial_page_confident=False for the entire life of the extractor and
|
|
346
|
+
// nothing read the field, so PanelUI was reported as already-visible when it
|
|
347
|
+
// really needs a swipe-right (and PlayerCover, the true start page, was given
|
|
348
|
+
// a phantom swipe). A ceiling of 0 on an app that HAS pagers turns that back
|
|
349
|
+
// into a visible number; the accompanying stderr line names the sites.
|
|
350
|
+
['bitwarden__android', 'compose_overlay', 'pager_unresolved', 'max', 0],
|
|
351
|
+
['mihonapp__mihon', 'compose_overlay', 'pager_unresolved', 'max', 0],
|
|
352
|
+
['signalapp__Signal-Android', 'compose_overlay', 'pager_unresolved', 'max', 0],
|
|
353
|
+
['streetcomplete__StreetComplete', 'compose_overlay', 'pager_unresolved', 'max', 0],
|
|
354
|
+
['bitwarden__android', 'compose_overlay', 'device_env', 'exact', 0],
|
|
355
|
+
['bitwarden__android', 'compose_overlay', 'pager_variants', 'exact', 0],
|
|
356
|
+
['mihonapp__mihon', 'compose_overlay', 'device_env', 'exact', 0],
|
|
357
|
+
['mihonapp__mihon', 'compose_overlay', 'pager_variants', 'exact', 0],
|
|
358
|
+
['signalapp__Signal-Android', 'compose_overlay', 'device_env', 'exact', 0],
|
|
359
|
+
['signalapp__Signal-Android', 'compose_overlay', 'pager_variants', 'exact', 0],
|
|
360
|
+
['florisboard__florisboard', 'compose_overlay', 'device_env', 'exact', 0],
|
|
361
|
+
['streetcomplete__StreetComplete', 'compose_overlay', 'device_env', 'exact', 0],
|
|
362
|
+
['wikimedia__apps-android-wikipedia', 'compose_overlay', 'device_env', 'exact', 0],
|
|
363
|
+
// The variant split must not perturb the overlay layer it shares a pass with.
|
|
364
|
+
// These re-lock the pre-change edge totals measured on the same run, so a
|
|
365
|
+
// future change to the condition walk cannot quietly inflate open-overlay.
|
|
366
|
+
// Re-measured after the overlay scan was widened (these two ceilings had
|
|
367
|
+
// been failing on the corpus: bitwarden 153 then 165 vs 135, signal 84 then
|
|
368
|
+
// 85 vs 81). Checked before raising them, because a breached ceiling is
|
|
369
|
+
// normally the over-attribution signal this table exists to catch:
|
|
370
|
+
// * the per-source distribution is flat -- bitwarden's 147 open-overlay
|
|
371
|
+
// edges spread over its route set (top source holds 12), which is the
|
|
372
|
+
// shape of a password manager's confirm/unlock/delete dialogs, not of one
|
|
373
|
+
// node collecting a neighbour's edges;
|
|
374
|
+
// * `measure_corpus.py --extractors compose_overlay` independently reports
|
|
375
|
+
// 165 / 85;
|
|
376
|
+
// * the numbers are NOT a consequence of the declaration-collision guard
|
|
377
|
+
// added alongside this -- reverting just that guard still measures
|
|
378
|
+
// bitwarden 165 (and signal 86, i.e. the guard lowers signal by one).
|
|
379
|
+
// Headroom stays deliberately tight so the ceiling keeps its purpose.
|
|
380
|
+
['bitwarden__android', 'compose_overlay', 'edges', 'max', 175],
|
|
381
|
+
// Raised 92 -> 138 when the file-fragment tier landed: 44 sites that used to
|
|
382
|
+
// resolve only to a `screen:<fn>` pseudo-node (and were therefore dropped) now
|
|
383
|
+
// root at the `fragment:<Name>` node fragment_nav.py already emits, and 4 that
|
|
384
|
+
// were misattributed to a demo module's route moved to their real host. Every
|
|
385
|
+
// one of the 24 fragment sources was checked to exist in fragment_nav's node
|
|
386
|
+
// set, so the gain is edges recovered, not orphans invented. Paired with a
|
|
387
|
+
// floor so a regression that loses them again cannot pass.
|
|
388
|
+
['signalapp__Signal-Android', 'compose_overlay', 'edges', 'max', 138],
|
|
389
|
+
['signalapp__Signal-Android', 'compose_overlay', 'edges', 'floor', 130],
|
|
390
|
+
['mihonapp__mihon', 'compose_overlay', 'edges', 'max', 34],
|
|
391
|
+
['streetcomplete__StreetComplete', 'compose_overlay', 'edges', 'max', 23],
|
|
392
|
+
|
|
393
|
+
// --- same-name declaration scoping (call-graph collision) ---------------
|
|
394
|
+
// Two files may declare a composable of the same name (naming a helper after
|
|
395
|
+
// what it renders is ordinary Compose idiom). A NAME-keyed call graph pooled
|
|
396
|
+
// their callers, so the climb could root an edge at a caller of the SIBLING
|
|
397
|
+
// declaration — a page that structurally cannot open the target. See
|
|
398
|
+
// tests/test_same_name_decl_scope.py.
|
|
399
|
+
//
|
|
400
|
+
// WHICH PROPERTY EACH ROW PROTECTS — the two are different:
|
|
401
|
+
// * `dup_callee_names` FLOORS pin that the collision DETECTOR still sees the
|
|
402
|
+
// collisions these apps really have. If a future change made the scoping
|
|
403
|
+
// silently name-keyed again, the count would go to 0 and these would fail.
|
|
404
|
+
// They do NOT prove any edge was re-pointed correctly.
|
|
405
|
+
// * The `edges` ceilings ABOVE (re-measured identical after this change:
|
|
406
|
+
// 135 / 81 / 32 / 21) are what prove the scoping did not DROP real edges.
|
|
407
|
+
// * The recovery FLOOR — a wrong source becoming the right one — is
|
|
408
|
+
// unreachable from the corpus: it needs a known-correct expected source per
|
|
409
|
+
// edge, which no corpus row encodes. It lives in the synthetic fixture,
|
|
410
|
+
// which also pins the WRONG answer (the sibling's caller) as a regression.
|
|
411
|
+
// Floors are set from the TOP-LEVEL-only measurement (bitwarden 20, signal 26,
|
|
412
|
+
// mihon 6, streetcomplete 1, florisboard 0). An earlier draft used numbers
|
|
413
|
+
// taken before class members were excluded (22/35/9/4/1) and every one failed:
|
|
414
|
+
// `override fun Content()` in dozens of screen classes is not a collision, so
|
|
415
|
+
// scoping to top level correctly LOWERED the counts. Set a bound from the
|
|
416
|
+
// measurement you actually intend to protect, not from an earlier run.
|
|
417
|
+
['bitwarden__android', 'compose_overlay', 'dup_callee_names', 'floor', 16],
|
|
418
|
+
['signalapp__Signal-Android', 'compose_overlay', 'dup_callee_names', 'floor', 21],
|
|
419
|
+
['mihonapp__mihon', 'compose_overlay', 'dup_callee_names', 'floor', 5],
|
|
420
|
+
// streetcomplete measured 1 and florisboard 0: a Compose app can simply have
|
|
421
|
+
// no cross-file top-level name collision. florisboard therefore gets no floor
|
|
422
|
+
// (there is nothing to protect); its `ambiguous_hops == 0` row below is the
|
|
423
|
+
// meaningful assertion for it.
|
|
424
|
+
['streetcomplete__StreetComplete', 'compose_overlay', 'dup_callee_names', 'floor', 1],
|
|
425
|
+
// A non-Compose app has no composables to collide: `exact 0` proves the
|
|
426
|
+
// detector does not FABRICATE collisions on an architecture it cannot see.
|
|
427
|
+
['TeamNewPipe__NewPipe', 'compose_overlay', 'dup_callee_names', 'exact', 0],
|
|
428
|
+
['RetroMusicApp__RetroMusicPlayer', 'compose_overlay', 'dup_callee_names', 'exact', 0],
|
|
429
|
+
['AntennaPod__AntennaPod', 'compose_overlay', 'dup_callee_names', 'exact', 0],
|
|
430
|
+
['TeamAmaze__AmazeFileManager', 'compose_overlay', 'dup_callee_names', 'exact', 0],
|
|
431
|
+
// `ambiguous_hops` counts hops REFUSED because 2+ visible same-named
|
|
432
|
+
// declarations made the binding undecidable (Kotlin itself needs the import).
|
|
433
|
+
// A refusal emits no edge, so an unbounded rise here means silent edge LOSS —
|
|
434
|
+
// these ceilings are measured values, and the `edges` ceilings above are the
|
|
435
|
+
// cross-check that today's refusals cost nothing.
|
|
436
|
+
// Ceilings set from the measurement WITH all four resolution tiers in place
|
|
437
|
+
// (signal 9, bitwarden 2, mihon 0). An earlier draft used the pre-tier numbers
|
|
438
|
+
// (100 / 23 / 8); those passed while protecting nothing, since a ceiling 11x
|
|
439
|
+
// the real value cannot detect a tier regressing. If the import or
|
|
440
|
+
// same-package tier breaks, these are what fails.
|
|
441
|
+
['signalapp__Signal-Android', 'compose_overlay', 'ambiguous_hops', 'max', 14],
|
|
442
|
+
['bitwarden__android', 'compose_overlay', 'ambiguous_hops', 'max', 5],
|
|
443
|
+
['mihonapp__mihon', 'compose_overlay', 'ambiguous_hops', 'exact', 0],
|
|
444
|
+
// Zero refusals where every collision is decidable by file scope/visibility —
|
|
445
|
+
// the common case, and what keeps the refusal from being a blunt instrument.
|
|
446
|
+
['streetcomplete__StreetComplete', 'compose_overlay', 'ambiguous_hops', 'exact', 0],
|
|
447
|
+
['florisboard__florisboard', 'compose_overlay', 'ambiguous_hops', 'exact', 0],
|
|
448
|
+
['wikimedia__apps-android-wikipedia', 'compose_overlay', 'ambiguous_hops', 'exact', 0],
|
|
449
|
+
|
|
450
|
+
// --- navactions_nav / compose_navbar_nav / compose_widgets -------------
|
|
451
|
+
// Bounds set from measure_corpus.py over 22 corpus apps (0 crashes, 0
|
|
452
|
+
// timeouts, 0 SANITY). Read the asymmetry below before "fixing" it: the two
|
|
453
|
+
// EDGE extractors have no floor anywhere in the corpus, and that is a
|
|
454
|
+
// measurement, not an omission.
|
|
455
|
+
//
|
|
456
|
+
// navactions_nav targets a centralized NavigationActions WRAPPER class (the
|
|
457
|
+
// JetNews / Now-in-Android shape: 64 lowercase `navigateToX()` methods, each
|
|
458
|
+
// holding one `navController.navigate(ROUTE)`), and compose_navbar_nav
|
|
459
|
+
// targets a Compose bottom-nav TABLE (`listOf(BottomNavItem(route, title,
|
|
460
|
+
// icon))` + a hoisted `onNavItemClick`). NOT ONE corpus app has either shape
|
|
461
|
+
// — every one measured edges=0, including the five that use navigation-compose
|
|
462
|
+
// at all (bitwarden, florisboard, signal, streetcomplete, mihon). So the only
|
|
463
|
+
// floors that exist for these two live outside the corpus, on
|
|
464
|
+
// CollegeFormBlue (166 and 35 edges). Consequence to respect: these no-op
|
|
465
|
+
// rows prove the extractors do not FABRICATE on 22 unrelated architectures,
|
|
466
|
+
// and nothing here would catch them silently going to zero on the shape they
|
|
467
|
+
// do target. Add that app to the corpus before trusting these rows as
|
|
468
|
+
// protection against under-firing.
|
|
469
|
+
['TeamNewPipe__NewPipe', 'navactions_nav', 'edges', 'exact', 0],
|
|
470
|
+
['RetroMusicApp__RetroMusicPlayer', 'navactions_nav', 'edges', 'exact', 0],
|
|
471
|
+
['AntennaPod__AntennaPod', 'navactions_nav', 'edges', 'exact', 0],
|
|
472
|
+
['TeamAmaze__AmazeFileManager', 'navactions_nav', 'edges', 'exact', 0],
|
|
473
|
+
// Compose apps that still have no wrapper class — the discriminating cases:
|
|
474
|
+
// a zero here means "no NavigationActions class", not "not Compose".
|
|
475
|
+
['mihonapp__mihon', 'navactions_nav', 'edges', 'exact', 0],
|
|
476
|
+
['florisboard__florisboard', 'navactions_nav', 'edges', 'exact', 0],
|
|
477
|
+
['signalapp__Signal-Android', 'navactions_nav', 'edges', 'exact', 0],
|
|
478
|
+
['bitwarden__android', 'navactions_nav', 'edges', 'exact', 0],
|
|
479
|
+
['streetcomplete__StreetComplete', 'navactions_nav', 'edges', 'exact', 0],
|
|
480
|
+
['TeamNewPipe__NewPipe', 'compose_navbar_nav', 'edges', 'exact', 0],
|
|
481
|
+
['AntennaPod__AntennaPod', 'compose_navbar_nav', 'edges', 'exact', 0],
|
|
482
|
+
['mihonapp__mihon', 'compose_navbar_nav', 'edges', 'exact', 0],
|
|
483
|
+
['florisboard__florisboard', 'compose_navbar_nav', 'edges', 'exact', 0],
|
|
484
|
+
['signalapp__Signal-Android', 'compose_navbar_nav', 'edges', 'exact', 0],
|
|
485
|
+
['bitwarden__android', 'compose_navbar_nav', 'edges', 'exact', 0],
|
|
486
|
+
['streetcomplete__StreetComplete', 'compose_navbar_nav', 'edges', 'exact', 0],
|
|
487
|
+
// compose_widgets DOES have real floors — it enriches any Compose graph, so
|
|
488
|
+
// it fires wherever compose-route nodes exist. Floors at ~0.8x measured,
|
|
489
|
+
// ceilings at ~1.25x: it attributes a shared helper composable's widgets to
|
|
490
|
+
// every page that calls it (bounded callee walk), which is exactly the
|
|
491
|
+
// one-site-to-many-hosts shape this skill's ceilings exist to catch.
|
|
492
|
+
['signalapp__Signal-Android', 'compose_widgets', 'widgets', 'floor', 115],
|
|
493
|
+
['signalapp__Signal-Android', 'compose_widgets', 'widgets', 'max', 180],
|
|
494
|
+
['signalapp__Signal-Android', 'compose_widgets', 'inputs', 'floor', 4],
|
|
495
|
+
['bitwarden__android', 'compose_widgets', 'widgets', 'floor', 147],
|
|
496
|
+
['bitwarden__android', 'compose_widgets', 'widgets', 'max', 230],
|
|
497
|
+
['mihonapp__mihon', 'compose_widgets', 'widgets', 'floor', 64],
|
|
498
|
+
['mihonapp__mihon', 'compose_widgets', 'widgets', 'max', 100],
|
|
499
|
+
['streetcomplete__StreetComplete', 'compose_widgets', 'widgets', 'floor', 64],
|
|
500
|
+
['streetcomplete__StreetComplete', 'compose_widgets', 'widgets', 'max', 101],
|
|
501
|
+
['florisboard__florisboard', 'compose_widgets', 'widgets', 'floor', 7],
|
|
502
|
+
['florisboard__florisboard', 'compose_widgets', 'widgets', 'max', 11],
|
|
503
|
+
// Clean no-op on View-based apps: no compose-route nodes, so nothing to
|
|
504
|
+
// enrich. Must be exactly 0 and never invented from View layouts.
|
|
505
|
+
['TeamNewPipe__NewPipe', 'compose_widgets', 'widgets', 'exact', 0],
|
|
506
|
+
['RetroMusicApp__RetroMusicPlayer', 'compose_widgets', 'widgets', 'exact', 0],
|
|
507
|
+
['AntennaPod__AntennaPod', 'compose_widgets', 'widgets', 'exact', 0],
|
|
508
|
+
['TeamAmaze__AmazeFileManager', 'compose_widgets', 'widgets', 'exact', 0],
|
|
509
|
+
['videolan__vlc-android', 'compose_widgets', 'widgets', 'exact', 0],
|
|
510
|
+
|
|
511
|
+
// compose_titles — resolves a page's OWN heading for apps whose title is NOT a
|
|
512
|
+
// Material `TopAppBar(title = stringResource(...))`. Corpus result (22 apps):
|
|
513
|
+
// stamped=0 EVERYWHERE, so like the two edge extractors above there is NO floor
|
|
514
|
+
// in the corpus; the only floor is CollegeFormBlue (24 titles), outside it.
|
|
515
|
+
// These rows are the ANTI-FABRICATION guard: a View-based app has no page-header
|
|
516
|
+
// composable at all, so inventing an identity_text there would put a bogus STRONG
|
|
517
|
+
// token into expected.title_any — worse than none, because a wrong strong token
|
|
518
|
+
// makes the invariant confirm the wrong screen.
|
|
519
|
+
['TeamNewPipe__NewPipe', 'compose_titles', 'stamped', 'exact', 0],
|
|
520
|
+
['RetroMusicApp__RetroMusicPlayer', 'compose_titles', 'stamped', 'exact', 0],
|
|
521
|
+
['AntennaPod__AntennaPod', 'compose_titles', 'stamped', 'exact', 0],
|
|
522
|
+
['TeamAmaze__AmazeFileManager', 'compose_titles', 'stamped', 'exact', 0],
|
|
523
|
+
['videolan__vlc-android', 'compose_titles', 'stamped', 'exact', 0],
|
|
524
|
+
['TeamNewPipe__NewPipe', 'compose_titles', 'headers', 'exact', 0],
|
|
525
|
+
['AntennaPod__AntennaPod', 'compose_titles', 'headers', 'exact', 0],
|
|
526
|
+
// KNOWN LIMITATION, deliberately NOT bounded: mihon / signal / wikipedia
|
|
527
|
+
// discover real chrome (AppBar(title, navigateUp), MangaToolbar) yet reach 0 call
|
|
528
|
+
// sites, because their pages are Voyager `Screen` CLASSES with a `Content()`
|
|
529
|
+
// method — the node label is a class name, so a walk that starts at
|
|
530
|
+
// fn_index[label] never enters the page body. Impact is nil there (mihon already
|
|
531
|
+
// has 28 titles from other sources), but it is a real gap in this extractor's
|
|
532
|
+
// reach and is left visible as a SANITY line rather than bounded away.
|
|
533
|
+
|
|
534
|
+
// activity_nav must work in BOTH source languages. The scope helpers used
|
|
535
|
+
// to recognise only the Kotlin `fun` keyword, so on a Java-only project
|
|
536
|
+
// every scope-gated test answered False: 14 valid launch sites produced 0
|
|
537
|
+
// edges, with exit code 0 and no warning — an entire mechanism family
|
|
538
|
+
// vanished while the run looked successful. These floors lock the
|
|
539
|
+
// language-dual scope parser (scope_utils) in place. AntennaPod is the
|
|
540
|
+
// Java fixture; RetroMusic/NewPipe are the Kotlin ones.
|
|
541
|
+
['AntennaPod__AntennaPod', 'activity_nav', 'sites', 'floor', 10],
|
|
542
|
+
['AntennaPod__AntennaPod', 'activity_nav', 'edges', 'floor', 8],
|
|
543
|
+
['RetroMusicApp__RetroMusicPlayer', 'activity_nav', 'edges', 'floor', 25],
|
|
544
|
+
['TeamNewPipe__NewPipe', 'activity_nav', 'edges', 'floor', 8],
|
|
545
|
+
|
|
546
|
+
// starter_nav: the *Starter -> action -> Activity bridge. This mechanism
|
|
547
|
+
// existed in SKILL.md as prose with no script and was therefore skipped on
|
|
548
|
+
// a real run, leaving an exported Activity the crawler visited 6 times with
|
|
549
|
+
// ZERO inbound edges. Only apps that actually use action-based self-launch
|
|
550
|
+
// produce edges; on the others it must be a clean no-op, never invented.
|
|
551
|
+
['AntennaPod__AntennaPod', 'starter_nav', 'edges', 'floor', 10],
|
|
552
|
+
['florisboard__florisboard', 'starter_nav', 'edges', 'exact', 0],
|
|
553
|
+
|
|
554
|
+
// registry_nav: constant -> page dispatch tables (drawer / bottom nav / tab
|
|
555
|
+
// hosts). Invisible to every other extractor, because the click site passes
|
|
556
|
+
// a TAG and one shared method does the transaction — so fragment_nav
|
|
557
|
+
// attributes all of it to the host. Measured gap when absent: 22 edges over
|
|
558
|
+
// 11 top-level pages, the largest single hole in that graph.
|
|
559
|
+
//
|
|
560
|
+
// The CEILING matters as much as the floor here. Fan-out from a dispatch
|
|
561
|
+
// table is only legitimate for a call site routing on a user-selected
|
|
562
|
+
// variable; attributing the whole table to every caller (including ones
|
|
563
|
+
// passing a literal constant, or a programmatic default like
|
|
564
|
+
// `getDefaultPage()`) inflated 30 real edges to 41. The ceiling catches a
|
|
565
|
+
// re-loosening — same guard shape as menu_nav's host-attribution ceiling.
|
|
566
|
+
['AntennaPod__AntennaPod', 'registry_nav', 'edges', 'floor', 24],
|
|
567
|
+
['AntennaPod__AntennaPod', 'registry_nav', 'edges', 'max', 34],
|
|
568
|
+
['AntennaPod__AntennaPod', 'registry_nav', 'labelled', 'floor', 18],
|
|
569
|
+
// Pure-Compose apps route by string routes, not by a constant->page switch.
|
|
570
|
+
['florisboard__florisboard', 'registry_nav', 'edges', 'exact', 0],
|
|
571
|
+
|
|
572
|
+
// media_browse_nav: the MediaBrowser/MediaLibraryService browse tree — the
|
|
573
|
+
// car / voice / watch surface. Bounds measured across the whole corpus
|
|
574
|
+
// (tests/measure_corpus.py), not just the app it was written against; the
|
|
575
|
+
// first pass fired on ONE app and the sweep exposed three more shapes it was
|
|
576
|
+
// missing, each a real browse tree reported as zero:
|
|
577
|
+
// * tree in a DELEGATE (`onLoadChildren` -> `Browser.browse(parentId)` in
|
|
578
|
+
// another file, or a method of an inner worker class) [VLC, Timber]
|
|
579
|
+
// * int-keyed dispatch, media ids computed at runtime [Timber]
|
|
580
|
+
// * id constants declared in a SIBLING file [NewPipe]
|
|
581
|
+
// Four independent apps now pin it, so a future narrowing cannot pass by
|
|
582
|
+
// only being correct on one architecture.
|
|
583
|
+
['AntennaPod__AntennaPod', 'media_browse_nav', 'edges', 'floor', 7],
|
|
584
|
+
['AntennaPod__AntennaPod', 'media_browse_nav', 'nodes', 'floor', 6],
|
|
585
|
+
['videolan__vlc-android', 'media_browse_nav', 'edges', 'floor', 8],
|
|
586
|
+
['Timber-master', 'media_browse_nav', 'edges', 'floor', 6],
|
|
587
|
+
['TeamNewPipe__NewPipe', 'media_browse_nav', 'edges', 'floor', 2],
|
|
588
|
+
// Apps with no browse service at all must stay at zero, never invent one.
|
|
589
|
+
['florisboard__florisboard', 'media_browse_nav', 'edges', 'exact', 0],
|
|
590
|
+
['mihonapp__mihon', 'media_browse_nav', 'edges', 'exact', 0],
|
|
591
|
+
['RetroMusicApp__RetroMusicPlayer', 'media_browse_nav', 'edges', 'exact', 0],
|
|
592
|
+
['TeamAmaze__AmazeFileManager', 'media_browse_nav', 'edges', 'exact', 0],
|
|
593
|
+
|
|
594
|
+
// preference_nav `hosts` — which preference XML tree is joined to the FRAGMENT
|
|
595
|
+
// that renders it. A FLOOR, because failing to join is silent and costly in a
|
|
596
|
+
// specific way: the sub-pages are still emitted, but hang off a synthetic
|
|
597
|
+
// `pref-screen:NAME` node instead of the page the user actually taps, so the
|
|
598
|
+
// settings layer is present yet unreachable and the edge count looks healthy.
|
|
599
|
+
// Two binding forms exist, and only one was originally handled:
|
|
600
|
+
// DIRECT — `setPreferencesFromResource(R.xml.X)` in the host's own body.
|
|
601
|
+
// INDIRECT — the framework call sits in a BASE class and takes an identifier
|
|
602
|
+
// (`addPreferencesFromResource(preferenceResource)`) that each
|
|
603
|
+
// subclass overrides (`override val preferenceResource get() =
|
|
604
|
+
// R.xml.X`). Standard AndroidX template-method idiom.
|
|
605
|
+
// Measured on Anki-Android: hosts went 0 -> 15 with the indirect tier, i.e.
|
|
606
|
+
// 15 of 18 preference trees had been stranded. AntennaPod (13) and Timber (1)
|
|
607
|
+
// pin the DIRECT tier so the new one cannot regress it.
|
|
608
|
+
['Anki-Android-main', 'preference_nav', 'hosts', 'floor', 14],
|
|
609
|
+
['AntennaPod__AntennaPod', 'preference_nav', 'hosts', 'floor', 13],
|
|
610
|
+
['Timber-master', 'preference_nav', 'hosts', 'floor', 1],
|
|
611
|
+
// `hostless` CEILING on the same app — the complement of the floor above, and
|
|
612
|
+
// the counter that made the bug visible at all. Anki keeps 3: two trees bound
|
|
613
|
+
// through an ENUM constructor (`REVIEWER(R.xml.preferences_reviewer_controls)`)
|
|
614
|
+
// consumed as `addPreferencesFromResource(screen.xmlRes)` — a dotted receiver
|
|
615
|
+
// this tier deliberately does not resolve, since the value is carried by
|
|
616
|
+
// another object rather than named by the property.
|
|
617
|
+
['Anki-Android-main', 'preference_nav', 'hostless', 'max', 3],
|
|
618
|
+
// Apps with no preference XML must stay at zero, never invent a host.
|
|
619
|
+
['florisboard__florisboard', 'preference_nav', 'hosts', 'exact', 0],
|
|
620
|
+
['mihonapp__mihon', 'preference_nav', 'hosts', 'exact', 0],
|
|
621
|
+
['florisboard__florisboard', 'preference_nav', 'edges', 'exact', 0],
|
|
622
|
+
['mihonapp__mihon', 'preference_nav', 'edges', 'exact', 0],
|
|
623
|
+
|
|
624
|
+
// preference_nav selection-dialog FLOOR — the element-TAG tier. A custom
|
|
625
|
+
// Preference subclass MUST be written fully-qualified in preference XML (the
|
|
626
|
+
// inflater requires it for any non-framework class), so an app that themes its
|
|
627
|
+
// own preferences writes
|
|
628
|
+
// <de.danoeh.antennapod.ui.preferences.preference.MaterialListPreference …/>
|
|
629
|
+
// and an exact match on the framework simple name `ListPreference` sees NOTHING.
|
|
630
|
+
// The FQN form is the norm, not an edge case. Resolution walks the element's
|
|
631
|
+
// SUPERTYPE CHAIN from project sources (never its name — `MaterialListPreference`
|
|
632
|
+
// is one app's spelling) until a framework preference base is reached.
|
|
633
|
+
// Measured on AntennaPod: 13 such elements (12 ListPreference + 1
|
|
634
|
+
// MultiSelectListPreference) read as dialog_prefs=0 before, 14 after — i.e. the
|
|
635
|
+
// app's ENTIRE selection-dialog layer was missing while `hosts=12` and the
|
|
636
|
+
// sub-page edge count both looked healthy.
|
|
637
|
+
// These floors pin that the tag tier keeps firing on the apps that have the
|
|
638
|
+
// layer; the `exact 0` rows above pin that it does not fabricate where there is
|
|
639
|
+
// no preference XML at all.
|
|
640
|
+
// NOTE on the metric: `nodes` maps to `dialog_prefs` (see METRIC_ALIASES), which
|
|
641
|
+
// counts the selection-dialog NODES. It is NOT `edges` — an app emits one
|
|
642
|
+
// open-overlay edge per dialog PLUS a fragment-transaction edge per
|
|
643
|
+
// `app:fragment=` sub-page, so `edges` runs well above `dialog_prefs` (Anki
|
|
644
|
+
// 68 vs 52, NewPipe 44 vs 30). Floors below are the measured `dialog_prefs`.
|
|
645
|
+
['AntennaPod__AntennaPod', 'preference_nav', 'nodes', 'floor', 11], // measured 14
|
|
646
|
+
['Anki-Android-main', 'preference_nav', 'nodes', 'floor', 41], // measured 52
|
|
647
|
+
['Freeyourgadget__Gadgetbridge', 'preference_nav', 'nodes', 'floor', 343], // measured 429
|
|
648
|
+
['TeamNewPipe__NewPipe', 'preference_nav', 'nodes', 'floor', 24], // measured 30
|
|
649
|
+
['ukanth__afwall', 'preference_nav', 'nodes', 'floor', 16], // measured 20
|
|
650
|
+
['gedoor__legado', 'preference_nav', 'nodes', 'floor', 11], // measured 14
|
|
651
|
+
['KDE__kdeconnect-android', 'preference_nav', 'nodes', 'floor', 9], // measured 12
|
|
652
|
+
['florisboard__florisboard', 'preference_nav', 'nodes', 'exact', 0],
|
|
653
|
+
['mihonapp__mihon', 'preference_nav', 'nodes', 'exact', 0],
|
|
654
|
+
|
|
655
|
+
// preference_nav NESTING. A settings tree deeper than one level is the norm,
|
|
656
|
+
// and the flattening defect held both of these at 0 while `nodes`/`edges`/
|
|
657
|
+
// `hosts` all read healthy -- a nested <PreferenceScreen> minted no node, so
|
|
658
|
+
// nothing could be parented on one and every dialog was sourced at the root
|
|
659
|
+
// host. Gadgetbridge is the corpus app with a genuinely deep tree (measured
|
|
660
|
+
// 134 sub-screens, 313 reparented edges, 134 pages that had no inbound edge
|
|
661
|
+
// at all before). Floors, not exacts: adding a settings page must not fail.
|
|
662
|
+
['Freeyourgadget__Gadgetbridge', 'preference_nav', 'sub_screens', 'floor', 100],
|
|
663
|
+
['Freeyourgadget__Gadgetbridge', 'preference_nav', 'nested_parented', 'floor', 250],
|
|
664
|
+
// CEILING. `under_intent_skipped` counts children dropped because their
|
|
665
|
+
// screen fires an <intent> and therefore mints no node. On the whole corpus
|
|
666
|
+
// this is 0: no app there uses the <intent> form. Growth means the intent
|
|
667
|
+
// detection has started claiming screens that are really sub-pages, which
|
|
668
|
+
// DELETES real pages -- the quiet direction, since the edge count barely
|
|
669
|
+
// moves. Open Camera (not in the corpus) is the app that exercises the
|
|
670
|
+
// mechanism; test_preference_nesting.py is the live gate for it.
|
|
671
|
+
['Freeyourgadget__Gadgetbridge', 'preference_nav', 'under_intent_skipped', 'max', 0],
|
|
672
|
+
['Anki-Android-main', 'preference_nav', 'under_intent_skipped', 'max', 0],
|
|
673
|
+
// A flat tree must STAY flat: these two apps have no nested screens, so a
|
|
674
|
+
// non-zero here would mean the parent tracking invented a level, handing
|
|
675
|
+
// every page behind it a tap nobody performs.
|
|
676
|
+
['AntennaPod__AntennaPod', 'preference_nav', 'sub_screens', 'exact', 0],
|
|
677
|
+
['ukanth__afwall', 'preference_nav', 'sub_screens', 'exact', 0],
|
|
678
|
+
|
|
679
|
+
// state_guard — CONTENT-STATE preconditions for VIEW pages. Detects only the
|
|
680
|
+
// Android framework's own empty-state contract: one-arg
|
|
681
|
+
// `AdapterView#setEmptyView(View)`, a structurally DISCOVERED wrapper class
|
|
682
|
+
// around it, or `@android:id/empty` in the page's own layout.
|
|
683
|
+
//
|
|
684
|
+
// Why this needs a bound at all: `required_state` had two producers before it
|
|
685
|
+
// and both are Compose-shaped (a render-branch condition, or a `*_CONTENT`
|
|
686
|
+
// route key), so on a View app every node came back `[]` — a whole mechanism
|
|
687
|
+
// with no extractor, not an app without preconditions.
|
|
688
|
+
//
|
|
689
|
+
// The two FLOORS pin that the framework-contract read plus the inheritance
|
|
690
|
+
// walk keep firing. AntennaPod needs the walk specifically: 3 of its 8 list
|
|
691
|
+
// pages (AllEpisodes / Inbox / PlaybackHistory) declare their empty view only
|
|
692
|
+
// in the shared `EpisodesListFragment` base, so a subclass-blind version reads
|
|
693
|
+
// 5 instead of 10. nextcloud is an independent app with a DIFFERENT shape
|
|
694
|
+
// (3 helpers, no inheritance needed), which is what makes it worth a row.
|
|
695
|
+
['AntennaPod__AntennaPod', 'state_guard', 'nodes', 'floor', 8], // measured 10
|
|
696
|
+
['nextcloud__android', 'state_guard', 'nodes', 'floor', 4], // measured 6
|
|
697
|
+
// …and a CEILING on the same two, because the failure mode here is
|
|
698
|
+
// OVER-attribution and it is quieter than any edge bug: a false
|
|
699
|
+
// `required_state:["content"]` moves a genuinely reachable page OUT of P0 in
|
|
700
|
+
// phase_plan.py, so the crawler simply never tries it — no error, and the flow
|
|
701
|
+
// count still looks healthy. Two measured over-fires this catches: scanning
|
|
702
|
+
// the FILE instead of the node's own class body (5 -> 16 on AntennaPod, 11 of
|
|
703
|
+
// them nested sort/filter dialogs inheriting their host list's empty view),
|
|
704
|
+
// and counting the two-arg `RemoteViews#setEmptyView(viewId, emptyId)`, which
|
|
705
|
+
// is a HOME-SCREEN WIDGET's empty state and not a page at all.
|
|
706
|
+
['AntennaPod__AntennaPod', 'state_guard', 'nodes', 'max', 12],
|
|
707
|
+
['nextcloud__android', 'state_guard', 'nodes', 'max', 9],
|
|
708
|
+
// 20 of 22 corpus apps measured EXACTLY 0, including every Compose app and
|
|
709
|
+
// several large View apps (Signal 474 nodes, FairEmail 275, Gadgetbridge 175).
|
|
710
|
+
// These rows protect ONE property only — that the extractor does not FABRICATE
|
|
711
|
+
// a precondition on an architecture without the framework contract. They say
|
|
712
|
+
// nothing about the floor, which is why the two floors above exist.
|
|
713
|
+
['Anki-Android-main', 'state_guard', 'nodes', 'exact', 0],
|
|
714
|
+
['signalapp__Signal-Android', 'state_guard', 'nodes', 'exact', 0],
|
|
715
|
+
['M66B__FairEmail', 'state_guard', 'nodes', 'exact', 0],
|
|
716
|
+
['Freeyourgadget__Gadgetbridge', 'state_guard', 'nodes', 'exact', 0],
|
|
717
|
+
['RetroMusicApp__RetroMusicPlayer', 'state_guard', 'nodes', 'exact', 0],
|
|
718
|
+
['TeamNewPipe__NewPipe', 'state_guard', 'nodes', 'exact', 0],
|
|
719
|
+
['gedoor__legado', 'state_guard', 'nodes', 'exact', 0],
|
|
720
|
+
['wikimedia__apps-android-wikipedia', 'state_guard', 'nodes', 'exact', 0],
|
|
721
|
+
['florisboard__florisboard', 'state_guard', 'nodes', 'exact', 0],
|
|
722
|
+
['mihonapp__mihon', 'state_guard', 'nodes', 'exact', 0],
|
|
723
|
+
// `helpers` is the DISCOVERY counter, and it is not interchangeable with
|
|
724
|
+
// `nodes`: it pins that the "any class wrapping the framework call is a
|
|
725
|
+
// helper" tier still fires. Were it to regress to a hardcoded class name, or
|
|
726
|
+
// were the arity test to reject the one-arg form, this reads 0 while `nodes`
|
|
727
|
+
// could still be non-zero from the direct/layout tiers alone.
|
|
728
|
+
['AntennaPod__AntennaPod', 'state_guard', 'helpers', 'floor', 1],
|
|
729
|
+
['nextcloud__android', 'state_guard', 'helpers', 'floor', 3],
|
|
730
|
+
// Quillpad is NOT in this corpus, but it is where the arity bug was found: its
|
|
731
|
+
// only `setEmptyView` is the two-arg RemoteViews form in an AppWidgetProvider,
|
|
732
|
+
// which registered a widget provider as an "empty-state helper". A synthetic
|
|
733
|
+
// fixture pins that (tests/test_state_guard_arity.py) — a corpus row cannot,
|
|
734
|
+
// since no corpus app has that shape.
|
|
735
|
+
['mihonapp__mihon', 'state_guard', 'helpers', 'exact', 0],
|
|
736
|
+
['florisboard__florisboard', 'state_guard', 'helpers', 'exact', 0],
|
|
737
|
+
|
|
738
|
+
// state_guard PHASE 2 `candidates` — the size of the net handed to the model
|
|
739
|
+
// step. Bounded on BOTH sides, and the ceiling is the load-bearing half:
|
|
740
|
+
// every page offered is one more chance at a FALSE precondition, and a false
|
|
741
|
+
// one moves a genuinely reachable page out of P0_fresh where the crawler never
|
|
742
|
+
// attempts it and nothing reports an error. A widening (dropping the
|
|
743
|
+
// view-subject filter, or the render-function bound) would show up here and
|
|
744
|
+
// nowhere else — `content_gated` cannot see it, since the declarative pass is
|
|
745
|
+
// untouched and the model answers are not part of a corpus run.
|
|
746
|
+
// The FLOOR matters too, on the apps that have the shape: if the net silently
|
|
747
|
+
// narrowed to nothing, the phase-2 step would look like it "found no
|
|
748
|
+
// candidates" on every app rather than like a broken filter.
|
|
749
|
+
['AntennaPod__AntennaPod', 'state_guard', 'candidates', 'floor', 16], // 17 (21 before release-only/view-lookup filter)
|
|
750
|
+
['AntennaPod__AntennaPod', 'state_guard', 'candidates', 'max', 27],
|
|
751
|
+
['signalapp__Signal-Android', 'state_guard', 'candidates', 'max', 70], // 56
|
|
752
|
+
['M66B__FairEmail', 'state_guard', 'candidates', 'max', 37], // 29
|
|
753
|
+
['Freeyourgadget__Gadgetbridge', 'state_guard', 'candidates', 'max', 37],
|
|
754
|
+
['mastodon__mastodon-android', 'state_guard', 'candidates', 'max', 37],
|
|
755
|
+
['nextcloud__android', 'state_guard', 'candidates', 'floor', 12], // 15
|
|
756
|
+
['nextcloud__android', 'state_guard', 'candidates', 'max', 19],
|
|
757
|
+
['TeamNewPipe__NewPipe', 'state_guard', 'candidates', 'max', 22], // 17
|
|
758
|
+
['wikimedia__apps-android-wikipedia', 'state_guard', 'candidates', 'max', 23],
|
|
759
|
+
// Apps where the net is genuinely near-empty. Pinned exactly, because a
|
|
760
|
+
// regression that starts offering plumbing tests would move these first.
|
|
761
|
+
['florisboard__florisboard', 'state_guard', 'candidates', 'exact', 0],
|
|
762
|
+
['mihonapp__mihon', 'state_guard', 'candidates', 'exact', 0],
|
|
763
|
+
['gedoor__legado', 'state_guard', 'candidates', 'max', 3], // 1
|
|
764
|
+
['videolan__vlc-android', 'state_guard', 'candidates', 'max', 4], // 2
|
|
765
|
+
|
|
766
|
+
// single_host_nav — pages launched into a GENERIC SINGLE-FRAGMENT HOST
|
|
767
|
+
// (`startActivity(XFragment.getIntent(ctx))` resolving to
|
|
768
|
+
// `SingleFragmentActivity.getIntent(ctx, XFragment::class)`).
|
|
769
|
+
// A FLOOR on the app that has the shape: activity_nav cannot see these,
|
|
770
|
+
// because the only class LITERAL in the Intent argument list is the HOST, so
|
|
771
|
+
// its `constructed-not-dispatched` filter drops the site and the fragment ends
|
|
772
|
+
// up with NO inbound edge. Measured on Anki-Android: 15 edges recovered over
|
|
773
|
+
// pages that were otherwise orphans (DeckOptions, Statistics, MediaCheck,
|
|
774
|
+
// DrawingFragment, ImageOcclusion, ...), several of them top-level.
|
|
775
|
+
['Anki-Android-main', 'single_host_nav', 'edges', 'floor', 12],
|
|
776
|
+
['Anki-Android-main', 'single_host_nav', 'hosts', 'floor', 4],
|
|
777
|
+
['Anki-Android-main', 'single_host_nav', 'wrappers', 'floor', 14],
|
|
778
|
+
// CEILING on the same app: a wrapper is re-exported per page, so attributing
|
|
779
|
+
// a wrapper DECLARATION (rather than only its dispatching call sites) would
|
|
780
|
+
// fan every page out to whatever file declares it — the same over-attribution
|
|
781
|
+
// failure menu_nav's host fallback and refs-to both produced.
|
|
782
|
+
['Anki-Android-main', 'single_host_nav', 'edges', 'max', 40],
|
|
783
|
+
// Clean no-op on 10 apps without the shape: proves the structural discovery
|
|
784
|
+
// (a fn returning Intent that takes a `KClass<out Fragment>` parameter) does
|
|
785
|
+
// not FABRICATE on unrelated architectures. It does NOT protect the floor —
|
|
786
|
+
// only the Anki rows above do, since no other corpus app has this host shape.
|
|
787
|
+
['AntennaPod__AntennaPod', 'single_host_nav', 'edges', 'exact', 0],
|
|
788
|
+
['RetroMusicApp__RetroMusicPlayer', 'single_host_nav', 'edges', 'exact', 0],
|
|
789
|
+
['TeamNewPipe__NewPipe', 'single_host_nav', 'edges', 'exact', 0],
|
|
790
|
+
['TeamAmaze__AmazeFileManager', 'single_host_nav', 'edges', 'exact', 0],
|
|
791
|
+
['florisboard__florisboard', 'single_host_nav', 'edges', 'exact', 0],
|
|
792
|
+
['mihonapp__mihon', 'single_host_nav', 'edges', 'exact', 0],
|
|
793
|
+
['Omni-Notes-develop', 'single_host_nav', 'edges', 'exact', 0],
|
|
794
|
+
['Timber-master', 'single_host_nav', 'edges', 'exact', 0],
|
|
795
|
+
['bitwarden__android', 'single_host_nav', 'edges', 'exact', 0],
|
|
796
|
+
['signalapp__Signal-Android', 'single_host_nav', 'edges', 'exact', 0],
|
|
797
|
+
|
|
798
|
+
// view_widgets — the VIEW-system analogue of compose_widgets: per-page
|
|
799
|
+
// controls read from res/layout*/*.xml. FLOORS on the 7 corpus apps that are
|
|
800
|
+
// View-based, because the failure is silent in the worst possible place: it is
|
|
801
|
+
// the TCG handoff's only source of element-level locators, and with no
|
|
802
|
+
// extractor for this toolkit `convert_static_utg_to_ui_elements.ts` shipped
|
|
803
|
+
// `widgets -> elems = 0` / `display_texts = 0` — a ui_elements.json with pages
|
|
804
|
+
// and flows but nothing to locate on any page. Measured after adding it on
|
|
805
|
+
// AnkiDroid: 83 elems, 35 display_texts.
|
|
806
|
+
['Anki-Android-main', 'view_widgets', 'widgets', 'floor', 200],
|
|
807
|
+
['Anki-Android-main', 'view_widgets', 'nodes', 'floor', 40],
|
|
808
|
+
['AntennaPod__AntennaPod', 'view_widgets', 'widgets', 'floor', 200],
|
|
809
|
+
['RetroMusicApp__RetroMusicPlayer', 'view_widgets', 'widgets', 'floor', 240],
|
|
810
|
+
['TeamNewPipe__NewPipe', 'view_widgets', 'widgets', 'floor', 240],
|
|
811
|
+
['TeamAmaze__AmazeFileManager', 'view_widgets', 'widgets', 'floor', 60],
|
|
812
|
+
['Timber-master', 'view_widgets', 'widgets', 'floor', 75],
|
|
813
|
+
['Omni-Notes-develop', 'view_widgets', 'widgets', 'floor', 25],
|
|
814
|
+
// `placeholders` FLOOR — a text input's hint is both the only stable locator on
|
|
815
|
+
// an empty field and an oracle for "this page, empty". Material declares it on
|
|
816
|
+
// the WRAPPER (`TextInputLayout`) while the editable control is its child
|
|
817
|
+
// `TextInputEditText`, so a strictly per-tag read yields an input with no
|
|
818
|
+
// placeholder at all: measured 16 hints in AnkiDroid's layouts, 0 emitted.
|
|
819
|
+
// Only `hint` is inherited from an ancestor; `text`/`contentDescription` stay
|
|
820
|
+
// on the tag that declares them, or one control borrows another's wording.
|
|
821
|
+
// Floor LOWERED 7 -> 5 when nested type declarations were excluded from class
|
|
822
|
+
// scope (`view_widgets._strip_nested_types`). The two lost placeholders were
|
|
823
|
+
// never this page's: they came from ROW layouts inflated by adapters declared
|
|
824
|
+
// *inside* the dialog class, and each changed node was verified individually --
|
|
825
|
+
// SetDueDateDialog picked up `set_due_date_range`/`set_due_date_single` instead of
|
|
826
|
+
// its own `dialog_set_due_date`, and SavedBrowserSearchesDialogFragment's only
|
|
827
|
+
// `R.layout` reference sits in a `private inner class SavedSearchesAdapter`, so
|
|
828
|
+
// empty is the honest answer for the dialog itself. The drop is the defect being
|
|
829
|
+
// removed, not coverage being lost.
|
|
830
|
+
['Anki-Android-main', 'view_widgets', 'placeholders', 'floor', 5],
|
|
831
|
+
['TeamAmaze__AmazeFileManager', 'view_widgets', 'placeholders', 'floor', 12],
|
|
832
|
+
// CEILING — a node's widgets must come from ITS OWN layout. The layout is
|
|
833
|
+
// resolved in tiers (Fragment(R.layout.X) ctor arg / setContentView / *Binding),
|
|
834
|
+
// and a bare `R.layout.X` anywhere in the file is last-resort ONLY: such a
|
|
835
|
+
// reference is usually a DIFFERENT page's layout (a dialog this page shows, a
|
|
836
|
+
// list row it inflates), so treating them all as this node's re-imports the
|
|
837
|
+
// neighbour-widget over-collection `own_body` prevents on the Compose side.
|
|
838
|
+
// Measured: NoteEditorFragment collected 10 widgets from two toolbar dialogs
|
|
839
|
+
// and 0 from its own fragment_note_editor until the ctor tier was added.
|
|
840
|
+
['Anki-Android-main', 'view_widgets', 'widgets', 'max', 450],
|
|
841
|
+
['TeamNewPipe__NewPipe', 'view_widgets', 'widgets', 'max', 500],
|
|
842
|
+
// CLASS-SCOPE REFUSALS. `scope_hosted` counts hosted subnodes (`menu:x@Host`)
|
|
843
|
+
// and `scope_call_site` counts nodes whose `declared_at` points at a CALL SITE
|
|
844
|
+
// rather than a declaration. Both are pages that would otherwise have been given
|
|
845
|
+
// a NEIGHBOUR's layout, and both are invisible in `no_layout`, which also counts
|
|
846
|
+
// the honest "this page has no XML" case — so without these two the rule could be
|
|
847
|
+
// reverted to file scope and every other bound here would stay green (widget
|
|
848
|
+
// counts only go UP when it loosens, and each floor above would still pass).
|
|
849
|
+
//
|
|
850
|
+
// Both directions are bounded. The floor catches the refusal going blind: on
|
|
851
|
+
// AntennaPod, 14 `menu:*@Host` nodes each carried a copy of the drawer's
|
|
852
|
+
// `nav_list.xml`, so a nav agent was told a context menu has a subscription list
|
|
853
|
+
// on it. The `max` catches it over-refusing, which loses a page's only
|
|
854
|
+
// element-level locators and is equally silent — `widgets` merely drifts down.
|
|
855
|
+
// Measured across 7 View apps in two corpora; the mechanism fires on every one,
|
|
856
|
+
// which is what makes this architecture-independent rather than one app's quirk.
|
|
857
|
+
['AntennaPod__AntennaPod', 'view_widgets', 'scope_hosted', 'floor', 12],
|
|
858
|
+
['AntennaPod__AntennaPod', 'view_widgets', 'scope_hosted', 'max', 20],
|
|
859
|
+
['AntennaPod__AntennaPod', 'view_widgets', 'scope_call_site', 'floor', 14],
|
|
860
|
+
['AntennaPod__AntennaPod', 'view_widgets', 'scope_call_site', 'max', 22],
|
|
861
|
+
['Anki-Android-main', 'view_widgets', 'scope_call_site', 'floor', 4],
|
|
862
|
+
['Anki-Android-main', 'view_widgets', 'scope_call_site', 'max', 6],
|
|
863
|
+
['TeamNewPipe__NewPipe', 'view_widgets', 'scope_hosted', 'floor', 4],
|
|
864
|
+
['TeamNewPipe__NewPipe', 'view_widgets', 'scope_hosted', 'max', 7],
|
|
865
|
+
['RetroMusicApp__RetroMusicPlayer', 'view_widgets', 'scope_call_site', 'floor', 6],
|
|
866
|
+
['RetroMusicApp__RetroMusicPlayer', 'view_widgets', 'scope_call_site', 'max', 10],
|
|
867
|
+
['Timber-master', 'view_widgets', 'scope_hosted', 'floor', 10],
|
|
868
|
+
['Timber-master', 'view_widgets', 'scope_hosted', 'max', 16],
|
|
869
|
+
['TeamAmaze__AmazeFileManager', 'view_widgets', 'scope_call_site', 'floor', 2],
|
|
870
|
+
['TeamAmaze__AmazeFileManager', 'view_widgets', 'scope_call_site', 'max', 3],
|
|
871
|
+
// Pure-Compose apps must stay at zero — they have no layout XML pages, and
|
|
872
|
+
// compose_widgets is what covers them. Proves no fabrication off-target.
|
|
873
|
+
['florisboard__florisboard', 'view_widgets', 'widgets', 'exact', 0],
|
|
874
|
+
['mihonapp__mihon', 'view_widgets', 'widgets', 'exact', 0],
|
|
875
|
+
['florisboard__florisboard', 'view_widgets', 'scope_hosted', 'exact', 0],
|
|
876
|
+
['mihonapp__mihon', 'view_widgets', 'scope_call_site', 'exact', 0],
|
|
877
|
+
['florisboard__florisboard', 'view_widgets', 'nodes', 'exact', 0],
|
|
878
|
+
['mihonapp__mihon', 'view_widgets', 'nodes', 'exact', 0],
|
|
879
|
+
|
|
880
|
+
// ---- compose_nav / compose_merge: the Compose route layer -----------------
|
|
881
|
+
// Previously unmeasured entirely. Floors on what is PRODUCED (routes, edges,
|
|
882
|
+
// start destinations) and ceilings on what is DISCARDED, because this layer's
|
|
883
|
+
// failures all take the shape of a silent drop to zero: an unsupported
|
|
884
|
+
// navigation generation, a path-separator mismatch, or a resolver that lands
|
|
885
|
+
// on `fallback` yields a graph with every node present and no route edges,
|
|
886
|
+
// which no other row in this file can see.
|
|
887
|
+
['bitwarden__android', 'compose_nav', 'routes', 'floor', 90],
|
|
888
|
+
['bitwarden__android', 'compose_nav', 'edges', 'floor', 170],
|
|
889
|
+
['bitwarden__android', 'compose_nav', 'start_destinations', 'floor', 20],
|
|
890
|
+
['bitwarden__android', 'compose_nav', 'start_resolved', 'floor', 18],
|
|
891
|
+
['signalapp__Signal-Android', 'compose_nav', 'routes', 'floor', 44],
|
|
892
|
+
['signalapp__Signal-Android', 'compose_nav', 'start_resolved', 'floor', 12],
|
|
893
|
+
['streetcomplete__StreetComplete', 'compose_nav', 'routes', 'floor', 13],
|
|
894
|
+
['streetcomplete__StreetComplete', 'compose_nav', 'edges', 'floor', 9],
|
|
895
|
+
['streetcomplete__StreetComplete', 'compose_nav', 'start_resolved', 'floor', 4],
|
|
896
|
+
['streetcomplete__StreetComplete', 'compose_nav', 'unresolved', 'max', 0],
|
|
897
|
+
// A View-only app must stay at zero: a non-zero route count here is the
|
|
898
|
+
// signature of the page-name heuristics firing on ordinary composables.
|
|
899
|
+
['mihonapp__mihon', 'compose_nav', 'routes', 'exact', 0],
|
|
900
|
+
// `collapsed_keys` is a CEILING on every app: the dotted/member fold is
|
|
901
|
+
// same-screen-only, so a rise means it started merging distinct pages.
|
|
902
|
+
['bitwarden__android', 'compose_nav', 'collapsed_keys', 'max', 0],
|
|
903
|
+
['signalapp__Signal-Android', 'compose_nav', 'collapsed_keys', 'max', 0],
|
|
904
|
+
['streetcomplete__StreetComplete', 'compose_nav', 'collapsed_keys', 'max', 0],
|
|
905
|
+
|
|
906
|
+
['bitwarden__android', 'compose_merge', 'nodes', 'floor', 190],
|
|
907
|
+
['bitwarden__android', 'compose_merge', 'edges', 'floor', 150],
|
|
908
|
+
['bitwarden__android', 'compose_merge', 'resolved', 'floor', 22],
|
|
909
|
+
['bitwarden__android', 'compose_merge', 'dropped_no_text', 'max', 0],
|
|
910
|
+
['signalapp__Signal-Android', 'compose_merge', 'nodes', 'floor', 52],
|
|
911
|
+
['signalapp__Signal-Android', 'compose_merge', 'edges', 'floor', 76],
|
|
912
|
+
['signalapp__Signal-Android', 'compose_merge', 'dropped_no_text', 'max', 0],
|
|
913
|
+
['streetcomplete__StreetComplete', 'compose_merge', 'nodes', 'floor', 26],
|
|
914
|
+
['streetcomplete__StreetComplete', 'compose_merge', 'edges', 'floor', 19],
|
|
915
|
+
['streetcomplete__StreetComplete', 'compose_merge', 'dropped_no_text', 'max', 0],
|
|
916
|
+
['florisboard__florisboard', 'compose_merge', 'dropped_no_text', 'max', 0],
|
|
917
|
+
|
|
918
|
+
// ---------------------------------------------------------------- #
|
|
919
|
+
// plaindialog_nav — the android.app.Dialog modal layer. Had NO row of any
|
|
920
|
+
// kind, on the extractor that is the ONLY path to a node for a whole family
|
|
921
|
+
// of confirm/input/report dialogs (measured on one Java app before it
|
|
922
|
+
// existed: 14 such classes, 54 show sites, 0 nodes).
|
|
923
|
+
//
|
|
924
|
+
// Measured with `plaindialog_nav.py <app>`; FairEmail is the corpus's only
|
|
925
|
+
// app carrying the multi-site shape (dialogs=1 edges=72 triggered=69
|
|
926
|
+
// shared_anchor=2).
|
|
927
|
+
['M66B__FairEmail', 'plaindialog_nav', 'edges', 'floor', 60], // 72
|
|
928
|
+
['M66B__FairEmail', 'plaindialog_nav', 'triggered', 'floor', 55], // 69
|
|
929
|
+
// `shared_anchor` gets BOTH directions on the SAME app, deliberately.
|
|
930
|
+
//
|
|
931
|
+
// The ceiling is what the defect needs: a citation must not climb away from a
|
|
932
|
+
// `.show()` site whose branch was unambiguous, since that discards the precise
|
|
933
|
+
// line a reader and the crawler both want. But a ceiling ALONE would stay
|
|
934
|
+
// green with the entire fallback deleted (0 <= 2) — this file's classic
|
|
935
|
+
// failure, a bound on a mechanism that never ran. The floor is what keeps it
|
|
936
|
+
// live: revert the fix and this reads 0.
|
|
937
|
+
['M66B__FairEmail', 'plaindialog_nav', 'shared_anchor', 'floor', 2],
|
|
938
|
+
['M66B__FairEmail', 'plaindialog_nav', 'shared_anchor', 'max', 2],
|
|
939
|
+
// Apps where the climb must NEVER fire: every show site they reach is
|
|
940
|
+
// unambiguous, so non-zero here means it has begun eating precise citations.
|
|
941
|
+
// That is the over-attribution direction and it moves no other number —
|
|
942
|
+
// `edges` is byte-identical either way.
|
|
943
|
+
['gedoor__legado', 'plaindialog_nav', 'nodes', 'floor', 5], // 6
|
|
944
|
+
['gedoor__legado', 'plaindialog_nav', 'shared_anchor', 'max', 0],
|
|
945
|
+
['mihonapp__mihon', 'plaindialog_nav', 'nodes', 'floor', 10], // 12
|
|
946
|
+
['mihonapp__mihon', 'plaindialog_nav', 'shared_anchor', 'max', 0],
|
|
947
|
+
];
|
|
948
|
+
|
|
949
|
+
export const _METRIC_TOKENS = {
|
|
950
|
+
activity_nav: { nodes: null, edges: 'edges', sites: 'sites' },
|
|
951
|
+
starter_nav: { nodes: 'nodes', edges: 'edges' },
|
|
952
|
+
registry_nav: { nodes: 'nodes', edges: 'edges', labelled: 'labelled', tables: 'tables' },
|
|
953
|
+
media_browse_nav: { nodes: 'nodes', edges: 'edges', branches: 'browse_branches' },
|
|
954
|
+
fragment_nav: { nodes: 'fragments', edges: 'edges', auto_load: 'auto_load', click_triggered: 'click_triggered', dispatched: 'dispatched', unknown_scope: 'unknown_scope', layout_inflate: 'layout_inflate', layout_region: 'layout_region', layout_guarded: 'layout_guarded', drawer_panel: 'drawer_panel', drawer_guarded: 'drawer_guarded', nonpage_resolved: 'nonpage_owner_resolved', nonpage_shared: 'nonpage_owner_shared', nonpage_refused: 'nonpage_owner_refused' },
|
|
955
|
+
presenter_nav: { nodes: 'presenter_pages', edges: null, subpages: 'subpages', sections: 'sections' },
|
|
956
|
+
menu_nav: { nodes: 'nodes', edges: 'edges', menus: 'menus', nonpage_resolved: 'nonpage_owner_resolved', nonpage_shared: 'nonpage_owner_shared', nonpage_refused: 'nonpage_owner_refused' },
|
|
957
|
+
view_widgets: { nodes: 'nodes', edges: null, widgets: 'widgets', inputs: 'inputs', placeholders: 'placeholders', triggers: 'trigger_anchored', no_layout: 'no_layout', scope_hosted: 'scope_hosted', scope_call_site: 'scope_call_site' },
|
|
958
|
+
// `sub_screens` and `nested_parented` are the two numbers the flattening
|
|
959
|
+
// defect held at 0 while every other count read healthy: a nested
|
|
960
|
+
// <PreferenceScreen> minted no node (the docstring promised one; no branch
|
|
961
|
+
// emitted it) and so no edge could be parented on one. Floors on a corpus app
|
|
962
|
+
// with a real settings tree therefore catch a regression that `nodes`/`edges`
|
|
963
|
+
// cannot. `under_intent_skipped` is a CEILING: children dropped because their
|
|
964
|
+
// screen fires an <intent>; growth there means the intent detection is
|
|
965
|
+
// claiming screens that are really sub-pages, deleting real sub-pages.
|
|
966
|
+
preference_nav: { nodes: 'dialog_prefs', edges: 'edges', pref_xml: 'pref_xml', hosts: 'hosts', hostless: 'hostless', sub_screens: 'sub_screens', nested_parented: 'nested_parented', screen_intents: 'screen_intents', under_intent_skipped: 'under_intent_skipped' },
|
|
967
|
+
// plaindialog_nav — the android.app.Dialog modal layer. Had no row at all.
|
|
968
|
+
// `shared_anchor` is a CEILING: gestures whose citation had to climb from a
|
|
969
|
+
// `.show()` site to the helper call or the listener, because several sites of
|
|
970
|
+
// one dialog class were reachable from that one tap and none of them
|
|
971
|
+
// identifies it. It needs a ceiling because the failure moves NO other
|
|
972
|
+
// number -- `edges` is byte-identical either way, which is why no floor ever
|
|
973
|
+
// caught it -- and because the fallback must not widen into gestures whose
|
|
974
|
+
// site was unambiguous, which would throw away the precise citation the
|
|
975
|
+
// crawler and a human reader both want. `triggered` and `via_helper` get
|
|
976
|
+
// floors: they are the only tiers that name the tapped control.
|
|
977
|
+
plaindialog_nav: { nodes: 'dialogs', edges: 'edges', sites: 'show_sites', triggered: 'triggered', via_helper: 'via_helper', no_trigger: 'no_trigger', labelled: 'labelled', refused: 'refused', shared_anchor: 'shared_anchor' },
|
|
978
|
+
state_guard: { nodes: 'content_gated', edges: null, helpers: 'helpers', candidates: 'candidates' },
|
|
979
|
+
// hybrid_scope — the embedded non-native stack. `shared_anchor` is a
|
|
980
|
+
// CEILING: the number of entry gestures whose anchor had to fall back from
|
|
981
|
+
// an enter site to the listener line, because their helper holds several
|
|
982
|
+
// enter sites in mutually exclusive branches keyed by its own parameter. It
|
|
983
|
+
// needs a ceiling and not a floor because the failure it guards does not
|
|
984
|
+
// move `edges` at all -- the old code emitted the right NUMBER of edges and
|
|
985
|
+
// anchored every one of them at the first branch in file order, so the
|
|
986
|
+
// Alipay tile cited the WeChat branch and inherited its `if` as a guard.
|
|
987
|
+
// There is deliberately NO corpus row below: not one of the 29 apps in the
|
|
988
|
+
// corpus embeds a uni-app/DCloud, React Native or Flutter runtime, so any
|
|
989
|
+
// bound here would read a uniform 0 and stay green with the mechanism
|
|
990
|
+
// deleted. The live gate is the fixture in tests/test_hybrid_scope.py
|
|
991
|
+
// (block 8), which the corpus-free preflight runs.
|
|
992
|
+
hybrid_scope: { nodes: null, edges: 'edges', runtimes: 'runtimes', no_opener: 'no_opener', bundled_pages: 'bundled_pages', nav_attributed: 'nav_attributed', unattributed_nav: 'unattributed_nav', shared_anchor: 'shared_anchor' },
|
|
993
|
+
single_host_nav: { nodes: null, edges: 'edges', hosts: 'hosts', wrappers: 'wrappers', sites: 'sites', unresolved: 'unresolved' },
|
|
994
|
+
compose_overlay: { nodes: 'nodes', edges: 'edges', overlays: 'overlays', labelled: 'labelled', open_overlay: 'open_overlay', device_env: 'device_env', pager_variants: 'pager_variants', pager_unresolved: 'pager_unresolved', dup_callee_names: 'dup_callee_names', ambiguous_hops: 'ambiguous_hops' },
|
|
995
|
+
// compose_nav / compose_merge — the Compose route layer. Had NO row of any
|
|
996
|
+
// kind, which is how the whole layer regressed to zero unnoticed on nav3 apps
|
|
997
|
+
// (every navigation3 route and edge silently missing) while the matrix stayed
|
|
998
|
+
// green. Both summaries are unconditional so a drop to zero is a FAILURE and
|
|
999
|
+
// not an absent metric.
|
|
1000
|
+
compose_nav: { nodes: null, edges: 'edges', routes: 'routes', unresolved: 'unresolved', holders: 'holders', collapsed_keys: 'collapsed_keys', start_destinations: 'start_destinations', start_resolved: 'start_resolved', start_unresolved: 'start_unresolved', loopvar_sites: 'loopvar_sites', loopvar_edges: 'loopvar_edges' },
|
|
1001
|
+
// `dropped_no_text` and `start_dest_unresolved` need CEILINGS (kind="max"):
|
|
1002
|
+
// they count edges thrown away, so a RISE is the regression. `resolved` and
|
|
1003
|
+
// `start_dest` need floors.
|
|
1004
|
+
compose_merge: { nodes: 'nodes', edges: 'edges', resolved: 'resolved', via_host_route: 'via_host_route', dropped_fallback: 'dropped_fallback', dropped_no_text: 'dropped_no_text', start_dest: 'start_dest', start_dest_unresolved: 'start_dest_unresolved', ambiguous_hops: 'ambiguous_hops' },
|
|
1005
|
+
navactions_nav: { nodes: null, edges: 'edges', labelled: 'labelled', methods: 'wrapper_methods', dropped: 'dropped_fallback' },
|
|
1006
|
+
compose_navbar_nav: { nodes: null, edges: 'edges', labelled: 'labelled', bars: 'bars', tabs: 'tabs' },
|
|
1007
|
+
compose_widgets: { nodes: 'nodes', edges: null, widgets: 'widgets', inputs: 'inputs', placeholders: 'placeholders', triggers: 'trigger_anchored' },
|
|
1008
|
+
compose_titles: { nodes: null, edges: null, stamped: 'stamped', headers: 'headers', dynamic: 'dynamic_only' },
|
|
1009
|
+
// Voyager. `by_class` and `by_climb` are separated on purpose: the class
|
|
1010
|
+
// -scope tier is exact and the climb is inferential, so a shift between them
|
|
1011
|
+
// at a constant total is the signature of attribution drift — invisible in
|
|
1012
|
+
// `edges` alone, which is what "every counter healthy, graph wrong" looks
|
|
1013
|
+
// like here.
|
|
1014
|
+
screen_merge: { nodes: 'nodes', edges: 'edges', by_class: 'by_class', by_climb: 'by_climb', dropped: 'dropped_fallback', ambiguous: 'fn_ambiguous' },
|
|
1015
|
+
// `rejected` needs a CEILING, not a floor: it counts same-name root
|
|
1016
|
+
// composables whose scan resolved to another page, and a rise means the gate
|
|
1017
|
+
// is firing more often — i.e. more attributions were wrong, not fewer.
|
|
1018
|
+
activity_widgets: { nodes: 'nodes', edges: null, widgets: 'widgets', planned: 'planned', rejected: 'rejected', no_source: 'no_source', unresolved: 'root_unresolved' },
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Minimal workspace (manifest.jsonl + starters.jsonl + nodes.jsonl, plus page/overlay nodes) for
|
|
1023
|
+
* extractors that need the page set already in the graph. Mirrors manifest.py --workspace.
|
|
1024
|
+
*/
|
|
1025
|
+
export function _bootstrapWorkspace(appPath) {
|
|
1026
|
+
const ws = osJoin(appPath, '.utg_regression_ws');
|
|
1027
|
+
fs.mkdirSync(ws, { recursive: true });
|
|
1028
|
+
let pkg = 'unknown';
|
|
1029
|
+
for (const [dp, dirs, files] of _osWalk(appPath)) {
|
|
1030
|
+
const keep = dirs.filter((d) => d !== 'build' && d !== '.git');
|
|
1031
|
+
dirs.length = 0; dirs.push(...keep);
|
|
1032
|
+
if (files.includes('AndroidManifest.xml') && fwd(dp).includes('src')) {
|
|
1033
|
+
const t = decodeReplace(fs.readFileSync(osJoin(dp, 'AndroidManifest.xml'))).replace(/\r\n?/g, '\n');
|
|
1034
|
+
const m = reSearch(pyRe(String.raw`package="([\w.]+)"`), t);
|
|
1035
|
+
if (m) { pkg = m[1]; break; }
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
// Use manifest's own bootstrap so the matrix exercises the real entry point, not a copy of
|
|
1039
|
+
// its logic that could drift from it.
|
|
1040
|
+
for (const stale of ['nodes.jsonl', 'manifest.jsonl', 'starters.jsonl']) {
|
|
1041
|
+
const p = osJoin(ws, stale);
|
|
1042
|
+
if (exists(p)) { fs.rmSync(p); }
|
|
1043
|
+
}
|
|
1044
|
+
run(stageArgv('manifest', fwd(appPath), pkg, '--workspace', ws, '--append'));
|
|
1045
|
+
// Page nodes too: an edge builder can only resolve a launch site whose enclosing page is
|
|
1046
|
+
// already a node (page extractors before edge extractors).
|
|
1047
|
+
run(stageArgv('fragment_nav', fwd(appPath), '--workspace', ws, '--append'));
|
|
1048
|
+
// Hosted subnodes (`menu:x@Host`) and call-site-credited overlays: the two node shapes
|
|
1049
|
+
// view_widgets' class-scoping rule exists to REFUSE; without them `scope_hosted` and
|
|
1050
|
+
// `scope_call_site` read 0 on every app.
|
|
1051
|
+
for (const extra of ['menu_nav', 'dialogshow_nav']) {
|
|
1052
|
+
run(stageArgv(extra, fwd(appPath), '--workspace', ws, '--append'));
|
|
1053
|
+
}
|
|
1054
|
+
return ws;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
// Extractors whose CLI is `<script> <project> <workspace>` rather than `<script> <project> [--workspace ws]`.
|
|
1058
|
+
export const _NEEDS_WORKSPACE_ARG = new Set(['activity_nav', 'single_host_nav']);
|
|
1059
|
+
// Extractors taking `--workspace <ws>` (and needing a bootstrapped workspace).
|
|
1060
|
+
export const _NEEDS_WORKSPACE_FLAG = new Set(['starter_nav', 'registry_nav', 'media_browse_nav']);
|
|
1061
|
+
// `<project> --nav-out <compose_nav.out.json> --workspace <ws>`: Compose edge extractors that
|
|
1062
|
+
// join against compose_nav's route table.
|
|
1063
|
+
export const _NEEDS_NAV_OUT = new Set(['navactions_nav', 'compose_navbar_nav']);
|
|
1064
|
+
// `<project> <ws> <screen_nav.out.json>`: the Voyager merge.
|
|
1065
|
+
export const _NEEDS_SCREEN_OUT = new Set(['screen_merge']);
|
|
1066
|
+
// `<project> <ws> <compose_nav.out.json> <compose_overlay.out.json>`: the Compose merge.
|
|
1067
|
+
export const _NEEDS_MERGE_ARGS = new Set(['compose_merge']);
|
|
1068
|
+
// `<ws> --project <project>`: workspace is the INPUT (graph enrichment).
|
|
1069
|
+
export const _WS_POS_PROJECT_FLAG = new Set(['compose_widgets', 'compose_titles', 'view_widgets',
|
|
1070
|
+
'state_guard', 'activity_widgets']);
|
|
1071
|
+
// Anything above needs the Compose stage of the bootstrap, except the View-side enrichers
|
|
1072
|
+
// (view_widgets / state_guard / activity_widgets), which must not be measured through a
|
|
1073
|
+
// Compose-only preparation step.
|
|
1074
|
+
export const _NEEDS_COMPOSE = new Set([..._NEEDS_NAV_OUT, ..._WS_POS_PROJECT_FLAG]
|
|
1075
|
+
.filter((x) => !['view_widgets', 'state_guard', 'activity_widgets'].includes(x)));
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Add compose_nav/compose_overlay/compose_merge output to an existing ws. Only the two SCANS are
|
|
1079
|
+
* cached (the slow part); compose_merge re-runs every time because _bootstrapWorkspace rebuilds
|
|
1080
|
+
* nodes.jsonl on each call.
|
|
1081
|
+
*/
|
|
1082
|
+
export function _bootstrapCompose(appPath, ws) {
|
|
1083
|
+
const app = fwd(appPath);
|
|
1084
|
+
const navOut = osJoin(ws, 'compose_nav.out.json');
|
|
1085
|
+
const ovOut = osJoin(ws, 'compose_overlay.out.json');
|
|
1086
|
+
if (!exists(navOut)) { writeTextMode(navOut, run(stageArgv('compose_nav', app)).stdout || ''); }
|
|
1087
|
+
if (!exists(ovOut)) { writeTextMode(ovOut, run(stageArgv('compose_overlay', app)).stdout || ''); }
|
|
1088
|
+
fs.copyFileSync(ovOut, osJoin(ws, 'overlay.jsonl'));
|
|
1089
|
+
run(stageArgv('compose_merge', app, ws, navOut, ovOut));
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/** int(v) for a summary token value, or null on ValueError. */
|
|
1093
|
+
function intOrNull(v) {
|
|
1094
|
+
return /^[+-]?[0-9]+(?:_[0-9]+)*$/.test(v) ? Number(v.replace(/_/g, '')) : null;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Run <extractor>.mjs on <corpus>/<app>; returns [metrics, returncode, stderr] where metrics is
|
|
1099
|
+
* the {name: int} map parsed from its `[extractor] k=v ...` stderr summary line(s).
|
|
1100
|
+
*/
|
|
1101
|
+
export function runExtractor(corpus, app, extractor) {
|
|
1102
|
+
const appPath = osJoin(corpus, app);
|
|
1103
|
+
let argv = stageArgv(extractor, fwd(appPath));
|
|
1104
|
+
if (_NEEDS_WORKSPACE_ARG.has(extractor)) {
|
|
1105
|
+
argv.push(fwd(_bootstrapWorkspace(appPath)));
|
|
1106
|
+
} else if (_NEEDS_WORKSPACE_FLAG.has(extractor)) {
|
|
1107
|
+
argv.push('--workspace', fwd(_bootstrapWorkspace(appPath)));
|
|
1108
|
+
} else if (_WS_POS_PROJECT_FLAG.has(extractor)) {
|
|
1109
|
+
// `<ws> --project <project>` — workspace REPLACES the positional project argument. Its own
|
|
1110
|
+
// branch: the CLI shape and the need for a Compose bootstrap are independent facts.
|
|
1111
|
+
const ws = _bootstrapWorkspace(appPath);
|
|
1112
|
+
if (_NEEDS_COMPOSE.has(extractor)) { _bootstrapCompose(appPath, ws); }
|
|
1113
|
+
argv = stageArgv(extractor, fwd(ws), '--project', fwd(appPath));
|
|
1114
|
+
} else if (_NEEDS_SCREEN_OUT.has(extractor)) {
|
|
1115
|
+
const wsn = fwd(_bootstrapWorkspace(appPath));
|
|
1116
|
+
const sOut = osJoin(wsn, 'screen_nav.out.json');
|
|
1117
|
+
writeTextMode(sOut, run(stageArgv('screen_nav', fwd(appPath))).stdout || '');
|
|
1118
|
+
argv = stageArgv(extractor, fwd(appPath), wsn, sOut);
|
|
1119
|
+
} else if (_NEEDS_MERGE_ARGS.has(extractor)) {
|
|
1120
|
+
// Produce the scans, then invoke the merge once, directly (_bootstrapCompose would run the
|
|
1121
|
+
// merge as well and the counters would measure the double).
|
|
1122
|
+
const wsn = fwd(_bootstrapWorkspace(appPath));
|
|
1123
|
+
const app2 = fwd(appPath);
|
|
1124
|
+
const navOut = osJoin(wsn, 'compose_nav.out.json');
|
|
1125
|
+
const ovOut = osJoin(wsn, 'compose_overlay.out.json');
|
|
1126
|
+
for (const [out, scan] of [[navOut, 'compose_nav'], [ovOut, 'compose_overlay']]) {
|
|
1127
|
+
if (!exists(out)) { writeTextMode(out, run(stageArgv(scan, app2)).stdout || ''); }
|
|
1128
|
+
}
|
|
1129
|
+
argv = stageArgv(extractor, app2, wsn, navOut, ovOut);
|
|
1130
|
+
} else if (_NEEDS_COMPOSE.has(extractor)) {
|
|
1131
|
+
const ws = _bootstrapWorkspace(appPath);
|
|
1132
|
+
_bootstrapCompose(appPath, ws);
|
|
1133
|
+
const wsn = fwd(ws);
|
|
1134
|
+
argv.push('--nav-out', osJoin(wsn, 'compose_nav.out.json'), '--workspace', wsn);
|
|
1135
|
+
}
|
|
1136
|
+
const proc = run(argv);
|
|
1137
|
+
// summary is on stderr; find the [extractor] line
|
|
1138
|
+
const metrics = {};
|
|
1139
|
+
for (let line of splitlines(proc.stderr || '')) {
|
|
1140
|
+
line = pyStrip(line);
|
|
1141
|
+
if (!line.startsWith(`[${extractor}]`)) { continue; }
|
|
1142
|
+
for (const tok of pySplit(line)) {
|
|
1143
|
+
if (tok.includes('=')) {
|
|
1144
|
+
const [k, v] = pySplit(tok, '=', 1);
|
|
1145
|
+
const n = intOrNull(v);
|
|
1146
|
+
if (n !== null) { metrics[k] = n; }
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
return [metrics, proc.returncode, proc.stderr];
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
const _KINDS = ['floor', 'max', 'exact'];
|
|
1154
|
+
|
|
1155
|
+
/** PREFLIGHT: CASES table sanity, then the corpus-free fixtures. Returns 1 on failure, else null. */
|
|
1156
|
+
export function preflight() {
|
|
1157
|
+
// Every metric name in CASES must be registered in _METRIC_TOKENS, and every `kind` must be one
|
|
1158
|
+
// the loop below understands — checked BEFORE any app is bootstrapped.
|
|
1159
|
+
const bad = [];
|
|
1160
|
+
for (const [, extractor, metric, kind] of CASES) {
|
|
1161
|
+
if (!Object.hasOwn(_METRIC_TOKENS, extractor)) {
|
|
1162
|
+
bad.push(`${extractor}: extractor not in _METRIC_TOKENS`);
|
|
1163
|
+
} else if (!Object.hasOwn(_METRIC_TOKENS[extractor], metric)) {
|
|
1164
|
+
bad.push(`${extractor}.${metric}: metric not in _METRIC_TOKENS ` +
|
|
1165
|
+
`(known: [${sortedStr(Object.keys(_METRIC_TOKENS[extractor])).map(strRepr).join(', ')}])`);
|
|
1166
|
+
}
|
|
1167
|
+
if (!_KINDS.includes(kind)) {
|
|
1168
|
+
bad.push(`${extractor}.${metric}: kind ${strRepr(kind)} is not one of ` +
|
|
1169
|
+
`(${_KINDS.map(strRepr).join(', ')}) — this case would never assert`);
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
if (bad.length) {
|
|
1173
|
+
for (const b of sortedStr(new Set(bad))) { pyPrintErr(`CASES ERROR ${b}`); }
|
|
1174
|
+
return 1;
|
|
1175
|
+
}
|
|
1176
|
+
// Fixtures need no corpus; each locks a mechanism NO corpus app exercises. They run as their
|
|
1177
|
+
// node:test twins; output lines carrying a failure marker are echoed.
|
|
1178
|
+
for (const fixture of _PREFLIGHT_FIXTURES) {
|
|
1179
|
+
const twin = osJoin(HERE, fixture);
|
|
1180
|
+
if (!exists(twin)) {
|
|
1181
|
+
pyPrintErr(`FIXTURE FAILED ${fixture} (missing: ${path.basename(twin)})`);
|
|
1182
|
+
return 1;
|
|
1183
|
+
}
|
|
1184
|
+
const r = run([process.execPath, '--test', twin]);
|
|
1185
|
+
if (r.returncode !== 0) {
|
|
1186
|
+
pyPrintErr(`FIXTURE FAILED ${fixture}`);
|
|
1187
|
+
for (const line of splitlines(r.stdout + r.stderr)) {
|
|
1188
|
+
if (line.startsWith('FAIL') || line.includes('FAILED') || /^\s*not ok\b/.test(line) || line.includes('✖')) {
|
|
1189
|
+
pyPrintErr(` ${line}`);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
return 1;
|
|
1193
|
+
}
|
|
1194
|
+
pyPrint(`preflight fixture ok: ${fixture}`);
|
|
1195
|
+
}
|
|
1196
|
+
return null;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/** The corpus loop. Returns the exit code. */
|
|
1200
|
+
export function runCorpus(corpus) {
|
|
1201
|
+
// AFTER the preflight, deliberately: the corpus is a local fixture absent in CI.
|
|
1202
|
+
if (!isDir(corpus)) {
|
|
1203
|
+
pyPrintErr(`SKIP: corpus dir not found: ${corpus}`);
|
|
1204
|
+
return 0;
|
|
1205
|
+
}
|
|
1206
|
+
const cache = new Map(); // (app, extractor) -> metrics
|
|
1207
|
+
const failures = [];
|
|
1208
|
+
for (const [app, extractor, metric, kind, bound] of CASES) {
|
|
1209
|
+
const key = JSON.stringify([app, extractor]);
|
|
1210
|
+
if (!cache.has(key)) {
|
|
1211
|
+
if (!isDir(osJoin(corpus, app))) {
|
|
1212
|
+
pyPrint(`SKIP ${app}/${extractor}: app dir missing`);
|
|
1213
|
+
cache.set(key, null);
|
|
1214
|
+
continue;
|
|
1215
|
+
}
|
|
1216
|
+
const [metrics, , err] = runExtractor(corpus, app, extractor);
|
|
1217
|
+
cache.set(key, metrics);
|
|
1218
|
+
if (!Object.keys(metrics).length) {
|
|
1219
|
+
failures.push(`${app}/${extractor}: no summary line ` +
|
|
1220
|
+
`(crash? stderr tail: ${strTail(pyStrip(err), 200)})`);
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
const metrics = cache.get(key);
|
|
1224
|
+
if (metrics === null) { continue; }
|
|
1225
|
+
const token = _METRIC_TOKENS[extractor][metric];
|
|
1226
|
+
if (token === null) { continue; }
|
|
1227
|
+
const val = Object.hasOwn(metrics, token) ? metrics[token] : null;
|
|
1228
|
+
if (val === null) {
|
|
1229
|
+
failures.push(`${app}/${extractor}: metric '${token}' absent`);
|
|
1230
|
+
continue;
|
|
1231
|
+
}
|
|
1232
|
+
let ok; let op;
|
|
1233
|
+
if (kind === 'floor') { ok = val >= bound; op = '>='; }
|
|
1234
|
+
else if (kind === 'max') { ok = val <= bound; op = '<='; }
|
|
1235
|
+
else { ok = val === bound; op = '=='; }
|
|
1236
|
+
const status = ok ? 'PASS' : 'FAIL';
|
|
1237
|
+
pyPrint(` [${status}] ${app.padEnd(38)} ${extractor} ${metric}=${val} ${op} ${bound}`);
|
|
1238
|
+
if (!ok) { failures.push(`${app}/${extractor} ${metric}: ${val} !${op} ${bound}`); }
|
|
1239
|
+
}
|
|
1240
|
+
pyPrint();
|
|
1241
|
+
if (failures.length) {
|
|
1242
|
+
pyPrint(`REGRESSION: ${failures.length} check(s) failed:`);
|
|
1243
|
+
for (const f of failures) { pyPrint(' -', f); }
|
|
1244
|
+
return 1;
|
|
1245
|
+
}
|
|
1246
|
+
pyPrint('ALL REGRESSION CHECKS PASSED');
|
|
1247
|
+
return 0;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
export function main(argv = process.argv.slice(2)) {
|
|
1251
|
+
const ap = new ArgumentParser({ prog: 'regression_matrix.mjs' });
|
|
1252
|
+
ap.add_argument('--corpus', { default: DEFAULT_CORPUS });
|
|
1253
|
+
const args = ap.parse_args(argv);
|
|
1254
|
+
const pf = preflight();
|
|
1255
|
+
if (pf !== null) { return pf; }
|
|
1256
|
+
return runCorpus(args.corpus);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(path.resolve(process.argv[1])).href) {
|
|
1260
|
+
runMain(() => { process.exitCode = main(); });
|
|
1261
|
+
}
|