b12e4698a6
- Added a dedicated @oh-my-pi/hashline package with parser, patcher, filesystem, snapshots, and release metadata. - Migrated coding-agent hashline and stream entrypoints to @oh-my-pi/hashline and removed old hashline module exports. - Changed multi-section hashline execution to validate section hashes and flush diagnostics only at the final commit. - Added session fileSnapshotStore support and rewired edit/read/search/write tools to use it instead of fileReadCache.
1.1 KiB
1.1 KiB
Changelog
All notable changes to this package will be documented in this file.
[Unreleased]
Added
- Added a high-level
PatcherAPI with all-or-nothingapplyand stagedprepare/commitflows for multi-file patch updates - Added pluggable
FilesystemandSnapshotStoreabstractions with built-inNodeFilesystem,InMemoryFilesystem, andInMemorySnapshotStoreadapters - Added patch parsing that consumes
¶PATH#HASHhunk headers, validates section file hashes, and supports optional patch envelope markers - Added tolerant input handling that strips read/search prefixes and supports optional
cwd/fallback-path resolution when parsing patch payloads - Added automatic line-ending and BOM normalization on read, with original encoding shape restored on write
- Added follow-up helpers
buildCompactDiffPreviewandstreamHashLinesfor compact diff previews and chunked streaming of numbered lines - Added stale-file-hash recovery that replays edits against snapshots and merges results onto current file content when direct hash validation fails
- Initial standalone release. Extracted from
@oh-my-pi/pi-coding-agentwith a