Skip to main content

Module provenance

Module provenance 

Source
Expand description

Provenance types for tracking conversation origins.

This module defines the data model for tracking where conversations come from. These types are used throughout cass: storage, indexing, search, CLI, TUI.

§Key Types

  • SourceKind: The type of source (local, SSH, etc.)
  • Source: A registered source in the system (stored in SQLite)
  • Origin: Per-conversation provenance metadata

§Example

use coding_agent_search::sources::provenance::{Origin, SourceKind, LOCAL_SOURCE_ID};

// Create origin for a local conversation
let local_origin = Origin::local();
assert_eq!(local_origin.source_id, LOCAL_SOURCE_ID);

// Create origin for a remote conversation
let remote_origin = Origin::remote("work-laptop");
assert!(remote_origin.is_remote());

Structs§

Origin
Per-conversation provenance metadata.
Source
A registered source in the system.

Enums§

SourceFilter
Filter for searching by source.
SourceKind
The kind/type of a source.

Constants§

LOCAL_SOURCE_ID
The default source ID for local conversations.