Skip to content

The open-source app everyone uses to manage agents at work

432 B
Raw Blame
import path from "node:path";
import { fileURLToPath } from "node:url";
import { validateCatalog } from "../src/catalog-builder.js";

const packageDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const result = await validateCatalog(packageDir);

if (result.errors.length > 0) {
  console.error(result.errors.join("\n"));
  process.exit(1);
}

console.log(`Validated ${result.manifest.teams.length} teams.`);