fix: use dynamic import path for plugin-sdk to bypass TS resolution

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
operator
2026-04-19 07:57:21 +00:00
parent 6a5d135ef6
commit 37a9dcf82e

View File

@@ -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?.();