@cratis/pi 7.50.0 → 7.51.0
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/authoring-skills.instructions.md +93 -0
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +4 -0
- package/package/corpus/prompts/review-skill.prompt.md +6 -8
- package/package/corpus/rules/authoring-skills.md +92 -0
- package/package/corpus/rules/general.md +1 -0
- package/package/corpus/rules/profiles.md +4 -0
- package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +23 -29
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +7 -7
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +34 -32
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authproxy.md +1 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +2 -2
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/local-development.md +3 -3
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +8 -6
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/tenancy.md +3 -3
- package/package/corpus/skills/cratis-arc-command/SKILL.md +23 -25
- package/package/corpus/skills/cratis-arc-command/references/command-result.md +1 -1
- package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +9 -9
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +11 -12
- package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +4 -4
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +1 -3
- package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +11 -14
- package/package/corpus/skills/cratis-arc-command-execution/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +17 -19
- package/package/corpus/skills/cratis-arc-command-kotlin/SKILL.md +8 -7
- package/package/corpus/skills/cratis-arc-command-kotlin/references/read-model-naming.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +7 -8
- package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +14 -11
- package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +7 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/command-operations.md +4 -4
- package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +11 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/identity-and-introspection.md +4 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/observability-and-host-scopes.md +2 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +1 -1
- package/package/corpus/skills/cratis-arc-command-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-ef-core-migration/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-ef-core-migration/SKILL.md +9 -10
- package/package/corpus/skills/cratis-arc-go/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-go/references/queries.md +2 -2
- package/package/corpus/skills/cratis-arc-hosting/SKILL.md +8 -8
- package/package/corpus/skills/cratis-arc-hosting/references/integrations-and-publish.md +11 -11
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +13 -13
- package/package/corpus/skills/cratis-arc-observable-query-http/verification.json +1 -1
- package/package/corpus/skills/cratis-arc-query-kotlin/SKILL.md +2 -3
- package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -14
- package/package/corpus/skills/cratis-arc-query-typescript/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-query-typescript/references/storage-observation-and-compliance.md +2 -2
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +1 -2
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +19 -22
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +36 -36
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/client-construction.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +13 -13
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/pinned-generation-delivery.md +7 -5
- package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +59 -64
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +17 -17
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/compliance.md +5 -3
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/connections.md +15 -11
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/event-sources.md +3 -1
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/pitfalls.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/projections.md +8 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/upgrading.md +19 -19
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +3 -8
- package/package/corpus/skills/cratis-chronicle-client-elixir/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-client-go/SKILL.md +16 -18
- package/package/corpus/skills/cratis-chronicle-client-go/references/projections.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +61 -58
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +9 -10
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +6 -6
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/event-sources.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/options.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +24 -24
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +6 -5
- package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -20
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/testing.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +4 -3
- package/package/corpus/skills/cratis-chronicle-client-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +11 -10
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/admission-and-ownership.md +1 -1
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +5 -6
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-event-constraints/references/closing-streams.md +1 -1
- package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +12 -10
- package/package/corpus/skills/cratis-chronicle-event-type-migration/references/pinned-generations.md +2 -3
- package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -10
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +29 -29
- package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -14
- package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +3 -5
- package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +2 -4
- package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +1 -3
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +16 -15
- package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +8 -8
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +14 -13
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +11 -12
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +6 -6
- package/package/corpus/skills/cratis-code-review/SKILL.md +13 -17
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +3 -3
- package/package/corpus/skills/cratis-components-common-controls/SKILL.md +15 -15
- package/package/corpus/skills/cratis-components-data-surfaces/SKILL.md +29 -29
- package/package/corpus/skills/cratis-components-schema-editor/SKILL.md +4 -4
- package/package/corpus/skills/cratis-components-schema-editor/references/tree-layout.md +1 -1
- package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +6 -6
- package/package/corpus/skills/cratis-components-styling/LICENSE +6 -0
- package/package/corpus/skills/cratis-components-styling/SKILL.md +5 -4
- package/package/corpus/skills/cratis-components-toolbar/SKILL.md +5 -5
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +2 -2
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +3 -3
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +1 -1
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +4 -4
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +19 -24
- package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-concepts.md +8 -8
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +10 -11
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +18 -18
- package/package/corpus/skills/cratis-fundamentals-telemetry/verification.json +1 -1
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +4 -4
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +19 -19
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +27 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +12 -12
- package/package/corpus/skills/cratis-performance-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +1 -1
- package/package/corpus/skills/cratis-security-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +18 -16
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +1 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +26 -29
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +8 -8
- package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +2 -2
- package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +6 -4
- package/package/corpus/skills/cratis-specifications-csharp/references/shared-lifecycle.md +6 -2
- package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +2 -2
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -4
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +1 -1
- package/package/corpus/skills/guiding-refactoring-with-code-health/SKILL.md +1 -1
- package/package/corpus/skills/prioritizing-technical-debt/SKILL.md +1 -1
- package/package/corpus/skills/risk-based-testing-with-code-health/SKILL.md +3 -3
- package/package/corpus/skills/safeguarding-ai-generated-code/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -17,8 +17,8 @@ Arc supplies the route, body binding, validation, authorization, and the
|
|
|
17
17
|
`@cratis/arc.express`, `@cratis/arc.fastify`, `@cratis/arc.hono`,
|
|
18
18
|
`@cratis/arc.testing`, `@cratis/arc.mongodb`, `@cratis/arc.drizzle`,
|
|
19
19
|
`@cratis/arc.chronicle`, `@cratis/cratis`, `@cratis/arc.proxygenerator` and
|
|
20
|
-
|
|
21
|
-
manifests
|
|
20
|
+
`@cratis/eslint-plugin-arc-core` are an unpublished source preview (0.x
|
|
21
|
+
manifests, GitHub pre-releases). The API may still change. `npm install @cratis/arc.core` fails.
|
|
22
22
|
- **`@cratis/arc` is a different package.** `@cratis/arc`, `@cratis/arc.react` and
|
|
23
23
|
`@cratis/arc.react.mvvm` are the published **client** runtime, built from
|
|
24
24
|
`Cratis/Arc`. Generated proxies import them in the frontend. The server packages
|
|
@@ -29,11 +29,12 @@ Arc supplies the route, body binding, validation, authorization, and the
|
|
|
29
29
|
|
|
30
30
|
## Verified product sources
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Chronicle SDK
|
|
36
|
-
|
|
32
|
+
Source: `Cratis/Arc.TypeScript` (source preview), reading package exports, `Documentation/**`, and
|
|
33
|
+
`Samples/Tasks` / `Samples/Library`. Behavior on the development branch is excluded.
|
|
34
|
+
|
|
35
|
+
Requires the Chronicle SDK peer `^6.29.0`, Fundamentals peer `^7.19.6`, `@opentelemetry/api` `^1.9.0` and (optional, for RxJS observable queries) `rxjs` `^7.8.2`.
|
|
36
|
+
|
|
37
|
+
The Chronicle integration
|
|
37
38
|
needs Node 22.19+, `zod ^4.1`, `rxjs ^7.8.2`, and an optional
|
|
38
39
|
`@cratis/arc.testing` peer for scenarios.
|
|
39
40
|
|
|
@@ -68,11 +69,11 @@ version ranges; npm does not, and the tarball then fails to install. A
|
|
|
68
69
|
- Node.js 22.19 or later (the core runs on 22; the workspace build needs 22.19;
|
|
69
70
|
24 LTS is recommended).
|
|
70
71
|
- ES modules only: `"type": "module"` in `package.json`.
|
|
71
|
-
- Peer dependencies of `@cratis/arc.core`: `@cratis/fundamentals
|
|
72
|
-
`@opentelemetry/api
|
|
72
|
+
- Peer dependencies of `@cratis/arc.core`: `@cratis/fundamentals`,
|
|
73
|
+
`@opentelemetry/api`; `rxjs` is an optional peer, needed for
|
|
73
74
|
RxJS observable queries.
|
|
74
75
|
- TypeScript: the repository and proxy generator use TypeScript 6
|
|
75
|
-
(`typescript@npm:@typescript/typescript6
|
|
76
|
+
(`typescript@npm:@typescript/typescript6`, command `tsc6`).
|
|
76
77
|
|
|
77
78
|
```json
|
|
78
79
|
{
|
|
@@ -138,7 +139,9 @@ await app.run({ port: Number(process.env.PORT ?? 3000) });
|
|
|
138
139
|
`discover()` refuses a folder containing the entry point; use `Features/`.
|
|
139
140
|
`Cratis:Arc:Development: true` is local-only.
|
|
140
141
|
|
|
141
|
-
### Secure discovery defaults
|
|
142
|
+
### Secure discovery defaults
|
|
143
|
+
|
|
144
|
+
Requires Arc for TypeScript 0.56.0 for these defaults.
|
|
142
145
|
|
|
143
146
|
Outside **Development**, catalogs, identity discovery and `/openapi.json` require
|
|
144
147
|
authentication; without it they are unmapped with a warning. Explicitly requiring
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
- Reactors that return commands
|
|
12
12
|
- Specify it without a kernel
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Source: `Cratis/Arc.TypeScript` (source preview): `Documentation/chronicle/**`,
|
|
15
15
|
`Documentation/testing/chronicle.md`, `Source/Chronicle/index.ts`, and
|
|
16
16
|
`Samples/Library`. `@cratis/arc.chronicle` is **experimental** and, like every
|
|
17
17
|
package in the repository, not published to npm. `@cratis/chronicle` (the SDK)
|
|
18
|
-
is published; the integration peers
|
|
18
|
+
is published; the integration peers it and needs SDK 6.29.0 or later.
|
|
19
19
|
|
|
20
20
|
## Register the integration
|
|
21
21
|
|
|
@@ -91,7 +91,7 @@ sample's `UniqueAuthorName` does).
|
|
|
91
91
|
|
|
92
92
|
Appending and projecting are separate: immediate queries may be stale. Prefer
|
|
93
93
|
observable reads. `completionTimeoutMs` waits for observers, but Chronicle waits
|
|
94
|
-
for **every** observer on the log
|
|
94
|
+
for **every** observer on the log; an observer that does
|
|
95
95
|
not handle the event can make every command time out with 500.
|
|
96
96
|
|
|
97
97
|
- A constraint or concurrency rejection answers 400 with a validation result
|
|
@@ -118,7 +118,7 @@ A Chronicle reactor (from `@cratis/chronicle/reactors`) may return an Arc
|
|
|
118
118
|
`@command()` instance, or a non-empty array of only commands; Arc runs each
|
|
119
119
|
through the full command pipeline. Handlers are matched by camelCase event-class
|
|
120
120
|
method name, receive parsed JSON content (not a class instance), and run on
|
|
121
|
-
replay by default
|
|
121
|
+
replay by default — mark effects `@onceOnly()`, and keep returned
|
|
122
122
|
commands safe to repeat after a failed-partition re-delivery. Reactor authoring
|
|
123
123
|
itself is `cratis-chronicle-client-typescript`.
|
|
124
124
|
|
|
@@ -130,7 +130,7 @@ Preview `withChronicle({ ..., activateArtifactsInScopes: true })` on an Arc-owne
|
|
|
130
130
|
client resolves reactors/reducers through Arc DI, one scope per delivered batch,
|
|
131
131
|
with the Chronicle namespace as tenant and no principal. Existing registrations
|
|
132
132
|
win; otherwise discovered reactors/reducers are registered scoped. The SDK
|
|
133
|
-
activator API
|
|
133
|
+
activator API is required for this; the integration requires the SDK 6.29.0 peer minimum.
|
|
134
134
|
For a caller-owned client, supply `chronicleArtifactActivator(...)` as
|
|
135
135
|
`artifactActivator` and `reactorCommandResultHandler(...)` as
|
|
136
136
|
`reactorResultHandler`, then opt in to `activateArtifactsInScopes`. Build Arc
|
|
@@ -160,8 +160,8 @@ await scenario.dispose();
|
|
|
160
160
|
- Pass the command, its event types, validators and read-model types to
|
|
161
161
|
`for(...)`; the in-memory log refuses an unregistered event type.
|
|
162
162
|
- `givenReadModel(Type, id, instance, tenant?)` pins state;
|
|
163
|
-
|
|
164
|
-
(SDK
|
|
163
|
+
`scenario.given.forEventSource(id, tenant?).events(...)` seeds reducer history
|
|
164
|
+
(SDK 6.14.0 or later) and projections (6.19.0 or later) through SDK `ReadModelScenario`.
|
|
165
165
|
`.readModel(instance)` pins state on the same given builder.
|
|
166
166
|
- `shouldHaveAppendedEvent` does not check count or order — assert
|
|
167
167
|
`appendedEvents` when either matters.
|
package/package/corpus/skills/cratis-arc-command-typescript/references/command-operations.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- Recovery follows commit facts
|
|
11
11
|
- Chronicle aggregates (experimental)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Source: `Cratis/Arc.TypeScript` (source preview, not on npm):
|
|
14
14
|
`Source/Core/commands/CommandOperation.ts`, operation execution/recovery code,
|
|
15
15
|
`Source/Chronicle/ChronicleCommandScope.ts`, `commandAggregate.ts`,
|
|
16
16
|
`Documentation/commands/operations/reference.md`, and
|
|
@@ -88,9 +88,9 @@ failure/budget expiry, and unknown commit facts.
|
|
|
88
88
|
With Chronicle, `tuple(event, operation)` stages the event, executes the operation,
|
|
89
89
|
then completes the append scope before deciding compensation. Known append
|
|
90
90
|
rejection compensates; unknown/partial acknowledgment does not claim rollback.
|
|
91
|
-
|
|
91
|
+
`Documentation/commands/operations/index.md` can say events and
|
|
92
92
|
operations cannot combine; `ChronicleCommandScope.ts` and the live integration
|
|
93
|
-
specs establish the supported combination
|
|
93
|
+
specs establish the supported combination.
|
|
94
94
|
|
|
95
95
|
There is no distributed transaction, automatic retry, durable recovery journal
|
|
96
96
|
or crash recovery. Compensation success is not proof an external effect was
|
|
@@ -111,4 +111,4 @@ tail is captured at load and appended as an exact concurrency scope; another
|
|
|
111
111
|
append to the route rejects the entire batch. Projection reads may lag this
|
|
112
112
|
rehydrated state. Use ChronicleKernelScenario for aggregate/concurrency specs,
|
|
113
113
|
not the in-memory scenario. Registered event-source-definition routing for Arc
|
|
114
|
-
commands/aggregates is **not**
|
|
114
|
+
commands/aggregates is **not** supported.
|
package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- Observable-query WebSockets from a dev server
|
|
11
11
|
- Storage integrations
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Source: `Cratis/Arc.TypeScript` (source preview): `Documentation/overview.md`, `hosts/**`,
|
|
14
14
|
`mongodb/getting-started.md`, `sql/getting-started.md`,
|
|
15
15
|
`chronicle/registration-options.md`, and the `Express`, `Fastify`, `Hono`,
|
|
16
16
|
`MongoDB`, `Drizzle` and `Chronicle` package exports. None of these packages is
|
|
@@ -35,13 +35,15 @@ await builder.discover(new URL('./Features/', import.meta.url));
|
|
|
35
35
|
export const arc = await builder.build();
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
Requires the peers `express` `^5.0.0`, `fastify` `^5.0.0`, `hono` `^4.0.0` and (optional) `@hono/node-server` `^1.19.11` for the matching adapters.
|
|
39
|
+
|
|
38
40
|
| Host | Package and entry point | Framework peer |
|
|
39
41
|
| --- | --- | --- |
|
|
40
42
|
| Standalone Node host | `@cratis/arc.core`: `app.run()` or `app.start()` | none |
|
|
41
43
|
| Your own `node:http`/`node:https` server | `@cratis/arc.core`: `createArcNodeHandler(server)` | none |
|
|
42
|
-
| Express 5 | `@cratis/arc.express`: `app.use(cratisArc(arc))` | `express`
|
|
43
|
-
| Fastify 5 | `@cratis/arc.fastify`: `app.register(cratisArc, { arc })` | `fastify`
|
|
44
|
-
| Hono 4 | `@cratis/arc.hono`: `app.use(cratisArc(arc))`; Node: `serveCratisArc` | `hono
|
|
44
|
+
| Express 5 | `@cratis/arc.express`: `app.use(cratisArc(arc))` | `express` |
|
|
45
|
+
| Fastify 5 | `@cratis/arc.fastify`: `app.register(cratisArc, { arc })` | `fastify` |
|
|
46
|
+
| Hono 4 | `@cratis/arc.hono`: `app.use(cratisArc(arc))`; Node: `serveCratisArc` | `hono`; optional `@hono/node-server` |
|
|
45
47
|
| Fetch API host | `@cratis/arc.core/fetch`: `app.fetch(request)` | none |
|
|
46
48
|
|
|
47
49
|
Every adapter dispatches only exact raw-path matches on a fixed internal origin
|
|
@@ -168,11 +170,13 @@ ArcApplication.createBuilder({ query: { allowedOrigins: ['http://127.0.0.1:5173'
|
|
|
168
170
|
Arc requires no database and no event store. Each integration is optional and
|
|
169
171
|
adds a builder method when imported; the exported function form is equivalent.
|
|
170
172
|
|
|
173
|
+
Requires the peers `mongodb` `^6.21.0`, `drizzle-orm` `^0.45.0`, `rxjs` `^7.8.2` and `@cratis/chronicle` `^6.29.0` for the matching integrations.
|
|
174
|
+
|
|
171
175
|
| Integration | Register | Inject |
|
|
172
176
|
| --- | --- | --- |
|
|
173
|
-
| MongoDB (`@cratis/arc.mongodb`, peer `mongodb`
|
|
174
|
-
| SQL through Drizzle (`@cratis/arc.drizzle`, peers `drizzle-orm`
|
|
175
|
-
| Chronicle (`@cratis/arc.chronicle`, experimental, peer `@cratis/chronicle`
|
|
177
|
+
| MongoDB (`@cratis/arc.mongodb`, peer `mongodb`) | `import '@cratis/arc.mongodb'; builder.withMongoDB({ client, databaseNameResolver, readModels: [TaskRecord] })` or `withMongoDB(builder, options)` | `service(mongoCollection(TaskRecord))` in `@query`, or `@inject(mongoCollection(TaskRecord))`; `commandReadModel(TaskRecord)` in commands |
|
|
178
|
+
| SQL through Drizzle (`@cratis/arc.drizzle`, peers `drizzle-orm` and `rxjs`) | `import '@cratis/arc.drizzle'; builder.withDrizzle({ dialect: DrizzleDialect.SQLite, database, readModels: [{ type: TaskRecord, table: tasks }] })` | `service(drizzleReadModel(TaskRecord))` for read-only query handles; `@inject(drizzleDatabase<SQLJsDatabase>())` for a writable handle in commands; `commandReadModel(TaskRecord)` |
|
|
179
|
+
| Chronicle (`@cratis/arc.chronicle`, experimental, peer `@cratis/chronicle`) | `import '@cratis/arc.chronicle'; builder.withChronicle({ connectionString, eventStore })` or `withChronicle(builder, options)` | Commands return events; queries take `service(ChronicleReadModels)`; `commandReadModel(Type)` |
|
|
176
180
|
|
|
177
181
|
- **MongoDB**: list every injected model in `readModels`; a model left out has
|
|
178
182
|
no collection token. `@key()` marks the field stored as `_id` (otherwise a
|
package/package/corpus/skills/cratis-arc-command-typescript/references/identity-and-introspection.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# Identity, authorization and discovery access
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Arc.TypeScript` (GitHub pre-release, not on npm):
|
|
7
7
|
`Source/Core/authentication/**`, `identity/**`, `introspection/**`,
|
|
8
8
|
`Documentation/core/authentication.md`, `authorization.md`,
|
|
9
9
|
`Documentation/identity/**`, `hosts/native-principal.md`, and
|
|
@@ -61,7 +61,9 @@ published React identity hooks can display it, but server protection still
|
|
|
61
61
|
belongs on every operation. Local users/tenants are development fixtures, not
|
|
62
62
|
production credentials; keep simulated identities on loopback hosts.
|
|
63
63
|
|
|
64
|
-
## Secure introspection defaults
|
|
64
|
+
## Secure introspection defaults
|
|
65
|
+
|
|
66
|
+
Requires Arc for TypeScript 0.56.0 for these defaults.
|
|
65
67
|
|
|
66
68
|
`/.cratis/commands`, `/.cratis/queries`, `/.cratis/identity-details/schema`,
|
|
67
69
|
`/.cratis/users`, `/.cratis/tenants`, and `/openapi.json` are anonymous only in
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# Observability and trusted host scopes
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Arc.TypeScript` (source preview):
|
|
7
7
|
`Source/Core/execution/WellKnownTelemetryNames.ts`, `observability.ts`,
|
|
8
8
|
`runInScope.ts`, `RunInScopeOptions.ts`, and `Documentation/observability.md`.
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ Verified at `Cratis/Arc.TypeScript` **v0.57.2** (source preview):
|
|
|
12
12
|
is `success`, `validation`, `authorization`, `append_rejected`, `cancelled`,
|
|
13
13
|
`error`. `cratis.arc.query.transport` distinguishes query transports.
|
|
14
14
|
- Core exports `WellKnownTelemetryNames`, `OperationOutcome`, `QueryTransport`;
|
|
15
|
-
|
|
15
|
+
`@opentelemetry/api` is a peer. Instrumentation caps command/query names
|
|
16
16
|
at 1,000 to bound cardinality. Do not add raw user/tenant keys to metric names.
|
|
17
17
|
- `cratis.arc.operation.duration` and the `query_name` attribute are deprecated;
|
|
18
18
|
migrate dashboards to command/query-specific names.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Generate metadata and proxies
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Source: `Cratis/Arc.TypeScript` (source preview):
|
|
4
4
|
`Source/Tools/ProxyGenerator/parseSourceOptions.ts`,
|
|
5
5
|
`Documentation/proxy-generation/getting-started.md`, and sample generator scripts.
|
|
6
6
|
|
|
@@ -36,8 +36,8 @@ process.exitCode = result.status ?? 1;
|
|
|
36
36
|
(`--api-prefix`, `--segments-to-skip`, `--root-namespace`) to the server's
|
|
37
37
|
`generatedApis` options, or proxies call URLs the server does not serve.
|
|
38
38
|
- Generated proxies import the **published** `@cratis/arc` and
|
|
39
|
-
|
|
40
|
-
the UI samples
|
|
39
|
+
`@cratis/arc.react` plus `@cratis/fundamentals`;
|
|
40
|
+
the UI samples use `@cratis/components`. Compile in strict `Bundler`
|
|
41
41
|
resolution with `skipLibCheck: false`, `experimentalDecorators: true`, and
|
|
42
42
|
import `reflect-metadata` once in the frontend entry. These published client
|
|
43
43
|
declarations do not support NodeNext consumer compilation. Consuming proxies
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
{ "kind": "skill-contains", "value": "is created through its **constructor** in `handle()`" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "`--check-metadata`" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "CommandScenario.for(RegisterTask, RegisterTaskValidator)", "file": "references/command-specifications.md" },
|
|
14
|
-
{ "kind": "skill-contains", "value": "
|
|
14
|
+
{ "kind": "skill-contains", "value": "(source preview)" },
|
|
15
15
|
{ "kind": "skill-contains", "value": "peer `^6.29.0`" },
|
|
16
16
|
{ "kind": "skill-contains", "value": "Outside **Development**" },
|
|
17
17
|
{ "kind": "skill-contains", "value": "not identity\n discovery", "file": "references/identity-and-introspection.md" },
|
|
18
18
|
{ "kind": "skill-contains", "value": "Unknown`, `Mixed", "file": "references/command-operations.md" },
|
|
19
19
|
{ "kind": "skill-contains", "value": "**`--use-proxy-file-suffix`**", "file": "references/proxy-generation.md" },
|
|
20
|
-
{ "kind": "skill-contains", "value": "projections (
|
|
20
|
+
{ "kind": "skill-contains", "value": "projections (6.19.0 or later)", "file": "references/chronicle-events.md" }
|
|
21
21
|
]
|
|
22
22
|
}
|
|
@@ -21,19 +21,15 @@ rejection on it.)
|
|
|
21
21
|
|
|
22
22
|
## Verified product sources
|
|
23
23
|
|
|
24
|
-
| Package |
|
|
25
|
-
| --- | --- |
|
|
26
|
-
| `Cratis.Arc.Core` | `
|
|
27
|
-
| `Cratis.Fundamentals` | `
|
|
28
|
-
| `Cratis.Chronicle` |
|
|
29
|
-
| `FluentValidation` | `
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
> version-qualified verification.
|
|
34
|
-
|
|
35
|
-
Fundamentals rechecked at v7.23.0 in
|
|
36
|
-
[`Result<TResult, TError>`](https://github.com/Cratis/Fundamentals/blob/v7.23.0/Source/DotNET/Fundamentals/Monads/Result%7BTResult,TError%7D.cs):
|
|
24
|
+
| Package | Purpose |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `Cratis.Arc.Core` | `CommandValidator<T>`, `ConceptValidator<T>`, `ValidationResult`, `CommandResult`, the command pipeline, `ARC0004`–`ARC0013` |
|
|
27
|
+
| `Cratis.Fundamentals` | `Cratis.Monads.Result<TResult, TError>` |
|
|
28
|
+
| `Cratis.Chronicle` | Read-model resolution for command-side injection |
|
|
29
|
+
| `FluentValidation` | `RuleFor(...)`, `.WithMessage(...)` |
|
|
30
|
+
|
|
31
|
+
Fundamentals'
|
|
32
|
+
[`Result<TResult, TError>`](https://github.com/Cratis/Fundamentals/blob/main/Source/DotNET/Fundamentals/Monads/Result%7BTResult,TError%7D.cs):
|
|
37
33
|
success is first, error second, with implicit conversions from both types.
|
|
38
34
|
|
|
39
35
|
Reverify against the owning product repository before claiming support for
|
|
@@ -163,7 +159,7 @@ public async Task<Result<Customer, ValidationResult>> Provide(IReadModels readMo
|
|
|
163
159
|
|
|
164
160
|
Plain read-model injection or `IReadModels.GetInstanceById` is **advisory**, even
|
|
165
161
|
inside `Handle()` returning `Result<,>`: it enrolls no guard against a competing
|
|
166
|
-
append. Choose the first boundary that fits
|
|
162
|
+
append. Choose the first boundary that fits:
|
|
167
163
|
|
|
168
164
|
1. One routed stream: `Provide(IStreamReads reads) => reads.ForCommand()` returns
|
|
169
165
|
`Task<StreamDecision>`; `Handle(StreamDecision decision)` returns
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
Copyright (c) Cratis. All rights reserved.
|
|
2
2
|
Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
This skill's guidance that committed or applied migrations are append-only draws on ideas from the
|
|
5
|
+
Eventmodelers Build-Kits stack build skills by Martin Dilger and Nebulit GmbH
|
|
6
|
+
(https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used with the
|
|
7
|
+
explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited to
|
|
8
|
+
Martin Dilger and Nebulit GmbH.
|
|
@@ -13,16 +13,13 @@ Everything else is ordinary EF Core.
|
|
|
13
13
|
|
|
14
14
|
## Verified product sources
|
|
15
15
|
|
|
16
|
-
| Package |
|
|
17
|
-
| --- | --- |
|
|
18
|
-
| `Cratis.Arc.EntityFrameworkCore` | `
|
|
19
|
-
| `Cratis.Arc.Core` | `
|
|
20
|
-
| `Microsoft.EntityFrameworkCore` |
|
|
21
|
-
|
|
22
|
-
> Arc EF context, builder and observation surface rechecked at v22.75.0.
|
|
23
|
-
> Verify provider-specific migration behavior against the configured provider.
|
|
16
|
+
| Package | Purpose |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| `Cratis.Arc.EntityFrameworkCore` | `BaseDbContext`, `ReadOnlyDbContext`, `WithEntityFrameworkCore`, column helpers, `EntityFrameworkReadModelForCommandResolver` |
|
|
19
|
+
| `Cratis.Arc.Core` | `Cratis.Arc.Queries.ModelBound.ReadModelAttribute`, `ICanResolveReadModelForCommand` |
|
|
20
|
+
| `Microsoft.EntityFrameworkCore` | EF Core itself, including all migration tooling |
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
Verify provider-specific migration behavior against the configured provider and the installed Arc version.
|
|
26
23
|
|
|
27
24
|
⚠️ **Arc ships no migration tooling of its own.** There is no design-time
|
|
28
25
|
DbContext factory, no migration runner, no table-name constant convention, and
|
|
@@ -129,6 +126,8 @@ Use the standard EF Core tooling — `dotnet ef migrations add <Name>` and
|
|
|
129
126
|
package referenced by the project that owns the context. Arc contributes nothing
|
|
130
127
|
to how a migration is created, discovered, or applied.
|
|
131
128
|
|
|
129
|
+
A migration that is committed or applied to any database is append-only: never edit or delete it. Correct a mistake with a new migration. Only a migration that is both unapplied and uncommitted may be removed (`dotnet ef migrations remove`) and regenerated.
|
|
130
|
+
|
|
132
131
|
What Arc **does** contribute is a set of column helpers that pick the right
|
|
133
132
|
provider-specific SQL type, so one migration works across SQLite, SQL Server and
|
|
134
133
|
PostgreSQL. Use them instead of a raw `table.Column<T>()` with a hard-coded type.
|
|
@@ -196,7 +195,7 @@ Auxiliary observations can pass `ignoreQueryContext: true` so only the primary
|
|
|
196
195
|
uses client paging/sorting and writes totals. `ObserveSingle`/`ObserveById` emit
|
|
197
196
|
`default` when the row is absent/deleted/outside the filter, remaining subscribed.
|
|
198
197
|
Indexer-property keys (shared-type entities) are supported; composite and
|
|
199
|
-
shadow-only keys are refused at setup. Source
|
|
198
|
+
shadow-only keys are refused at setup. Source:
|
|
200
199
|
`Source/DotNET/EntityFrameworkCore/Observe/DbSetObserveExtensions.cs`.
|
|
201
200
|
|
|
202
201
|
⚠️ Database-level change notification differs by provider: PostgreSQL uses
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: cratis-arc-go
|
|
3
3
|
description: Build a Go HTTP CQRS application with Arc.Go commands, read-model queries, validation, identity and explicit hosting lifecycle. Use for the tagged root module and handwritten typed adapters. Do not use for Chronicle-only clients, C# or JVM Arc, or unpublished Go integration and generator modules.
|
|
4
4
|
license: MIT
|
|
5
|
-
compatibility: Go 1.26 or later
|
|
5
|
+
compatibility: Go 1.26 or later; root module only.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
@@ -10,31 +10,31 @@ compatibility: Go 1.26 or later for Arc.Go v0.1.1; root module only.
|
|
|
10
10
|
|
|
11
11
|
# Arc HTTP CQRS in Go
|
|
12
12
|
|
|
13
|
-
> **Experimental v0:**
|
|
14
|
-
> Chronicle.Go
|
|
13
|
+
> **Experimental v0:** minor releases may break APIs; pin the module version you test against.
|
|
14
|
+
> Companion guidance: Chronicle.Go and Fundamentals.Go.
|
|
15
15
|
|
|
16
16
|
**Only `github.com/cratis/arc.go`, the root module, is tagged.** Chronicle and
|
|
17
17
|
MongoDB integrations, `arc-gen`, `arc-vet` and framework-host recipes are separate
|
|
18
|
-
**source previews**, not installable released modules
|
|
18
|
+
**source previews**, not installable released modules. Do not prescribe
|
|
19
19
|
those tools, promise generated proxies, or claim returned events append to
|
|
20
20
|
Chronicle in this root-module setup. Arc commands can return ordinary responses
|
|
21
21
|
without an event store.
|
|
22
22
|
|
|
23
23
|
## Verified product sources
|
|
24
24
|
|
|
25
|
-
| Product |
|
|
26
|
-
| --- | --- |
|
|
27
|
-
| Arc.Go (`github.com/cratis/arc.go`) | `
|
|
25
|
+
| Product | Source checked |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| Arc.Go (`github.com/cratis/arc.go`) | `builder.go`, `application.go`, `server.go`, `lifecycle.go`, `commands/registration.go`, `commands/result.go`, `queries/registration.go`, `queries/example_test.go`, `authentication/microsoft_identity.go`, `example_test.go`, `arctest/example_test.go` |
|
|
28
28
|
|
|
29
|
-
[Source
|
|
30
|
-
is authoritative.
|
|
31
|
-
The [parity
|
|
29
|
+
[Source](https://github.com/Cratis/Arc.Go)
|
|
30
|
+
is authoritative. A README that says there is no tagged Go release is stale.
|
|
31
|
+
The [parity document](https://github.com/Cratis/Arc.Go/blob/main/Documentation/parity.md)
|
|
32
32
|
reports bounded **Partial** conformance; a paired snapshot HTTP checkpoint with
|
|
33
|
-
|
|
33
|
+
strict matches does not establish command, authentication, HEAD or whole-product parity.
|
|
34
34
|
|
|
35
35
|
## Declare, register and host a command
|
|
36
36
|
|
|
37
|
-
Install `github.com/cratis/arc.go
|
|
37
|
+
Install `github.com/cratis/arc.go` at your chosen release in a consumer module. This complete
|
|
38
38
|
package exposes a greeting with explicit handwritten registration:
|
|
39
39
|
|
|
40
40
|
```go
|
|
@@ -114,7 +114,7 @@ Use a lifecycle-bearing `observable.Source` with `queries.RegisterObservable`,
|
|
|
114
114
|
not an arbitrary channel returned from a snapshot registration. Preserve query
|
|
115
115
|
identity, authorization/validation on emissions, backpressure and joined cleanup;
|
|
116
116
|
SSE and WebSocket framing are not interchangeable. Consult the tagged
|
|
117
|
-
[observable query guide](https://github.com/Cratis/Arc.Go/blob/
|
|
117
|
+
[observable query guide](https://github.com/Cratis/Arc.Go/blob/main/Documentation/backend/go/queries/observable-queries.md)
|
|
118
118
|
before choosing transport or delta behavior. Do not generalize its supported
|
|
119
119
|
profile to an unpublished MongoDB/Chronicle provider.
|
|
120
120
|
|
|
@@ -144,5 +144,4 @@ into Go code.
|
|
|
144
144
|
- Inline operations have commit-aware recovery, not a generic rollback promise;
|
|
145
145
|
consult tagged operation sources before implementing effects or compensation.
|
|
146
146
|
- A Chronicle-only client belongs in `cratis-chronicle-client-go`, not this skill.
|
|
147
|
-
-
|
|
148
|
-
v0.3.2 pin is not a required dependency upgrade.
|
|
147
|
+
- Check the module's `go.mod` for the Fundamentals.Go it requires; the separate concepts skill is not a required dependency upgrade.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# Explicit Go query adapters
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: Arc.Go, `queries/registration.go`, `queries/example_test.go`
|
|
7
7
|
and `queries/paging.go`. This complete package builds and executes a snapshot
|
|
8
8
|
pipeline; it does not start an HTTP host:
|
|
9
9
|
|
|
@@ -75,6 +75,6 @@ demonstrates parameter binding and paged results.
|
|
|
75
75
|
For observables, `queries.RegisterObservable` records the emission type separately
|
|
76
76
|
from `observable.Source` ownership and rendered client data. Preserve authorization
|
|
77
77
|
and validation guards on every emission, cancellation, terminal errors and cleanup.
|
|
78
|
-
Read the [source and examples](https://github.com/Cratis/Arc.Go/tree/
|
|
78
|
+
Read the [source and examples](https://github.com/Cratis/Arc.Go/tree/main/queries)
|
|
79
79
|
for the exact source/renderer profile instead of assuming channels, providers or
|
|
80
80
|
unpublished generators share one registration contract.
|
|
@@ -15,14 +15,14 @@ Nothing in `AddCratis()` runs the Chronicle engine in your application.
|
|
|
15
15
|
|
|
16
16
|
## Verified product sources
|
|
17
17
|
|
|
18
|
-
| Package |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| `Cratis`, `Cratis.Arc`, `Cratis.Arc.Core` |
|
|
21
|
-
| `Cratis.Arc.Chronicle`, `Cratis.Arc.MongoDB`, `Cratis.Arc.EntityFrameworkCore` |
|
|
22
|
-
| `Cratis.Arc.Screenplay.Embedded` |
|
|
18
|
+
| Package | Purpose |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| `Cratis`, `Cratis.Arc`, `Cratis.Arc.Core` | Composition, ASP.NET hosting and standalone host |
|
|
21
|
+
| `Cratis.Arc.Chronicle`, `Cratis.Arc.MongoDB`, `Cratis.Arc.EntityFrameworkCore` | Optional client/storage integrations |
|
|
22
|
+
| `Cratis.Arc.Screenplay.Embedded` | Optional embedded event-model explorer |
|
|
23
23
|
|
|
24
|
-
Source
|
|
25
|
-
|
|
24
|
+
Source: [Arc](https://github.com/Cratis/Arc/tree/main/Source/DotNET).
|
|
25
|
+
Check signatures against the consumer's installed version.
|
|
26
26
|
|
|
27
27
|
## Choose one bootstrap
|
|
28
28
|
|
|
@@ -74,7 +74,7 @@ configuring the explorer.
|
|
|
74
74
|
as usable. See `cratis-arc-authentication-authorization-and-identity` for the
|
|
75
75
|
full ingress, identity and authorization contract.
|
|
76
76
|
|
|
77
|
-
Source: [secure defaults
|
|
77
|
+
Source: [secure defaults](https://github.com/Cratis/Arc/blob/main/Documentation/upgrading/secure-defaults.mdx).
|
|
78
78
|
|
|
79
79
|
## Verify the host, not just the compilation
|
|
80
80
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
4
4
|
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: Arc. These are host configuration fragments, not a claim
|
|
7
7
|
that any arbitrary application is NativeAOT-compatible.
|
|
8
8
|
|
|
9
9
|
## Storage and Chronicle
|
|
@@ -23,11 +23,11 @@ same stack twice.
|
|
|
23
23
|
EF migration skill for the actual context/provider/migration setup.
|
|
24
24
|
|
|
25
25
|
Source signatures under `Source/DotNET`:
|
|
26
|
-
[Cratis composition](https://github.com/Cratis/Arc/blob/
|
|
27
|
-
[ASP.NET builder](https://github.com/Cratis/Arc/blob/
|
|
28
|
-
[Core builder](https://github.com/Cratis/Arc/blob/
|
|
29
|
-
[Chronicle integration](https://github.com/Cratis/Arc/blob/
|
|
30
|
-
[MongoDB integration](https://github.com/Cratis/Arc/blob/
|
|
26
|
+
[Cratis composition](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Cratis/WebApplicationBuilderExtensions.cs),
|
|
27
|
+
[ASP.NET builder](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc/WebApplicationBuilderExtensions.cs),
|
|
28
|
+
[Core builder](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/ArcApplicationBuilderExtensions.cs),
|
|
29
|
+
[Chronicle integration](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Chronicle/ArcBuilderExtensions.cs),
|
|
30
|
+
[MongoDB integration](https://github.com/Cratis/Arc/blob/main/Source/DotNET/MongoDB/ArcBuilderExtensions.cs).
|
|
31
31
|
|
|
32
32
|
## MVC and NativeAOT
|
|
33
33
|
|
|
@@ -51,7 +51,7 @@ The switch also turns controllers off without `WithoutControllers()`. Arc
|
|
|
51
51
|
registers the ASP.NET services it previously got through MVC (including CORS,
|
|
52
52
|
endpoint API exploration and authorization). Do not infer that every provider,
|
|
53
53
|
serializer or dependency is trim-safe just because MVC is off.
|
|
54
|
-
[Controller boundary](https://github.com/Cratis/Arc/blob/
|
|
54
|
+
[Controller boundary](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc/ControllersArcBuilderExtensions.cs).
|
|
55
55
|
|
|
56
56
|
## Application JSON metadata
|
|
57
57
|
|
|
@@ -62,7 +62,7 @@ options read-only. Include the read models, query arguments and responses the
|
|
|
62
62
|
application serializes, and **each** `CommandResult<TResponse>` used for typed
|
|
63
63
|
command responses. Arc's own context cannot enumerate your generic responses.
|
|
64
64
|
Reflection fallback only exists when reflection-based serialization is enabled.
|
|
65
|
-
[Resolver contract](https://github.com/Cratis/Arc/blob/
|
|
65
|
+
[Resolver contract](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/ArcOptions.cs).
|
|
66
66
|
|
|
67
67
|
## Optional event-model viewer
|
|
68
68
|
|
|
@@ -75,6 +75,6 @@ assembly **and** Development; explicit `Enabled=true` overrides that default.
|
|
|
75
75
|
Do not enable the explorer in a deployed environment accidentally. Mapping it
|
|
76
76
|
manually needs an intentional host policy, not an assumption of automatic gating.
|
|
77
77
|
The Screenplay family owns generated-model content and compiler capability.
|
|
78
|
-
Sources: [viewer registration](https://github.com/Cratis/Arc/blob/
|
|
79
|
-
[mapping](https://github.com/Cratis/Arc/blob/
|
|
80
|
-
[automatic exposure](https://github.com/Cratis/Arc/blob/
|
|
78
|
+
Sources: [viewer registration](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Screenplay.Embedded/Hosting/EventModelViewerServiceCollectionExtensions.cs),
|
|
79
|
+
[mapping](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Screenplay.Embedded/Hosting/EventModelEndpoints.cs),
|
|
80
|
+
[automatic exposure](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Screenplay.Embedded/Hosting/EventModelViewerExposure.cs).
|
|
@@ -15,11 +15,11 @@ and verify all three separately. A tenant header alone proves no membership.
|
|
|
15
15
|
|
|
16
16
|
## Verified product sources
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Source: `Arc.Kotlin`: `Source` authentication/identity/tenancy contracts,
|
|
19
19
|
`Integrations/SpringBoot/ArcTenancyProperties.java`, platform security classes,
|
|
20
20
|
`Documentation/guides/security.mdx`, `ambient-tenancy.mdx` and
|
|
21
|
-
`reference/configuration.mdx`. Use `io.cratis:arc-spring-boot-starter
|
|
22
|
-
(or `io.cratis:cratis
|
|
21
|
+
`reference/configuration.mdx`. Use `io.cratis:arc-spring-boot-starter:<version>`
|
|
22
|
+
(or `io.cratis:cratis:<version>` for Chronicle integration), with matching plugin/KSP.
|
|
23
23
|
These are JVM contracts; do not infer the same switches exist in Arc .NET.
|
|
24
24
|
|
|
25
25
|
## Authenticate and expose identity details
|
|
@@ -11,13 +11,13 @@ request is made. Choose the transport first, then the command.
|
|
|
11
11
|
|
|
12
12
|
## Verified product sources
|
|
13
13
|
|
|
14
|
-
| Package |
|
|
15
|
-
| --- | --- |
|
|
16
|
-
| `Cratis.Arc.Core` | `
|
|
14
|
+
| Package | Purpose |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| `Cratis.Arc.Core` | `ObservableQueryHttp`, `ObservableQueryHandler`, the demultiplexer routes |
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Source symbols and signatures: every type, attribute and member this skill names exists in the product source.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
This skill is read-only
|
|
21
21
|
inspection of an endpoint the user already has; it neither implements the query
|
|
22
22
|
nor changes any state.
|
|
23
23
|
|
|
@@ -119,7 +119,7 @@ inconvenient — a proxy that buffers, a client with no streaming support.
|
|
|
119
119
|
authorization and the `Count()` a paged query performs. Long polling a hot query
|
|
120
120
|
is not free.
|
|
121
121
|
|
|
122
|
-
## Diagnosis and emission protection
|
|
122
|
+
## Diagnosis and emission protection
|
|
123
123
|
|
|
124
124
|
Plain HTTP snapshots/waits/long polls run read-model interceptors and
|
|
125
125
|
`IGuardObservableQueryEmission`: denied data returns unauthorized; suppressed
|
|
@@ -132,22 +132,22 @@ connectivity, replica-set change-stream support and permissions first (Arc#2916)
|
|
|
132
132
|
The collection watch logs failure then completes without `OnError`; frontend
|
|
133
133
|
error UI is not reliable evidence the watch is healthy. A waiting HTTP request
|
|
134
134
|
still has its timeout/completion contract; do not describe it as an infinite wait.
|
|
135
|
-
Sources
|
|
135
|
+
Sources: `Arc.Core/Queries/ObservableQueryHttp.cs`,
|
|
136
136
|
`ObservableQueryHandler.cs` and
|
|
137
|
-
[MongoDB observations](https://github.com/Cratis/Arc/blob/
|
|
137
|
+
[MongoDB observations](https://github.com/Cratis/Arc/blob/main/Documentation/backend/csharp/mongodb/observing-collections.md).
|
|
138
138
|
|
|
139
139
|
### Local `cratis` template ports
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
`mongodb://localhost:27017` for the app (`Templates/Cratis/docker-compose.yml
|
|
143
|
-
`appsettings.json
|
|
141
|
+
The `cratis` template still publishes MongoDB on host port `27017` and configures
|
|
142
|
+
`mongodb://localhost:27017` for the app (`Templates/Cratis/docker-compose.yml`,
|
|
143
|
+
`appsettings.json`). Its Vite dev server runs on `9000` and proxies `/api`,
|
|
144
144
|
`/.cratis` and `/swagger` to `http://localhost:5000`
|
|
145
|
-
(`Templates/Cratis/.frontend/vite.config.ts
|
|
145
|
+
(`Templates/Cratis/.frontend/vite.config.ts`). A backend started on another
|
|
146
146
|
port needs matching proxy targets; a healthy Chronicle container alone does not
|
|
147
147
|
prove the browser can reach the app or its MongoDB read models.
|
|
148
148
|
|
|
149
149
|
The bundled development MongoDB replica set advertises `localhost:27017`
|
|
150
|
-
(Chronicle `
|
|
150
|
+
(Chronicle `Docker/entrypoint.sh`). For that setup, merely changing
|
|
151
151
|
Docker's host mapping to another port does not change the advertised member
|
|
152
152
|
address. Keep `27017` available, or deliberately reconfigure the replica set and
|
|
153
153
|
application connection together. These are local template defaults, not Arc
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"input": "Our local cratis template query is stuck Loading after changing the MongoDB and backend host ports. Which connections should we check?",
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
|
-
{ "kind": "skill-contains", "value": "
|
|
6
|
+
{ "kind": "skill-contains", "value": "The `cratis` template still publishes MongoDB" },
|
|
7
7
|
{ "kind": "skill-contains", "value": "mongodb://localhost:27017" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "http://localhost:5000" },
|
|
9
9
|
{ "kind": "skill-contains", "value": "does not change the advertised member" },
|