kazam 1.28.1

Local infrastructure for coding agents: context, visibility, durable execution. One Rust binary, no cloud.
//! `kazam agents` - dumps the bundled LLM authoring guide to stdout.
//!
//! Point an agent at the output of this command when you want it to generate
//! kazam YAML. The guide is the same `AGENTS.md.template` that `kazam init`
//! writes into new sites, with a short preamble that links out to the hosted
//! component catalog for the very latest reference.

use anyhow::Result;

pub const AGENTS_MD: &str = include_str!("../AGENTS.md.template");

pub fn run() -> Result<()> {
    let preamble = "\
<!-- kazam agents - piped from the `kazam agents` CLI command.

Full docs + live component catalog: https://tdiderich.github.io/kazam/
Source: https://github.com/tdiderich/kazam

The guide below is bundled with the `kazam` binary you invoked, so it always
matches the version you have installed. If the hosted docs reference
components or props that look missing here, `cargo install --git
https://github.com/tdiderich/kazam` to upgrade.
-->

";
    print!("{}{}", preamble, AGENTS_MD);
    Ok(())
}