import { Command } from "commander"; import { connectToDaemon, getDaemonHost } from "../../utils/client.js"; import type { CommandOptions } from "../../output/index.js"; import { fetchProjectedTimelineItems } from "../../utils/timeline.js"; import type { DaemonClient, AgentStreamMessage, AgentTimelineItem } from "@getpaseo/server"; import { curateAgentActivity } from "@getpaseo/server"; export function addLogsOptions(cmd: Command): Command { return cmd .description("View agent activity/timeline") .argument("", "Agent ID (or prefix)") .option("-f, --follow", "Follow log output (streaming)") .option("--tail ", "Show last n entries") .option("--filter ", "Filter by event type (tools, text, errors, permissions)") .option("--since