{"_id":"@aryee337/hashline","_rev":"7-97acf941cc1820cd39e44da3b60f0275","name":"@aryee337/hashline","dist-tags":{"release":"0.2.10","latest":"0.3.8"},"versions":{"0.2.29":{"name":"@aryee337/hashline","version":"0.2.29","keywords":["patch","diff","edit","hashline","agent","llm"],"author":{"name":"aryee337"},"license":"MIT","_id":"@aryee337/hashline@0.2.29","maintainers":[{"name":"paryee","email":"aryeebus337@gmail.com"}],"homepage":"https://aery.dev","bugs":{"url":"https://github.com/eminent337/aery/issues"},"dist":{"shasum":"3763fa23f0a43145bbfe3cabca5d9b210fb5b140","tarball":"https://registry.npmjs.org/@aryee337/hashline/-/hashline-0.2.29.tgz","fileCount":22,"integrity":"sha512-Z+RsOIiCWT7qKpcAXMsDxSqgcB1MR11ERf8xrSrOGcsc8oYiNnujWi9Mt74mpWhws9CQ8O4RnZoqVfGA2egEFA==","signatures":[{"sig":"MEUCIQCU9A9AzOaXNCOrkKBZwAEFVdyQ7E/yCP/q9yAPS8JeTQIgRGedLmy/eBft61NVrMi01Ca29HNYp4J73EAh+T87BPI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":145365},"main":"./src/index.ts","type":"module","types":"./src/index.ts","engines":{"bun":">=1.3.14"},"exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"},"./*":{"types":"./src/*.ts","import":"./src/*.ts"},"./*.js":"./src/*.ts","./prompt.md":"./src/prompt.md","./grammar.lark":"./src/grammar.lark"},"gitHead":"bfb3b2584c54a9af5192bf9adc23f19eb24b504b","scripts":{"fix":"biome check --write --unsafe .","fmt":"biome format --write .","lint":"biome lint .","test":"bun test --parallel","check":"biome check . && bun run check:types","check:types":"tsgo -p tsconfig.json --noEmit"},"_npmUser":{"name":"paryee","email":"aryeebus337@gmail.com"},"repository":{"url":"git+https://github.com/eminent337/aery.git","type":"git","directory":"packages/hashline"},"_npmVersion":"11.14.1","description":"Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.","directories":{},"_nodeVersion":"26.2.0","dependencies":{"diff":"catalog:","lru-cache":"catalog:"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"catalog:"},"_npmOperationalInternal":{"tmp":"tmp/hashline_0.2.29_1781120522573_0.08240040005599147","host":"s3://npm-registry-packages-npm-production"}},"0.2.10":{"name":"@aryee337/hashline","version":"0.2.10","keywords":["patch","diff","edit","hashline","agent","llm"],"author":{"name":"aryee337"},"license":"MIT","_id":"@aryee337/hashline@0.2.10","maintainers":[{"name":"paryee","email":"aryeebus337@gmail.com"}],"homepage":"https://aery.dev","bugs":{"url":"https://github.com/eminent337/aery/issues"},"dist":{"shasum":"7fc63c52168593dfd2c617399cd66a1320f15821","tarball":"https://registry.npmjs.org/@aryee337/hashline/-/hashline-0.2.10.tgz","fileCount":40,"integrity":"sha512-tLjUU5ssAyaaaGYLTNeOqFO/XDknjfNCInvQenkAD+L3XNVs7Wi4Qr4h2DVW8rXu+D893tEzxw6ly+r2DE3xaQ==","signatures":[{"sig":"MEYCIQCsSjcfr4V0LQaYZ3QfljXuoMVFUjWUabhCYYOZs/h4eQIhANnwYhQrNNRSWBW5bnsRUP+xhbcKnkC+2X6uiI2mV/dS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":188021},"main":"./src/index.ts","type":"module","_from":"file:/tmp/aery-pack-27J3DX/aryee337-hashline-0.2.10.tgz","types":"./dist/types/index.d.ts","engines":{"bun":">=1.3.14"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./src/index.ts"},"./*":{"types":"./dist/types/*.d.ts","import":"./src/*.ts"},"./*.js":"./src/*.ts","./prompt.md":"./src/prompt.md","./grammar.lark":"./src/grammar.lark"},"scripts":{"fix":"biome check --write --unsafe .","fmt":"biome format --write .","lint":"biome lint .","test":"bun test --parallel","check":"biome check . && bun run check:types","check:types":"tsgo -p tsconfig.json --noEmit"},"_npmUser":{"name":"paryee","email":"aryeebus337@gmail.com"},"_resolved":"/tmp/aery-pack-27J3DX/aryee337-hashline-0.2.10.tgz","_integrity":"sha512-tLjUU5ssAyaaaGYLTNeOqFO/XDknjfNCInvQenkAD+L3XNVs7Wi4Qr4h2DVW8rXu+D893tEzxw6ly+r2DE3xaQ==","repository":{"url":"git+https://github.com/eminent337/aery.git","type":"git","directory":"packages/hashline"},"_npmVersion":"11.16.0","description":"Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"diff":"^9.0.0","lru-cache":"11.5.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/bun":"^1.3.14"},"_npmOperationalInternal":{"tmp":"tmp/hashline_0.2.10_1781138796711_0.49095175447301176","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aryee337/hashline","version":"0.3.0","keywords":["patch","diff","edit","hashline","agent","llm"],"author":{"name":"aryee337"},"license":"MIT","_id":"@aryee337/hashline@0.3.0","maintainers":[{"name":"paryee","email":"aryeebus337@gmail.com"}],"homepage":"https://aery.dev","bugs":{"url":"https://github.com/eminent337/aery/issues"},"dist":{"shasum":"74e660c3a35eb015eb2f689c7e3d6b2a5a6956ea","tarball":"https://registry.npmjs.org/@aryee337/hashline/-/hashline-0.3.0.tgz","fileCount":22,"integrity":"sha512-V/dXeOK7FmJYhEJVPk+B70+WKIq3IPigiBdtWYlF5gQToY3KE/z7Pdp40E8SJR3lRVanjrIMHnvLQ0rmxGy1XA==","signatures":[{"sig":"MEUCIDJ0TQkU8Ir1jEupnpGsF5Cvcg0F6o2t3RHhijA/6NpYAiEAn6y1xZNxvHjh2Aw3yMC42XBF5ZrFgV7KAV78iXfR3Uw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":145459},"main":"./src/index.ts","type":"module","types":"./src/index.ts","engines":{"bun":">=1.3.14"},"exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"},"./*":{"types":"./src/*.ts","import":"./src/*.ts"},"./*.js":"./src/*.ts","./prompt.md":"./src/prompt.md","./grammar.lark":"./src/grammar.lark"},"gitHead":"7ae506fcc4e8919c6e375f0c1be1466120a681d6","scripts":{"fix":"biome check --write --unsafe .","fmt":"biome format --write .","lint":"biome lint .","test":"bun test --parallel","check":"biome check . && bun run check:types","check:types":"tsgo -p tsconfig.json --noEmit"},"_npmUser":{"name":"paryee","email":"aryeebus337@gmail.com"},"repository":{"url":"git+https://github.com/eminent337/aery.git","type":"git","directory":"packages/hashline"},"_npmVersion":"11.14.1","description":"Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.","directories":{},"_nodeVersion":"26.2.0","dependencies":{"diff":"catalog:","lru-cache":"catalog:"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"catalog:"},"_npmOperationalInternal":{"tmp":"tmp/hashline_0.3.0_1781200334868_0.7985809167902864","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@aryee337/hashline","version":"0.3.2","keywords":["patch","diff","edit","hashline","agent","llm"],"author":{"name":"aryee337"},"license":"MIT","_id":"@aryee337/hashline@0.3.2","maintainers":[{"name":"paryee","email":"aryeebus337@gmail.com"}],"homepage":"https://aery.dev","bugs":{"url":"https://github.com/eminent337/aery/issues"},"dist":{"shasum":"baa418a53a3da5422e205dcdacaa1ff23f175747","tarball":"https://registry.npmjs.org/@aryee337/hashline/-/hashline-0.3.2.tgz","fileCount":40,"integrity":"sha512-BTXcB0AIEqtZdIJ2oJcA3xlR6nLPB50mGLNHuNmwySWhIYfaEjguUfFA66mmuVKh7nqAzDIpw7FvanUX5bDFNQ==","signatures":[{"sig":"MEUCIQCZ656oqYQaEesYmAYE2TJiMWGwIkAqYZ7EjfUXfX4yCwIgDaDP54dPoM1bhsdV3P7/BNE5nr4a9iLOGdoemDmEP00=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":188020},"main":"./src/index.ts","type":"module","_from":"file:/tmp/aery-pack-mIIsXA/aryee337-hashline-0.3.2.tgz","types":"./dist/types/index.d.ts","engines":{"bun":">=1.3.14"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./src/index.ts"},"./*":{"types":"./dist/types/*.d.ts","import":"./src/*.ts"},"./*.js":"./src/*.ts","./prompt.md":"./src/prompt.md","./grammar.lark":"./src/grammar.lark"},"scripts":{"fix":"biome check --write --unsafe .","fmt":"biome format --write .","lint":"biome lint .","test":"bun test --parallel","check":"biome check . && bun run check:types","check:types":"tsgo -p tsconfig.json --noEmit"},"_npmUser":{"name":"paryee","email":"aryeebus337@gmail.com"},"_resolved":"/tmp/aery-pack-mIIsXA/aryee337-hashline-0.3.2.tgz","_integrity":"sha512-BTXcB0AIEqtZdIJ2oJcA3xlR6nLPB50mGLNHuNmwySWhIYfaEjguUfFA66mmuVKh7nqAzDIpw7FvanUX5bDFNQ==","repository":{"url":"git+https://github.com/eminent337/aery.git","type":"git","directory":"packages/hashline"},"_npmVersion":"11.17.0","description":"Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"diff":"^9.0.0","lru-cache":"11.5.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14"},"_npmOperationalInternal":{"tmp":"tmp/hashline_0.3.2_1781212715269_0.08086839601190654","host":"s3://npm-registry-packages-npm-production"}},"0.3.5":{"name":"@aryee337/hashline","version":"0.3.5","keywords":["patch","diff","edit","hashline","agent","llm"],"author":{"name":"aryee337"},"license":"MIT","_id":"@aryee337/hashline@0.3.5","maintainers":[{"name":"paryee","email":"aryeebus337@gmail.com"}],"homepage":"https://aery.dev","bugs":{"url":"https://github.com/eminent337/aery/issues"},"dist":{"shasum":"bdb819cd3c9931c93e5d0142de3eddc7cca54833","tarball":"https://registry.npmjs.org/@aryee337/hashline/-/hashline-0.3.5.tgz","fileCount":40,"integrity":"sha512-N+rkr0MwklDDzfTI7b0fsEUZXsPQ+jlsd19L4spvvU6vOYjTbILuqfLA99tGc+t2H1mZBqYoDEMvVZ5SBkzd1Q==","signatures":[{"sig":"MEQCIA7yOTZwhQ/n96jqEayexsZb5MnWi3/E484mxOh9hR2HAiBB8gkaHAjkhDos798aocvjzDm3JPZgY/MeP2051suSww==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":188036},"main":"./src/index.ts","type":"module","_from":"file:/tmp/aery-pack-5XE5TP/aryee337-hashline-0.3.5.tgz","types":"./dist/types/index.d.ts","engines":{"bun":">=1.3.14"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./src/index.ts"},"./*":{"types":"./dist/types/*.d.ts","import":"./src/*.ts"},"./*.js":"./src/*.ts","./prompt.md":"./src/prompt.md","./grammar.lark":"./src/grammar.lark"},"scripts":{"fix":"biome check --write --unsafe .","fmt":"biome format --write .","lint":"biome lint .","test":"bun test --parallel --timeout 30000","check":"biome check . && bun run check:types","check:types":"tsgo -p tsconfig.json --noEmit"},"_npmUser":{"name":"paryee","email":"aryeebus337@gmail.com"},"_resolved":"/tmp/aery-pack-5XE5TP/aryee337-hashline-0.3.5.tgz","_integrity":"sha512-N+rkr0MwklDDzfTI7b0fsEUZXsPQ+jlsd19L4spvvU6vOYjTbILuqfLA99tGc+t2H1mZBqYoDEMvVZ5SBkzd1Q==","repository":{"url":"git+https://github.com/eminent337/aery.git","type":"git","directory":"packages/hashline"},"_npmVersion":"11.17.0","description":"Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"diff":"^9.0.0","lru-cache":"11.5.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14"},"_npmOperationalInternal":{"tmp":"tmp/hashline_0.3.5_1781252816714_0.26033625627222134","host":"s3://npm-registry-packages-npm-production"}},"0.3.7":{"name":"@aryee337/hashline","version":"0.3.7","keywords":["patch","diff","edit","hashline","agent","llm"],"author":{"name":"aryee337"},"license":"MIT","_id":"@aryee337/hashline@0.3.7","maintainers":[{"name":"paryee","email":"aryeebus337@gmail.com"}],"homepage":"https://aery.dev","bugs":{"url":"https://github.com/eminent337/aery/issues"},"dist":{"shasum":"e979afdc8b8a3b0e83642fe7ef00ba6a621602d9","tarball":"https://registry.npmjs.org/@aryee337/hashline/-/hashline-0.3.7.tgz","fileCount":40,"integrity":"sha512-C+MaEI5DazFPRx/Bwj3Un0XdQjuUeYf8x5azcCBQdWJZZn5tLXuO5ZwcmWjNHNIXjf6vwbpDCiJ1dOoFI2K0Gw==","signatures":[{"sig":"MEYCIQCtzmJKAekUA/uZ9s1mVl3/suGUyoka76t9nOGD7C5IcAIhAJqT3i0IstzgKmTVAGk6r9DzUz2LPhtKyDHpx8KB7vrs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":188036},"main":"./src/index.ts","type":"module","_from":"file:/tmp/aery-pack-A84OeF/aryee337-hashline-0.3.7.tgz","types":"./dist/types/index.d.ts","engines":{"bun":">=1.3.14"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./src/index.ts"},"./*":{"types":"./dist/types/*.d.ts","import":"./src/*.ts"},"./*.js":"./src/*.ts","./prompt.md":"./src/prompt.md","./grammar.lark":"./src/grammar.lark"},"scripts":{"fix":"biome check --write --unsafe .","fmt":"biome format --write .","lint":"biome lint .","test":"bun test --parallel --timeout 30000","check":"biome check . && bun run check:types","check:types":"tsgo -p tsconfig.json --noEmit"},"_npmUser":{"name":"paryee","email":"aryeebus337@gmail.com"},"_resolved":"/tmp/aery-pack-A84OeF/aryee337-hashline-0.3.7.tgz","_integrity":"sha512-C+MaEI5DazFPRx/Bwj3Un0XdQjuUeYf8x5azcCBQdWJZZn5tLXuO5ZwcmWjNHNIXjf6vwbpDCiJ1dOoFI2K0Gw==","repository":{"url":"git+https://github.com/eminent337/aery.git","type":"git","directory":"packages/hashline"},"_npmVersion":"11.17.0","description":"Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"diff":"^9.0.0","lru-cache":"11.5.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14"},"_npmOperationalInternal":{"tmp":"tmp/hashline_0.3.7_1781630131572_0.38384423724583794","host":"s3://npm-registry-packages-npm-production"}},"0.3.8":{"type":"module","name":"@aryee337/hashline","version":"0.3.8","description":"Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.","homepage":"https://aery.dev","author":{"name":"aryee337"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/eminent337/aery.git","directory":"packages/hashline"},"bugs":{"url":"https://github.com/eminent337/aery/issues"},"keywords":["patch","diff","edit","hashline","agent","llm"],"main":"./src/index.ts","types":"./src/index.ts","scripts":{"check":"biome check . && bun run check:types","check:types":"tsgo -p tsconfig.json --noEmit","lint":"biome lint .","test":"bun test --parallel --timeout 30000","fix":"biome check --write --unsafe .","fmt":"biome format --write ."},"dependencies":{"diff":"catalog:","lru-cache":"catalog:"},"devDependencies":{"@types/bun":"catalog:"},"engines":{"bun":">=1.3.14"},"exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"},"./grammar.lark":"./src/grammar.lark","./prompt.md":"./src/prompt.md","./*":{"types":"./src/*.ts","import":"./src/*.ts"},"./*.js":"./src/*.ts"},"gitHead":"28861a5556d2444acb088436dfbed0bee79bf888","_id":"@aryee337/hashline@0.3.8","_nodeVersion":"24.3.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-NmZi3kcpJ3jyG/3/dQk2Q+bRB8BAnMZLU2TzxpMyaSPm80DcKkpG/bHlrPJV05++VY9kc5Ni6kLTn7zXzrufZQ==","shasum":"0418f45bd9c2e0807e4c6061fde23ca459b7059b","tarball":"https://registry.npmjs.org/@aryee337/hashline/-/hashline-0.3.8.tgz","fileCount":22,"unpackedSize":145475,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFPYCgbFvbv7UkmPb5luvIAyypyZ9bOhUdlL1DwnWY5zAiALFRXlfOrsjuP2La6YBYO1qpzEyK8QbOyi+km+vPUnfg=="}]},"_npmUser":{"name":"paryee","email":"aryeebus337@gmail.com"},"directories":{},"maintainers":[{"name":"paryee","email":"aryeebus337@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hashline_0.3.8_1782417570793_0.5327522542760166"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-10T19:42:02.338Z","modified":"2026-06-25T19:59:31.074Z","0.2.29":"2026-06-10T19:42:02.727Z","0.2.10":"2026-06-11T00:46:36.892Z","0.3.0":"2026-06-11T17:52:15.043Z","0.3.2":"2026-06-11T21:18:35.455Z","0.3.5":"2026-06-12T08:26:56.872Z","0.3.7":"2026-06-16T17:15:31.711Z","0.3.8":"2026-06-25T19:59:30.929Z"},"bugs":{"url":"https://github.com/eminent337/aery/issues"},"author":{"name":"aryee337"},"license":"MIT","homepage":"https://aery.dev","keywords":["patch","diff","edit","hashline","agent","llm"],"repository":{"type":"git","url":"git+https://github.com/eminent337/aery.git","directory":"packages/hashline"},"description":"Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.","maintainers":[{"name":"paryee","email":"aryeebus337@gmail.com"}],"readme":"# @aryee337/hashline\n\nA compact, line-anchored patch language and applier.\n\nHashline is a diff format designed for LLM-driven file edits. It binds every\nhunk to a file-content hash so stale anchors are rejected before they corrupt\ncode, and it abstracts over the filesystem so the same patcher works on disk,\nin memory, over the network, or against any custom backend.\n\n## Quick start\n\n```ts\nimport {\n\tFilesystem,\n\tInMemoryFilesystem,\n\tInMemorySnapshotStore,\n\tPatcher,\n\tPatch,\n} from \"@aryee337/hashline\";\n\nconst fs = new InMemoryFilesystem();\nconst snapshots = new InMemorySnapshotStore();\nconst before = `const greeting = \"hi\";\\nexport { greeting };\\n`;\nawait fs.writeText(\"hello.ts\", before);\n\nconst tag = snapshots.recordContiguous(\"hello.ts\", 1, before.split(\"\\n\"), { fullText: before });\nconst patcher = new Patcher({ fs, snapshots });\nconst patch = Patch.parse(String.raw`¶hello.ts#${tag}\n@@ 1..1 @@\n+const greeting = \"hello\";`);\nconst result = await patcher.apply(patch);\n\nconsole.log(result.sections[0].op); // \"update\"\nconsole.log(await fs.readText(\"hello.ts\"));\n```\n\n## Format\n\nSee [`src/prompt.md`](./src/prompt.md) for the user-facing description and\n[`src/grammar.lark`](./src/grammar.lark) for the formal grammar.\n\nEach file section starts with `¶PATH#TAG`. The tag is a 3-hex opaque\npointer into the `SnapshotStore` that minted it; it is not content-derived\nand is not meaningful outside that store. The patcher protects against\nstale anchors by resolving the tag, verifying the recorded snapshot lines\nagainst live file content, and refusing or attempting session-aware\nrecovery on mismatch.\n\nInside a section:\n- `@@ A..B @@` — open a hunk on lines A..B (use `@@ A,A @@` for a single line; bare `@@ A @@` is also accepted).\n- `@@ BOF @@` / `@@ EOF @@` — virtual hunks at the beginning/end of file.\n- `+TEXT` — literal body row (use `+` alone for a blank line).\n- `&A..B` — repeat original file lines A..B inline (`&A` for one line).\n- Empty body — delete the selected range.\n\n## Abstractions\n\n### `Filesystem`\n\nRead and write text by path. The default implementations:\n\n- `InMemoryFilesystem` — backed by a `Map`. Tests, sandboxes.\n- `NodeFilesystem` — disk-backed via `Bun.file`/`Bun.write`. Default for CLIs.\n\nSubclass `Filesystem` to wire hashline into any storage: VFS, S3, an LSP\ntext-document protocol, a Git tree, anything.\n\n### `SnapshotStore`\n\nRequired. Hashline tags are opaque store pointers, so `Patcher` must receive\nthe store that minted them. Recovery replays edits against the cached pre-edit\nsnapshot and 3-way-merges onto current content when the live file diverged.\n\n### `Patcher`\n\nThe orchestration class. Reads, normalizes line endings + BOM, applies edits,\nrestores line endings, and writes via the configured `Filesystem`. Multi-section\npatches are preflighted up front so a partial batch never lands.\n","readmeFilename":"README.md"}