Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
chore: neutralize the serpro realm in OIDC examples + drop a dead error variant
Djalma Júnior90fbedd51962
diff --git a/crates/ai-memory-cli/src/cli.rs b/crates/ai-memory-cli/src/cli.rsindex fc6cdf5b..1ccb3c90 100644--- a/crates/ai-memory-cli/src/cli.rs+++ b/crates/ai-memory-cli/src/cli.rs@@ -298,7 +298,7 @@ pub struct AuthLoginArgs {#[arg(long)]pub client_id: Option<String>,/// OIDC issuer URL for `oidc-device` login, e.g. a Keycloak realm- /// (`https://keycloak.example.com/realms/serpro`). Endpoints are+ /// (`https://keycloak.example.com/realms/ai-memory`). Endpoints are/// discovered from `<issuer>/.well-known/openid-configuration`.#[arg(long)]pub issuer: Option<String>,diff --git a/crates/ai-memory-llm/src/error.rs b/crates/ai-memory-llm/src/error.rsindex 5e88e5ea..3cb987d2 100644--- a/crates/ai-memory-llm/src/error.rs+++ b/crates/ai-memory-llm/src/error.rs@@ -42,10 +42,6 @@ pub enum LlmError {/// JSON schema for structured output could not be derived.#[error("schema: {0}")]Schema(String),-- /// Operation exhausted its retry budget.- #[error("retries exhausted: {0}")]- RetriesExhausted(String),}impl From<serde_json::Error> for LlmError {diff --git a/crates/ai-memory-llm/src/oidc.rs b/crates/ai-memory-llm/src/oidc.rsindex 54883c9f..25638ff4 100644--- a/crates/ai-memory-llm/src/oidc.rs+++ b/crates/ai-memory-llm/src/oidc.rs@@ -356,9 +356,9 @@ mod tests {access: SecretString::from("access-x".to_string()),refresh: SecretString::from("refresh-y".to_string()),expires_at_ms: now_ms() + 3_600_000,- issuer: "https://kc.example.com/realms/serpro".to_string(),+ issuer: "https://kc.example.com/realms/ai-memory".to_string(),client_id: "ai-memory-dev".to_string(),- token_endpoint: "https://kc.example.com/realms/serpro/protocol/openid-connect/token"+ token_endpoint: "https://kc.example.com/realms/ai-memory/protocol/openid-connect/token".to_string(),}}@@ -375,7 +375,7 @@ mod tests {assert_eq!(loaded.client_id, "ai-memory-dev");assert_eq!(loaded.token_endpoint,- "https://kc.example.com/realms/serpro/protocol/openid-connect/token"+ "https://kc.example.com/realms/ai-memory/protocol/openid-connect/token");}