feat: Phase 1 — core primitives (hash + CBOR + memory store)

- CBOR deterministic encoding (cborg, RFC 8949 §4.2)
- XXH64 → 13-char Crockford Base32 hashing
- createMemoryStore() with idempotent put
- verify() integrity check
- bootstrap() self-referencing meta-schema seed
- 23 tests passing, biome clean

Closes #3
小橘 <xiaoju@shazhou.work>
This commit is contained in:
2026-05-17 09:23:05 +00:00
parent 9645e37ab5
commit 9aac38238a
15 changed files with 560 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
{
"name": "@uncaged/json-cas-workspace",
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": {
"@biomejs/biome": "^2.0.0",
"typescript": "^5.8.0"
},
"scripts": {
"test": "bun test",
"check": "biome check .",
"format": "biome format --write ."
}
}