Repository navigation
v1.8.0
Security
- Strip terminal control characters (ESC, BEL, C0/C1, DEL) from untrusted Claude Code session JSON fields at ingest, closing an escape-sequence injection vector (CWE-150) where a malicious directory or model name could spoof the terminal title, reposition the cursor, or write the clipboard via OSC 52. Legitimate values are unaffected; only control bytes are removed (#191)
Changed
- Breaking:
$cship.cost.total_duration_msand$cship.cost.total_api_duration_msnow render human-readable durations (45s,1m30s,2h15m30s, or750msfor sub-second values) instead of raw milliseconds. If your config hasformat = "[$value ms]($style)", drop the literalms—$valueis no longer in milliseconds. Threshold configs (warn_threshold = 30000.0) keep working unchanged because comparisons still operate on raw milliseconds (issue #162).
Added
- Added the
{reset_at}placeholder tocship.usage_limits(five-hour, seven-day, and per-model formats), rendering the absolute local clock time a window resets (7:42 PM, orMon 9:00 AMwhen not today) alongside the existing relative{reset}. Mirrors{reset}'s handling of unknown/past resets (?/now) (@jasonhumphrey, #192) - Added the
cship.effortmodule ($cship.effort/$cship.effort.level), which displays the session's reasoning effort level (low/medium/high/xhigh/max) and reflects mid-session/effortchanges. Supports per-level styling vialow_style/medium_style/high_style/xhigh_style/max_style, each falling back tostyle. Renders nothing when the active model does not support the effort parameter (#187) $cship.cost.total_durationand$cship.cost.total_api_durationare accepted aliases for the_msversions, in both format-string variables and TOML config keys. Use whichever spelling reads better in your config — they resolve to the same field (issue #162).cship.accountmodule for displaying the currently authenticated Anthropic account (work vs personal) — sources organization and account info from the/api/oauth/profileendpoint, with opt-in label mapping so org names can be replaced with user-defined labels (e.g."Fulcrum Genomics" = "work"). Supports format string placeholders:{label},{organization},{display_name},{email},{tier},{type}. Cached for 24 hours (configurable viattl). (@nh13, #153)
Fixed
cship.accountHTTP fetch timeout lowered from 5s to 1500ms so it always completes inside the 2srecv_timeoutwindow infetch_with_timeout; previously a slow profile fetch was reported as timed out while the spawned thread (holding the OAuth token) kept runningcship explain cship.accountnow prints account-specific remediation (no credential / expired-or-unreachable / malformed credential) instead of the generic "module returned no value" fallback
Docs
- Documented the
cship.accountmodule in the README module table, configuration guide, and FAQ (setup, label mapping, andcship explaindiagnostics)
What's Changed
- style(docs): center hero and split tagline to match README by @stephenleo in #181
- style(docs): drop hero tagline and promote subtitle by @stephenleo in #182
- fix(docs): align showcase with README and restore missing Nerd Font glyphs by @stephenleo in #185
- fix(docs): restore missing Nerd Font glyphs in Hero usage_limits formats by @stephenleo in #186
- feat(account): add account module with cache invalidation on account switch by @nh13 in #153
- fix(account): clamp fetch timeout, add explain hint, document module by @stephenleo in #190
- feat(cost): auto-format duration fields as human-readable by @stephenleo in #164
- feat(effort): add $cship.effort reasoning-effort module by @tfenne in #188
- fix(security):
strip terminal control chars from untrusted session fields by @jorgevazquez in #191 - feat(usage_limits): add {reset_at} absolute reset-time placeholder by @Romboter in #192
- chore(release): v1.8.0 by @stephenleo in #193
New Contributors
- @tfenne made their first contribution in #188
- @jorgevazquez made their first contribution in #191
- @Romboter made their first contribution in #192
Full Changelog: v1.7.1...v1.8.0