Skip to content

Release v6.22.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 02:11
f38e6dc

Extension packages now carry a contract.play, a model references a package with extension "<reference>" [version <range>], and screenplay.lock pins what it resolved to.

Added

  • The extension contract file: display name, description, icon, image with captions, requires stage | screenplay | platform | runtime, setting <name> [public | secret], ability, trigger, component (kind, platform, placeholder, property, raises, invokes), backend and frontend, parsed by both the C# and the TypeScript compiler. A setting that is both public and secret is an error, so a secret can never reach a browser. See https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/extension-contracts.md. (#1253)
  • A system that names an extension gets the contract's abilities, and its triggers are available to reactions as when <System>.<Trigger>. Settings are checked against the contract.
  • screenplay.lock, a plain-text lock beside the model root that pins each reference's version, digest, contract hash and publisher, with a vendored extensions folder and a digest-keyed cache.
  • screenplay restore [<folder>] [--locked] [--update] [--source <directory>] [--vendor] to pin and restore extensions; --locked is for CI and never resolves a range.
  • Provider compatibility: a use of a trigger the extension no longer offers is reported at each use (PLAY1112), and ExtensionCompatibility.Mismatches compares two contracts.
  • Editors (screenplay mcp, the language service) restore unresolved references automatically and report them as warnings until they are restored.
  • Diagnostics PLAY0998, PLAY0999 and PLAY1100 to PLAY1113, Monaco and VS Code highlighting of contract lines, and a locked extension in Samples/Invoicing.

Changed

  • A system that names an extension can no longer declare abilities of its own (PLAY1106); the contract is the only source of its abilities.
  • Compiling a model whose system names an extension now needs screenplay.lock and the restored contract; run screenplay restore once and commit the lock (PLAY1107, PLAY1108).