Repository navigation
Add audiences and availability gates - #1305
Merged
Merged
Conversation
Compiler core for #1301: syntax, parser, printer, validator, diagnostics PLAY1130-1141, binder, ESM v53 with golden and schema.
…he TypeScript compiler
…cribe them in the MCP catalog
Contributor
Author
|
Corpus impact: tracked in Cratis/AI#1144 (Cratis/AI#1144). Reviewer notes:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (Audiences and availability:audience,availability,available for | when | with#1301)audiencelines, for authoring only, and the$context.audiencesvalue.provide <name> <Type> from <source>for scope-driven context values readable inavailable when.PLAY1130toPLAY1141for malformed, duplicate, unknown and circular audiences and availabilities, unprovided values, and commands that can be unavailable to their invoker.Changed
provideis admitted when its source is a literal, the host or a query;providefrom a file or code block stays a preview.