Skip to content

fix: use scoped plugin-sdk imports for OpenClaw 2026.4.x compat#130

Open
QiuYi111 wants to merge 3 commits into
mainfrom
fix/plugin-sdk-scoped-imports
Open

fix: use scoped plugin-sdk imports for OpenClaw 2026.4.x compat#130
QiuYi111 wants to merge 3 commits into
mainfrom
fix/plugin-sdk-scoped-imports

Conversation

@QiuYi111
Copy link
Copy Markdown
Owner

Problem

After upgrading OpenClaw to 2026.4.12-beta.1, the plugin fails with:

TypeError: (0 , _pluginSdk.dispatchInboundReplyWithBase) is not a function

Root Cause

OpenClaw 2026.4.x stopped re-exporting dispatchInboundReplyWithBase and createPluginRuntimeStore from the compat barrel openclaw/plugin-sdk. They now live at scoped subpaths:

  • openclaw/plugin-sdk/inbound-reply-dispatch
  • openclaw/plugin-sdk/runtime-store

Changes

  • src/runtime.ts — import createPluginRuntimeStore from scoped path
  • src/webhook-handler.ts — import dispatchInboundReplyWithBase from scoped path
  • Update test mocks to match new import paths
  • Bump peer dependency from ^2026.3.7 to ^2026.4.0

Verification

Local dist at ~/.openclaw/local-plugins/openclaw-linear-light-dist already uses these scoped imports and works correctly.

Fixes #129

QiuYi111 and others added 3 commits April 13, 2026 23:17
- createPluginRuntimeStore → openclaw/plugin-sdk/runtime-store
- dispatchInboundReplyWithBase → openclaw/plugin-sdk/inbound-reply-dispatch
- Update test mocks to match new import paths
- Bump peer dependency to ^2026.4.0

Fixes #129
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ResolvedAgentRoute no longer has a `model` field — fixes TS2339.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: plugin-sdk compat imports break on OpenClaw 2026.4.x

1 participant