INNER CODE UNIT · Python

chequeo_2_yaml

Hainrixz/whatsapp-agentkit · scripts/audit.py:335

def chequeo_2_yaml(raiz: Path) -> Resultado:
    r = Resultado(2, "Bloques YAML de CLAUDE.md parsean")
    ruta = raiz / "CLAUDE.md"

    try:
        contenido = leer_texto(ruta)
    except FileNotFoundError:
        r.error("falta el archivo CLAUDE.md",
                "Sin CLAUDE.md no hay plantillas que auditar.")
        return r
    except OSError as e:
        r.error(f"no se pudo leer CLAUDE.md: {e}")
        return r

    bloques = extraer_bloques(contenido, "yaml")
    if not bloques:
        r.advertir("no se encontro ningun bloque ```yaml en CLAUDE.md",
                   "business.yaml y prompts.yaml deberian estar como ```yaml.")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…