# 炼境契约路径映射 # 炼境自身版本,手工维护(等 agent-infrastructure 模块完成后由炼境自动生成) # 供 AGENTS.md 元规则 T1 查询:「哪个文件是这个项目的契约?」 contracts: - label: Tauri command 接口(前后端契约) paths: - "src-tauri/src/commands/**/*.rs" - "src/lib/commands.ts" doc: "新增 command 时两端必须同步;src/lib/commands.ts 是唯一前端调用入口" - label: 数据库 schema paths: - "src-tauri/src/db.rs" doc: "SQLite 表结构变更必须在 migrate() 函数中补 migration 语句" - label: MCP Server 接口 paths: - "src-tauri/src/mcp_server.rs" - "src-tauri/src/mcp_inject.rs" doc: "MCP 接口变更影响 Claude Code 对炼境的调用,接口路由和参数需同步" - label: 接入包分发模板 paths: - "src-tauri/resources/onboarding/**" doc: "模板变更需同步检查 docs/templates/agents-meta-rules.md(设计层来源)" architecture_docs: - "AGENTS.md" - "CLAUDE.md" - ".blueprint/manifest.yaml" agent_docs: - "AGENTS.md" - "docs/ai-context/project-brief.md"