# IDE
.idea/
.vscode/
*.iml
*.ipr
*.iws

# Build outputs
**/target/
**/dist/
**/unpackage/
**/node_modules/

# Logs
*.log
logs/
# HBuilderX / uni-app CLI 构建日志（.txt 后缀，不会被上面的 *.log 覆盖）
**/build_log.txt

# OS files
.DS_Store
Thumbs.db

# Local config
*.local
.env.local
.env.*.local
.env.production

# Test artifacts
.playwright-mcp/
coverage/

# Playwright 运行产物：保留 .last-run.json 纳入版本控制，其余失败诊断（截图/trace/zip）不入库
tests/.api-artifacts/
tests/.api-artifacts-local/
tests/test-results/*
!tests/test-results/.last-run.json

# Temporary files
*.tmp
*.temp
*.swp
*.swo
*~
~$*

# 健康报告解析临时结果（含用户健康数据，不入库）
**/uploads/json-results/

# Sisyphus work directory
.sisyphus/

# Git worktrees
.worktrees/
worktrees/

# Screenshots
*.png
!docs/**/*.png
!cfc-frontend/static/*.png
!cfc-frontend/static/**/*.png
!cfc-web/public/logo.png
!web/img/*.png
!web/img/product-intro/*.png
!web/articles/*.png
!web/business/*.png

# Python
/*.py
__pycache__/
# TDD 用例脚本化生成器（产物需团队可复现，例外放行）
!tests/scripts/scriptize_tc.py
# 白名单：docs/tdd/tools、docs/scripts、tools 下的 Python 度量/解析脚本需入库（B-15/B-32/B-33 闭环）
!docs/tdd/tools/
!docs/scripts/
!tools/

# OpenCode
.opencode/
dev-browser/
.omo/

# Python venv
.venv/
venv/

# Codegraph
.codegraph/
.codegraph-backup/

# 一次性解析调试脚本（不入库）
/cfc-frontend/test-parse.js

# Skills temp directory
.superpowers/sdd/

# Tool work directories (agent/runtime data, not source)
.workbuddy/
outputs/

# TDD 本地侧车（含个性化配置 config.json / 进度 test-progress.json / 结构化 json）
# ⚠️ 本地私有，禁止推送远程；需与测试团队共享的内容只放 docs/tdd/（见 tdd-orchestrator 能力边界）
.tdd/

# 小红书日报推送本地配置（含飞书密钥，禁止提交）
运营文案/xhs_daily_config.json

# 小红书运营运行时数据（会话/状态/数据追踪/截图，不入库）
运营文案/opencode_sessions.json
运营文案/opencode_sessions.json.bak
运营文案/xhs_comment_state.json
运营文案/小红书发布/_过程脚本/replied_comments.json
运营文案/小红书发布/_数据追踪/daily_reports.jsonl
运营文案/小红书发布/_过程文件/截图/

# Agent/浏览器自动化临时产物（不入库）
# 说明：根目录锚定，避免误伤子目录中的同名源码
/cdp-auto/
/cdp-profile/
/_*.txt
/_*.js

# Playwright CLI 页面快照（自动化运行产物，不入库）
.playwright-cli/

# xaf_agent_hub 运行时产物（会话记录/派发提示词/resume/巡检报告截图等）
tools/xaf_agent_hub/out/

# xaf_agent_hub 本地备份（时间戳 .bak*）
tools/xaf_agent_hub/*.bak*

# 构建脚本错误产物（Vue 模板变量未解析导致的畸形文件名，非正常发布产物）
cfc-web/public/CHANGELOG-v*.md

# Live E2E output (auto-generated, per-node local, do not commit)
tests/.live-out-*
tests/.live-artifacts

# 一次性执行辅助（自动生成，不入库）
_cmd_*
_dispatch_*
_poll_*
/_r*
/_e2e*
/_rename*
/_renumber*
/tests/_*
/tests/tests
/tests/v3_results.txt
tmp_*.cjs

# WIP 治理（2026-11-27）：本地校验/编排/诊断生成物，不入库
**/target-verify/
_surefire_*/
docs/_kbverify/
.cache/
.slidep/
.report_idx_*
docs/tdd/orchestration/report-*.md
cfc-frontend/scripts/tmp_*.py
