mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
c4c9f842ea
Fixes issues #29 and #33 from openclaw-basic-memory. 🔧 Identifier resolution (#33): - Router used get_by_permalink() which only matched exact permalinks. Replaced with link_resolver.resolve_link() so titles, paths, and fuzzy matches work consistently with other tools like read_note. - Set total_entities=1 and total_notes=len(results) on single-note path for consistency with batch path. - Guards for "no notes" and "no schema" now fire for identifier-based validation too, not just note_type-based. 🎨 Text rendering (#29): - Tool returned raw Pydantic model which LLMs rendered as "undefined — invalid". Now returns pre-formatted markdown. - Router uses entity.title (with permalink fallback) as note_identifier for human-readable output in both text and JSON modes. - JSON output (output_format="json") unchanged for CLI compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>