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(ci): add missing trigger and session_path fields to test structs
Louis Beaumontcb695cdb9a47
diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rsindex 1733828ec..64ae5032a 100644--- a/crates/screenpipe-core/src/pipes/mod.rs+++ b/crates/screenpipe-core/src/pipes/mod.rs@@ -3914,6 +3914,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,};let body = "Do something useful";let serialized = serialize_pipe(&config, body).unwrap();@@ -4052,6 +4053,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,};let prompt = render_prompt_with_port(&config, "body text", 3031, None, None);// User prompt contains time range and the "Execute" instruction@@ -4081,6 +4083,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,};let sys = render_pipe_system_prompt("hello", 3030, None);assert!(sys.contains("http://localhost:3030"));@@ -4103,6 +4106,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,};let sys = render_pipe_system_prompt("body text", 3030, Some("You are a helpful assistant"));assert!(sys.starts_with("You are a helpful assistant\n\n"));@@ -4127,6 +4131,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,};let sys = render_pipe_system_prompt("body text", 3030, None);assert!(!sys.contains("System prompt:"));@@ -4153,6 +4158,7 @@ mod tests {error_type: None,error_message: None,duration_ms: Some(60000),+ session_path: None,};let json = serde_json::to_string(&exec).unwrap();let parsed: PipeExecution = serde_json::from_str(&json).unwrap();@@ -4196,6 +4202,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,},last_run: None,last_success: None,diff --git a/crates/screenpipe-core/src/pipes/permissions.rs b/crates/screenpipe-core/src/pipes/permissions.rsindex 5cbad934d..49cd359d2 100644--- a/crates/screenpipe-core/src/pipes/permissions.rs+++ b/crates/screenpipe-core/src/pipes/permissions.rs@@ -866,6 +866,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,config: std::collections::HashMap::new(),};let perms = PipePermissions::from_config(&config);@@ -890,6 +891,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,config: std::collections::HashMap::new(),};let perms = PipePermissions::from_config(&config);@@ -926,6 +928,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,config: std::collections::HashMap::new(),};let perms = PipePermissions::from_config(&config);@@ -975,6 +978,7 @@ mod tests {source_slug: None,installed_version: None,source_hash: None,+ trigger: None,config: std::collections::HashMap::new(),};let perms = PipePermissions::from_config(&config);