import { ToolInputMetadata } from '../tools/types'; export interface CollectorEvent { id: string; type: string; timestamp: number; project_name?: string; session_id?: string; activity_id?: string; verification_id?: string; user_email?: string; mcp_server?: string; tool_use_id?: string; trace_id?: string; tool_type: 'mcp' | 'skill' | 'sub_agent' | null; tool_name: string; tool_input?: unknown; tool_input_size?: number; tool_response?: unknown; tool_response_size?: number; duration: number; error?: string; source: string; [key: string]: unknown; } export interface ToolCallResult { duration: number; tool_response?: unknown; error?: string; } export interface CollectorConfig { url: string; apiKey?: string; } export type CollectorMetadata = ToolInputMetadata | undefined;