Commit graph

11 commits

Author SHA1 Message Date
75049903e7 Auto-detect 'wsl.exe -d Ubuntu bash -lc claude' as default on Windows; record milestone in memory 2026-05-09 01:55:51 +01:00
db9a10a4c2 Replace cap-based estimation with PTY-driven 'claude /usage' parser
The widget now spawns 'claude' via portable-pty, sends /usage, parses the
three rendered bars (Current session / Current week all / Current week
Sonnet), and shows the real percentages in the ring + weekly bars. A
background task refreshes every 5 minutes; the title-bar refresh button
forces an immediate fetch.

Drops the cap-tuning UI and tier card from Settings; adds a 'claude command'
override (e.g. 'wsl.exe -- claude' for Windows-host widgets reading WSL
credentials) and a refresh-interval setting. Fixes title-bar buttons getting
swallowed as drag attempts via data-tauri-drag-region="false".
2026-05-09 01:40:44 +01:00
18e55cd139 tier: per-path probe diagnostics — surface read errors / parse status in TierInfo.searched 2026-05-09 01:19:52 +01:00
c5c38d1ce5 Don't canonicalize roots — \\?\UNC\... prefix breaks downstream Path ops 2026-05-09 01:15:58 +01:00
9d10c1f46f detect_plan_tier: re-resolve roots fresh; expose searched paths in TierInfo for diagnosis 2026-05-09 01:11:43 +01:00
f33bb5481b Detect tier across WSL roots, not just native home (\\wsl$\<distro>\... probe) 2026-05-09 01:00:50 +01:00
ef84257ddd Detect plan tier from .claude.json; seed sane caps per tier (Pro/Max 5x/Max 20x) 2026-05-09 00:54:50 +01:00
8c25b015a7 Remove autostart JSON config (plugin takes args via Rust init(), not tauri.conf.json) 2026-05-09 00:42:48 +01:00
ab75ca9bbb Fix watch.rs: import notify::Watcher trait, use tauri JoinHandle, drop unused imports 2026-05-09 00:41:10 +01:00
14ffcf4bd3 Add Rust modules: paths, jsonl, usage, watch, commands, state, settings 2026-05-09 00:05:12 +01:00
8abb0599f6 Add Tauri config, Cargo.toml, capabilities 2026-05-09 00:00:55 +01:00