{"_id":"dsh-better-edit","_rev":"29-de9f5c76ce0c1db36ae0a9429105a9ee","name":"dsh-better-edit","dist-tags":{"next":"0.4.0-rc.1","latest":"1.0.0"},"versions":{"0.1.0":{"name":"dsh-better-edit","version":"0.1.0","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.0","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"69afcfacb3ca60f01e3411bb6b96722ebd2cbe5c","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.0.tgz","fileCount":82,"integrity":"sha512-mT7UUFyRyDQox4/MujSX1mptiKLDF3EHno6pB86TffQ8nb4dqwB2CCIiV3ds4tzU+5hFqGYn+BhwS1jzDVHLiA==","signatures":[{"sig":"MEYCIQCJ7Wrti+pzZksiqSWHyvGhE1KXKnjlthuPt1q1RO+DrQIhAP+uty0d6KTRGFe2TKCRBbUperAHvZcto3BQBjbicpZI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":234029},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"6b2096bd786f0fd9829fc724c5f0fcbd2d8faf31","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.0_1786725192630_0.18845333946683263","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"dsh-better-edit","version":"0.1.1","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"b374b3b2f476213ae28d8274ad4fe871cb990f65","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.1.tgz","fileCount":82,"integrity":"sha512-nkZ0nbWKDW5NC7N95QwPEnWRvj+FXU3AXXlydEakBJqe8+kEGxwmNEyWgkpn99Z+5EYjhgmYEC1NqTReHXyx4Q==","signatures":[{"sig":"MEUCIQCY/Rl3Ra3zBzHRZcyxFFzPcj3UHUQ8qIOXM/+XDFAZWAIgCizJKlze7hXhlbJtac9B+q12DyjNHdE1XRKEyqgT+DU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":238961},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"ac247554e9ada8ed96298b3d27041d24ff4370b6","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.1_1786764255574_0.5350767480354612","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"dsh-better-edit","version":"0.1.2","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.2","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"faba23b08926fecd6d03323d74ac964cb6ee12dd","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.2.tgz","fileCount":84,"integrity":"sha512-/KEIBwMfwvlJHeT37VumNqBXuuK1tEa8dXWKkG9ugPaoxIvLSxa/IxRx4kyXo1/ecW9sJDDfxSFz1egPtnRsow==","signatures":[{"sig":"MEUCIQCtPhtHeNbk17d3RU2nHb4S7SCfyD9aKfOlC/2FoCTREQIgBLQMYKQoqo99yF0fbSLDRvkff0bwRidD6/f7UDc9MZg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":246523},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"4b2bf1311698fe17e64654776b4997ea68b55749","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.2_1786770127250_0.3521407348523391","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"dsh-better-edit","version":"0.1.3","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.3","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"c7db9c74b05d3aa76cb3b9a8760cf888dd067f61","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.3.tgz","fileCount":86,"integrity":"sha512-Ece/mt/YlXlkFxLcGQBTC5SffBftYgL00i04MYS0e4trYTt2a6ZdxXK2HBqIB9gKlbDtd9kRc4o75XlY9N5heQ==","signatures":[{"sig":"MEUCIQCugoFWxIRXiMFzmodTw/8XE5Mm2oQIKLujLtkVHvzE6wIgTs6FrAghhUL2IOtHDRdFg25UwR9faOSJeY81KvihFtE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":257414},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"6fd0d06bee377ca91aaf22d86e7d9974c451cc8c","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.3_1786771352689_0.9863078750511405","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"dsh-better-edit","version":"0.1.4","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.4","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"7c7b27c314fa97474c91c4e92f0e3f67936eaf73","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.4.tgz","fileCount":86,"integrity":"sha512-9SswwWsxqIdzuticoGC2LwGmHWVpQ86jEYTY0TN5NIzASdAA1qL1uzdqGp42Ct/YiahPMr0Fc1Tpkvnfy1YJXw==","signatures":[{"sig":"MEQCIGxsP8+WujlqhT9BPKJkKLXaeZuVKtC0+sDYHxDS869ZAiB4e7ZaQn8p4V8JPB3xfUwu5jRG+A5K30hwzSu7gdGwAg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":259315},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"eb9e4693f028f35f1a1e53ac01e1c5aa20bd52a8","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.4_1786773564313_0.07122094343981655","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"dsh-better-edit","version":"0.1.5","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.5","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"292084a471959f47c7fe72da1b3836aaecdea942","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.5.tgz","fileCount":86,"integrity":"sha512-X86a98kOpsYk6ZPpWtsUZsV0HcZ34F7UO3Oi6eDQj6z80VI4BCMnKJ6McmZkCdto+RU4ijbU1FpDgfsEV3TkEw==","signatures":[{"sig":"MEYCIQC3x+5VBrytOB6rTE78rdpW8pJavTYhrKlzDbykEgLcVwIhAMW2Qf7MDZEbenJPSTEhJGTzc+X+AWlvowKX7RhWtDd8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":264220},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"a1252d1c65679eda60a026b5e0151d24b9ac31a3","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.5_1786806752509_0.8240731991856645","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"dsh-better-edit","version":"0.1.6","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.6","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"fe1a9b004dbeb9874316ad9518e77b66c29debb0","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.6.tgz","fileCount":87,"integrity":"sha512-PtIsoW7z6Gfi8ZTC4iaTvFEs5b1Z/nCyB+IXNjq7KTl9zdGDzgI5gAQlARO4wHurYo3kLG6XsLXxOI/oHqKDBw==","signatures":[{"sig":"MEQCIDhqO6e7Dm8phdkMFqD0DyoENOIOVSiiCFFiMLYM+JJXAiBrrKVpbBkw7hd4lXCNkayMiJDShfQoA/24T132DBuqZg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":276972},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"b01d8b0bf52d2562c310baa10c7737896d4993a9","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.6_1786807461666_0.24358971216430336","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"dsh-better-edit","version":"0.1.7","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.7","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"77a804f0c6a4cecf9ea20fd42c8b3fb298d96fd1","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.7.tgz","fileCount":89,"integrity":"sha512-NTbdDSI5lptiF5CiqxB6Zp8CjqFwS1Btyh4haWgHIV6rnO9ekIBqDm3wi4aQkbjdkLtDDFUf12xetNl4aavFfg==","signatures":[{"sig":"MEQCIDUcb2mzTiWu2yoPYcPibwGeUU29wT371u86JizKDIQdAiBio3YJRgnyphn7EYpNYxu0MjCmhaacAYJ4SDANyZdKhw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":288618},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"8c9b2d1c224c10ff1cbb27724f6fa713256ed8b7","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.7_1786808039792_0.042007630876576885","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"dsh-better-edit","version":"0.1.8","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.8","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"ecce315df7ebd09fffa6351f2802632a11bf1e5e","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.8.tgz","fileCount":90,"integrity":"sha512-Wq3hj12Ui8wtBjdfUZEnMlVtzFR5zzTdu2ptD/cq8CEjlYpu0LGtfEgrhvVLGG/HZNnDUtipEmZwP84K8ENNSA==","signatures":[{"sig":"MEYCIQCAXyJhovlSGrCd0aX4CQpemOjyckGY0W012k7OyZfRIQIhAIOrBL8kcnzlnGyorRZYPCtslzRNjb7T+yhRalDrc67f","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":294680},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"2b5d41b45270f4412315b3034022b009f9d295ba","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.8_1786809258632_0.25926486307570107","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"dsh-better-edit","version":"0.1.9","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.1.9","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"080d0dc2bfe545edd65b57853be8d146d8dd0da0","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.1.9.tgz","fileCount":90,"integrity":"sha512-qjlZdGv7d7tZoEeEY2OWtG/UGmaqp2rjmXhw3M4UYSzVazDtlBmpJW955x+yyamosmMA0ZY+Z9dyODO3tIludA==","signatures":[{"sig":"MEUCIQDxoXO7dy//nATrTcmtpQg1ajCkwYxVriovGiJI+cqjawIgX6BzwKxQ4gxKEJ2Bg/biEXjtySs+TGNZT4khOrt1ytI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":297597},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"ff4dfd7f90a045b57e41512189d7aabc8031db02","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.1.9_1786812419193_0.8626432584930919","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"dsh-better-edit","version":"0.2.0","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.2.0","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"f1ea972827eef3abdd800e7968b567039cb1f752","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.2.0.tgz","fileCount":92,"integrity":"sha512-mUrXBFk83l+sGObOkKYA29yFQaFPTMC3VXFvXdnwbxHr+Ct/pbHTLd8Nwgzo9ahc7jzY5l+QbxJfs84OWebH9w==","signatures":[{"sig":"MEYCIQDu8tFXHSWztmwIXqdHVKhHSjfUwWiWh7fAYQPHVdugjgIhAKnt4jH5XPkf4FAKzKBD3w7E0lZMQQzMUyuerfW9dTiX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":329947},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"fbe09db560fb2b8386eb4ce3a8cc71c8b77a8270","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.2.0_1786873701208_0.2340359069482052","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"dsh-better-edit","version":"0.2.1","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.2.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"8c20b73f0854b04e428339882b53be2870471eb0","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.2.1.tgz","fileCount":94,"integrity":"sha512-8mOmUCwD0S08tUGHl605plmkJinIjueDwb13Ji7FYp1lHcGGzZGcMWar7r3uZocxG9qzAweeNgDomqbxjZSsDQ==","signatures":[{"sig":"MEUCIQC0TD4+srbd1OCiH3HFKiZfB+oHi+d/WR6eNsq0xrbyfAIgAxZe0e29Ri2stLpYJfw2Tbn51Jbps/2+GstJPPDQ1/8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":368477},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"9b711c87ef6cf1d34d810e12dcaf6f2fa55fa40d","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.0","@deepseek-ai/dsh-fs":"^0.1.0-rc.6","@deepseek-ai/dsh-agent":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"^0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.2.1_1787038955793_0.9637331704338505","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"dsh-better-edit","version":"0.2.2","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.2.2","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"90dd28bbe007314cfc7fca0bf9b6ac0da6ce2fab","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.2.2.tgz","fileCount":94,"integrity":"sha512-ZyRfRL0Qmgi3BG/inS3ul+gak3eEHa3wECSvJHuJVnOQfV0Ag5Xw7U9oQi5apNLO9ioz2xGY4DvV2T0qnKWyrw==","signatures":[{"sig":"MEUCIQCVxCywYXL6yPIouA8caadtEQdhvMfWTE+Lgvy+7XdXlQIgFyJNVLNRWfcifVaqjojhE1hvvmaFAq4xUfTKcAqJAsw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":379416},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"b8bc1ecbf8e6715eafcc316a2c1c76fc353f748a","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.2.2_1787118028715_0.9012377256355351","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"dsh-better-edit","version":"0.3.0","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.3.0","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"cdf5b0b17439d9c4d3863c22c14fb588f780049f","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.3.0.tgz","fileCount":112,"integrity":"sha512-MeZbB/3BCYw22MRLp/mZeqQHk6d6RgLr4emv9ZZbqYkYpMh5TRcH3JnGE75whKNAsB5gsbuVsqSlQLbGbEGsrQ==","signatures":[{"sig":"MEUCIFEZzfqf7qwv0qCrXfMhNVIcZvXZm4hWxozASaI+LJltAiEAxh+VYQxRLCVc8+0qzvSAbzL3GNyvEuiFmgjJP4Aj1hk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":417968},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"c612f71ed0a1de3128ca0ed5951e06cc771c1c96","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restart","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.3.0_1787235537817_0.5397976023905933","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"dsh-better-edit","version":"0.3.1","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.3.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"342236d146546937660a8dbab61e930c5b3baeac","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.3.1.tgz","fileCount":114,"integrity":"sha512-TIyfFdBs0xUNfmM4xPC/8PsbIqlUGaNiEQhWUc05f3im5l27P358nxpRizSj0PPZYy3nG7sGgvkZpaDsXjJn/g==","signatures":[{"sig":"MEYCIQDBiwNOLB1878W4aiQU7+DDKuLt7HzrcGUhBThCbRrdggIhALNFHF3IzLFkDtbl6pPZZUlIgcI8QxN3MYNf28Puxrw7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":418011},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"c2b993cefda1e4e6987603210b35527c13687a7d","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.3.1_1787332836150_0.09514193755355116","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"dsh-better-edit","version":"0.3.2","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.3.2","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"be5aa9d1fa4134c8470998524101f25070481293","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.3.2.tgz","fileCount":114,"integrity":"sha512-TwqALI+ZvL7T4ATwYcF2dHjW6ZksHJ6X+Iv8cWLD27k6YpYK5JZuu9x0d1fzO31S73duc0++djE4wnaED7/WLQ==","signatures":[{"sig":"MEUCIQDMR3j1JY7mCD0cvnLx5tjUdOWVnc7acXGNEhKbxlrDNAIgercVN8pyYpGB1FGqQfwODmx+xnFfoce90Mrb1l6CJkw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":419818},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"a0c8344a11c98beab54ea355a41af713b6933bc9","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.3.2_1787551099621_0.5848428518278426","host":"s3://npm-registry-packages-npm-production"}},"0.4.0-rc.1":{"name":"dsh-better-edit","version":"0.4.0-rc.1","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.4.0-rc.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"508998c55f57c64ee50981fb1e908fd2ba4a2cf8","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.4.0-rc.1.tgz","fileCount":122,"integrity":"sha512-vapSOB58i2WQdbC76VCoqeVkAIgVUdXLTvAxcCQg5EA6xhoWlwg4U9+aTNewtgDI2Z2s4vuAzZB7ZQ5VJJzpJg==","signatures":[{"sig":"MEUCIQCKyazcB+r3m9iMxR3kb3QJlcvZQH1JTNgXuqwJKHeh8gIge7Xn50M6OqjZLMQqzHLv6Q/5hqkkdOvnCpl1/9QWpzg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":457905},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"1c03a300851a6f326e56ae0b505ca07b3508519b","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.zh.md","devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.4.0-rc.1_1787578765195_0.6995058094299411","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"dsh-better-edit","version":"0.4.0","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.4.0","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"289ba3f5917a397ef49c2547c7d46b0250eaa55c","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.4.0.tgz","fileCount":122,"integrity":"sha512-R9vTVOWGGpZ+mif2pnJdGPQ6HsLZ7jvoAO78zcf3aEPke1juE5DeX9WjXOr6sHe24NiVHWLK4Ooe8etYpVyxkw==","signatures":[{"sig":"MEUCIHCN/lMcvg1zHVYJxV07V/1J3LlLGxMDxaEpBnhefC84AiEA48CeCb+8CT9pn7KJuxTl6v7oyaencn6y/pwOp7ZYSv8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":458712},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"d3cb0dc3fc0caaff6b7a6fba334eb6c5a619e1be","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.4.0_1787581362355_0.029460966692079982","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"dsh-better-edit","version":"0.4.1","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.4.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"3f063574ae97d7bc15f1330a061648091f184264","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.4.1.tgz","fileCount":122,"integrity":"sha512-qkpIPbcYO0b8O4MB+nMsuoGSI4WCmePtP4lY+hPWPOeexHXX4lZ5pBkVS3OcOj0xSgNNOUXyoNszUBipFwUM9Q==","signatures":[{"sig":"MEUCIQC4fg+p4H/qRNNQUvianSQkQEUXlZ8AZ38OLQO3w2DkhwIga4NSdk3uDKsj94i/dvX+Z97oEh8RySqBBGD8FzxBRZY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":464313},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"3d70b65bed161b1dba0916333a75b34ca687850b","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepare":"tsc -p tsconfig.json","release":"node scripts/release.mjs","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.4.1_1787811811110_0.6790805688222499","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"dsh-better-edit","version":"0.5.0","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.5.0","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"e0d34286be3c59c4c458772b2040659e5f05d6d0","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.5.0.tgz","fileCount":122,"integrity":"sha512-PwJAD82vHlJV7mW9cp4f/7nRwmhvmXWB3jD0wKW/4+TAQXXYBgdqNN/lhjfDKCLQ/2qepYorshp/vY6K3VNzlw==","signatures":[{"sig":"MEUCIQChVlFOijsxfIhufmpYUalmW5P4GS9aytxJ5++B1xdYugIgZgnnyybjS6AEpGHFTV2z+kJTLfF963aSQMOYw1wHxUU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":478915},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"bf0d967f183a07cf21ccd534d08d9cd4014108df","scripts":{"lint":"biome check .","test":"vitest run","build":"tsc -p tsconfig.json","format":"biome check --write .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"biome check --write .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"biome check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.5.0_1788028908313_0.9787362761233263","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"dsh-better-edit","version":"0.5.1","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.5.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"5788f68b233c34466b6485b3306f5abcc5531a46","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.5.1.tgz","fileCount":124,"integrity":"sha512-qC9uSAckbPfKrpjbRVcu0lQ0bQQ1f2d+bMx3/NrA8ILlP/VolNn8vTFNfFCuzwt+H4dJkuh1ZTDQ3gSB5l6JJQ==","signatures":[{"sig":"MEUCIQD7jqqlNaMfo0v+97YfknYVXQSpjuXDTZEJpt7/ngwV+wIgIHZS0vGRqQFTrtv2cheF8l6J/ffWUIWuT1qVetEvhSE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":520066},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"6e912a3db14aeeb784ede142dc93520904b550d3","scripts":{"lint":"biome check .","test":"vitest run","build":"tsc -p tsconfig.json","format":"biome check --write .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"biome check --write .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"biome check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.5.1_1788078462455_0.9460530757830359","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"dsh-better-edit","version":"0.6.0","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.6.0","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"15947b5217e279316ccb8acc1ba23842846617b4","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.6.0.tgz","fileCount":132,"integrity":"sha512-TUSq6WQ7MW5N0jiDfXdNF3QWA32OlkcRKjDpSTOR6wz2XqwaGNn4zALKiBwTz5KKG/hcrSow06hfnf3a3rrpWA==","signatures":[{"sig":"MEYCIQDgzg7RX6KBuE6/MlqCB+sONliU65eH+iiu1fSgGXVPjAIhAPFgkC3ZnV8vvQMkzUVF+VWrFOYcbtJjTSha/duFxjkr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":525737},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"aab5860525fcfb5d79cf34274762abb828da29a9","scripts":{"lint":"biome check .","test":"vitest run","build":"tsc -p tsconfig.json","format":"biome check --write .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"biome check --write .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"biome check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.6.0_1788170420389_0.4623772778471409","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"dsh-better-edit","version":"0.6.1","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.6.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"60433f00d2b3415f465e291ffedbfcb364f766f8","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.6.1.tgz","fileCount":132,"integrity":"sha512-IbBrKoWKFvaZOgm/8qDZDPiMVgiIMvL/3aMs3tIwXpS8XTAyfD6GlyFvzZPfxxJOGQItO2M4jFWeYv0rTJfv+A==","signatures":[{"sig":"MEUCIGVk2e7zQxYWbaQb3jsBEabF6vML5ludhIM0uWaj97hOAiEAtqoKB5er51Ima3SjDjaObmFFmGBJ7gRdRoPwhsTpc6Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":550094},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"60b48bc42b612bf8ed3582fa9b35857489a5a31c","scripts":{"lint":"biome check .","test":"vitest run","build":"tsc -p tsconfig.json","format":"biome check --write .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"biome check --write .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"biome check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.12.1","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.0-rc.6","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.0-rc.6","@deepseek-ai/dsh-tools":"0.1.0-rc.6","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.6","@deepseek-ai/dsh-session":"0.1.0-rc.6","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.0-rc.6","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.6.1_1788260109954_0.9014864473445952","host":"s3://npm-registry-packages-npm-production"}},"0.6.3":{"name":"dsh-better-edit","version":"0.6.3","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.6.3","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"b34c68af11c0c4416b983a3dc8d7ddd75d8e4341","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.6.3.tgz","fileCount":134,"integrity":"sha512-yY/sj9CCfwpUqremrx0WIMiVV5KFddqfQynqskQ/DyMdThHDTCl27frjafq7E9mxtb24VqVNnSK8ujr+Q7Owig==","signatures":[{"sig":"MEQCIGox6pua/9+fM2sC6GLb4YFpeyFjJM8pTZgJjRdUhnMNAiANgzAgGnyVoRvfY7VcDovM/rUjrpjOTGbxIBVRFMWD0Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":531515},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"890b6b264a0b5896039eb4d00fd885574c63c60a","scripts":{"lint":"biome check .","test":"vitest run","build":"tsc -p tsconfig.json","format":"biome check --write .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"biome check --write .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"biome check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.19.0","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"26.8.1","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.1-rc.2","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.1-rc.2","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@deepseek-ai/dsh-sandbox":"0.1.1-rc.2","@deepseek-ai/dsh-session":"0.1.1-rc.2","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.1-rc.2","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.6.3_1788594093587_0.6393397558412945","host":"s3://npm-registry-packages-npm-production"}},"0.7.1":{"name":"dsh-better-edit","version":"0.7.1","keywords":["dsh","dsh-plugin","deepseek-harness","coding-agent","oh-my-pi","hashline","hash-anchored","hash","anchors","read","edit","batch-edit","undo","file-editing","stable"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.7.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"c2b3ab69f55fba584970594a429f943e165d49ce","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.7.1.tgz","fileCount":134,"integrity":"sha512-Bx4PsKk6DsXleMYrlT6gFBcEy8aYqWIrtrF450mPU/QCgB0r2Zr75wFNEIc26PIp1iGoCqgOMSU1l4ZhX3vJvA==","signatures":[{"sig":"MEQCIAY6J7ou1ZKVSzV0pnDbQyh8Squge+09Lt3NGzrDaVk3AiBRJbqwVFbP1nTfaYnN2NW2+Cc2nBUnybamMd+DgYFaWw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":562677},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":"^22.19.0 || >=24.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"2cee2c84b902ae69ce7dad34d7bfebd1d7b5e280","scripts":{"lint":"biome check .","test":"vitest run","build":"tsc -p tsconfig.json","format":"biome check --write .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"biome check --write .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"biome check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.19.0","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"26.8.1","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","vitest":"^4.1.8","typescript":"^5.8.0","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.1-rc.2","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.1-rc.2","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@deepseek-ai/dsh-sandbox":"0.1.1-rc.2","@deepseek-ai/dsh-session":"0.1.1-rc.2","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.1-rc.2","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.7.1_1788706444139_0.7470712794376506","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"dsh-better-edit","version":"0.8.0","keywords":["anchors","batch-edit","coding-agent","deepseek-harness","dsh","dsh-plugin","edit","file-editing","hash","hash-anchored","hashline","oh-my-pi","read","stable","undo"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.8.0","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"bcf689e6a9f088cd654cf5b835466404afee0a19","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.8.0.tgz","fileCount":138,"integrity":"sha512-UWT4lF8Vll/xkght/pKYkHbnWP/o4xJer6HkioNSJtlKsSZYlB+xicUl7NHAB+G+1RU7V5rZT7tbkxZojHBCRA==","signatures":[{"sig":"MEYCIQDz6pWD8MjlZXDY4wd26t05LEi2BbFp18z86TCPL36b/AIhAM/YJ8grFKXeC3cStzDEFMrvL1pWD7l+AQwqtKXrAT8i","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":598494},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":">=24"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"dc6ab0b745fc643a672eb3aac938e8d727c34234","scripts":{"lint":"oxlint .","test":"vitest run","build":"tsc -p tsconfig.json","format":"oxfmt --check .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"oxlint --fix .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","format:fix":"oxfmt .","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"oxfmt --check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.19.0","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"26.8.1","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@12.0.0","devDependencies":{"tsx":">=4","vite":">=8","husky":"^9.1.7","oxfmt":">=0.15","oxlint":">=1","vitest":"^4.1.8","typescript":">=7","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.1-rc.2","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.1-rc.2","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@deepseek-ai/dsh-sandbox":"0.1.1-rc.2","@deepseek-ai/dsh-session":"0.1.1-rc.2","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.1-rc.2","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.8.0_1788969767472_0.5176895990865993","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"dsh-better-edit","version":"0.8.1","keywords":["anchors","batch-edit","coding-agent","deepseek-harness","dsh","dsh-plugin","edit","file-editing","hash","hash-anchored","hashline","oh-my-pi","read","stable","undo"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.8.1","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"febde22816770e7c0fe7bbd5e1960fbc76ebfa05","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.8.1.tgz","fileCount":138,"integrity":"sha512-ZfFfBGZvPAUIjtc/18pB0dZHYDcun00xC2mTcqDhQypSujKrqEYdOOygIXsi1RpWoUZ4vZ5Xsx7JNQGw6fxwSQ==","signatures":[{"sig":"MEUCIGcJ6yA9uw2i9U4DJu7C7us3XDSQz+GeUd/x7e6HvCFPAiEAxp4fOjbTRTpwdysigxipxSyNzTIzrz1SopdMCpmlvSU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":600660},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":">=24"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"6211b73c622b6516c4bcc8769b19127b808da54d","scripts":{"lint":"oxlint .","test":"vitest run","build":"tsc -p tsconfig.json","format":"oxfmt --check .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"oxlint --fix .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","format:fix":"oxfmt .","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"oxfmt --check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.19.0","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"26.8.1","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@12.0.0","devDependencies":{"tsx":">=4","vite":">=8","husky":"^9.1.7","oxfmt":">=0.15","oxlint":">=1","vitest":"^4.1.8","typescript":">=7","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.1-rc.2","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.1-rc.2","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@deepseek-ai/dsh-sandbox":"0.1.1-rc.2","@deepseek-ai/dsh-session":"0.1.1-rc.2","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.1-rc.2","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.8.1_1789122824736_0.23136182380330483","host":"s3://npm-registry-packages-npm-production"}},"0.8.2":{"name":"dsh-better-edit","version":"0.8.2","keywords":["anchors","batch-edit","coding-agent","deepseek-harness","dsh","dsh-plugin","edit","file-editing","hash","hash-anchored","hashline","oh-my-pi","read","stable","undo"],"author":{"name":"dsh-better-edit contributors"},"license":"MIT","_id":"dsh-better-edit@0.8.2","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"homepage":"https://github.com/Rianico/dsh-better-edit","bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"4d745637542b161d5a92d8fab57b4e928fc8c392","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-0.8.2.tgz","fileCount":138,"integrity":"sha512-1yt2a+Y4xWVB7qlcgtZBBx/YfKaClRYjzlE8HMCIjSJ+O4DiH5m1KqlqoDjcNRPHVeudYvYGF5aTS7otPMJTwA==","signatures":[{"sig":"MEQCICEUIGovK84ulTwVtfdiuMqtEeWO0IwuMbHR9zWlQuoDAiBNzCe/3xwKT5YZqBzRr+IbbggO6fvAgApfinuMigNKVQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":602884},"main":"lib/index.js","type":"module","types":"lib/types/index.d.ts","engines":{"node":">=24"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"89e4c36bcbc800fea0176a9dfafc800310ff8d52","scripts":{"lint":"oxlint .","test":"vitest run","build":"tsc -p tsconfig.json","format":"oxfmt --check .","prepare":"tsc -p tsconfig.json && husky","release":"node scripts/release.mjs","lint:fix":"oxlint --fix .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","format:fix":"oxfmt .","test:watch":"vitest","postpublish":"node scripts/tag-current.mjs","format:check":"oxfmt --check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs"},"_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.19.0","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"_nodeVersion":"26.8.1","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@12.0.0","devDependencies":{"tsx":">=4","vite":">=8","husky":"^9.1.7","oxfmt":">=0.15","oxlint":">=1","vitest":"^4.1.8","typescript":">=7","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.1-rc.2","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.1-rc.2","@deepseek-ai/dsh-tools":"0.1.1-rc.2","@deepseek-ai/dsh-sandbox":"0.1.1-rc.2","@deepseek-ai/dsh-session":"0.1.1-rc.2","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.1-rc.2","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/dsh-better-edit_0.8.2_1789397729701_0.489448415760267","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"_id":"dsh-better-edit@1.0.0","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"dist":{"shasum":"4da5b3ac9a1345dccb5539d46f17a005a95a1d7a","tarball":"https://registry.npmjs.org/dsh-better-edit/-/dsh-better-edit-1.0.0.tgz","fileCount":156,"integrity":"sha512-SAWoiY/5RACbNY9uxcpXrKoWf7oWU06I7pMwhVxX0BSdJND3dqEloU/LIqGfncadoJPBNphYX80vx1CzFOY4yw==","signatures":[{"sig":"MEYCIQD8kT4tPB8rrDLHbY+Nn8c7jaPehIy5+2Br3f0g8WARJQIhAOB9yhw96fY1IOr4wB0jmgGift4DBewSI2J/viWDpUn5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICPGtrjsU/aSY9jEekhyKs0CLWD5T/ZDjfxUCCDliDsNAiEAoUIo5aoOYICL5tDBDS6TACOFLMsFl01hX8xF+8XQkC8="}],"unpackedSize":815532},"main":"lib/index.js","name":"dsh-better-edit","type":"module","types":"lib/types/index.d.ts","author":{"name":"dsh-better-edit contributors"},"engines":{"node":">=24"},"exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./package.json":"./package.json"},"gitHead":"41da26f7a76476efbab89eb1ffa77a2a3ceba2ae","license":"MIT","scripts":{"lint":"oxlint .","test":"vitest run","build":"tsc -p tsconfig.json","format":"oxfmt --check .","prepare":"tsc -p tsconfig.json && husky","lint:fix":"oxlint --fix .","benchmark":"node benchmark/run.mjs","typecheck":"tsc --noEmit && tsc --noEmit -p tsconfig.test.json","format:fix":"oxfmt .","test:watch":"vitest","format:check":"oxfmt --check .","test:coverage":"vitest run --coverage","prepublishOnly":"npm run typecheck && npm test && node scripts/assert-tagged.mjs","typecheck:test":"tsc --noEmit -p tsconfig.test.json"},"version":"1.0.0","_npmUser":{"name":"rianico","email":"zhxuankun@163.com"},"homepage":"https://github.com/Rianico/dsh-better-edit","keywords":["anchors","batch-edit","coding-agent","deepseek-harness","dsh","dsh-plugin","edit","file-editing","hash","hash-anchored","hashline","oh-my-pi","read","stable","undo"],"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"_npmVersion":"11.19.0","description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","directories":{},"maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"_nodeVersion":"26.8.1","dependencies":{"zod":"^3.25.76","diff":"^8.0.2","file-type":"^21.3.0","iconv-lite":"^0.6.3","xxhash-wasm":"^1.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@12.0.0","devDependencies":{"tsx":">=4","vite":">=8","husky":"^9.1.7","oxfmt":"0.67.0","oxlint":">=1","vitest":"^4.1.8","typescript":">=7","@types/node":"^24.0.0","js-tiktoken":"1.0.21","@biomejs/biome":"^2.1.0","@commitlint/cli":"^21.2.2","semantic-release":"^25.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-fs":"0.1.6-alpha.2","@vitest/coverage-v8":"^4.1.10","@semantic-release/git":"^11.0.1","@deepseek-ai/dsh-agent":"0.1.6-alpha.2","@deepseek-ai/dsh-tools":"0.1.6-alpha.2","@deepseek-ai/dsh-sandbox":"0.1.6-alpha.2","@deepseek-ai/dsh-session":"0.1.6-alpha.2","@semantic-release/github":"^12.0.9","@deepseek-ai/dsh-home-paths":"0.1.6-alpha.2","@semantic-release/changelog":"^7.0.0","@commitlint/config-conventional":"^21.2.2","conventional-changelog-conventionalcommits":"^8.0.0"},"optionalDependencies":{"chardet":"2.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-better-edit_1.0.0_1790517330093_0.07886860739082802"}}},"time":{"created":"2026-08-14T16:33:12.590Z","modified":"2026-09-27T13:55:30.348Z","0.1.0":"2026-08-14T16:33:12.797Z","0.1.1":"2026-08-15T03:24:15.714Z","0.1.2":"2026-08-15T05:02:07.469Z","0.1.3":"2026-08-15T05:22:32.830Z","0.1.4":"2026-08-15T05:59:24.445Z","0.1.5":"2026-08-15T15:12:32.651Z","0.1.6":"2026-08-15T15:24:21.821Z","0.1.7":"2026-08-15T15:33:59.935Z","0.1.8":"2026-08-15T15:54:18.798Z","0.1.9":"2026-08-15T16:46:59.351Z","0.2.0":"2026-08-16T09:48:21.350Z","0.2.1":"2026-08-18T07:42:36.063Z","0.2.2":"2026-08-19T05:40:28.854Z","0.3.0":"2026-08-20T14:18:57.977Z","0.3.1":"2026-08-21T17:20:36.307Z","0.3.2":"2026-08-24T05:58:19.750Z","0.4.0-rc.1":"2026-08-24T13:39:25.336Z","0.4.0":"2026-08-24T14:22:42.512Z","0.4.1":"2026-08-27T06:23:31.287Z","0.5.0":"2026-08-29T18:41:48.465Z","0.5.1":"2026-08-30T08:27:42.620Z","0.6.0":"2026-08-31T10:00:20.585Z","0.6.1":"2026-09-01T10:55:10.177Z","0.6.3":"2026-09-05T07:41:33.736Z","0.7.1":"2026-09-06T14:54:04.305Z","0.8.0":"2026-09-09T16:02:47.618Z","0.8.1":"2026-09-11T10:33:44.899Z","0.8.2":"2026-09-14T14:55:29.832Z","1.0.0":"2026-09-27T13:55:30.201Z"},"bugs":{"url":"https://github.com/Rianico/dsh-better-edit/issues"},"author":{"name":"dsh-better-edit contributors"},"license":"MIT","homepage":"https://github.com/Rianico/dsh-better-edit","keywords":["anchors","batch-edit","coding-agent","deepseek-harness","dsh","dsh-plugin","edit","file-editing","hash","hash-anchored","hashline","oh-my-pi","read","stable","undo"],"repository":{"url":"git+https://github.com/Rianico/dsh-better-edit.git","type":"git"},"description":"Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.","maintainers":[{"name":"rianico","email":"zhxuankun@163.com"}],"readme":"<p align=\"center\">\n  <img src=\"assets/logo.svg\" alt=\"dsh-better-edit\" width=\"200\">\n</p>\n\n<h1 align=\"center\">dsh-better-edit</h1>\n\n<p align=\"center\">\n  <strong>一个专为 DeepSeek Harness 而生的更好的编辑工具。<br>\n  底层基于 hash-anchored 定位——不依赖行号，也不靠字符串替换，更少的词源消耗，留出更多的上下文空间给真正的工作。</strong>\n</p>\n\n<p align=\"center\">\n  <a href=\"README.md\">English</a> ·\n  <strong>简体中文</strong>\n</p>\n\n<p align=\"center\">\n  <a href=\"#快速开始\">快速开始</a> •\n  <a href=\"#为什么用-hashline\">为什么用 Hashline</a> •\n  <a href=\"#基准测试\">基准测试</a> •\n  <a href=\"#工具\">工具</a> •\n  <a href=\"#致谢\">致谢</a>\n</p>\n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/badge/version-0.3.1-blue.svg\" alt=\"Version\">\n  <img src=\"https://img.shields.io/badge/license-MIT-green.svg\" alt=\"MIT License\">\n  <img src=\"https://img.shields.io/badge/DeepSeek_Harness-Plugin-blueviolet.svg\" alt=\"DeepSeek Harness Plugin\">\n  <img src=\"https://img.shields.io/npm/v/dsh-better-edit\" alt=\"npm version\">\n  <img src=\"https://img.shields.io/npm/dm/dsh-better-edit\" alt=\"npm downloads\">\n  <img src=\"https://img.shields.io/github/stars/Rianico/dsh-better-edit?style=social\" alt=\"GitHub Stars\">\n</p>\n\n<p align=\"center\">\n  <img src=\"assets/banner.svg\" alt=\"file.ts → read → hashed lines → edit by hash → diff\" width=\"900\">\n</p>\n\n---\n\n> _\"瓶颈在于 harness——而不是模型。\"_\n> —— Can Bölük，[_The Harness Problem_]\n>\n> **这是 harness 的修复。** 内容哈希取代行号——上方编辑永不使下方锚点移位。每个范围都对照 Agent 实际看到的内容校验。过期或未见的行被硬拒绝并回传新锚点重试——无需 `read`。\n>\n> **3 次调用 vs 6 次 · -55.8% tokens · 23/23 正确性。** 同样的外部漂移重构，同样正确的文件（单次随机运行 vs OMP；[完整方法](https://github.com/Rianico/pi-better-edit/blob/main/benchmarks/results/2026-08-17-practical-token-benchmark.md)）。\n\n大多数编辑工具要求模型在改动任何东西之前，先**逐 token** 复述旧代码——而这正是 Agent 最容易出错的地方：多个模型在 replace 式编辑下的补丁格式失败率高达 46–51%。**dsh-better-edit** 走得更远。文件的每一行都分配一个唯一的 3 字符内容哈希，编辑时按哈希定位。旧文本从不回显，锚点在编辑后依然有效，每个解析出的范围都会与模型实际看到的内容逐一核对——错行编辑不可能悄悄落盘。\n\n## 为什么需要它\n\n`str_replace` 会让模型逐字复述它要替换的代码——纯粹的转录成本（输出 token，按约 5-6 倍输入计费），也是 Agent 最容易出错的地方：真实模型补丁失败率高达 46–51%，块越大越糟，每次失败都要重新读取并重试。\n\nHashline 用两个哈希代替旧文本——**编辑 token 减少 31%**（多行范围达 43%）——并对照模型所见内容校验每个范围：编辑要么落在你想要的行的位置，要么响亮失败并回传新锚点。锚点是内容地址，上方编辑后依然有效，连续编辑无需重读；上下文更精简，模型的注意力也保持在代码上，而不是复述上。\n\n> [!TIP]\n> **亮点——诚实且可衡量：**\n>\n> - **自愈而非静默。** 外部编辑永不被覆盖——过期范围被拒绝并以全新 `HASH│content` 重发重试；孤儿 served 条目无需全量重读即可自愈（ADR-0008）。Fail-closed，而非自动合并。\n> - **格式化容忍。** ASCII 空白不敏感锚点在 `prettier`/`black`/`eslint --fix` 之间存活（`formatOnSave`、监听、CI）。仅限 linter 场景——字符串内的空白不区分（ADR-0005）。\n> - **链式与批量，无重读仪式。** 未受影响行的锚点保持有效；diff/回显/拒绝行即视为已提供。`edit` 最多 32 个同文件编辑原子执行（`[E_BATCH_ABORT]`），相比 `str_replace` 信封约 -40%。\n> - **读守卫。** 从未展示过的行永不被编辑——`[E_RANGE_UNSERVED]`/`[E_RANGE_UNVERIFIED]`/`[E_STALE_ANCHOR]` 在写入前拒绝，随后 `reject-and-serve`。\n> - **更少往返。** 实测：同样外部漂移重构，OMP 封装需 6 次调用，hashline 仅 3 次；信封 vs `str_replace` 的节省是稳定值—— upstream 电池可复现（算法相同）。\n\n不适用于单行小改动（接近持平）或新建文件（用 `write`）。它的价值在长会话与结构性编辑中体现——任何不允许改错行的场景。\n\n## 快速开始\n\n### 安装\n\n```sh\nnpx @deepseek-ai/dsh plugin --profile web add github:Rianico/dsh-better-edit   # 从 github\nnpx @deepseek-ai/dsh plugin --profile web add dsh-better-edit   # 从 npm\nnpx @deepseek-ai/dsh plugin --profile web add /path/to/dsh-better-edit   # 从本地源码\n```\n\n该 profile 的下一个会话将带着 hashline 工具运行。验证该层是否生效：\n\n```sh\ndsh --profile <name> --dump-config   # 会显示 \"# == dsh-better-edit\" 层\n```\n\n| 要求    |                                                                |\n| ------- | -------------------------------------------------------------- |\n| Node    | `^22.19.0 \\|\\| >=24.0.0`（dsh 的要求；存储使用 `node:sqlite`） |\n| Profile | 一个 dsh profile（首次使用 `dsh plugin` 时初始化）             |\n| 后端    | 支持沙箱/远程文件系统（写入经 `ctx.fs`）                       |\n\n`read` 返回的每一行都带有哈希前缀——哈希*就是*这一行的地址：\n\n```text\nve7│function hello() {\nszJ│  console.log(\"world\");\nkQm│}\n```\n\n`edit` 按哈希范围定位，因此编辑总能落在你想要的行的位置：\n\n```json\n{\n  \"path\": \"src/main.ts\",\n  \"edits\": [[\"szJ\", \"szJ\", \"  console.log('hi');\"]]\n}\n```\n\n并产生带全新锚点的 diff，让下一次编辑无需重新读取即可通过校验：\n\n```text\n− szJ │   console.log(\"world\");\n+ a3m │   console.log('hi');\n  kQm │ }\n```\n\n> 详见[快速开始](#快速开始)中[配置](#配置)一节的指引覆盖与存储租约。\n\n### 配置\n\n租约与提示词指引都只需声明一次，在 `agent/created` 时读取，无需改代码。\n\n#### 存储租约 — 默认 central\n\n默认无仓库污染。存储位于 `$DSH_HOME/plugins/dsh-better-edit/runtime/<name>-<hash8>/`（`central`）。\n\n> [!NOTE]\n> DB 文件是**可丢弃的缓存**——下次调用 `read` 时会自动重建（哈希值由文件内容重新推导）。可随时 `rm -rf` 任意 `runtime/<name>-<hash8>/` 或 `hash-store.sqlite*` 以回收磁盘；不会丢失用户数据（仅丢失锚点历史和撤销快照）。\n\n如需回退到旧的同址或自定义根：\n\n```yaml\n# $DSH_HOME/plugins/dsh-better-edit/config.yaml\nstoreDir: central # 存储位置：\"central\"（默认，位于 $DSH_HOME/.../runtime/<name>-<hash8>/）| \"workspace\"（旧版 <ws>/.dsh_better_edit/）| \"/abs/path\"（自定义根目录）\nautoGitignore: false # 仅 workspace：当 .git 存在但 .gitignore 缺少 .dsh_better_edit/ 时，true = 自动追加 \".dsh_better_edit/\"，false = 仅告警一次\nundo_ttl_s: 604800 # 撤销历史 TTL（秒）；-1 = 永久保留（默认 604800 = 7 天）\nstoreMaxAgeS: 2592000 # central 清理：runtime/<name>-<hash8>/ 目录最大闲置时长（秒），超时后被清理（默认 2592000 = 30 天）\nstoreMaxTotalBytes: 524288000 # central 清理：runtime/ 下总字节数上限，超限后按 LRU 清理（默认 524288000 = 500 MB)\n```\n\n> [!TIP]\n> 若文件不存在，首次启动时会自动生成带注释的默认 `config.yaml`（永不覆盖已有文件）。\n\nEnv 覆盖 yaml（`env > yaml > central`），非法回退到 `central` 并告警：\n\n```sh\nDSH_BETTER_EDIT_STORE_DIR=central|workspace|/abs\nDSH_BETTER_EDIT_AUTO_GITIGNORE=true|false  # 大小写不敏感\n```\n\n旧的 `<workspace>/.dsh_better_edit/` 在首次以 central 打开时一次性拷贝；`runtime/<name>-<hash8>/` 可通过 `ls` 查看，带 `.wsPath` 旁路文件。生命周期详见 `docs/specs/issue-24-store-tenancy.md`（janitor `mtime>storeMaxAgeS` 后 LRU、WAL checkpoint、`undo` TTL）。\n\n#### 按 preset 的指引\n\n`tool:read` / `tool:edit` / `tool:undo_last_edit` 的提示词片段是按 agent preset 覆盖的纯 Markdown 文件，无需改插件：\n\n```\n$DSH_HOME/plugins/dsh-better-edit/<preset>/<section>.md\n```\n\n（默认主目录 `~/.dsh`，即 `~/.dsh/plugins/dsh-better-edit/`）。片段对照表：\n\n| 文件                | 提示词片段            | 默认 order |\n| ------------------- | --------------------- | ---------- |\n| `read.md`           | `tool:read`           | 130        |\n| `edit.md`           | `tool:edit`           | 131        |\n| `undo_last_edit.md` | `tool:undo_last_edit` | 133        |\n\n首次启动时插件会为三个随附 preset——`standard/`、`code/`、`minimal/`、`cordis/`——各自写入编译内置的可编辑指引文件（含 `order` front-matter）。详见[配置详情](#按-preset-配置指引)的重置/恢复。完整规范：`docs/specs/issue-24-store-tenancy.md` 与指引文档。\n\n##### 重置 / 恢复默认\n\n**想让指引“回到默认”？删掉覆盖文件，或把它清空（同时删掉开头的 `---` 栅栏）即可。**\n\n清空文件时，只要文件里是空白内容、并且没有 `---` 栅栏，插件就认为你不想再自定义这一片段了，于是：\n\n- 新会话开始时，直接使用插件内置的默认指引；\n- 下一次启动插件时，会用默认内容把这个文件重新生成。\n\n再细致一点：\n\n- **为什么要连栅栏一起删**：只要文件里还有 `---` 栅栏，哪怕是空的、什么内容也没有，插件都当成“你有意留空”，不会去动它。所以“故意留空”就保留栅栏；“恢复默认”就把栅栏和内容一起清掉。\n- **栅栏写错了会怎样**：少了一个 `---`、`order` 不是数字、出现了不认识的键——只要栅栏格式不对，插件会直接忽略这个文件：仍然渲染默认指引，并在日志里提示是哪个文件、哪里写错了。你写的正文会原样留在磁盘上，方便改好后再用。\n- **自带 preset 与自定义 preset**：插件自带的四个 preset（`standard`、`code`、`minimal`、`cordis`）会在下一次启动时自动补全空白文件；自定义 preset 里删除的覆盖文件不会自动出现（删了就当“没有这个文件”）。删掉某一整个 preset 目录，下次启动时插件会重新生成里面的四个文件（仅限自带 preset）。\n- **恢复的是“当前版本”的默认**：插件升级后，重置得到的是新版本带的新默认内容，不是旧版本留下的。\n\n文件的重新生成只发生在插件启动时，绝不影响进行中的会话。\n\n## 为什么用 Hashline\n\n**省 token。** 一次编辑调用只携带 `remove_from` / `remove_to`（两个 3 字符哈希）加替换文本——从不回显被替换的文本。`str_replace` 调用则必须逐字复现被替换的文本。在一个真实文件上的 12 次编辑会话中，这可以**减少 31% 的输出 token**（多行范围达 43%）——而且这些是*输出* token，按输入的约 5-6 倍计费。见[基准测试](#基准测试)。\n\n**但这从来不是“最省 token”。** 节省随被替换文本的规模增长——单行微调时几乎持平——而且像 [@oh-my-pi/hashline](#对比) 这样的紧凑补丁语言还能发出更轻的负载（同一会话中 42–53%）。关键在于**正确形态**的编辑调用：不复述旧代码，模型除了两个稳定的内容地址外无需跟踪任何东西。\n\n**正确性。** 每个解析出的编辑范围都会与模型实际看到的行逐行核对。过期、从未提供或歧义的范围会在**写入任何内容之前**被硬性拒绝，并把当前范围以全新锚点的形式回显（reject-and-serve）——重试无需 `read`。\n\n**面向 Agent 的现代编辑范式。** 内容地址锚点与行号无关：编辑文件的一部分，其余行的哈希保持不变，因此连续编辑无需重新读取。模型按行**是什么**来定位，而不是按它之前在第几行。\n\n### 对比\n\n|                                |   hashline `edit`   | `str_replace`（Claude Code / Codex） |         @oh-my-pi/hashline 补丁          |\n| ------------------------------ | :-----------------: | :----------------------------------: | :--------------------------------------: |\n| 调用中永不回显被替换文本       |   ✅ 只有两个哈希   |             ❌ 逐字回显              |              ✅ 只有 `+` 行              |\n| 按什么定位行                   |      内容哈希       |               文本匹配               |           行号 + 文件内容标签            |\n| 对照模型所见内容校验           |      ✅ 每一行      |           ❌ 取第一个匹配            |               ~ 仅文件版本               |\n| 检测文件已过期                 | ✅ 拒绝并回传新锚点 |        ❌ 可能匹配到错误位置         |      ✅ 标签不匹配 → 拒绝或三方合并      |\n| 上方编辑后锚点依然有效         |     ✅ 内容寻址     |             ✅ 基于内容              |           ❌ 重新编号 + 新标签           |\n| 连续编辑无需重读               | ✅ diff 提供新锚点  |                  ~                   |            ~ 从编辑响应取行号            |\n| 文本重复时无歧义               |  ✅ 边界锚点需校验  |           ❌ 取第一个出现            |          ~ 按位置，行未逐行校验          |\n| 错行编辑永远不会悄悄落盘       |   ✅ 每一行都校验   |           ❌ 取第一个匹配            | ~ 原则上可能（标签只校验版本，不校验行） |\n| 块操作 / 寄存器 / `MV` / `REM` |         ❌          |                  ❌                  |                    ✅                    |\n| 一次变更一个文档               |   ❌ 每次一个调用   |           ❌ 每次一个调用            |             ✅ 多 hunk 补丁              |\n| 运行时                         |   ✅ Node（dsh）    |                  —                   |                ⚠️ 仅 Bun                 |\n| 撤销                           |      ✅ 持久化      |                  ❌                  |              ❌ 不在范围内               |\n\n> `~` = 偶尔/不稳定。`@oh-my-pi/hashline` 是一种紧凑的行锚定补丁语言（[npm](https://www.npmjs.com/package/@oh-my-pi/hashline)、[仓库](https://github.com/can1357/oh-my-pi/tree/main/packages/hashline)）：`[path#tag]` 头把每个 hunk 绑定到全文件内容哈希，`PUT N.=M:` 按行号定位；每次编辑都会重新编号——下一次的行号与标签取自编辑响应或重新 `read`。\n\n**不同的工作，同一条血脉。** 两者都源于 [harness-problem](https://stencil.so/blog/the-harness-problem) 的洞见：模型绝不该复述旧代码。`@oh-my-pi/hashline` 是**补丁语言库**——负载更轻（每次编辑省 42%，单个批量文档省 53%，见[基准测试](#基准测试)），支持语法块操作（`PUT N*:`）、寄存器、`REM`/`MV`、多 hunk 文档、可插拔文件系统（任何后端），以及标签过期时的会话感知三方合并恢复。本插件则是一对 **dsh 工具**：`read` 把 3 字符内容哈希交给模型，`edit` 取其中两个，并对解析出的每一行对照已提供状态校验——无需重新编号、无需重新取标签、错误锚点永远不可能落到错误的行，`undo_last_edit` 重启后依然有效。代价：每次编辑的 JSON 外壳会多一点负载、没有块操作，并且它活在 dsh（Node）内部，而不是独立补丁器（Bun）。要跨后端的补丁格式选 hashline 库；要在 Agent 里做可校验、内容寻址的编辑，选 hashline 工具。\n\n### 边界情况下的正确性\n\ntoken 基准测试衡量的是模型发出的负载——它假设模型每次都能拿到**正确**的地址，而且免费。正确性才是两种 hashline 实现真正分道扬镳的地方。下面是 harness-problem 文献里的真实故障模式（错行编辑、漂移、重复文本），以及各自在遭遇它们时的表现：\n\n| 边界情况                     | hashline `edit`（本插件）                                                                      | @oh-my-pi/hashline 补丁                                                                    |\n| ---------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |\n| 错误地址（锚点/行号差一行）  | **不可能**——锚点解析到具体行；解析出的每一行都对照已提供状态校验，在**写入任何内容之前**被拒绝 | **可能**——当前标签下的错误行号会**悄悄**落到错误位置；标签只证明文件版本，从不证明行       |\n| 模型查看后文件在磁盘上被改动 | 硬拒绝 + 回传新锚点（reject-and-serve）；重试无需 `read`                                       | 标签不匹配 → 拒绝**或**对未知的当前内容做尽力而为的三方合并                                |\n| 上方编辑导致文件移位         | 什么都不移位——锚点是内容地址；diff 提供新锚点                                                  | **每次编辑都重新编号**——“RE-GROUND AFTER EVERY EDIT” 是它自己的头号规则；账由模型记        |\n| 重复/相同文本                | 每行哈希唯一（冲突已消解）；歧义 → `[E_AMBIGUOUS_ANCHOR]`                                      | 基于位置，重复不会混淆——但位置本身未被校验                                                 |\n| 从未展示给模型的行           | `[E_RANGE_UNSERVED]`——硬拒绝并回传新锚点                                                       | 未展示的 hunk 被拒绝——同样依赖模型知道自己看过什么                                         |\n| 表达式中间 / 错误的块节点    | 无关——任何已校验的行范围都合法                                                                 | 语法规则 + `PUT N*:` 节点选择；点错（锚在 `def` 会让装饰器变成孤儿）会悄悄落错；无语法检查 |\n| 多编辑批量中途失败           | `edit` 多条目——原子、全有或全无；失败项以新锚点回显                                            | 多段补丁先预检——同样原子                                                                   |\n\n> oh-my-pi 42–53% 的负载节省来自更轻的线格式；上表才是该格式反过来要求模型记在脑中的东西——重新编号、追标签、选节点——而这恰恰是最容易出错的组件（替换式编辑的补丁失败率 46–51%）。本插件 31% 的代价买来的是一个“错编辑落不了地、任何拒绝都不需要重读”的契约。\n\n## 基准测试\n\n在同一份 103 行文件上、用相同的 12 组替换（8 个单行、4 个 3/6/10/15 行多行），以固定的 `js-tiktoken` `cl100k_base` 词表测量。三个被测方发出相同的替换文本：本插件的 `edit`（两个 3 字符锚点）、`str_replace` 工具（逐字回显旧文本）、以及 [`@oh-my-pi/hashline`](https://www.npmjs.com/package/@oh-my-pi/hashline) 的两种模式——每次编辑一个 `[path#tag]` 段（`seq`）和一个多 hunk 批量文档（`batch`）：\n\n| 指标                         |        hashline        |   str_replace   |    oh-my-pi seq / batch     |\n| ---------------------------- | :--------------------: | :-------------: | :-------------------------: |\n| 被替换文本是否上线           |        ✅ 从不         | ❌ 每次编辑都发 |           ✅ 从不           |\n| 输出 token 节省（12 次编辑） |       ✅ **31%**       |      ❌ 0%      |      ✅ **42% / 53%**       |\n| 多行范围节省（3–15 行）      |     ✅ **29–47%**      |      ❌ 0%      |        ✅ **40–53%**        |\n| 按 5 倍输出计价的实际成本    |   ✅ **低约 1.4 倍**   |      ❌ 1×      | ✅ **低约 1.7 倍 / 2.1 倍** |\n| 范围对照已提供状态校验       |        ✅ 100%         |      ❌ 无      |        ~ 仅文件版本         |\n| 模型需要跟踪的行号           |    ✅ 无——内容锚点     | ✅ 无——文本匹配 |     ❌ 每次编辑重新编号     |\n| 确定性、可在本地复现         | ✅ `npm run benchmark` |        —        |              —              |\n\n### 可复现\n\n上面的数字**是确定性的，你可以本地复现**——`npm run benchmark`：\n\n| 场景         | 行数 | hashline | str_replace | oh-my-pi seq | oh-my-pi batch |\n| ------------ | :--: | :------: | :---------: | :----------: | :------------: |\n| 单行 ×8      |  1   |   309    |     324     |     241      |       —        |\n| 多行 ×4      | 3–15 |   393    |     691     |     349      |       —        |\n| **合计 ×12** |      | **702**  |  **1015**   |   **590**    |    **480**     |\n\n相对 `str_replace` 的节省：hashline **313（31%）** · oh-my-pi 逐次 **425（42%）** · oh-my-pi 批量 **535（53%）**。\n\n脚本天然确定：固定语料、内容寻址且自带自检的编辑脚本（语料被重排会直接抛错，而不是悄悄改变测量对象）、固定版本的 tokenizer，且 oh-my-pi 负载在计数前会对照其发布的语法校验。因为一切都是固定的，`npm run benchmark` 对每个人都是同一个结果——本 README 里的数字就是该次运行的一个快照；重新生成，不要轻信。\n\n> **范围与诚实。** 基准测试衡量的是**请求负载 token**——每次编辑调用时模型发出的内容——读文件流量完全相同故已排除（可抵消），替换文本也完全一致。它**没有**建模转录失败与重试，而真实差距恰恰主要在那边：最初的 [harness-problem](https://stencil.so/blog/the-harness-problem) 文章报告改用锚定编辑后**输出 token 减少 61%**，补丁失败率从 46–51% 降至接近零。它同样**没有**建模行号格式在调用**之间**让模型付出的代价——每次编辑后重新编号、重新获取文件标签——也不包括块操作能力、Bun 与 Node 的运行时差异，以及 `@oh-my-pi/hashline` 是独立补丁器、而本插件是带 `read`/`edit`/`undo` 的 dsh 工具对这一事实。完整方法论、逐编辑表与完整局限清单见 [`benchmark/README.md`](benchmark/README.md)。这些数字背后的正确性差距见上文[边界情况下的正确性](#边界情况下的正确性)。\n\n## 工具\n\n| 工具             | 作用                                                                                                                                                                                                                                               |\n| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `read`           | 以 `HASH│内容` 形式返回文件。参数：`offset`（1 起始）、`limit`。分页输出以 `[Showing lines N-M of T. Use offset=… to continue.]` 结尾。超过 200KB 的行显示为标记并附 `sed` 提示——哈希锚点需要完整行。                                              |\n| `edit`           | 对象根负载 `{ \"path\": path, \"edits\": [[remove_from, remove_to, replacement_text], …] }`；`path` 可为 `null` 以通过锚点推断。单个条目编辑一个范围；多条目对同一文件原子批量（最多 32）。对每个包含范围内的每一行校验，reject-and-serve 返回新锚点。 |\n| `undo_last_edit` | `{ path }` 撤销该文件上一次 hashline 编辑，仅当文件仍与存储的编辑后内容一致时生效；重启后依然有效。                                                                                                                                                |\n\n内置 `write` 仍用于整文件替换。执行前，插件只会在候选行以同一会话、规范路径及行位置所提供的精确 `HASH│` 锚点开头时拒绝；文件保持不变，并提示仅用文件正文重试。插件不会泛化地剥离类似哈希的文本。\n\n### 错误码\n\n| 代码                   | 含义                                                                                                                         |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------- |\n| `[E_ACCESS]`           | 文件存在但工具不可读/不可写。                                                                                                |\n| `[E_AMBIGUOUS_ANCHOR]` | 一个哈希匹配当前多行；调用 `read` 获取新锚点。                                                                               |\n| `[E_BAD_OP]`           | 范围结束先于范围开始（首尾颠倒时会自动纠正）。                                                                               |\n| `[E_BAD_REF]`          | `remove_from`/`remove_to` 不是裸 3 字符哈希。                                                                                |\n| `[E_BAD_SHAPE]`        | 请求/字段形态错误（未知字段、缺少 path、非字符串文本等）。                                                                   |\n| `[E_BARE_HASH_PREFIX]` | `HASH│` 前缀被粘贴进 `replacement_text`（自动纠正）。                                                                        |\n| `[E_BATCH_ABORT]`      | 批次内某项失败；整个批次被拒绝，未写入任何内容。                                                                             |\n| `[E_FILE_TOO_LARGE]`   | 文件超过 hashline 行数上限；请改用 `write` 或其他方式。                                                                      |\n| `[E_INVALID_PATCH]`    | diff 预览标记被粘贴进 `replacement_text`（自动纠正）。                                                                       |\n| `[E_NOOP_LOOP]`        | 完全相同的编辑反复不产生任何变化；再次提交会被拒绝。                                                                         |\n| `[E_NOT_FOUND]`        | 文件不存在。                                                                                                                 |\n| `[E_NOT_OBSERVED]`     | 该文件在本会话中尚未被观察（先读后写策略）；请先调用 `read`。                                                                |\n| `[E_NOT_TEXT]`         | 路径是目录、二进制或非 UTF-8 文件；hashline 只能编辑文本。                                                                   |\n| `[E_WRITE_HASH_ECHO]`  | 内置 `write` 候选内容复制了同一会话、路径及行位置所提供的 `HASH│` 预览锚点。写入在执行前被拒绝；移除整条复制的锚点链后重试。 |\n| `[E_RANGE_STALE]`      | 某行自被读取以来在磁盘上发生变化；范围以全新锚点回显。                                                                       |\n| `[E_RANGE_UNSERVED]`   | 范围内包含从未提供给模型的行。                                                                                               |\n| `[E_RANGE_UNVERIFIED]` | 边界锚点无法对照已提供状态验证。                                                                                             |\n| `[E_STALE_ANCHOR]`     | 锚点不再能解析；调用 `read` 获取新锚点。                                                                                     |\n| `[E_UNDO_STALE]`       | 无法撤销：编辑之后文件被修改（或删除）。                                                                                     |\n| `[E_UNDO_UNAVAILABLE]` | 撤销历史无法持久化；编辑未被应用。                                                                                           |\n| `[E_WOULD_EMPTY]`      | 编辑会把非空文件清空；请用 `write` 清空。                                                                                    |\n\n## 如何替换内置工具\n\ndsh 的工具注册表按作用域解析：agent 看到的是 `agent → preset → global`，且**自身**层总是优先。内置的 `read`/`edit` 位于 agent-preset 层，因此普通的全局注册无法替换它们。本插件：\n\n1. 通过其 `cordis.patch.yml` bundle 补丁作为宿主层 Cordis 插件挂载。\n2. 在 `agent/created` 时，将 hashline 工具**以及** `tool:read` / `tool:edit` 提示词片段注册到 agent 自身的作用域层——从而为该 agent 遮蔽 preset 的内置工具，并在 agent 销毁时自动解除。\n3. 保留内置的 `write`，通过作用域内的 `tools/pre-execute` 监听器在执行前拒绝精确的同会话/同路径/同行锚点回显，并由 `tools/post-execute` 在成功结果后附加 hashline 自动读取。\n\n## 存储\n\n哈希快照、已提供状态行与撤销历史存放在一个 SQLite 库中——**默认 central**（`$DSH_HOME/plugins/dsh-better-edit/runtime/<name>-<hash8>/hash-store.sqlite`，可通过 `ls` 查看，带 `.wsPath` 旁路文件）。旧的同址 `<workspace>/.dsh_better_edit/` 仍可通过 `config.yaml` 中 `storeDir: workspace` 启用，并在首次以 central 打开时一次性拷贝。不同工作区的并行会话各自持有独立的库（会话 cwd 会随每次工具调用传递），因此一个项目的锚点与撤销历史不会泄漏到另一个项目。在工具调用之外（测试、预览）会回退到共享的 DeepSeek Harness 主目录（`$DSH_HOME/plugins/dsh-better-edit/hash-store.sqlite`）。\n\n7 天 TTL 清理已提供的行；`undo_ttl_s`（默认 7 天，`-1` 永久）清理撤销副本；缺失文件的快照在受控的 `openStore` 中清理；损坏的库会被隔离并自动重建。 central 的 janitor（`apply` + `agent/created` 受控节流 >24h）会先清理 `mtime>storeMaxAgeS`（默认 2592000 秒 = 30 天），再按 LRU 至 `count<100 && sum<500MB`，永不删除存活的 `hash(workspaceCwd)`，并在关闭时执行 `wal_checkpoint(TRUNCATE)`。DB 文件为可丢弃缓存——可安全删除，下次 `read` 时重建。\n\n## 项目结构\n\n```\ndsh-better-edit/\n├── src/\n│   ├── hashline/        # 哈希 + 已提供状态核心（从 pi-hashline-edit-lsz 逐字节移植）\n│   ├── tool-read.ts     # read  — HASH│内容、offset/limit 分页\n│   ├── tool-edit.ts     # edit  — 按哈希范围、reject-and-serve\n│   ├── tool-batch-edit.ts\n│   ├── tool-undo.ts     # undo_last_edit\n│   ├── sandbox.ts       # FsSandboxController 镜像（sandbox_permissions/justification）\n│   ├── write-hook.ts    # 附加到 write 结果的自动读取\n│   ├── served-store.ts  # 按工作区的 SQLite 存储（node:sqlite）\n│   └── workspace.ts     # 会话 cwd 的 AsyncLocalStorage 载体\n├── benchmark/           # 可复现的 hashline、str_replace 与 oh-my-pi token 基准测试\n│   └── corpus/          # 固定的 103 行语料\n├── test/                # 615 个测试（移植 + 回归）\n├── assets/              # logo 与 banner\n├── cordis.patch.yml     # bundle 补丁\n└── package.json         # dsh.bundle manifest\n```\n\n## 开发\n\n```sh\nnpm install\nnpm run typecheck   # tsc --noEmit\nnpm test            # vitest run（615 个测试）\nnpm run build       # tsc → lib/\nnpm run benchmark   # 可复现的 token 成本基准测试（benchmark/）\n```\n\n### 发布流程（先打 tag）\n\n```sh\nnpm run release -- 0.2.0                 # 升版本 + 迁移 CHANGELOG + 提交 + 打 tag + 推送 → 生成 GitHub release\nnpm publish --registry https://registry.npmjs.org   # 版本未打 tag 前会被阻止\n```\n\n`npm run release` 会更新 `package.json`/lockfile、把 CHANGELOG 的 `[Unreleased]` 段落迁移到版本号下、提交、打 `vX.Y.Z` tag 并推送——tag 推送会基于 changelog 自动创建 GitHub release。`npm publish` 在该 tag 存在之前会拒绝运行（prepublishOnly 门禁），因此每个 npm 版本都一定已经打好 tag 并发布过 release。\n\n测试套件移植自 pi-hashline-edit-lsz，通过本地文件系统桥接直接驱动 dsh 工具构建器。\n\n## 路线图\n\n**当前状态（0.1.7）：** 615 个测试、按工作区存储、参与沙箱策略、served-tail 截断修复、可复现基准测试、中英双语 README、已发布 npm。\n\n<details><summary>下一步</summary>\n\n- **缩小或证明与 @oh-my-pi/hashline 的差距**（参考：[`../oh-my-pi.md`](../oh-my-pi.md)）。这个兄弟补丁语言负载更轻——基准测试中相对 `str_replace` 省 42%/53%，而我们省 31%，因为它裸文本式的补丁文档跳过了我们每次调用都要付的 JSON 外壳——还提供了我们不支持的四种能力：语法块操作（`PUT N*:`）、寄存器 + `REM`/`MV`、一次变更一个多 hunk 文档、可插拔文件系统。代价在正确性一侧：它的行号未经验证（当前标签下的错行号会静默落盘）、每次编辑都要重新编号、过期标签触发尽力而为的三方合并而非校验、语法也抬高了模型的技能门槛。逐项决定是拒绝还是采纳——负载差距本身不足以成为切换格式的理由。\n- 在 dsh 会话中实测 0.1.7（served-tail 修复之后）。\n- 把 served-tail 截断修复回馈给 pi-hashline-edit-lsz / 上游（他们的 `upsertServed` 同样从不截断）。\n- 对照下一个 dsh 版本重新核对插件接线（当前固定在 `0.1.0-rc.6`；dsh 处于开发者预览阶段，承诺会有破坏性变更）。\n\n</details>\n\n## 贡献\n\n见 [CONTRIBUTING.md](CONTRIBUTING.md)（或者直接开 [issue](https://github.com/Rianico/dsh-better-edit/issues)）。当前最有价值的贡献是更多基准场景和针对已提供状态校验的边界测试。\n\n## 许可证\n\nMIT License——详见 [LICENSE](LICENSE)。移植自 pi-hashline-edit-lsz（MIT），其本身带有 RimuruW 与 YuGiMob 的上游版权声明。\n\n## 致谢\n\n哈希锚定编辑源于 Can Bölük 的 [_The Harness Problem_](https://stencil.so/blog/the-harness-problem)——那篇文章证明了瓶颈在于 harness 而非模型，并证明锚定编辑优于搜索替换。本项目站在以下巨人的肩膀上：\n\n- [**pi-hashline-edit**](https://github.com/RimuruW/pi-hashline-edit)（RimuruW）——引入 3 字符哈希与冲突消解的原创 pi-coding-agent 扩展。\n- [**pi-hashline-edit-pro**](https://github.com/YuGiMob/pi-hashline-edit-pro)（YuGiMob）——本仓库 hashline 核心所移植自的加固版 fork。\n- [**pi-hashline-edit-lsz**](https://github.com/Rianico/pi-hashline-edit-lsz)——本项目所跟随的自维护 fork。hashline 核心逐字节移植；工具层基于 dsh 的插件 API 重写。\n\n延伸阅读：[Hash anchors + Myers diff + single-token anchors（dirac.run）](https://dirac.run/posts/hash-anchors-myers-diff-single-token)（关于编辑调用 O(S+R) → O(R) 节省的设计评论）以及一个独立的 [hashline 与 replace 对比基准测试](https://nwyin.com/blogs/hashline-vs-replace-edit-bench.html)。\n\n---\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=Rianico/dsh-better-edit&type=Date)](https://star-history.com/#Rianico/dsh-better-edit&Date)\n\n---\n\n<p align=\"center\">\n  <strong>⭐ 如果 hashline 编辑让 Agent 的编辑更可靠，就给它一个 star 吧！</strong>\n</p>\n","readmeFilename":"README.zh.md"}