Repository navigation
@onlyworlds/sdk 4.41.0
A known-of stub's public fields (keel PR 117, keel #448), live in production, and schema-dist v0.32.1-dist.28, which publishes them.
Added
PUBLIC_FIELDS(generated from the distribution'spresentation.json,types.<type>.public): per element type,
the fields onlyworlds.com shows on a known-of stub besides the base fields, with their values, as a readonly
as constarray; all 22 types present. A Character's arephysicality,height,weight,speciesand
reputation; every other type's list is empty for now. Platform behaviour, not a default to override. Codegen
exits 1 on a tree without the sidecar, a type without the key, or a name that is not a field of its type.err.isKnownOfNotWritable: keel's named refusal of a write carryingknown_of, true or false (422
known_of_not_writable,paramknown_of). This client never sendsknown_of(4.40.0's strip and refusal are
unchanged), so it reaches you only throughrequest();/bulkputs it in the item's slot.
Changed
- Repinned to schema-dist v0.32.1-dist.28:
presentation.jsongainstypes.<type>.publicand_meta.public; no
schema file moved, so the generated interfaces change only their source lines. - A stub's description on
known_of(the generated doc comment,SCHEMA.mdandAGENTS.md) says a stub
keeps its type'sPUBLIC_FIELDSwith their values too; it said every other field reads unset.