Added artifact_postgres_export.sh to automate exporting code artifacts from Open WebUI chat conversations stored in PostgreSQL. Features: - Direct PostgreSQL database access via Docker exec - Remote server support via SSH (--remote flag) - Automatic filename detection from markdown headers - Directory structure preservation (src/main.rs, src/parser/mod.rs, etc.) - Safety checks: UUID validation, empty directory check (--force override) - Colored terminal output with verbose mode - Smart code block extraction with language detection - Support for 20+ file extensions (Rust, Python, JS, YAML, etc.) - No metadata file pollution in output directory Usage: artifact_postgres_export.sh [OPTIONS] <chat_id> <output_dir> Example: artifact_postgres_export.sh --remote vps e135d74e-5b43-4b24-a651-e999f103942b ~/Projects/rust/piglet Updated README.md with comprehensive documentation including: - Full option reference - Usage examples - Feature list 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
8.3 KiB
Executable File
8.3 KiB
Executable File