@cratis/pi 7.170.7 → 7.170.8
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/skills/cratis-chronicle-client-dotnet/references/connection-options.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-string.md +1 -2
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +9 -2
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +11 -2
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/action-subjects.md +7 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -0
- package/package.json +1 -1
package/package/corpus/skills/cratis-chronicle-client-dotnet/references/connection-options.md
CHANGED
|
@@ -29,11 +29,11 @@ namespace. `ChronicleConnectionString` lives in `Cratis.Chronicle.Connections`
|
|
|
29
29
|
|
|
30
30
|
```
|
|
31
31
|
chronicle://host[:port]/?opts
|
|
32
|
-
chronicle://user:pass@host[:port]/?opts
|
|
33
32
|
chronicle+srv://host/?opts
|
|
34
33
|
```
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
Credentials go in the authority part, before the host, as a user name and
|
|
36
|
+
password separated by a colon and followed by an at sign. Default port `35000`. `Default` is `chronicle://localhost:35000`;
|
|
37
37
|
`Development` adds the `chronicle-dev-client` / `chronicle-dev-secret`
|
|
38
38
|
credentials. Query options: `apiKey`, `auth`, `skipTlsValidation`, `disableTls`,
|
|
39
39
|
`skipCompatibilityCheck`, `skipKeepAlive`, `serverless`, `loadBalancer`,
|
package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-string.md
CHANGED
|
@@ -8,7 +8,6 @@ This reference holds the connection string grammar, query keys, development cred
|
|
|
8
8
|
|
|
9
9
|
```
|
|
10
10
|
chronicle://<host>[:<port>][,<host>[:<port>]...][?<options>]
|
|
11
|
-
chronicle://<username>:<password>@<host>[:<port>][,...][?<options>]
|
|
12
11
|
chronicle+srv://<host>[:<port>][?<options>]
|
|
13
12
|
```
|
|
14
13
|
|
|
@@ -16,7 +15,7 @@ Default port is `35000`. Recognized query keys, lowercased at parse time
|
|
|
16
15
|
(`ChronicleConnectionString` parser): `disabletls`, `skiptlsvalidation`,
|
|
17
16
|
`loadbalancer`, `srvnameserver`. `apiKey` is parsed but rejected at client
|
|
18
17
|
creation with `IllegalArgumentException`: the kernel has no API-key authentication.
|
|
19
|
-
|
|
18
|
+
Supply credentials in the authority part, before the host, as user name and password separated by a colon and followed by an at sign. Omitting credentials selects `chronicle-dev-client` /
|
|
20
19
|
`chronicle-dev-secret`; these are development credentials, not a production setup. `ChronicleConnectionString.parse(String)` is on the companion, and `ChronicleConnectionString.DEVELOPMENT` points at
|
|
21
20
|
`localhost:35000` with the `chronicle-dev-client` / `chronicle-dev-secret`
|
|
22
21
|
credentials.
|
|
@@ -67,6 +67,12 @@ var mongo = builder.AddCratisChronicleMongoDB();
|
|
|
67
67
|
var chronicle = builder.AddCratisChronicle("chronicle", c => c.WithMongoDB(mongo));
|
|
68
68
|
var grpc = chronicle.GetEndpoint("grpc");
|
|
69
69
|
|
|
70
|
+
// The development client id and secret come from the AppHost's own configuration
|
|
71
|
+
// (see `cratis-chronicle-client-dotnet`), never from literals in source.
|
|
72
|
+
const string scheme = "chronicle://";
|
|
73
|
+
var chronicleClient = builder.Configuration["Chronicle:Client"];
|
|
74
|
+
var chronicleSecret = builder.Configuration["Chronicle:Secret"];
|
|
75
|
+
|
|
70
76
|
AddService<Projects.Ordering>("ordering", "Ordering");
|
|
71
77
|
AddService<Projects.Billing>("billing", "Billing");
|
|
72
78
|
|
|
@@ -76,7 +82,7 @@ void AddService<TProject>(string name, string eventStore)
|
|
|
76
82
|
where TProject : IProjectMetadata, new() =>
|
|
77
83
|
builder.AddProject<TProject>(name)
|
|
78
84
|
.WithEnvironment("Cratis__Chronicle__ConnectionString",
|
|
79
|
-
$"
|
|
85
|
+
$"{scheme}{chronicleClient}:{chronicleSecret}@{grpc.Property(EndpointProperty.HostAndPort)}")
|
|
80
86
|
.WithEnvironment("Cratis__Chronicle__EventStore", eventStore)
|
|
81
87
|
.WithEnvironment("Cratis__MongoDB__Server", mongo.Resource.ConnectionStringExpression)
|
|
82
88
|
.WithEnvironment("Cratis__MongoDB__Database", eventStore)
|
|
@@ -114,7 +120,8 @@ gate each step on health. Chronicle publishes 35000 (clients, Workbench, health
|
|
|
114
120
|
TLS) to `127.0.0.1` only; its dedicated health port (8080 here, HTTP without TLS)
|
|
115
121
|
stays inside the network for the health check; the Orleans ports 11111 and 30000
|
|
116
122
|
stay unpublished for a single node. Services reach the kernel at
|
|
117
|
-
`chronicle
|
|
123
|
+
the `chronicle` service name on port 35000, with the development client id and
|
|
124
|
+
secret in the connection string (`cratis-chronicle-client-dotnet`). Read
|
|
118
125
|
[references/docker-compose.md](references/docker-compose.md) for the complete file
|
|
119
126
|
and the per-service settings.
|
|
120
127
|
|
package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md
CHANGED
|
@@ -17,6 +17,13 @@ Chronicle kernel backed by a single-node MongoDB replica set. The Chronicle imag
|
|
|
17
17
|
the development image without bundled MongoDB, so it uses the replica set below and
|
|
18
18
|
accepts the well-known development client.
|
|
19
19
|
|
|
20
|
+
Before `docker compose up`, create `chronicle-client.env` next to the compose file
|
|
21
|
+
and keep it out of version control. It holds one setting,
|
|
22
|
+
`Cratis__Chronicle__ConnectionString`, whose value is a `chronicle://` connection
|
|
23
|
+
string for the kernel's service name `chronicle` and port `35000`, carrying the
|
|
24
|
+
development client id and secret (see `cratis-chronicle-client-dotnet`). Both
|
|
25
|
+
services read it through `env_file`, so no credential appears in the compose file.
|
|
26
|
+
|
|
20
27
|
```yaml
|
|
21
28
|
services:
|
|
22
29
|
mongodb:
|
|
@@ -76,8 +83,9 @@ services:
|
|
|
76
83
|
depends_on:
|
|
77
84
|
chronicle:
|
|
78
85
|
condition: service_healthy
|
|
86
|
+
env_file:
|
|
87
|
+
- ./chronicle-client.env
|
|
79
88
|
environment:
|
|
80
|
-
Cratis__Chronicle__ConnectionString: chronicle://chronicle-dev-client:chronicle-dev-secret@chronicle:35000
|
|
81
89
|
Cratis__Chronicle__EventStore: Ordering
|
|
82
90
|
Cratis__MongoDB__Server: mongodb://mongodb:27017/?replicaSet=rs0&directConnection=true
|
|
83
91
|
Cratis__MongoDB__Database: Ordering
|
|
@@ -89,8 +97,9 @@ services:
|
|
|
89
97
|
depends_on:
|
|
90
98
|
chronicle:
|
|
91
99
|
condition: service_healthy
|
|
100
|
+
env_file:
|
|
101
|
+
- ./chronicle-client.env
|
|
92
102
|
environment:
|
|
93
|
-
Cratis__Chronicle__ConnectionString: chronicle://chronicle-dev-client:chronicle-dev-secret@chronicle:35000
|
|
94
103
|
Cratis__Chronicle__EventStore: Billing
|
|
95
104
|
Cratis__MongoDB__Server: mongodb://mongodb:27017/?replicaSet=rs0&directConnection=true
|
|
96
105
|
Cratis__MongoDB__Database: Billing
|
package/package/corpus/skills/cratis-screenplay-ui-composition/references/action-subjects.md
CHANGED
|
@@ -24,6 +24,13 @@ accept it. A hook (an outlet or toolbar `button` naming a State Change `slice`)
|
|
|
24
24
|
(`outlet rowActions of actions for item`); a hook's `enabled when` that reads `item` while it
|
|
25
25
|
acts `for screen` is `PLAY0915` (Requires Screenplay 6.0 or later).
|
|
26
26
|
|
|
27
|
+
`for item` and `for screen` are contextual words, not reserved names. A command, or the last
|
|
28
|
+
segment of a dotted command name, may still be called `for`: `action for` names command `for`
|
|
29
|
+
with no subject, `action for for screen` names command `for` acting on the screen, and
|
|
30
|
+
`action Work.Items.Details.for for item` keeps the dotted name. Label text such as
|
|
31
|
+
`label "Retry for screen"` stays text. Keep these identifiers when repairing or migrating
|
|
32
|
+
actions; do not rename them to avoid the subject clause.
|
|
33
|
+
|
|
27
34
|
```screenplay
|
|
28
35
|
concept TaskId : Uuid
|
|
29
36
|
concept Title : String
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"assertions": [
|
|
6
6
|
{ "kind": "skill-contains", "value": "PLAY0819", "file": "references/action-subjects.md" },
|
|
7
7
|
{ "kind": "skill-contains", "value": "never bulk-accept", "file": "references/action-subjects.md" },
|
|
8
|
+
{ "kind": "skill-contains", "value": "contextual words, not reserved names", "file": "references/action-subjects.md" },
|
|
8
9
|
{ "kind": "skill-contains", "value": "Repair repeated advisories one occurrence at a time", "file": "references/action-subjects.md" },
|
|
9
10
|
{ "kind": "skill-contains", "value": "Handles are revision-bound: refetch them after every apply.", "file": "references/action-subjects.md" },
|
|
10
11
|
{ "kind": "skill-contains", "value": "registerQueryIdentity", "file": "references/scene-runtime-boundaries.md" },
|