forked from rtk-ai/rtk
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconstants.rs
More file actions
17 lines (16 loc) · 1020 Bytes
/
Copy pathconstants.rs
File metadata and controls
17 lines (16 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Canonical on-disk directory segment used under the user config dir
/// (`~/.config/<RTK_DATA_DIR>`) and data dir (`~/.local/share/<RTK_DATA_DIR>`).
/// Renamed from the legacy `rtk`; see `core::path_migrate` for the move.
pub const RTK_DATA_DIR: &str = "ctxcrl";
pub const HISTORY_DB: &str = "history.db";
pub const CONFIG_TOML: &str = "config.toml";
pub const FILTERS_TOML: &str = "filters.toml";
pub const TRUSTED_FILTERS_JSON: &str = "trusted_filters.json";
pub const DEFAULT_HISTORY_DAYS: i64 = 90;
/// #208: the host (Claude Code) truncates a Bash command's output before it
/// reaches the model, so contextcrawler's "effective" savings cap each
/// command's raw input at this many estimated tokens — the counterfactual the
/// model would truly have ingested. Claude Code's default Bash output limit is
/// ~30_000 characters, ~7_500 tokens at contextcrawler's chars/4 estimate.
/// Override via `[tracking] host_truncation_tokens` in config.toml.
pub const DEFAULT_HOST_TRUNCATION_TOKENS: usize = 7_500;