feat(plugins): plugin pages, per-user config, capabilities gate, mobile/telegram refactors
- Plugin HTTP routes + web pages (plugin-page-host, plugin-catalog, plugin-detail) - Plugin access grants + per-user config (DB tables + API + frontend forms) - Capabilities-based guard (caps.rs) replacing role-id checks - Mobile connector: message routing, payload types, router refactor - Telegram bot: auth flow, event handling improvements - Honcho plugin: substantial rework - Sidebar: plugin pages integration, role-driven visibility - i18n: new strings for plugins, connectors, capabilities - Remove unused mascot asset
This commit is contained in:
@@ -69,12 +69,12 @@ impl MemoryManager {
|
||||
/// Returns memory context to inject into the system prompt for the upcoming
|
||||
/// turn. Returns `None` if no backend is registered or the backend is
|
||||
/// unavailable / has nothing to say.
|
||||
pub async fn query_context(&self, session_id: i64, user_message: &str) -> Option<String> {
|
||||
pub async fn query_context(&self, user_id: &str, session_id: i64, user_message: &str) -> Option<String> {
|
||||
let backend = self.backend.read().await.clone()?;
|
||||
if !backend.is_available() {
|
||||
return None;
|
||||
}
|
||||
backend.query_context(session_id, user_message).await
|
||||
backend.query_context(user_id, session_id, user_message).await
|
||||
}
|
||||
|
||||
/// Returns the per-turn LLM tools exposed by the active backend.
|
||||
|
||||
Reference in New Issue
Block a user