import { TimelineEntry, ToolEntry } from "./sessionModel.mjs"; import { StatusTone } from "@agimon-ai/po-web-components"; //#region src/web/lib/timelineGroups.d.ts export interface SingleUnit { readonly kind: 'single'; readonly entry: TimelineEntry; /** The entry's index in the source list, for the timeline's live-tail window. */ readonly index: number; } export interface GroupUnit { readonly kind: 'group'; readonly name: string; readonly entries: readonly ToolEntry[]; /** The index of the last entry in the run, so a group is skipped only once it is fully above the tail. */ readonly index: number; } export type TimelineUnit = SingleUnit | GroupUnit; /** * The entries as units to render. * * `groupable` decides which tool names may be gathered: a tool whose renderer * presents itself as a message, not a card, has no frame to share and stays on * its own. Only adjacent entries group, so anything between two calls, an * assistant reply or a notice, ends the run and keeps the transcript in order. */ export declare function timelineUnits(entries: readonly TimelineEntry[], groupable: (name: string) => boolean): readonly TimelineUnit[]; /** The group's status follows its final call; earlier failures stay on their own rows. */ export declare function groupTone(entries: readonly ToolEntry[]): StatusTone; /** `5 calls`, the line beside the tool's name in the group header. */ export declare function groupSummary(entries: readonly ToolEntry[]): string; //#endregion //# sourceMappingURL=timelineGroups.d.mts.map