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
refactor: rename screenpipe index to screenpipe add
Louis Beaumontb9ccc1f3af87
diff --git a/content/docs/pages/docs/cli-reference.mdx b/content/docs/pages/docs/cli-reference.mdxindex a690e240c..6d66ed0e2 100644--- a/content/docs/pages/docs/cli-reference.mdx+++ b/content/docs/pages/docs/cli-reference.mdx@@ -144,7 +144,7 @@ export SCREENPIPE_CUSTOM_OCR_CONFIG='{}'# 3. run screenpipe with custom ocr-screenpipe index \+screenpipe add \path/to/videos \--ocr-engine custom \--data-dir /tmp/sp@@ -232,15 +232,15 @@ screenpipe pipe delete <ID> [-y] [--port <PORT>]screenpipe pipe purge [-y] [--port <PORT>]```-#### indexing+#### add external data to screenpipe (OCR only)-indexing allows you to add external screen recordings to screenpipe, for example it could be your iphone screen recordings, your physical journal photos, etc.+allows you to add external screen recordings to screenpipe, for example it could be your iphone screen recordings, your physical journal photos, etc.companies use this to index their product's screen recordings, for example.```bash-# index video files-screenpipe index <PATH> [--data-dir <DIR>] [--output <FORMAT>] [--pattern <REGEX>] [--ocr-engine <ENGINE>] [--metadata-override <PATH>]+# add video files+screenpipe add <PATH> [--data-dir <DIR>] [--output <FORMAT>] [--pattern <REGEX>] [--ocr-engine <ENGINE>] [--metadata-override <PATH>]```by default, screenpipe extracts metadata (fps, duration, creation time) directly from video files. however, you can override these with a metadata file:@@ -302,7 +302,7 @@ cat > metadata.json << EOFEOF# 3. run screenpipe with metadata override-screenpipe index \+screenpipe add \$HOME/Downloads/tmpvideos \--metadata-override metadata.json \--data-dir /tmp/spdiff --git a/screenpipe-server/src/index.rs b/screenpipe-server/src/add.rssimilarity index 100%rename from screenpipe-server/src/index.rsrename to screenpipe-server/src/add.rsdiff --git a/screenpipe-server/src/cli.rs b/screenpipe-server/src/cli.rsindex bda62922c..1645f809d 100644--- a/screenpipe-server/src/cli.rs+++ b/screenpipe-server/src/cli.rs@@ -298,8 +298,8 @@ pub enum Command {#[command(subcommand)]subcommand: PipeCommand,},- /// Index video files for search - DOES NOT SUPPORT AUDIO- Index {+ /// Add video files to existing screenpipe data (OCR only) - DOES NOT SUPPORT AUDIO+ Add {/// Path to folder containing video filespath: String,/// Data directory. Default to $HOME/.screenpipediff --git a/screenpipe-server/src/lib.rs b/screenpipe-server/src/lib.rsindex d8c51cbd4..432c9b847 100644--- a/screenpipe-server/src/lib.rs+++ b/screenpipe-server/src/lib.rs@@ -6,7 +6,7 @@ pub mod db;pub mod db_types;pub mod filtering;pub mod highlight;-mod index;+mod add;pub mod pipe_manager;mod plugin;mod resource_monitor;@@ -21,7 +21,7 @@ pub use cli::Cli;pub use core::start_continuous_recording;pub use db::DatabaseManager;pub use highlight::Highlight;-pub use index::handle_index_command;+pub use add::handle_index_command;pub use pipe_manager::PipeManager;pub use resource_monitor::{ResourceMonitor, RestartSignal};pub use screenpipe_core::Language;