You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(extract): support Obsidian wikilinks + wiki-style domain slugs in canonical extractor
extractEntityRefs now recognizes both syntaxes equally:
[Name](people/slug) -- upstream original
[[people/slug|Name]] -- Obsidian wikilink (new)
Extends DIR_PATTERN to include domain-organized wiki slugs used by
Karpathy-style knowledge bases:
- entities (legacy prefix some brains keep during migration)
- projects (gbrain canonical, was missing from regex)
- tech, finance, personal, openclaw (domain-organized wiki roots)
Before this change, a 2,100-page brain with wikilinks throughout extracted
zero auto-links on put_page because the regex only matched markdown-style
[name](path). After: 1,377 new typed edges on a single extract --source db
pass over the same corpus.
Matches the behavior of the extract.ts filesystem walker (which already
handled wikilinks as of the wiki-markdown-compat fix wave), so the db and
fs sources now produce the same link graph from the same content.
Both patterns share the DIR_PATTERN constant so adding a new entity dir
only requires updating one string.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments