@henrychien/agent-timeline
v0.1.1
Published
Pure TypeScript fold for Hank agent work timeline events.
Readme
@henrychien/agent-timeline
Pure TypeScript fold for Hank agent work timeline events.
The package consumes projected V1 gateway event dictionaries in arrival order and produces normalized timeline segments for narration, thinking, tool calls, and notices. It has no runtime dependencies and no DOM dependency.
import { foldEntries, applyEntry, createTimelineState } from "@henrychien/agent-timeline";
const segments = foldEntries(entries);
const state = createTimelineState();
for (const entry of entries) {
applyEntry(state, entry);
}