Repository navigation
v1.5.4 — hygiene & cleanup
Hygiene & cleanup release. No user-visible runtime change since v1.5.3 — the status-bar copy, daemon contract, settings shape, and click-through URL are unchanged. Internal-only: stricter compile-time checks, a src/budiClient.ts split into focused modules, expanded test coverage with CI gates, a persisted version-stale toast, and a small docs/cross-version cleanup.
Fixed
- Persisted the version-stale upgrade toast across reloads (
siropkin/budi-cursor#79/ PR #87). The version-stale toast (budi · update needed) now fires at most once per install per unique stale-daemon signature instead of once per reload — the previous module-levelapiVersionWarningShownflag was lost on every editor restart, so dismissing the toast didn't stick. Signature is${version}|${api_version}persisted underbudi.lastWarnedStaleSignatureinglobalState; a user who later bumps to a different stale daemon (e.g. 8.4.0 → 8.4.1, bothapi_version=1) gets a fresh warning, while dismissing against the same daemon survives reloads. The polling loop continues running uninterrupted on the stale path —refreshDataalways re-arms — and a regression test pins the end-to-end "daemon too old" flow: fetch/health→ classifyversion-stale→ renderbudi · update needed→ tooltip namesbudi update→shouldShowVersionStaleToastflips once and stays off.
Maintenance
- Split
src/budiClient.tsinto focused modules (siropkin/budi-cursor#70/ PR #91). The 547-LOC client is gone; HTTP, health, render, and config now each live in their own files (src/http/statuslineClient.ts,src/health/healthState.ts,src/render/{statusText,tooltip,clickUrl}.ts,src/config/endpoints.ts) with per-module unit tests.extension.tsimports from the new paths directly — no compat shim, since the extension has no production users yet. Byte-identical statusline / tooltip behaviour; coverage thresholds re-targeted to the new layout. - Fleshed out
sessionStoretests and hardened v1 contract writes (siropkin/budi-cursor#72/ PR #92).writeActiveWorkspacenow writes atomically (temp file +rename) so a crash mid-write can never leave half-written JSON, and no-ops on a falsy workspace path. Test suite grew from a single contract-version assertion to a real suite covering the cursor-sessions.json v1 contract (ADR-0086 §3.4): v1 shape, parent-dir creation, idempotent repeated writes, atomic-write semantics, no-op for non-workspace activations, no temp-file leak on success, safe behavior on unwritable target paths. Coverage threshold forsrc/sessionStore.tslifted from30/30/100/0to97/97/85/100. - Dropped the legacy
today_cost/week_cost/month_costfallback inresolveCosts(siropkin/budi-cursor#68/ PR #90). Pre-#224 daemons emitted the deprecated 8.0 aliases as a one-release backward-compat shim; the canonicalcost_1d/cost_7d/cost_30dfields have been the wire shape sincesiropkin/budi#224and are guaranteed by every daemon advertisingapi_version >= 3. BecauseMIN_API_VERSION = 3already gates out every daemon old enough to lack the canonical fields (they fall into theversion-stalepath and renderbudi · update needed), the alias fallback insideresolveCostswas already unreachable. Stripped the alias fields fromStatuslineData, simplifiedresolveCoststo read the canonical shape only, and removed the two alias-fallback regression tests.MIN_API_VERSIONunchanged (the canonical contract long predates theapi_version=3floor). - Dropped a cross-version line from the README troubleshooting section (
siropkin/budi-cursor#73/ PR #89). README §"budi · update needed" no longer hardcodes "v1.5.x requires a v8.4.2-or-newer daemon" — exactly the cross-version narrative the user-visible copy scope rule says to keep out of marketplace-visible files. The runtime tooltip already names the installed daemon version and the requiredapi_version. - End-to-end code review of
src/against SOUL.md (siropkin/budi-cursor#67/ PR #83). Audit-only, no behaviour change. - Tightened TypeScript strict flags and ESLint rule set (
siropkin/budi-cursor#82/ PR #84). Tighter compile-time checks; no shipped JS difference. - Dead-code sweep (
siropkin/budi-cursor#81/ PR #85). Dropped unusedeslint-config-prettierdependency and the unusedInstallPlatformexport. - Vitest coverage thresholds + CI gate (
siropkin/budi-cursor#71/ PR #88).npm run test:coverageruns the v8 provider againstsrc/**with per-file floor thresholds; CI fails when coverage drops on any tracked file. Workflow surfaces a per-file coverage table in the PR check summary and uploads the full HTML report as an artifact. Thresholds start at today's floor — ratchet up in follow-ups as test coverage grows. - CHANGELOG hygiene pass (
siropkin/budi-cursor#80/ PR #86). Aligned headers to Keep a Changelog format and moved compare URLs to the bottom of the file. - Confirmed
MIN_API_VERSION = 3still matches v8.4.2's/health.api_version(siropkin/budi-cursor#79). No bump required for this release.