Skip to content

feat(store): KVStore port + createInMemoryKV (portable vault backend)#10

Merged
drewstone merged 1 commit into
mainfrom
feat/kv-vault-port
Jun 5, 2026
Merged

feat(store): KVStore port + createInMemoryKV (portable vault backend)#10
drewstone merged 1 commit into
mainfrom
feat/kv-vault-port

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Second store-port brick: the vault's KV backend behind a port. Adds KVStore (the get/put/delete/list subset the vaults use — Cloudflare KVNamespace satisfies it structurally) + createInMemoryKV() (the portable adapter for sandbox/eval). The agents widen setVaultKV to accept KVStore: prod passes the KV binding unchanged, the inner shell injects an in-memory KV. 169 tests (+3). 0.1.12.

🤖 Generated with Claude Code

Extends the store module with the vault's KV seam: a KVStore interface (the
get/put/delete/list subset the vaults use — Cloudflare KVNamespace satisfies it
structurally) + createInMemoryKV() as the portable adapter for sandbox/eval.
The vaults widen setVaultKV to accept KVStore, so prod passes the KV binding
unchanged and the inner shell injects an in-memory KV. 169 tests (+3).
@drewstone drewstone merged commit 3a00d65 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