Skip to content

ThinkWatch Core 0.84.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 17:25
· 25 commits to main since this release

This release keeps a usage history that outlives the request records, for the past-year view in ThinkWatch Lite's overview.

Upgrade notes

  • The control-plane protocol version goes from 54 to 55.
  • The request store's schema and the configuration are unchanged; nothing is cleared.
  • A new file, usage.db, appears in the data directory next to data.db (permissions 0600). On first start it is filled from the request records already kept.
  • No new message codes.

Usage history. Every finished request is added to an hourly total (UTC hours): requests, failures, input, output, cache read and cache write tokens, exact and estimated cost, requests without a price or without usage, and bytes sent and received. Locally answered requests and token counts estimated by the gateway are not included, the same as in the summaries.

  • The totals live in their own file and keep their own schema version, so they are not deleted when request records pass the retention period, and not cleared when the request store is rebuilt after a schema change.
  • GET /summary/history (UsageHistory) takes the same from_ms, to_ms and bucket_ms as /summary/buckets and returns the buckets plus two times: since_ms, from when the history has data (days before it are not recorded, not unused), and detail_since_ms, the oldest request record still kept (views computed from request records are empty before it).
  • /summary/buckets and the history now share one definition of the totals.

zstd updated. The zstd crates move to zstd 0.14.3, zstd-safe 8.2.0 and zstd-sys 2.1.2, which fix RUSTSEC-2026-0391, RUSTSEC-2026-0398, RUSTSEC-2026-0403 and RUSTSEC-2026-0410. Compressed request bodies and Codex-bound bodies are handled as before.

Downloads

Platform Binary Archive for server installation
Linux, x86_64 twcore-x86_64-unknown-linux-gnu twcore-x86_64-unknown-linux-gnu.tar.gz
Linux, aarch64 twcore-aarch64-unknown-linux-gnu twcore-aarch64-unknown-linux-gnu.tar.gz
macOS, Apple silicon twcore-aarch64-apple-darwin —
Windows, x64 twcore-x86_64-pc-windows-msvc.exe —
Windows, ARM64 twcore-aarch64-pc-windows-msvc.exe —

Each file is published with a .sha256 file beside it. A Linux archive contains twcore, the systemd unit twcore.service and LICENSE. ThinkWatch Lite includes its own copy of twcore; the files here are for running core separately, such as on a server.

Server installation

On Linux (x86_64 or aarch64), the install script sets up twcore as a systemd service. This installs 0.84.0:

curl -fsSL https://raw.githubusercontent.com/ThinkWatchProject/ThinkWatch-Core/main/scripts/install.sh | sudo sh -s -- --version 0.84.0

An installation made with the script switches to 0.84.0 with:

sudo twcore upgrade --version 0.84.0 --restart

Configuration, the remote control port and connecting ThinkWatch Lite are described in docs/server.md.

Verifying a download

A .sha256 file holds the SHA-256 of the file followed by its name. With both files in the current directory, on Linux:

sha256sum -c twcore-x86_64-unknown-linux-gnu.tar.gz.sha256

On macOS:

shasum -a 256 -c twcore-aarch64-apple-darwin.sha256

On Windows, in PowerShell, the following prints True when the binary matches:

(Get-FileHash .\twcore-x86_64-pc-windows-msvc.exe).Hash -eq (Get-Content .\twcore-x86_64-pc-windows-msvc.exe.sha256).Split()[0]

The install script and twcore upgrade check the SHA-256 themselves.

What's Changed

  • Usage history: hourly totals in usage.db, served at /summary/history by @fylorn in #380
  • 0.84.0 by @fylorn in #381

Full Changelog: v0.83.2...v0.84.0