df7cd065da
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.
15 lines
736 B
TypeScript
15 lines
736 B
TypeScript
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");
|
|
});
|
|
});
|