2.9 KiB
2.9 KiB
title, type, permalink, stable_id, scope, project_id, workspace_type, usage_profile_id, preference_context, document_type, revision, source_memory_ids, source_checkpoint_ids, source_file_ids, source_git_commit, source_git_commits, source_agent_sync_ids, model_connection, model_name, source_count, source_revisions, source_dispositions, cited_source_ids, job_cited_source_ids, conflicts, supersedes, preferences, source_cursor, source_hash, prompt_version, schema_version, curation_job_id, created_at, updated_at, tags, restored_from_commit
| title | type | permalink | stable_id | scope | project_id | workspace_type | usage_profile_id | preference_context | document_type | revision | source_memory_ids | source_checkpoint_ids | source_file_ids | source_git_commit | source_git_commits | source_agent_sync_ids | model_connection | model_name | source_count | source_revisions | source_dispositions | cited_source_ids | job_cited_source_ids | conflicts | supersedes | preferences | source_cursor | source_hash | prompt_version | schema_version | curation_job_id | created_at | updated_at | tags | restored_from_commit | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MROTemp 系统架构概览 | curated | main/projects/991bd0b4-6f60-47c0-8e47-1bb256c04653/curated/development/mrotemp-系统架构概览 | b167abb2-6552-41b4-8495-037eb74ec7aa | project | 991bd0b4-6f60-47c0-8e47-1bb256c04653 | development | null | development | architecture | 1 | null | Sub2API | git-restore | 20 |
|
53 | cd96d5b27b5d1ef34ff30350e40c12b9d9b7e389c5813755521578d1f2597d9c | 2026-08-12.3 | 3 | null | 2026-08-13T18:33:49.491028+00:00 | 2026-09-23T15:02:50.947656+00:00 |
|
6a6a895eaf |
总体结构
MROTemp/
├─ .venv/ # Python 虚拟环境,包含 lxml==6.1.1
├─ source/ # 待转换的 ZTE LTE MRO XML 文件
├─ output/ # 生成的 GBK 编码 CSV,命名为 MRO_<时间戳>.csv
├─ aidocs/ # 本地项目记忆 (project_context.md),已 .gitignore
├─ mro_to_csv.py # 主转换脚本
└─ README.md
工作流
- 准备:将 XML 文件复制到
source/。确保.venv\\Scripts\\python.exe可运行并已安装lxml==6.1.1。 - 执行:在 Windows 命令行激活虚拟环境并运行
python mro_to_csv.py。脚本使用 lxml.iterparse,在遇到第二个<measurement>时停止,只保留第一个 measurement 的 31 个smr字段,去除MR.前缀。 - 输出:在
output/生成 GBK 编码 CSV,文件名MRO_<YYYYMMDDHHMMSS>.csv。列包括FileName, eNB, id, MmeUeS1apId, MmeCode, MmeGroupId, TimeStamp加 31 个业务字段。 - 记忆更新:完成任务后,编辑
aidocs/project_context.md,在顶部静态说明下方追加时间戳条目,记录做了什么、为何、验证方式、问题与后续计划。 - 提交:清理临时文件,使用
type: 中文说明格式提交有意义的代码改动。
关键原则
- KISS & YAGNI:保持实现最简且正确,不添加未确认需求的依赖或抽象。
- 复用现有框架:项目已配备
.venv与lxml,不引入额外库。 - AI 与 Git 集成可选:默认不启用,可在需要时自行配置。
- 凭证处理:所有登录/SSH/API 前先查询 Vaultwarden,唯一匹配直接使用;新凭证即时写入密码库。
- 语言与平台:沟通默认中文,所有脚本、路径、命令须在 Windows 兼容。