feat: compose presentation from storyboard scenes

This commit is contained in:
lda
2026-07-04 16:47:12 +07:00 Verified
parent 5947ee625c
commit 7073b65dec
9 changed files with 206 additions and 94 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ export type PresentationToolAction =
| { readonly type: "selectWorkflowNode"; readonly nodeId: string }
| { readonly type: "focusOperation"; readonly eventId: string }
| { readonly type: "openEvidence"; readonly eventId: string }
| { readonly type: "showTraceFrame"; readonly frameIndex: number }
| { readonly type: "setBeat"; readonly beatId: string };
| { readonly type: "showTraceFrame"; readonly frameIndex: number };
export type AgentToolCall = {
readonly id: string;
+1 -7
View File
@@ -8,8 +8,7 @@ export type PresentationToolName =
| "selectWorkflowNode"
| "focusOperation"
| "openEvidence"
| "showTraceFrame"
| "setBeat";
| "showTraceFrame";
export type AgentToolName = WorkflowToolName | PresentationToolName;
@@ -60,11 +59,6 @@ export const AGENT_TOOLS = {
kind: "presentation",
description: "Focus a trace frame in the presentation.",
},
setBeat: {
name: "setBeat",
kind: "presentation",
description: "Move the presentation to a named beat.",
},
} satisfies Record<AgentToolName, AgentToolDescriptor>;
export const isAllowedAgentToolName = (name: string): name is AgentToolName =>