MCPcopy Create free account
hub / github.com/acking-you/static_flow / build_summary

Function build_summary

crates/cli/src/commands/sync_notes.rs:588–601  ·  view source on GitHub ↗
(content: &str)

Source from the content-addressed store, hash-verified

586}
587
588fn build_summary(content: &str) -> String {
589 let compact = content
590 .lines()
591 .map(str::trim)
592 .filter(|line| !line.is_empty())
593 .collect::<Vec<_>>()
594 .join(" ");
595 let summary = compact.chars().take(180).collect::<String>();
596 if summary.trim().is_empty() {
597 "No summary available".to_string()
598 } else {
599 summary
600 }
601}
602
603fn is_local_image_path(path: &str) -> bool {
604 !(path.starts_with("http://")

Callers 1

sync_notesFunction · 0.85

Calls 2

trimMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected