Repository navigation
Lint: resolve non-record links the way Obsidian does (0.4.3) - #10
Merged
Merged
Conversation
Lint called every [[a/b]] link that wasn't a record "not a record reference", so links to agent cards ([[tess/card]]) and other notes, which Obsidian resolves fine, showed up as hundreds of broken links. Now a link that isn't a record, or a record link that isn't in this brain, resolves like Obsidian: some file in the vault whose path ends with it. The vault is the outermost registered brain this one sits in, so a team brain can link to its company brain's notes and records. Links that match no file are still reported. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Lint reported every
[[a/b]]link that wasn't a record as "isn't a record reference". Links to agent cards ([[tess/card]]) and other notes resolve fine in Obsidian, but they appeared as hundreds of broken links in brains that use them.Fix
matches no file), and missing records still show asdoesn't exist.Tests
npm test: 53/53 pass. The new test covers a nested team brain, card links, aliases, and both kinds of genuinely broken link.🤖 Generated with Claude Code