From c870657220de50a37c3fb21960e6819799e4b587 Mon Sep 17 00:00:00 2001 From: stephenleo Date: Sun, 6 Sep 2026 17:26:05 +0800 Subject: [PATCH] chore(release): v1.8.2 Bumps to 1.8.2 and adds the changelog entries for the per-window usage_limits tokens with {bar} (#202), the CSHIP_ACCOUNT account source (#201), and the CSHIP_ACCOUNT explain-hint fix (#204). Co-Authored-By: Claude Opus 5 (1M context) --- CHANGELOG.md | 9 +++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f9e518..70d90e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [1.8.2] - 2026-09-06 + +### Added +- Added `$cship.usage_limits.session` and `$cship.usage_limits.weekly` tokens (aliases `.five_hour` / `.seven_day`) that render a single standard window colored by that window's own utilization, rather than `max(5h, 7d)` as `$cship.usage_limits` does, so the session and weekly limits can live on separate lines and escalate independently. Each per-window format string also accepts a `{bar}` placeholder with `bar_width` / `bar_filled_char` / `bar_empty_char` config, mirroring `context_bar` ([#202](https://github.com/stephenleo/cship/pull/202)) +- Added the `CSHIP_ACCOUNT` environment variable as a higher-priority account source: a compact JSON payload matching the account profile shape. Multi-account launchers that inject a per-session OAuth token can pass the resolved identity here instead of relying on the keychain path, which reports the last interactive login. Falls back to the keychain/OAuth path when the variable is absent or malformed. Non-secret identity only; never a token ([#201](https://github.com/stephenleo/cship/pull/201)) + +### Fixed +- `cship explain` now checks `CSHIP_ACCOUNT` first in the `account` hint, so a set-but-unparseable value is reported as the cause instead of the misleading "no credential found" / re-authenticate hint. A set-but-empty `CSHIP_ACCOUNT` now warns instead of failing silently ([#204](https://github.com/stephenleo/cship/pull/204)) + ## [1.8.1] - 2026-08-04 ### Added diff --git a/Cargo.lock b/Cargo.lock index d7c0c51..77b02b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -257,7 +257,7 @@ dependencies = [ [[package]] name = "cship" -version = "1.8.1" +version = "1.8.2" dependencies = [ "anyhow", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index 28989d5..d16f983 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cship" -version = "1.8.1" +version = "1.8.2" edition = "2024" description = "A beautiful, fully customizable statusline for Claude Code — Starship-style TOML config, themeable colours, Nerd Font glyphs, and tunable cost/context/usage thresholds" license = "Apache-2.0"