fabro/lib/apps/fabro-cli/src/commands
Bryan Helmkamp 27f16f89c4
Delete fabro's own pricing: lithos-llm prices every response once
lithos-llm attaches a cost to every response at the client: the codec
keeps a provider-reported cost when the provider supplies one, and the
resolver fills the catalog's price for the route when it does not.
Pebble records that priced usage on every assistant turn and sums it,
so each AssistantMessage on the stream, and the store fold's live stage
usage, already carries the cost. Fabro's catalog re-pricing of the same
tokens was redundant, and is gone.

model_usage_from_llm, with_reported_cost, and every estimate_cost call
in fabro are deleted. The pebble handler's stage_usage groups pebble's
accounts by route and sums them with Usage::saturating_add, keeping the
cost and source pebble carried, so the terminal stage.completed usage is
the live fold's sum; it no longer fails when the catalog does not know a
provider. A one-shot prompt stage records the response's own usage and
cost as lithos-llm returned it. The per-model price cards in fabro-llm's
API module stay.

Tests: the pebble handler sums Catalog and Provider costs per row and
leaves a row's and the total's cost unknown once an answer was unpriced;
the store fold shows the same tokens and cost live and at completion,
and None at both for an unpriced answer; the agent integration test
compares the whole completed Usage with the live fold, cost included;
a one-shot prompt stage on a mocked OpenAI-compatible provider reports a
Catalog cost that lithos-llm's resolver attached, with no fabro pricing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14 14:46:44 -06:00
..
artifact Address artifact review feedback 2026-07-29 16:37:59 -04:00
auth refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
config refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
mcp Simplify run creation to registered workflow versions 2026-09-12 11:04:15 -06:00
parent refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
pr refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
provider Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
repo Create CLI runs from immutable workflow intents 2026-09-01 16:14:34 -04:00
run Delete fabro's own pricing: lithos-llm prices every response once 2026-09-14 14:46:44 -06:00
runs Expose lithos request and response shapes through the API, server, CLI, and web 2026-09-09 17:26:57 -06:00
sandbox refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
secret refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
server Remove expired startup secret migrations 2026-09-05 14:05:48 -04:00
system refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
variable refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
workflow refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
cli_reference.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
doctor.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
dump.rs Unify blob hash vocabulary 2026-08-17 13:56:19 -04:00
exec.rs Print tool calls and the transcript under fabro exec --verbose 2026-09-14 10:56:53 -06:00
graph.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
install.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
mod.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
model.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
parse.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
preflight.rs Remove run IDs from create manifest producers 2026-08-01 11:47:11 -04:00
render_graph.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
uninstall.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
upgrade.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
validate.rs fix(cli): keep offline validation catalog-free 2026-07-26 09:25:47 -04:00
version.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00