bullswarm 0.38.9 → 0.38.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/data/openrouter-benchmarks.json +6225 -6048
- package/package.json +1 -1
- package/src/lib/config.js +36 -1
- package/src/lib/usage.js +53 -5
- package/src/lib/watch.js +10 -3
- package/src/providers/_schema.json +9 -0
- package/src/providers/claude-code/connector-history.json +4 -0
- package/src/providers/claude-code/connector.json +2 -1
- package/src/workflow/fleet-view.js +1 -1
- package/src/workflow/reconcile.js +8 -7
- package/src/workflow/reprice.js +26 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.38.11 — a 5h-only seat is paced on its 5h window; Claude Haiku 5.5 priced
|
|
6
|
+
|
|
7
|
+
- routing: a seat whose provider reports only a 5-hour window (a Claude Team seat: the usage API returns no weekly figure) is now paced on that window: surplus = 5h elapsed − 5h used, and a window not yet opened counts as wholly unspent. Before, it read `unmetered surplus=0` and routing reached it only once every other pool had fallen behind, so its 5-hour windows expired unused. `bullswarm pools` reads `5h used 48% elapsed 52.1%`, and Fleet names a `5-hour window`. Pools with a weekly or monthly window keep 5h as a gate only.
|
|
8
|
+
- pricing: Claude Haiku 5.5 has a price row (read 2026-10-09): $0.10 input / $0.01 cache hit / $0.125 5m write / $0.20 1h write / $0.50 output, and for a request whose prompt is over 100,000 tokens $0.50 / $0.05 / $0.625 / $1 / $2.50. A row's `longContext.thresholdTokens` now tiers any request no reader tagged, so Claude transcript requests are priced one by one. A provider-reported attempt whose prompts together pass the line takes its transcript's requests when they add up to the same total; otherwise the pricing pass leaves it unpriced rather than charge the low rates.
|
|
9
|
+
|
|
10
|
+
## 0.38.10 — prices dated by when the attempt ran; Sonnet 5.5 cache reads $0.20 before 7 Oct
|
|
11
|
+
|
|
12
|
+
- pricing: a rate card can carry dated history (`pricingHistory`: earlier rates, each with the time it ended), and an attempt is priced at the rate in force when it started. Anthropic cut Claude Sonnet 5.5 cache reads from $0.20 to $0.10 per million on 2026-10-07 (release notes); 0.38.9 applied $0.10 to every date. Attempts started before 7 Oct now price at $0.20 (all 48 on the live home), later ones at $0.10.
|
|
13
|
+
- pricing: the automatic pricing pass also re-prices an already-priced attempt when the rate in force at its start differs from the card it was priced with. On the live home this corrects 2 Opus 5.5 attempts from 22 Sep that were priced with the card from before 23 Sep, where Opus 5.5 inherited Opus 5's price ($29.26 → $15.20, $13.90 → $7.74). Attempts priced at the right card are left alone.
|
|
14
|
+
|
|
5
15
|
## 0.38.9 — automatic pricing catches up when a rate card arrives; codex long-context pricing
|
|
6
16
|
|
|
7
17
|
- pricing: the automatic pricing pass now prices attempts whose token counts were measured but whose model had no rate card yet. It only revisited unknown or byte-estimated attempts, so a model that gained its price in a release (Sonnet 5.5 in 0.38.8, the gpt-6 rows in 0.37.3) stayed `unpriced` until someone ran `reprice --apply`. Such attempts are now priced from their own recorded counts at today's card (no transcript lookup, no ledger tries), and a new package version or a changed connector override re-reads every run once. On the live home this prices 92 attempts (about $63).
|