feat: upload images to tasks (#500)

* upload images to tasks

* dislpay image path as markdown; remove redundant code; add cleanup

* support svg

* remove unused

* copy images into worktree directories

* shared

* address review

* fmt
This commit is contained in:
Gabriel Gordon-Hall
2025-08-20 11:54:32 +01:00
committed by GitHub
parent 8120f94633
commit d55b7165f2
39 changed files with 1672 additions and 418 deletions

View File

@@ -1,5 +1,8 @@
use std::path::{Path, PathBuf};
/// Directory name for storing images in worktrees
pub const VIBE_IMAGES_DIR: &str = ".vibe-images";
/// Convert absolute paths to relative paths based on worktree path
/// This is a robust implementation that handles symlinks and edge cases
pub fn make_path_relative(path: &str, worktree_path: &str) -> String {