Skip to main content

Module index

Module index 

Source
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§

IndexProgress
Progress update during indexing.
IndexResult
Result of a successful indexing operation.
RemoteArtifactManifestResult
Result of writing a remote lexical artifact evidence manifest.
RemoteIndexer
Indexer for triggering cass index on remote machines.

Enums§

IndexError
Errors that can occur during remote indexing.
IndexStage
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).