Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/// Validate the shared grammar for manifest contribution identifiers.
pub(super) fn is_contrib_id(value: &str) -> bool {
if value.is_empty() || value.len() > 64 {
return false;
}
let mut chars = value.chars();
matches!(chars.next(), Some(c) if c.is_ascii_alphabetic())
&& chars.all(|c| c.is_ascii_alphanumeric() || c == '_' || c == '-')
}