# ============================================================
# 密钥 — 绝不提交
# ============================================================
.env
.env.*
!.env.example
*.pem
*.key
.session_secret

# ============================================================
# Python 构建产物与缓存
# ============================================================
__pycache__/
*.py[cod]
*.pyo
*.egg-info/
.pytest_cache/
.mypy_cache/
.ruff_cache/
.venv/
venv/
env/
/dist/
build/
.coverage
htmlcov/

# ============================================================
# 用户私有数据
# ============================================================
users/*
!users/.gitkeep
message/config.local.json
message/identity/identity_map.json
message/push_queue/
message-runtime/

# ============================================================
# 会话运行时状态（不提交）
# ============================================================
SESSION-STATE.md

# ============================================================
# 知识图谱数据（运行时生成）
# ============================================================
/memory/

# ============================================================
# 项目级学习记录（运行时生成）
# ============================================================
.learnings/

# ============================================================
# IDE / 编辑器
# ============================================================
.vscode/
.idea/
*.swp
*.swo

# ============================================================
# 系统文件
# ============================================================
.DS_Store
Thumbs.db
desktop.ini

# ============================================================
# 临时文件与日志
# ============================================================
/tmp/
/temp/
/download/
/logs/
*.log

# ============================================================
# 外部工具 & 缓存
# ============================================================
tools/skillhub/
skills/.skills_store_lock.json

# ============================================================
# 开发文档文件及目录
# ============================================================
开发文档.md
开发文档/
使用手册-AI/
CLAUDE.md

# ============================================================
# Node.js / React 前端
# ============================================================
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
web/build/
web/dist-ssr/
*.local

# ============================================================
# 知识库 — 全局 knowledge/ 提交到仓库（用户级 knowledge/ 在 users/ 下已被用户数据规则覆盖）
message/config.json
