Aller au contenu

Changelog

tilttek/player-knowledge

Pas encore traduite

Cette page n'est pas encore traduite en français ; elle est présentée en anglais.

Français

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

  • Knower and KnowerKind: 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:wren or player:*, read back by Knower::fromKey().
  • Secret and Origin: 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.
  • Revelation and Means: 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, RevelationRetracted and KnowerForgotten, by identifiers only, told once to a Contract\KnowledgeObserverInterface.
  • Contract\KnowledgeStoreInterface, secrets kept at a version and revelations kept all or none, and Store\InMemoryKnowledgeStore for tests.
  • The exceptions InvalidKnowledge, KnowledgeRefused, SecretNotFound and KnowledgeConflict, under PlayerKnowledgeExceptionInterface.
  • 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.md and CODE_OF_CONDUCT.md.