Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.15.3"
version = "0.15.4"
edition = "2021"
license = "MIT"
authors = ["TerminallyLazy"]
Expand Down
4 changes: 2 additions & 2 deletions crates/tree-ring-memory-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 24 additions & 2 deletions crates/tree-ring-memory-cli/src/activation/adapters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down