import { defineHandler } from '@kb-labs/sdk';
import { analyzeDependencies } from '@kb-labs/quality-core/dependencies';

// src/rest/handlers/dependencies-handler.ts
var dependencies_handler_default = defineHandler({
  async execute(ctx, input) {
    const analysis = await analyzeDependencies(ctx.cwd);
    return {
      duplicates: analysis.duplicates,
      unused: analysis.unused,
      missing: analysis.missing,
      totalIssues: analysis.duplicates.length + analysis.unused.length + analysis.missing.length
    };
  }
});

export { dependencies_handler_default as default };
//# sourceMappingURL=dependencies-handler.js.map
//# sourceMappingURL=dependencies-handler.js.map