import type { LoopEvent } from '../../../../src/plugin-sdk.js'; export interface WorkflowEventIdentity { workflow: string; runId: string; rootRunId: string; parentRunId?: string; depth: number; } export function workflowProgressEvent( identity: WorkflowEventIdentity, update: Omit, 'type' | 'workflow' | 'runId' | 'rootRunId' | 'parentRunId' | 'depth'>, ): Extract { return { type: 'workflow_progress', ...identity, ...update, }; }