Skip to content

Show enrichment provider credits in CLI receipts - #290

Merged
developersdigest merged 1 commit into
mainfrom
enrichment-receipt-credits
Sep 29, 2026
Merged

developersdigest merged 1 commit into
mainfrom
enrichment-receipt-credits

Conversation

@developersdigest

@developersdigest developersdigest commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

A successful firecrawl/enrich call can report 30 provider credits while the CLI prints Credits: 0, because the receipt only recognizes SQL's separately billed costs. Include enrichment's providerCredits in the existing separate-cost receipt field and displayed total, retaining the outer request's zero charge.

Incomplete or invalid enrichment cost reports are labeled as known credits, with a notice that additional costs may have been incurred. providerCostsComplete reflects completeness of the API's reported amounts, not independent confirmation of billing settlement. The change does not modify API responses, charge users or sum step costs a second time. Existing SQL and search receipt behavior remains intact.

Validation: all 28 receipt tests pass, TypeScript build passes, formatting and diff checks pass. The built formatter reproduces the reported case as Credits: 30 (0 outer request + 30 separately billed provider calls) without making a paid request.


Summary by cubic

Fixes CLI receipts showing Credits: 0 after enrichment calls that report provider credits. Enrichment's providerCredits now count toward the separately billed total and displayed total, while the outer request stays at zero.

  • Incomplete or invalid enrichment cost reports are labeled as known credits with a notice that additional costs may be incurred.
  • providerCostsComplete reflects API-reported completeness, not billing confirmation.
  • API responses, billing charges, and SQL/search receipt behavior are unchanged.

Written for commit a2151d4. Summary will update on new commits.

Review in cubic

@developersdigest
developersdigest merged commit 7d4da06 into main Sep 29, 2026
8 checks passed
@developersdigest
developersdigest deleted the enrichment-receipt-credits branch September 29, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant