import { i as OpenClawConfig } from "./types.openclaw-DH5a2ppk.js"; import { a as SessionTranscriptUpdateMode, c as TranscriptMessageAppendOptions, i as SessionTranscriptDeliveryMirror, l as TranscriptMessageAppendResult, r as SessionTranscriptAppendResult, t as LatestAssistantTranscriptText, u as TranscriptUpdatePayload } from "./transcript-I3NBVHw4.js"; import { a as SessionTranscriptMemoryHitKeyParams, c as parseSessionTranscriptMemoryHitKey, i as SessionTranscriptMemoryHitKey, l as resolveSessionTranscriptMemoryHitKeyToSessionKeys, n as SessionTranscriptIdentity, o as SessionTranscriptReadParams, r as SessionTranscriptMemoryHitIdentity, s as formatSessionTranscriptMemoryHitKey, t as ResolveSessionTranscriptMemoryHitKeyParams } from "./session-transcript-memory-hit-cK-0FFV0.js"; //#region src/plugin-sdk/session-transcript-runtime.d.ts type SessionTranscriptEvent = unknown; type SessionTranscriptTargetParams = SessionTranscriptReadParams & { /** * @deprecated Prefer `{ agentId, sessionKey, sessionId }`. Pass this only * when adapting code that already receives an active transcript artifact and * needs each helper to operate on that same artifact. */ sessionFile?: string; }; type SessionTranscriptTarget = SessionTranscriptIdentity & { targetKind: "active-session-file" | "runtime-session"; }; /** * @deprecated Use SessionTranscriptTarget with `{ agentId, sessionKey, * sessionId }`. Active transcript file targets are transitional only and will * be removed with the SQLite session/transcript storage flip. */ type SessionTranscriptLegacyFileTarget = SessionTranscriptTarget & { /** Deprecated transitional file path for active transcript artifact callers. */sessionFile: string; }; type SessionTranscriptAppendMessageParams = SessionTranscriptTargetParams & TranscriptMessageAppendOptions; type SessionTranscriptAssistantMirrorAppendParams = SessionTranscriptReadParams & { config?: OpenClawConfig; deliveryMirror?: SessionTranscriptDeliveryMirror; idempotencyKey?: string; mediaUrls?: string[]; text?: string; updateMode?: SessionTranscriptUpdateMode; }; type SessionTranscriptWriteLockParams = SessionTranscriptTargetParams & { config?: TranscriptMessageAppendOptions["config"]; }; type SessionTranscriptWriteLockContext = { appendMessage: (options: Omit, "config">) => Promise | undefined>; publishUpdate: (update?: TranscriptUpdatePayload) => Promise; readEvents: () => Promise; target: SessionTranscriptTarget; }; /** * Resolves the public identity for a transcript without returning its file path. */ declare function resolveSessionTranscriptIdentity(params: SessionTranscriptReadParams): Promise; /** * Resolves the public target for transcript operations without exposing the * current storage path as identity. */ declare function resolveSessionTranscriptTarget(params: SessionTranscriptTargetParams): Promise; /** * @deprecated Use resolveSessionTranscriptTarget with `{ agentId, sessionKey, * sessionId }`. This persists an active transcript file target only for legacy * plugin command calls that still require `sessionFile`. */ declare function resolveSessionTranscriptLegacyFileTarget(params: SessionTranscriptTargetParams): Promise; /** * Reads transcript events by public session identity instead of file path. */ declare function readSessionTranscriptEvents(params: SessionTranscriptTargetParams): Promise; /** * Reads the latest visible assistant text by scoped identity using the * bounded reverse transcript reader. */ declare function readLatestAssistantTextByIdentity(params: SessionTranscriptTargetParams): Promise; /** * Appends a delivery-mirror assistant message through the guarded session * append facade. */ declare function appendAssistantMirrorMessageByIdentity(params: SessionTranscriptAssistantMirrorAppendParams): Promise; /** * Appends a transcript message by scoped transcript target. */ declare function appendSessionTranscriptMessageByIdentity(params: SessionTranscriptAppendMessageParams): Promise | undefined>; /** * Publishes a transcript update by scoped transcript target. */ declare function publishSessionTranscriptUpdateByIdentity(params: SessionTranscriptTargetParams & { update?: TranscriptUpdatePayload; }): Promise; /** * Runs transcript work under the write lock for the resolved scoped target. */ declare function withSessionTranscriptWriteLock(params: SessionTranscriptWriteLockParams, run: (context: SessionTranscriptWriteLockContext) => Promise | T): Promise; //#endregion export { type ResolveSessionTranscriptMemoryHitKeyParams, SessionTranscriptAppendMessageParams, SessionTranscriptAssistantMirrorAppendParams, SessionTranscriptEvent, type SessionTranscriptIdentity, SessionTranscriptLegacyFileTarget, type SessionTranscriptMemoryHitIdentity, type SessionTranscriptMemoryHitKey, type SessionTranscriptMemoryHitKeyParams, type SessionTranscriptReadParams, SessionTranscriptTarget, SessionTranscriptTargetParams, SessionTranscriptWriteLockContext, SessionTranscriptWriteLockParams, appendAssistantMirrorMessageByIdentity, appendSessionTranscriptMessageByIdentity, formatSessionTranscriptMemoryHitKey, parseSessionTranscriptMemoryHitKey, publishSessionTranscriptUpdateByIdentity, readLatestAssistantTextByIdentity, readSessionTranscriptEvents, resolveSessionTranscriptIdentity, resolveSessionTranscriptLegacyFileTarget, resolveSessionTranscriptMemoryHitKeyToSessionKeys, resolveSessionTranscriptTarget, withSessionTranscriptWriteLock };