YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix windows pipe
Louis Beaumontcdf0a826033d
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 32d5f5fd0..ae88dfdd1 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -53,6 +53,21 @@ We follow [this](https://doc.rust-lang.org/cargo/guide/project-layout.html) fold## Additional Notes+### AI system prompt++i use cursor with this prompt to help me with the code:++```+Rules:+- Coding: Rust: always use anyhow error, tokio instead of std stuff, avoid mutex if you can, prefer channels, write code easy to read for humans, fast for machines+- Coding: when i ask to give me the full code it means FULL, no fucking // rest of the code comments GIVE ME THE FULL CODE+- Coding: if it seems like you lack some context about a niche lib just ask me to provide the source code and i will (instead of providing a bad answer)+- Coding: NextJS: make sure to use tailwind, typescript, shadcn, lucide, magicui, and framer-motion to make UIs amazing+- Coding: Make sure to escape html thing like quotes etc properly. Only when necessary+- Coding: When writing react or html code make sure to use thing like ' instead of ". Only when necessary (e.g inside quote themselves)+```++### Principles- **User fanatic: focus on building what people want and making users happy.**diff --git a/screenpipe-core/src/pipes.rs b/screenpipe-core/src/pipes.rsindex 0ddbad9d7..5f068956f 100644--- a/screenpipe-core/src/pipes.rs+++ b/screenpipe-core/src/pipes.rs@@ -401,7 +401,8 @@ mod pipes {let client = Client::new();match parsed_url.host_str() {Some("github.com") => {- let api_url = get_raw_github_url(source)?;+ let api_url = get_raw_github_url(source)+ .map_err(|e| anyhow::anyhow!("Failed to parse GitHub URL: {}", e))?;download_github_folder(&client, &api_url, screenpipe_dir).await}Some("raw.githubusercontent.com") => {diff --git a/screenpipe-server/src/pipe_manager.rs b/screenpipe-server/src/pipe_manager.rsindex 0fcd65050..6bce8571d 100644--- a/screenpipe-server/src/pipe_manager.rs+++ b/screenpipe-server/src/pipe_manager.rs@@ -126,7 +126,10 @@ impl PipeManager {}pub async fn download_pipe(&self, url: &str) -> Result<String> {- let pipe_dir = download_pipe(url, self.screenpipe_dir.clone()).await?;+ // Remove any surrounding quotes and normalize backslashes+ let normalized_url = url.trim_matches('"').replace("\\", "/");++ let pipe_dir = download_pipe(&normalized_url, self.screenpipe_dir.clone()).await?;Ok(pipe_dir.file_name().unwrap().to_string_lossy().into_owned())}}