autotrain/CODEMAP.md
xinxin6623 9eb6778a6f feat: web UI enhancements, device calibration, phone control manual, and skills directory
- web_ui.py: major refactor with improved runner, mode selection, progress tracking
- scripts: add device_runtime, device_calibrate, calibration_trace, record_android_flow
- docs: add phone-control-manual, update device-adaptation and windows-migration
- invoice_tool: enhance H5 automation flow and visual fallback
- calibrate.py: expand calibration capabilities
- add skills/ and tests/ directories
- remove obsolete .opencode/skills/invoice-wrapup

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 22:14:56 +08:00

28 lines
2.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 本文件由 /wrap-up 自动生成并覆盖,勿手工编辑;生成器见 wrap-up skill references/codemap.md -->
# 铁路系统发票 · 代码图谱索引 (CODEMAP)
> 由 codebase-memory-mcp 于 2026-07-11 生成 · 图谱 566 节点 / 1799 边 · 活文件,每次 /wrap-up 覆盖
## 一、给能连 MCP 的 agent首选
本项目已索引project 名 `Users-qoragufimo390gmail.com-Documents-works-autotrain`。直接查图谱代替 grep省 ~120x token
- 架构总览:`get_architecture(project="Users-qoragufimo390gmail.com-Documents-works-autotrain", aspects=["all"])`
- 查函数/类:`search_graph(project="Users-qoragufimo390gmail.com-Documents-works-autotrain", name_pattern=".*X.*")`
- 调用链:`trace_path(project="Users-qoragufimo390gmail.com-Documents-works-autotrain", function_name="X", direction="both")`
- 死代码:`search_graph(project="Users-qoragufimo390gmail.com-Documents-works-autotrain", max_degree=0, exclude_entry_points=true)`
- Cypher`query_graph(project="Users-qoragufimo390gmail.com-Documents-works-autotrain", query="MATCH ...")`
未连 MCPCLI 等价:`~/.local/bin/codebase-memory-mcp cli <tool> '<json>'`
## 二、结构画像快照(连不上 MCP 时读这段就够)
- **规模**566 节点 / 1799 边 / 10 Python+Bash 文件
- **语言**Python 7 · Bash 3
- **节点构成**Section 203 · Function 192 · Variable 92 · File 23 · Module 23 · Method 17 · Class 7 · Folder 6
- **包/目录**`scripts/`204 节点,唯一逻辑包)— 全部逻辑在独立 Python 文件里,彼此通过 CSV/配置文件耦合IMPORTS 边仅 2 条印证)
- **入口**6 个 main`invoice_tool.py`(主 CLI ~3200 行)/ `web_ui.py`HTTP 服务 :8765/ `vision_fallback.py`(视觉层)/ `record_step.py`(录制)/ `add_invoice_passenger_name.py`PDF 加姓名)/ `annotate_roster_invoices.py`(名单标状态)
- **热点函数**by fan-in`run_adb`(23) · `project_path`(21) · `adb_dump_nodes`(17) · `adb_visible_texts`(14) · `match_roster`(13) · `read_progress`(12)
- **边类型**CALLS 748 · DEFINES 606 · USAGE 162 · SEMANTICALLY_RELATED 131 · WRITES 81 · SIMILAR_TO 26 · FILE_CHANGES_WITH 3 · IMPORTS 2
- **架构层**`scripts` = entry layer有入口、只外调其余 builtins 为 core layer