/** * Session-event capture: turns DSH `session/event` payloads into OpenViking * message payloads, and builds pre-step recall queries from the final message * batch. * @module openviking-memory/capture */ import type { OpenVikingConfig } from './config.ts'; /** * Message-source kind this plugin declares for the durable context messages it * injects. * * DSH 0.1.7 removed the shared catch-all `plugin` source kind ("each producer * declares its own `kind` in its own module"), so the producer name IS the * kind: `runtime.ts` merges this literal into `MessageSourceMap` and stamps it * on every profile/recall message, and {@link promptText} uses it to keep this * plugin's own injections out of the query it builds from the message batch. */ export declare const OPENVIKING_PLUGIN_SOURCE = "openviking-memory"; export interface CaptureToolState { captureToolResults: boolean; } /** * Convert one DSH session event into an OpenViking message payload, or null * when the event carries nothing worth capturing. * @param toolNames - per-callId tool-name registry retained between tool/call and tool/result. */ export declare function captureEvent(event: Record | null | undefined, config: OpenVikingConfig, toolNames?: Map): Record | null; /** Build a recall query from the pre-step message batch, excluding this plugin's own injections. */ export declare function promptText(messages: ReadonlyArray | null | undefined): string; //# sourceMappingURL=capture.d.ts.map