github mksglu/context-mode v0.9.16

latest releases: v1.0.89, v1.0.88, v1.0.87...
one month ago

What's New

FTS5 highlight()-based snippet extraction (#18)

Replaced indexOf-based snippet extraction with positions derived from FTS5 highlight() markers. Stemmed matches (e.g., query "configure" matching content "configuration") now produce correct snippet windows instead of falling back to blind prefix truncation.

  • Added highlight(chunks, 1, char(2), char(3)) to search SQL queries
  • extractSnippet parses STX/ETX markers to find match positions
  • Falls back to indexOf when highlighted field is absent
  • 14 new tests covering stemmed matching, multi-term windows, and edge cases

Upgrade fixes (v0.9.11–v0.9.15)

  • In-place upgrade with registry sync
  • Self-healing hook: directory rename, registry + hooks path fix, start.mjs shim creation
  • Removed SKILL.md registry verification step (shell escaping errors)

Upgrade

```
/context-mode:upgrade
```

Don't miss a new context-mode release

NewReleases is sending notifications on new releases.