Commit Graph

3 Commits

Author SHA1 Message Date
bf5c150d23 fix: handle absolute paths correctly in environment variable expansion
Fixed issue where absolute paths from environment variables (like $COMFYUI_ROOT=/workspace/ComfyUI) were being treated as relative paths and prepended with the config directory.

Now checks if the expanded path is absolute (starts with /) and uses it as-is, otherwise treats it as relative to the config file directory.

Before: /home/valknar/Projects/runpod//workspace/ComfyUI
After: /workspace/ComfyUI

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 12:06:01 +01:00
d235c5241d feat: add environment variable expansion for arty deps
Adds support for environment variables like $COMFYUI_ROOT in the 'into' field of references when running 'arty deps'. Features:

- New expand_env_vars() function with nested variable expansion support
- Validates that no undefined variables remain after expansion
- Fails with clear error messages showing undefined variables
- Lists available environment variables from arty.yml in error output
- Expands variables from envs section before cloning repositories

Example usage in arty.yml:
```yaml
envs:
  default:
    COMFYUI_ROOT: /workspace/ComfyUI

references:
  - url: https://github.com/ltdrdata/ComfyUI-Manager.git
    into: $COMFYUI_ROOT/custom_nodes/ComfyUI-Manager
```

Expands to: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 10:24:37 +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