@cratis/pi 8.2.1 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +7 -9
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +25 -55
- package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +10 -7
- package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +8 -1
- package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -2
- package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +5 -5
- package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -3
- package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -4
- package/package/corpus/harnesses/copilot/instructions/components.instructions.md +6 -8
- package/package/corpus/harnesses/copilot/instructions/concepts.instructions.md +15 -2
- package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -5
- package/package/corpus/harnesses/copilot/instructions/criticality-tiers.instructions.md +7 -35
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +13 -6
- package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +8 -3
- package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +8 -2
- package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +12 -6
- package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +12 -7
- package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +8 -6
- package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +13 -9
- package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +9 -5
- package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +12 -8
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -4
- package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +12 -6
- package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +11 -7
- package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +7 -7
- package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +5 -3
- package/package/corpus/harnesses/copilot/instructions/general.instructions.md +2 -2
- package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +11 -6
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +13 -13
- package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +13 -39
- package/package/corpus/harnesses/copilot/instructions/go.instructions.md +18 -139
- package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +14 -60
- package/package/corpus/harnesses/copilot/instructions/issue-assignment.instructions.md +6 -9
- package/package/corpus/harnesses/copilot/instructions/java.instructions.md +8 -6
- package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +12 -7
- package/package/corpus/harnesses/copilot/instructions/local-verification-and-delivery.instructions.md +8 -5
- package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +11 -64
- package/package/corpus/harnesses/copilot/instructions/new-repository-intake.instructions.md +7 -28
- package/package/corpus/harnesses/copilot/instructions/operational-safety.instructions.md +26 -41
- package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +22 -5
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +8 -11
- package/package/corpus/harnesses/copilot/instructions/published-contracts.instructions.md +6 -25
- package/package/corpus/harnesses/copilot/instructions/react.instructions.md +9 -2
- package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +17 -5
- package/package/corpus/harnesses/copilot/instructions/review-reports.instructions.md +12 -94
- package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +5 -5
- package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +11 -8
- package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +9 -4
- package/package/corpus/harnesses/copilot/instructions/specs.instructions.md +7 -4
- package/package/corpus/harnesses/copilot/instructions/specs.scenarios.csharp.instructions.md +11 -2
- package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +8 -11
- package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +4 -7
- package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -8
- package/package/corpus/harnesses/copilot/instructions/verification-discipline.instructions.md +6 -9
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +29 -5
- package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +12 -3
- package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +11 -3
- package/package/corpus/hooks/README.md +2 -0
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +36 -24
- package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
- package/package/corpus/hooks/scripts/cratis-guard-writes.sh +2 -1
- package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
- package/package/corpus/rules/ai-distribution.md +7 -9
- package/package/corpus/rules/authoring-skills.md +25 -55
- package/package/corpus/rules/browser.md +10 -7
- package/package/corpus/rules/code-health-policy.txt +3 -3
- package/package/corpus/rules/code-health.md +8 -1
- package/package/corpus/rules/code-quality.csharp.md +3 -2
- package/package/corpus/rules/code-quality.md +5 -5
- package/package/corpus/rules/code-quality.typescript.md +4 -3
- package/package/corpus/rules/codescene-reference.txt +34 -0
- package/package/corpus/rules/codescene.md +5 -4
- package/package/corpus/rules/components.md +6 -8
- package/package/corpus/rules/concepts.md +15 -2
- package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
- package/package/corpus/rules/criticality-tiers.md +7 -35
- package/package/corpus/rules/csharp.md +13 -6
- package/package/corpus/rules/dialogs.md +8 -3
- package/package/corpus/rules/discoverability.md +8 -2
- package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
- package/package/corpus/rules/documentation.md +12 -7
- package/package/corpus/rules/editing-cratis-docs.md +8 -6
- package/package/corpus/rules/efcore.md +13 -9
- package/package/corpus/rules/efcore.specs.md +9 -5
- package/package/corpus/rules/elixir.md +12 -8
- package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
- package/package/corpus/rules/framework-dotnet.md +12 -6
- package/package/corpus/rules/framework.md +11 -7
- package/package/corpus/rules/frontend-quality.md +7 -7
- package/package/corpus/rules/frontend-testing.md +5 -3
- package/package/corpus/rules/general.md +8 -10
- package/package/corpus/rules/github-actions.md +11 -6
- package/package/corpus/rules/glossary.md +13 -13
- package/package/corpus/rules/go-engineering.md +13 -39
- package/package/corpus/rules/go.md +18 -139
- package/package/corpus/rules/guards-and-fuses.md +14 -60
- package/package/corpus/rules/issue-assignment.md +6 -9
- package/package/corpus/rules/java.md +8 -6
- package/package/corpus/rules/kotlin.md +12 -7
- package/package/corpus/rules/local-verification-and-delivery.md +8 -5
- package/package/corpus/rules/local-work-artifacts.md +11 -64
- package/package/corpus/rules/new-repository-intake.md +7 -28
- package/package/corpus/rules/operational-safety.md +26 -41
- package/package/corpus/rules/orleans.md +22 -5
- package/package/corpus/rules/profiles.md +8 -11
- package/package/corpus/rules/published-contracts.md +6 -25
- package/package/corpus/rules/react.md +9 -2
- package/package/corpus/rules/reactors.md +17 -5
- package/package/corpus/rules/review-reports.md +12 -94
- package/package/corpus/rules/scripting.md +5 -5
- package/package/corpus/rules/specs.csharp.md +11 -8
- package/package/corpus/rules/specs.elixir.md +9 -4
- package/package/corpus/rules/specs.md +7 -4
- package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
- package/package/corpus/rules/specs.typescript.md +8 -11
- package/package/corpus/rules/storybook.md +4 -7
- package/package/corpus/rules/typescript.md +8 -8
- package/package/corpus/rules/verification-discipline.md +6 -9
- package/package/corpus/rules/vertical-slices.md +29 -5
- package/package/corpus/rules/writing-correct-examples.md +12 -3
- package/package/corpus/rules/writing-cratis-docs.md +11 -3
- package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
- package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
- package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
- package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
- package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
- package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
- package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
- package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
- package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
- package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
- package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
- package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
- package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
- package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +92 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
- package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
- package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
- package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
- package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
- package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
- package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
- package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
- package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +281 -55
- package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
- package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
- package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
- package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
- package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
- package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
- package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
- package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
- package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
- package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
- package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +379 -31
- package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
- package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
- package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
- package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
- package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
- package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
- package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
- package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
- package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
- package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
- package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
- package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
- package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
- package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
- package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
- package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
- package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
- package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
- package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
- package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
- package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
- package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
- package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
- package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
- package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
- package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
- package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
- package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
- package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
- package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
- package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
- package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
- package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
- package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
- package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
- package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
- package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
- package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
- package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
- package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
- package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
- package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
- package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
- package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +80 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
- package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +161 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +57 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
- package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +57 -41
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
- package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
- package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +105 -45
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
- package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
- package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
- package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
- package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
- package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +57 -52
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
- package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
- package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
- package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
- package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
- package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
- package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
- package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
- package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
- package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
- package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
- package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
- package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
- package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
- package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
- package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
- package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
- package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
- package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
- package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
- package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
- package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
- package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
- package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
- package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
- package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
- package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
- package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
- package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
- package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
- package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
- package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
- package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
- package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
- package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
- package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
- package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
- package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
- package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
- package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
- package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
- package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
- package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
- package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
- package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
- package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
- package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
- package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
- package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
- package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
- package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
- package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
- package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
- package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
- package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
- package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
- package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
- package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
- package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
- package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
- package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
- package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
- package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
- package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
- package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
- package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
- package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
- package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
- package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
- package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
- package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
- package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
- package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
- package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
- package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
- package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
- package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
- package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
- package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
- package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
- package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
- package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
- package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
- package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
- package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
- package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
- package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
- package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
- package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
- package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
- package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
- package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
- package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
- package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
- package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
- package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
- package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
- package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
- package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
- package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
- package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
- package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
- package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
- package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
- package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
- package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
- package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
- package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
- package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
- package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
- package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
- package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
- package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
- package/package/corpus/skills/cratis-observability/references/go.md +292 -0
- package/package/corpus/skills/cratis-observability/references/java.md +236 -0
- package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
- package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
- package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
- package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
- package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
- package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
- package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
- package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
- package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
- package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
- package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
- package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
- package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
- package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
- package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
- package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
- package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
- package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
- package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
- package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
- package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
- package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
- package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
- package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
- package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
- package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
- package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
- package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
- package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
- package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
- package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
- package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
- package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
- package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
- package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
- package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
- package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
- package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
- package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
- package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
- package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
- package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
- package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
- package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
- package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
- package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
- package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
- package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
- package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
- package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
- package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
- package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
- package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
- package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
- package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
- package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
- package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
- package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
- package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
- package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
- package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
- package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
- package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
- package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
- package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
- package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
- package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
- 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 +6 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
- package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
- package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
- package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
- package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
- package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
- package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
- package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
- package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
- package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
- package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
- package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
- package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
- package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
- package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
- package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
- package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
- package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
- package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
- package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
- package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
- package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
- package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
- package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
- package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
- package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
- package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
- package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
- package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
- package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
- package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
- package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
- package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
- package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
- package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
- package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
- package/package/profile-catalog.json +34 -2
- package/package.json +1 -1
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
- package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
- package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
- package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
- package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
- package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
- package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
- package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
- package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
- package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
- package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
- package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
- package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
- package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
- package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
- package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
- package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
- package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
- package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
- package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
- package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
- package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
- package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
- package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
- package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
- package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
- package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
- package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
- package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
- package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
- package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
- package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
- package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
- package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
- package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
- package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
- package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
- package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
- package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
- package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# Typed models and JSON in TypeScript
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Default path
|
|
6
|
+
- Compiler setup
|
|
7
|
+
- Declaring fields
|
|
8
|
+
- Value types
|
|
9
|
+
- Polymorphic members
|
|
10
|
+
- Maps keyed by an object
|
|
11
|
+
- Geospatial values
|
|
12
|
+
- Custom converters
|
|
13
|
+
- Failures
|
|
14
|
+
|
|
15
|
+
How `@cratis/fundamentals` turns JSON into class instances and back: field metadata, the value types it ships, polymorphic members, maps keyed by an object and geospatial shapes.
|
|
16
|
+
|
|
17
|
+
## Default path
|
|
18
|
+
|
|
19
|
+
TypeScript types are erased at run time, so every member that must come back as something other than plain JSON is declared with `@field`. Arc's generated proxies and its command, query and store pipelines read the same metadata; calling `JsonSerializer` yourself is for standalone code.
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { field, Guid, JsonSerializer } from '@cratis/fundamentals';
|
|
23
|
+
|
|
24
|
+
export class OrderLine {
|
|
25
|
+
@field(String) sku!: string;
|
|
26
|
+
@field(Number) quantity!: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class Order {
|
|
30
|
+
@field(Guid) id!: Guid;
|
|
31
|
+
@field(Date) placed!: Date;
|
|
32
|
+
@field(Array, { genericArguments: [OrderLine] }) lines!: OrderLine[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const order = JsonSerializer.deserialize(Order, json);
|
|
36
|
+
const text = JsonSerializer.serialize(order);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
| Method | Use |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| `JsonSerializer.serialize(value)` | Instance to JSON text |
|
|
42
|
+
| `JsonSerializer.deserialize(Type, json)` | JSON text to one instance |
|
|
43
|
+
| `JsonSerializer.deserializeArray(Type, json)` | JSON text holding an array |
|
|
44
|
+
| `JsonSerializer.deserializeFromInstance(Type, parsed)` | An already parsed object to one instance |
|
|
45
|
+
| `JsonSerializer.deserializeArrayFromInstance(Type, parsed)` | An already parsed array |
|
|
46
|
+
|
|
47
|
+
Reading rules:
|
|
48
|
+
|
|
49
|
+
- The target class is created with `new Type()` and no arguments, so it needs a parameterless constructor.
|
|
50
|
+
- Only `@field` members are read. Other properties of the JSON are dropped, except when the target type is `Object`.
|
|
51
|
+
- A member that is absent from the JSON keeps whatever the constructor or a field initializer gave it (unset when there is none); an absent array member becomes `[]`; an explicit `null` overrides a default and stays `null`.
|
|
52
|
+
- Writing includes every own property of the instance, declared with `@field` or not.
|
|
53
|
+
|
|
54
|
+
## Compiler setup
|
|
55
|
+
|
|
56
|
+
`@field` and `@derivedType` work with both decorator modes and need neither `emitDecoratorMetadata` nor a `reflect-metadata` import.
|
|
57
|
+
|
|
58
|
+
- Legacy decorators: `"experimentalDecorators": true`.
|
|
59
|
+
- Standard decorators: leave `experimentalDecorators` off. When Babel compiles the classes (as in Expo and React Native), enable standard decorators in Babel's decorators plugin as [its documentation](https://babeljs.io/docs/babel-plugin-proposal-decorators) describes.
|
|
60
|
+
|
|
61
|
+
A field decorator on a static, private or symbol-named member throws `TypeError`.
|
|
62
|
+
|
|
63
|
+
## Declaring fields
|
|
64
|
+
|
|
65
|
+
| Member | Declaration |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| Primitive | `@field(String)`, `@field(Number)`, `@field(Boolean)` |
|
|
68
|
+
| Shipped value type | `@field(Guid)`, `@field(Date)`, `@field(DateOnly)`, `@field(TimeOnly)`, `@field(TimeSpan)` |
|
|
69
|
+
| Concept | `@field(CustomerName)` |
|
|
70
|
+
| Nested class | `@field(Address)` |
|
|
71
|
+
| Array | `@field(OrderLine, { enumerable: true })` (positional `@field(OrderLine, true)`) or `@field(Array, { genericArguments: [OrderLine] })`; both forms read each element as the item type |
|
|
72
|
+
| Polymorphic member | `@field(Object, { derivatives: [CreditCard, BankTransfer] })` |
|
|
73
|
+
| Polymorphic array | `@field(Object, { enumerable: true, derivatives: [CreditCard, BankTransfer] })` |
|
|
74
|
+
| Map keyed by an object | `@field(ValueMap, { genericArguments: [PriceKey, Number] })` |
|
|
75
|
+
|
|
76
|
+
The second argument is an options object with `enumerable`, `derivatives` and `genericArguments`. The positional form `field(type, enumerable, derivatives, genericArguments)` is equivalent.
|
|
77
|
+
|
|
78
|
+
A subclass inherits the fields of its base classes, and a member it redeclares replaces the inherited declaration for that subclass only. `Fields.getFieldsForType(Type)` returns the resulting list, each entry with `name`, `type`, `enumerable`, `derivatives` and `genericArguments`.
|
|
79
|
+
|
|
80
|
+
## Value types
|
|
81
|
+
|
|
82
|
+
All travel as text. Each has a `toJSON()` that returns that text, so plain `JSON.stringify` (and a `fetch` body) writes the text. Plain `JSON.parse` or `response.json()` leaves a string; rebuild the instance with the type's `parse` (`new Date(text)` for `Date`), or declare a typed `@field` member and read it through `JsonSerializer` or Arc. `Date` is the JavaScript built-in and is not imported; the others are exported from `@cratis/fundamentals`. Import everything from the package root; the `/json` and `/geospatial` subpaths expose the same converters and shapes.
|
|
83
|
+
|
|
84
|
+
| Type | Create | JSON text | Notes |
|
|
85
|
+
| --- | --- | --- | --- |
|
|
86
|
+
| `Guid` | `Guid.parse(text)`, `Guid.as(textOrGuid)` | Canonical UUID | `Guid.empty`, `Guid.isGuid(text)`, `equals(other)`, `toString()`. `Guid.create()` uses `Math.random()`: never use it for an identity |
|
|
87
|
+
| `Date` | `new Date(...)` | ISO instant | Built-in global; compare with `getTime()` |
|
|
88
|
+
| `DateOnly` | `DateOnly.from(year, month, day)`, `DateOnly.parse('2025-03-01')`, `DateOnly.fromDate(date)` | `yyyy-MM-dd` | `year`, `month` (1 to 12), `day`, `toDate()`, `equals(other)`. `fromDate` and `toDate` use the local time zone |
|
|
89
|
+
| `TimeOnly` | `TimeOnly.from(hour, minute, second?, millisecond?)`, `TimeOnly.parse('13:45:00')` | `HH:mm:ss`, with a fraction when there is one | `hour`, `minute`, `second`, `millisecond`, `equals(other)` |
|
|
90
|
+
| `TimeSpan` | `TimeSpan.parse('1.02:30:00')` | `[-][d.]hh:mm:ss[.fffffff]` | Components and totals (below). Create one only by parsing. No `equals`: compare `ticks` |
|
|
91
|
+
|
|
92
|
+
Never compare these with `===`: two instances with the same value are different objects. Use `equals` on `Guid`, `DateOnly` and `TimeOnly`, `getTime()` on `Date` and `ticks` on `TimeSpan`.
|
|
93
|
+
|
|
94
|
+
- **`Guid.equals(other)`** compares canonical text: a `Guid` is used as-is, any other argument is converted with `toString()`, so GUID text matches and non-GUID text returns `false`. It throws on `null` or `undefined`, so guard nullable values first. The parameter is typed `object`, so turn text you hold into a `Guid` with `Guid.as(text)` (or declare a typed `@field(Guid)` member) before comparing. `Guid.as` and `Guid.parse` throw on non-GUID text, so check untrusted text with `Guid.isGuid` first.
|
|
95
|
+
- **`TimeSpan` components and totals:** `days`, `hours`, `minutes`, `seconds` (and `milliseconds`, `microseconds`, `nanoseconds`) are components: `hours` is 0 to 23 and whole days sit in `days`. Components other than `days` are unsigned, so read the sign from `ticks` or a total. `ticks`, `totalDays`, `totalHours`, `totalMinutes`, `totalSeconds` and the other totals are signed aggregates, so compare and threshold on them. `parse` rejects hours above 23 and minutes or seconds above 59, so a duration of a day or more is written with a day part (`1.02:30:00`).
|
|
96
|
+
- **`TimeSpan` fields are plain and writable:** assigning one recalculates nothing, and the text (`toString()`, `toJSON()`) is formatted from `ticks`. Build a changed duration by parsing new text, never by assigning a field.
|
|
97
|
+
|
|
98
|
+
## Polymorphic members
|
|
99
|
+
|
|
100
|
+
When a member can hold several classes, give each class a stable identifier with `@derivedType`. The writer adds `_derivedTypeId` to the object and the reader uses it to choose the class.
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
import { derivedType, field, JsonSerializer } from '@cratis/fundamentals';
|
|
104
|
+
|
|
105
|
+
export interface PaymentMethod { amount: number; }
|
|
106
|
+
|
|
107
|
+
@derivedType('credit-card')
|
|
108
|
+
export class CreditCard implements PaymentMethod {
|
|
109
|
+
@field(Number) amount!: number;
|
|
110
|
+
@field(String) cardNumber!: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@derivedType('bank-transfer')
|
|
114
|
+
export class BankTransfer implements PaymentMethod {
|
|
115
|
+
@field(Number) amount!: number;
|
|
116
|
+
@field(String) iban!: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export class Order {
|
|
120
|
+
@field(Object, { derivatives: [CreditCard, BankTransfer] })
|
|
121
|
+
payment!: PaymentMethod;
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
- An interface has no run-time presence, so list the candidates in `derivatives`.
|
|
126
|
+
- When the member is declared as a base class, `@field(BaseClass)` is enough: every `@derivedType` subclass registers itself against its base classes when its module loads. Import the modules that define the subclasses before reading.
|
|
127
|
+
- The identifier is the contract with the backend: use the same text as the C# `[DerivedType]`, keep it stable, and keep it unique per base.
|
|
128
|
+
- An identifier that matches no candidate does not fail: the member is read as the declared field type and keeps its `_derivedTypeId`.
|
|
129
|
+
- Only members are resolved. Reading the root with `JsonSerializer.deserialize(Base, json)` creates a `Base`; pick the class yourself for a polymorphic root.
|
|
130
|
+
- `@derivedType` only names the class; its members still need `@field`.
|
|
131
|
+
|
|
132
|
+
## Maps keyed by an object
|
|
133
|
+
|
|
134
|
+
A backend dictionary whose key is an object arrives as a JSON object whose property names are the key as JSON text. `ValueMap<TKey, TValue>` reads it back and looks keys up by value, not by reference.
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
import { field, ValueMap } from '@cratis/fundamentals';
|
|
138
|
+
|
|
139
|
+
export class PriceKey {
|
|
140
|
+
@field(String) sku!: string;
|
|
141
|
+
@field(String) currency!: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export class PriceList {
|
|
145
|
+
@field(ValueMap, { genericArguments: [PriceKey, Number] })
|
|
146
|
+
prices!: ValueMap<PriceKey, number>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const key = new PriceKey();
|
|
150
|
+
key.sku = 'A-100';
|
|
151
|
+
key.currency = 'EUR';
|
|
152
|
+
const price = priceList.prices.get(key);
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
| Member | Behavior |
|
|
156
|
+
| --- | --- |
|
|
157
|
+
| `set(key, value)` | Adds, or replaces the entry whose key is equal; returns the map |
|
|
158
|
+
| `get(key)` | The value, or `undefined` |
|
|
159
|
+
| `entries()` | Iterates `[key, value]` pairs in insertion order |
|
|
160
|
+
|
|
161
|
+
Object keys are equal when their JSON is equal, so property order matters: build a lookup key with the same members in the same order as the class declares them. Without `genericArguments` the map is read back empty.
|
|
162
|
+
|
|
163
|
+
## Geospatial values
|
|
164
|
+
|
|
165
|
+
Import from `@cratis/fundamentals/geospatial` (also exported from the package root). Longitude comes first.
|
|
166
|
+
|
|
167
|
+
| Type | Construct | JSON |
|
|
168
|
+
| --- | --- | --- |
|
|
169
|
+
| `Point` | `new Point(longitude, latitude)` | `{"type":"Point","coordinates":[lon,lat]}` |
|
|
170
|
+
| `LineString` | `new LineString(points)`, at least 2 points | `{"type":"LineString","coordinates":[[lon,lat],…]}` |
|
|
171
|
+
| `LinearRing` | `new LinearRing(points)`, at least 4 points, the last repeating the first | Used only inside a polygon |
|
|
172
|
+
| `Polygon` | `new Polygon(shell, holes?)` | `{"type":"Polygon","coordinates":[[shell…],[hole…]]}` |
|
|
173
|
+
|
|
174
|
+
Declare a member with `@field(Point)`, `@field(LineString)` or `@field(Polygon)`. `LineString` and `LinearRing` throw from the constructor when they have too few points; closing the ring is your responsibility, and the backend rejects an open one.
|
|
175
|
+
|
|
176
|
+
## Custom converters
|
|
177
|
+
|
|
178
|
+
To give a class of your own a non-object JSON form, extend `JsonConverter<T>` and register one instance at startup:
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import { Constructor, JsonConverter, JsonSerializer } from '@cratis/fundamentals';
|
|
182
|
+
|
|
183
|
+
class MoneyJsonConverter extends JsonConverter<Money> {
|
|
184
|
+
get type(): Constructor<Money> { return Money; }
|
|
185
|
+
read(value: string): Money { return Money.parse(value); }
|
|
186
|
+
write(value: Money): string { return value.toString(); }
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
JsonSerializer.registerConverter(new MoneyJsonConverter());
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
A converter is chosen by exact type, and registering one for a type that already has one replaces it. Converters for the value types and geospatial shapes above are registered already. A concept is never offered to a converter: it is unwrapped to its value first.
|
|
193
|
+
|
|
194
|
+
## Failures
|
|
195
|
+
|
|
196
|
+
| Symptom | Cause | Fix |
|
|
197
|
+
| --- | --- | --- |
|
|
198
|
+
| A member is a plain object or a string instead of a class instance | No `@field`, or the wrong type in it | Declare the member with its run-time type |
|
|
199
|
+
| A polymorphic member comes back as the base type | The subclass module was not imported, the identifier differs from the backend's, or `derivatives` omits it | Import it, align the identifier, or list it |
|
|
200
|
+
| `Derived type identifier '…' is already registered for '…'` | Two different classes use one identifier under the same base | Give each a unique identifier |
|
|
201
|
+
| `Not a Guid.`, `Invalid DateOnly format`, `Invalid TimeOnly format`, `Invalid TimeSpan format` | The text is not the wire format in the Value types table | Fix the payload or the declared type |
|
|
202
|
+
| A `ValueMap` lookup returns `undefined` for a key that exists | The lookup key's members are in a different order, or the key class has no `@field` members | Build the key like the declared class |
|
|
203
|
+
| A console warning at load about more than one copy of the package | The package was loaded twice: two installs (even of the same release), or one install reached as both ESM and CommonJS. Converters registered on one copy do not reach the other | Deduplicate the dependency and load it through one module format |
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Concepts in TypeScript
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Declare
|
|
6
|
+
- Event-source identity
|
|
7
|
+
- How it travels
|
|
8
|
+
- Standalone serialization
|
|
9
|
+
- Validation
|
|
10
|
+
- Protected values
|
|
11
|
+
- Gaps
|
|
12
|
+
|
|
13
|
+
## Declare
|
|
14
|
+
|
|
15
|
+
A concept is a class extending `ConceptAs<T>` from `@cratis/fundamentals`, with a static `valueType` naming the wrapped runtime type: `String`, `Number`, `Boolean`, `Guid`, `Date`, `DateOnly`, `TimeOnly` or `TimeSpan`. TypeScript erases the generic argument, so `valueType` is the only runtime record of it. Arc requires it on every concept, string-backed ones included, and throws when a concept field lacks it.
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { randomUUID } from 'node:crypto';
|
|
19
|
+
import { ConceptAs, Guid } from '@cratis/fundamentals';
|
|
20
|
+
|
|
21
|
+
export class CustomerId extends ConceptAs<Guid> {
|
|
22
|
+
static readonly valueType = Guid;
|
|
23
|
+
static create(): CustomerId { return new CustomerId(Guid.parse(randomUUID())); }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class CustomerName extends ConceptAs<string> {
|
|
27
|
+
static readonly valueType = String;
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Never generate an identity with `Guid.create()`: it draws from `Math.random()`. Generation strategies are in `cratis-fundamentals-name-value`.
|
|
32
|
+
|
|
33
|
+
Read the wrapped value with `.value` or `valueOf()`; `toString()` returns its text (`String(value)`), which for a `Guid` is the canonical string. Declare every concept member with `@field(CustomerName)`, and a list of concepts with `@field(Array, { genericArguments: [CustomerName] })`, so Arc, Chronicle and the stores know its runtime type.
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
@command()
|
|
37
|
+
export class RegisterCustomer {
|
|
38
|
+
@key() @field(CustomerId) id!: CustomerId;
|
|
39
|
+
@field(CustomerName) name!: CustomerName;
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Outside Arc commands, Fundamentals also supports exporting `type CustomerName = CustomerNameConcept | string` so callers may assign either; it is an assignment convenience, not nominal type safety. Pass the class, never the union, to `@field`.
|
|
44
|
+
|
|
45
|
+
## Event-source identity
|
|
46
|
+
|
|
47
|
+
There is no event-source concept type: the identity is whichever command member Arc resolves. The event source is, in order: the value the handler returns through `eventSourceIdResponse(...)`, the command's `getEventSourceId()`, its `getKey()` or else its `@key()` member, and otherwise a new random UUID. A concept wrapping a primitive or a `Guid` is accepted and its text becomes the id; any other object throws.
|
|
48
|
+
|
|
49
|
+
`@subject()` (from `@cratis/chronicle`) or a `getSubject()` method sets only the compliance subject, the person the event's personal data belongs to. It does not route events; without it the subject is the event source.
|
|
50
|
+
|
|
51
|
+
## How it travels
|
|
52
|
+
|
|
53
|
+
| Surface | Behavior |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| JSON over HTTP | A `@field(Concept)` member is decoded from and encoded to the bare value; an invalid UUID fails binding with a `malformedRequest` result. |
|
|
56
|
+
| OpenAPI | A concept is described as the value it wraps; concept validators are not schema constraints. |
|
|
57
|
+
| Chronicle events | Event content is the bare value. A reactor receives the parsed JSON, so a concept property arrives as its primitive, not as a concept instance. |
|
|
58
|
+
| MongoDB | A concept is stored as its wrapped value (a `Guid` as standard UUID binary) and rebuilt as the concept class on read. |
|
|
59
|
+
| SQL (Drizzle) | Declare the column with `conceptCodec(Type, kind, dialect)` from `@cratis/arc.drizzle`, wrapped in `pgColumn`, `mysqlColumn` or `sqliteColumn`. `ConceptCodecKind.String` is `text`; `ConceptCodecKind.Number` is a finite double; `ConceptCodecKind.Guid` is the dialect's UUID column (`uuid`, `char(36)` or `text`). The kind must match `valueType`. For an indexed or key MySQL string column pass a fourth argument, the `varchar` length (1 to 65535). |
|
|
60
|
+
| Generated proxies | A concept extending `ConceptAs<T>` directly is generated as its value type (`Guid` for a `Guid` concept, which travels as text). A concept extending another concept or a generic intermediate class becomes an empty model class unless you pass `--scalar-concept-subclasses` (programmatic `scalarConceptSubclasses: true`). |
|
|
61
|
+
|
|
62
|
+
## Standalone serialization
|
|
63
|
+
|
|
64
|
+
Outside Arc, `JsonSerializer.serialize(instance)` and `JsonSerializer.deserialize(Type, json)` (and `deserializeArray`) from `@cratis/fundamentals` convert typed models. A concept is written as its inner value wherever it is reached, in arrays and map values too. Reading rebuilds a concept instance only from the `@field` metadata of the declaring class, or when the concept is the target type; with `valueType` the inner value is converted first (a `Guid` from its text), without it the raw JSON value is wrapped as is, so a UUID stays a string.
|
|
65
|
+
|
|
66
|
+
`JsonSerializer.registerConverter` never reaches a concept, which is always unwrapped first; register a converter for the wrapped type instead.
|
|
67
|
+
|
|
68
|
+
For `@field` declarations, the shipped value types (`Guid`, `DateOnly`, `TimeOnly`, `TimeSpan`), polymorphic members (`@derivedType`), `ValueMap`, geospatial values and custom converters, read [Typed models and JSON](typescript-serialization.md).
|
|
69
|
+
|
|
70
|
+
Keep one resolved copy of `@cratis/fundamentals`. A second copy is reported once at load. Values still cross the boundary, because concepts are recognized by a type key, but `instanceof` against the other copy's classes is false and a converter registered on one copy does not reach the other.
|
|
71
|
+
|
|
72
|
+
## Validation
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import { ConceptValidator, validator } from '@cratis/arc.core';
|
|
76
|
+
|
|
77
|
+
@validator(CustomerName)
|
|
78
|
+
export class CustomerNameValidator extends ConceptValidator<CustomerName> {
|
|
79
|
+
constructor() {
|
|
80
|
+
super();
|
|
81
|
+
this.ruleFor(name => name.value).notEmpty();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Arc runs it on every `CustomerName` in commands, query arguments and nested models, arrays included. `.ignoreConceptRules()` on an owner's rule chain skips the concept validator for that direct member only.
|
|
87
|
+
|
|
88
|
+
## Protected values
|
|
89
|
+
|
|
90
|
+
- Personal data: `@pii()` (from `@cratis/chronicle`) on the concept class; every event field of that type is personal data.
|
|
91
|
+
- An operational secret: `@encrypted()` on the concept class, with `EncryptionScope.Namespace` or `EncryptionScope.Global` as the first argument when one key should be shared.
|
|
92
|
+
- A command input that must not reach the causation chain: `@notAudited()` (from `@cratis/arc.chronicle`) on the command field; it is a field decorator, not a class decorator.
|
|
93
|
+
- `@pii()` and `@encrypted()` on the `eventSourceId` property throw.
|
|
94
|
+
|
|
95
|
+
## Gaps
|
|
96
|
+
|
|
97
|
+
- No implicit conversion: construct with `new CustomerName(text)` and read `.value`.
|
|
98
|
+
- No event-source concept type; see Event-source identity.
|
|
99
|
+
- No Cratis identity generator; see `cratis-fundamentals-name-value`.
|
|
100
|
+
- A concept used as a map or set key in client code must be keyed by `.toString()`, because two instances with the same value are different objects.
|
|
@@ -1,20 +1,122 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-fundamentals-name-value
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when choosing how a new identity, code, token or reference number is produced (random or time-ordered UUID, ULID, TypeID, NanoID, random bytes, a pattern with check digits, a digest), making a concept generate its own value, letting a command generate a value on the server and pinning it in specs, or deciding where a concept shared by several slices lives. Not for declaring a concept or fixing how it serializes, binds or persists (use cratis-fundamentals-concept).
|
|
4
|
+
license: MIT
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
#
|
|
7
|
+
# Naming and generating values
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
## Contents
|
|
9
10
|
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
11
|
+
- Who chooses the value
|
|
12
|
+
- How generation behaves
|
|
13
|
+
- Default path
|
|
14
|
+
- Choose a strategy
|
|
15
|
+
- Capability catalog
|
|
16
|
+
- Where a shared value lives
|
|
17
|
+
- Done when
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
A concept names a value; this skill decides **who chooses a new value, how it is produced and where a shared one lives**. Declaring the concept and how it travels belong to `cratis-fundamentals-concept`. Names such as `OrderId`, `InviteCode` and `ApiKey` are illustrative.
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
## Who chooses the value
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
| The value is | Do this |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| A reference to existing state (the order to cancel) | A command input. Never generate a replacement: the caller's choice is the point. |
|
|
26
|
+
| New and owned by the application (the identity of what is being created, a code, a token) | Generate it on the server through the concept's own factory. |
|
|
27
|
+
| Derived from an input, the same every time | A name-based UUID or a digest, never a random value. |
|
|
28
|
+
| A gap-free number (invoice numbers) | A coordinated counter. No generator produces consecutive values. |
|
|
29
|
+
|
|
30
|
+
Whether an identity is an event-source identity or a plain one is a declaration choice (`cratis-fundamentals-concept`); generation is the same for both.
|
|
31
|
+
|
|
32
|
+
## How generation behaves
|
|
33
|
+
|
|
34
|
+
- **Randomness.** The Fundamentals generators use cryptographically secure randomness. Where an SDK has no generator, use the platform's cryptographic random source, never a general-purpose pseudo-random function, because identities and codes must not be predictable.
|
|
35
|
+
- **The concept owns the strategy.** A self-generating concept declares a static factory, either plain or taking a generation context. Call sites ask the concept for a new value instead of repeating the strategy, so the format lives in one place.
|
|
36
|
+
- **Generation context.** The current instant and the tenant (the default tenant is the zero UUID as text). Context forms take their time from the operation, so every value made during one operation carries the same instant and specs can fix it; context-free forms read the clock at the call. A context without a time is rejected, and time-ordered values reject times before the Unix epoch. A pattern with a date segment requires a context and never reads today's date by itself.
|
|
37
|
+
- **Time-ordered values** reveal their creation time and are not monotonic within one millisecond.
|
|
38
|
+
- **Server-generated command values (C# only).** A handler parameter marked as generated is not part of the request or the generated client proxy. The host creates it only after authorization, input validation and the command's provide step have let the command continue, so the value is never evidence for them. It uses the context form when the concept has both factories, with the command's received time and tenant. The value must pass the concept's validator; any failing rule, at any severity, is a server fault returned as an exception result, not a validation failure. Accepted values are captured on the command context in resolution order. With the Chronicle integration a generated append target is guarded by default: events appended to it require the whole event source to be empty, a collision is a concurrency violation, and the handler is not rerun. Other SDKs never guard automatically; where a command can return events with a concurrency scope, require an empty source explicitly whenever a generated value with few random bits becomes the event source. Your language reference shows the scope or the alternative.
|
|
39
|
+
- **Specs (C# only).** Command scenarios are strict: an unpinned generated parameter fails the command unless the scenario allows generation. A pin is the concept value (not its primitive), matched by case-sensitive name, and still passes validation. To test the factory itself, allow generation and fix the scenario's clock and tenant.
|
|
40
|
+
- **Limits of generation.** It does not make a command idempotent (a retry can choose a different value), does not prove a value is absent from storage, and is not evidence for authorization; a short code proves nothing without an expiry and a check. A generator is not an allocator: it never yields consecutive or gap-free numbers. A pattern is a format, not a secret, and a check digit catches typing mistakes, not forgery.
|
|
41
|
+
|
|
42
|
+
## Default path
|
|
43
|
+
|
|
44
|
+
1. Make the identity concept self-generating with a random UUID. Choose another strategy only for a stated need in "Choose a strategy".
|
|
45
|
+
2. Ask for the new value as a server-generated handler parameter and return it as the command response. (C# only; where the SDK has none, call the concept's factory inside the handler and return the value.)
|
|
46
|
+
3. In specs, pin the value by name and assert that the response and the appended event use it. (C# only; where pins do not exist, read the value from the response and assert its format.)
|
|
47
|
+
4. Check: the request contract has no field for the generated value, and the spec asserts the exact value or the format.
|
|
48
|
+
|
|
49
|
+
Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Node server `package.json` → typescript, `*.kt` → kotlin, `*.java` → java, `go.mod` → go, `mix.exs` → elixir); only the project's languages are installed.
|
|
50
|
+
|
|
51
|
+
Python has no application SDK: call the owning service's command through its HTTP API and take the generated value from the command response.
|
|
52
|
+
|
|
53
|
+
## Choose a strategy
|
|
54
|
+
|
|
55
|
+
| Need | Strategy | Trade-off |
|
|
56
|
+
| --- | --- | --- |
|
|
57
|
+
| Ordinary entity identity | Random UUID | Default; reveals nothing, does not sort |
|
|
58
|
+
| UUID column that should append to indexes | Time-ordered UUID (v7) | Reveals creation time |
|
|
59
|
+
| Sortable string identity | ULID | 80 random bits; reveals creation time |
|
|
60
|
+
| Identity that names its kind in logs and URLs | TypeID with a prefix | Time-ordered; prefix rules apply |
|
|
61
|
+
| Same input must give the same identity | Name-based UUID (v5) | Guessable by anyone who knows namespace and name |
|
|
62
|
+
| Compact URL-safe string | NanoID with defaults | 21 characters, 126 random bits |
|
|
63
|
+
| Code people read or type | Pattern, or NanoID with a look-alike-free alphabet | Few random bits: back it with a uniqueness check; never an identity |
|
|
64
|
+
| Numeric ticket | Integer in an inclusive range | Not a sequence, low entropy |
|
|
65
|
+
| Token, API key, reset link | 32 random bytes | Secret: store only a digest for presented tokens; keep it out of logs and event payloads |
|
|
66
|
+
| Recoverable secret (TOTP seed, key material) | Random bytes, base32 for typing | Keep in protected storage, never in an event |
|
|
67
|
+
| Fingerprint or stored verifier of a high-entropy token | SHA-256 digest | Not for passwords, PINs or short codes; a digest of personal data is still personal data |
|
|
68
|
+
|
|
69
|
+
Shortening a value lowers its random bits; the chance of any collision reaches 1% at about √(2 × 2^bits × ln(1/0.99)) values.
|
|
70
|
+
|
|
71
|
+
## Capability catalog
|
|
72
|
+
|
|
73
|
+
Not every SDK ships every item below. Your language reference names the exact API, states what the SDK lacks and gives the platform equivalent to use instead.
|
|
74
|
+
|
|
75
|
+
**Generators**:
|
|
76
|
+
|
|
77
|
+
- **Random UUID**: RFC 9562 version 4. The default identity.
|
|
78
|
+
- **Time-ordered UUID**, with or without a context: version 7. Index-friendly UUID keys.
|
|
79
|
+
- **Name-based UUID** from a namespace UUID and a name (C# only): version 5, deterministic; canonicalize the name first.
|
|
80
|
+
- **ULID**, with or without a context: 26 uppercase Crockford base32 characters. Sortable string identity.
|
|
81
|
+
- **TypeID** from a prefix, with or without a context: prefix (empty, or up to 63 lowercase letters and underscores starting and ending with a letter), `_`, then 26 lowercase characters encoding a UUID v7. Self-describing identity.
|
|
82
|
+
- **NanoID**: size 1–256 (default 21) over an alphabet of 2–256 distinct printable ASCII characters (default URL-safe 64). Short codes.
|
|
83
|
+
- **Random bytes**: 1–512 bytes as URL-safe base64 without padding (default), lowercase hex, or uppercase base32 without padding. Secrets.
|
|
84
|
+
- **Integer** between an inclusive minimum and maximum (64-bit). Numeric tickets.
|
|
85
|
+
- **Pattern**, with or without a context, optionally with a check algorithm. Readable reference numbers.
|
|
86
|
+
- **Check validation** of a value against an algorithm. Validate received or stored codes; it requires exact trailing check digits.
|
|
87
|
+
- **SHA-256 digest** of text (C# only): 64 lowercase hex characters of the UTF-8 bytes. Fingerprints and token verifiers.
|
|
88
|
+
|
|
89
|
+
**Pattern language**: `#` digit; `?` uppercase letter; `*` digit or uppercase letter; `[A-F0-9]` a character class; `{n}` or `{m,n}` repeats the preceding token (1 ≤ m ≤ n ≤ 64); `{yyyy}`, `{yy}`, `{MM}`, `{dd}` a UTC date segment from the context; any other printable ASCII is literal. Outside a class escape `# ? * [ ] { } \` with a backslash; inside a class escape `]`, `-` and `\`. A pattern needs at least one random token (`#`, `?`, `*` or a class), but a one-character class such as `[A]` satisfies that rule while adding no randomness: count only tokens with several choices when judging how many values a pattern can produce. The result is at most 256 characters including check digits, and every distinct string is equally likely. Building the generator is bounded too: at most 2,048 unrolled character positions, 10,000 distinct automaton states and 100,000,000 operations, so long variable repeats or classes combined with a check algorithm can be rejected even under 256 characters. An invalid pattern or one over a limit is rejected, never silently changed.
|
|
90
|
+
|
|
91
|
+
**Check algorithms**: none (default); Luhn (one digit); Mod11 (one digit; payloads whose check would be 10 are excluded before sampling); Mod97 (two digits, ISO 7064 MOD 97-10). Every ASCII digit in the payload counts, including digits in literals and dates. A check digit catches typing mistakes; it is neither authentication nor uniqueness.
|
|
92
|
+
|
|
93
|
+
**Generation context**: an instant and a tenant, plus a default-tenant constant.
|
|
94
|
+
|
|
95
|
+
**Self-generating concept**: a plain static factory, or one taking the generation context. Your language reference names the contract or convention; only C# enforces the factory at compile time and calls it for you.
|
|
96
|
+
|
|
97
|
+
**Server-generated command values** (C# only; other SDKs generate inside the handler):
|
|
98
|
+
|
|
99
|
+
- Mark a handler parameter as generated; the name defaults to the parameter name. Give an explicit name only when specs must survive a parameter rename.
|
|
100
|
+
- Freshness: guarded (default) or unguarded. Choose unguarded only when the generated value targets a destination that may already have events.
|
|
101
|
+
- Captures on the command context: ordered entries of order, name, type, value and freshness, plus a typed lookup by name.
|
|
102
|
+
- Failures: an invalid declaration or no factory for the type (the handler cannot be built); a value rejected by its concept rules; a missing received time; a guarded target that already has events; another concurrency scope supplied for a guarded target.
|
|
103
|
+
- Compile-time analyzers report invalid declarations, a provide step supplying a generated type, a concept with both factories, an aggregate for the command's own key next to a generated append target, and inline factory calls that could become generated parameters.
|
|
104
|
+
|
|
105
|
+
**Spec controls** (C# only): pin a value by name; pin a value for a nested command type; allow generation; fix the clock; fix the tenant; read the captured values. Configure all of them before the first execution. Spec failures: an unpinned value in a strict scenario; a pin of the wrong type; configuring after the first execution.
|
|
106
|
+
|
|
107
|
+
**Keep a secret off the causation chain**: where the SDK records command values in the causation of appended events, a not-audited marker withholds a value; where it records none automatically, never add a secret to causation yourself. Your language reference states which applies and where the marker goes. The marker does not encrypt and does not cover event payloads, responses or logs; personal data marked for compliance is already withheld. Encrypting stored values belongs to `cratis-chronicle-protect-personal-data`.
|
|
108
|
+
|
|
109
|
+
## Where a shared value lives
|
|
110
|
+
|
|
111
|
+
- Keep a concept with the slice that owns its meaning. When a second slice uses the **same meaning**, not merely the same shape, move it one level up: to the feature when slices of one feature share it, to the module when features share it. Never a technical `Concepts` folder.
|
|
112
|
+
- Promote a value when its meaning, rules, protection or format must travel with it, and reuse an existing shared concept that already owns that meaning.
|
|
113
|
+
- Two slices that both hold "a name" usually own two concepts.
|
|
114
|
+
- Use the factories, conversions and sentinels a concept actually provides; do not add a factory or a "not set" value to every concept by habit.
|
|
115
|
+
- Changing a generation strategy changes only new values; old values stay valid only if every reader still accepts their format. Changing the wrapped type is a schema change (`cratis-fundamentals-concept`).
|
|
116
|
+
|
|
117
|
+
## Done when
|
|
118
|
+
|
|
119
|
+
- Every new identity, code or token is produced by its concept's factory with a strategy chosen from the table above, and no caller-selected reference is generated.
|
|
120
|
+
- No value that must be unguessable comes from a non-cryptographic source.
|
|
121
|
+
- Specs fix the generated value (or the clock and tenant) and assert the exact value or its format.
|
|
122
|
+
- Each shared concept sits at the lowest level that contains every slice using its meaning.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# Specs for generated values in C#
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Setup
|
|
6
|
+
- Pin a generated value
|
|
7
|
+
- Keep scenarios strict or allow generation
|
|
8
|
+
- Fix the clock and tenant
|
|
9
|
+
- Pin a nested command's value
|
|
10
|
+
- Finish configuration before the first execution
|
|
11
|
+
- Prove a generated-identifier collision
|
|
12
|
+
- Prove a secret stays off causation
|
|
13
|
+
- Test a factory without Arc
|
|
14
|
+
- Gotchas
|
|
15
|
+
|
|
16
|
+
The examples reuse `PlaceOrder`, `OrderId`, `CustomerId`, `OrderPlaced` and `ApiKey` from the C# reference; the names are illustrative. Specs follow the Cratis specification style (`Specification`, `Establish`, `Because`, `Destroy`, `[Fact]`).
|
|
17
|
+
|
|
18
|
+
## Setup
|
|
19
|
+
|
|
20
|
+
- `Cratis.Arc.Testing`, namespace `Cratis.Arc.Testing.Commands`: `CommandScenario<TCommand>`, pins, `AllowGeneration()`, `Clock()`, `Tenant()`, `GeneratedValues`.
|
|
21
|
+
- `Cratis.Arc.Chronicle.Testing`, namespace `Cratis.Arc.Chronicle.Testing.Commands`: `ShouldHaveAppendedEvent`, `Given.ForEventSource(id).Events(...)`, `EventLog`. It is discovered automatically by the scenario.
|
|
22
|
+
- `scenario.Execute(command)` returns a `CommandResult`; failures, a missing pin included, come back in the result and are not thrown.
|
|
23
|
+
|
|
24
|
+
## Pin a generated value
|
|
25
|
+
|
|
26
|
+
```csharp
|
|
27
|
+
using Cratis.Arc.Chronicle.Testing.Commands;
|
|
28
|
+
using Cratis.Arc.Commands;
|
|
29
|
+
using Cratis.Arc.Testing.Commands;
|
|
30
|
+
using Cratis.Specifications;
|
|
31
|
+
using Xunit;
|
|
32
|
+
|
|
33
|
+
public class with_a_pinned_order_id : Specification
|
|
34
|
+
{
|
|
35
|
+
readonly CommandScenario<PlaceOrder> _scenario = new();
|
|
36
|
+
readonly CustomerId _customer = new("cus_01m4t7txm0hrn5rwemy2dkwtgq");
|
|
37
|
+
readonly OrderId _orderId = new(Guid.Parse("aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee"));
|
|
38
|
+
CommandResult _result = null!;
|
|
39
|
+
|
|
40
|
+
void Establish() => _scenario.PinGeneratedValue("orderId", _orderId);
|
|
41
|
+
|
|
42
|
+
async Task Because() => _result = await _scenario.Execute(new PlaceOrder(_customer));
|
|
43
|
+
|
|
44
|
+
void Destroy() => _scenario.Dispose();
|
|
45
|
+
|
|
46
|
+
[Fact] void should_succeed() => _result.ShouldBeSuccessful();
|
|
47
|
+
[Fact] void should_return_the_pinned_id() => ((CommandResult<OrderId>)_result).Response.ShouldEqual(_orderId);
|
|
48
|
+
[Fact] Task should_place_the_order_on_the_pinned_id() =>
|
|
49
|
+
_scenario.ShouldHaveAppendedEvent<PlaceOrder, OrderPlaced>(_orderId, @event => @event.Customer == _customer);
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- `PinGeneratedValue(name, value)`: the name is case-sensitive and is the attribute's name, or the parameter name when the attribute has none.
|
|
54
|
+
- Pass the concept itself, not its underlying `Guid` or string. A wrong type or `null` fails execution with `PinnedGeneratedValueHasWrongType`; its message names the command, parameter and types, never the value.
|
|
55
|
+
- A pin bypasses `New()` but still passes the concept's validation, and is captured only after that succeeds.
|
|
56
|
+
- A pin supplies the same value on every execution of the scenario; it is not a queue.
|
|
57
|
+
|
|
58
|
+
## Keep scenarios strict or allow generation
|
|
59
|
+
|
|
60
|
+
Scenarios are strict: an unpinned generated parameter fails the command with `GeneratedValueNotPinned` as an exception result (`ShouldNotBeSuccessful()`, `ShouldHaveExceptions()`), not a validation failure. Its message shows the `PinGeneratedValue("orderId", …)` call to add.
|
|
61
|
+
|
|
62
|
+
When the exact value does not matter, call `AllowGeneration()` before executing. It covers every unpinned value in the scenario, nested commands included; explicit pins still win.
|
|
63
|
+
|
|
64
|
+
```csharp
|
|
65
|
+
var scenario = new CommandScenario<PlaceOrder>().AllowGeneration();
|
|
66
|
+
var first = await scenario.Execute(new PlaceOrder(customer));
|
|
67
|
+
var second = await scenario.Execute(new PlaceOrder(customer));
|
|
68
|
+
|
|
69
|
+
scenario.GeneratedValues.All<OrderId>("orderId").Count.ShouldEqual(2);
|
|
70
|
+
scenario.GeneratedValues.Last<OrderId>("orderId").ShouldEqual(((CommandResult<OrderId>)second).Response);
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
- `GeneratedValues.Last<T>(name)` returns the latest capture with that name and declared type and throws when there is none. `All<T>(name)` returns a read-only snapshot in resolution order, possibly empty.
|
|
74
|
+
- Both include validated pins and nested-command captures. Read with the parameter's declared type.
|
|
75
|
+
|
|
76
|
+
## Fix the clock and tenant
|
|
77
|
+
|
|
78
|
+
To test the factory rather than a fixed value, fix time and tenant and allow generation:
|
|
79
|
+
|
|
80
|
+
```csharp
|
|
81
|
+
var receivedAt = new DateTimeOffset(2026, 3, 2, 9, 0, 0, TimeSpan.Zero);
|
|
82
|
+
var scenario = new CommandScenario<ReserveTicket>()
|
|
83
|
+
.Clock(receivedAt)
|
|
84
|
+
.Tenant(new TenantId("north"))
|
|
85
|
+
.AllowGeneration();
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`ReserveTicket` is an illustrative command with a generated `TicketNumber`; assert `Value.StartsWith("T-2026-")` and `HasValidCheckDigit`.
|
|
89
|
+
|
|
90
|
+
- `Clock(instant)` replaces the scenario's `TimeProvider`: `ReceivedAt`, injected `TimeProvider.GetUtcNow()` and `GetLocalNow()` return that instant. Timers, elapsed-time measurement, `DateTimeOffset.UtcNow` and `TimeProvider.System` stay real.
|
|
91
|
+
- `Tenant(tenant)` (`TenantId` from `Cratis.Arc.Tenancy`) scopes execution and validation to that tenant and restores the caller's tenant afterwards.
|
|
92
|
+
- Both apply to nested commands and stay local to the scenario.
|
|
93
|
+
- A fixed clock does not fix the random part of UUID v7, ULID or TypeID: assert the time part and format, or pin the whole concept.
|
|
94
|
+
- `Clock(default)` does not mean the system clock: context generation then fails with `MissingGenerationTime`.
|
|
95
|
+
|
|
96
|
+
## Pin a nested command's value
|
|
97
|
+
|
|
98
|
+
Pins belong to a command type and a name. For a command invoked from the scenario's command through `ICommandPipeline`, name both types:
|
|
99
|
+
|
|
100
|
+
```csharp
|
|
101
|
+
_scenario.PinGeneratedValue<CheckOutCart, PlaceOrder>("orderId", _orderId);
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Here `_scenario` is a `CommandScenario<CheckOutCart>`. The child's pin leaves a same-named parameter on the parent alone. Captures from both commands appear in `GeneratedValues` in resolution order; give them distinct names when `Last` and `All` must tell them apart.
|
|
105
|
+
|
|
106
|
+
## Finish configuration before the first execution
|
|
107
|
+
|
|
108
|
+
- After the first `Execute`, even a failed one or one without generated parameters, pins, `AllowGeneration()`, `Clock()` and `Tenant()` throw `GeneratedValuesMustBePinnedBeforeExecution`. Use a new scenario for a different configuration.
|
|
109
|
+
- `Validate` neither generates nor freezes pins, but it initializes services, so a later `Clock()` throws `ScenarioClockMustBeConfiguredBeforeInitialization`. Configure the clock before validating too.
|
|
110
|
+
|
|
111
|
+
## Prove a generated-identifier collision
|
|
112
|
+
|
|
113
|
+
A guarded generated parameter makes a typed scenario use its in-process event log for decisions; seed that log and pin the occupied id.
|
|
114
|
+
|
|
115
|
+
```csharp
|
|
116
|
+
using Cratis.Arc.Validation;
|
|
117
|
+
|
|
118
|
+
await using var scenario = new CommandScenario<PlaceOrder>();
|
|
119
|
+
var occupied = new OrderId(Guid.Parse("fb6dd43a-b161-44b1-9baa-7b2e4a071680"));
|
|
120
|
+
scenario.PinGeneratedValue("orderId", occupied);
|
|
121
|
+
scenario.Given.ForEventSource(occupied).Events(new OrderPlaced(customer));
|
|
122
|
+
var tailBefore = await scenario.EventLog.GetTailSequenceNumber();
|
|
123
|
+
|
|
124
|
+
var result = await scenario.Execute(new PlaceOrder(customer));
|
|
125
|
+
|
|
126
|
+
result.ValidationResults.Single().Reason.ShouldEqual(ValidationResultReason.ConcurrencyViolation);
|
|
127
|
+
result.ValidationResults.Single().ReasonDetail.ShouldEqual("GeneratedIdentifierCollision");
|
|
128
|
+
(await scenario.EventLog.GetTailSequenceNumber()).ShouldEqual(tailBefore);
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
- Seed the same id in another stream or with another event type too when the command routes its events; that history must still collide.
|
|
132
|
+
- A `CommandScenario<object>` cannot select this from declarations: call `EnableDecisionReads()` before seeding or executing. Seeding a pinned guarded id without it fails with `GeneratedIdentifierCollisionRequiresDecisionReads`.
|
|
133
|
+
- `Unguarded` parameters enable no freshness protection, so there is no collision to prove.
|
|
134
|
+
|
|
135
|
+
## Prove a secret stays off causation
|
|
136
|
+
|
|
137
|
+
Read the causation of the appended event; `RevokeApiKey(CustomerId Customer, ApiKey Key)` is an illustrative command.
|
|
138
|
+
|
|
139
|
+
```csharp
|
|
140
|
+
using Cratis.Arc.Chronicle.Testing.Commands;
|
|
141
|
+
using Cratis.Chronicle.EventSequences;
|
|
142
|
+
|
|
143
|
+
var result = await scenario.Execute(new RevokeApiKey(customer, apiKey));
|
|
144
|
+
var appended = (List<AppendedEventWithResult>)scenario.Context[ChronicleCommandScenarioExtender.AppendedEventsKey];
|
|
145
|
+
var causation = appended.Single().Event.Context.Causation.Last().Properties;
|
|
146
|
+
|
|
147
|
+
causation.ContainsKey("key").ShouldBeFalse();
|
|
148
|
+
causation.Values.Any(value => value.Contains(apiKey.Value, StringComparison.Ordinal)).ShouldBeFalse();
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
This proves causation only, which is all `[NotAudited]` covers; payloads, responses and logs need their own checks.
|
|
152
|
+
|
|
153
|
+
## Test a factory without Arc
|
|
154
|
+
|
|
155
|
+
- Behaviour that receives a value: construct the concept from a known literal and pass it in. There is no seed for `GenerateValue`.
|
|
156
|
+
- The contract: `static T Create<T>() where T : IGeneratable<T> => T.New();` then assert length and alphabet, never an exact random value.
|
|
157
|
+
- A context factory: call `TicketNumber.New(new GenerationContext(fixedInstant, GenerationContext.DefaultTenant))` and assert the date part and `HasValidChecksum`.
|
|
158
|
+
- Input-driven factories need no pin: assert the exact `UuidV5` result for a fixed namespace and name, or the exact `Sha256` digest of fixed text.
|
|
159
|
+
|
|
160
|
+
## Gotchas
|
|
161
|
+
|
|
162
|
+
- Pin with literals (`new OrderId(Guid.Parse("…"))`, `new CustomerId("cus_…")`). A pin built from `OrderId.New()` changes every run and cannot be recovered when a Screenplay model is generated from the specs; computed, repeated, conditional or nested pins and `AllowGeneration()` also leave the scenario out of that model.
|
|
163
|
+
- A pin's text must match the strategy's shape (TypeID prefix and suffix, ULID case, NanoID alphabet and size) if the specs feed Screenplay; Arc itself only applies concept validation.
|
|
164
|
+
- Re-pinning an occupied guarded id keeps failing; that is the collision spec, not a retry.
|
|
165
|
+
- Do not log `GeneratedValues` captures in specs that handle secrets.
|