@cratis/pi 7.51.0 → 7.51.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +15 -1
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -1
- package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +7 -1
- package/package/corpus/harnesses/pi/extensions/shared/rules.ts +9 -1
- package/package/corpus/rules/application-profile.md +15 -1
- package/package/corpus/rules/authoring-skills.md +1 -1
- package/package/corpus/rules/cratis-folder-is-configuration.md +3 -1
- package/package/corpus/rules/exit-codes-and-wrappers.md +7 -1
- package/package/corpus/rules/general.md +8 -6
- package/package/corpus/rules/guards-and-fuses.md +7 -1
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +8 -7
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
- package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
- package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
- package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
- package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
- package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
- package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +11 -13
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
- package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
- package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
- package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
- package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
- package/package.json +1 -1
- package/src/index.ts +9 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Projection (PDL) example
|
|
2
2
|
|
|
3
|
-
Projection forms that compile warning-free, bind on both tools and run in the reference runner without Unsupported results (`PlacingAnOrder`, `CancellingAnOrder`, `Depositing` and `RejectingAnEmptyCode` pass). The specifications exercise every, from, `set`, increment, remove with, all + count, add/subtract by, `clear` and the concept rules; `PlacingAnOrder` also runs the `children lines` block (through `LineAdded`) without asserting it; join, nested and variant groups bind but no specification drives them. Forms in this example: every, join, children, nested, clear with, remove with, increment/decrement, all + count, add/subtract by, set to, clear, no automap, literal mapping, variant group (no `=> RM`), concept rules not empty/max/length ==. `lineCount` is initialized in `OrderPlaced` and `shipping` is optional, because the reference runner requires every non-optional read-model property to be set after each fact. Rejected by the binder: more than one every/all block on one level (PLAY0268); `$eventContext.occurred.Week` (PLAY0273, derived value). Not in this example because they block the whole execution plan in the reference runner
|
|
3
|
+
Projection forms that compile warning-free, bind on both tools and run in the reference runner without Unsupported results (`PlacingAnOrder`, `CancellingAnOrder`, `Depositing` and `RejectingAnEmptyCode` pass). The specifications exercise every, from, `set`, increment, remove with, all + count, add/subtract by, `clear` and the concept rules; `PlacingAnOrder` also runs the `children lines` block (through `LineAdded`) without asserting it; join, nested and variant groups bind but no specification drives them. Forms in this example: every, join, children, nested, clear with, remove with, increment/decrement, all + count, add/subtract by, set to, clear, no automap, literal mapping, variant group (no `=> RM`), concept rules not empty/max/length ==. `lineCount` is initialized in `OrderPlaced` and `shipping` is optional, because the reference runner requires every non-optional read-model property to be set after each fact. Rejected by the binder: more than one every/all block on one level (PLAY0268); `$eventContext.occurred.Week` (PLAY0273, derived value). Not in this example because they block the whole execution plan in the reference runner: a `remove via join` on a projection's own (root) level (`UnsupportedProjectionBlock`; it binds, but on Chronicle v19.32.0 it creates no removal subscription, so `CustomerDeleted` would not remove an `OrderView`), and any event-context value other than the event source identity in a projection, such as `$eventContext.occurred` (`UnsupportedEventContext`). Quick reference: [cheat-sheet.md](cheat-sheet.md). The `every` block here maps a literal to show the form. Carry a timestamp on the event with `$context.occurred` in the producing command when a view must show it.
|
|
4
4
|
|
|
5
5
|
```screenplay
|
|
6
6
|
// PDL forms that bind executable on both tools.
|
|
@@ -20,34 +20,6 @@
|
|
|
20
20
|
"value": "--no-color",
|
|
21
21
|
"reason": "Negative option guidance, not a command recommendation: `screenplay test` rejects the option. Remove with the warning."
|
|
22
22
|
},
|
|
23
|
-
{
|
|
24
|
-
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/mcp-loop.md",
|
|
25
|
-
"text": "4.63.1. Cratis CLI 3.28.2 bundles Screenplay 4.66.0 (probed: 29 tools and the same views);",
|
|
26
|
-
"kind": "toolCount",
|
|
27
|
-
"value": "29",
|
|
28
|
-
"reason": "Historical Screenplay 4.66.0 probe. Remove when this older probe is removed or replaced by a current-release probe."
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/provenance.md",
|
|
32
|
-
"text": "| Connection facts (29/30 tools, `notifications/initialized`, 16 connection-local proposals, fixed root) | Screenplay `v4.66.0` `Source/DotNET/Screenplay.Mcp/McpToolCatalog.cs`, `McpConnection.cs`, `McpWorkspaces.cs`, `Documentation/screenplay/mcp/reference.md`, `install.md` | Read at the tag and probed against the standalone 4.66.0 tool (4.63.1 for the roots behavior) |",
|
|
33
|
-
"kind": "toolCount",
|
|
34
|
-
"value": "29",
|
|
35
|
-
"reason": "Historical 4.66.0 catalog without visualization. Remove when this provenance statement is removed or replaced."
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/provenance.md",
|
|
39
|
-
"text": "| Connection facts (29/30 tools, `notifications/initialized`, 16 connection-local proposals, fixed root) | Screenplay `v4.66.0` `Source/DotNET/Screenplay.Mcp/McpToolCatalog.cs`, `McpConnection.cs`, `McpWorkspaces.cs`, `Documentation/screenplay/mcp/reference.md`, `install.md` | Read at the tag and probed against the standalone 4.66.0 tool (4.63.1 for the roots behavior) |",
|
|
40
|
-
"kind": "toolCount",
|
|
41
|
-
"value": "30",
|
|
42
|
-
"reason": "Historical 4.66.0 catalog with visualization. Remove when this provenance statement is removed or replaced."
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md",
|
|
46
|
-
"text": " remains on disk. On CLI 3.43.0: 9 requests and 9 responses, 37 tools,",
|
|
47
|
-
"kind": "toolCount",
|
|
48
|
-
"value": "37",
|
|
49
|
-
"reason": "Measured historical CLI 3.43.0 transcript, whose bundled Screenplay 4.127.0 exposes 37 tools. Current compiler and bundle versions are in Documentation/compatibility.md; this count describes only that transcript. Remove when the transcript is removed or replaced."
|
|
50
|
-
},
|
|
51
23
|
{
|
|
52
24
|
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
53
25
|
"text": "| PLAY0686 | Retired | Differing event pins travel as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission is separate: a renderer that does not admit v16 must refuse the model rather than render it under the new name. |",
|
|
@@ -25,23 +25,14 @@ root. Never put a model under `.cratis/` or hand-copy it between repositories.
|
|
|
25
25
|
`cratis ai install` manages `.cratis/ai/`, never model files. Keep explanatory
|
|
26
26
|
Markdown in project documentation; `.play` is the single flow model.
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Product sources
|
|
29
29
|
|
|
30
|
-
Tool versions: toolchain `SKILL.md
|
|
31
|
-
|
|
32
|
-
`
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
The update follows `commands.md`, `events.md`, `queries.md` and decision 0023
|
|
37
|
-
at that main commit (after v4.52.0). It does not verify UI rendering.
|
|
38
|
-
|
|
39
|
-
Checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`):
|
|
40
|
-
`Documentation/screenplay/{templates,layout-arrangement,forms,contributions,interactions,ui-profile,theme,internationalization,file-references}.md`.
|
|
41
|
-
Those checks established the original baseline. The changed cancellation
|
|
42
|
-
example uses the newer main commit above, not the old tag.
|
|
43
|
-
|
|
44
|
-
Read `SKILL.md` in `cratis-screenplay-toolchain` when reading installed tool versions for these examples.
|
|
30
|
+
Tool versions: toolchain `SKILL.md`. UI statements come from Screenplay
|
|
31
|
+
`screens.md`, `contributions.md`, `forms.md`, `templates.md`, `ui-profile.md`,
|
|
32
|
+
`fixtures/screen-release-ui.play`, `layout-arrangement.md`, `interactions.md`, `theme.md`,
|
|
33
|
+
`internationalization.md` and `file-references.md` under `Documentation/screenplay/`. Scene
|
|
34
|
+
runtime sources: scaffold Scene tag, `Source/JavaScript/**`. This guidance does not verify
|
|
35
|
+
UI rendering.
|
|
45
36
|
|
|
46
37
|
Every construct on this page is deferred from the executable model with
|
|
47
38
|
information `PLAY0269`: it never blocks binding, and it is not evidence that a
|
|
@@ -55,8 +46,8 @@ installed shape through MCP `syntax-schema`; details:
|
|
|
55
46
|
`references/screen-composition-contract.md`.
|
|
56
47
|
|
|
57
48
|
These constructs went unhighlighted and uncompleted by the Monaco and VS Code
|
|
58
|
-
language service until
|
|
59
|
-
dispatches on a keyword entry. On an older language-service version they still
|
|
49
|
+
language service until every construct the parser
|
|
50
|
+
dispatches on had a keyword entry. On an older language-service version they still
|
|
60
51
|
look unrecognized — **check `screenplay`, not the editor**, because absent
|
|
61
52
|
highlighting was never evidence that a construct is wrong.
|
|
62
53
|
|
|
@@ -218,13 +209,17 @@ module-level.
|
|
|
218
209
|
`navigate to <Screen> by <param>` is **not** string interpolation; it reuses the
|
|
219
210
|
same typed navigate binding a screen action uses.
|
|
220
211
|
|
|
221
|
-
⚠️
|
|
212
|
+
⚠️ A navigation contribution also carries `id`, `icon`, `presentation`, `group` and
|
|
222
213
|
`destination outlet <name> | dialog <DialogTemplate> | external "<route>"`; its `navigate to` takes
|
|
223
214
|
`route`, `outlet` and `parameter` lines, and an undeclared outlet or dialog target is `PLAY0654`
|
|
224
|
-
(`contributions.md`).
|
|
215
|
+
(`contributions.md`).
|
|
216
|
+
|
|
217
|
+
Requires Screenplay 4.133.0 or later (`screenplay --version`) for `PLAY0654` on an undeclared outlet or dialog target.
|
|
218
|
+
|
|
219
|
+
An explicit override for when nearest-enclosing is not the point you mean is
|
|
225
220
|
not in the language. The screens-release vector
|
|
226
|
-
(canonical `ScreenComposition` corpus v1) adds typed screen composition;
|
|
227
|
-
|
|
221
|
+
(canonical `ScreenComposition` corpus v1) adds typed screen composition; a
|
|
222
|
+
renderer that admits it renders it and passes the browser run. Report a refused form as a
|
|
228
223
|
capability gap, never a flat-list fallback; Studio production proof is separate.
|
|
229
224
|
|
|
230
225
|
## Interactions — what a click does
|
|
@@ -282,9 +277,9 @@ module Invoicing
|
|
|
282
277
|
```
|
|
283
278
|
|
|
284
279
|
The inline event targets `invoiceId`; the projection gets it from event context.
|
|
285
|
-
Scalar/named `returns` bind and reference-execute
|
|
280
|
+
Scalar/named `returns` bind and reference-execute (ESM v7).
|
|
286
281
|
Renderer generation/response limits: command-surface `references/generated-values-and-responses.md`.
|
|
287
|
-
Screenplay
|
|
282
|
+
Screenplay resolves response names in form submit and execute success (Requires Screenplay 4.148.0 or later);
|
|
288
283
|
own failure use is PLAY0685. No ESM change; Scene runtime binding remains downstream.
|
|
289
284
|
An existing success continuation does not imply a response contract.
|
|
290
285
|
Read [response continuations](references/response-continuations.md) for precedence,
|
|
@@ -390,8 +385,8 @@ The rules:
|
|
|
390
385
|
## Verify
|
|
391
386
|
|
|
392
387
|
- [ ] `screenplay <model> --warnaserror` (standalone) reports zero errors and zero
|
|
393
|
-
warnings; `cratis screenplay validate --warnings-as-errors` says the same
|
|
394
|
-
|
|
388
|
+
warnings; `cratis screenplay validate --warnings-as-errors` says the same when its bundled
|
|
389
|
+
compiler matches (versions: `cratis-screenplay-toolchain`
|
|
395
390
|
`SKILL.md`).
|
|
396
391
|
- [ ] Every screen in the flow has Level 1 reviewed before any layout, and every
|
|
397
392
|
form field and screen field traces to a command or read-model property.
|
package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md
CHANGED
|
@@ -11,7 +11,7 @@ At least one `when` and a nonempty action list in every branch are required.
|
|
|
11
11
|
Do not mix alternatives with plain actions or `where`; a one-line
|
|
12
12
|
`when … execute …` belongs to labeled actions, not interactions.
|
|
13
13
|
|
|
14
|
-
This complete model validates on standalone
|
|
14
|
+
This complete model validates on the standalone compiler:
|
|
15
15
|
|
|
16
16
|
```screenplay
|
|
17
17
|
module Billing
|
|
@@ -67,5 +67,5 @@ UI is deferred from backend ESM (PLAY0269), not executable gesture proof. The
|
|
|
67
67
|
board draws a static prototype; renderers must explicitly admit alternatives or
|
|
68
68
|
report unsupported, never flatten them into plain actions.
|
|
69
69
|
|
|
70
|
-
Authority: Screenplay
|
|
71
|
-
`mcp/authoring-tools.md
|
|
70
|
+
Authority: Screenplay `interactions.md`, `diagnostics.md`,
|
|
71
|
+
`mcp/authoring-tools.md`.
|
|
@@ -4,7 +4,7 @@ No TrogonStack text is adapted in this skill. Nebulit material is credited in th
|
|
|
4
4
|
|
|
5
5
|
| Item | Source | Licence | Treatment | Where in this skill |
|
|
6
6
|
|---|---|---|---|---|
|
|
7
|
-
| Language constructs, rules and Verify list | Cratis/Screenplay
|
|
7
|
+
| Language constructs, rules and Verify list | Cratis/Screenplay documentation | MIT | original | SKILL.md |
|
|
8
8
|
|
|
9
9
|
## Adapted closely (Martin Dilger and Nebulit GmbH)
|
|
10
10
|
|
package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Success scope
|
|
11
11
|
|
|
12
|
-
Screenplay
|
|
12
|
+
Screenplay resolves returned names outside the ESM (Requires Screenplay 4.148.0 or later). A scalar
|
|
13
13
|
`returns invoiceId` exposes `invoiceId`; a `returns` block exposes its field
|
|
14
14
|
names. The form's block `on submit` and one-line
|
|
15
15
|
`on submit navigate to <Screen> by <name>` have the form command's response
|
|
@@ -38,22 +38,22 @@ Returned values still cannot supply another command's generated input
|
|
|
38
38
|
Monaco/VS Code complete returned names after `from` and form `by`; hover shows
|
|
39
39
|
the field type. Editor resolution is not runtime execution.
|
|
40
40
|
|
|
41
|
-
Sources: Cratis/Screenplay `
|
|
42
|
-
`Source/DotNET/Screenplay/Parsing/SpecificationResponseValidator.cs
|
|
43
|
-
`Source/DotNET/Screenplay/for_ScreenplayCompiler/when_validating_response_continuations.cs
|
|
41
|
+
Sources: Cratis/Screenplay `Documentation/screenplay/interactions.md`,
|
|
42
|
+
`Source/DotNET/Screenplay/Parsing/SpecificationResponseValidator.cs`,
|
|
43
|
+
`Source/DotNET/Screenplay/for_ScreenplayCompiler/when_validating_response_continuations.cs`.
|
|
44
44
|
|
|
45
45
|
## Renderer boundary
|
|
46
46
|
|
|
47
|
-
CLI
|
|
47
|
+
A CLI-bundled compiler can predate this resolution. Stage
|
|
48
48
|
returns scalar/named responses through generated TypeScript proxies and passes
|
|
49
49
|
accepted responses to Scene's `CommandOutcome.response`, but form response
|
|
50
|
-
binding/navigation remains blocked
|
|
50
|
+
binding/navigation remains blocked in Scene. Do not infer runtime
|
|
51
51
|
continuation support from successful source validation, an unchanged ESM, a
|
|
52
|
-
response proxy, or an existing `on success`.
|
|
53
|
-
follow-up, not a capability
|
|
52
|
+
response proxy, or an existing `on success`. Runtime binding remains a renderer
|
|
53
|
+
follow-up, not a capability the compiler supplies.
|
|
54
54
|
|
|
55
|
-
Sources: Cratis/cli `
|
|
56
|
-
`
|
|
55
|
+
Sources: Cratis/cli `Directory.Packages.props`; Cratis/Stage
|
|
56
|
+
`Documentation/reference/generated-values-rendering.md`.
|
|
57
57
|
|
|
58
58
|
## Compiled example
|
|
59
59
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
This reference is the authoring checklist for the screens-release UI surface. It
|
|
19
19
|
records the contract an agent must look for in the installed Screenplay tool and
|
|
20
20
|
in peer runtime/render contracts; it is not a second language definition. The syntax
|
|
21
|
-
below was re-read
|
|
21
|
+
below was re-read (`screens.md`, `forms.md`, `templates.md`,
|
|
22
22
|
`contributions.md`, `ui-profile.md` and `fixtures/screen-release-ui.play`); the shapes are released, not proposed. When a
|
|
23
23
|
syntax form below is not present in `syntax-schema` or does not compile with the
|
|
24
24
|
project's selected Screenplay version, report the support level instead of
|
|
@@ -34,38 +34,31 @@ hand-writing an alternate shape.
|
|
|
34
34
|
without dropping it, silently falling back or replacing it with a default.
|
|
35
35
|
|
|
36
36
|
Keep those three lines separate in reports. Correct an old limitation only when
|
|
37
|
-
the package/version you are using proves the new level.
|
|
38
|
-
CLI
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
re-label the historical execution result. Tool versions:
|
|
44
|
-
`cratis-screenplay-toolchain/SKILL.md`.
|
|
45
|
-
All three levels hold for the canonical `ScreenComposition` corpus on the historical vector:
|
|
37
|
+
the package/version you are using proves the new level. The canonical `ScreenComposition`
|
|
38
|
+
corpus was executed through the public CLI with its default Stage and Scene runtime. Scene
|
|
39
|
+
runtime capabilities below were source-checked at the current scaffold's Scene tag. Tool
|
|
40
|
+
versions: `cratis-screenplay-toolchain/SKILL.md`.
|
|
41
|
+
|
|
42
|
+
All three levels hold for the canonical `ScreenComposition` corpus:
|
|
46
43
|
|
|
47
44
|
- authoring and executable admission: MCP opens it with `sourceSuccess true`,
|
|
48
45
|
`semanticSuccess true`, `executableReady true`, and the stdio MCP harness sends
|
|
49
46
|
real proposal/apply requests, rejects a stale revision and preserves an
|
|
50
47
|
authored comment on disk;
|
|
51
|
-
- runtime: render publishes, and the browser acceptance run
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Guarded Close and double-click: Stage refused both with `STAGE-SCENE-ACTION-001` and
|
|
58
|
-
`STAGE-SCENE-INTERACTION-001` from Stage 4.51 through 4.57. Since Stage 4.65 they render and
|
|
59
|
-
run (public CLI 3.53.1 with `cratis/stage:4.73.1`, Cratis/Screenplay#671); the codes remain the
|
|
48
|
+
- runtime: render publishes, and the browser acceptance run passes with none blocked or pending
|
|
49
|
+
- native command forms, required fields, scoped comments, deep links, stale-response handling
|
|
50
|
+
and theme included. An agent-edited column was rendered, run and seen in the browser.
|
|
51
|
+
|
|
52
|
+
Guarded Close and double-click: an older Stage refuses both with `STAGE-SCENE-ACTION-001` and
|
|
53
|
+
`STAGE-SCENE-INTERACTION-001`; a current Stage renders and runs them, and the codes remain the
|
|
60
54
|
refusal for a guard Stage cannot evaluate, which is never emulated. Studio production Play
|
|
61
|
-
proof is a separate vector
|
|
62
|
-
profile and
|
|
63
|
-
|
|
64
|
-
(CLI 3.53.1) renders navigation contributions and toolbars, and `CLI-RENDER-015`, which refused them, is retired.)
|
|
55
|
+
proof is a separate vector. A renderer refuses an unresolvable UI
|
|
56
|
+
profile and recovers a rendered application. A current Stage renders navigation contributions
|
|
57
|
+
and toolbars; `CLI-RENDER-015`, which refused them, is retired.
|
|
65
58
|
|
|
66
|
-
|
|
59
|
+
The browser run also passes a module-level navigation contribution, an unlisted
|
|
67
60
|
screen reached through the hierarchy, and a toolbar item that opens a dialog with its `presentation` (icon-only, hint)
|
|
68
|
-
honoured
|
|
61
|
+
honoured.
|
|
69
62
|
|
|
70
63
|
## Data context and component bindings
|
|
71
64
|
|
|
@@ -128,9 +121,9 @@ presentation offers, never access control. Downstream runtime support is separat
|
|
|
128
121
|
from parsing; do not publish an empty plain action as equivalent behavior.
|
|
129
122
|
The complete checked model and conditions are in
|
|
130
123
|
`cratis-screenplay-read-surface` `references/guarded-actions.md`, grounded in
|
|
131
|
-
Screenplay
|
|
132
|
-
unsupported screen actions with STAGE-SCENE-ACTION-001;
|
|
133
|
-
`item.<field>` compared with a literal
|
|
124
|
+
Screenplay `screens.md`. An older Stage reports
|
|
125
|
+
unsupported screen actions with STAGE-SCENE-ACTION-001; a current Stage evaluates a guard of the form
|
|
126
|
+
`item.<field>` compared with a literal at runtime.
|
|
134
127
|
|
|
135
128
|
## Exposed template configuration
|
|
136
129
|
|
|
@@ -245,8 +238,8 @@ when a single screen owns the button. A parameter that reads a selection is a ty
|
|
|
245
238
|
data-context path). A dialog destination must state every input with a typed `with`/`parameter`
|
|
246
239
|
binding; a runtime default is not an authored contract.
|
|
247
240
|
|
|
248
|
-
Scene
|
|
249
|
-
run
|
|
241
|
+
Scene runtime capabilities (source-checked, not a browser
|
|
242
|
+
run). Authoring acceptance, executable
|
|
250
243
|
admission and runtime support stay separate — a Scene release is not a Stage
|
|
251
244
|
release. The current Stage scaffold pins a newer Scene release (Stage skill
|
|
252
245
|
`references/rendered-application.md`); never upgrade managed files by hand:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Worked flow: marina berth bookings
|
|
2
2
|
|
|
3
3
|
Complete document. It compiles and binds (screens, forms and descriptions are informational
|
|
4
|
-
PLAY0269/0270; the `ListBerths` list query binds
|
|
4
|
+
PLAY0269/0270; the `ListBerths` list query binds (Screenplay 4.105.0 or later), and Stage would render only
|
|
5
5
|
an `observable` list). Used by `SKILL.md`, *Compose in this order*. Opening an input screen is a
|
|
6
6
|
click (`section ... on click navigate to`); the input screen's `action` carries the destination
|
|
7
7
|
**after success**.
|
|
@@ -63,12 +63,11 @@ payload field the event never declares, so the event payload line matters.
|
|
|
63
63
|
- `identifier` marks which property names the event source. It neither generates the value nor
|
|
64
64
|
fills it. Here the user supplies the berth. Other sources are a prefill (`populate via query`
|
|
65
65
|
or `populate from item` when the user chose a berth on the previous screen) or a modeled
|
|
66
|
-
selection. `generated identifier` is ESM v7: it binds on
|
|
67
|
-
cratis bundle (`PLAY0268` on the 4.66.0 bundled in `cratis` 3.28.x); CLI 3.57.0 / Stage 4.89.1 render supported UUID/String-concept generated
|
|
66
|
+
selection. `generated identifier` is ESM v7: it binds on a compiler that admits v7 (`PLAY0268` on an older one); Stage renders supported UUID/String-concept generated
|
|
68
67
|
identifiers; unsupported generated/result combinations remain refused (command-surface
|
|
69
68
|
`references/generated-values-and-responses.md`).
|
|
70
69
|
- The form is found through the input screen's `action BookBerth`; neither screen names it. A click
|
|
71
70
|
opens `BookBerthScreen` before the command runs; the action's `navigate to` is where the user
|
|
72
71
|
lands after success, never a route to the command's own input screen (Screenplay `screens.md`).
|
|
73
|
-
-
|
|
74
|
-
reports it valid
|
|
72
|
+
- Compiles with `screenplay --warnaserror`; `cratis screenplay validate --executable`
|
|
73
|
+
reports it valid.
|
|
@@ -7,12 +7,8 @@
|
|
|
7
7
|
{ "kind": "skill-contains", "value": "PLAY0485", "file": "references/response-continuations.md" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "Form fields and behavior parameters\nwin", "file": "references/response-continuations.md" },
|
|
9
9
|
{ "kind": "skill-contains", "value": "outer successful response remains available", "file": "references/response-continuations.md" },
|
|
10
|
-
{ "kind": "skill-contains", "value": "binding/navigation remains blocked
|
|
10
|
+
{ "kind": "skill-contains", "value": "binding/navigation remains blocked in Scene", "file": "references/response-continuations.md" },
|
|
11
11
|
{ "kind": "play-compiles" },
|
|
12
|
-
{
|
|
13
|
-
"kind": "skill-contains",
|
|
14
|
-
"value": "main `fd18129`"
|
|
15
|
-
},
|
|
16
12
|
{
|
|
17
13
|
"kind": "skill-contains",
|
|
18
14
|
"value": "produces event InvoiceCancelled"
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -83,11 +83,19 @@ function ruleMatchesConfiguration(path: string, content: string, configuration:
|
|
|
83
83
|
const needsCSharp = applyTo.includes('.cs');
|
|
84
84
|
const needsTypeScript = applyTo.includes('.ts') || path.endsWith('/rtk.md');
|
|
85
85
|
const needsGo = applyTo.includes('.go') || applyTo.includes('go.mod') || applyTo.includes('go.sum');
|
|
86
|
+
const needsKotlin = applyTo.includes('.kt');
|
|
87
|
+
const needsJava = applyTo.includes('.java');
|
|
88
|
+
const needsElixir = applyTo.includes('.ex');
|
|
86
89
|
const needsDocumentation = applyTo.includes('md');
|
|
87
|
-
|
|
90
|
+
// A scope that also names model files (`.play`) is not tied to one language, so it is always kept.
|
|
91
|
+
if (applyTo.includes('.play')) return true;
|
|
92
|
+
if (!needsCSharp && !needsTypeScript && !needsGo && !needsKotlin && !needsJava && !needsElixir && !needsDocumentation) return true;
|
|
88
93
|
return (needsCSharp && languages.includes('csharp')) ||
|
|
89
94
|
(needsTypeScript && languages.includes('typescript')) ||
|
|
90
95
|
(needsGo && languages.includes('go')) ||
|
|
96
|
+
(needsKotlin && languages.includes('kotlin')) ||
|
|
97
|
+
(needsJava && languages.includes('java')) ||
|
|
98
|
+
(needsElixir && languages.includes('elixir')) ||
|
|
91
99
|
(needsDocumentation && selectedProfiles.includes('cratis/documentation'));
|
|
92
100
|
}
|
|
93
101
|
|
package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
2
|
-
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
3
|
-
|
|
4
|
-
# Retained product-source evidence
|
|
5
|
-
|
|
6
|
-
| Package | Version | Purpose |
|
|
7
|
-
| --- | --- | --- |
|
|
8
|
-
| `Cratis.Screenplay` | `4.31.0` | CDL parser, reaction and trigger parsers, diagnostics, semantic binder |
|
|
9
|
-
| `Cratis.Screenplay` | main `fd18129` | Command-only inline event boundary |
|
|
10
|
-
| `Cratis.Screenplay` | `4.66.0` (`c89198b`) | ESM v6: reactions, clock, trigger and capture specifications bind; `invokes` caller rule; probed with the standalone tool and its MCP server |
|
|
11
|
-
|
|
12
|
-
The table records historical examples/probes, not current execution evidence.
|
|
13
|
-
Refusal/redelivery guidance follows released v4.125.0 `reactions.md`/`specifications.md`.
|
|
14
|
-
Tool versions are covered in toolchain `SKILL.md`; reverify before promoting
|
|
15
|
-
an old probe to that version.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
2
|
-
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
3
|
-
|
|
4
|
-
# Provenance
|
|
5
|
-
|
|
6
|
-
| Content | Source | How it is used |
|
|
7
|
-
| --- | --- | --- |
|
|
8
|
-
| `mcp-loop.md` (ownership, edit-request shape, edit routes, failure handling) | The project's own earlier event-modeling toolkit draft (MCP loop reference) | Restructured and re-verified against Screenplay v4.66.0 source and documentation; the roots-bug workaround and the identity rule (`id` pins are not enough when `identities.json` exists) were corrected or tightened |
|
|
9
|
-
| Connection facts (29/30 tools, `notifications/initialized`, 16 connection-local proposals, fixed root) | Screenplay `v4.66.0` `Source/DotNET/Screenplay.Mcp/McpToolCatalog.cs`, `McpConnection.cs`, `McpWorkspaces.cs`, `Documentation/screenplay/mcp/reference.md`, `install.md` | Read at the tag and probed against the standalone 4.66.0 tool (4.63.1 for the roots behavior) |
|
|
10
|
-
| Disposition table (personas, generated values, operations, streams, automation) | Screenplay `v4.66.0` and `v4.68.0` (decisions 0025 and 0026) `SemanticModelBinder.cs`, `commands.md`, `operations.md`, `event-sources.md`, `Versions.cs` | Probed through the MCP `executable-diagnostics` view of the 4.66.0 tool |
|
|
11
|
-
|
|
12
|
-
No TrogonStack or Nebulit text is reproduced here: neither covers the Screenplay
|
|
13
|
-
MCP surface.
|