Repository navigation
Release v6.22.0
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,imagewith captions,requires stage | screenplay | platform | runtime,setting <name> [public | secret],ability,trigger,component(kind,platform,placeholder,property,raises,invokes),backendandfrontend, 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 vendoredextensionsfolder and a digest-keyed cache.screenplay restore [<folder>] [--locked] [--update] [--source <directory>] [--vendor]to pin and restore extensions;--lockedis 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), andExtensionCompatibility.Mismatchescompares two contracts. - Editors (
screenplay mcp, the language service) restore unresolved references automatically and report them as warnings until they are restored. - Diagnostics
PLAY0998,PLAY0999andPLAY1100toPLAY1113, Monaco and VS Code highlighting of contract lines, and a locked extension inSamples/Invoicing.
Changed
- A system that names an
extensioncan 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.lockand the restored contract; runscreenplay restoreonce and commit the lock (PLAY1107,PLAY1108).