import { defineHandler } from '@kb-labs/sdk';
import { checkBuilds } from '@kb-labs/quality-core/builds';

// src/rest/handlers/builds-handler.ts
var builds_handler_default = defineHandler({
  async execute(ctx, input) {
    const { package: packageFilter, timeout } = input.query ?? {};
    return checkBuilds(ctx.cwd, {
      packageFilter,
      timeout: timeout || 3e4
    });
  }
});

export { builds_handler_default as default };
//# sourceMappingURL=builds-handler.js.map
//# sourceMappingURL=builds-handler.js.map