MJ::Spend
Cost ledger for paid API calls. Runware reports a per-task cost (USD) when a
task asks for it with includeCost; every billed call is tallied for the run and
appended as one JSONL row to a persistent ledger, so spend is visible per-call,
per-run and over time (mj spend).
ledger $MJ_SPEND_LOG, else $XDG_DATA_HOME/mj/spend.jsonl off MJ_SPEND_LOG=0 — no ledger row is written (the run tally still prints)
A row: {"t","cmd","provider","task","model","cost","w","h"} — cost may be null if
the provider returned none (never silently counted as free; see unpriced).
Instance methods
Record one billed call. cost nil = the provider reported none.
Human summary of the ledger since since (nil = everything): a per-day table,
then breakdowns by model and by command.
JSON form of the same window, for scripts.