Skip to content

v1.8.0

Choose a tag to compare

@github-actions github-actions released this 29 Jun 01:06
· 17 commits to main since this release
b297fdf

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_ms and $cship.cost.total_api_duration_ms now render human-readable durations (45s, 1m30s, 2h15m30s, or 750ms for sub-second values) instead of raw milliseconds. If your config has format = "[$value ms]($style)", drop the literal ms — $value is 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 to cship.usage_limits (five-hour, seven-day, and per-model formats), rendering the absolute local clock time a window resets (7:42 PM, or Mon 9:00 AM when not today) alongside the existing relative {reset}. Mirrors {reset}'s handling of unknown/past resets (? / now) (@jasonhumphrey, #192)
  • Added the cship.effort module ($cship.effort / $cship.effort.level), which displays the session's reasoning effort level (low/medium/high/xhigh/max) and reflects mid-session /effort changes. Supports per-level styling via low_style / medium_style / high_style / xhigh_style / max_style, each falling back to style. Renders nothing when the active model does not support the effort parameter (#187)
  • $cship.cost.total_duration and $cship.cost.total_api_duration are accepted aliases for the _ms versions, 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.account module for displaying the currently authenticated Anthropic account (work vs personal) — sources organization and account info from the /api/oauth/profile endpoint, 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 via ttl). (@nh13, #153)

Fixed

  • cship.account HTTP fetch timeout lowered from 5s to 1500ms so it always completes inside the 2s recv_timeout window in fetch_with_timeout; previously a slow profile fetch was reported as timed out while the spawned thread (holding the OAuth token) kept running
  • cship explain cship.account now prints account-specific remediation (no credential / expired-or-unreachable / malformed credential) instead of the generic "module returned no value" fallback

Docs

  • Documented the cship.account module in the README module table, configuration guide, and FAQ (setup, label mapping, and cship explain diagnostics)

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

Full Changelog: v1.7.1...v1.8.0