fabro/crates/attractor/src/lib.rs
Bryan Helmkamp 433a7c6247 Implement attractor CLI binary with run and validate subcommands
Add a [[bin]] target to the attractor crate with two subcommands:
- `attractor validate <pipeline.dot>` -- parse and validate only
- `attractor run <pipeline.dot>` -- full pipeline execution with LLM backend

The CLI supports --dry-run, --auto-approve, --resume, --model, --provider,
and two-level verbosity (-v one-line summaries, -vv full event details).

Extracts a shared `default_registry()` function in handler/mod.rs so both
the CLI and server can build a fully-wired HandlerRegistry without
duplicating handler registration boilerplate.

The AgentBackend in cli/backend.rs implements CodergenBackend by creating
a coding-agent-loop Session per node invocation, giving LLM nodes access
to file and shell tools.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 09:11:42 -05:00

20 lines
368 B
Rust

pub mod artifact;
pub mod checkpoint;
pub mod cli;
pub mod condition;
pub mod context;
pub mod engine;
pub mod error;
pub mod event;
pub mod graph;
pub mod handler;
pub mod interviewer;
pub mod outcome;
pub mod parser;
pub mod preamble;
pub mod pipeline;
#[cfg(any(feature = "server", test))]
pub mod server;
pub mod stylesheet;
pub mod transform;
pub mod validation;