UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

25 lines (24 loc) • 873 B
import { t as runWithLocalStateOwner } from "./local-state-owner-DTl7OHpC.mjs"; import "./cli-state-owner-DWH5gh7o.mjs"; import { t as renderMemorySearch } from "./cli-search-output-XMapu_on.mjs"; //#region extensions/memory-core/src/cli-search-owner.runtime.ts async function runMemorySearchWithOwner(e, t, n) { const r = await runWithLocalStateOwner({ method: "memory.search.owner", params: { query: e, ...t.agent !== void 0 ? { agentId: t.agent } : {}, ...t.maxResults !== void 0 ? { maxResults: t.maxResults } : {}, ...t.minScore !== void 0 ? { minScore: t.minScore } : {} }, target: "memory search", databaseEngine: "configured", runLocal: async () => { const { runMemorySearch: r } = await import("./cli.runtime.js"); await r(e, t, n); } }); if (r) renderMemorySearch(r, t.json); } //#endregion export { runMemorySearchWithOwner };