import { defineHandler } from '@kb-labs/sdk';
import { loadHistory, detectRegressions } from '@kb-labs/qa-core';

// src/rest/handlers/regressions-handler.ts
var regressions_handler_default = defineHandler({
  async execute(ctx, _input) {
    const history = loadHistory(ctx.cwd);
    return detectRegressions(history);
  }
});

export { regressions_handler_default as default };
//# sourceMappingURL=regressions-handler.js.map
//# sourceMappingURL=regressions-handler.js.map