Files
openclaw/src/plugin-sdk/reply-dispatch-runtime.ts
Peter Steinberger 64d4f99d26 refactor(auto-reply): centralize command turn context
* refactor(auto-reply): centralize command turn context

* fix(channels): narrow command turn context literals

* fix(auto-reply): preserve command auth on refinalize

* fix(auto-reply): keep command turn context sdk-compatible

* fix(auto-reply): route structured command turns before reply setup

* test(cli): type stale launchd job mock
2026-05-15 08:41:09 +01:00

28 lines
1.2 KiB
TypeScript

export { resolveChunkMode } from "../auto-reply/chunk.js";
export { generateConversationLabel } from "../auto-reply/reply/conversation-label-generator.js";
export { 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";
export const dispatchReplyWithBufferedBlockDispatcher: DispatchReplyWithBufferedBlockDispatcher =
async (params) => {
const { dispatchReplyWithBufferedBlockDispatcher: dispatch } =
await import("../auto-reply/reply/provider-dispatcher.runtime.js");
return await dispatch(params);
};
export const dispatchReplyWithDispatcher: DispatchReplyWithDispatcher = async (params) => {
const { dispatchReplyWithDispatcher: dispatch } =
await import("../auto-reply/reply/provider-dispatcher.runtime.js");
return await dispatch(params);
};