Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

Commit 2032e66f

2032e66f2c57Merged

Scott Nixon <[email protected]> ยท 8 months ago ยท 5 files ยท ~5 modified

Description

feat(pipeline): Add multi-provider CLI support (Codex, Gemini)

Pipeline nodes can now use OpenAI Codex CLI or Google Gemini CLI instead of Claude Code via the llm_provider node attribute.

  • Add LlmCliProvider enum with FromStr, from_node(), binary_name()
  • Add provider-specific output parsing (JSON for Claude/Gemini, JSONL for Codex)
  • Add provider-specific CLI command construction (build_cli_command)
  • Add CliNotFound terminal error variant for missing CLI binaries
  • Add ProviderValidRule lint (warns on unknown llm_provider values)
  • Add comprehensive tests (28 new tests across handlers and validation)
  • Fix pre-existing clippy warning in engine.rs (and_then โ†’ map)
  • Update docs/guide.md with Multi-Provider Support section

๐Ÿค– Generated with Claude Code

Co-Authored-By: Claude [email protected]

Details

Commit
2032e66f2c57
Parent
b4afdb9c2555

crates/attractor-pipeline/src/engine.rsmodifiedView file

@@ -221,11 +221,11 @@
221221 "preferred_label" => outcome.preferred_label.clone().unwrap_or_default(),
222222 _ => ctx_snapshot
223223 .get(key)
224- .and_then(|v| match v {
225- serde_json::Value::String(s) => Some(s.clone()),
226- serde_json::Value::Bool(b) => Some(b.to_string()),
227- serde_json::Value::Number(n) => Some(n.to_string()),
228- _ => Some(v.to_string()),
224+ .map(|v| match v {
225+ serde_json::Value::String(s) => s.clone(),
226+ serde_json::Value::Bool(b) => b.to_string(),
227+ serde_json::Value::Number(n) => n.to_string(),
228+ _ => v.to_string(),
229229 })
230230 .unwrap_or_default(),
231231 }