MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / preview

Function preview

libatomic/src/daemon/services_agent.rs:335–338  ·  view source on GitHub ↗

One-line preview of a body (first 160 chars, newlines collapsed).

(body: &str)

Source from the content-addressed store, hash-verified

333
334 /// One-line preview of a body (first 160 chars, newlines collapsed).
335 fn preview(body: &str) -> String {
336 let flat: String = body.split_whitespace().collect::<Vec<_>>().join(" ");
337 truncate_chars(&flat, 160)
338 }
339
340 /// Gather candidate memory nodes from all seeds: an intent's terms and
341 /// graph neighbors, file neighbors, keyword search, body-term matches.

Callers

nothing calls this directly

Calls 1

truncate_charsFunction · 0.70

Tested by

no test coverage detected