From 37a9dcf82edf5fe74d1c8f02e9d507c2c5b1b4ff Mon Sep 17 00:00:00 2001 From: operator Date: Sun, 19 Apr 2026 07:57:21 +0000 Subject: [PATCH] fix: use dynamic import path for plugin-sdk to bypass TS resolution Co-Authored-By: Claude Opus 4.6 (1M context) --- plugin/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/index.ts b/plugin/index.ts index fce6156..b7d2082 100644 --- a/plugin/index.ts +++ b/plugin/index.ts @@ -199,8 +199,10 @@ export default { const sessionKey = `agent:${agentId}:hf-calendar:slot-${slotId}`; try { + // Dynamic import — resolved at runtime by OpenClaw's module system + const sdkPath = 'openclaw/plugin-sdk/reply-dispatch-runtime'; const { dispatchInboundMessageWithDispatcher } = await import( - 'openclaw/plugin-sdk/reply-dispatch-runtime' + /* webpackIgnore: true */ sdkPath ); const cfg = api.runtime?.config?.loadConfig?.();