cultcache-ts: indexes are unique at commit and load, roles name selection aliases, canonical index text

Deletes the last-writer-wins derive and String(value) rendering; one judge
(#refuseIndexSharing) for every write, load and registration.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Libby 2026-11-11 04:29:15 +00:00
commit 9b6253660b
6 changed files with 513 additions and 27 deletions

View file

@ -94,7 +94,6 @@ const itemDocument = defineDocumentType({
schemaVersion: "gamecult.first_call_item.v1",
schema: z.object({ name: z.string(), category: z.string(), value: z.number().int() }),
name: "name",
indexes: { category: "category" },
});
const registry = defineDocumentRegistry(itemDocument);