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:
@@ -199,8 +199,10 @@ export default {
|
|||||||
const sessionKey = `agent:${agentId}:hf-calendar:slot-${slotId}`;
|
const sessionKey = `agent:${agentId}:hf-calendar:slot-${slotId}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// Dynamic import — resolved at runtime by OpenClaw's module system
|
||||||
|
const sdkPath = 'openclaw/plugin-sdk/reply-dispatch-runtime';
|
||||||
const { dispatchInboundMessageWithDispatcher } = await import(
|
const { dispatchInboundMessageWithDispatcher } = await import(
|
||||||
'openclaw/plugin-sdk/reply-dispatch-runtime'
|
/* webpackIgnore: true */ sdkPath
|
||||||
);
|
);
|
||||||
|
|
||||||
const cfg = api.runtime?.config?.loadConfig?.();
|
const cfg = api.runtime?.config?.loadConfig?.();
|
||||||
|
|||||||
Reference in New Issue
Block a user