Files
OmniRoute/open-sse/services/compression/harness/index.ts
Diego Rodrigues de Sa e Souza 3c9883bb73 Release v3.8.29 (#4126)
OmniRoute v3.8.29 — 115 commits since v3.8.28. Full CHANGELOG + 41 i18n mirrors. All content quality gates green (build, unit 8/8, vitest 188/188, PR test policy, quality gates extended, docs sync, quality ratchet). Remaining red CI checks are pre-existing release flakes (coverage-shard/integration/node-compat teardown), a new transitive undici advisory in electron devDeps, and a workflow-level CodeQL fail (0 open alerts). VPS-validated by the operator.
2026-06-19 06:49:01 -03:00

53 lines
1.2 KiB
TypeScript

/**
* Compression eval/benchmark harness (F0.3 — C1 + N4 gate + TV3 replay).
*
* API-free, CI-safe primitives to answer "did meaning survive?" (retention) and
* "did cost/task get worse?" (budget gate), plus a replay path over real
* transcripts. Engines and the studios consume these to keep compression honest.
*/
export {
extractEntities,
computeRetention,
measureCompression,
type RetentionScore,
type CompressionMeasurement,
} from "./measure.ts";
export {
runCompressionEval,
type EvalCase,
type CompressFn,
type EvalResult,
type EvalReport,
} from "./runner.ts";
export {
tokensPerTask,
checkTokensPerTaskGate,
type BudgetBaseline,
type BudgetRegression,
type BudgetGateResult,
} from "./budgetGate.ts";
export {
transcriptsToCorpus,
replayTranscripts,
requestBodyToTranscript,
requestBodiesToTranscripts,
type Transcript,
type TranscriptTurn,
type CapturedRequestBody,
} from "./replay.ts";
export {
BENCHMARK_CORPUS,
DEFAULT_BENCHMARK_ENGINES,
engineToCompressFn,
benchmarkEngines,
compareReports,
runBenchmarkGate,
formatBenchmarkTable,
type EngineSummaryRow,
type EngineBenchmarkGateRow,
} from "./benchmark.ts";