@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
33 lines (32 loc) • 1.25 kB
TypeScript
import type { ChannelId, ChannelMessageActionName, ChannelThreadingToolContext } from "../../channels/plugins/types.js";
import type { OpenClawConfig } from "../../config/config.js";
import { type CrossContextComponentsBuilder } from "./channel-adapters.js";
export type CrossContextDecoration = {
prefix: string;
suffix: string;
componentsBuilder?: CrossContextComponentsBuilder;
};
export declare function enforceCrossContextPolicy(params: {
channel: ChannelId;
action: ChannelMessageActionName;
args: Record<string, unknown>;
toolContext?: ChannelThreadingToolContext;
cfg: OpenClawConfig;
}): void;
export declare function buildCrossContextDecoration(params: {
cfg: OpenClawConfig;
channel: ChannelId;
target: string;
toolContext?: ChannelThreadingToolContext;
accountId?: string | null;
}): Promise<CrossContextDecoration | null>;
export declare function shouldApplyCrossContextMarker(action: ChannelMessageActionName): boolean;
export declare function applyCrossContextDecoration(params: {
message: string;
decoration: CrossContextDecoration;
preferComponents: boolean;
}): {
message: string;
componentsBuilder?: CrossContextComponentsBuilder;
usedComponents: boolean;
};