@cratis/pi 7.10.0 → 7.11.1
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/agents/backend-developer.md +1 -1
- package/package/corpus/agents/code-reviewer.md +2 -2
- package/package/corpus/agents/coordinator.md +1 -1
- package/package/corpus/agents/frontend-developer.md +1 -1
- package/package/corpus/agents/orchestrator.md +1 -1
- package/package/corpus/agents/planner.md +2 -2
- package/package/corpus/agents/screenplay-modeler.md +1 -1
- package/package/corpus/agents/slice-implementer.md +1 -1
- package/package/corpus/agents/spec-writer.md +1 -1
- package/package/corpus/harnesses/pi/extensions/cratis-hooks/index.ts +6 -5
- package/package/corpus/harnesses/pi/extensions/cratis-hooks/quality-gate.ts +25 -4
- package/package/corpus/hooks/README.md +33 -7
- package/package/corpus/hooks/scripts/cratis-quality-gate.sh +246 -79
- package/package/corpus/hooks/scripts/quality-gates.json +17 -3
- package/package/corpus/prompts/add-reactor.prompt.md +1 -1
- package/package/corpus/prompts/new-vertical-slice.prompt.md +2 -2
- package/package/corpus/prompts/write-specs.prompt.md +2 -2
- package/package/corpus/rules/application-profile.md +1 -1
- package/package/corpus/rules/cratis-folder-is-configuration.md +28 -0
- package/package/corpus/rules/general.md +6 -1
- package/package/corpus/rules/profiles.md +4 -3
- package/package/corpus/rules/reactors.md +1 -1
- package/package/corpus/rules/vertical-slices.md +1 -1
- package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
- package/package/corpus/skills/cratis-application-slice-conformance/references/contract-and-precedence.md +1 -1
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-command/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +1 -1
- package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +5 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +5 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +9 -6
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +12 -10
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +3 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +3 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +5 -5
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +4 -4
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +5 -2
- package/package/corpus/skills/cratis-screenplay-projections/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +5 -2
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +5 -2
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +5 -2
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +2 -2
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +1 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
{ "kind": "skill-contains", "value": "main `fd18129`" },
|
|
7
7
|
{ "kind": "skill-contains", "value": "it changes no projection contract" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "map the read-model identity from `$eventSourceId`" },
|
|
9
|
-
{ "kind": "skill-contains", "value": "
|
|
10
|
-
{ "kind": "skill-contains", "value": "`cratis ai install` manages `.cratis/ai/`,
|
|
9
|
+
{ "kind": "skill-contains", "value": "Look first for the project's existing `.play` files" },
|
|
10
|
+
{ "kind": "skill-contains", "value": "`cratis ai install` manages `.cratis/ai/`, never model files" },
|
|
11
11
|
{ "kind": "skill-contains", "value": "AutoMap is on by default" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "PLAY0191" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "every event type in the system" },
|
|
@@ -11,11 +11,14 @@ shape, the `query` is the entry point, and the `screen` renders it.
|
|
|
11
11
|
|
|
12
12
|
## Locate the model
|
|
13
13
|
|
|
14
|
-
Look first
|
|
14
|
+
Look first for the project's existing `.play` files: the folder holding them is the
|
|
15
|
+
model. A new model goes under the repository's `Source/` or `src/` folder, else in a
|
|
16
|
+
`Screenplay/` folder at the repository root; never under `.cratis/`, which holds
|
|
17
|
+
configuration and the shared AI corpus only. This is the
|
|
15
18
|
conventional home for consumer-owned `.play` source; do not invent another
|
|
16
19
|
location or search the whole repository before checking it.
|
|
17
20
|
|
|
18
|
-
`cratis ai install` manages `.cratis/ai/`,
|
|
21
|
+
`cratis ai install` manages `.cratis/ai/`, never model files. Never
|
|
19
22
|
hand-copy Screenplay source between repositories. Keep Markdown that explains,
|
|
20
23
|
questions or navigates the model in the repository's documentation; the `.play`
|
|
21
24
|
source is the single flow model.
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
{ "kind": "skill-contains", "value": "filter status InvoiceStatus optional" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "query Q => observable?" },
|
|
9
9
|
{ "kind": "skill-contains", "value": "information `PLAY0479`" },
|
|
10
|
-
{ "kind": "skill-contains", "value": "
|
|
11
|
-
{ "kind": "skill-contains", "value": "`cratis ai install` manages `.cratis/ai/`,
|
|
10
|
+
{ "kind": "skill-contains", "value": "Look first for the project's existing `.play` files" },
|
|
11
|
+
{ "kind": "skill-contains", "value": "`cratis ai install` manages `.cratis/ai/`, never model files" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "The tenant is the default and stays unstated" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "belongs on a `from` parameter, never on a `filter`" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "warnings, not errors" },
|
|
@@ -12,11 +12,14 @@ concrete data.
|
|
|
12
12
|
|
|
13
13
|
## Locate the model
|
|
14
14
|
|
|
15
|
-
Look first
|
|
15
|
+
Look first for the project's existing `.play` files: the folder holding them is the
|
|
16
|
+
model. A new model goes under the repository's `Source/` or `src/` folder, else in a
|
|
17
|
+
`Screenplay/` folder at the repository root; never under `.cratis/`, which holds
|
|
18
|
+
configuration and the shared AI corpus only. This is the
|
|
16
19
|
conventional home for consumer-owned `.play` source; do not invent another
|
|
17
20
|
location or search the whole repository before checking it.
|
|
18
21
|
|
|
19
|
-
`cratis ai install` manages `.cratis/ai/`,
|
|
22
|
+
`cratis ai install` manages `.cratis/ai/`, never model files. Never
|
|
20
23
|
hand-copy Screenplay source between repositories. Keep Markdown that explains,
|
|
21
24
|
questions or navigates the model in the repository's documentation; the `.play`
|
|
22
25
|
source is the single flow model.
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"kind": "skill-contains",
|
|
24
|
-
"value": "
|
|
24
|
+
"value": "Look first for the project's existing `.play` files"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"kind": "skill-contains",
|
|
28
|
-
"value": "`cratis ai install` manages `.cratis/ai/`,
|
|
28
|
+
"value": "`cratis ai install` manages `.cratis/ai/`, never model files"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"kind": "skill-contains",
|
|
@@ -15,7 +15,7 @@ skill answers "does it compile, bind, render, and which compiler said so". The m
|
|
|
15
15
|
|
|
16
16
|
## Locate the model
|
|
17
17
|
|
|
18
|
-
Look first in the model root: `.
|
|
18
|
+
Look first in the model root: the folder holding the project's `.play` files (else `Source/` or `src/`, else `Screenplay/`), or the root the project set with `mcpServers.screenplay.root` in `.cratis/ai.json`. A folder of `.play`
|
|
19
19
|
files is one application: always check the folder, never one file of it.
|
|
20
20
|
|
|
21
21
|
## Verified product sources
|
|
@@ -12,11 +12,14 @@ entries other modules contribute are all declared in the `.play` model.
|
|
|
12
12
|
|
|
13
13
|
## Locate the model
|
|
14
14
|
|
|
15
|
-
Look first
|
|
15
|
+
Look first for the project's existing `.play` files: the folder holding them is the
|
|
16
|
+
model. A new model goes under the repository's `Source/` or `src/` folder, else in a
|
|
17
|
+
`Screenplay/` folder at the repository root; never under `.cratis/`, which holds
|
|
18
|
+
configuration and the shared AI corpus only. This is the
|
|
16
19
|
conventional home for consumer-owned `.play` source; do not invent another
|
|
17
20
|
location or search the whole repository before checking it.
|
|
18
21
|
|
|
19
|
-
`cratis ai install` manages `.cratis/ai/`,
|
|
22
|
+
`cratis ai install` manages `.cratis/ai/`, never model files. Never
|
|
20
23
|
hand-copy Screenplay source between repositories. Keep Markdown that explains,
|
|
21
24
|
questions or navigates the model in the repository's documentation; the `.play`
|
|
22
25
|
source is the single flow model.
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
{ "kind": "skill-contains", "value": "invoiceId = $eventSourceId" },
|
|
9
9
|
{ "kind": "skill-contains", "value": "InvoiceStatusView optional" },
|
|
10
10
|
{ "kind": "skill-contains", "value": "An existing success continuation does not imply a response contract" },
|
|
11
|
-
{ "kind": "skill-contains", "value": "
|
|
12
|
-
{ "kind": "skill-contains", "value": "`cratis ai install` manages `.cratis/ai/`,
|
|
11
|
+
{ "kind": "skill-contains", "value": "Look first for the project's existing `.play` files" },
|
|
12
|
+
{ "kind": "skill-contains", "value": "`cratis ai install` manages `.cratis/ai/`, never model files" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "A form is discovered, not referenced" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "declares no\n`fits slot`" },
|
|
15
15
|
{ "kind": "skill-contains", "value": "override-priority order" },
|
|
@@ -54,7 +54,7 @@ before claiming behavior for another version.
|
|
|
54
54
|
model). Decide this with the decision rule in
|
|
55
55
|
`cratis-screenplay-modeling-lifecycle`: model-first only when an accepted
|
|
56
56
|
model under the model root covers this scope, or the repository is opted in
|
|
57
|
-
(the root holds a committed `.play` file (`git ls-tree -r --name-only HEAD
|
|
57
|
+
(the root holds a committed `.play` file (`git ls-tree -r --name-only HEAD` lists a `.play` file there, narrowed to `-- <root>` when a root is configured), or the project set `mcpServers.screenplay.root`
|
|
58
58
|
in `.cratis/ai.json`); an empty directory, install output, a `.play` file
|
|
59
59
|
outside the root or an uncommitted draft does not count, and framework, infrastructure, client, adapter and not-opted-in
|
|
60
60
|
brownfield work stays code-first. Opted in but no model for this scope: model
|
|
@@ -36,7 +36,7 @@ another version. Never translate an assertion or helper name from memory.
|
|
|
36
36
|
plain `Specification` base in this file and do not reach for the scenario
|
|
37
37
|
family except to test the very engine that repository provides.
|
|
38
38
|
- An accepted `.play` model under the model root covers the behavior, or the
|
|
39
|
-
repository is opted in (the root holds a committed `.play` file (`git ls-tree -r --name-only HEAD
|
|
39
|
+
repository is opted in (the root holds a committed `.play` file (`git ls-tree -r --name-only HEAD` lists a `.play` file there, narrowed to `-- <root>` when a root is configured), or the project set
|
|
40
40
|
`mcpServers.screenplay.root` in `.cratis/ai.json`; an empty directory, install
|
|
41
41
|
output, an uncommitted `.play` draft or a `.play` file outside the root does not count; master definition:
|
|
42
42
|
`cratis-screenplay-modeling-lifecycle`): change the model first with
|