Skip to content

fix(store): KVStore — getWithMetadata + put metadata options#11

Merged
drewstone merged 1 commit into
mainfrom
fix/kvstore-metadata-surface
Jun 5, 2026
Merged

fix(store): KVStore — getWithMetadata + put metadata options#11
drewstone merged 1 commit into
mainfrom
fix/kvstore-metadata-surface

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Completes the KVStore surface to match what the vaults actually use: getWithMetadata + put(key,value,{metadata}) (the encrypted/hasPII flags). The minimal 0.1.12 interface omitted them, so insurance/legal vaults didn't typecheck against the port. Implemented in createInMemoryKV too. 171 tests. 0.1.13.

🤖 Generated with Claude Code

The vault uses the KV metadata API (getWithMetadata, put(key,value,{metadata}))
for its encrypted/hasPII flags; the minimal 0.1.12 KVStore omitted them, so
insurance/legal vaults didn't typecheck against the port. Complete the surface
(getWithMetadata + KVPutOptions) and implement it in createInMemoryKV. 171 tests.
@drewstone drewstone merged commit ec525bf into main Jun 5, 2026
1 check passed
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