@cratis/pi 7.48.0 → 7.48.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/local-work-artifacts.instructions.md +6 -2
- package/package/corpus/hooks/README.md +11 -5
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +44 -4
- package/package/corpus/prompts/ship-changes.prompt.md +4 -1
- package/package/corpus/rules/local-work-artifacts.md +6 -2
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +110 -167
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +74 -170
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/case-tables-and-whole-numbers.md +15 -35
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/choosing-generation.md +4 -6
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +23 -27
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +21 -33
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +61 -92
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -12
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +10 -14
- package/package.json +1 -1
package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md
CHANGED
|
@@ -2,53 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
|
-
- Scaffold
|
|
5
|
+
- Scaffold
|
|
6
6
|
- What is managed
|
|
7
7
|
- `Customizations/` (unmanaged)
|
|
8
8
|
- Re-render checklist
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
`CratisFrontendApplicationScaffold.cs`, `README.md`,
|
|
12
|
-
`Documentation/guides/customize-rendered-application.md`) and checked against a real
|
|
13
|
-
render (see [render-example.md](render-example.md)).
|
|
10
|
+
## Scaffold
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
list, not the class summary). The scaffold pins an exact release per package;
|
|
21
|
-
moving them is a Stage change, so a re-render under a newer Stage is how they change. Earlier runtime/customization
|
|
22
|
-
probes above keep their original labels.
|
|
12
|
+
The scaffold pins an exact release of every dependency (Arc, Chronicle client and kernel
|
|
13
|
+
image, Cratis Components, Scene, Fundamentals, Vite and React). The pins belong to the
|
|
14
|
+
renderer: read them from the rendered `.csproj`, `docker-compose.yml` and `package.json`, never
|
|
15
|
+
from this skill. Moving them is a renderer change, so a re-render
|
|
16
|
+
under a newer Stage is how they change; never bump a managed file.
|
|
23
17
|
|
|
24
18
|
| Item | Value |
|
|
25
19
|
| --- | --- |
|
|
26
20
|
| Target framework | .NET 10 (`net10.0`), `Microsoft.NET.Sdk.Web` |
|
|
27
|
-
|
|
|
28
|
-
| Chronicle client | `Cratis.Chronicle`, `.AspNetCore` and `.Testing` `19.54.0`, matched to the `cratis/chronicle:19.54.0-development` image in the compose file |
|
|
21
|
+
| Chronicle image | The compose file runs the `cratis/chronicle` development image matching the pinned client |
|
|
29
22
|
| Embedded reverse extraction | `CratisEmbeddedScreenplayEnabled=false`: the source `.play` is authoritative |
|
|
30
|
-
| Test packages |
|
|
31
|
-
| Frontend | Vite 8.3.0 and React 19.3.0; `@cratis/arc`, `arc.react`, `arc.vite` 22.58.2; `@cratis/components` 4.26.2; `@cratis/scene.*` 4.22.1; `@cratis/fundamentals` 7.22.8 |
|
|
23
|
+
| Test packages | Cratis specifications, xunit and test SDK; **Debug configuration only** (`IsTestProject` when Debug) |
|
|
32
24
|
| Package management | central package management **off**; `Directory.Packages.props` is managed, do not edit it |
|
|
33
25
|
|
|
34
|
-
The Scene family
|
|
35
|
-
`@cratis/scene.
|
|
36
|
-
`@cratis/scene.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
runtime from a hand-built Components page. The latest Components verification
|
|
41
|
-
in this corpus is 4.26.4; it does not change the scaffold's 4.26.2 pin.
|
|
26
|
+
The Scene family in the frontend is six packages: `@cratis/scene.blueprint.default`,
|
|
27
|
+
`@cratis/scene.components`, `@cratis/scene.engine`, `@cratis/scene.model`,
|
|
28
|
+
`@cratis/scene.primereact` and `@cratis/scene.react`. `@cratis/scene` is **not** a package
|
|
29
|
+
in this family. Read [Scene runtime](scene-runtime.md) when distinguishing the runtime
|
|
30
|
+
from a hand-built Components page. The scaffold's Components pin is independent of the
|
|
31
|
+
newest Components release.
|
|
42
32
|
|
|
43
33
|
Consequences: `[ProtectedDecision]` (`Cratis.Arc.Chronicle.ReadModels`) and
|
|
44
34
|
`DecisionRead<T>` / `IDecisionReads` (`Cratis.Chronicle.ReadModels`) are available
|
|
45
|
-
in
|
|
35
|
+
in the scaffold's package set, as is `[ExecuteCommandsAsSystem]`. This is API
|
|
46
36
|
availability, not Stage emission or runtime protection: gap-fill must opt into
|
|
47
37
|
the protected command profile and enroll an admitted projection/key read in the
|
|
48
|
-
active unit of work.
|
|
49
|
-
|
|
50
|
-
Stage does not turn `.play` `reads`/`require` into protected decisions. Upgrading Arc or Chronicle inside a rendered application is a re-render under a newer
|
|
51
|
-
Stage, not an edit of the managed files. Hand-written scope that needs a newer dependency can raise its version through
|
|
38
|
+
active unit of work. Stage does not turn `.play` `reads`/`require` into protected decisions.
|
|
39
|
+
Hand-written scope that needs a newer dependency can raise its version through
|
|
52
40
|
`Customizations/Dependencies.props` (explicit `Version`, imported last; central management
|
|
53
41
|
is off), but any override must be proven with a restore and build. The compose file binds local ports `27017` and
|
|
54
42
|
`35000`, keeps data in the named volumes `chronicle-data` and `chronicle-config`, and
|
|
@@ -66,9 +54,9 @@ Chronicle event-store name in `appsettings.json` and the default project name an
|
|
|
66
54
|
namespace.
|
|
67
55
|
|
|
68
56
|
Whether modeled `screen` declarations become faithful screens is a runtime question, not a
|
|
69
|
-
publication result: the
|
|
57
|
+
publication result: the scaffold emits Arc `CommandForm` shells over Scene typed
|
|
70
58
|
bindings and navigation contributions, but claim UI fidelity only from a browser run
|
|
71
|
-
(
|
|
59
|
+
(SKILL.md, "UI parity"). Screens stay managed.
|
|
72
60
|
|
|
73
61
|
## `Customizations/` (unmanaged)
|
|
74
62
|
|
|
@@ -102,7 +90,7 @@ Every file is optional. Rules that bite:
|
|
|
102
90
|
modeled authorization covers only what Stage renders.
|
|
103
91
|
|
|
104
92
|
What the seam does **not** do: it repairs no rejected model and renders nothing.
|
|
105
|
-
Stage
|
|
93
|
+
Stage renders supported event-triggered Automation slices as managed Chronicle
|
|
106
94
|
reactors; refused reactions, captures and Translate slices remain hand-written gap-fill
|
|
107
95
|
with the model as their contract. See [admission.md](admission.md). Keep `Customizations/` under version control: whether a re-render keeps
|
|
108
96
|
it depends on the publisher, and `cratis render` writes only the planned paths and
|
|
@@ -2,70 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
|
-
- Current behavior at Stage 4.89.1 (source reading; Docker not run)
|
|
6
|
-
- Specification engine selection at Stage 4.78.0 and CLI 3.53.1
|
|
7
5
|
- The sandbox: a partial, disposable runtime
|
|
6
|
+
- Refusals shared by both engines
|
|
8
7
|
- The specification runner
|
|
9
8
|
- Choosing between them
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
`v3.28.2` (`Commands/Run/*`, unchanged since `v3.27.1`). Docker was **not run** for this skill: every behaviour here
|
|
14
|
-
is documented behaviour, not an observed result. Both images are still shipped.
|
|
15
|
-
|
|
16
|
-
## Current behavior at Stage 4.89.1 (source reading; Docker not run)
|
|
17
|
-
|
|
18
|
-
Read from `Documentation/docker/index.md:127-166,273-309` and `docker/spec-runner.md:11-43` at
|
|
19
|
-
`v4.89.1`, the Stage that CLI 3.57.0 bundles and `cratis run` starts. The default EventModel engine refuses
|
|
20
|
-
named event sources, streams and routes with `STAGE-ESM-030` (`/stage/status` reports
|
|
21
|
-
`state: "unsupported"` and `/api/**` answers 501), so the default `cratis run` does not run a routed model.
|
|
22
|
-
Both engines refuse public events (`-032`), foreign or source-event captures (`-033`), directed Translate
|
|
23
|
-
slices (`-024`) and reducer observer filters (`-035`); the legacy engine also refuses reaction identity and
|
|
24
|
-
reaction observer filters (`-034`, `-035`), and per-production route overrides fail `-036` on the semantic
|
|
25
|
-
engine. The semantic engine (`Stage__Runtime__Engine=semantic`, Screenplay 4.147.1) admits exact ESM v1 to v15 version pairs,
|
|
26
|
-
executes routes and runs event-triggered reactions (including `where`, `runs as`, `from`, productions,
|
|
27
|
-
invocations and cascades), settling them with the initiating command in one batch; clock, application,
|
|
28
|
-
startup and shutdown triggers and opaque reaction bodies still fail `-024`.
|
|
29
|
-
The semantic Host now encrypts personal-data/secret concepts at rest through Chronicle and releases
|
|
30
|
-
values on read; erasure deletes event-source keys. Existing stores retain earlier plaintext events;
|
|
31
|
-
explicit subject lineage is not supplied. Non-text `secret` concepts refuse `STAGE-ESM-041`
|
|
32
|
-
(`pii secret` uses PII only). It executes v14 equality filters, but the independent semantic
|
|
33
|
-
specification executor refuses filtered query assertions with `STAGE-ESM-010`; seeded read-model
|
|
34
|
-
specifications retain the GivenReadModel gap. v15 supplies strategies and whole-source freshness.
|
|
35
|
-
Renderer support for reaction `from` and role/authenticated `runs as` does not relax legacy-engine
|
|
36
|
-
034/035 refusals. The structural specification runner is deprecated: it prints a deprecation
|
|
37
|
-
notice, refuses routes with exit 1 and writes no results file. Exit codes `0`/`1`/`2` are as in `SKILL.md`.
|
|
38
|
-
The semantic Host exposes `POST /stage/semantic/specifications/run`, running fresh isolated
|
|
39
|
-
scenarios in a child process, never the live world/log. Read every report outcome: HTTP 200
|
|
40
|
-
is not a specification pass. Cancellation kills the child tree; timeout is 504, launch/nonzero/invalid
|
|
41
|
-
report is 502. Timeout defaults to 120 seconds (1–600, including queue); specifications remain
|
|
42
|
-
available after a later world-rebuild/registration failure if the model was admitted.
|
|
43
|
-
The sections below describe the 4.24-era behavior and remain the engine comparison.
|
|
44
|
-
|
|
45
|
-
## Specification engine selection at Stage 4.78.0 and CLI 3.53.1
|
|
46
|
-
|
|
47
|
-
Re-verified from Stage `v4.78.0`, `Source/SpecRunner/SpecRunnerArguments.cs:18,76`,
|
|
48
|
-
`Program.cs:46–78,86–113`, and
|
|
49
|
-
`Source/Specifications/SemanticSpecificationExecutor.cs:115–136,183–197`:
|
|
50
|
-
|
|
51
|
-
- The runner still defaults to deprecated `structural`, which executes no slice.
|
|
52
|
-
Pass `--engine semantic` to the **Stage specification runner**, not to `cratis run`.
|
|
53
|
-
- Semantic execution creates a fresh Chronicle in-memory event log per
|
|
54
|
-
specification and dispatches admitted commands through Arc's in-memory
|
|
55
|
-
pipeline. The `stage-spec-run/1` report carries `Passed`, `Failed`, `Unsupported`
|
|
56
|
-
or `Cancelled`; exit `0` only proves the report was written, not that specs passed
|
|
57
|
-
(`Documentation/docker/spec-runner.md:150–174`).
|
|
58
|
-
- CLI `v3.53.1` does **not** expose `--engine` or a Stage specification-runner
|
|
59
|
-
command. Its `run` command starts the **sandbox**, with path, tag, port,
|
|
60
|
-
workbench-port and verbose settings only (`Source/Cli/Commands/Run/RunSettings.cs:9–52`,
|
|
61
|
-
`RunCommand.cs:10–23,100–105`). Changing `--tag` does not select an engine.
|
|
62
|
-
For semantic specifications use the runner directly, for example
|
|
63
|
-
`cratis/stage-specrunner:4.78.0 --engine semantic`; for the sandbox, engine
|
|
64
|
-
selection is the separate `Stage__Runtime__Engine=semantic` environment setting.
|
|
65
|
-
|
|
66
|
-
This is source verification, not an executed Docker run. It updates engine
|
|
67
|
-
selection only; the historical capability lists below are not a complete
|
|
68
|
-
admission inventory for Stage `v4.78.0`.
|
|
10
|
+
Docker is required for both. Each image runs the Stage host or runner on a mounted model;
|
|
11
|
+
neither is a generated application.
|
|
69
12
|
|
|
70
13
|
## The sandbox: a partial, disposable runtime
|
|
71
14
|
|
|
@@ -74,7 +17,7 @@ empty and leaves nothing behind. It is for playing a model, not a generated appl
|
|
|
74
17
|
and not a test of one.
|
|
75
18
|
|
|
76
19
|
```bash
|
|
77
|
-
cratis run ./model # folder or a single .play file
|
|
20
|
+
cratis run ./model # folder or a single .play file
|
|
78
21
|
cratis run --port 9191 --workbench-port 35001
|
|
79
22
|
docker run --rm -p 127.0.0.1:9090:9090 -p 127.0.0.1:35000:35000 \
|
|
80
23
|
-v "$PWD":/eventmodel:ro cratis/stage:latest
|
|
@@ -87,21 +30,44 @@ port `35000` (a plain `http://` request gets no reply; the certificate is self-s
|
|
|
87
30
|
The entrypoint takes a model file or folder, default `/eventmodel`. Deployment settings
|
|
88
31
|
come from `cratis-stage.json` (path override `STAGE_CONFIG`), not `appsettings.json`.
|
|
89
32
|
Implementation `file` references stay symbolic: the sandbox never opens them.
|
|
33
|
+
`cratis run` has no `--engine` option; engine selection is the environment setting below.
|
|
90
34
|
|
|
91
35
|
Two engines:
|
|
92
36
|
|
|
93
37
|
| Engine | Selected by | Behaviour |
|
|
94
38
|
| --- | --- | --- |
|
|
95
|
-
| EventModel (default) | nothing | Commands evaluate their modeled `produces` mappings, append the facts to Chronicle and echo the payload. **Modeled validation, authorization and query authorization are not enforced.** It registers Chronicle projections |
|
|
96
|
-
| Semantic | `Stage__Runtime__Engine=semantic` | Evaluates validation, requirements, authorization, conditional production and constraints before accepting a command; appends one batch; denied is HTTP 403, validation or constraint failure HTTP 400, an unsupported command HTTP 501. `GET /stage/semantic/admission` lists what is admitted. Refuses a model it cannot execute (`state: "unsupported"`, `/api/**` returns 501). Read models are in-process, not Chronicle projections in the Workbench; the history is unbounded, so use it for short sessions |
|
|
39
|
+
| EventModel (default) | nothing | Commands evaluate their modeled `produces` mappings, append the facts to Chronicle and echo the payload. **Modeled validation, authorization and query authorization are not enforced.** It registers Chronicle projections. Named event sources, streams and routes are refused with `STAGE-ESM-030` (`/stage/status` reports `state: "unsupported"` and `/api/**` answers 501), so a routed model does not run here |
|
|
40
|
+
| Semantic | `Stage__Runtime__Engine=semantic` | Evaluates validation, requirements, authorization, conditional production and constraints before accepting a command; appends one batch; denied is HTTP 403, validation or constraint failure HTTP 400, an unsupported command HTTP 501. `GET /stage/semantic/admission` lists what is admitted. Executes routes and event-triggered reactions (including `where`, `runs as`, `from`, productions, invocations and cascades), settling them with the initiating command in one batch. Refuses a model it cannot execute (`state: "unsupported"`, `/api/**` returns 501). Read models are in-process, not Chronicle projections in the Workbench; the history is unbounded, so use it for short sessions |
|
|
97
41
|
|
|
98
42
|
Do not read an answering sandbox as evidence of correct authorization. Callers are
|
|
99
43
|
built from unsigned `x-ms-client-principal` headers that anyone who can reach the host can
|
|
100
|
-
forge, the default engine enforces nothing, and
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
44
|
+
forge, the default engine enforces nothing, and the session should stay private (loopback
|
|
45
|
+
ports or an authenticated proxy). Rendered applications use the renderer's admitted Arc
|
|
46
|
+
authorization instead, which is the thing to test for production behavior (Debug tests
|
|
47
|
+
of a render, [render-example.md](render-example.md)).
|
|
48
|
+
|
|
49
|
+
The semantic Host encrypts personal-data and secret concepts at rest through Chronicle and
|
|
50
|
+
releases values on read; erasure deletes event-source keys. Encryption applies to new
|
|
51
|
+
writes only: events already stored in plaintext in an existing Play store are not
|
|
52
|
+
retroactively encrypted, and key deletion is not erasure of those earlier plaintext events.
|
|
53
|
+
It does not supply explicit subject lineage. Non-text `secret` concepts refuse `STAGE-ESM-041` (`pii secret` uses
|
|
54
|
+
PII only). It executes equality filters, but its specification executor refuses filtered
|
|
55
|
+
query assertions with `STAGE-ESM-010`.
|
|
56
|
+
|
|
57
|
+
The semantic Host exposes `POST /stage/semantic/specifications/run`, running fresh isolated
|
|
58
|
+
scenarios in a child process, never the live world or log. Read every report outcome: HTTP
|
|
59
|
+
200 is not a specification pass. Cancellation kills the child tree; a timeout is 504, a
|
|
60
|
+
launch failure, nonzero exit or invalid report is 502. The timeout defaults to 120 seconds
|
|
61
|
+
(1–600, including queue); specifications stay available after a later world-rebuild or
|
|
62
|
+
registration failure if the model was admitted.
|
|
63
|
+
|
|
64
|
+
## Refusals shared by both engines
|
|
65
|
+
|
|
66
|
+
Both engines refuse public events (`STAGE-ESM-032`), foreign or source-event captures
|
|
67
|
+
(`-033`), directed Translate slices (`-024`) and reducer observer filters (`-035`). The
|
|
68
|
+
legacy engine also refuses reaction identity and reaction observer filters (`-034`,
|
|
69
|
+
`-035`); per-production route overrides fail `-036` on the semantic engine. Clock,
|
|
70
|
+
application, startup and shutdown triggers and opaque reaction bodies fail `-024`.
|
|
105
71
|
|
|
106
72
|
## The specification runner
|
|
107
73
|
|
|
@@ -123,30 +89,33 @@ docker run --rm -v /path/to/model:/model:ro -v /path/to/results:/output \
|
|
|
123
89
|
| `--engine semantic` | `structural` | Opt in to executable specifications |
|
|
124
90
|
| `--specification`, `--scope`, `--catalog`, `--application` | | Semantic engine only |
|
|
125
91
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
92
|
+
Exit codes: `0` the results file was written (read the outcomes: a failed specification
|
|
93
|
+
still exits `0`), `1` a missing or uncompilable input, `2` a missing required argument or an
|
|
94
|
+
invalid semantic option.
|
|
95
|
+
|
|
96
|
+
- **Structural** (default, deprecated, removal planned for a future major release; it
|
|
97
|
+
prints a deprecation notice): verifies that the events and commands a specification
|
|
98
|
+
names resolve to its slice and that modeled rules agree. Outcomes `Passed`, `Failed`,
|
|
99
|
+
`Inconclusive` (not verifiable for that slice type; not a failure). It does not execute
|
|
100
|
+
any slice and refuses routed models with exit `1`, writing no results file.
|
|
101
|
+
- **Semantic**: creates a fresh in-memory Chronicle log per specification and dispatches
|
|
102
|
+
admitted commands through Arc's in-memory pipeline; supports explicit-source and routed
|
|
103
|
+
given events, unconditional production, event assertions, caller and authorization,
|
|
104
|
+
command rules, unique constraints, flat and event-source-keyed scoped projections, and
|
|
105
|
+
optional snapshot queries, including protected ones: portable authorization is evaluated
|
|
106
|
+
with the fixture caller, query arguments and key, and an expected denial matches only
|
|
107
|
+
`then denied`. Report schema `stage-spec-run/1` with outcomes
|
|
108
|
+
`Passed`, `Failed`, `Unsupported` (carrying kind, construct id and reason) or
|
|
109
|
+
`Cancelled`. Not supported: given read models, conditional production, implicit identity
|
|
110
|
+
allocation, external effects, composite values, queries other than optional snapshots, and
|
|
111
|
+
a reached opaque authorization policy (reported as `Unsupported`). Unsupported is never a pass. Do not feed the file to a legacy reader.
|
|
112
|
+
|
|
113
|
+
How the runner relates to the verdicts: a structural pass is not a behavioral result. The
|
|
114
|
+
semantic engine is Stage's own executor running through Arc's in-memory pipeline. It is
|
|
115
|
+
not the Screenplay reference route, so a semantic pass is never V4 (V4 is reference
|
|
116
|
+
execution only; `cratis-screenplay-toolchain` `references/verdicts.md`) and it is not a
|
|
117
|
+
rendered Debug test run (V5.tests). Report its outcomes as a separate line, "Stage semantic
|
|
118
|
+
engine (target-engine evidence)", with the report schema counts, next to the V5 results.
|
|
150
119
|
|
|
151
120
|
## Choosing between them
|
|
152
121
|
|
package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md
CHANGED
|
@@ -9,17 +9,9 @@
|
|
|
9
9
|
- Packages and ownership
|
|
10
10
|
- Runtime capabilities
|
|
11
11
|
|
|
12
|
-
Runtime source evidence retained at Scene v4.21.0 (not reverified at the newer
|
|
13
|
-
Scene release now listed in [scaffold pins](rendered-application.md)):
|
|
14
|
-
Scene `README.md`, `Documentation/package-hosting.md`, and
|
|
15
|
-
`Source/JavaScript/{model,engine,react,components}/**`. Stage package selection
|
|
16
|
-
was re-read at Stage `v4.89.1:Source/Rendering.Cratis/Scaffolding/CratisFrontendPackageSet.cs:208-229`
|
|
17
|
-
(`Current`); dependency names are in `CratisFrontendApplicationScaffold.cs` (`Dependencies`). This is not a render
|
|
18
|
-
or browser test.
|
|
19
|
-
|
|
20
12
|
## What Scene is
|
|
21
13
|
|
|
22
|
-
Scene is the
|
|
14
|
+
Scene is the platform-neutral UI object model and runtime of
|
|
23
15
|
the model-first stack: Screenplay describes the application; Stage emits it;
|
|
24
16
|
Scene represents and renders its UI. Studio's design-time tools edit this model.
|
|
25
17
|
`Cratis.Scene.Model` / `@cratis/scene.model` hold screens, layouts, forms,
|
|
@@ -36,10 +28,10 @@ The npm family is `@cratis/scene.model`, `@cratis/scene.engine`,
|
|
|
36
28
|
`@cratis/scene.react`, `@cratis/scene.components`, `@cratis/scene.primereact`,
|
|
37
29
|
`@cratis/scene.blueprint.default`, `@cratis/scene.blueprint.components`, and
|
|
38
30
|
`@cratis/scene.tailwind`. `@cratis/scene` is not this product's package id.
|
|
39
|
-
Stage
|
|
31
|
+
Stage installs six members at one shared version (see the rendered `package.json`); it does not
|
|
40
32
|
install every family member. `@cratis/scene.components` maps Components onto
|
|
41
33
|
Scene and offers a runtime-only `/runtime` entry (no design-time bundle).
|
|
42
|
-
Its Components peer range is
|
|
34
|
+
Its Components peer range is a range, not Stage's exact scaffold pin.
|
|
43
35
|
|
|
44
36
|
Stage manages `scene.json`, `src/bindings.ts`, the generated host and runtime
|
|
45
37
|
files through `.cratis-render.json`. Change the accepted `.play` model and render
|
|
@@ -49,7 +41,7 @@ release is not a Stage release and does not prove Stage emits a new capability.
|
|
|
49
41
|
|
|
50
42
|
## Runtime capabilities
|
|
51
43
|
|
|
52
|
-
|
|
44
|
+
The scaffold's Scene runtime provides:
|
|
53
45
|
|
|
54
46
|
- `Screen.path` and `NavigationItem.hierarchy` describe module/feature paths,
|
|
55
47
|
outermost first. Nested `core:outlet` composition keeps parent screens visible.
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
"input": "Can Stage render this Screenplay model, and how do I re-render it safely after someone edited Program.cs?",
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
|
-
{ "kind": "skill-contains", "value": "pinned Stage default applies both rules" },
|
|
7
6
|
{ "kind": "skill-contains", "value": "reducer `from` filters" },
|
|
8
7
|
{ "kind": "skill-contains", "value": "references/scene-runtime.md" },
|
|
9
|
-
{ "kind": "skill-contains", "value": "`@cratis/scene
|
|
8
|
+
{ "kind": "skill-contains", "value": "`@cratis/scene` is **not** a package", "file": "references/rendered-application.md" },
|
|
10
9
|
{ "kind": "skill-contains", "value": "`@cratis/scene` is not this product's package id", "file": "references/scene-runtime.md" },
|
|
11
10
|
{ "kind": "skill-contains", "value": "A Scene\nrelease is not a Stage release", "file": "references/scene-runtime.md" },
|
|
12
11
|
{ "kind": "skill-contains", "value": "ApprovedPackageSet", "file": "references/scene-runtime.md" },
|
|
@@ -18,29 +17,22 @@
|
|
|
18
17
|
{ "kind": "skill-contains", "value": "means stop and reconcile" },
|
|
19
18
|
{ "kind": "skill-contains", "value": "STAGE-ESM-016" },
|
|
20
19
|
{ "kind": "skill-contains", "value": "**Render never builds, tests or runs**" },
|
|
21
|
-
{ "kind": "skill-contains", "value": "scaffold pins Arc, Chronicle, Components, Scene and" },
|
|
22
20
|
{ "kind": "skill-contains", "value": "`[ProtectedDecision]`" },
|
|
23
21
|
{ "kind": "skill-contains", "value": "`Customizations/`" },
|
|
24
22
|
{ "kind": "skill-contains", "value": "`Stage__Runtime__Engine=semantic`" },
|
|
25
23
|
{ "kind": "skill-contains", "value": "`--engine semantic`" },
|
|
26
|
-
{ "kind": "skill-contains", "value": "
|
|
27
|
-
{ "kind": "skill-contains", "value": "
|
|
28
|
-
{ "kind": "skill-contains", "value": "fresh
|
|
24
|
+
{ "kind": "skill-contains", "value": "`cratis run` has no `--engine` option", "file": "references/sandbox-and-specrunner.md" },
|
|
25
|
+
{ "kind": "skill-contains", "value": "the environment setting below", "file": "references/sandbox-and-specrunner.md" },
|
|
26
|
+
{ "kind": "skill-contains", "value": "fresh in-memory Chronicle log per specification", "file": "references/sandbox-and-specrunner.md" },
|
|
29
27
|
{ "kind": "skill-contains", "value": "Through v15" },
|
|
30
28
|
{ "kind": "skill-contains", "value": "CLI-RENDER-004" },
|
|
31
29
|
{ "kind": "skill-contains", "value": "STAGE-ESM-024" },
|
|
32
|
-
{ "kind": "skill-contains", "value": "`v4.24.2`" },
|
|
33
30
|
{ "kind": "skill-contains", "value": "STAGE-ESM-026" },
|
|
34
|
-
{ "kind": "skill-contains", "value": "
|
|
35
|
-
{ "kind": "skill-contains", "value": "`v4.24.2`" },
|
|
36
|
-
{ "kind": "skill-contains", "value": "Cratis/cli#253" },
|
|
31
|
+
{ "kind": "skill-contains", "value": "STAGE-ESM-026", "file": "references/admission.md" },
|
|
37
32
|
{ "kind": "skill-contains", "value": "Silent fallback to a default screen is a failure" },
|
|
38
33
|
{ "kind": "skill-contains", "value": "package/image versions" },
|
|
39
34
|
{ "kind": "skill-contains", "value": "dropped authored UI" },
|
|
40
35
|
{ "kind": "skill-contains", "value": "references/case-tables-and-whole-numbers.md" },
|
|
41
|
-
{ "kind": "skill-contains", "value": "STAGE-CRATIS-004" },
|
|
42
|
-
{ "kind": "skill-contains", "value": "STAGE-ESM-031" },
|
|
43
|
-
{ "kind": "skill-contains", "value": "Stage 4.52.0 renderer applies neither new rule" },
|
|
44
36
|
{ "kind": "skill-contains", "value": "STAGE-ESM-037" },
|
|
45
37
|
{ "kind": "skill-contains", "value": "`STAGE-ESM-041`", "file": "references/sandbox-and-specrunner.md" },
|
|
46
38
|
{ "kind": "skill-contains", "value": "claim-reading or opaque authorization", "file": "references/admission.md" },
|
|
@@ -48,6 +40,10 @@
|
|
|
48
40
|
{ "kind": "skill-contains", "value": "`--scope <ADDRESS>`" },
|
|
49
41
|
{ "kind": "skill-contains", "value": "`--check`" },
|
|
50
42
|
{ "kind": "skill-contains", "value": "XML documentation comments" },
|
|
51
|
-
{ "kind": "skill-contains", "value": "Do not split the modeled reaction", "file": "references/admission.md" }
|
|
43
|
+
{ "kind": "skill-contains", "value": "Do not split the modeled reaction", "file": "references/admission.md" },
|
|
44
|
+
{ "kind": "skill-contains", "value": "The scaffold pins an exact release of every dependency", "file": "references/rendered-application.md" },
|
|
45
|
+
{ "kind": "skill-contains", "value": "STAGE-CRATIS-004", "file": "references/case-tables-and-whole-numbers.md" },
|
|
46
|
+
{ "kind": "skill-contains", "value": "STAGE-ESM-031", "file": "references/case-tables-and-whole-numbers.md" },
|
|
47
|
+
{ "kind": "skill-contains", "value": "Requires cratis CLI" }
|
|
52
48
|
]
|
|
53
49
|
}
|