mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 08:31:49 -06:00
02e8470bb8
* refactor: burn SDK export collision debt * chore: regenerate collision debt baselines * fix: update durable delivery core import * fix: remove stale channel metadata type import * fix: preserve config write SDK parameter type * fix: preserve chat metadata SDK return type * chore: refresh plugin SDK API baseline * test: update plugin enable mock import * fix: remove duplicate status helper re-export * fix: preserve strict QA runtime availability errors
38 lines
1.7 KiB
TypeScript
38 lines
1.7 KiB
TypeScript
import { createLazyPromise } from "../shared/lazy-runtime.js";
|
|
/**
|
|
* Runtime SDK subpath for lazy reply dispatch and inbound-context helpers.
|
|
*/
|
|
export { resolveChunkMode } from "../auto-reply/chunk.js";
|
|
export { generateConversationLabel } from "../auto-reply/reply/conversation-label-generator.js";
|
|
export { finalizeInboundContextForSdk as finalizeInboundContext } from "../auto-reply/reply/inbound-context.js";
|
|
export type { CommandTurnContext } from "../auto-reply/command-turn-context.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";
|
|
|
|
const loadProviderDispatcherRuntimeModule = createLazyPromise(
|
|
() => import("../auto-reply/reply/provider-dispatcher.runtime.js"),
|
|
{ cacheRejections: true },
|
|
);
|
|
|
|
/** Dispatches a reply with buffered block support after lazy-loading the runtime dispatcher. */
|
|
export const dispatchReplyWithBufferedBlockDispatcher: DispatchReplyWithBufferedBlockDispatcher =
|
|
async (params) => {
|
|
const { dispatchReplyWithBufferedBlockDispatcherCore: dispatch } =
|
|
await loadProviderDispatcherRuntimeModule();
|
|
return await dispatch(params);
|
|
};
|
|
|
|
/** Dispatches a reply through the provider dispatcher after lazy-loading runtime code. */
|
|
export const dispatchReplyWithDispatcher: DispatchReplyWithDispatcher = async (params) => {
|
|
const { dispatchReplyWithDispatcherCore: dispatch } = await loadProviderDispatcherRuntimeModule();
|
|
return await dispatch(params);
|
|
};
|