feat(kernel): agent_get 返回值扩展 UserProfile 字段
- AgentInfo 增加 user_profile: Option<Value> (serde default) - SqliteStorage 增加 pool() getter - agent_get 命令查询 UserProfileStore 填充 user_profile - 前端 AgentInfo 类型同步更新 复用已有 UserProfileStore,不新增 Tauri 命令。
This commit is contained in:
@@ -41,6 +41,11 @@ pub(crate) struct MemoryRow {
|
||||
}
|
||||
|
||||
impl SqliteStorage {
|
||||
/// Get a reference to the underlying connection pool
|
||||
pub fn pool(&self) -> &SqlitePool {
|
||||
&self.pool
|
||||
}
|
||||
|
||||
/// Create a new SQLite storage at the given path
|
||||
pub async fn new(path: impl Into<PathBuf>) -> Result<Self> {
|
||||
let path = path.into();
|
||||
|
||||
Reference in New Issue
Block a user