• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jyablonski / arc / 27505762145
74%

Build:
DEFAULT BRANCH: main
Ran 14 Jun 2026 04:56PM UTC
Jobs 1
Files 77
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jun 2026 04:56PM UTC coverage: 74.068% (-0.7%) from 74.762%
27505762145

push

github

web-flow
feat: add `arc ai pricing` cmd (#26)

## Description

Adds `arc ai pricing`, a command that fetches a current model pricing
table into a local cache so `arc ai tokens` cost estimates stay accurate
without an `arc` release. Pricing is resolved from a hand-edited
override over the fetched cache over built-in defaults, keeping `arc ai
tokens` fully offline.

### Added

- `arc ai pricing` command (`--source`, `--dry-run`, `-j`) that fetches
LiteLLM's table into `~/.cache/arc/ai-pricing.json`.
- `LayeredPricer` plus pricing fetch/cache/override loaders in
`internal/ai`, with tests.
- `docs/ai_pricing.md` documenting the layering and override file
format.

### Updated

- `arc ai tokens` now prices via the layered pricer instead of the
static table.
- README, AGENTS.md, and `docs/ai_tokens.md` to reference the new
command and layered pricing.

117 of 217 new or added lines in 4 files covered. (53.92%)

4350 of 5873 relevant lines covered (74.07%)

5.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
65
54.39
-21.24% cmd/ai.go
24
68.0
internal/ai/pricing_cache.go
11
76.09
internal/ai/pricing_fetch.go
Jobs
ID Job ID Ran Files Coverage
1 27505762145.1 14 Jun 2026 04:56PM UTC 77
74.07
GitHub Action Run
Source Files on build 27505762145
  • Tree
  • List 77
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5e67adac on github
  • Prev Build on main (#27470952438)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc