Repository navigation
v1.5.1 — consume the v8.4.2 daemon contract
Closes siropkin/budi-cursor#55. Cuts the 1.5.x line of the host extension over to the surface dimension that v8.4.2 (siropkin/budi#714) ships: hardcodes ?surface=cursor on every analytics request, drops the v1.4.x host-side workaround that filtered the wire response by provider IN (cursor, copilot_chat) heuristically, and lifts compiled MIN_API_VERSION to 3 (the value the daemon now advertises on /health). Promise was graceful degrade, not break-on-old-daemons: a 1.5.1 extension hitting an 8.4.1 daemon prints the existing version-stale warning (budi · update needed) instead of silently rendering zeros.
Changed
buildStatuslineUrlhardcodes?surface=cursor(siropkin/budi-cursor#55). The Cursor extension is, by construction, cursor-bound — there is no host detection that would pick anything else. Stops sending?provider=…entirely; the daemon's surface filter is the correct scoping primitive (siropkin/budi#702) and the wire response is rendered as-is. Old daemons silently drop unknown query params, so the request shape is byte-safe against a pre-#702 daemon.MIN_API_VERSIONlifted from1to3(siropkin/budi-cursor#55). v8.4.2 is the first daemon release that bumps/health.api_versionpast1; older daemons trip the gate and fall throughderiveHealthState→version-stale→budi · update needed. Inline policy comment rewritten to mirror the cautionary tale of the v1.4.0 over-bump (siropkin/budi-cursor#40) without repeating it.DaemonHealth.surfacesexposed for forward-compat. v8.4.2 advertises["vscode","cursor","jetbrains","terminal","unknown"]on/health.surfaces; v1.5.1 reads but does not use the array — the v1.6.x surface picker UI will iterate it. Older daemons omit the field; readers tolerateundefined.
Removed
- Sub-IDE / Code-fork detection (
Hostenum,detectHost,surfaceFilterForHost,SURFACE_BY_HOST,buildProviderList,DEFAULT_PROVIDER_BY_HOST,formatHostLabel,defaultProviderForHost). All of it picked betweenvscodeandcursorfor the surface field; with?surface=cursorpinned, every branch exceptcursoris unreachable. Audit-and-remove parity with the JetBrains-side decision insiropkin/budi-jetbrains#6. src/extensionsProbe.tsand its test. The probe enumeratedvscode.extensions.allfor non-Cursor AI extensions (Copilot Chat, Continue, Cline, Roo Code) so v1.4.x could ask the daemon for?provider=copilot_chat,continue,…on a VS Code host. With v1.5.1's hardcoded?surface=cursor, the daemon's parser-local attribution returns whatever sub-providers Cursor itself routed; no client-side enumeration is needed.budi.includeOtherSurfacessetting. Was the v1.4.x opt-out for the cross-IDE aggregation. Superseded by the hardcoded?surface=cursor— v1.5.1 has no opt-out. The toggle pattern thatsiropkin/budi-jetbrains#6introduces (Include other surfaces) is the v1.6.x ask once both sides have shipped one round.
Notes
- New URL builder +
MIN_API_VERSIONgate test insrc/budiClient.test.tspin the v8.4.2 wire shape:?surface=cursoralways present,?provider=never sent,MIN_API_VERSION === 3,version-staleagainstapi_version: 1,green/yellowagainstapi_version: 3. Parity withsiropkin/budi-jetbrains#6v0.1 acceptance. - Welcome-view copy is now Cursor-only (matches
SOUL.mdframing).renderHtmlno longer takes ahostargument; the v1.4.0 host-aware variants (Shows your Copilot Chat spend, etc.) are gone with the rest of the multi-host plumbing. - No surface picker UI yet (that is the v1.6.x ask); no surface-aware status-bar copy (the user is by-construction host-bound, so the host-scoping is invisible). Multi-provider Copilot-Chat-via-Cursor sub-attribution is consumed unchanged from the daemon.