dev-manager-tauri/CLAUDE.md
lanrtop f7ab6dbbb8
All checks were successful
Push & PR Check / check (push) Successful in 50s
chore(self-onboarding): 炼境自身接入产物治理——块外恢复被抹定制 + lefthook 检查段补齐
批量分发实调反噬实锤:分支策略表/Agent 按钮清单/降级约定/启动协议
第 4 条曾写在 MANAGED 托管块内,v1.6.0/1.11.0 块升级原位覆盖时被抹。
全部恢复至块外「炼境自身约定」区,教训入决策记录(本地定制严禁写
进托管块)。顺带:块外与块内重复的通用约束去重(单一事实来源)、
lefthook 补齐 blueprint-gate/conventional/feature-confirmed 检查段
(verify_onboarding 复验 7/7)、收编 envoy/blueprint-gate 接入产物。

Rules-Applied: R13
2026-07-15 22:19:16 +09:00

63 lines
3.1 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.

# 炼境 (Dev Manager Tauri)
Git 多空间开发管理器Tauri v2 + React + TypeScript + Rust。
<!-- 手动维护区:只放技术栈、目录结构、技能规则。蓝图工作流由下方 MANAGED 块统一管理,勿在此重复。 -->
## 技术栈
- 前端React 19 + TypeScript + TailwindCSS + React Query + Zustand + React Flow
- 后端Rust + Tauri v2 + SQLite (rusqlite + r2d2)
- 包管理pnpm禁止 npm/yarn
- Git 后端:自建 GiteaGitHub 已退役,见 .blueprint/modules/github-decommission.md
- CI/CDGitea Actions 迁移中;发布产物走阿里云 OSS历史方案见 docs/tauri-cicd-guide.md
- 客户端更新tauri-plugin-updater详见 docs/tauri-updater-guide.md
## 目录结构
```
src/ 前端源码
src/components/ React 组件(按功能分目录)
src/lib/commands.ts Tauri command 调用封装
src-tauri/src/ Rust 后端
src-tauri/src/commands/ Tauri command 实现
src-tauri/resources/onboarding/ 接入包分发模板AGENTS.md、git-workflow、lefthook
.blueprint/ 项目蓝图manifest + 模块详情 + 任务卡)
.claude/rules/ 路径注入规则tauri-contract / db-schema / onboarding-sync
AGENTS.md 跨工具 AI 上下文(四支柱 + 元规则,单一来源)
docs/ai-context/ AI 速查文档project-brief.md、project-context.yaml
docs/templates/ 炼境接入包模板草案agents-meta-rules 等)
```
## 命令执行规则
- 所有命令直接用 Bash tool 执行,禁止输出命令让用户手动运行
- `pnpm tauri build` / `cargo build --release` 等 Rust 构建用 `run_in_background: true` + `timeout: 600000`(首次编译可能需要 10 分钟)
- 超过 10 分钟的任务(如完整 release build改为输出单行完整命令让用户 `! <命令>` 一键执行
## 技能使用规则
根据任务卡 complexity 决定执行后的检查:
| complexity | 执行后必跑 |
|-----------|-----------|
| S简单增删改 | /code-review → /smart-commit |
| M中等逻辑 | /Dev-edge-case → /code-review → /smart-commit |
| L复杂应先拆 | /architect → /splitter → 拆成 S/M |
- 新功能设计阶段:/architect
- 代码重构/简化:/simplify → /code-review
- 发现深层问题:/Dev-deep-think
<!-- BLUEPRINT_MANAGED_START version="1.11.0" -->
## 项目蓝图
蓝图工作流规则统一维护在 @AGENTS.md 的 BLUEPRINT_MANAGED 区(跨工具单一来源,勿在此复制)。
对话开始时必须执行:
1. 读取 `.blueprint/manifest.yaml` 了解项目全景和当前状态
2. 读取 `.blueprint/CONVENTIONS.md` 了解完整工作流规则
3. 遵循 AGENTS.md 中的蓝图工作流(需求→蓝图同步、复杂度决策、两阶段提交)
<!-- BLUEPRINT_MANAGED_END -->
**炼境自身附加启动步骤(块外,勿移入托管块——块升级会覆盖)**
4. 调用 `mcp__lian-jing__list_envoy_returns` 检查子项目使者回传——若有待处理条目,在开始其他任务前先列出,询问是否立即处置