UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

38 lines (37 loc) • 1.44 kB
import type { OpenClawConfig } from "../../config/config.js"; import { type SessionEntry } from "../../config/sessions.js"; /** Drain queued system events, format as `System:` lines, return the block (or undefined). */ export declare function drainFormattedSystemEvents(params: { cfg: OpenClawConfig; sessionKey: string; isMainSession: boolean; isNewSession: boolean; }): Promise<string | undefined>; export declare function ensureSkillSnapshot(params: { sessionEntry?: SessionEntry; sessionStore?: Record<string, SessionEntry>; sessionKey?: string; storePath?: string; sessionId?: string; isFirstTurnInSession: boolean; workspaceDir: string; cfg: OpenClawConfig; /** If provided, only load skills with these names (for per-channel skill filtering) */ skillFilter?: string[]; }): Promise<{ sessionEntry?: SessionEntry; skillsSnapshot?: SessionEntry["skillsSnapshot"]; systemSent: boolean; }>; export declare function incrementCompactionCount(params: { sessionEntry?: SessionEntry; sessionStore?: Record<string, SessionEntry>; sessionKey?: string; storePath?: string; now?: number; amount?: number; /** Token count after compaction - if provided, updates session token counts */ tokensAfter?: number; /** Session id after compaction, when the runtime rotated transcripts. */ newSessionId?: string; }): Promise<number | undefined>;