- Fix SC2155: separate declare from assign in get_session_id(), log_session_transition(), init_session_tracking() - Use jq for safe JSON generation in reset_session() and init_session_tracking() instead of heredocs (prevents special character issues) - Add corruption tolerance to log_session_transition() with JSON validation and fallback to empty array on parse failures - Add generate_session_id() to create unique session IDs (ralph-<epoch>-<random>) - Add update_session_last_used() helper called on each loop iteration - init_session_tracking() now generates unique session_id and sets last_used - Add session files to .gitignore (.ralph_session, .ralph_session_history, .claude_session_id) All 265 tests pass.
41 lines
508 B
Text
41 lines
508 B
Text
# Ralph generated files
|
|
.call_count
|
|
.last_reset
|
|
.exit_signals
|
|
status.json
|
|
.ralph_session
|
|
.ralph_session_history
|
|
.claude_session_id
|
|
|
|
# Logs
|
|
logs/*
|
|
!logs/.gitkeep
|
|
*.log
|
|
|
|
# Generated documentation
|
|
docs/generated/*
|
|
!docs/generated/.gitkeep
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Temporary files
|
|
*.tmp
|
|
.temp/
|
|
|
|
# Node modules (if using Node.js projects)
|
|
node_modules/
|
|
|
|
# Python cache (if using Python projects)
|
|
__pycache__/
|
|
*.pyc
|
|
|
|
# Rust build (if using Rust projects)
|
|
target/
|
|
|
|
# IDE files
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|