derive_slug

Function derive_slug 

Source
pub fn derive_slug(name: &str) -> String
Expand description

Derive a filesystem-safe slug from a display name. Lowercase, ASCII alphanumeric + dash/underscore, consecutive dashes collapsed, trimmed to 64 chars. Returns "agent" if the input has no valid characters (defensive fallback).