Skip to content

v0.25.0 — `brain context` matches projects and events by whole words, and filters by type and tag

Choose a tag to compare

@Sako404 Sako404 released this 20 Nov 21:02
· 2 commits to main since this release
5a1ef1c

Fixed

  • brain context / get_context listed projects and timeline events whose
    id, name, alias or title merely contained a query word: "a" is inside
    many names, so a question such as "Design a website for a client" listed
    nearly every registered project and the ten newest events, while
    "Jaki jest status TRON?" listed no project at all ("tron?" was compared
    with the punctuation). Words are now compared whole, ignoring case,
    diacritics and punctuation, without English or Polish function words. A
    project named outright (its whole name, an alias or its id slug) is listed
    without the projects that only share a word with the question; otherwise a
    shared word of three or more letters still matches, as before. Timeline
    events for a named project are those that name it, narrowed to the ones
    that also share the question's other words when there are any; an unnamed
    question needs one shared word if it has one subject word, two otherwise.
    Words that ask about state ("status", "next", "dalej") never pick a project
    or an event on their own.
  • A question with no subject words left (only function words, auxiliary
    verbs or single letters, e.g. "what is it?", "jak to zrobić?") returns an
    empty context instead of arbitrary notes. Polish function words, Polish
    auxiliary verbs and one-character tokens are dropped from the question
    before the note search; English questions reach the search as before.
    brain search is unchanged.
  • A note is returned only if its title, aliases, text or tags contain the
    question's subject words: all of a one-word question, at least two of a
    longer one, compared as whole words. The search's loosest tier returns a
    note for any single word or shared stem, so "pogoda w Londynie jutro"
    listed every note that says "jutro" and "recipe for pancakes" every note
    that says "recipient".

Added

  • brain context --type T / --tag G, and type / tag on the
    get_context MCP tool: the same exact type and tag filters as
    brain list, applied inside the search so every relevance tier sees only
    matching notes. With --type, the projects section is kept only for type
    project and the timeline only for type event; --tag leaves both
    empty. The response keeps the same five keys.

SHA-256

3f2b86e1d4f8c06de3e1352d24f0a2c9a6c8afd045619ac69235b0131bc6610a  sako_brain-0.25.0-py3-none-any.whl
c156e9e93749a1d0ea8e752870bd9949361c669864777be7b2b74177bb3e1ca6  sako_brain-0.25.0.tar.gz

Full history in CHANGELOG.md.