mirror of
https://github.com/aaronsb/obsidian-mcp-plugin.git
synced 2026-07-22 06:45:14 +00:00
formatFileRead truncated the string branch to a 50-line preview; since raw defaults false, the DEFAULT vault.read was that truncated view — an agent reading any >50-line file could not derive a byte-matching edit.window oldText without raw:true, the exact #133 friction ADR-203 retires. The data layer was already byte-faithful; the presentation default undercut it. - string branch: emit full content verbatim, no 50-line slice, no wrapping code fence (body may contain fences — a wrapper would corrupt round-trip) - add non-text/binary passthrough guard (closes a pre-existing latent formatter-error path; reviewer non-blocking note) - test now asserts the FORMATTED (raw:false) output is byte-exact, not just not.toThrow make check green: 0 errors, baseline 5 warnings, 244/244. |
||
|---|---|---|
| .. | ||
| config | ||
| formatters | ||
| indexing | ||
| security | ||
| semantic | ||
| tools | ||
| types | ||
| utils | ||
| validation | ||
| browser-mcp-server.ts | ||
| main-complex.ts | ||
| main-simple.ts | ||
| main.ts | ||
| mcp-server.ts | ||
| node-mcp-server.ts | ||
| version.ts | ||