# ============================================
# MoAI-ADK Package Distribution .gitignore
# ============================================
# Version: 0.33.0
# Updated: 2026-01-10
# Purpose: Essential patterns for user projects
# ============================================

# ===========================================
# Go Build Artifacts
# ===========================================
bin/
*.exe
*.exe~
*.dll
*.so
*.dylib
cover.out
cover.html
cpu.prof
mem.prof

# ===========================================
# Build Artifacts & Distribution
# ===========================================
build/
dist/
*.egg-info/
*.egg

# ===========================================
# Python Cache & Bytecode
# ===========================================
__pycache__/
.pytest_cache/
*.pyc
*.pyo
*.pyd
.mypy_cache/
.ruff_cache/
*.db
*.sqlite
*.sqlite3
*.rdb
*.dbm

# ===========================================
# Virtual Environments
# ===========================================
venv/
.venv/
env/
.env/
.uv_cache/
.uv-cache/

# ===========================================
# Test Coverage
# ===========================================
.coverage
coverage.json
htmlcov/

# ===========================================
# IDE & Editors
# ===========================================
.vscode/
.idea/
*.swp
*.swo
*.sw?
*~
.cursor/
*.sublime-project
*.sublime-workspace
*.njsproj
*.sln
*.suo
.#*

# ===========================================
# OS Files
# ===========================================
# Mac
.DS_Store
.AppleDouble
.LSOverride
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Windows
[Dd]esktop.ini
Thumbs.db
ehthumbs.db

# Linux
.directory

# ===========================================
# Logs & Temporary Files
# ===========================================
*.log
logs/
*.tmp
*.temp
*.bak
*.backup

# ===========================================
# Backups
# ===========================================
.moai-backups/
*.backup/
*-backup/
*_backup_*/

# ===========================================
# Secrets and Credentials (CRITICAL)
# ===========================================
# Environment files
.env
.env.*
!.env.example

# Certificate files
*.pem
*.p12
*.pfx
*.jks

# Private keys (specific patterns to avoid false positives)
# FIXED: Issue #237 - Replaced overly broad *key* and *secret* patterns
*-key.*
*_key.*
*.key.*
*-secret-key.*
*-api-key.*
api-key-*
secret-key-*
private-key*
*-secret.*
*_secret.*
*.secret.*
secret-*.*

# Credential patterns in environment files
*_secret=*
*_token=*

# Cloud provider credentials
.aws/config
.aws/credentials

# ===========================================
# Claude Code Configuration
# ===========================================
.claude/settings.local.json
.claude/settings.local.*.json
.claude/.env.local*
.claude/local/
.claude/plans/
.claude/agent-memory/
.claude/worktrees/

# Skill-specific credentials
.claude/skills/*/.env*
.claude/skills/*/secrets/
.claude/skills/*/*/*secret*
.claude/skills/*/*/*key*
.claude/skills/*/*/*token*
# Re-include legitimate skill module files containing "token" in their name
!.claude/skills/*/modules/*token*.md

# ===========================================
# Local-Only Files (never sync via git pull)
# ===========================================
.moai/status_line.sh
.moai/memory/
.moai/worktrees/

# ===========================================
# Plan Audit Reports (local artifacts)
# See SPEC-WF-AUDIT-GATE-001
# ===========================================
.moai/reports/plan-audit/*.md
!.moai/reports/plan-audit/.gitkeep

# ===========================================
# Evolution Telemetry (local-only usage data)
# Learnings and new-skills are git-tracked for team sharing.
# ===========================================
.moai/evolution/telemetry/*.jsonl
!.moai/evolution/telemetry/.gitkeep

# ===========================================
# Node.js (for docs/Nextra)
# ===========================================
node_modules/
*.tsbuildinfo
.tscache/
.next/
out/

# ===========================================
# Build Tools & Frameworks
# ===========================================
.turbo/
.nuxt/
dist-ssr/

# ===========================================
# Deployment & CI/CD
# ===========================================
.vercel/
.netlify/
.firebase/

# User Custom Patterns (preserved by moai update)
credentials.env
*.secret
*.key
CLAUDE.md
CLAUDE.local.md
.mcp.json
!moai-*/.mcp.json
.claude/
.moai/
