MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / hook_analytics_path

Function hook_analytics_path

src/hooks/mod.rs:129–138  ·  view source on GitHub ↗
(root: Option<&Path>)

Source from the content-addressed store, hash-verified

127}
128
129fn hook_analytics_path(root: Option<&Path>) -> Option<PathBuf> {
130 match root {
131 Some(root) => crate::storage::resolve_layout_for_current_profile(root)
132 .ok()
133 .map(|layout| layout.data_root.join(HOOK_ANALYTICS_FILENAME)),
134 None => crate::storage::default_profile_root()
135 .ok()
136 .map(|root| root.join(HOOK_ANALYTICS_FILENAME)),
137 }
138}
139
140fn append_private_jsonl(path: &Path, line: &str) {
141 let _ = crate::storage::PrivateStoreIo::append_line(path, line);

Callers 1

record_hook_analyticsFunction · 0.85

Calls 2

default_profile_rootFunction · 0.85

Tested by

no test coverage detected