Skip to content

feat(client): add declarative Save/Restore with HashFiles#267

Merged
alecthomas merged 1 commit intomainfrom
aat/client-save-restore
Apr 20, 2026
Merged

feat(client): add declarative Save/Restore with HashFiles#267
alecthomas merged 1 commit intomainfrom
aat/client-save-restore

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

Collapses Snapshot/SnapshotPaths/Restore into a single Save/Restore
pair using functional options. Restore now returns (hit, err) so
callers can branch on cache miss without inspecting errors.

HashFiles produces a Key from the contents of files matched by
doublestar glob patterns, enabling GitHub Actions-style declarative
file caching.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Collapses Snapshot/SnapshotPaths/Restore into a single Save/Restore
pair using functional options. Restore now returns (hit, err) so
callers can branch on cache miss without inspecting errors.

HashFiles produces a Key from the contents of files matched by
doublestar glob patterns, enabling GitHub Actions-style declarative
file caching.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alecthomas alecthomas requested a review from a team as a code owner April 20, 2026 04:28
@alecthomas alecthomas requested review from stuartwdouglas and removed request for a team April 20, 2026 04:28
@alecthomas alecthomas enabled auto-merge (squash) April 20, 2026 04:30
@alecthomas alecthomas merged commit a33a354 into main Apr 20, 2026
8 checks passed
@alecthomas alecthomas deleted the aat/client-save-restore branch April 20, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant