openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
22 lines (21 loc) • 1.31 kB
TypeScript
import type { OpenClawConfig } from "../../config/config.js";
import type { SessionAcpMeta } from "../../config/sessions/types.js";
import { AcpRuntimeError } from "../runtime/errors.js";
import type { AcpSessionResolution } from "./manager.types.js";
export declare function resolveAcpAgentFromSessionKey(sessionKey: string, fallback?: string): string;
export declare function resolveMissingMetaError(sessionKey: string): AcpRuntimeError;
export declare function resolveAcpSessionResolutionError(resolution: AcpSessionResolution): AcpRuntimeError | null;
export declare function requireReadySessionMeta(resolution: AcpSessionResolution): SessionAcpMeta;
export declare function normalizeSessionKey(sessionKey: string): string;
export declare function canonicalizeAcpSessionKey(params: {
cfg: OpenClawConfig;
sessionKey: string;
}): string;
export declare function normalizeActorKey(sessionKey: string): string;
export declare function normalizeAcpErrorCode(code: string | undefined): AcpRuntimeError["code"];
export declare function createUnsupportedControlError(params: {
backend: string;
control: string;
}): AcpRuntimeError;
export declare function resolveRuntimeIdleTtlMs(cfg: OpenClawConfig): number;
export declare function hasLegacyAcpIdentityProjection(meta: SessionAcpMeta): boolean;