Clean up unused imports, dead code, and compiler warnings
Remove unused StoreView imports, unused store imports, dead install_default_file, dead make_report_slug, dead fact-mine/ experience-mine spawning loops in daemon. Fix mut warnings. Zero compiler warnings now.
This commit is contained in:
parent
6932e05b38
commit
7a24d84ce3
11 changed files with 11 additions and 82 deletions
|
|
@ -18,24 +18,6 @@ use std::path::PathBuf;
|
|||
// Agent execution
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
/// Extract a short slug from agent output for human-readable report keys.
|
||||
fn make_report_slug(output: &str) -> String {
|
||||
let line = output.lines()
|
||||
.map(|l| l.trim())
|
||||
.find(|l| !l.is_empty() && !l.starts_with('#') && !l.starts_with("```") && !l.starts_with("---"))
|
||||
.unwrap_or("");
|
||||
let clean: String = line.replace("**", "").replace('*', "");
|
||||
let filtered: String = clean.chars()
|
||||
.map(|c| if c.is_alphanumeric() || c == ' ' || c == '-' { c } else { ' ' })
|
||||
.collect();
|
||||
let slug: String = filtered.split_whitespace()
|
||||
.take(6)
|
||||
.collect::<Vec<_>>()
|
||||
.join("-")
|
||||
.to_lowercase();
|
||||
if slug.len() > 60 { slug[..60].to_string() } else { slug }
|
||||
}
|
||||
|
||||
/// Result of running a single agent.
|
||||
pub struct AgentResult {
|
||||
pub output: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue