Commit Graph

13 Commits

Author SHA1 Message Date
7d35471973 fix: also fix find_model_files to use sys.argv
- Apply same sys.argv pattern to find_model_files function
- Ensures all Python heredocs avoid bash interpolation issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 16:09:11 +01:00
02b7bedafb fix: pass arguments to Python via sys.argv instead of heredoc interpolation
- Use `python3 <<HEREDOC - "$arg1" "$arg2"` pattern
- Avoids bash variable substitution issues in heredoc
- Fixes hanging issue where parse_yaml was silently failing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 16:07:54 +01:00
a52c5979a3 fix: initialize HF_TOKEN before checking if empty
- Initialize HF_TOKEN="${HF_TOKEN:-}" before conditional checks
- Fixes "unbound variable" error with set -euo pipefail

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 16:05:12 +01:00
a59413c021 fix: check multiple locations for .env file
- Try PROJECT_ROOT/ai/.env first
- Fallback to PROJECT_ROOT/.env
- Fallback to /workspace/ai/.env
- Fixes HF_TOKEN loading on RunPod

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 16:04:20 +01:00
c1c4052054 fix: correct HuggingFace cache path detection
- Check for models in cache_dir/models--xxx--yyy/ first
- Fallback to cache_dir/hub/models--xxx--yyy/ for compatibility
- Fixes issue where script couldn't find downloaded models

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 16:02:38 +01:00
272957dae4 feat: add arty notes command with markdown rendering support
Adds 'arty notes' command to display project notes from arty.yml with beautiful markdown rendering. Features include:

- Reads 'notes' field from arty.yml
- Supports full markdown syntax (headers, bold, italic, code blocks, links, lists)
- Smart rendering fallbacks: glow → mdcat → python3 → plain text
- Beautiful terminal output with colors and formatting
- ANSI escape codes for syntax highlighting
- Horizontal separators for code blocks

Also renamed arty.sh to artifact_git_download.sh for better clarity.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 02:44:33 +01:00
a310a08e15 feat: add ComfyUI symlink functionality and subcommands
Adds subcommand structure (download, link, both) to the ComfyUI downloader script, allowing users to download models from HuggingFace and/or create symlinks to ComfyUI model directories. Features include:

- New subcommands: download (download only), link (symlink only), both (default)
- ComfyUI directory configuration (--comfyui-dir, default: ~/ComfyUI/models)
- Smart symlink creation to appropriate ComfyUI subdirectories (checkpoints, vae, loras, controlnet, upscale_models, etc.)
- YAML configuration extended with 'type' and 'filename' fields for precise model organization
- Automatic ComfyUI subdirectory creation
- Graceful handling of existing symlinks and files
- HF_TOKEN validation only when needed (download/both commands)
- Example configuration file (comfyui_models.example.yaml) demonstrating proper setup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 02:20:46 +01:00
394432ac7d feat: add ComfyUI HuggingFace model downloader script
Adds artifact_comfyui_download.sh for downloading AI models from HuggingFace with configuration-driven approach, beautiful CLI output, and flexible options. Features include optional YAML configuration, customizable cache directory (defaults to ~/.cache/huggingface), HF_TOKEN support, and robust error handling.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 02:13:07 +01:00
2c19c1ea9a fix: resolve sporadic environment variable loading in arty.sh
- Fix race condition in load_env_vars() caused by process substitution
- Replace unreliable `< <(yq eval ...)` with stable variable capture
- Ensure environment variables are consistently loaded on every execution
- Add yq binary (mikefarah/yq v4.48.1) for reliable YAML parsing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-13 18:18:48 +01:00
3c456698e1 feat: add combined arty.sh and update documentation
- Add arty.sh: combined repository and release management system
  - Repository management (install, deps, list, remove, init, source, exec)
  - Release cycle management (release, version, bump, changelog, tag)
  - Git hooks support (install, uninstall, create)
  - Monorepo management (list, version, bump, status, exec)
- Update README.md: add arty.sh documentation and remove GIF references
- Remove docs/img directory containing animated GIF demos

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 17:08:48 +01:00
54c4bef7f2 feat: add Open WebUI PostgreSQL code export script
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>
2025-11-09 01:33:19 +01:00
e93c7d917e Fix doc_rust_generate.sh script execution and add theme-specific CSS selectors
Fixed critical bugs preventing script execution:
- Fixed verbose() function return code causing exit with set -e
- Fixed check_dependencies() missing return 0
- Removed spinner that was hanging with set -euo pipefail
- Added progress messages for cargo doc execution

Enhanced CSS theming:
- Wrapped CSS variables in :root[data-theme="dark"] selector
- Added :root[data-theme="light"] variant with inverted colors
- Higher specificity to override rustdoc default rules
- Light theme uses lighter backgrounds and darker text for proper contrast

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 03:43:41 +01:00
a71eef9006 Add utility scripts collection with auto-generated documentation
This commit introduces a comprehensive collection of utility scripts for shell
automation, color manipulation, and documentation generation:

Core Scripts:
- artifact_github_download.sh: Download GitHub Action artifacts via CLI
- css_color_filter.sh: Generate CSS filter values using SPSA algorithm
- css_color_palette.sh: Generate comprehensive color palettes (monochromatic, triadic, etc.)
- css_json_convert.sh: Convert CSS variables to JSON/YAML formats
- doc_bash_generate.sh: Auto-generate README.md with animated GIF demos
- doc_rust_generate.sh: Generate Rust project documentation
- jinja_template_render.sh: Render Jinja2 templates from CLI
- mime_mp4_gif.sh: Convert MP4 videos to GIF format

Documentation Features:
- Comprehensive README.md with table of contents
- 8 animated GIF demos showing real command examples
- Sandboxed demo execution in temporary directories
- 15-second timeout protection for intensive computations
- Automatic example extraction from --help output

Technical Implementation:
- Pure bash color utilities using only bc for arithmetic
- tput-based color codes for portability
- IFS-safe string parsing using parameter expansion
- Stdout/stderr isolation to prevent contamination
- Base64 encoding for multi-line text preservation

All scripts include detailed --help documentation with usage examples.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 03:10:19 +01:00