@cratis/pi 7.50.0 → 7.51.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/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-application-slice-conformance/SKILL.md +8 -7
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
- 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-react-page/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
- package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -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-reactor/SKILL.md +15 -19
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
- 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-read-model-specifications/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
- 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-automations-and-translations/SKILL.md +30 -28
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
- package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
- package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
- package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
- package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
- package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +12 -14
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
- package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
- package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
- package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
- package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
- 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
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
|
@@ -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" },
|
|
@@ -12,8 +12,7 @@ static (Java) methods are queries. KSP generates a reflection-free
|
|
|
12
12
|
|
|
13
13
|
## Verified product sources
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
Kotlin 2.4.20, KSP 2.3.12, Spring Boot 4.1.1, JUnit Jupiter 6.1.3. `io.cratis:arc` supplies
|
|
15
|
+
Source: `Arc.Kotlin`. `io.cratis:arc` supplies
|
|
17
16
|
`io.cratis.arc.artifacts.ReadModel`, `io.cratis.arc.queries.Path`,
|
|
18
17
|
`@QueryHttpMethod`, `@QueryTransport`, `ObservableState<T>`. The optional
|
|
19
18
|
`arc-rxjava3` artifact adds RxJava 3 `Observable` support at runtime. The
|
|
@@ -213,7 +212,7 @@ site from opening a socket carrying your visitor's cookies.
|
|
|
213
212
|
|
|
214
213
|
For repository-backed paging, concept converters, tenant-aware storage and
|
|
215
214
|
Mongo/JPA observable snapshots, use `cratis-arc-spring-data-kotlin`.
|
|
216
|
-
Arc
|
|
215
|
+
Arc also aligns Chronicle projection collection names with Arc MongoDB;
|
|
217
216
|
read [../cratis-arc-command-kotlin/references/read-model-naming.md](../cratis-arc-command-kotlin/references/read-model-naming.md)
|
|
218
217
|
when upgrading or customizing collection names.
|
|
219
218
|
|
|
@@ -22,17 +22,14 @@ the query string — you choose a **return shape** that the framework can narrow
|
|
|
22
22
|
|
|
23
23
|
## Verified product sources
|
|
24
24
|
|
|
25
|
-
| Package |
|
|
26
|
-
| --- | --- |
|
|
27
|
-
| `Cratis.Arc.Core` | `
|
|
28
|
-
| `Cratis.Arc.MongoDB` | `
|
|
29
|
-
| `Cratis.Arc.EntityFrameworkCore` | `
|
|
30
|
-
| `@cratis/arc.react` | `
|
|
31
|
-
|
|
32
|
-
> Rechecked at Arc v22.75.0: request parsing, paging validation and storage
|
|
33
|
-
> observation contracts. Do not transfer a provider's ordering guarantee to another.
|
|
25
|
+
| Package | Purpose |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| `Cratis.Arc.Core` | `QueryableQueryRenderer`, `Paging`, `Sorting`, `PagingInfo` |
|
|
28
|
+
| `Cratis.Arc.MongoDB` | `Observe` helpers that page at the source |
|
|
29
|
+
| `Cratis.Arc.EntityFrameworkCore` | `DbSet<T>` observe helpers that page at the source |
|
|
30
|
+
| `@cratis/arc.react` | `useWithPaging`, `useSuspenseWithPaging` |
|
|
34
31
|
|
|
35
|
-
|
|
32
|
+
Do not transfer a provider's ordering guarantee to another. A small, bounded result
|
|
36
33
|
set does not need any of this — `IEnumerable<T>` is fine.
|
|
37
34
|
|
|
38
35
|
## The wire contract
|
|
@@ -52,9 +49,9 @@ Two consequences that surprise people:
|
|
|
52
49
|
|
|
53
50
|
GET paging/sorting keys are matched case-insensitively. `QueryPipeline.ValidatePaging`
|
|
54
51
|
runs the page validators whenever `paging.IsPaged`: negative page and zero or
|
|
55
|
-
negative size fail validation. This was already true
|
|
52
|
+
negative size fail validation. This was already true. A missing sort
|
|
56
53
|
direction parses as ascending, but GET sorting still needs both nonempty keys.
|
|
57
|
-
Sources
|
|
54
|
+
Sources: `Arc.Core/Queries/QueryStringQueryRequestReader.cs`,
|
|
58
55
|
`SortDirections.cs` and `QueryPipeline.cs` under `Source/DotNET`.
|
|
59
56
|
|
|
60
57
|
## Which return shapes page
|
|
@@ -103,7 +100,7 @@ query-shaped method on a read model is generic — a generic method is registere
|
|
|
103
100
|
and routed but can never be invoked, because there is nothing to close its type
|
|
104
101
|
parameters with.
|
|
105
102
|
|
|
106
|
-
|
|
103
|
+
Paged MongoDB observations re-read the page and total on each
|
|
107
104
|
change; unpaged observations retain incremental membership. The watch does not
|
|
108
105
|
always fetch the whole collection. MongoDB observation breaks sort ties on `_id`
|
|
109
106
|
and orders unsorted pages on `_id`. See the read-model skill's [versioned query-cost guidance](../cratis-chronicle-read-model/references/queries.md#cost-and-composition).
|
|
@@ -141,7 +138,7 @@ provide field-named sort helpers. For composed MongoDB/EF observations, pass
|
|
|
141
138
|
`ignoreQueryContext: true` to auxiliary sources so only the primary consumes
|
|
142
139
|
client paging/sorting and writes totals. Single-instance observations emit
|
|
143
140
|
`default` when absent/deleted/outside the filter; guard `hasData`/`isReady` in React.
|
|
144
|
-
Source: [
|
|
141
|
+
Source: [MongoDB observations](https://github.com/Cratis/Arc/blob/main/Documentation/backend/csharp/mongodb/observing-collections.md).
|
|
145
142
|
|
|
146
143
|
## Consume it from the frontend
|
|
147
144
|
|
|
@@ -19,12 +19,12 @@ frontend. Project setup, the builder, and hosts are in
|
|
|
19
19
|
|
|
20
20
|
## Verified product sources
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
server packages
|
|
22
|
+
Source: `Cratis/Arc.TypeScript` (source preview;
|
|
23
|
+
server packages not on npm), reading
|
|
24
24
|
`Source/Core/queries/index.ts`, `Documentation/queries/**`,
|
|
25
25
|
`Documentation/mongodb/**`, `Documentation/sql/**`,
|
|
26
26
|
`Documentation/testing/queries.md` and `observable-queries.md`, and
|
|
27
|
-
`Samples/Tasks` / `Samples/Library`. RxJS
|
|
27
|
+
`Samples/Tasks` / `Samples/Library`. RxJS is an optional peer of
|
|
28
28
|
`@cratis/arc.core`, required only for RxJS sources.
|
|
29
29
|
|
|
30
30
|
## Declare a read model and its queries
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# Storage observation and protected raw reads
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Arc.TypeScript` (source preview, not on npm):
|
|
7
7
|
`Source/Drizzle/DrizzleOptions.ts`, package exports and observation code,
|
|
8
8
|
`Source/MongoDB/MongoReadModelsOptions.ts`, `Source/Chronicle/releaseRawDocument.ts`,
|
|
9
9
|
`Documentation/sql/observing-tables.md`, `observing-postgresql.md`, and
|
|
@@ -11,7 +11,7 @@ Verified at `Cratis/Arc.TypeScript` **v0.57.2** (source preview, not on npm):
|
|
|
11
11
|
|
|
12
12
|
## Drizzle live queries
|
|
13
13
|
|
|
14
|
-
`rxjs
|
|
14
|
+
`rxjs` is a **required peer** of `@cratis/arc.drizzle`, even with
|
|
15
15
|
observation disabled. Starting an observation without opting in throws; it never
|
|
16
16
|
silently returns a stream that will not update.
|
|
17
17
|
|
|
@@ -22,19 +22,16 @@ wrappers. Do not hand-roll a table, a dialog, or a fetch.
|
|
|
22
22
|
scope (`cratis-screenplay-render-and-gap-fill`); never edit Stage-managed
|
|
23
23
|
output.
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Product sources
|
|
26
26
|
|
|
27
|
-
This skill
|
|
27
|
+
This skill follows the `@cratis/components` package manifest (`exports`, peers), `Source/DataPage/*`,
|
|
28
|
+
`Source/DataTables/*`, `Source/Dialogs/*`, `Source/CommandDialog/*` and `Source/MIGRATION.md`.
|
|
29
|
+
Peers declared by `@cratis/components`: `@cratis/arc` and `@cratis/arc.react` and `react`.
|
|
28
30
|
|
|
29
|
-
|
|
30
|
-
| --- | --- | --- |
|
|
31
|
-
| `@cratis/components` | `4.26.4` | its package manifest (`exports`, peers), `Source/DataPage/*`, `Source/DataTables/*`, `Source/Dialogs/*`, `Source/CommandDialog/*`, `Source/MIGRATION.md` |
|
|
32
|
-
| `@cratis/arc` | `>=20.3.1 <23` | peer range declared by `@cratis/components@4.26.4` |
|
|
33
|
-
| `@cratis/arc.react` | `>=20.3.1 <23` | peer range declared by `@cratis/components@4.26.4` |
|
|
34
|
-
| `react` | `^19.0.0` | peer of `@cratis/components@4.26.4` |
|
|
31
|
+
Requires `@cratis/arc` and `@cratis/arc.react` 20.3.1 or later (below 23) and `react` 19 or later, as `@cratis/components` declares them peers.
|
|
35
32
|
|
|
36
33
|
`@cratis/arc.react.mvvm` ships with `@cratis/arc.react` and is an explicit
|
|
37
|
-
application dependency.
|
|
34
|
+
application dependency.
|
|
38
35
|
|
|
39
36
|
## Import from subpaths, never the root barrel
|
|
40
37
|
|
|
@@ -71,11 +68,10 @@ must move focus into itself.
|
|
|
71
68
|
`@cratis/components`) above every Cratis component — it carries the locale,
|
|
72
69
|
the Components-owned labels. Enable `toaster` (or mount one `<Toaster />`)
|
|
73
70
|
for notifications; without it even `toastCommandResult` displays nothing.
|
|
74
|
-
Mount exactly one toaster, not both. The `cratis` template
|
|
75
|
-
`<CratisComponentsProvider toaster>` **inside** `<Arc>`
|
|
76
|
-
(`Templates/Cratis/.frontend/main.tsx
|
|
77
|
-
|
|
78
|
-
older application's entry point rather than adding a second toaster.
|
|
71
|
+
Mount exactly one toaster, not both. The `cratis` template mounts
|
|
72
|
+
`<CratisComponentsProvider toaster>` **inside** `<Arc>`
|
|
73
|
+
(`Templates/Cratis/.frontend/main.tsx`; Requires Templates 1.7.3 or later, earlier ones mount it outside `<Arc>` without a toaster),
|
|
74
|
+
so check its entry point rather than adding a second toaster.
|
|
79
75
|
- The app must import the stylesheets explicitly; components do not import
|
|
80
76
|
their own CSS:
|
|
81
77
|
|
|
@@ -103,8 +103,10 @@ The most-used props:
|
|
|
103
103
|
| `pt` | `DialogParts` — per-part attributes (`backdrop`, `positioner`, `root`, `header`, `title`, `close`, `content`, `footer`, `confirm`, `cancel`); `ptOptions`/`unstyled` are accepted no-ops |
|
|
104
104
|
|
|
105
105
|
Dialog presentation props, including `subtitle`, `placement` and `closeIcon`,
|
|
106
|
-
are forwarded to the dialog
|
|
107
|
-
render function receiving the command form context
|
|
106
|
+
are forwarded to the dialog, not the form. `children` may also be a
|
|
107
|
+
render function receiving the command form context.
|
|
108
|
+
|
|
109
|
+
Requires Cratis Components 4.14.1 or later for dialog presentation props forwarded to the dialog, and 4.25.1 or later for a `children` render function.
|
|
108
110
|
|
|
109
111
|
`CommandDialog.Column` exists for multi-column layouts:
|
|
110
112
|
|
|
@@ -23,9 +23,9 @@ Three different claims are mixed in any "screen to page" mapping. Keep them apar
|
|
|
23
23
|
|
|
24
24
|
| Claim | Status | Evidence |
|
|
25
25
|
| --- | --- | --- |
|
|
26
|
-
| What each `screen`, `form` and interaction construct means | Verified | Screenplay `
|
|
27
|
-
| What Stage does with a screen | Verified: it draws it through Scene, it does not write a React page | Stage `
|
|
28
|
-
| Which Components and Arc API gives a page the same behavior | Verified API; the pairing is this skill's convention | `@cratis/components`
|
|
26
|
+
| What each `screen`, `form` and interaction construct means | Verified | Screenplay `Documentation/screenplay/{screens,forms,interactions}.md` |
|
|
27
|
+
| What Stage does with a screen | Verified: it draws it through Scene, it does not write a React page | Stage `Documentation/reference/stage-rendering.md` ("It does not generate screens for it"), `Documentation/reference/default-scene-composition.md` ("does not ... generate per-screen TypeScript components"), `Source/Contracts/Scene/ScreenDirectiveConverter.cs` (`data`, `action`, `section`, `title`, `table`, `summary` become Scene elements) |
|
|
28
|
+
| Which Components and Arc API gives a page the same behavior | Verified API; the pairing is this skill's convention | `@cratis/components` (`DataPage`, `DataTables`, `CommandDialog`, `CommandForm`) and the sibling references |
|
|
29
29
|
|
|
30
30
|
A hand-written Arc React page and a Scene-rendered screen are different surfaces;
|
|
31
31
|
they share Components, not ownership or runtime APIs. Scene is the experimental
|
|
@@ -123,9 +123,9 @@ field because `berthId` is the identifier, not something the user types.
|
|
|
123
123
|
| `action CancelBerth` on a list with a table | `MenuItem` with `disableOnUnselected`; the selected row supplies the identifier | Verified prop |
|
|
124
124
|
| `action` with no `label` | The model gives no text. Use the command name, spaced, and report it | Gap |
|
|
125
125
|
| `action X` with `navigate to S [by p]` | Navigate to the page for `S` after the command succeeds, in `onSuccess`; pass `p` from the response or the row | Assumption: `screens.md` does not say when it navigates. The form's `on submit` is defined as "after a successful submit"; confirm with the model owner |
|
|
126
|
-
| `on row-click navigate to S by p` | `DataPage` and `DataTableForQuery` forward no row-click prop
|
|
126
|
+
| `on row-click navigate to S by p` | `DataPage` and `DataTableForQuery` forward no row-click prop (only `DataTableCore` has `onRowClick`, and it takes rows, not a query). Use controlled `selection` and `onSelectionChange` to navigate, or a link in a `Column` `body` | Gap: selection is not a click; report which you chose |
|
|
127
127
|
| `section`, `sidebar`, `main`, `template MasterDetail` | Page layout. Keep the section names as component names so the page can be compared to the model. `MasterDetail` over a list is `detailsComponent` | Convention: Components has no screen-template concept |
|
|
128
|
-
| `title`, `label`, `message` written as `$strings.key` | The text of that key in the `.strings` file for the locale, never retyped from memory | Verified token ([internationalization.md](https://github.com/Cratis/Screenplay/blob/
|
|
128
|
+
| `title`, `label`, `message` written as `$strings.key` | The text of that key in the `.strings` file for the locale, never retyped from memory | Verified token ([internationalization.md](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/internationalization.md)); the runtime mechanism is application-owned |
|
|
129
129
|
| `ui profile`, `theme`, `layout`, `arrangement` | Not page code. Theming is `cratis-components-styling`; the shell is the application's | Design-only |
|
|
130
130
|
| A Level 3 `react` block | The block is already the implementation, with typed `Props`. Port it into a component that honors those `Props` | Convention |
|
|
131
131
|
| `file Screens/X.tsx` | That file is the page. The model keeps the contract; the file must still show the declared data and actions | Stage's handling of the file reference is not verified |
|
|
@@ -159,14 +159,14 @@ restate a rule ([queries-and-commands.md](queries-and-commands.md)).
|
|
|
159
159
|
|
|
160
160
|
## Interactions: `on`, `uses`, `behavior`
|
|
161
161
|
|
|
162
|
-
The action set is closed ([interactions.md](https://github.com/Cratis/Screenplay/blob/
|
|
162
|
+
The action set is closed ([interactions.md](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/interactions.md)).
|
|
163
163
|
|
|
164
164
|
| Model action | Page |
|
|
165
165
|
| --- | --- |
|
|
166
166
|
| `execute <Command>` | `CommandDialog`, or `Command.use()` then `execute()` for a command with no user input ([queries-and-commands.md](queries-and-commands.md)) |
|
|
167
167
|
| `confirm "text"` | `useConfirmationDialog`; declining stops what follows |
|
|
168
168
|
| `notify info\|warning\|error "text"` | `toast.info/warn/error({ title, description })`, or `toastCommandResult` for a command result |
|
|
169
|
-
| `refresh <Query>` | For a query you read with the hook, call the `perform` function from `[result, perform, setSorting]` ([queries-and-commands.md](queries-and-commands.md)). An observable query updates by itself and has no `perform`. Gap: `DataPage` only forwards `onRefresh` to your own callback
|
|
169
|
+
| `refresh <Query>` | For a query you read with the hook, call the `perform` function from `[result, perform, setSorting]` ([queries-and-commands.md](queries-and-commands.md)). An observable query updates by itself and has no `perform`. Gap: `DataPage` only forwards `onRefresh` to your own callback; it does not re-run its internal snapshot query, so an explicit refresh of a `DataPage` list has no verified mechanism. Use an observable query, or read the query yourself and render with `DataTableCore`-level components, and report the choice |
|
|
170
170
|
| `open dialog <Template>` / `close dialog` | `useDialog` / `closeDialog(DialogResult.Ok)` |
|
|
171
171
|
| `navigate to <Screen>` / `navigate back` | The application's router |
|
|
172
172
|
| `set <target> to <value>` | View-model state |
|
|
@@ -4,8 +4,8 @@ No TrogonStack text is adapted in this skill. Nebulit material is credited in th
|
|
|
4
4
|
|
|
5
5
|
| Item | Source | Licence | Treatment | Where in this skill |
|
|
6
6
|
|---|---|---|---|---|
|
|
7
|
-
| Component APIs, props and hooks | Cratis Components
|
|
8
|
-
| Screenplay and Stage facts in the screen mapping | Cratis/Screenplay
|
|
7
|
+
| Component APIs, props and hooks | Cratis Components and Arc, see *Product sources* | MIT | original | SKILL.md, references/ |
|
|
8
|
+
| Screenplay and Stage facts in the screen mapping | Cratis/Screenplay and Cratis/Stage documentation and source | MIT | original | references/from-screenplay.md |
|
|
9
9
|
|
|
10
10
|
## Eventmodelers Build-Kits
|
|
11
11
|
|
|
@@ -226,7 +226,7 @@ or `exceptionDisplayComponent` (`ExceptionDisplayProps`); `showErrors={false}`
|
|
|
226
226
|
hides built-in display. Dynamic accessors need `fieldName`; custom field validation
|
|
227
227
|
failures block submit. `useIdentity(type)` deserializes typed details.
|
|
228
228
|
Sources: `Source/JavaScript/Arc.React/Arc.tsx` and
|
|
229
|
-
`commands/CommandForm/CommandForm.tsx
|
|
229
|
+
`commands/CommandForm/CommandForm.tsx`.
|
|
230
230
|
|
|
231
231
|
## `<Arc>` configuration
|
|
232
232
|
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
{ "kind": "skill-contains", "value": "DataPage has no snapshot refresh handle" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "Mount exactly one toaster" },
|
|
15
15
|
{ "kind": "skill-contains", "value": "<CratisComponentsProvider toaster>" },
|
|
16
|
-
{ "kind": "skill-contains", "value": "Templates `v1.7.4`" },
|
|
17
16
|
{ "kind": "skill-contains", "value": "rather than adding a second toaster" },
|
|
18
|
-
{ "kind": "skill-contains", "value": "4.26.4" },
|
|
19
17
|
{ "kind": "skill-contains", "value": "checkbox multi-selection", "file": "references/data-tables.md" },
|
|
20
18
|
{ "kind": "skill-contains", "value": "DataPage never invokes it or refetches", "file": "references/data-page.md" }
|
|
21
19
|
]
|
|
@@ -15,12 +15,12 @@ tenants or turn a repository into an observable source.
|
|
|
15
15
|
|
|
16
16
|
## Verified product sources
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Source: `Arc.Kotlin`: `Integrations/SpringDataJpa`,
|
|
19
19
|
`Integrations/SpringDataMongo` (observable query services/extensions, contextual
|
|
20
20
|
read-model providers, tenant access and converters) and
|
|
21
21
|
`Documentation/guides/spring-data/*.mdx`.
|
|
22
|
-
Add `io.cratis:arc-spring-data-jpa
|
|
23
|
-
`io.cratis:arc-spring-data-mongodb
|
|
22
|
+
Add `io.cratis:arc-spring-data-jpa:<version>` or
|
|
23
|
+
`io.cratis:arc-spring-data-mongodb:<version>`; both include the Arc Spring Boot
|
|
24
24
|
starter and corresponding Spring Data starter. Spring owns repository discovery,
|
|
25
25
|
datasource/entity manager, Mongo client and their standard configuration.
|
|
26
26
|
|
|
@@ -15,12 +15,12 @@ This is test support, not an alternative production host.
|
|
|
15
15
|
|
|
16
16
|
## Verified product sources
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Source: `Arc.Kotlin`: `Testing/src/main/kotlin/io/cratis/arc/testing`
|
|
19
19
|
(`CommandScenario`, `QueryScenario`, `ObservableQueryScenario`, result assertions),
|
|
20
20
|
`Integrations/Chronicle/ChronicleCommandScenario.kt`, and
|
|
21
21
|
`Documentation/guides/testing.mdx`. Add
|
|
22
|
-
`testImplementation("io.cratis:arc-testing
|
|
23
|
-
plugin and KSP version.
|
|
22
|
+
`testImplementation("io.cratis:arc-testing:<version>")`; align it with the runtime,
|
|
23
|
+
plugin and KSP version.
|
|
24
24
|
|
|
25
25
|
## Choose the pipeline
|
|
26
26
|
|
|
@@ -14,8 +14,7 @@ that way; keep service calls, async work, and cross-member logic imperative.
|
|
|
14
14
|
|
|
15
15
|
## Verified product sources
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
Kotlin 2.4.20, KSP 2.3.12, Spring Boot 4.1.1, JUnit Jupiter 6.1.3. `io.cratis:arc` supplies `io.cratis.arc.validation.FluentModelValidator`,
|
|
17
|
+
Source: `Arc.Kotlin`. `io.cratis:arc` supplies `io.cratis.arc.validation.FluentModelValidator`,
|
|
19
18
|
`CommandValidator<T>`, nongeneric `QueryValidator`, `ConceptValidator<T>`,
|
|
20
19
|
`ModelValidator<T>`, `ConceptValidationExclusion`, `IgnoreValidation`,
|
|
21
20
|
`CommandFilter`, `QueryFilter`. Sources: `queries/QueryValidator.kt`,
|
|
@@ -20,8 +20,8 @@ generator copies into generated proxies. Setup is in
|
|
|
20
20
|
|
|
21
21
|
## Verified product sources
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
server packages
|
|
23
|
+
Source: `Cratis/Arc.TypeScript` (source preview;
|
|
24
|
+
server packages not on npm), reading `Source/Core/validation/**` (including
|
|
25
25
|
`index.ts`, `ValidationResult.ts`, `Severity.ts`, `RuleBuilder.ts`),
|
|
26
26
|
`Source/Core/commands/Outcome.ts`, `Documentation/commands/command-validation.md`,
|
|
27
27
|
`validation-severity-filtering.md`, `command-outcomes.md`,
|
|
@@ -228,8 +228,8 @@ return rejected(validation('Unusually long title', ['title'], 'rule', Severity.W
|
|
|
228
228
|
return denied('Only the owner can rename a task');
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
-
- `ValidationResult.information/warning/error(message, options?)` (Arc for
|
|
232
|
-
TypeScript 0.34.0
|
|
231
|
+
- `ValidationResult.information/warning/error(message, options?)` (Requires Arc for
|
|
232
|
+
TypeScript 0.34.0) build a result at that severity; `options` sets
|
|
233
233
|
`members`, `state` (must be JSON-serializable), `reason` (default `rule`) and
|
|
234
234
|
`reasonDetail`. `members` defaults to `[]` and `reason` to `rule`; omitted
|
|
235
235
|
`state` and `reasonDetail` are left out of the result.
|