Files
agent/docs/superpowers/plans/2026-07-24-project-documents-workbench.md

15 lines
1012 B
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.
# 项目 Documents 工作台实施计划
1. 新建 document 模型和版本化破坏性迁移,删除旧 note/source 模型注册。
2. 新建聚焦的 `internal/logic/documents` 服务与 HTTP handler实现树、内容、上传、移动、
删除、下载、分享和导出。
3. 将工作台聚合、搜索、Inbox、探索沉淀、任务关联和 seed 切换为 document。
4. 新建前端 documents API、类型与跨频道 intent。
5. 使用 CodeMirror 6 实现全画布文件树、多标签编辑器、安全 Markdown 预览和标签持久化。
6. 实现 PDF、图片、文本、音视频、DOCX、XLS/XLSX 预览适配器。
7. 实现三并发上传队列、50 MB 校验、正文拖入根目录和文件树底部进度面板。
8. 实现 Markdown/PDF/DOCX 导出和匿名限时分享。
9. 增加后端服务/handler 测试与前端 API/交互检查。
10. 运行 `go test ./...``node scripts/visual-check.mjs``npm run build``npm run lint`
修复后创建一个聚焦提交。