dev-manager-tauri/.blueprint/modules/project-templates.md
lanrtop 1bc0629827
All checks were successful
Push & PR Check / check (push) Successful in 54s
chore(blueprint): 知识库模板任务卡收卡——agent_verify 已过,human_verify 待实测
2026-07-18 10:26:07 +09:00

53 lines
1.9 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.

---
id: project-templates
name: 项目模板
status: done
progress: 100
---
## 概述
预设项目模板,包含内置模板(首次启动自动种植)和用户自定义模板,用于快速创建新项目。
## 任务卡
### ✅ 模板 CRUD
- status: done
- files: src/components/manage/TemplateEditor.tsx, src-tauri/src/commands/templates.rs
创建、编辑、删除项目模板。
### ✅ 从模板创建项目
- status: done
- files: src-tauri/src/commands/templates.rs
选择模板后自动填充项目信息。
### ✅ 内置模板种植
- status: done
- files: src-tauri/src/commands/templates.rs
首次启动时自动插入预设模板。
### ✅ P1+P3 模板扩充React 生态全覆盖)
- status: done
- complexity: M
- files: src-tauri/src/commands/templates.rs
新增三个内置模板:
- `builtin-vite-react`React 19 + TS + TailwindCSS v4 + React Router v7纯前端 SPA 起点
- `builtin-tauri-react-tailwind`Tauri v2 + React + TailwindCSS v4客户端应用带样式
- `builtin-web-mobile-monorepo`Web + Mobile 共享 Monorepopackages/core业务逻辑+ packages/types + apps/webVite+Tailwind+ apps/mobileExpo+NativeWind
### ✅ 知识库(择升环)模板
- status: done
- complexity: S
- files: src-tauri/src/commands/templates.rs
- acceptance: |
agent_verify: [Rust] cargo build 通过seed 数据含 builtin-knowledge-loopfiles 覆盖 CORE.md/concepts/dialogues/cases/AGENTS.md
human_verify: 应用内新建项目选该模板 → 生成目录结构与晋升规则内容符合预期
新增内置模板 `builtin-knowledge-loop`:方法论/知识沉淀文档库。
三层晋升结构dialogues 原料 → concepts 概念卡 → CORE.md 稳定核心),
晋升规则写入模板 AGENTS.mdagent 进库即按择升环工作流运转。init_commands 为 `git init`
agent_verify 已过cargo check + 种子条目确认commit 55ee5a4human_verify 待应用内新建项目实测。