/** * @license * Copyright 2025 OSAgent OC * SPDX-License-Identifier: Apache-2.0 */ import type { ResponseMetadata, VerificationResult, VerificationCheck, RegisteredAgent, OrchestrationMode, ActiveContext, MemoryAction } from './types.js'; /** * Formats responses with agent metadata, verification, and context */ export declare class ResponseFormatter { /** * Create response metadata */ createMetadata(options: { agent: RegisteredAgent; mode: OrchestrationMode; taskType: string; memoryAction?: MemoryAction; verification?: VerificationResult; duration: number; tokensUsed?: number; skillUsed?: string; context?: ActiveContext; }): ResponseMetadata; /** * Format response header */ formatHeader(metadata: ResponseMetadata): string; /** * Format verification section */ formatVerification(verification: VerificationResult): string; /** * Format context section */ formatContext(context: ActiveContext): string; /** * Format complete response with all sections */ formatCompleteResponse(content: string, metadata: ResponseMetadata, verification?: VerificationResult): string; /** * Format compact response (for inline display) */ formatCompactResponse(metadata: ResponseMetadata): string; /** * Format duration */ formatDuration(ms: number): string; /** * Get agent icon for tier */ private getAgentIcon; /** * Get mode label */ private getModeLabel; /** * Get memory action label */ private getMemoryLabel; } /** * Runs verification checks */ export declare class VerificationRunner { private shellExecutor?; /** * Set shell executor */ setShellExecutor(executor: (command: string) => Promise<{ stdout: string; exitCode: number; }>): void; /** * Run a verification check */ runCheck(check: { name: string; type: 'command' | 'file_exists' | 'pattern_match' | 'test_pass' | 'custom'; command?: string; pattern?: string; files?: string[]; customCheck?: string; }): Promise; /** * Run command check */ private runCommandCheck; /** * Run test check */ private runTestCheck; /** * Run file exists check */ private runFileExistsCheck; /** * Run pattern match check */ private runPatternMatchCheck; /** * Run all verification checks */ runAll(checks: Array<{ name: string; type: 'command' | 'file_exists' | 'pattern_match' | 'test_pass' | 'custom'; command?: string; pattern?: string; files?: string[]; customCheck?: string; }>): Promise; /** * Run standard verification (build, test, lint) */ runStandardVerification(): Promise; } export declare const defaultResponseFormatter: ResponseFormatter; export declare const defaultVerificationRunner: VerificationRunner;