- 删除 5 个 AGENTS.md(根 + 4 子模块)与 .cursor/、.cursorignore,全部已备份 - 在 CLAUDE.md 末尾追加 5 节迁移必需内容(CLI/Shell 中文与编码、Claude Code 资产入口、Hook 与权限、不破坏原则、历史追溯),保留用户选定的 226 行项目规则全集 - 用户级 12 个 skills 从 ~/.cursor/skills/ 剥包装回迁到 ~/.claude/skills/(neozqyy-cursor-migration → neozqyy-claude-code-migration) - docs/ai-env-history/ 顶层 10 文件入仓(含 conversation_index.csv、file_impact_index.csv,已脱敏);sessions/ 原文继续本地保留 - 新增 tools/claude-code/migrate_ai_environment.py(--check 14/14 通过) - 新增 docs/claude_code_migration.md 与 docs/audit/changes/2026-05-02__claude_code_migration.md - .gitignore 调整:开放 2 个 CSV 索引入仓,保留 sessions/ 与 claude-history/ 排除 - 不混入 124 个业务变更(AI 模块重构、runtime_context、sandbox 等保持 unstaged) - 备份位置:~/.claude/backups/pre-claude-code-migration-2026-05-02/ 第二轮迁移(第一轮 commit 6facb2d 已被 git reset 回滚;本轮策略为追加而非重写 CLAUDE.md)
107 lines
1.6 KiB
Plaintext
107 lines
1.6 KiB
Plaintext
# ===== 临时与缓存 =====
|
||
# tmp/
|
||
__pycache__/
|
||
*.pyc
|
||
*.py[cod]
|
||
*$py.class
|
||
*.so
|
||
.hypothesis/
|
||
.pytest_cache/
|
||
pytest-cache-files-*/
|
||
logs/
|
||
*.log
|
||
*.jsonl
|
||
|
||
# Playwright MCP 浏览器日志与页面快照
|
||
.playwright-mcp/
|
||
|
||
# 小程序字体补丁临时目录
|
||
apps/miniprogram/.font_patch_tmp/
|
||
|
||
# ===== 审计文件 =====
|
||
docs/audit/*
|
||
# 白名单:允许追踪审计变更记录与仪表盘
|
||
!docs/audit/changes/
|
||
!docs/audit/changes/*.md
|
||
!docs/audit/audit_dashboard.md
|
||
|
||
# ===== 运行时产出 =====
|
||
export/
|
||
reports/
|
||
scripts/logs/
|
||
|
||
|
||
# ===== 环境配置(保留模板) =====
|
||
.env
|
||
.env.local
|
||
!.env.template
|
||
|
||
# ===== Node =====
|
||
node_modules/
|
||
|
||
# ===== Python 虚拟环境 =====
|
||
.venv/
|
||
venv/
|
||
ENV/
|
||
env/
|
||
|
||
# ===== Python 构建产物 =====
|
||
.Python
|
||
build/
|
||
develop-eggs/
|
||
downloads/
|
||
eggs/
|
||
.eggs/
|
||
lib/
|
||
lib64/
|
||
parts/
|
||
sdist/
|
||
var/
|
||
wheels/
|
||
*.egg-info/
|
||
.installed.cfg
|
||
*.egg
|
||
dist/
|
||
|
||
# ===== 测试覆盖率 =====
|
||
.coverage
|
||
htmlcov/
|
||
|
||
# ===== 测试 =====
|
||
tests/
|
||
|
||
# ===== infra 敏感文件 =====
|
||
infra/**/*.key
|
||
infra/**/*.pem
|
||
infra/**/*.secret
|
||
|
||
# ===== IDE =====
|
||
.idea/
|
||
.vscode/
|
||
.vite/
|
||
*.swp
|
||
*.swo
|
||
*~
|
||
|
||
# ===== Claude Code 本地配置 =====
|
||
.claude/settings.local.json
|
||
|
||
# ===== AI 历史会话归档(原文本地,索引入仓) =====
|
||
# 原文摘要量大(每会话数百行),仅本机保留:
|
||
docs/ai-env-history/sessions/
|
||
docs/claude-history/
|
||
# conversation_index.csv 与 file_impact_index.csv 已脱敏,作为索引入仓(2026-05-02 反向迁移调整)
|
||
|
||
# ===== Windows 杂项 =====
|
||
*.lnk
|
||
.Deleted/
|
||
|
||
# ===== 归档目录(用户定期手动清理) =====
|
||
_DEL/
|
||
|
||
# ===== 运维脚本运行时状态 =====
|
||
scripts/ops/.monitor_token
|
||
|
||
# ===== 小程序打包产物 =====
|
||
apps/*.zip
|