mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 20:20:42 +00:00
refactor(channels): route inbound turns through kernel
This commit is contained in:
@@ -52,10 +52,8 @@ import { loadChannelOutboundAdapter } from "../../channels/plugins/outbound/load
|
||||
import { recordInboundSession } from "../../channels/session.js";
|
||||
import {
|
||||
buildChannelTurnContext,
|
||||
dispatchAssembledChannelTurn,
|
||||
runChannelTurn,
|
||||
runPreparedChannelTurn,
|
||||
runResolvedChannelTurn,
|
||||
} from "../../channels/turn/kernel.js";
|
||||
import {
|
||||
resolveChannelGroupPolicy,
|
||||
@@ -174,10 +172,8 @@ export function createRuntimeChannel(): PluginRuntime["channel"] {
|
||||
},
|
||||
turn: {
|
||||
run: runChannelTurn,
|
||||
runResolved: runResolvedChannelTurn,
|
||||
buildContext: buildChannelTurnContext,
|
||||
runPrepared: runPreparedChannelTurn,
|
||||
dispatchAssembled: dispatchAssembledChannelTurn,
|
||||
},
|
||||
threadBindings: {
|
||||
setIdleTimeoutBySessionKey: ({ channelId, targetSessionKey, accountId, idleTimeoutMs }) =>
|
||||
|
||||
@@ -153,12 +153,8 @@ export type PluginRuntimeChannel = {
|
||||
};
|
||||
turn: {
|
||||
run: typeof import("../../channels/turn/kernel.js").runChannelTurn;
|
||||
/** @deprecated Prefer `run(...)`. */
|
||||
runResolved: typeof import("../../channels/turn/kernel.js").runResolvedChannelTurn;
|
||||
buildContext: typeof import("../../channels/turn/kernel.js").buildChannelTurnContext;
|
||||
runPrepared: typeof import("../../channels/turn/kernel.js").runPreparedChannelTurn;
|
||||
/** @deprecated Prefer `run(...)` or `runPrepared(...)`. */
|
||||
dispatchAssembled: typeof import("../../channels/turn/kernel.js").dispatchAssembledChannelTurn;
|
||||
};
|
||||
threadBindings: {
|
||||
setIdleTimeoutBySessionKey: (params: {
|
||||
|
||||
Reference in New Issue
Block a user