ReleaseCloudflare (Workers AI)Cloudflare (Workers AI)published Nov 27, 2026seen 11h

cloudflare/polystella @cloudflare/polystella-core@0.9.0

cloudflare/polystella

Open original ↗

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. loadGlossaries is 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-ai adds fetchWorkersAIModels, workersAIModelPrice, and workersAIPriceLookup, which read list prices from the Workers AI model catalog. The Anthropic provider now reports token counts and stop reasons through onResponse, and Workers AI replies report cached input tokens as cachedInputTokens. polystella translate-ui logs calls, tokens, and an estimated cost at the end of a run, and accepts provider.prices.