/** * Workflow Recorder * * Manages workflow recording sessions, capturing browse operations * and converting them to replayable workflows. * * Features: * - Recording session management * - Automatic step capture from browse results * - User annotations and importance levels * - Conversion to ProceduralMemory skills */ import type { WorkflowRecording, Workflow, StartRecordingRequest, AnnotateStepRequest } from '../types/workflow.js'; import type { SmartBrowseResult } from './smart-browser.js'; export declare class WorkflowRecorder { private activeSessions; private workflows; /** * Start a new recording session */ startRecording(request: StartRecordingRequest): Promise; /** * Record a step from a browse result * * IMPORTANT: Stores only metadata, not actual content, to comply with * copyright and privacy regulations. Full content is re-fetched on replay. */ recordStep(recordingId: string, browseResult: SmartBrowseResult): Promise; /** * Annotate a step with user description and importance */ annotateStep(recordingId: string, request: AnnotateStepRequest): Promise; /** * Stop recording and optionally save as workflow */ stopRecording(recordingId: string, save?: boolean): Promise; /** * Get active recording session */ getRecording(recordingId: string): WorkflowRecording | undefined; /** * Get saved workflow */ getWorkflow(workflowId: string): Workflow | undefined; /** * List all workflows */ listWorkflows(domain?: string, tags?: string[]): Workflow[]; /** * Delete a workflow */ deleteWorkflow(workflowId: string): Promise; /** * Update workflow usage stats */ updateWorkflowStats(workflowId: string, success: boolean): Promise; /** * Convert recording to workflow */ private recordingToWorkflow; /** * Generate unique recording ID */ private generateRecordingId; /** * Generate unique workflow ID */ private generateWorkflowId; } //# sourceMappingURL=workflow-recorder.d.ts.map