feat: list-meta / list-schema commands + meta index #90
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
list --typedoes exact hash matching. When meta-schema evolves (new version = new hash), old schemas typed by the previous meta-schema become invisible.Definitions
type === hash(self)(self-describing)type ∈ meta-schema setChanges
Core (json-cas-fs)
_index/_metafile) — a list of all meta-schema hashesmetaSet: Set<Hash>in memory, updated onput()whentypeHash === hash_metafrom existing datalistMeta(): Hash[]andlistSchemas(): Hash[]to Store interfaceCLI (cli-json-cas)
json-cas list-meta— lists all meta-schemasjson-cas list-schema— lists all schemas (instances of any meta-schema)Notes
listSchemas()=metaSet.flatMap(m => typeIndex[m])小橘 🍊(NEKO Team)