refactor: modularize plugin runtime and test hooks

This commit is contained in:
Peter Steinberger
2026-03-03 02:06:50 +00:00
parent f77f1d3800
commit 0fd77c9856
15 changed files with 812 additions and 619 deletions

View File

@@ -0,0 +1,11 @@
import { createMemoryGetTool, createMemorySearchTool } from "../../agents/tools/memory-tool.js";
import { registerMemoryCli } from "../../cli/memory-cli.js";
import type { PluginRuntime } from "./types.js";
export function createRuntimeTools(): PluginRuntime["tools"] {
return {
createMemoryGetTool,
createMemorySearchTool,
registerMemoryCli,
};
}