Repository navigation
Release v6.26.0
Screenplay models can now say whether a part of an application is there at all for a tenant, a user or the system, separately from who is allowed to use it.
Added
audienceand reusableavailabilitydeclarations withfor,whenandwithlines, combined withand,orand parentheses, andavailable for,available whenandavailable withgates on modules, features, slices, commands, queries and screens. Gates combine down the path and are decided beforeauthorize; an unknown audience, availability or value never opens a gate (#1301)- Persona
audiencelines, for authoring only, and the$context.audiencesvalue. provide <name> <Type> from <source>for scope-driven context values readable inavailable when.- ESM v53, written only when a model uses availability or provided values.
- Diagnostics
PLAY1130toPLAY1141for malformed, duplicate, unknown and circular audiences and availabilities, unprovided values, and commands that can be unavailable to their invoker. - The same support in the TypeScript compiler, Monaco (hover, completion, go to definition, snippets), the VS Code grammar, rename and the MCP server. The event model board draws a gated slice for the personas that pass its gates and marks it.
- A documentation page on audiences and availability, and gates in the Invoicing and Commerce samples.
Changed
provideis admitted when its source is a literal, the host or a query;providefrom a file or code block stays a preview.