@@ -20,12 +20,21 @@ const resolveCommandSecretRefsViaGateway = vi.hoisted(() =>
2020 } ) ) ,
2121) ;
2222
23- vi . mock ( "./api.js" , async ( importOriginal ) => {
24- const actual = await importOriginal < typeof import ( "./api.js" ) > ( ) ;
23+ vi . mock ( "openclaw/plugin-sdk/memory-core-host-runtime-core" , async ( importOriginal ) => {
24+ const actual =
25+ await importOriginal < typeof import ( "openclaw/plugin-sdk/memory-core-host-runtime-core" ) > ( ) ;
2526 return {
2627 ...actual ,
2728 loadConfig,
2829 resolveDefaultAgentId,
30+ } ;
31+ } ) ;
32+
33+ vi . mock ( "openclaw/plugin-sdk/memory-core-host-runtime-cli" , async ( importOriginal ) => {
34+ const actual =
35+ await importOriginal < typeof import ( "openclaw/plugin-sdk/memory-core-host-runtime-cli" ) > ( ) ;
36+ return {
37+ ...actual ,
2938 resolveCommandSecretRefsViaGateway,
3039 } ;
3140} ) ;
@@ -39,13 +48,14 @@ vi.mock("./runtime-api.js", async (importOriginal) => {
3948} ) ;
4049
4150let registerMemoryCli : typeof import ( "./cli.js" ) . registerMemoryCli ;
42- let defaultRuntime : typeof import ( "./api.js " ) . defaultRuntime ;
43- let isVerbose : typeof import ( "./api.js " ) . isVerbose ;
44- let setVerbose : typeof import ( "./api.js " ) . setVerbose ;
51+ let defaultRuntime : typeof import ( "openclaw/plugin-sdk/memory-core-host-runtime-cli " ) . defaultRuntime ;
52+ let isVerbose : typeof import ( "openclaw/plugin-sdk/memory-core-host-runtime-cli " ) . isVerbose ;
53+ let setVerbose : typeof import ( "openclaw/plugin-sdk/memory-core-host-runtime-cli " ) . setVerbose ;
4554
4655beforeAll ( async ( ) => {
4756 ( { registerMemoryCli } = await import ( "./cli.js" ) ) ;
48- ( { defaultRuntime, isVerbose, setVerbose } = await import ( "./api.js" ) ) ;
57+ ( { defaultRuntime, isVerbose, setVerbose } =
58+ await import ( "openclaw/plugin-sdk/memory-core-host-runtime-cli" ) ) ;
4959} ) ;
5060
5161beforeEach ( ( ) => {
0 commit comments