cloudflare/polystella @cloudflare/polystella-core@0.9.0
cloudflare/polystella
Captured source
source ↗published Nov 27, 2026seen 11hcaptured 11hhttp 200method plain
@cloudflare/polystella-core@0.9.0
Repository: cloudflare/polystella
Tag: @cloudflare/polystella-core@0.9.0
Published: 2026-11-27T16:54:07Z
Prerelease: no
Release notes:
Minor Changes
- #96 `67e5f24` Thanks @diogoascarneiro! - Add
loadGlossariesWithSources, which returns each glossary with the YAML text it was read from.loadGlossariesis unchanged.
- #97 `31b55ee` Thanks @diogoascarneiro! - Add cost estimates for AI calls: tokens × list price. New exports:
ModelPrice,TokenUsage,estimateCostUsd,createModelPriceLookup,summarizeUsage,formatUsageSummary, and helpers for summing token usage.@cloudflare/polystella-core/providers/workers-aiaddsfetchWorkersAIModels,workersAIModelPrice, andworkersAIPriceLookup, which read list prices from the Workers AI model catalog. The Anthropic provider now reports token counts and stop reasons throughonResponse, and Workers AI replies report cached input tokens ascachedInputTokens.polystella translate-uilogs calls, tokens, and an estimated cost at the end of a run, and acceptsprovider.prices.