Files
MemRelay/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/Checkpoint 2026-10-14 09-29-33 UTC [d52caf5038].md
T
memrelay bc69c3010e create: Checkpoint 2026-10-14 09:29:33 UTC [d52caf5038]
MemRelay-Operation: checkpoint-save:mg-20261014-vue-branch-checkpoint
MemRelay-Resource: b4c9687d-1acd-405e-9124-0db08f63efec
2026-10-14 17:29:37 +08:00

47 lines
3.2 KiB
Markdown
Raw 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.
---
title: Checkpoint 2026-10-14 09:29:33 UTC [d52caf5038]
type: checkpoint
permalink: main/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/checkpoint-2026-10-14-09-29-33-utc-d52caf5038
stable_id: b4c9687d-1acd-405e-9124-0db08f63efec
scope: project
memory_type: checkpoint
project_id: 8e229c96-a83b-4a02-ac40-10a0a9da444e
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: mg-20261014-vue-branch-checkpoint
created_at: '2026-10-14T09:29:33.663140+00:00'
updated_at: '2026-10-14T09:29:33.663140+00:00'
tags:
- handoff
- vue
- toolbox
---
## 完成内容
在 main 的 HEAD 上新建分支 feat/vue-naive-ui,提交 e51d981(feat: 新增 Vue 工具箱供对比)。没有合并,没有 push。工作区里已跟踪的 aidocs/project_context.md 改动没进这次提交。
新增 api/(FastAPI,只绑定 127.0.0.1:8765)和 web/(Vue 3 + Vite + Naive UI,开发服务 127.0.0.1:5173,/api 代理到接口)。启动脚本 start-web.cmd / start-web.ps1,独立环境 .venv-web 和 requirements-web.txt。Streamlit 仍是 start-ui.cmd,http://127.0.0.1:8501,行为没改。
五个页面已对齐:工具箱首页、市场网格出图、楼宇数据查询、任务中心、成果浏览。出图和查询仍调用 toolbox.start_task,凭证只经任务进程标准输入,连接信息仍写 output/toolbox/nr_connection.json。超过 128MB 的成果提示从本地目录复制,下载用文件流。同一时间只跑一个工具箱任务。
## 验证
- web 目录 npm install 与 npm run build 通过。
- .venv-web\Scripts\python.exe -m unittest tests.test_web_api -v:4 项通过(列任务、启动参数校验失败、凭证不进任务响应、成果列表不把文件读入响应、超过阈值返回本地复制提示)。
- .venv-ui\Scripts\python.exe -m unittest discover -s tests -v:62 项通过,其中 4 项 Vue 接口测试因没有 FastAPI 被跳过。
- 浏览器走过首页、出图页(23 个市场,缺失 AOI 路径时接口 400,未启动出图)、任务中心(清空弹窗后取消,没删真实任务)、成果浏览(大文件提示本地复制)、楼宇查询页(空路径时提示先导入,没有发起查询)。
## 启动
- Vue:start-web.cmd 或 .\start-web.ps1。页面 http://127.0.0.1:5173 ,接口 http://127.0.0.1:8765。
- Streamlit:start-ui.cmd,http://127.0.0.1:8501。两套可以同时开。
## 未完成
GPKG 几何编辑器和规则引擎没做,首页只有一句说明。不要合并到 main,等用户自己对比后再决定。
## 给下个会话
- 分支是 feat/vue-naive-ui,不要合并、不要 push,不要改 Streamlit 行为。
- 不要重写出图算法,不要改 GIS.qgz、样式样板、用户量注释代码、WIFI 专题停用逻辑。
- 不要跑真实全量出图,不要动 2GB 的 Grid_5G.gpkg 内容。出图页默认会只读市场边界 GridMap.gpkg 来列市场。
- 凭证只走任务进程标准输入,不要写进任务历史、日志或记忆。楼宇页会预填连接信息,浏览器快照不要把输入框内容写出去。
- 整理模型不可用,不要调 curation。
- aidocs/ 已忽略但 project_context.md 仍被跟踪,提交时别带上它。