build: Fix property resolution in src/lib/base.ts. Obsidian's base dialect namespaces property tokens as note.KEY, but the eval #13
Loading…
Reference in a new issue
No description provided.
Delete branch "build/82aa94b5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix property resolution in src/lib/base.ts. Obsidian's base dialect namespaces property tokens as note.KEY, but the evaluator indexes frontmatter with the raw token, so the lookup of note.code is always undefined: every property-equals filter matches nothing and every property column renders empty, while folder filters keep working because they only touch path. Add one resolver helper that prefers an exact frontmatter key and otherwise strips a leading note. prefix and retries, then apply it at all three call sites: the property-equality comparison near line 99, the second comparison path near line 111, and the column fill near line 148. Tokens prefixed file. must keep resolving against the file record (path, name, folder), not frontmatter. Add unit tests pinning both dialects: notes with bare frontmatter keys matched by a base written in the namespaced dialect, and the same base written with bare keys, both returning rows and filling columns. Run the repo's own gate before finishing.
Built by Connor's backend backburner (dispatch
82aa94b5) in an isolated clone; shipped deterministically byship.py. The full build notes were spoken in conversation and stored in memory (agent-dispatch:82aa94b5). Review is the gate. Gate:npm run gate.