# ==========================================
# 1. API KEYS & CREDENTIALS (STRICT IGNORE)
# ==========================================
.openclaw/openclaw.json
.openclaw/agents/*
!.openclaw/agents/.gitkeep
.openclaw/credentials/*
!.openclaw/credentials/.gitkeep
.openclaw/*.bak*
.openclaw/*.clobbered*

# ==========================================
# 2. RUNTIME CACHE & TRASH
# ==========================================
.openclaw/telegram/*
!.openclaw/telegram/.gitkeep
.openclaw/identity/*
!.openclaw/identity/.gitkeep
.openclaw/completions/*
!.openclaw/completions/.gitkeep
.openclaw/canvas/*
!.openclaw/canvas/.gitkeep
.openclaw/update-check.json

# ==========================================
# 3. WORKSPACE ISOLATION (GIỮ KHUNG SƯỜN)
# ==========================================
.openclaw/workspace/memory/*
!.openclaw/workspace/memory/.gitkeep

.openclaw/workspace/logs/*
!.openclaw/workspace/logs/.gitkeep

.openclaw/logs/*
!.openclaw/logs/.gitkeep

.openclaw/cache/*
!.openclaw/cache/.gitkeep

.openclaw/workspace/docs/superpowers/*
!.openclaw/workspace/docs/superpowers/.gitkeep

.openclaw/workspace/projects/*
!.openclaw/workspace/projects/.gitkeep

.openclaw/workspace/.clawhub/*
!.openclaw/workspace/.clawhub/.gitkeep

.openclaw/workspace/package-lock.json

# ==========================================
# 4. HARDWARE & GATEWAY STATES
# ==========================================
.openclaw/devices/*
!.openclaw/devices/.gitkeep

.openclaw/gateway/pending.json
.openclaw/gateway/sessions.db

# ==========================================
# 5. ENVIRONMENT VARIABLES
# ==========================================
.env

.idea