perf: lazy reply dispatch sdk runtime

This commit is contained in:
Peter Steinberger
2026-04-24 04:22:51 +01:00
parent 34f7a93c04
commit e93113db09

View File

@@ -1,7 +1,25 @@
export { resolveChunkMode } from "../auto-reply/chunk.js";
export { finalizeInboundContext } from "../auto-reply/reply/inbound-context.js";
export {
dispatchReplyWithBufferedBlockDispatcher,
dispatchReplyWithDispatcher,
} from "../auto-reply/reply/provider-dispatcher.js";
import type {
DispatchReplyWithBufferedBlockDispatcher,
DispatchReplyWithDispatcher,
} from "../auto-reply/reply/provider-dispatcher.types.js";
export type {
DispatchReplyWithBufferedBlockDispatcher,
DispatchReplyWithDispatcher,
} from "../auto-reply/reply/provider-dispatcher.types.js";
export type { ReplyPayload } from "./reply-payload.js";
export const dispatchReplyWithBufferedBlockDispatcher: DispatchReplyWithBufferedBlockDispatcher =
async (params) => {
const { dispatchReplyWithBufferedBlockDispatcher: dispatch } =
await import("../auto-reply/reply/provider-dispatcher.js");
return await dispatch(params);
};
export const dispatchReplyWithDispatcher: DispatchReplyWithDispatcher = async (params) => {
const { dispatchReplyWithDispatcher: dispatch } =
await import("../auto-reply/reply/provider-dispatcher.js");
return await dispatch(params);
};