refactor: move memory tooling into memory-core extension

This commit is contained in:
Peter Steinberger
2026-03-26 21:58:21 +00:00
parent e0dfc776bb
commit e955d574b2
35 changed files with 136 additions and 2137 deletions

View File

@@ -19,7 +19,6 @@ import { createRuntimeEvents } from "./runtime-events.js";
import { createRuntimeLogging } from "./runtime-logging.js";
import { createRuntimeMedia } from "./runtime-media.js";
import { createRuntimeSystem } from "./runtime-system.js";
import { createRuntimeTools } from "./runtime-tools.js";
import type { PluginRuntime } from "./types.js";
const loadTtsRuntime = createLazyRuntimeModule(() => import("./runtime-tts.runtime.js"));
@@ -184,7 +183,6 @@ export function createPluginRuntime(_options: CreatePluginRuntimeOptions = {}):
listProviders: listWebSearchProviders,
search: runWebSearch,
},
tools: createRuntimeTools(),
channel: createRuntimeChannel(),
events: createRuntimeEvents(),
logging: createRuntimeLogging(),

View File

@@ -1,11 +0,0 @@
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,
};
}

View File

@@ -89,11 +89,6 @@ export type PluginRuntimeCore = {
stt: {
transcribeAudioFile: typeof import("../../media-understanding/transcribe-audio.js").transcribeAudioFile;
};
tools: {
createMemoryGetTool: typeof import("../../agents/tools/memory-tool.js").createMemoryGetTool;
createMemorySearchTool: typeof import("../../agents/tools/memory-tool.js").createMemorySearchTool;
registerMemoryCli: typeof import("../../cli/memory-cli.js").registerMemoryCli;
};
events: {
onAgentEvent: typeof import("../../infra/agent-events.js").onAgentEvent;
onSessionTranscriptUpdate: typeof import("../../sessions/transcript-events.js").onSessionTranscriptUpdate;