Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
feat(sdk): snapshot memory_restore_page for the schema drift check
Gabriel Alencare94b5d79623d
diff --git a/companions/ai-memory-ts/README.md b/companions/ai-memory-ts/README.mdindex 704da791..5b921d64 100644--- a/companions/ai-memory-ts/README.md+++ b/companions/ai-memory-ts/README.md@@ -158,6 +158,7 @@ Not wrapped (call them with `callTool`):- `memory_auto_improve`: maintenance job that needs the server's LLM; use callTool- `memory_forget_sweep`: changes retention for a whole project; use callTool- `memory_install_self_routing`: writes coding-agent instruction files; specific to harnesses+- `memory_restore_page`: restores one page from a git checkpoint; use callTool<!-- generated:methods:end -->`callTool(name, args)` calls any tool with wire-format arguments and returnsdiff --git a/companions/ai-memory-ts/schema/tools.json b/companions/ai-memory-ts/schema/tools.jsonindex 24f371c4..dfe581a1 100644--- a/companions/ai-memory-ts/schema/tools.json+++ b/companions/ai-memory-ts/schema/tools.json@@ -772,6 +772,40 @@},"required": []},+ "memory_restore_page": {+ "properties": {+ "limit": {+ "type": [+ "integer",+ "null"+ ]+ },+ "path": {+ "type": "string"+ },+ "project": {+ "type": [+ "null",+ "string"+ ]+ },+ "rev": {+ "type": [+ "null",+ "string"+ ]+ },+ "workspace": {+ "type": [+ "null",+ "string"+ ]+ }+ },+ "required": [+ "path"+ ]+ },"memory_status": {"properties": {"project": {diff --git a/companions/ai-memory-ts/src/coverage.ts b/companions/ai-memory-ts/src/coverage.tsindex fde22054..849f0e27 100644--- a/companions/ai-memory-ts/src/coverage.ts+++ b/companions/ai-memory-ts/src/coverage.ts@@ -191,6 +191,10 @@ export const TOOL_COVERAGE: Readonly<Record<string, ToolClassification>> = {status: "not_exposed",reason: "writes coding-agent instruction files; specific to harnesses",},+ memory_restore_page: {+ status: "not_exposed",+ reason: "restores one page from a git checkpoint; use callTool",+ },};/** Convert a wire name to the SDK's camelCase argument name. */