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:
2026-07-19 20:47:09 +01:00
parent f85876350e
commit ba911ae8cb
50 changed files with 3186 additions and 305 deletions
+2 -2
View File
@@ -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.