mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 13:30:48 +00:00
refactor(channels): route inbound turns through kernel
This commit is contained in:
@@ -11,9 +11,11 @@ import {
|
||||
hasFinalChannelTurnDispatch,
|
||||
hasVisibleChannelTurnDispatch,
|
||||
resolveChannelTurnDispatchCounts,
|
||||
runChannelTurn,
|
||||
runPreparedChannelTurn,
|
||||
} from "../channels/turn/kernel.js";
|
||||
import type { PreparedChannelTurn } from "../channels/turn/types.js";
|
||||
import type { PreparedChannelTurn, RunChannelTurnParams } from "../channels/turn/types.js";
|
||||
export type { ChannelTurnRecordOptions } from "../channels/turn/types.js";
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import { createChannelReplyPipeline } from "./channel-reply-pipeline.js";
|
||||
import { createNormalizedOutboundDeliverer, type OutboundReplyPayload } from "./reply-payload.js";
|
||||
@@ -33,6 +35,13 @@ export async function runPreparedInboundReplyTurn<TDispatchResult>(
|
||||
return await runPreparedChannelTurn(params);
|
||||
}
|
||||
|
||||
/** Run a channel turn through shared ingest, record, dispatch, and finalize ordering. */
|
||||
export async function runInboundReplyTurn<TRaw, TDispatchResult = DispatchFromConfigResult>(
|
||||
params: RunChannelTurnParams<TRaw, TDispatchResult>,
|
||||
) {
|
||||
return await runChannelTurn(params);
|
||||
}
|
||||
|
||||
export {
|
||||
hasFinalChannelTurnDispatch as hasFinalInboundReplyDispatch,
|
||||
hasVisibleChannelTurnDispatch as hasVisibleInboundReplyDispatch,
|
||||
|
||||
Reference in New Issue
Block a user