@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
14 lines • 818 B
TypeScript
import type { FileEntry } from "./session-manager.ts";
/** A user/assistant message's visible text and activity time. */
export type VisibleMessage = {
readonly text: string;
readonly role: "user" | "assistant";
readonly time: number | undefined;
};
/** Deserialize one JSONL line. Malformed lines are skipped, matching full-file session loading. */
export declare function parseEntryLine(line: string): FileEntry | null;
/** The record's visible message, or null when it is not a user/assistant message. */
export declare function visibleMessage(entry: FileEntry): VisibleMessage | null;
/** The record's display name, or null when the record is not a session_info entry. */
export declare function sessionInfoName(entry: FileEntry): string | undefined | null;
//# sourceMappingURL=session-record.d.ts.map