feat(plugins): share native session handoff and soften memory search
This commit is contained in:
@@ -42,6 +42,14 @@ function createPluginApi(registrationMode?: string) {
|
||||
}
|
||||
|
||||
describe("plugin registration modes", () => {
|
||||
it("registers the explicit native handoff command", () => {
|
||||
const api = createPluginApi();
|
||||
memoryPlugin.register(api as any);
|
||||
expect(api.registerCommand).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ name: "mem0-handoff" }),
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps cli-metadata registration free of runtime side effects", () => {
|
||||
const api = createPluginApi("cli-metadata");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user