// behaviors/factory-signatures.ts
var cache = null;
async function loadCatalog() {
  if (cache) return cache;
  try {
    const { readFileSync } = await import('fs');
    const { resolve, dirname } = await import('path');
    const { fileURLToPath } = await import('url');
    const dir = dirname(fileURLToPath(import.meta.url));
    const raw = readFileSync(resolve(dir, "registry", "factory-signatures.json"), "utf-8");
    const parsed = JSON.parse(raw);
    if (typeof parsed?.generatedFromStdVersion !== "string" || !Array.isArray(parsed?.signatures)) {
      return null;
    }
    cache = parsed;
    return cache;
  } catch {
    return null;
  }
}
async function getFactorySignatureCatalog() {
  return loadCatalog();
}

export { getFactorySignatureCatalog };
//# sourceMappingURL=factory-signatures.js.map
//# sourceMappingURL=factory-signatures.js.map