mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 16:28:26 +00:00
refactor(channels): dedupe hook and monitor execution paths
This commit is contained in:
@@ -233,6 +233,11 @@ export type HookAgentPayload = {
|
||||
timeoutSeconds?: number;
|
||||
};
|
||||
|
||||
export type HookAgentDispatchPayload = Omit<HookAgentPayload, "sessionKey"> & {
|
||||
sessionKey: string;
|
||||
allowUnsafeExternalContent?: boolean;
|
||||
};
|
||||
|
||||
const listHookChannelValues = () => ["last", ...listChannelPlugins().map((plugin) => plugin.id)];
|
||||
|
||||
export type HookMessageChannel = ChannelId | "last";
|
||||
|
||||
Reference in New Issue
Block a user