fabro/crates/attractor/src
Bryan Helmkamp 28cdefec67 Add token usage and cost tracking to pipeline runs
Surface LLM token consumption and dollar cost at every verbosity level:
default mode appends per-stage tokens/cost, verbose modes include it in
event summary/detail, and the Pipeline Result section shows a total.
Cost is computed from the catalog pricing for Anthropic models; providers
without pricing (OpenAI, Gemini) show token counts only. Dry runs with
zero tokens omit the cost line entirely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 22:01:17 -05:00
..
cli Add token usage and cost tracking to pipeline runs 2026-02-23 22:01:17 -05:00
graph Implement 6 spec gaps: preamble synthesis, thread_id plumbing, cancellation, recording replay, retry presets, inform() 2026-02-23 08:23:27 -05:00
handler Add token usage and cost tracking to pipeline runs 2026-02-23 22:01:17 -05:00
interviewer Replace manual CLI prompts with dialoguer for arrow-key navigation 2026-02-23 17:58:18 -05:00
parser Add end-to-end test for subgraph class derivation, update spec gap analysis 2026-02-23 08:39:42 -05:00
validation Add shape selectors, LLM stream timeouts, MultiSelect questions, and test coverage 2026-02-23 17:43:05 -05:00
artifact.rs Implement attractor crate: DOT-based pipeline runner with full spec compliance 2026-02-21 12:17:32 -04:00
checkpoint.rs Close spec compliance gaps: retry context, thread resolution, fan-in logging 2026-02-22 10:49:21 -04:00
condition.rs Add token usage and cost tracking to pipeline runs 2026-02-23 22:01:17 -05:00
context.rs Implement attractor crate: DOT-based pipeline runner with full spec compliance 2026-02-21 12:17:32 -04:00
engine.rs Add token usage and cost tracking to pipeline runs 2026-02-23 22:01:17 -05:00
error.rs Implement 6 spec gaps: preamble synthesis, thread_id plumbing, cancellation, recording replay, retry presets, inform() 2026-02-23 08:23:27 -05:00
event.rs Add token usage and cost tracking to pipeline runs 2026-02-23 22:01:17 -05:00
lib.rs Implement attractor CLI binary with run and validate subcommands 2026-02-23 09:11:42 -05:00
main.rs serve 2026-02-23 12:20:48 -05:00
outcome.rs Add token usage and cost tracking to pipeline runs 2026-02-23 22:01:17 -05:00
pipeline.rs Close spec compliance gaps: retry context, thread resolution, fan-in logging 2026-02-22 10:49:21 -04:00
preamble.rs Implement 6 spec gaps: preamble synthesis, thread_id plumbing, cancellation, recording replay, retry presets, inform() 2026-02-23 08:23:27 -05:00
server.rs Speed up slow tests: drop SSE broadcast on completion, switch to rustls-tls, replace hardcoded sleeps with poll loops, and prevent real API calls in ullm tests 2026-02-23 17:19:09 -05:00
stylesheet.rs Add shape selectors, LLM stream timeouts, MultiSelect questions, and test coverage 2026-02-23 17:43:05 -05:00
transform.rs Implement three missing spec features: SubPipelineHandler, GraphMergeTransform, HTTP Server 2026-02-22 12:07:44 -04:00