mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-31 05:32:58 +00:00
Plugins can transform live timeline source items at render time, append durable plugin rows from daemon handlers, and register client-only slash commands in the composer. Related to #3940 and #3952.
8 lines
277 B
TypeScript
8 lines
277 B
TypeScript
import type { AgentTimelineItem } from "./agent-types.js";
|
|
|
|
export function timelineItemIdentity(item: AgentTimelineItem): string | null {
|
|
if (item.type === "tool_call") return item.callId;
|
|
if (item.type === "plugin") return `${item.pluginId}/${item.id}`;
|
|
return null;
|
|
}
|