refactor(integrations): shared agent plugin runtimes and native adapters (#7203)

This commit is contained in:
Kartik
2026-09-08 23:32:25 +05:30
committed by GitHub
parent dae67f74f5
commit 73e7b8763a
369 changed files with 31056 additions and 20464 deletions
+10 -7
View File
@@ -1,6 +1,8 @@
/**
* Tests for config.ts — mem0ConfigSchema.parse() and exported constants.
*/
import { readFileSync } from "node:fs";
import { describe, it, expect } from "vitest";
import {
mem0ConfigSchema,
@@ -8,6 +10,14 @@ import {
DEFAULT_CUSTOM_CATEGORIES,
} from "../config.ts";
describe("plugin manifest", () => {
it("matches the package version", () => {
const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
const manifest = JSON.parse(readFileSync(new URL("../openclaw.plugin.json", import.meta.url), "utf8"));
expect(manifest.version).toBe(packageJson.version);
});
});
// ---------------------------------------------------------------------------
// Exported constants
// ---------------------------------------------------------------------------
@@ -379,13 +389,6 @@ describe("mem0ConfigSchema.parse() — skills config", () => {
tokenBudget: 2000,
maxMemories: 10,
},
dream: {
enabled: true,
auto: true,
minHours: 12,
minSessions: 3,
minMemories: 15,
},
domain: "engineering",
customRules: {
include: ["tool configs"],