From 648e99f95a54a41488d7769e47b1812c9e34851c Mon Sep 17 00:00:00 2001 From: Aldrich_CC <109075336+Chen17-sq@users.noreply.github.com> Date: Sat, 16 May 2026 04:31:27 +0800 Subject: [PATCH] fix(contexto): tighten openclaw peerDependency range to >=2026.4.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `peerDependencies.openclaw` was declared as `*`, which accepts any version including ones older than the API surface this plugin actually relies on. Users on an older `openclaw` install today get no install-time warning — they hit a runtime breakage instead. The same `package.json` already pins a real minimum via `openclaw.compat.minGatewayVersion = "2026.4.5"`; align the peerDep to match so `pnpm install` (or any package manager that surfaces peer-range warnings) tells the user to upgrade BEFORE they trip the runtime error. Closes #140. Test plan --------- - `pnpm install` resolves cleanly (lockfile updated to record the new specifier; no other package's resolution changed). - `pnpm --filter @ekai/contexto run build` (tsc --noEmit) is green. - No other workspace package depends on the wildcard — verified with `grep -rn '"openclaw"' packages/ --include=package.json` (only `packages/contexto/package.json` references it). Acceptance criteria from the issue: - [x] `peerDependencies.openclaw` matches `openclaw.compat.minGatewayVersion` - [x] `pnpm install` from a clean checkout resolves cleanly - [ ] CONTRIBUTING.md note about keeping the two fields in lockstep — happy to add in a follow-up if maintainer wants it; keeping this PR scoped to the one-line behavioral fix. --- packages/contexto/package.json | 2 +- pnpm-lock.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/contexto/package.json b/packages/contexto/package.json index 3394751..d853030 100644 --- a/packages/contexto/package.json +++ b/packages/contexto/package.json @@ -35,7 +35,7 @@ "@ekai/mindmap": "^0.1.8" }, "peerDependencies": { - "openclaw": "*" + "openclaw": ">=2026.4.5" }, "devDependencies": { "@types/node": "^20.10.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 86c5e35..f10b4e7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,7 +45,7 @@ importers: specifier: ^0.1.8 version: 0.1.8 openclaw: - specifier: '*' + specifier: '>=2026.4.5' version: 2026.4.5(@napi-rs/canvas@0.1.97) devDependencies: '@types/node':