Download the PHP package ineersa/hatfield-ext-file-rewind without Composer
On this page you can find all versions of the php package ineersa/hatfield-ext-file-rewind. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ineersa/hatfield-ext-file-rewind
More information about ineersa/hatfield-ext-file-rewind
Files in ineersa/hatfield-ext-file-rewind
Download ineersa/hatfield-ext-file-rewind
More information about ineersa/hatfield-ext-file-rewind
Files in ineersa/hatfield-ext-file-rewind
Vendor ineersa
Package hatfield-ext-file-rewind
Short Description File rewind extension for Hatfield (hidden-git checkpoints, /rewind picker)
License MIT
Package hatfield-ext-file-rewind
Short Description File rewind extension for Hatfield (hidden-git checkpoints, /rewind picker)
License MIT
Please rate this library. Is it a good library?
Informations about the package hatfield-ext-file-rewind
Hatfield file-rewind extension
Project-level Hatfield extension that records file-only hidden-git checkpoints after stable completed turns and restores them through /rewind.
| Package | ineersa/hatfield-ext-file-rewind |
| Extension class | Ineersa\HatfieldExt\FileRewind\FileRewindExtension |
| Namespace | Ineersa\HatfieldExt\FileRewind\ |
| PHP | >=8.3 |
| Requires | ineersa/hatfield-extension-api, psr/log, symfony/tui |
Behavior (v1)
- After stable turn boundaries (
AfterTurnCommitHookInterface), captures worktree state into a Hatfield-owned hidden git store (isolatedGIT_DIR; never the project.git). /rewindopens an extension-owned Symfony TUI picker of file checkpoint targets on retained user-prompt turns for the active session only (same user-only row contract as/history, filtered to turns with a persisted checkpoint and a meaningful label).- Enter restores files to that checkpoint (file-only). Esc closes the picker. Undo metadata is captured before restore; no undo menu item in v1.
/historyremains conversation-only; file restore is not mixed into conversation history.- Live file-diff preview is intentionally disabled in v1 (no hidden-git indexing on open/navigation).
- Ledger/snapshots live under
.hatfield/rewind/(project-scoped by cwd hash).max_retained_turnsprunes newest-N checkpoint rows across all sessions in that project ledger.
Checkpoint boundaries
- Plain assistant turns and post-tool stable commits can create checkpoints.
- Mid-tool-only commits do not create restore targets.
- Picker surfaces only checkpoints whose turn number is a retained user-prompt row for the active session.
Enable
Defaults match FileRewindConfig. Listing the class under extensions.enabled is required; start a new Hatfield session after enabling.
Safety
- Project
.gitis never used for snapshot objects/refs. - Hidden snapshots may contain secrets from captured files.
- Restore is not fully transactional across arbitrary failure modes; partial failures are recorded and surfaced.
Source of truth
ineersa/agent-core monorepo path .hatfield/extensions/file-rewind/ is authoritative. The GitHub package repository is a read-only release mirror.
All versions of hatfield-ext-file-rewind with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
ineersa/hatfield-extension-api Version @dev
psr/log Version ^3.0
symfony/tui Version ^8.0
ineersa/hatfield-extension-api Version @dev
psr/log Version ^3.0
symfony/tui Version ^8.0
The package ineersa/hatfield-ext-file-rewind contains the following files
Loading the files please wait ...