UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

27 lines (26 loc) 1.34 kB
import type { FileSystem, JsonlSessionCreateOptions, JsonlSessionListOptions, JsonlSessionMetadata, JsonlSessionRepoApi, Session } from "../types.js"; type JsonlSessionRepoFileSystem = Pick<FileSystem, "cwd" | "absolutePath" | "joinPath" | "readTextFile" | "readTextLines" | "writeFile" | "appendFile" | "listDir" | "exists" | "createDir" | "remove">; /** Repository for JSONL sessions grouped by working directory. */ export declare class JsonlSessionRepo implements JsonlSessionRepoApi { private readonly fs; private readonly sessionsRootInput; private sessionsRoot; constructor(options: { fs: JsonlSessionRepoFileSystem; sessionsRoot: string; }); private getSessionsRoot; private getSessionDir; private createSessionFilePath; create(options: JsonlSessionCreateOptions): Promise<Session<JsonlSessionMetadata>>; open(metadata: JsonlSessionMetadata): Promise<Session<JsonlSessionMetadata>>; list(options?: JsonlSessionListOptions): Promise<JsonlSessionMetadata[]>; delete(metadata: JsonlSessionMetadata): Promise<void>; fork(sourceMetadata: JsonlSessionMetadata, options: JsonlSessionCreateOptions & { entryId?: string; position?: "before" | "at"; id?: string; }): Promise<Session<JsonlSessionMetadata>>; private listSessionDirs; } export {};