import type { AgentTimelineItem, DaemonClient } from "@getpaseo/server"; interface FetchProjectedTimelineItemsInput { client: DaemonClient; agentId: string; } export async function fetchProjectedTimelineItems( input: FetchProjectedTimelineItemsInput, ): Promise { const timeline = await input.client.fetchAgentTimeline(input.agentId, { direction: "tail", limit: 0, projection: "projected", }); return timeline.entries.map((entry) => entry.item); }