overhaul provider inventory and agent/model selection (#8652)

Signed-off-by: Bradley Axen <baxen@squareup.com>
This commit is contained in:
Bradley Axen
2026-04-20 15:00:17 -07:00
committed by GitHub
parent 3d582943fd
commit 8eda6fdabc
70 changed files with 5321 additions and 2123 deletions
+6 -1
View File
@@ -19,7 +19,7 @@ use std::sync::{Arc, LazyLock};
use tracing::{info, warn};
use utoipa::ToSchema;
pub const CURRENT_SCHEMA_VERSION: i32 = 10;
pub const CURRENT_SCHEMA_VERSION: i32 = 11;
pub const SESSIONS_FOLDER: &str = "sessions";
pub const DB_NAME: &str = "sessions.db";
@@ -717,6 +717,8 @@ impl SessionStorage {
.execute(pool)
.await?;
crate::providers::inventory::create_tables(pool).await?;
Ok(())
}
@@ -1060,6 +1062,9 @@ impl SessionStorage {
.execute(&mut **tx)
.await?;
}
11 => {
crate::providers::inventory::create_tables_in_tx(tx).await?;
}
_ => {
anyhow::bail!("Unknown migration version: {}", version);
}