← Back to PRs

#12103: fix: add missing zod dependency to 7 extensions

by mcaxtr open 2026-02-08 21:19 View on GitHub →
channel: bluebubbles channel: mattermost channel: nextcloud-talk channel: tlon channel: zalo channel: zalouser channel: irc size: S trusted-contributor experienced-contributor
## Summary Fixes #12067 Seven extensions (`bluebubbles`, `irc`, `mattermost`, `nextcloud-talk`, `tlon`, `zalo`, `zalouser`) import `zod` in their source code but did not declare it in their `package.json` `dependencies`. This works during development due to monorepo hoisting but causes `MODULE_NOT_FOUND` errors when users install these extensions standalone via `npm install @openclaw/<name>`. - Add `"zod": "^4.3.6"` to the `dependencies` of all 7 affected extensions, matching the version used by the extensions that already declare it correctly (`feishu`, `matrix`, `nostr`, `twitch`, `voice-call`). - Add a regression test (`src/plugins/extension-deps.test.ts`) that recursively scans all extension `src/` directories and fails if any extension imports `zod` without listing it as a dependency. ## Test plan - [x] New test fails before the fix (reports all 7 extensions) - [x] New test passes after the fix - [x] `pnpm build` passes - [x] `pnpm check` passes (tsgo + oxlint + oxfmt)

Most Similar PRs