@cratis/pi 7.6.1 → 7.6.3

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.
Files changed (31) hide show
  1. package/package/corpus/rules/reactors.md +11 -0
  2. package/package/corpus/rules/vertical-slices.md +27 -0
  3. package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +38 -1
  4. package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +7 -2
  5. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +14 -0
  6. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +20 -0
  7. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +36 -2
  8. package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +37 -0
  9. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +16 -0
  10. package/package/corpus/skills/cratis-performance-review/SKILL.md +14 -1
  11. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +8 -0
  12. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +3 -0
  13. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +85 -8
  14. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +10 -0
  15. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +10 -0
  16. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +20 -7
  17. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +25 -15
  18. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +4 -1
  19. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +44 -8
  20. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +40 -21
  21. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +53 -1
  22. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +7 -0
  23. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -0
  24. package/package/corpus/skills/cratis-screenplay-projections/verification.json +3 -0
  25. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +26 -14
  26. package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +4 -0
  27. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +18 -12
  28. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -0
  29. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +16 -9
  30. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +5 -0
  31. package/package.json +1 -1
@@ -25,12 +25,16 @@ source is the single flow model.
25
25
 
26
26
  | Package | Version | Purpose |
27
27
  | --- | --- | --- |
28
- | `Cratis.Screenplay` | `4.31.0` | Layout, template, form, contribution, interaction, profile and theme parsers |
28
+ | `Cratis.Screenplay` | `4.31.0` | Original UI composition parser evidence |
29
+ | `Cratis.Screenplay` | main `fd18129` | Cancellation routing and `optional`; changed example compiled |
30
+
31
+ The update follows `commands.md`, `events.md`, `queries.md` and decision 0023
32
+ at that main commit (after v4.52.0). It does not verify UI rendering.
29
33
 
30
34
  Checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`):
31
35
  `Documentation/screenplay/{templates,layout-arrangement,forms,contributions,interactions,ui-profile,theme,internationalization,file-references}.md`.
32
- Every example below compiles with that version's compiler. Reverify before
33
- claiming another version behaves the same.
36
+ Those checks established the original baseline. The changed cancellation
37
+ example uses the newer main commit above, not the old tag.
34
38
 
35
39
  Every construct on this page is deferred from the executable model with
36
40
  information `PLAY0269`: it never blocks binding, and it is not evidence that a
@@ -205,10 +209,7 @@ module Invoicing
205
209
  slice StateChange CancelInvoice
206
210
  command CancelInvoice
207
211
  invoiceId InvoiceId identifier
208
- produces InvoiceCancelled
209
- invoiceId = invoiceId
210
- event InvoiceCancelled
211
- invoiceId InvoiceId
212
+ produces event InvoiceCancelled
212
213
  screen CancelInvoiceScreen
213
214
  data InvoiceStatusView via query InvoiceStatusById by invoiceId
214
215
  uses ConfirmThenExecute
@@ -223,12 +224,18 @@ module Invoicing
223
224
  invoiceId InvoiceId
224
225
  cancelled Bool
225
226
  projection InvoiceStatuses => InvoiceStatusView
226
- from InvoiceCancelled key invoiceId
227
+ from InvoiceCancelled
228
+ invoiceId = $eventSourceId
227
229
  cancelled = true
228
- query InvoiceStatusById => InvoiceStatusView?
230
+ query InvoiceStatusById => InvoiceStatusView optional
229
231
  by invoiceId InvoiceId
230
232
  ```
231
233
 
234
+ The inline event targets `invoiceId` without copying it into payload; the
235
+ projection obtains it from event context. Command `returns` and response-field
236
+ bindings in `on submit`/`on success` are planned in decision 0023, not available
237
+ yet. An existing success continuation does not imply a response contract.
238
+
232
239
  - Write the one-off case inline; name it with `behavior` when several places need
233
240
  the same wiring. A `uses` site must supply exactly the declared parameters
234
241
  (`PLAY0337`, `PLAY0338`).
@@ -3,6 +3,11 @@
3
3
  "input": "Declare the application shell, a screen template and a command form.",
4
4
  "fixtures": [],
5
5
  "assertions": [
6
+ { "kind": "skill-contains", "value": "main `fd18129`" },
7
+ { "kind": "skill-contains", "value": "produces event InvoiceCancelled" },
8
+ { "kind": "skill-contains", "value": "invoiceId = $eventSourceId" },
9
+ { "kind": "skill-contains", "value": "InvoiceStatusView optional" },
10
+ { "kind": "skill-contains", "value": "An existing success continuation does not imply a response contract" },
6
11
  { "kind": "skill-contains", "value": ".cratis/screenplay/" },
7
12
  { "kind": "skill-contains", "value": "`cratis ai install` manages `.cratis/ai/`, not `.cratis/screenplay/`" },
8
13
  { "kind": "skill-contains", "value": "A form is discovered, not referenced" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.6.1",
3
+ "version": "7.6.3",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [