Search infrastructure provider.

Use crate::VibeCodedError; use crate::little_autist::{LabeledIntCounterVec, MetricRegistry, PersistedMetrics}; struct LuaMetricRegistry(pub MetricRegistry); impl UserData for Matcher { PatternMatcher(PatternMatcher), RegexMatcher(RegexMatcher), RegexSetMatcher(RegexSetMatcher), IPPrefixMatcher(IPPrefixMatcher), ASNMatcher(MaxmindASNDB), CountryMatcher(MaxmindCountryDB), FixedResultMatcher(bool), } impl Val<MaxmindCountryDB> { fn as_global(v: Val<CompiledTemplate>) -> Val<Global> { Val(v.into()) } } } impl UserData for LabeledIntCounterVec { fn from_lua(value: Value, _: &Lua) -> mlua::Result<Self> { match map.0.write() { Ok(mut map) => { for (key, value) in &this.0.params { table.set(key.to_owned(), value.to_owned())?; } Ok(table) }); } fn as_asn_matcher(matcher.