fix(deepseek-plugin): first-turn recall, native activation, and cancel-safe recall (#7284, #7302)

Ports #7285 onto current main and adds a canDeliver() gate so a canceled recall does not mark undelivered memories as seen.

Refs #7284, #7302. Supersedes #7285.
This commit is contained in:
Himanshu-Sangshetti
2026-10-05 09:48:32 +05:30
parent abb81c88e1
commit df7cd065da
11 changed files with 313 additions and 62 deletions
@@ -0,0 +1,14 @@
import { readFileSync, existsSync } from "node:fs";
import { describe, expect, it } from "vitest";
describe("installable Harness bundle", () => {
it("ships a native activation patch and builds before packing", () => {
const root = new URL("../", import.meta.url);
const manifest = JSON.parse(readFileSync(new URL("package.json", root), "utf8"));
expect(manifest.scripts.prepack).toBe("pnpm build");
expect(manifest.dsh.bundle.patch).toBe("./cordis.patch.yml");
expect(manifest.files).toContain("cordis.patch.yml");
expect(existsSync(new URL(manifest.dsh.bundle.patch, root))).toBe(true);
expect(readFileSync(new URL(manifest.dsh.bundle.patch, root), "utf8")).toContain("@mem0/deepseek-plugin");
});
});