Expand description
Remote cass indexing via SSH.
This module provides functionality to trigger cass index on remote machines
after installation, ensuring session data is ready to sync.
§Why This Matters
Syncing works by pulling from the remote’s indexed data. If the remote has
never run cass index, there’s nothing meaningful to sync. This module
ensures remotes are indexed before attempting sync.
§Example
ⓘ
use coding_agent_search::sources::index::{RemoteIndexer, IndexProgress};
use coding_agent_search::sources::probe::HostProbeResult;
// Check if indexing is needed
if RemoteIndexer::needs_indexing(&probe_result) {
let indexer = RemoteIndexer::new("laptop", 600);
indexer.run_index(|progress| {
println!("{}: {}", progress.stage, progress.message);
})?;
}Structs§
- Index
Progress - Progress update during indexing.
- Index
Result - Result of a successful indexing operation.
- Remote
Artifact Manifest Result - Result of writing a remote lexical artifact evidence manifest.
- Remote
Indexer - Indexer for triggering cass index on remote machines.
Enums§
- Index
Error - Errors that can occur during remote indexing.
- Index
Stage - Current stage of indexing.
Constants§
- DEFAULT_
INDEX_ TIMEOUT_ SECS - Default SSH connection timeout for index commands.
- INDEX_
POLL_ INTERVAL_ SECS - Poll interval when waiting for long-running index.
- MAX_
INDEX_ WAIT_ SECS - Maximum wait time for indexing (30 minutes for large histories).