Changelog
tilttek/player-knowledgePas encore traduite
Cette page n'est pas encore traduite en français ; elle est présentée en anglais.
All notable changes to tilttek/player-knowledge will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.0-alpha - 2026-11-29
Added
KnowerandKnowerKind: a character or a player by identifier, or every character or every player of a campaign, those who join later included; written as a key,character:wrenorplayer:*, read back byKnower::fromKey().SecretandOrigin: a secret of a campaign with a title of 1 to 150 characters and where its text lives, kept at a version; the library keeps the reference, never the text.RevelationandMeans: a secret revealed to one knower, dated, with the member who revealed it, how — told, discovered, given by a handout, shared — the session, and the character who shared it; at most one by secret and knower, the first.Perspective: whose knowledge a page reads — the game master, who knows every secret; a character, with every character; a player at the table, who adds what they know out of character; a player without a character.Knowledge: up to 5 000 secrets a campaign recorded, retitled and removed with their revelations; a secret revealed to 1 to 500 knowers at once, a knower who knew it keeping their first revelation; shared by a character who knows it to others, never what only its player knows nor to itself; a revelation taken back; every revelation to a character or a player forgotten in every campaign; who knows a secret, by date; the first revelation of each secret a perspective learned, by date; what a player knows out of character that their character does not; a change that changes nothing keeps and tells nothing; no state kept between calls.KnowledgeSnapshot: what a perspective knows of a campaign, read once, asked of every entry of a page — up to 64 secrets an entry — and filtering the entries whose secrets are all known, in their order.- The events
SecretRecorded,SecretChanged,SecretRemoved,SecretRevealed,RevelationRetractedandKnowerForgotten, by identifiers only, told once to aContract\KnowledgeObserverInterface. Contract\KnowledgeStoreInterface, secrets kept at a version and revelations kept all or none, andStore\InMemoryKnowledgeStorefor tests.- The exceptions
InvalidKnowledge,KnowledgeRefused,SecretNotFoundandKnowledgeConflict, underPlayerKnowledgeExceptionInterface. - A fuzz target of the knower keys, and a benchmark of a snapshot and of a page filtered by it.
- The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.