fabro/lib/apps/fabro-cli/src
Bryan Helmkamp 850d5cca52
Bill an agent stage's whole session tree from one fold
One usage rule: a stage's usage is its session tree's, the root and every
subagent, live and at completion. The worker's event sink folds pebble's
SessionProjection over the events it records and the stage's billing and
files come from that fold at stage end, so the completed values are what
the run showed live. The store's live usage is the fold's tree usage, and
completion brings the catalog's price for the same tokens instead of
resetting them to the root's.

Fabro keeps catalog pricing: the root at its route, each descendant at its
own route where the catalog knows it and at the root's otherwise, a
provider-reported cost standing in where pebble has one. The rows travel
as billing_by_model on stage.completed and the stage projection, and the
billing rollup splits by_model by them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 07:49:27 -06:00
..
commands Bill an agent stage's whole session tree from one fold 2026-09-13 07:49:27 -06:00
shared Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
sleep_inhibitor refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
args.rs Simplify CLI repository selectors and add workflow shorthand 2026-09-12 14:18:34 -06:00
command_context.rs Implement the lithos CredentialProvider trait directly 2026-09-10 09:16:39 -06:00
gh.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
landing.rs Create CLI runs from immutable workflow intents 2026-09-01 16:14:34 -04:00
local_server.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
logging.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
main.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
manifest_args.rs Simplify the CLI run-intent create path 2026-09-01 16:14:34 -04:00
server_client.rs fix(cli): raise doctor health check timeout to 1s 2026-08-04 16:43:42 +01:00
server_runs.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
user_config.rs Use async reads during CLI intent preparation 2026-09-02 13:44:33 -04:00