mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 19:35:28 -06:00
0303af17f3
* test: remove low-value implementation assertions * test: refresh native i18n inventory
20 lines
626 B
TypeScript
20 lines
626 B
TypeScript
// Tokenjuice tests cover manifest plugin behavior.
|
|
import fs from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
type TokenjuicePluginManifest = {
|
|
contracts?: {
|
|
agentToolResultMiddleware?: string[];
|
|
};
|
|
};
|
|
|
|
describe("tokenjuice package manifest", () => {
|
|
it("declares runtime-neutral tool result middleware ownership in the manifest contract", () => {
|
|
const manifest = JSON.parse(
|
|
fs.readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"),
|
|
) as TokenjuicePluginManifest;
|
|
|
|
expect(manifest.contracts?.agentToolResultMiddleware).toEqual(["openclaw", "codex"]);
|
|
});
|
|
});
|