diff --git a/Cargo.lock b/Cargo.lock index f76ff73..eab3cc5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1690,7 +1690,7 @@ checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" [[package]] name = "tree-ring-memory-cli" -version = "0.15.3" +version = "0.15.4" dependencies = [ "chrono", "clap", @@ -1709,7 +1709,7 @@ dependencies = [ [[package]] name = "tree-ring-memory-core" -version = "0.15.3" +version = "0.15.4" dependencies = [ "chrono", "libc", @@ -1725,7 +1725,7 @@ dependencies = [ [[package]] name = "tree-ring-memory-sqlite" -version = "0.15.3" +version = "0.15.4" dependencies = [ "rusqlite", "serde", diff --git a/Cargo.toml b/Cargo.toml index 8de24e2..a7a45ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ resolver = "2" [workspace.package] -version = "0.15.3" +version = "0.15.4" edition = "2021" license = "MIT" authors = ["TerminallyLazy"] diff --git a/crates/tree-ring-memory-cli/Cargo.toml b/crates/tree-ring-memory-cli/Cargo.toml index aaef226..ad2df87 100644 --- a/crates/tree-ring-memory-cli/Cargo.toml +++ b/crates/tree-ring-memory-cli/Cargo.toml @@ -26,8 +26,8 @@ semver.workspace = true sha2.workspace = true tempfile.workspace = true uuid.workspace = true -tree-ring-memory-core = { path = "../tree-ring-memory-core", version = "0.15.3" } -tree-ring-memory-sqlite = { path = "../tree-ring-memory-sqlite", version = "0.15.3" } +tree-ring-memory-core = { path = "../tree-ring-memory-core", version = "0.15.4" } +tree-ring-memory-sqlite = { path = "../tree-ring-memory-sqlite", version = "0.15.4" } [dev-dependencies] rusqlite.workspace = true diff --git a/crates/tree-ring-memory-cli/src/activation/adapters.rs b/crates/tree-ring-memory-cli/src/activation/adapters.rs index 0687a6d..fd28f7f 100644 --- a/crates/tree-ring-memory-cli/src/activation/adapters.rs +++ b/crates/tree-ring-memory-cli/src/activation/adapters.rs @@ -15,8 +15,12 @@ pub const AGENT_ZERO_PLUGIN_MANIFEST_ENV: &str = "TREE_RING_AGENT_ZERO_PLUGIN_MA const AGENT_ZERO_CAPABILITY_FILE: &str = "activation-capability.json"; const AGENT_ZERO_CAPABILITY_KIND: &str = "tree-ring-agent-zero-plugin-capability"; -const AGENT_ZERO_CAPABILITY_CONTRACTS: &[(&str, &str, &str)] = - &[("3.1.0", "0.14.0", "0.14"), ("3.2.0", "0.15.3", "0.15")]; +const AGENT_ZERO_CAPABILITY_CONTRACTS: &[(&str, &str, &str)] = &[ + ("3.1.0", "0.14.0", "0.14"), + ("3.2.0", "0.15.3", "0.15"), + ("3.3.0", "0.15.3", "0.15"), + ("3.3.1", "0.15.3", "0.15"), +]; const MAX_AGENT_ZERO_CAPABILITY_BYTES: u64 = 16 * 1024; /// Project paths used by activation. Adapter plans always target this root. @@ -1113,6 +1117,24 @@ mod tests { Some(AgentZeroPluginManifest::compatible()) ); + fs::write( + plugin.join("plugin.yaml"), + "name: tree_ring_memory\nversion: 3.3.1\n", + ) + .unwrap(); + fs::write( + &descriptor, + capability_document(true).replace( + "\"plugin_version\":\"3.2.0\"", + "\"plugin_version\":\"3.3.1\"", + ), + ) + .unwrap(); + assert_eq!( + read_agent_zero_plugin_manifest(&project, &descriptor), + Some(AgentZeroPluginManifest::compatible()) + ); + fs::write( plugin.join("plugin.yaml"), "name: tree_ring_memory\nversion: 3.1.0\n", diff --git a/crates/tree-ring-memory-cli/tests/harness_activation_acceptance.rs b/crates/tree-ring-memory-cli/tests/harness_activation_acceptance.rs index 0a8606e..1154bc1 100644 --- a/crates/tree-ring-memory-cli/tests/harness_activation_acceptance.rs +++ b/crates/tree-ring-memory-cli/tests/harness_activation_acceptance.rs @@ -918,13 +918,13 @@ fn install_agent_zero_plugin(base: &Path) -> PathBuf { fs::create_dir_all(&plugin).unwrap(); fs::write( plugin.join("plugin.yaml"), - "name: tree_ring_memory\nversion: 3.2.0\n", + "name: tree_ring_memory\nversion: 3.3.1\n", ) .unwrap(); let descriptor = plugin.join("activation-capability.json"); fs::write( &descriptor, - r#"{"schema_version":1,"kind":"tree-ring-agent-zero-plugin-capability","plugin_id":"tree_ring_memory","plugin_version":"3.2.0","activation_protocol_version":1,"tree_ring_version":{"min":"0.15.3","minor":"0.15"},"enabled":true}"#, + r#"{"schema_version":1,"kind":"tree-ring-agent-zero-plugin-capability","plugin_id":"tree_ring_memory","plugin_version":"3.3.1","activation_protocol_version":1,"tree_ring_version":{"min":"0.15.3","minor":"0.15"},"enabled":true}"#, ) .unwrap(); descriptor