diff --git a/integrations/openclaw/marmot/README.md b/integrations/openclaw/marmot/README.md index 20cac039..a0a658e8 100644 --- a/integrations/openclaw/marmot/README.md +++ b/integrations/openclaw/marmot/README.md @@ -11,7 +11,7 @@ local Unix socket. It never opens a QUIC connection, encrypts a record, or talks to a relay — all of that stays in `wn-agent`. It is the OpenClaw counterpart of the Python Hermes plugin in [`../../hermes/marmot/`](../../hermes/marmot). -- Pinned OpenClaw SDK: **`openclaw@2026.6.8`** (`openclaw/plugin-sdk/*`). +- Pinned OpenClaw SDK: **`openclaw@2026.6.11`** (`openclaw/plugin-sdk/*`). - Toolchain: TypeScript, pnpm, Node ≥ 22.19, Vitest. ## Install (release) @@ -21,7 +21,7 @@ GitHub pre-releases. OpenClaw must already be installed with `openclaw` on `PATH Prerequisites: -- OpenClaw **2026.6.8** or compatible (this plugin pins `openclaw@2026.6.8`) +- OpenClaw **2026.6.11** or compatible (this plugin pins `openclaw@2026.6.11`) - Node ≥ 22.19 - Linux x86_64, Linux arm64, macOS Apple Silicon, or macOS Intel diff --git a/integrations/openclaw/marmot/test/readme-version.test.ts b/integrations/openclaw/marmot/test/readme-version.test.ts new file mode 100644 index 00000000..d5e78e69 --- /dev/null +++ b/integrations/openclaw/marmot/test/readme-version.test.ts @@ -0,0 +1,26 @@ +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; + +const pkg = JSON.parse( + readFileSync(new URL("../package.json", import.meta.url), "utf8"), +) as { + devDependencies?: { openclaw?: string }; +}; +const pinnedOpenClaw = pkg.devDependencies?.openclaw; +if (!pinnedOpenClaw) { + throw new Error("package.json must pin openclaw in devDependencies"); +} + +const readme = readFileSync(new URL("../README.md", import.meta.url), "utf8"); +const pinnedLabel = `openclaw@${pinnedOpenClaw}`; + +describe("README OpenClaw SDK pin", () => { + it("documents the pinned SDK version from package.json", () => { + expect(readme).toContain(`Pinned OpenClaw SDK: **\`${pinnedLabel}\`**`); + }); + + it("documents the OpenClaw prerequisite version from package.json", () => { + expect(readme).toContain(`OpenClaw **${pinnedOpenClaw}** or compatible`); + expect(readme).toContain(`this plugin pins \`${pinnedLabel}\``); + }); +});