mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-31 03:41:51 +00:00
refactor: move memory tooling into memory-core extension
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user