@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
package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Provenance
|
|
2
2
|
|
|
3
|
-
Lineage of the
|
|
3
|
+
Lineage of the additions to `cratis-chronicle-read-model-specifications`. No TrogonStack material was adapted. Nebulit material is credited below.
|
|
4
4
|
|
|
5
5
|
## Adapted closely (Martin Dilger and Nebulit GmbH)
|
|
6
6
|
|
|
@@ -10,6 +10,6 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
|
|
|
10
10
|
| Source file | Used in | How |
|
|
11
11
|
|---|---|---|
|
|
12
12
|
| `.claude/skills/build-state-view/SKILL.md`: checklist: every field asserted, every event covered, empty-list case | `SKILL.md` Step 6 | idea; our own wording kept |
|
|
13
|
-
| `.claude/skills/build-state-view/SKILL.md`: one specification per contract specification, population on the first event, removal on the end event, assertions on the materialized state, optional storyline-derived read-model chain tests | `references/view-lifecycle-checks.md` | Adapted closely as population, update and removal checks over `ReadModelScenario<TReadModel>`; the partial-update and several-instance checks are ours. Not adopted: SQL insert, update and delete operation patterns, Flyway migrations, `PostgreSQLProjectionSpec` with Testcontainers, route creation and wiring; storyline-derived tests wait for storyline syntax
|
|
13
|
+
| `.claude/skills/build-state-view/SKILL.md`: one specification per contract specification, population on the first event, removal on the end event, assertions on the materialized state, optional storyline-derived read-model chain tests | `references/view-lifecycle-checks.md` | Adapted closely as population, update and removal checks over `ReadModelScenario<TReadModel>`; the partial-update and several-instance checks are ours. Not adopted: SQL insert, update and delete operation patterns, Flyway migrations, `PostgreSQLProjectionSpec` with Testcontainers, route creation and wiring; storyline-derived tests wait for storyline syntax , lifecycle spec families stand in |
|
|
14
14
|
|
|
15
|
-
The strict-subscription reconciliation is original to Cratis and verified against Chronicle
|
|
15
|
+
The strict-subscription reconciliation is original to Cratis and verified against the Chronicle client.
|
|
@@ -13,22 +13,23 @@ branching on prior state, calculations or guards read better as code. A reducer
|
|
|
13
13
|
is a normal choice, not a last resort. For the application-code ladder and PDL's
|
|
14
14
|
outside-code role, read [choosing a style](../cratis-chronicle-read-model/SKILL.md#step-3--choose-a-projection-or-a-reducer).
|
|
15
15
|
|
|
16
|
+
Requires Chronicle 19.58.0 for self-reducing read models.
|
|
17
|
+
|
|
16
18
|
For new .NET reducers, default to **self-reducing read models**: public static
|
|
17
19
|
`Reduce` methods beside the state, discovered by shape without a marker. Use a
|
|
18
20
|
separate `IReducerFor<T>` for fold-time DI, replay-time instance state or useful
|
|
19
21
|
separation; nominate a plain class only when its assembly cannot reference
|
|
20
|
-
Chronicle. Self reduction is .NET-only
|
|
22
|
+
Chronicle. Self reduction is .NET-only; other SDKs retain
|
|
21
23
|
their own contracts. This guidance does not claim Stage renders the self form.
|
|
22
24
|
|
|
23
25
|
## Verified product sources
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
Sources:
|
|
26
28
|
|
|
27
|
-
| Package |
|
|
28
|
-
| --- | --- |
|
|
29
|
-
| `Cratis.Chronicle` | `
|
|
30
|
-
| `Cratis.Chronicle
|
|
31
|
-
| `Cratis.Chronicle.Testing` | `19.59.4` | `Source/Clients/Testing/ReadModels/ReadModelScenario.cs` at tag `v19.59.4`: static folds through scenarios |
|
|
29
|
+
| Package | Purpose |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| `Cratis.Chronicle` | `Cratis.Chronicle.Reducers`, `Cratis.Chronicle.ReadModels`, `Cratis.Chronicle.Events`; self and instance forms, discovery and ownership (`Source/Clients/DotNET/Reducers/{SelfReducerMethods,SelfReducerInvoker,SelfReducerReplayHooks,RegisteredReducerReadModel,ReducerInvoker,ReducerCatalog}.cs`, `ReadModels/ReadModelBuilderOwnership.cs`, `DefaultClientArtifactsProvider.cs`) |
|
|
32
|
+
| `Cratis.Chronicle.Testing` | `Source/Clients/Testing/ReadModels/ReadModelScenario.cs`: static folds through scenarios |
|
|
32
33
|
|
|
33
34
|
Reverify product sources before claiming support for another version.
|
|
34
35
|
|
|
@@ -93,10 +94,10 @@ No model activation, parameterless constructor or reducer marker is needed.
|
|
|
93
94
|
### Arc on the same record
|
|
94
95
|
|
|
95
96
|
In Arc applications keep `[ReadModel]`, `Reduce` methods and static queries on
|
|
96
|
-
one record.
|
|
97
|
+
one record. On an Arc older than 22.90.0, use
|
|
97
98
|
`[ReadModel(RequireQueryAttribute = true)]` with `[Query]` on intended endpoints;
|
|
98
99
|
see [query discovery](../cratis-chronicle-read-model/references/queries.md#discovery-rules).
|
|
99
|
-
|
|
100
|
+
Requires Arc 22.90.0 for the automatic behavior: Arc excludes methods taking the model itself from query
|
|
100
101
|
discovery, and Arc.Chronicle claims self-reducing models for command injection.
|
|
101
102
|
Check the consuming Arc version; Chronicle's discovery does not fix older Arc.
|
|
102
103
|
|
|
@@ -231,14 +232,14 @@ model type** and makes it passive as a whole: no sink, nothing materialized, and
|
|
|
231
232
|
the instance is computed on demand when it is read. Reach for it when a
|
|
232
233
|
command-side read needs the model current at the moment it is read. Passive is
|
|
233
234
|
fresher, not safer: a passive reducer read captures no position and guards nothing,
|
|
234
|
-
and a reducer (or a self-reducing model
|
|
235
|
+
and a reducer (or a self-reducing model) is refused by
|
|
235
236
|
decision reads. For a rule that must hold under concurrent writers use a flat
|
|
236
237
|
projection with a decision read; see
|
|
237
238
|
[choosing how a rule holds](../cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md).
|
|
238
239
|
|
|
239
240
|
## Discovery, upgrades and ownership
|
|
240
241
|
|
|
241
|
-
|
|
242
|
+
Requires Chronicle 19.58.0: complete marker-free static shapes become reducers on upgrade,
|
|
242
243
|
including existing helpers. Review them before upgrading. Near-miss static
|
|
243
244
|
`Reduce` declarations whose current/result refers to the model warn (CHR0058)
|
|
244
245
|
and are skipped by implicit discovery; explicit nomination throws
|
|
@@ -313,11 +314,11 @@ Filters remain effective during catch-up, replay and failed-partition recovery.
|
|
|
313
314
|
The kernel classifies new definitions under `observers.definitionEvolution`:
|
|
314
315
|
`Automatic` (default), `PartialOnly`, or `Manual`. Reducer method fingerprints
|
|
315
316
|
make code changes visible even without subscription changes; assembly versions
|
|
316
|
-
are ignored
|
|
317
|
+
are ignored (Requires Chronicle 19.29.4). Changed
|
|
317
318
|
implementation, keys or filters require full replay; adding event types permits
|
|
318
319
|
partial replay only when history proves they follow all previously consumed
|
|
319
320
|
events per source. Interleaved history requires full replay. Manual policies
|
|
320
|
-
leave recommendations; they do not silently rebuild. Source
|
|
321
|
+
leave recommendations; they do not silently rebuild. Source:
|
|
321
322
|
`Documentation/hosting/configuration/observers.md`.
|
|
322
323
|
|
|
323
324
|
## Specifications
|
|
@@ -42,11 +42,11 @@ artifact. Screenshot the smallest region that answers the question.
|
|
|
42
42
|
|
|
43
43
|
## Verified product sources
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Sources:
|
|
46
46
|
|
|
47
|
-
| Package |
|
|
48
|
-
| --- | --- |
|
|
49
|
-
| `Cratis.Chronicle` |
|
|
47
|
+
| Package | Purpose |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| `Cratis.Chronicle` | the Workbench application, its hosting, screens, and commands |
|
|
50
50
|
|
|
51
51
|
Reverify before claiming a screen, route, command, or configuration key for
|
|
52
52
|
another version.
|
|
@@ -63,8 +63,8 @@ forward **all** traffic over h2c, including Workbench/REST, not HTTP/1.1.
|
|
|
63
63
|
Restrict direct backend access. With authentication enabled, this requires an
|
|
64
64
|
external HTTPS authority; the internal OAuth authority and `/connect/token`
|
|
65
65
|
are unavailable. The .NET SDK's built-in ClientCredentials mode cannot use that
|
|
66
|
-
external authority. Source: `Documentation/hosting/configuration/tls.md
|
|
67
|
-
|
|
66
|
+
external authority. Source: `Documentation/hosting/configuration/tls.md`.
|
|
67
|
+
Use **cratis-chronicle-hosting** for the deployment checklist.
|
|
68
68
|
|
|
69
69
|
Configuration lives under `Cratis:Chronicle`, bound from a `chronicle.json` at
|
|
70
70
|
the host root and from environment variables prefixed `Cratis__Chronicle__`.
|
|
@@ -100,14 +100,14 @@ Read these before putting a Workbench on any reachable network.
|
|
|
100
100
|
layer; the Sequences screen renders whatever event content the API returns.
|
|
101
101
|
Whether an operator sees plaintext personal data depends on the server path,
|
|
102
102
|
not on the UI. Assume they do.
|
|
103
|
-
- **Forwarded headers are not trusted unconditionally.**
|
|
103
|
+
- **Forwarded headers are not trusted unconditionally.**
|
|
104
104
|
`X-Forwarded-For/Proto` is accepted only from loopback by default, or immediate
|
|
105
105
|
proxy addresses configured in `forwardedHeaders.knownProxies/knownNetworks`
|
|
106
106
|
(`Cratis__Chronicle__ForwardedHeaders__KnownProxies__0` and
|
|
107
107
|
`__KnownNetworks__0`). `ASPNETCORE_FORWARDEDHEADERS_ENABLED=true` does not widen
|
|
108
108
|
trust. Restrict the proxy subnet, never use a wildcard CIDR, and have the proxy
|
|
109
109
|
**replace** client-supplied headers. Source: `Documentation/hosting/configuration/tls.md`,
|
|
110
|
-
"Trusted reverse proxies"
|
|
110
|
+
"Trusted reverse proxies".
|
|
111
111
|
- The health endpoint, the antiforgery probe, the gRPC descriptor-set and
|
|
112
112
|
compatibility calls, the initial-admin-password endpoints, and the gRPC
|
|
113
113
|
`ResetKernelState` call answer anonymously (`[AllowAnonymous]`).
|
|
@@ -131,13 +131,12 @@ Reducers, Reactors, Sinks and a store-wide Sequences view have routes but no men
|
|
|
131
131
|
entry (their menu lines are commented out in `EventStore.tsx`). Event types uses
|
|
132
132
|
one list with a side panel (Schema and Observers tabs). Observer details includes
|
|
133
133
|
connected clients in Summary; Failed partitions has Retry and a detail panel.
|
|
134
|
-
The Help menu
|
|
134
|
+
The Help menu needs Chronicle 19.39.2. Source:
|
|
135
135
|
`Source/Workbench/Features/EventStore/EventStore.tsx`,
|
|
136
136
|
`Namespaces/Observers/ObserverDetails.tsx`, `Namespaces/FailedPartitions/FailedPartitions.tsx`,
|
|
137
137
|
and `General/EventTypes/TypeDetails.tsx` (paths relative to that feature).
|
|
138
|
-
Do not infer that dashboard or stale-detail
|
|
139
|
-
|
|
140
|
-
runtime reproduction was performed here.
|
|
138
|
+
Do not infer that dashboard or stale-detail problems are fixed from the Help menu;
|
|
139
|
+
reproduce them against your own deployment.
|
|
141
140
|
|
|
142
141
|
## What each screen can change
|
|
143
142
|
|
|
@@ -20,15 +20,15 @@ does not have.
|
|
|
20
20
|
|
|
21
21
|
## Verified product sources
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Sources:
|
|
24
24
|
|
|
25
|
-
| Package |
|
|
26
|
-
| --- | --- |
|
|
27
|
-
| `Cratis.Cli` | `
|
|
25
|
+
| Package | Purpose |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| `Cratis.Cli` | `cratis chronicle workbench`, its views, keys, and actions |
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
The workbench has fifteen views; keys are in [WorkbenchKeyDispatcher.cs](https://github.com/Cratis/cli/blob/main/Source/Cli/Commands/Chronicle/Workbench/windows/WorkbenchKeyDispatcher.cs) and output validation is in [WorkbenchCommand.cs](https://github.com/Cratis/cli/blob/main/Source/Cli/Commands/Chronicle/Workbench/WorkbenchCommand.cs).
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Check the installed CLI before claiming a view, key binding, or action.
|
|
32
32
|
`cratis chronicle workbench --help` and `cratis llm-context` are the authority
|
|
33
33
|
for the installed version.
|
|
34
34
|
|
|
@@ -16,22 +16,18 @@ change did not touch is a note, never a blocker.
|
|
|
16
16
|
|
|
17
17
|
## Verified product sources
|
|
18
18
|
|
|
19
|
-
| Package |
|
|
20
|
-
| --- | --- |
|
|
21
|
-
| `Cratis.Arc.Core` |
|
|
22
|
-
| `Cratis.Chronicle` |
|
|
23
|
-
| `Cratis.Fundamentals` | `
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
> version-qualified.
|
|
28
|
-
|
|
29
|
-
Fundamentals rechecked at v7.23.0:
|
|
30
|
-
[`ConceptAs<T>`](https://github.com/Cratis/Fundamentals/blob/v7.23.0/Source/DotNET/Fundamentals/Concepts/ConceptAs.cs)
|
|
19
|
+
| Package | Purpose |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `Cratis.Arc.Core` | Command, query, validation and analyzer surface (`ARC0001`–`ARC0026`, including operations, authorization, generated values and explicit query selection) |
|
|
22
|
+
| `Cratis.Chronicle` | Event, projection, read-model and constraint surface |
|
|
23
|
+
| `Cratis.Fundamentals` | `ConceptAs<T>`, `IInstancesOf<T>`, the DI conventions |
|
|
24
|
+
|
|
25
|
+
Fundamentals:
|
|
26
|
+
[`ConceptAs<T>`](https://github.com/Cratis/Fundamentals/blob/main/Source/DotNET/Fundamentals/Concepts/ConceptAs.cs)
|
|
31
27
|
is the typed-value record;
|
|
32
|
-
[`InstancesOf<T>`](https://github.com/Cratis/Fundamentals/blob/
|
|
28
|
+
[`InstancesOf<T>`](https://github.com/Cratis/Fundamentals/blob/main/Source/DotNET/Fundamentals/Types/InstancesOf.cs)
|
|
33
29
|
discovers implementations and resolves them when enumerated;
|
|
34
|
-
[DI conventions](https://github.com/Cratis/Fundamentals/blob/
|
|
30
|
+
[DI conventions](https://github.com/Cratis/Fundamentals/blob/main/Source/DotNET/Fundamentals/DependencyInjection/ServiceCollectionExtensions.cs)
|
|
35
31
|
honor `[Singleton]` and `[Scoped]`, defaulting to transient.
|
|
36
32
|
|
|
37
33
|
Reverify against the owning product repository before asserting a framework
|
|
@@ -88,14 +84,14 @@ there is nothing to review under a red build.
|
|
|
88
84
|
- Plain injected models are advisory, not a concurrency guard. Review guarded
|
|
89
85
|
stream/projection reads and actual conflict specs (`UseDecisionReads()`).
|
|
90
86
|
- Use `Cratis.Arc.Core.CodeAnalysis` and `Cratis.Arc.Chronicle.CodeAnalysis`.
|
|
91
|
-
|
|
87
|
+
ARCCHR0011/0012 (Info) flag unprotected reads/immediate
|
|
92
88
|
bypasses; 0013 (Info) recommends definitions; 0014 checks declared observer
|
|
93
89
|
streams; 0015 warns on nullable events; 0016 flags ignored concurrency flags;
|
|
94
90
|
0017/0018 check stream-id templates; 0019 warns on folds exposed as queries.
|
|
95
91
|
ARC0015 checks concept query inputs, ARC0016–18 operations, ARC0019–21
|
|
96
92
|
authorization, ARC0022–25 generated values and ARC0026 explicit/ambiguous queries.
|
|
97
93
|
A clean build cannot prove the Info-level decision advisories were addressed.
|
|
98
|
-
Sources: Arc
|
|
94
|
+
Sources: Arc `Source/DotNET/Arc.Core.CodeAnalysis/DiagnosticDescriptors.cs`
|
|
99
95
|
and `Source/DotNET/Chronicle.CodeAnalysis/DiagnosticDescriptors.cs`.
|
|
100
96
|
|
|
101
97
|
## Step 3 — C# style
|
|
@@ -137,7 +133,7 @@ degradations a reviewer can see without measuring:
|
|
|
137
133
|
|
|
138
134
|
- A projection joining on a read model; a reactor re-querying the event log
|
|
139
135
|
inside a handler instead of using the event data.
|
|
140
|
-
- A new projection that could not replay all
|
|
136
|
+
- A new projection that could not replay all earlier events; events carrying
|
|
141
137
|
large blobs.
|
|
142
138
|
- A query that does not filter on an indexed field; a growable list that does
|
|
143
139
|
not return `IQueryable<T>` for server-side paging; hydrating a collection only
|
|
@@ -15,9 +15,9 @@ what is written here.
|
|
|
15
15
|
|
|
16
16
|
## Verified product sources
|
|
17
17
|
|
|
18
|
-
| Package |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| `@cratis/components` | `
|
|
18
|
+
| Package | Verified from |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| `@cratis/components` | `Source/Dialogs/*` (`DialogInitialFocus`, `DialogImplementation`), `Source/CommandForm/fields/fieldAccessibility.tsx`, `Source/for_accessibility/*`, `Source/SchemaEditor/*`, `Source/ObjectNavigationalBar/*`, `Source/MIGRATION.md`, `Documentation/Styling/pass-through.md`, `Documentation/Common/cratis-components-provider.md`, `Documentation/renderers/index.md` |
|
|
21
21
|
|
|
22
22
|
Focus, overlay and collection behavior come from React Aria **internally** — the
|
|
23
23
|
dialog is a React Aria `Modal` inside a `ModalOverlay`; you never import React
|
|
@@ -11,14 +11,14 @@ license: MIT
|
|
|
11
11
|
|
|
12
12
|
## Verified product sources
|
|
13
13
|
|
|
14
|
-
All claims and prop shapes are from **Cratis/Components
|
|
14
|
+
All claims and prop shapes are from **Cratis/Components** source rather than unchecked examples.
|
|
15
15
|
|
|
16
|
-
| Package |
|
|
17
|
-
| --- | --- |
|
|
18
|
-
| `@cratis/components` | `
|
|
19
|
-
| React |
|
|
16
|
+
| Package | Sources |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| `@cratis/components` | `Source/Common/ComboBox.tsx`; `ToggleGroup.tsx`; `Tabs.tsx`; `TagGroup.tsx`; `Breadcrumbs.tsx` |
|
|
19
|
+
| React | `Source/package.json` |
|
|
20
20
|
|
|
21
|
-
Imports are exported by `Source/Common/index.ts
|
|
21
|
+
Imports are exported by `Source/Common/index.ts`; `Source/package.json` exposes the `Common` subpath. Use **cratis-components-styling** for the provider and CSS setup and **cratis-components-accessibility** for naming/focus. These controls do not replace Arc's generated `InputTextField`/other command fields; use **cratis-arc-react-page** for those bindings.
|
|
22
22
|
|
|
23
23
|
## Choose the semantic control first
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ Imports are exported by `Source/Common/index.ts:11-15`; `Source/package.json:95-
|
|
|
30
30
|
| Add/remove string values | `TagGroup` | `value: string[]`, `onChange(nextValues)` |
|
|
31
31
|
| Show where the page sits in navigation | `Breadcrumbs` | `items: { label, href?, onNavigate? }[]`, outermost first |
|
|
32
32
|
|
|
33
|
-
`ToggleGroup` is a single-selection value choice with radio-group semantics and one Tab stop. `Tabs` supplies real panels and tab/panel relationships. Do not use panel-less tabs as a fancy radio group (`ToggleGroup.tsx
|
|
33
|
+
`ToggleGroup` is a single-selection value choice with radio-group semantics and one Tab stop. `Tabs` supplies real panels and tab/panel relationships. Do not use panel-less tabs as a fancy radio group (`ToggleGroup.tsx`, `Tabs.tsx`).
|
|
34
34
|
|
|
35
35
|
## 1. Bind a picker, not its display text
|
|
36
36
|
|
|
@@ -66,14 +66,14 @@ export const AccountPicker = (props: AccountPickerProps) => (
|
|
|
66
66
|
);
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
The host loads options; ComboBox never fetches them. For server-filtered results, supply `inputValue`, `onInputChange` and `filter='none'`; the caller debounces/cancels requests and discards stale answers. Local `filter` defaults to `'contains'`; `'startsWith'` is also supported. Explicit open/focus shows all options rather than filtering to the selected label (`ComboBox.tsx
|
|
69
|
+
The host loads options; ComboBox never fetches them. For server-filtered results, supply `inputValue`, `onInputChange` and `filter='none'`; the caller debounces/cancels requests and discards stale answers. Local `filter` defaults to `'contains'`; `'startsWith'` is also supported. Explicit open/focus shows all options rather than filtering to the selected label (`ComboBox.tsx`).
|
|
70
70
|
|
|
71
|
-
Useful props
|
|
71
|
+
Useful props:
|
|
72
72
|
|
|
73
73
|
- `failure: ReactNode` replaces options with failure content. `loading` shows `loadingMessage`; `emptyMessage` is for a genuine empty result. Do not map denied/failed loads to an empty list without an explanation.
|
|
74
74
|
- `optionLayout='inline' | 'stacked'` controls secondary `description` placement.
|
|
75
|
-
- `action={{ label, onAction }}` offers a footer action receiving the current input text. It **does not select or create an option for you**. The handler may return a promise, but the component fires it without awaiting; the caller owns busy/error handling
|
|
76
|
-
- `required`, `invalid`, `errorMessage`, `description`, `disabled`, `readOnly`, `name` and `id` cover field state. `id` belongs to the input for `<label htmlFor>`. `name` carries the selected key, not search text
|
|
75
|
+
- `action={{ label, onAction }}` offers a footer action receiving the current input text. It **does not select or create an option for you**. The handler may return a promise, but the component fires it without awaiting; the caller owns busy/error handling.
|
|
76
|
+
- `required`, `invalid`, `errorMessage`, `description`, `disabled`, `readOnly`, `name` and `id` cover field state. `id` belongs to the input for `<label htmlFor>`. `name` carries the selected key, not search text.
|
|
77
77
|
|
|
78
78
|
## 2. Choose a value or a panel
|
|
79
79
|
|
|
@@ -103,7 +103,7 @@ import { ToggleGroup, Tabs } from '@cratis/components/Common';
|
|
|
103
103
|
/>
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
`ToggleGroup.onChange` receives a string, not a DOM event; selecting the already-selected value is ignored. `Tabs.onChange` also receives an ID string. Both offer `disabled`, accessible labeling, `className` and typed `pt` parts. ToggleGroup additionally exposes `invalid` and `aria-describedby` (`ToggleGroup.tsx
|
|
106
|
+
`ToggleGroup.onChange` receives a string, not a DOM event; selecting the already-selected value is ignored. `Tabs.onChange` also receives an ID string. Both offer `disabled`, accessible labeling, `className` and typed `pt` parts. ToggleGroup additionally exposes `invalid` and `aria-describedby` (`ToggleGroup.tsx`; `Tabs.tsx`). Do not infer route navigation from changing a tab; its job is revealing content.
|
|
107
107
|
|
|
108
108
|
## 3. Add tags without confusing display with read-only
|
|
109
109
|
|
|
@@ -121,9 +121,9 @@ import { TagGroup } from '@cratis/components/Common';
|
|
|
121
121
|
/>
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
TagGroup defaults to `editable=true`, comma separators and `allowDuplicates=false`. Enter or separators commit trimmed nonempty values; paste splits on separators. Empty-entry Backspace removes the last tag (`TagGroup.tsx
|
|
124
|
+
TagGroup defaults to `editable=true`, comma separators and `allowDuplicates=false`. Enter or separators commit trimmed nonempty values; paste splits on separators. Empty-entry Backspace removes the last tag (`TagGroup.tsx`).
|
|
125
125
|
|
|
126
|
-
**`editable=false` only removes the adding input; existing tags remain removable.** Use `disabled` when removal must also be unavailable, or a display-only surface for noninteractive tags. Supply `removeLabel(value)` for localized accessible names. `removeIcon` overrides that group's glyph (ahead of provider `icons.remove`) without changing the button's name or keyboard behavior (`TagGroup.tsx
|
|
126
|
+
**`editable=false` only removes the adding input; existing tags remain removable.** Use `disabled` when removal must also be unavailable, or a display-only surface for noninteractive tags. Supply `removeLabel(value)` for localized accessible names. `removeIcon` overrides that group's glyph (ahead of provider `icons.remove`) without changing the button's name or keyboard behavior (`TagGroup.tsx`). Prefer unique values: removal is value-keyed, so this is not an identity-preserving collection editor.
|
|
127
127
|
|
|
128
128
|
## 4. Build the breadcrumb trail from actual navigation
|
|
129
129
|
|
|
@@ -142,7 +142,7 @@ import { Breadcrumbs } from '@cratis/components/Common';
|
|
|
142
142
|
/>
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
Earlier entries can supply `href` or router-owned `onNavigate`. The last item is current: its destination/callback is suppressed and React Aria supplies `aria-current='page'`. Separators are decorative; `separator` accepts any React node (`Breadcrumbs.tsx
|
|
145
|
+
Earlier entries can supply `href` or router-owned `onNavigate`. The last item is current: its destination/callback is suppressed and React Aria supplies `aria-current='page'`. Separators are decorative; `separator` accepts any React node (`Breadcrumbs.tsx`). Supply a distinct landmark name if a page has multiple trails. Breadcrumbs do not discover routes or enforce access.
|
|
146
146
|
|
|
147
147
|
## Verify the binding
|
|
148
148
|
|
|
@@ -11,32 +11,32 @@ license: MIT
|
|
|
11
11
|
|
|
12
12
|
## Verified product sources
|
|
13
13
|
|
|
14
|
-
All API and behavior claims below use **Cratis/Components
|
|
14
|
+
All API and behavior claims below use **Cratis/Components** source.
|
|
15
15
|
|
|
16
|
-
| Package |
|
|
17
|
-
| --- | --- |
|
|
18
|
-
| `@cratis/components` | `
|
|
19
|
-
| `pixi.js` |
|
|
20
|
-
| React |
|
|
16
|
+
| Package | Source |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| `@cratis/components` | `Source/PivotViewer/types.ts`; `Source/TimeMachine/{TimeMachine.tsx,types.ts}`; `Source/Canvas/{Canvas.tsx,CanvasItem.tsx,CanvasHandle.ts}`; `Source/Chat/{index.ts,ChatConversation.tsx,ChatSidebar.tsx}` |
|
|
19
|
+
| `pixi.js` | `Source/package.json`; required when using Canvas or PivotViewer |
|
|
20
|
+
| React | `Source/package.json` |
|
|
21
21
|
|
|
22
|
-
Subpath exports: `Source/package.json
|
|
22
|
+
Subpath exports: `Source/package.json`; each area's `index.ts` exports the types used below. Load **cratis-components-styling** for CSS/provider setup and **cratis-components-accessibility** for localized names. For tabular queries use **cratis-arc-react-page**; for a board tool palette use **cratis-components-toolbar**.
|
|
23
23
|
|
|
24
|
-
These are **presentation contracts**. The host owns loading, access control, data acquisition and persistence. A
|
|
24
|
+
These are **presentation contracts**. The host owns loading, access control, data acquisition and persistence. A timeline slider is not event replay; a chat send callback is not a durable write.
|
|
25
25
|
|
|
26
26
|
## Choose the surface
|
|
27
27
|
|
|
28
28
|
| Surface | Fit | Avoid assuming |
|
|
29
29
|
| --- | --- | --- |
|
|
30
30
|
| `PivotViewer` | Faceted card exploration of an already-loaded collection | Server paging, JSX card rendering or controlled selection |
|
|
31
|
-
| `TimeMachine` | Supplied
|
|
31
|
+
| `TimeMachine` | Supplied past snapshots and event descriptions | Fetching history, rebuilding a read model or a controlled current index |
|
|
32
32
|
| `Canvas` | A pan/zoom board combining DOM items and optional Pixi objects | That moving the camera persists item positions |
|
|
33
33
|
| `ChatConversation` / `ChatSidebar` | Host-owned messages, topic selection and actions | Automatic message persistence, authorization or topic naming |
|
|
34
34
|
|
|
35
|
-
Keep Canvas/PivotViewer behind their subpath imports so ordinary pages do not acquire a Pixi import edge. Install/deduplicate the optional `pixi.js` peer for these areas, including a DOM-only Canvas: `Canvas.tsx
|
|
35
|
+
Keep Canvas/PivotViewer behind their subpath imports so ordinary pages do not acquire a Pixi import edge. Install/deduplicate the optional `pixi.js` peer for these areas, including a DOM-only Canvas: `Canvas.tsx` initializes Pixi through `usePixiApplication`. Do not rely on the word "optional" to omit it when importing those areas.
|
|
36
36
|
|
|
37
37
|
## 1. PivotViewer: data and text cards, not React cards
|
|
38
38
|
|
|
39
|
-
`data`, `dimensions` and `cardRenderer` are required. Each dimension has `key`, `label`, `getValue`; optional `formatValue` and `sort` control group presentation. **`cardRenderer` returns structured text, not JSX**. `detailRenderer(item, onClose)` may return a React node (`PivotViewer/types.ts
|
|
39
|
+
`data`, `dimensions` and `cardRenderer` are required. Each dimension has `key`, `label`, `getValue`; optional `formatValue` and `sort` control group presentation. **`cardRenderer` returns structured text, not JSX**. `detailRenderer(item, onClose)` may return a React node (`PivotViewer/types.ts`).
|
|
40
40
|
|
|
41
41
|
This component accepts loaded domain data; its labels come from the host's localization layer:
|
|
42
42
|
|
|
@@ -72,18 +72,18 @@ export const CatalogExplorer = (props: CatalogExplorerProps) => (
|
|
|
72
72
|
);
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
Other substantial props (`types.ts
|
|
75
|
+
Other substantial props (`types.ts`):
|
|
76
76
|
|
|
77
77
|
- `filters` accepts keyed facets with `label` and `getValue`. Optional `options` are `{ key, label, value, count }`; otherwise they are computed from data. Numeric `type='number'` supports a range/histogram with `buckets`; `renderEditor` replaces a facet editor.
|
|
78
|
-
- `defaultDimensionKey` initializes grouping. Group/filter/selection state is internal; there is no `selectedItem`/`onSelectedItemChange` prop
|
|
79
|
-
- `searchFields` are property accessors. Use direct property paths, not computed expressions: the implementation extracts paths from accessor source (`types.ts
|
|
78
|
+
- `defaultDimensionKey` initializes grouping. Group/filter/selection state is internal; there is no `selectedItem`/`onSelectedItemChange` prop (`PivotViewer.tsx`).
|
|
79
|
+
- `searchFields` are property accessors. Use direct property paths, not computed expressions: the implementation extracts paths from accessor source (`types.ts`, `utils/search.ts`).
|
|
80
80
|
- `emptyContent`, `isLoading`, `loadingLabel`, `labels` and `colors` control presentation. Use the exported `PivotViewerLabels` shape for localization; do not put DOM markup in a text-card result.
|
|
81
81
|
|
|
82
|
-
Bound the dataset in the host. A worker and virtualized rendering do not make loading an unbounded collection a safe query shape (`PivotViewer.tsx
|
|
82
|
+
Bound the dataset in the host. A worker and virtualized rendering do not make loading an unbounded collection a safe query shape (`PivotViewer.tsx`). Test actual browser rendering, resizing, zoom and keyboard behavior; a server-rendered shell does not exercise Pixi.
|
|
83
83
|
|
|
84
84
|
## 2. TimeMachine: prepare history before rendering
|
|
85
85
|
|
|
86
|
-
`Version` is `{ id: string, timestamp: Date, label: string, content: ReactNode, events?: Event[] }`. `Event` is `{ sequenceNumber: number, type: string, occurred: Date, content: Record<string, unknown> }`; it is a presentation DTO, not a Chronicle client object (`TimeMachine/types.ts
|
|
86
|
+
`Version` is `{ id: string, timestamp: Date, label: string, content: ReactNode, events?: Event[] }`. `Event` is `{ sequenceNumber: number, type: string, occurred: Date, content: Record<string, unknown> }`; it is a presentation DTO, not a Chronicle client object (`TimeMachine/types.ts`). Supply versions in the intended history order.
|
|
87
87
|
|
|
88
88
|
Binding excerpt for an existing view with `versions: Version[]`, a caller-owned `onVersionSelected(index)` callback and translated `timelineLabels: Partial<TimeMachineLabels>`:
|
|
89
89
|
|
|
@@ -98,13 +98,13 @@ import { TimeMachine } from '@cratis/components/TimeMachine';
|
|
|
98
98
|
/>
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
**`currentVersionIndex` is initial-only**. Later prop changes do not replace internal selection. `onVersionChange(index)` reports timeline/wheel/previous/next selection; `scrollSensitivity` defaults to 50. The component offers read-model and event views over supplied data (`TimeMachine.tsx
|
|
101
|
+
**`currentVersionIndex` is initial-only**. Later prop changes do not replace internal selection. `onVersionChange(index)` reports timeline/wheel/previous/next selection; `scrollSensitivity` defaults to 50. The component offers read-model and event views over supplied data (`TimeMachine.tsx`). Do not promise an externally controlled scrubber or backend replay.
|
|
102
102
|
|
|
103
103
|
Load only authorized, redacted history. The presence of an event payload in this display is not permission to reveal it, and snapshot content is host-supplied React content. Exercise both modes and localization with the real DTOs.
|
|
104
104
|
|
|
105
105
|
## 3. Canvas: distinguish camera, DOM items and Pixi data
|
|
106
106
|
|
|
107
|
-
DOM content belongs in `Canvas` children. Position measured items with `CanvasItem x/y`, optional stable `id`, and optional `zIndex` on the item root (nested z-index cannot escape its stacking context). The item registry feeds minimap measurements (`CanvasItem.tsx
|
|
107
|
+
DOM content belongs in `Canvas` children. Position measured items with `CanvasItem x/y`, optional stable `id`, and optional `zIndex` on the item root (nested z-index cannot escape its stacking context). The item registry feeds minimap measurements (`CanvasItem.tsx`).
|
|
108
108
|
|
|
109
109
|
```tsx
|
|
110
110
|
// Copyright (c) Cratis. All rights reserved.
|
|
@@ -121,9 +121,9 @@ export const Board = () => (
|
|
|
121
121
|
);
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
The literal card text is illustrative; use the host's approved/localized content. Give the board visible dimensions. For Pixi items, supply `items: T[]` extending `CanvasItemData` and `renderItem(item): PIXI.Container`; `onItemPointerDown` reports item activation, `onReady` receives `CanvasContext` (`Canvas.tsx
|
|
124
|
+
The literal card text is illustrative; use the host's approved/localized content. Give the board visible dimensions. For Pixi items, supply `items: T[]` extending `CanvasItemData` and `renderItem(item): PIXI.Container`; `onItemPointerDown` reports item activation, `onReady` receives `CanvasContext` (`Canvas.tsx`). Do not return React nodes from `renderItem`.
|
|
125
125
|
|
|
126
|
-
Camera/controls contract (`Canvas.tsx
|
|
126
|
+
Camera/controls contract (`Canvas.tsx`, `CanvasHandle.ts`):
|
|
127
127
|
|
|
128
128
|
- `initialZoom` and `initialPan` are initial values, not a controlled camera. `onTransformChange(zoom, pan)` reports movement. Use `onHandleReady` and `CanvasHandle.smoothPanToWorld`/`smoothPanZoomToWorld` for navigation; `getContainerRect` and `getItemBounds` measure it.
|
|
129
129
|
- `minZoom`/`maxZoom` default to 0.1/5. `showControls` defaults true; `showMinimap` false. `minimapItems` can replace registry-derived rectangles.
|
|
@@ -134,11 +134,11 @@ Persist item edits in the host, not in camera callbacks. Browser-test gestures a
|
|
|
134
134
|
|
|
135
135
|
## 4. Public Chat: bind the host's messages and outcomes
|
|
136
136
|
|
|
137
|
-
The public `@cratis/components/Chat` exports **`ChatConversation`**, **`ChatSidebar`**, **`ChatSidebarForObservableQueries`**, **`ChatTopicList`** and their types. It does **not** export the Kit `Chat` component or expose a `Chat/Kit` package subpath (`Source/Chat/index.ts
|
|
137
|
+
The public `@cratis/components/Chat` exports **`ChatConversation`**, **`ChatSidebar`**, **`ChatSidebarForObservableQueries`**, **`ChatTopicList`** and their types. It does **not** export the Kit `Chat` component or expose a `Chat/Kit` package subpath (`Source/Chat/index.ts`, `Source/package.json`). **`Chat` is exported through `@cratis/components/Canvas`** via the Kit barrel (`Source/Canvas/index.ts`, `Source/Chat/Kit/index.ts`). Prefer the non-spatial Chat subpath for ordinary host-data conversations; importing Canvas brings its Pixi edge.
|
|
138
138
|
|
|
139
|
-
The Kit `Chat` has a different contract: required `messages`, `onSend(text)` and `onClose`; optional `variant`, `typingAuthors`, `currentUserId`, `onReact(messageId, emoji)`, `onAct(messageId)`, `canAct` and nested `labels`. Its messages use the Kit `ChatMessage` shape, not the public Chat subpath's message type. Reactions need both `currentUserId` and `onReact`. An optional `id` additionally publishes `ChatMessageAdded` over an available Arc messenger at send time, not after persistence succeeds (`Source/Chat/Kit/Chat.tsx
|
|
139
|
+
The Kit `Chat` has a different contract: required `messages`, `onSend(text)` and `onClose`; optional `variant`, `typingAuthors`, `currentUserId`, `onReact(messageId, emoji)`, `onAct(messageId)`, `canAct` and nested `labels`. Its messages use the Kit `ChatMessage` shape, not the public Chat subpath's message type. Reactions need both `currentUserId` and `onReact`. An optional `id` additionally publishes `ChatMessageAdded` over an available Arc messenger at send time, not after persistence succeeds (`Source/Chat/Kit/Chat.tsx`, `ChatMessage.ts`). Never count that notification as durable delivery, or mix `onSend` with the public conversation's `onSendMessage`.
|
|
140
140
|
|
|
141
|
-
The public `ChatMessage` has `id`, `topicId`, `authorId`, `body`, `timestamp: Date`, optional `mentions` and `metadata`. Identifiers use `ChatIdentifier`; resolve authors through `authorOf`, not an invented `authorName` property (`ChatMessage.ts
|
|
141
|
+
The public `ChatMessage` has `id`, `topicId`, `authorId`, `body`, `timestamp: Date`, optional `mentions` and `metadata`. Identifiers use `ChatIdentifier`; resolve authors through `authorOf`, not an invented `authorName` property (`ChatMessage.ts`, `ChatConversation.tsx`).
|
|
142
142
|
|
|
143
143
|
Complete presentation wrapper using the real public types:
|
|
144
144
|
|
|
@@ -170,15 +170,15 @@ export const Conversation = (props: ConversationProps) => (
|
|
|
170
170
|
|
|
171
171
|
`onSendMessage` reports the trimmed body and mentions; persistence is the host's responsibility. Supply fresh authorized data after command success. Handle failure visibly rather than adding a fabricated message that looks saved.
|
|
172
172
|
|
|
173
|
-
`ChatStatus.Ready/Loading/Failed/Unauthorized` distinguish query outcomes. Existing messages remain during loading/failure; unauthorized replaces them and disables the composer (`ChatStatus.ts
|
|
173
|
+
`ChatStatus.Ready/Loading/Failed/Unauthorized` distinguish query outcomes. Existing messages remain during loading/failure; unauthorized replaces them and disables the composer (`ChatStatus.ts`, `ChatConversation.tsx`). This is UI behavior, not backend enforcement.
|
|
174
174
|
|
|
175
175
|
Additional public contracts:
|
|
176
176
|
|
|
177
|
-
- `actions` are typed `ChatMessageAction<TMessage>[]`; `renderMessageExtra(message)` supplies reaction/failure/detail content under the body. `mentionCandidates` or `resolveMentionCandidates` supplies available mentions (`ChatConversation.tsx
|
|
178
|
-
- `ChatSidebar` requires `open`, `onClose`, `topics`, `messages`, and `onSendMessage(topicId, body, mentions)`. `topicActions` is separate from inherited message `actions`; `renderHeaderActions(openTopic)` belongs to the sidebar (`ChatSidebar.tsx
|
|
179
|
-
- `selectedTopicId` is controlled when provided: ID opens a topic, null shows the list, omission uses internal selection. `onTopicSelected` reports selection. `topicsStatus` and `messagesStatus` are separate; do not show one topic's cached messages while another topic is loading
|
|
180
|
-
- `onStartTopic` returns a created identifier or undefined, optionally in a promise. `onRequestTopicName` asks the host to name an unnamed topic after its first message. Neither creates/saves/names anything on its own
|
|
181
|
-
- The sidebar defaults non-modal, right edge, `24rem`; `position`, `width`, `modal`, `labels`, and typed `pt` customize it
|
|
177
|
+
- `actions` are typed `ChatMessageAction<TMessage>[]`; `renderMessageExtra(message)` supplies reaction/failure/detail content under the body. `mentionCandidates` or `resolveMentionCandidates` supplies available mentions (`ChatConversation.tsx`).
|
|
178
|
+
- `ChatSidebar` requires `open`, `onClose`, `topics`, `messages`, and `onSendMessage(topicId, body, mentions)`. `topicActions` is separate from inherited message `actions`; `renderHeaderActions(openTopic)` belongs to the sidebar (`ChatSidebar.tsx`).
|
|
179
|
+
- `selectedTopicId` is controlled when provided: ID opens a topic, null shows the list, omission uses internal selection. `onTopicSelected` reports selection. `topicsStatus` and `messagesStatus` are separate; do not show one topic's cached messages while another topic is loading.
|
|
180
|
+
- `onStartTopic` returns a created identifier or undefined, optionally in a promise. `onRequestTopicName` asks the host to name an unnamed topic after its first message. Neither creates/saves/names anything on its own.
|
|
181
|
+
- The sidebar defaults non-modal, right edge, `24rem`; `position`, `width`, `modal`, `labels`, and typed `pt` customize it.
|
|
182
182
|
|
|
183
183
|
## Verify the surface, not only the props
|
|
184
184
|
|
|
@@ -19,10 +19,10 @@ case where the shape itself is data.
|
|
|
19
19
|
|
|
20
20
|
## Verified product sources
|
|
21
21
|
|
|
22
|
-
| Package |
|
|
23
|
-
| --- | --- |
|
|
24
|
-
| `@cratis/components` |
|
|
25
|
-
| `react` |
|
|
22
|
+
| Package | Verified from |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `@cratis/components` | its package manifest and the `SchemaEditor` / `ObjectContentEditor` sources |
|
|
25
|
+
| `react` | peer of `@cratis/components` |
|
|
26
26
|
|
|
27
27
|
## The schema type these editors consume
|
|
28
28
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- Extension props
|
|
10
10
|
- Conversion helpers
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Source: Components: `Source/SchemaEditor/SchemaEditor.tsx`,
|
|
13
13
|
`Tree/TreeSchemaEditor.tsx`, `Tree/schemaConversion.ts`, and `index.ts`.
|
|
14
14
|
All exports below come from `@cratis/components/SchemaEditor`.
|
|
15
15
|
|
|
@@ -12,10 +12,10 @@ field across every step is valid.
|
|
|
12
12
|
|
|
13
13
|
## Verified product sources
|
|
14
14
|
|
|
15
|
-
| Package |
|
|
16
|
-
| --- | --- |
|
|
17
|
-
| `@cratis/components` |
|
|
18
|
-
| `@cratis/arc.react` |
|
|
15
|
+
| Package | Verified from |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `@cratis/components` | its package manifest, `Source/CommandDialog/*` (`StepperCommandDialog`, `CommandStepper`, `StepperPanel`), `Documentation/StepperCommandDialog/*`, `Documentation/CommandStepper/*` |
|
|
18
|
+
| `@cratis/arc.react` | peer range declared by `@cratis/components` |
|
|
19
19
|
|
|
20
20
|
## Choose it over `CommandDialog` when
|
|
21
21
|
|
|
@@ -161,8 +161,8 @@ Stepper-level props (inherited from the stepper customization surface):
|
|
|
161
161
|
|
|
162
162
|
Command-form props (`initialValues`, `currentValues`, `validateOn`,
|
|
163
163
|
`validateOnInit`, `onSuccess`, `onValidationFailure`, `onFailed`,
|
|
164
|
-
`autoServerValidate`, …) all apply as well. Horizontal steppers show names below
|
|
165
|
-
numbers and wrap
|
|
164
|
+
`autoServerValidate`, …) all apply as well. Horizontal steppers (Requires Components 4.26.3) show names below
|
|
165
|
+
numbers and wrap. Panels are named by their headers through
|
|
166
166
|
`aria-labelledby`; custom header ids are preserved.
|
|
167
167
|
|
|
168
168
|
While `confirmBeforeExecute` is pending, fields are disabled; changed command
|
|
@@ -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 on customer-supplied brand material draws on ideas from the
|
|
5
|
+
`init-style-guide` and `learn-styleguide` skills of Eventmodelers Build-Kits by Martin Dilger and
|
|
6
|
+
Nebulit GmbH (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used
|
|
7
|
+
with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited
|
|
8
|
+
to Martin Dilger and Nebulit GmbH.
|
|
@@ -15,9 +15,9 @@ first-run problem — start by checking the CSS entry.
|
|
|
15
15
|
|
|
16
16
|
## Verified product sources
|
|
17
17
|
|
|
18
|
-
| Package |
|
|
19
|
-
| --- | --- |
|
|
20
|
-
| `@cratis/components` |
|
|
18
|
+
| Package | Verified from |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| `@cratis/components` | its package manifest (`exports`, no vendor UI dependency or peer), `Source/tokens.css`, `Source/MIGRATION.md`, `Documentation/Styling/*`, `Documentation/Common/cratis-components-provider.md`, `Documentation/renderers/*` |
|
|
21
21
|
|
|
22
22
|
Components declares **no** PrimeReact, PrimeIcons or PrimeUI dependency or peer.
|
|
23
23
|
React Aria supplies focus, overlay, collection and date behavior *internally* —
|
|
@@ -114,7 +114,7 @@ document.documentElement.classList.toggle('cratis-dark', darkMode);
|
|
|
114
114
|
`:root:not(.cratis-light)`. Match the scheme selectors' specificity and place
|
|
115
115
|
overrides after the import, including subtree selectors when using islands.
|
|
116
116
|
Or omit `theme` and use the product-theme setup below.
|
|
117
|
-
- Components 4.22.1
|
|
117
|
+
- Requires Components 4.22.1: it maps Arc's `--color-error` / `--color-error-bg` in both dark
|
|
118
118
|
schemes. A product theme omitting `theme` must define those variables itself;
|
|
119
119
|
do not carry forward the old dark-error contrast workaround.
|
|
120
120
|
|
|
@@ -177,6 +177,7 @@ dot, a traffic-light indicator.
|
|
|
177
177
|
review — move it to a class.
|
|
178
178
|
- Name classes with a prefix matching the component.
|
|
179
179
|
- Import product CSS *after* the Components entries so it wins the cascade.
|
|
180
|
+
- When a customer supplies brand material, keep their CSS and tokens verbatim in product-owned files, map them onto the `--cratis-*` tokens, and use the baseline theme for every decision their material does not cover.
|
|
180
181
|
|
|
181
182
|
## Step 5 — Parts: reaching inside a component
|
|
182
183
|
|
|
@@ -14,11 +14,11 @@ over a list, use `DataPage.MenuItems` instead (see the
|
|
|
14
14
|
|
|
15
15
|
## Verified product sources
|
|
16
16
|
|
|
17
|
-
| Package |
|
|
18
|
-
| --- | --- |
|
|
19
|
-
| `@cratis/components` |
|
|
20
|
-
| `react-icons` |
|
|
21
|
-
| `react` |
|
|
17
|
+
| Package | Verified from |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| `@cratis/components` | its package manifest, `Source/Toolbar/*` (exports and props), `Documentation/Toolbar/*`, `Documentation/Common/icon.md` |
|
|
20
|
+
| `react-icons` | dependency of `@cratis/components` — the icon source the examples use |
|
|
21
|
+
| `react` | peer of `@cratis/components` |
|
|
22
22
|
|
|
23
23
|
## Import from the subpath
|
|
24
24
|
|