/** * Dojo Benchmark Tool * * MCP tool for running standardized performance benchmarks on Dojo experiments. * Specialized subclass of decibel_bench that discovers benchmarks from experiments. * * Experiments opt into benchmarking by exporting: * - Python: DOJO_BENCHMARKS dict or dojo_benchmark() function * - TypeScript: DOJO_BENCHMARKS object or dojoBenchmark() function * * Ref: WISH-0002 (Dojo Benchmark Tool) */ import { CallerRole } from './dojoPolicy.js'; import { BenchKind, BenchmarkReport } from '../lib/benchmark.js'; export interface DojoBenchInput { project_id: string; experiment_id: string; kind?: BenchKind; iterations?: number; warmup?: number; threshold_p99_ns?: number; save_baseline?: boolean; check_regression?: boolean; regression_tolerance?: number; output_format?: 'table' | 'json' | 'markdown'; caller_role?: CallerRole; agent_id?: string; } export interface DojoBenchOutput { experiment_id: string; status: 'success' | 'no_benchmarks' | 'regression_detected' | 'error'; report?: BenchmarkReport; formatted?: string; message?: string; } export interface DojoBenchError { error: string; exitCode: number; stderr: string; } /** * Run benchmarks on a Dojo experiment */ export declare function dojoBench(input: DojoBenchInput): Promise; /** * Type guard for DojoBenchError */ export declare function isDojoBenchError(result: unknown): result is DojoBenchError; //# sourceMappingURL=dojoBench.d.ts.map