mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
d1ca37fcf4
Allow memory URLs to embed a project hint via standard query parameters, e.g. memory://specs/search?project=research. This lets AI assistants resolve the correct project from the URI alone, avoiding multi-project discovery round-trips that waste tokens and pollute context. - Remove ? from invalid_chars in validate_memory_url_path() - Add parse_memory_url() to extract query params from memory URLs - Update normalize_memory_url() to preserve query params through validation - Update memory_url_path() to strip query params when extracting paths - Extract ?project= in build_context, read_note, and read_content tools - Add comprehensive tests for parsing, normalization, and path extraction Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>