ah-cli 0.3.0

Agent History Search - cross-agent session full-text search CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::collections::BTreeMap;
use std::path::PathBuf;

use crate::cli::Field;

#[derive(Debug, Clone)]
pub struct Session {
    /// Local sessions: absolute filesystem path. Remote sessions (from
    /// `--remote`): the value is `"<remote_name>:<absolute_remote_path>"`,
    /// which is NOT a valid local path — never pass it to `metadata()` /
    /// `read_to_string()` / etc. Read `Field::Path` for display, and route
    /// through `remote::parse_remote_path` before any filesystem access.
    pub path: PathBuf,
    pub fields: BTreeMap<Field, String>,
}