cost-bubble 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,16 +5,16 @@
5
5
  Cost Bubble sits as a lightweight native floating pill right beside your AI coding app’s sidebar—keeping the open session’s estimated spend, context-window fill, and active background chats visible at a glance without breaking your flow.
6
6
 
7
7
  <p align="center">
8
- <img src="docs/demo.gif" alt="Cost Bubble following a Codex session switch, expanding on hover, inspecting token context and full cost breakdown, then minimizing on hover away" width="840" />
8
+ <img src="docs/demo.gif" alt="Cost Bubble follows sample Codex chats, expands to show today’s sessions, and reveals the context window split, hourly burn chart, cost drivers, and clickable subagents on hover" width="840" />
9
9
  </p>
10
10
 
11
11
  ## What It Shows
12
12
 
13
13
  - **Live session pulse** — Automatically follows your open chat (`▸`) in **Codex**, **Claude Code**, or **Antigravity Desktop**, plus up to two other chats ranked by recent spend, weighted with a 150-second half-life.
14
- - **Input token gauge** — Four bars show the latest request’s input size. Their color changes at 50k, 100k, 200k and 300k tokens. Purple dots underneath mark active subagents.
15
- - **Instant cost breakdown** — Hover or click any price for last-5-minute, hourly, daily, and lifetime spend, input/output and cache token splits, per-request rates, and subagent / auto-review totals.
16
- - **Recent sessions on hover** — Hover the pill to compare recent chats, see today’s spend, sort by recent activity, daily cost or recency, or click any title to switch chats.
17
- - **Native & unobtrusive** — Built in Swift/AppKit. Drag or resize per app; hides automatically on home screens and ordinary non-Code Claude chats.
14
+ - **Input token gauge** — Four bars show the latest request’s input size. Their color changes at 50k, 100k, 200k and 300k tokens. Hover for a segmented cached/fresh context bar, headroom, and pricing-tier status. Purple dots underneath mark active subagents.
15
+ - **Instant cost breakdown** — Hover or click any price for 5-minute, hourly, daily, and lifetime spend, spend mix with cache-hit efficiency and estimated cache-miss overhead, a 1-hour stacked burn chart, top cost drivers with timestamps, and clickable Codex subagents.
16
+ - **Recent sessions on hover** — Hover the pill to compare recent chats, see today’s spend, sort by recent activity, daily cost or recency, or click any title to switch chats. Click outside or `×` to dismiss pinned popups.
17
+ - **Native & unobtrusive** — Built in Swift/AppKit. Drag or resize per app; stays quietly available on New Chat screens in Codex, Claude Code, and Antigravity while hiding on ordinary non-Code Claude chats.
18
18
 
19
19
  ---
20
20
 
@@ -43,8 +43,8 @@ Cost Bubble uses macOS Accessibility to detect the active chat, align beside the
43
43
  | Action | What happens |
44
44
  | --- | --- |
45
45
  | **Hover the pill** | Expands to show the current chat (`▸`) plus other chats active today (from your 12 most recent). |
46
- | **Hover the signal bars** | Shows the latest request’s input tokens inline and its share of the model’s context window. **Click** to pin it open. |
47
- | **Hover a price** | Opens the full cost breakdown: 5-min / 1-hr / today / lifetime spend, token & cache splits, per-request rates, and subagent / auto-review totals. **Click** to pin it open. |
46
+ | **Hover the signal bars** | Shows the latest request’s cached/fresh context split, headroom, and pricing tier. **Click** to pin it open (click outside or `×` to close). |
47
+ | **Hover a price** | Opens the full cost breakdown: 5-min / 1-hr / today / lifetime spend, spend mix & cache-miss overhead, 1-hour stacked burn chart, top cost drivers, and clickable Codex subagents. **Click** to pin it open. |
48
48
  | **Click a chat title** | Switches directly to that chat in the active desktop app. *(Antigravity leaves its picker open if multiple titles match.)* |
49
49
  | **Read the header total** | Shows today’s combined spend across this app’s chats. Lifetime estimates appear in each chat’s price breakdown. |
50
50
  | **Click `⇅`** | Cycles row order between **Decay**, **Cost**, and **Recent**. |
package/docs/demo.gif CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cost-bubble",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "A macOS cost HUD for Codex, Claude Code and Antigravity.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.1",
2
+ "version": "0.4.0",
3
3
  "teamID": "4YJ6CF8CRP",
4
- "sha256": "e8c45c02022019248503a2804007015d532a6f9869381424010bf3ab3f1dea29"
4
+ "sha256": "4bed090a01a0a3e4070e39af4f9bc7002d76f8d243be0aa65341ac6bfd70a421"
5
5
  }