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
passing full text search of chunked_text into search results
matthew-heartful292c587b8581
diff --git a/screenpipe-server/src/server.rs b/screenpipe-server/src/server.rsindex df972e2ae..7ebe3e76d 100644--- a/screenpipe-server/src/server.rs+++ b/screenpipe-server/src/server.rs@@ -94,6 +94,7 @@ struct PaginationInfo {pub(crate) enum ContentItem {OCR(OCRContent),Audio(AudioContent),+ FTS(FTSContent),}#[derive(Serialize)]@@ -115,6 +116,17 @@ pub(crate) struct AudioContent {offset_index: i64,}+#[derive(Serialize)]+pub(crate) struct FTSContent {+ text_id: i64,+ matched_text: String,+ frame_id: i64,+ timestamp: DateTime<Utc>,+ app_name: String,+ file_path: String,+ original_frame_text: Option<String>,+}+#[derive(Serialize)]pub(crate) struct DeviceStatus {id: String,@@ -432,7 +444,7 @@ fn into_content_item(result: SearchResult) -> ContentItem {timestamp: ocr.timestamp,file_path: ocr.file_path,offset_index: ocr.offset_index,- app_name: ocr.app_name, // Add this line+ app_name: ocr.app_name,}),SearchResult::Audio(audio) => ContentItem::Audio(AudioContent {chunk_id: audio.audio_chunk_id,@@ -441,6 +453,15 @@ fn into_content_item(result: SearchResult) -> ContentItem {file_path: audio.file_path,offset_index: audio.offset_index,}),+ SearchResult::FTS(fts) => ContentItem::FTS(FTSContent {+ text_id: fts.text_id,+ matched_text: fts.matched_text,+ frame_id: fts.frame_id,+ timestamp: fts.frame_timestamp,+ app_name: fts.app_name,+ file_path: fts.video_file_path,+ original_frame_text: fts.original_frame_text,+ }),}}