@cratis/pi 8.2.2 → 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/scripts/cratis-cleanup-worktrees.sh +36 -24
- package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
- 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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Mapping operations
|
|
2
|
+
|
|
3
|
+
Use these fragments inside the read model (or `use Cratis.Chronicle.Projections.Projection, model: Route` in a separate module). Declare all target fields in the model struct. Matching properties auto-map unless suppressed: declare `no_auto_map` on the model for explicit mappings only, or `no_auto_map [:driver]` to exclude selected fields from automatic copying.
|
|
4
|
+
|
|
5
|
+
```elixir
|
|
6
|
+
from RouteOpened, set_once: [opened_at: :occurred], set: [state: "$value(open)"]
|
|
7
|
+
from StopVisited, add: [distance: :km], increment: :completed
|
|
8
|
+
from VisitReversed, subtract: [distance: :km], decrement: :completed
|
|
9
|
+
from_every set: [last_subject: {:caused_by, :subject}]
|
|
10
|
+
clear_with DriverReleased, [:driver]
|
|
11
|
+
join DepotRenamed, on: "depot_id", set: [depot_name: :name]
|
|
12
|
+
removed_with_join RouteInvalidated, key: :route_id
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`from_every` shares mappings across handled inputs; add `include_children: true` to include child inputs. `set_once` writes only when unset. `clear: [:driver]` can accompany other changes. Destination names are struct fields; source atoms map to event property names. Numbers and booleans are constants; strings are expressions (use `$value(...)` for literal text). Map context via `:occurred` or e.g. `"$eventContext(CorrelationId)"`; causing identity accepts `:subject`, `:name`, `:user_name`. The join matches the incoming key to the stored depot ID; set `key: :depot_id` when the joining event carries the ID rather than using its own source ID.
|
|
16
|
+
|
|
17
|
+
## Dictionaries and keys
|
|
18
|
+
|
|
19
|
+
```elixir
|
|
20
|
+
from StopVisited, add: [km_by_zone: {:entry, {:event_content, :zone}, :km}],
|
|
21
|
+
count: [visits_by_driver: {:caused_by, :subject}]
|
|
22
|
+
from ZoneRetired, remove: [km_by_zone: {:event_content, :zone}]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Use map fields. `set`, `set_once`, `add`, `subtract` take the entry tuple; `count`, `increment`, `decrement`, `remove` take the key source. `{:event_context, :type}` keys by context. Use a stable non-sensitive string key.
|
|
26
|
+
|
|
27
|
+
For a stored summary, `key: :zone` redirects to the payload; `key: "$value(all)"` makes a singleton. `key: {:composite, [zone: :zone, day: {:event_context, "Occurred.Day"}]}` names ordered components (choose a complete date for a daily key across months). A context key alone also accepts `{:event_context, "Occurred.Year"}`. Keep component names and order identical for every contributing event. Child `parent_key:` accepts the same expressions.
|
|
28
|
+
|
|
29
|
+
## Children
|
|
30
|
+
|
|
31
|
+
```elixir
|
|
32
|
+
defmodule Manifest do
|
|
33
|
+
use Cratis.Chronicle.ReadModels.ReadModel, types: [stops: {:list, Stop}]
|
|
34
|
+
defstruct id: "", stops: []
|
|
35
|
+
from RouteOpened, set: [id: :event_source_id]
|
|
36
|
+
|
|
37
|
+
children :stops, identified_by: :stop_id, order_by: :position do
|
|
38
|
+
from StopScheduled, key: :stop_id, set: [stop_id: :stop_id, position: :position]
|
|
39
|
+
join StopRenamed, key: :stop_id, set: [name: :name]
|
|
40
|
+
removed_with StopCancelled, key: :stop_id
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Define `Stop` with the mapped fields. The child join uses the identified-by property, not a root `on:` path. When the parent is not the event source supply e.g. `parent_key: :route_id`. Nest another `children` block for grandchildren. For a single input use `children :stops, from: StopScheduled, identified_by: :stop_id, key: :stop_id, set: [stop_id: :stop_id]`. New items append unless `prepend: true` or `order_by:` is set; use one ordering only. `order_by: [desc: :position]` reverses insertion order by value, not existing items on update.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Read and operate a projection
|
|
2
|
+
|
|
3
|
+
Assume `alias Cratis.Chronicle.{ReadModels, Projections, Observers}`. Read options `client:` and `namespace:` override the configured defaults. For a non-default event sequence pass `event_sequence_id:` where the read folds events.
|
|
4
|
+
|
|
5
|
+
| Need | Call and result |
|
|
6
|
+
|---|---|
|
|
7
|
+
| Keyed fold | `ReadModels.get(Route, id)` returns a struct or nil inside `{:ok, ...}`. `ReadModels.get_instance_by_key_raw(Route, id)` also reports `last_handled` and `stream_scoped`; it is not an append guard. |
|
|
8
|
+
| Session | `ReadModels.get(Route, id, session_id: sid)` then `ReadModels.dehydrate_session(Route, id, sid)` to release the session. |
|
|
9
|
+
| Bounded history | `ReadModels.all(Route, event_count: 200)` bounds input events, not rows. Without the bound, materialized models read stored instances from the sink. |
|
|
10
|
+
| Stored page | `ReadModels.query(Route, page: 1, page_size: 20)` returns `instances` and `total_count`; pages start at zero, size defaults to 50. `filter: [driver: "Lee"], sort: {:visits, :desc}, max_scan: 500` scans client-side before paging; the default scan cap is 10,000, and exceeding it returns `{:error, {:scan_limit_exceeded, max_scan}}`, never a partial answer. A filter or sort field the model lacks returns `{:error, {:unknown_field, field}}`. Use the sink for large searches. |
|
|
11
|
+
| Replay history | `ReadModels.snapshots(Route, id)` returns correlated historical snapshots. `ReadModels.occurrences(Route)` lists occurrences; pass `occurrence:` on a stored page to select one. `ReadModels.definitions()` inspects registered models. |
|
|
12
|
+
| Changes | `{:ok, pid} = ReadModels.watch(Route)` delivers `{:chronicle_read_model_changed, Route, changeset}` to the caller; stop with `ReadModels.unwatch(pid)`. `subscribe` / `unsubscribe` share a reconnecting stream. Neither supplies the initial list. A `watch` ends on a stream failure with `{:chronicle_read_model_watch_error, Route, reason}`: call `watch` again. A `subscribe` stream reconnects by itself: it sends `{:chronicle_read_model_watch_ended, Route, reason}`, then `{:chronicle_read_model_watch_resumed, Route}`; re-query on resume, because missed changes are not replayed. |
|
|
13
|
+
| Live page | `{:ok, pid} = ReadModels.observe(Route, page_size: 20)` sends `{:chronicle_read_model_instances, Route, result}` initially and on changes. Filtering and sorting apply within the transferred page. After `{:chronicle_read_model_observe_error, Route, reason}` the observation has ended: call `observe` again. `ReadModels.unobserve(pid)` stops it; `ReadModels.observe_stream(Route, page_size: 20)` exposes an enumerable. |
|
|
14
|
+
| React to sink changes | `use Cratis.Chronicle.ReadModels.Reactor, model: Route`; implement the needed `on_added(route, changeset)`, `on_modified(route, changeset)` or `on_removed(key, changeset)` callbacks. This is not a materialized-window diff. |
|
|
15
|
+
| Decision | `Cratis.Chronicle.ReadModels.DecisionReads.admit(Route)` checks eligibility; `DecisionReads.get(Route, id)` under that alias attaches the dependency to the current unit of work. A detached read (`get_detached`) must be explicitly guarded; see `cratis-chronicle-protect-decision`. |
|
|
16
|
+
| Progress | `Projections.wait_for(Route, position)` returns `:ok` or an error; on timeout inspect `Observers.get_all()` and failed partitions rather than treating an absent instance as proof of empty history. `Observers.retry_partition("Route", key)` requests recovery. `Observers.fast_forward("Route")` deliberately skips backlog rather than correcting it. |
|
|
17
|
+
| One-off query | `Projections.query("projection RouteSummary\n from RouteOpened")` returns maps; pass `read_model: Route` for structs. Invalid declarations return `{:error, {:invalid_declaration, diagnostics}}`. `Projections.preview(Route)` runs the registered declaration. Both are bounded document diagnostics, not complete historical queries. Register graphs and read the graph sink. In text, set `automap` or `no automap` in a join’s `with` block to override its scope. |
|
|
@@ -1,37 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Project an Elixir read model
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
A missing single-instance result can mean the event has not yet been projected. Compare the observer checkpoint before diagnosing missing history. Bound client-side scans; use the ISO week-year for week keys rather than assuming the occurrence calendar year matches.
|
|
6
|
-
|
|
7
|
-
## Graph projections
|
|
8
|
-
|
|
9
|
-
Use a graph for relationship queries rather than joining materialized views. Define `Person` and `Group` with `use Cratis.Chronicle.Graphs.Node` and struct keys `person_id` and `group_id`. Define `Membership` with `use Cratis.Chronicle.Graphs.Edge, type: "MEMBER_OF"` and `defstruct membership_id: ""`. With those modules and the events in scope:
|
|
3
|
+
Names are illustrative. With `:cratis_chronicle` in the Mix application, supervise `{Cratis.Chronicle.Client, connection_string: System.fetch_env!("CHRONICLE_URL"), event_store: "Dispatch", otp_app: :dispatch}` against a running kernel. Discovery picks up the app's event types and models; for explicit registration use `event_types: [RouteOpened, StopVisited, RouteClosed]` and `read_models: [Route]` instead of discovery.
|
|
10
4
|
|
|
11
5
|
```elixir
|
|
12
|
-
defmodule
|
|
13
|
-
use Cratis.Chronicle.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
node Group, key: :group_id do
|
|
21
|
-
from GroupCreated, key: :group_id
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
edge Membership, source: Person, target: Group, identified_by: :membership_id do
|
|
25
|
-
from MemberAdded, source_key: :person_id, target_key: :group_id, identity: :membership_id
|
|
26
|
-
removed_with MemberRemoved,
|
|
27
|
-
source_key: :person_id, target_key: :group_id, identity: :membership_id
|
|
28
|
-
end
|
|
6
|
+
defmodule Route do
|
|
7
|
+
use Cratis.Chronicle.ReadModels.ReadModel
|
|
8
|
+
defstruct id: "", driver: "", visits: 0
|
|
9
|
+
|
|
10
|
+
from RouteOpened, set: [id: :event_source_id, driver: :driver]
|
|
11
|
+
from StopVisited, count: :visits
|
|
12
|
+
removed_with RouteClosed
|
|
29
13
|
end
|
|
30
14
|
```
|
|
31
15
|
|
|
32
|
-
|
|
16
|
+
Append registered events on the same route source. After `Cratis.Chronicle.Projections.wait_for(Route, position)` succeeds, `Cratis.Chronicle.read_model(Route, route_id)` returns `{:ok, %Route{}}` after opening and `{:ok, nil}` after closing. Handle `{:error, reason}` separately. Keys default to event source ID; sequence defaults to `"event-log"`. The module's final name segment supplies the ID; specify `id: "RouteStatus"` before renaming. Struct defaults seed initial state. `event_sequence: "dispatch-inbox"` selects the one sequence the model reads; same-typed events in other sequences are ignored, so append every event type the model maps with exactly that id as `event_sequence_id:`. `passive: true` folds on demand rather than persisting (keep source-ID keys); `not_rewindable: true` marks the definition non-rewindable, not replay-proof. For active models the client `default_sink_type_id:` defaults to MongoDB; use `:sql` with a configured SQL sink or `:in_memory` for tests.
|
|
33
17
|
|
|
34
|
-
|
|
18
|
+
- [Mappings, keys and children](elixir-mappings.md)
|
|
19
|
+
- [Graph projections and views](elixir-graphs.md)
|
|
20
|
+
- [Reading and operating](elixir-reading.md)
|
|
35
21
|
|
|
36
22
|
## Variants
|
|
37
23
|
|
|
@@ -69,3 +55,13 @@ end
|
|
|
69
55
|
For a declarative projection, keep only the struct and `use Cratis.Chronicle.ReadModels.ReadModel` on each model. Move each mapping block unchanged to its own module beginning with `use Cratis.Chronicle.Projections.Projection, model: BacklogItem` or `model: PullRequestItem`. Do not register both builders for the same model. Both DSLs accept `variant_of/2` and `enters_on/1,2`; use `enters_on Event, key: :work_item_id` only when the entrant uses that event field rather than the source ID. Register the selected builders and `global_handlers: [WorkItemTitleHandler]` or discover them with `otp_app:`. The shared title mapping must target a field present on both variants.
|
|
70
56
|
|
|
71
57
|
`BuildCompleted` is update-only because it isn't an entry event. In ExUnit with a disposable kernel namespace, append it before `PullRequestCreated` and wait for delivery; assert no `PullRequestItem` appears. Append the entry event and a second build with a different status on the same source; assert only the second status is visible on the pull request variant.
|
|
58
|
+
|
|
59
|
+
Use `projections: [BacklogProjection, PullRequestProjection]` for explicitly registered separate mappings and `read_models:` for their struct modules.
|
|
60
|
+
|
|
61
|
+
## Not supported in this SDK
|
|
62
|
+
|
|
63
|
+
- No projection tags, pinned projection delivery, custom container, per-projection sink, index declarations or query-only field annotation: use stable IDs, compatibility delivery and client sink settings; manage indexes in the sink and enrich query DTOs outside the projection.
|
|
64
|
+
- No typed projection output to an event sequence or stream-scoped passive declaration: use a reactor for intentional event emission or keep a source-keyed passive model. Stream options on a lookup do not declare a projection's stream scope.
|
|
65
|
+
- No sequence-wide wildcard macro: enumerate input types. No singleton nested scope, scalar/payload child insertion or polymorphic child discriminator DSL: map identified child fields explicitly or use a reducer.
|
|
66
|
+
- No graph collection-expansion macro or typed traversal execution: feed individual relationship events and query through the graph-owning service.
|
|
67
|
+
- No public fold event-count result, external batch release helper, materialized-window reactor mode or projection replay command: use the returned position for diagnostics, SDK reads for protected values, observe a page for window updates, and to replay run `cratis chronicle observers replay <observer-id>` (the observer id is the projection id; see `cratis-chronicle-cli-operations`).
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Declare a graph and its views in Go
|
|
2
|
+
|
|
3
|
+
Use `github.com/cratis/chronicle.go/graphs`. Define separate node/edge structs, not registered document models. Give each node one `chronicle:"key"` field (or select the property with `IdentifiedBy("id")`). Use scalar properties; model a related object as another node, not an embedded object.
|
|
4
|
+
|
|
5
|
+
```go
|
|
6
|
+
person := graphs.NewNode[Person]().From(registered, graphs.UsingKey("personId")).
|
|
7
|
+
RemovedWith(departed, graphs.UsingKey("personId"), graphs.Detach())
|
|
8
|
+
team := graphs.NewNode[Team]().From(formed, graphs.UsingKey("teamId")).
|
|
9
|
+
From(joined, graphs.UsingKey("teamId"), graphs.OnlyWhenExisting(), graphs.Increment("memberCount"))
|
|
10
|
+
a := graphs.UsingSourceKey("personId")
|
|
11
|
+
b := graphs.UsingTargetKey("teamId")
|
|
12
|
+
member := graphs.NewEdge[Membership](person, team).Named("MEMBER_OF").
|
|
13
|
+
From(joined, a, b, graphs.SetFromContext("since", "occurred")).
|
|
14
|
+
RemovedWith(left, a, b)
|
|
15
|
+
g := graphs.New("Organization", person, team, member)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- `Labeled("Worker")` overrides the node label; `Named` overrides the edge type. Keep graph and element names stable. Only use local events. `OnlyWhenExisting()` prevents an update from creating a missing node. `Detach()` removes incident edges when deleting the node; ordinary edge removal leaves both endpoints intact.
|
|
19
|
+
- By default the endpoints identify an edge. For concurrent memberships between the same endpoints declare `member.IdentifiedBy("id")` and pass `graphs.UsingIdentity("membershipId")` alongside both endpoint selectors on creation and removal.
|
|
20
|
+
- In `From` use `graphs.Set("name","displayName")`, `SetValue("active",true)`, `SetFromEventSourceID("origin")` or `SetFromContext("since","occurred")` to control property sources. Use `Add("volume","amount")`, `Subtract("volume","amount")`, `Increment("visits")`, `Decrement("remaining")`, `Count("updates")` or `Clear("note")` for compatible fields. Select only the mappings that apply to that event.
|
|
21
|
+
- For a view declaration, `tv := graphs.NewView[TeamSummary](team).Property("name").EdgeProperty("since")`; `pv := graphs.NewView[PersonSummary](person).Property("display",graphs.SourceProperty("name")).FollowsMany("teams",member,tv,graphs.Outgoing())`. `FollowsOne` is for a single related view, `Incoming()` for the reverse direction; `EdgeProperty` reads the traversed relationship. `Named("Directory")` overrides a view name. Attach with `g.WithViews(pv,tv)` before build. A view is declared and validated only: this SDK does not execute views, so read the graph with Cypher. An invalid view fails `Build` with `*graphs.ViewError`; `graphs.ViewReasonOf(err)` gives the stable reason (for example `graphs.UnknownNodeProperty`, `graphs.EdgeNotIncidentOnRoot`, `graphs.AmbiguousDirection` for a self edge without a direction, `graphs.RelationTargetNotAView` for a target missing from `WithViews`, `graphs.RecursiveView`).
|
|
22
|
+
- Default graph sink is Neo4j. Override per declaration with `g.UsingSink(graphs.InMemoryGraph)` for disposable tests or client-wide with `chronicle.WithDefaultGraphSinkType(kind)`. Check `d, err := g.Build()` and `registry.AddGraph(d)` before constructing the client. Registration is not evidence of delivery: wait for observer progress and query Neo4j with Cypher to verify updates, removals and replay.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Document mappings in Go
|
|
2
|
+
|
|
3
|
+
In the snippets `p` is the import alias for `github.com/cratis/chronicle.go/projections`. Choose one definition per model. For example, these fields on an order express a related display name, a running amount and an identified collection:
|
|
4
|
+
|
|
5
|
+
```go
|
|
6
|
+
CustomerID string `json:"customerId"`
|
|
7
|
+
CustomerName string `json:"customerName" chronicle:"join(CustomerRenamed,on=customerId,from=name)"`
|
|
8
|
+
Total int64 `json:"total" chronicle:"add(LineAdded,from=amount)"`
|
|
9
|
+
Lines []Line `json:"lines" chronicle:"children(LineAdded,key=lineId,identified-by=id,parent-key=orderId);remove(LineCancelled,key=lineId,parent-key=orderId)"`
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Use `FromEvent(placed)` to create the order; the join consumes rename events whose source matches `customerId`, not snapshots of customers. Reserve the joined field for that event. `p.RemovedWith(cancelled)` removes the root; `RemovedWithJoin`/`remove-join` is for matching children, not root or nested-object deletion. Explicitly repeat a redirected parent key on removal. A pointer tagged `chronicle:"nested;clear(AddressWithdrawn)"` instead models one optional object. Reachable child tags need no separate model; attach node-level options with `p.WithNodes(p.Node[Line](p.NoAutoMap()))`.
|
|
13
|
+
|
|
14
|
+
## Fluent writes
|
|
15
|
+
|
|
16
|
+
For a plain struct build `b := p.NewBuilder("depot-stock", model)` and register the checked result of `b.Build()`. For example, receive quantities into a string-keyed map, leaving other bins unchanged:
|
|
17
|
+
|
|
18
|
+
```go
|
|
19
|
+
bins := p.Path[Stock,map[string]int64]("bins")
|
|
20
|
+
p.From(b, received, func(f *p.FromBuilder[Stock,Received]) {
|
|
21
|
+
key := p.KeyFromEvent(p.Path[Received,string]("bin"))
|
|
22
|
+
p.Add(f, p.Entry(bins,key), p.Path[Received,int64]("quantity"))
|
|
23
|
+
p.ContextOnce(f, p.Path[Stock,time.Time]("firstReceipt"), "occurred")
|
|
24
|
+
})
|
|
25
|
+
p.From(b, retired, func(f *p.FromBuilder[Stock,BinRetired]) {
|
|
26
|
+
p.RemoveKey(f, p.Entry(bins,p.KeyFromEvent(p.Path[BinRetired,string]("bin"))))
|
|
27
|
+
})
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Within a `From` or `Join` callback, `dst` and `src` below stand for typed `p.Path` fields. Choose **one** write per target for that event:
|
|
31
|
+
|
|
32
|
+
| Expression | Use |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `p.Map(f,dst,src)` / `p.MapAs(f,dst,src)` | Copy a property; use `MapAs` for different compatible declared types, not a conversion callback. Tag: `set(Received,from=bin)`. |
|
|
35
|
+
| `p.Value(f,dst,"open")` / `p.EventSourceID(f,dst)` | Assign a constant / event source. |
|
|
36
|
+
| `p.Context(f,dst,"correlationId")` / `p.CausedBy(f,dst,p.CausedBySubject)` | Copy metadata or actor identity (`CausedBySubject`, `CausedByName`, `CausedByUserName`). |
|
|
37
|
+
| `p.MapOnce(f,dst,src)` | Set only while unset. `MapAsOnce`, `ValueOnce`, `EventSourceIDOnce`, `ContextOnce`, `CausedByOnce` take their ordinary arguments; tags use `once=true`. Do not seed a first-write target with its final value. |
|
|
38
|
+
| `p.Add(f,dst,src)` / `p.Subtract(f,dst,src)` | Adjust by amount. `p.Increment(f,dst)`, `p.Decrement(f,dst)`, `p.Count(f,dst)` adjust by one or count deliveries. |
|
|
39
|
+
| `p.Clear(f,dst)` | Write null to a nullable field, not an empty collection. |
|
|
40
|
+
| `p.Entry(bins,p.KeyFromContext("subject"))` | Target one dictionary entry instead of a whole field. Use `KeyFromEvent`, scalar `KeyFromContext` or `KeyFromCausedBy(p.CausedByUserName)`. Map, set once, adjust, count or `RemoveKey` there. |
|
|
41
|
+
| `p.Join(b,renamed,customerID,func(f *p.FromBuilder[Order,CustomerRenamed]) { p.Map(f,displayName,name) })` | Match another source via model field `customerID`; unmatched join creates nothing. |
|
|
42
|
+
| `p.Every(b,func(e *p.EveryBuilder[Order]) { e.IncludeChildren(false); p.EveryContext(e,changed,"occurred") })` | Shared writes on existing subscriptions. `p.All` instead subscribes sequence-wide. `EveryMap(e,dst,"name")`, `EveryCausedBy(e,dst,p.CausedByName)`, `EveryMapOnce`, `EveryContextOnce` are alternatives. Child inclusion defaults true; don't rely on parent timestamps for child-only events. |
|
|
43
|
+
|
|
44
|
+
## Correlation and structure
|
|
45
|
+
|
|
46
|
+
- On `From`, `FromEvent`, `Join` or removal pass `p.UsingKey(eventID)` to redirect source identity; `p.UsingKeyFromContext("correlationId")` groups by context; `p.UsingConstantKey("all")` creates a singleton. Child handlers use `p.UsingParentKey(orderID)` or `p.UsingParentKeyFromContext("correlationId")` to select the containing instance.
|
|
47
|
+
- For structured identity use `p.UsingCompositeKey(func(k *p.CompositeKeyBuilder[DepotKey,Received]) { p.KeyPart(k,region,regionInEvent); p.KeyPartFromSource(k,depotID) })`. Parts are ordered, named fields of `DepotKey`. `p.KeyPartFromContext(k,subject,"subject")` or `p.KeyPartValue(k,area,"north")` supplies other parts. `UsingCompositeParentKey` takes the same callback for parent identity.
|
|
48
|
+
- `p.Children(b,lines,func(c *p.Builder[Line]) { p.From(c,added,nil,p.UsingKey(lineID),p.UsingParentKey(orderID)); c.Configure(p.RemovedWith(cancelled,removeKey,removeParent)) },p.IdentifiedBy(id))` selects an existing item by identity or adds one. `Join` on `c` updates matching children. Normally append; choose **one** of `p.Prepend()`, `p.OrderBy(position)` or `p.OrderByDescending(position)` on `Children`. Keys are identities, not positions. A model-bound `children(...)` on an interface-valued collection needs an unambiguous registered derivative; its discriminator is stamped on creating From writes, not joins.
|
|
49
|
+
- `p.Nested(b,address,func(n *p.Builder[Address]) { p.From(n,changed,nil) },p.ClearWith(withdrawn))` maps an optional pointer then removes that object. Avoid joins removing nested objects, children inside nested objects and nested-object joins inside collection children; acceptance of a definition does not establish materialization.
|
|
50
|
+
- For mutually exclusive stages register e.g. `p.ModelBound(queued,p.VariantOf[ShipmentStage](),p.EntersOn(booked))` and a dispatched sibling entering on `sent`. Each needs its own key and entry event; entering removes siblings for that identity. Keep entry and removal correlation consistent. For a fluent variant without a key tag pass `p.VariantKey(p.Path[Queued,string]("id"))`. Register the checked result of `p.Global[SharedShipment](p.GlobalFor[ShipmentStage]())` for shared From mappings: target fields must exist on every variant. The global is not another stored view.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Read and operate a Go projection
|
|
2
|
+
|
|
3
|
+
`reader := readmodels.For(store.ReadModels(),model)` binds reads to the registered type. Always check errors before inspecting results.
|
|
4
|
+
|
|
5
|
+
```go
|
|
6
|
+
instance, err := reader.Get(ctx,"depot-1")
|
|
7
|
+
if err != nil { return err }
|
|
8
|
+
if instance.Exists { display(instance.Value) }
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`Exists` distinguishes missing from a valid zero value. `LastHandled` can be nil. Neither is proof that a just-appended event has arrived, nor is this a safe basis for a guarded decision.
|
|
12
|
+
|
|
13
|
+
| Need | Call and outcome |
|
|
14
|
+
|---|---|
|
|
15
|
+
| Repeated reads for one key | `s, err := reader.NewSession(key)`; after success use `s.Get(ctx)` and close with `s.Close(ctx)` to dehydrate, not delete. |
|
|
16
|
+
| Command depends on the model | `r := readmodels.DecisionsFor(store.ReadModels(),model)`; use `r.Admit()`, `r.Get(ctx,key)` or `r.GetDetached(ctx,key)` under the decision-read workflow, not a session. See `cratis-chronicle-protect-decision`. |
|
|
17
|
+
| Collection/history | `reader.GetAll(ctx,nil)` for the collection, `reader.GetAll(ctx,&count)` with `count` of type `events.Count` for bounded replay. `reader.GetSnapshots(ctx,key)` returns the correlation-grouped history for one key. |
|
|
18
|
+
| Stored page | `page, err := reader.Materialized().GetInstances(ctx,&readmodels.Window{Skip:20,Take:10})`. A nil window selects the first 50; `Take:readmodels.UnlimitedInstances` has no page limit. Use the backing store for server-side filtering and sort. |
|
|
19
|
+
| Change feed | `sub, err := reader.Watch(ctx)`; after success `defer sub.Close()` and call `change, err := sub.Recv()` in a loop. Check `change.Type` and `change.HasValue`; a removed key need not include a value. This is not an initial collection. `readmodels.WithWatchBuffer(messages,bytes)` bounds buffering. Handle terminal errors and refresh state after a gap. |
|
|
20
|
+
| Initial and subsequent page snapshots | `sub, err := reader.Materialized().ObserveInstances(ctx,window)`; consume slices via `Recv()` and close. For a read-model reactor use `reactors.Materialized(window)` as an option to `reactors.DefineReadModel`: it reacts to differences between materialized snapshots instead of watching individual changes. |
|
|
21
|
+
| Release protected sink results | `reader.Release(ctx,value)` or `reader.ReleaseMany(ctx,values)` before using externally fetched records; use the returned values only on success. Not an authorization policy. |
|
|
22
|
+
| Wait after append | Check append error and `appended.Err()` first. `done, err := appended.WaitForCompletion(ctx,store.Observers(),timeout)`; require `done.IsSuccess()` and inspect `TimedOut()`, `FailedPartitions()` and `OutstandingObservers()` on incomplete delivery. |
|
|
23
|
+
| Diagnose | `store.Observers().Get(ctx,id,seq)` reports observer state/position; `store.Observers().FailedPartitions(ctx,id)` identifies stopped partitions. Check the actual projection observer id and sequence. |
|
|
24
|
+
| Rebuild versus discard | `job, err := store.Observers().Replay(ctx,id,seq)` starts a rebuild; after success `job.WaitForCompletion(ctx,timeout)` waits for the job. `store.Observers().FastForward(ctx,id,seq)` skips backlog, **not** a repair. `store.ReadModels().ReplayProjection(ctx,model.Identifier(),n)` reads replayed entries, not an operational rebuild. |
|
|
25
|
+
| Ad-hoc declaration | `result, err := store.QueryProjection(ctx,pdl)` (or pass one sequence). This executes kernel PDL without registration/storage; inspect `result.ReadModelEntries` (JSON strings) and `result.Schema`. Use explicit targets or an inferred shape and multiplied amounts in the declaration, not Go callbacks. Results are bounded previews, not proof of complete history. Register graphs and query the graph sink instead. In text, set `automap` or `no automap` in a join’s `with` block to override its scope. Inspect `*projections.QueryError` for syntax diagnostics without logging unredacted declaration contents. |
|
|
@@ -1,9 +1,49 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Project a Go read model
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use `github.com/cratis/chronicle.go` (root package `chronicle`) and its `projections`, `readmodels` and `events` packages. Start with one registry, concrete event structs, and exported model fields. Tags and fluent paths use **serialized** names. The type names below are illustrative.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```go
|
|
6
|
+
type DepotOpened struct { Name string `json:"name"` }
|
|
7
|
+
type Depot struct {
|
|
8
|
+
ID string `json:"id" chronicle:"key"`
|
|
9
|
+
Name string `json:"name"`
|
|
10
|
+
Opened time.Time `json:"opened" chronicle:"context(@opened,from=occurred)"`
|
|
11
|
+
}
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
func register(r *chronicle.Registry) (readmodels.Model[Depot], error) {
|
|
14
|
+
opened, err := chronicle.RegisterEvent[DepotOpened](r)
|
|
15
|
+
if err != nil { return readmodels.Model[Depot]{}, err }
|
|
16
|
+
m, err := chronicle.RegisterReadModel[Depot](r)
|
|
17
|
+
if err != nil { return m, err }
|
|
18
|
+
d := projections.ModelBound(m, projections.BindEvent("opened", opened), projections.FromEvent(opened))
|
|
19
|
+
return m, r.AddProjection(d)
|
|
20
|
+
}
|
|
21
|
+
```
|
|
8
22
|
|
|
9
|
-
|
|
23
|
+
Create `r := chronicle.NewRegistry()`, call `register(r)` before `chronicle.Dial(ctx, ..., chronicle.WithRegistry(r))` with the application's connection options; close the client when done. Get the owning `store` with `client.EventStore(ctx, chronicle.StoreName("dispatch"))`. Handle each error before using its result. `DepotOpened` auto-maps `name`; its event source id identifies the depot. No alias is required when a directive names an unambiguous registered event type directly.
|
|
24
|
+
|
|
25
|
+
## Configure only what differs
|
|
26
|
+
|
|
27
|
+
| Need | Declaration |
|
|
28
|
+
|---|---|
|
|
29
|
+
| Stable identity independent of Go type moves | `projections.WithIdentifier("dispatch-depots")`; otherwise the projection normally uses the qualified model type. `readmodels.WithIdentifier` names the model, not the mapping. |
|
|
30
|
+
| Input other than inferred sequence | `projections.WithEventSequence(seq)` or force local log with `WithEventLog()`. By default local events select event-log; a single external origin selects that store's inbox. Do not mix external origins. Use registered typed handles (event registration can take `events.WithGeneration(g)`); don't select generations by label. |
|
|
31
|
+
| Source-local on-demand fold | `projections.Passive()`; keep source id as key and avoid joins. |
|
|
32
|
+
| Evolution metadata | `projections.NotRewindable()` marks the definition; it is not a replay lock. `projections.WithLabels("dispatch")` organizes, never filters. |
|
|
33
|
+
| Restrict implicit writes | `projections.NoAutoMap()` on root or node; `AutoMap()` enables it. `chronicle:"no-auto"` suppresses implicit mapping on a field; `chronicle:"not-projected"` leaves a query-owned field alone. |
|
|
34
|
+
| Initial state | `projections.WithInitialValues(Depot{Name:"Pending"})` or `projections.WithInitialValue(projections.Path[Depot,string]("name"), "Pending")`; values are captured at declaration time. A seed cannot create projection-owned children. |
|
|
35
|
+
| Storage | Pass `readmodels.WithContainerName("depots")` or `readmodels.WithSink(readmodels.Sink{Type:readmodels.SQL, ConfigurationID:"dispatch"})` at model registration. Use a configured sink; coordinate existing container changes. |
|
|
36
|
+
| Query indexes | Mark a field `chronicle:"index"` or use `readmodels.WithIndexes("address.city", "name")` at registration. These are separate path indexes, not a unique or composite index; do not declare the same path twice. |
|
|
37
|
+
| Display name | `readmodels.WithDisplayName("Depots")` at model registration changes the name shown in tooling, not the model identifier or container. |
|
|
38
|
+
| Declaration that needs configuration or a service | `chronicle.RegisterProjectionFactory(r, "depots", model.Descriptor(), factory, define)`: `factory` is a constructor func returning a value `P` (its parameters are resolved from the client's services), and `define` is `func(context.Context, P) (projections.Declaration, error)`. The ID must equal the declaration's identifier. Runs once at client preparation; it must not call this client. Prefer `r.AddProjection` when nothing is injected. |
|
|
39
|
+
| Replace a model's producer in a test | `r2, err := r.WithProjection(d)` returns a copy of the registry whose model is produced by `d` instead of its previous projection or reducer; `r` is unchanged. |
|
|
40
|
+
| Late addition | `result, err := store.RegisterProjection(ctx,d)` adds one ordinary projection and new model using already-known events. Not a way to replace a definition, register variants/globals or add protected/derived shapes. If `result.Published`, do not submit again: retry acknowledgement with `store.WaitForRegistration(ctx)`, then create a new reader. Publication invalidates existing decision guards. |
|
|
41
|
+
|
|
42
|
+
For joins, counters, keys, children and variants see [Document mappings](go-mappings.md). For graph declarations and views see [Graphs](go-graphs.md). For querying, watching, completion and recovery see [Read and operate](go-reads.md).
|
|
43
|
+
|
|
44
|
+
## Not supported in this SDK
|
|
45
|
+
|
|
46
|
+
- No pinned generation delivery for projections (they use compatibility delivery). No projection event-output or per-stream model declaration: use an owning service with event-target/per-stream support, or a source-local passive model when the source alone identifies all relevant events.
|
|
47
|
+
- No composite/directional index builder: request managed sink indexes for compound query plans; `WithIndexes` does not express direction.
|
|
48
|
+
- No direct scalar-child/whole-event append or fluent multiplication expression: map identified child fields explicitly, supply a computed amount in the event, or use a reducer for a custom fold. For ad-hoc multiplication use PDL in a query.
|
|
49
|
+
- No graph collection expansion builder or typed traversal execution: declare separate element events and read the graph in its database. Ordinary keyed Go reads expose optional last-handled position, not a projected-event count; use snapshots for contributing history.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Graph declarations and views from Java
|
|
2
|
+
|
|
3
|
+
Use `io.cratis.chronicle.projections.graphs`, the ordinary projection event annotations, and `io.cratis.chronicle.keys.Key`. Discover the whole graph together; do not also mark its elements as document read models.
|
|
4
|
+
|
|
5
|
+
```java
|
|
6
|
+
@Graph("Routing") @Node @FromEvent(eventType = DepotOpened.class)
|
|
7
|
+
@RemovedWith(eventType = DepotClosed.class, detach = true)
|
|
8
|
+
record Depot(@Key String depotId, String city) {}
|
|
9
|
+
|
|
10
|
+
@Graph("Routing") @Edge("CONNECTS")
|
|
11
|
+
@EdgeFrom(eventType = LaneOpened.class, sourceKey = "origin", targetKey = "destination", identity = "laneId")
|
|
12
|
+
@EdgeRemovedWith(eventType = LaneClosed.class, sourceKey = "origin", targetKey = "destination", identity = "laneId")
|
|
13
|
+
record Lane(@EdgeSource(Depot.class) String origin, @EdgeTarget(Depot.class) String destination,
|
|
14
|
+
String capacity) {}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Use exactly one node key and one edge source and target. An endpoint selector defaults to event source id; `identity` distinguishes parallel edges with the same endpoints. Supply matching selectors on removal. Detach removes incident edges when deleting a node.
|
|
18
|
+
|
|
19
|
+
For a separate definition annotate an `IGraphProjection` implementation with `@Graph("Routing")`. In `define(IGraphProjectionBuilder b)`:
|
|
20
|
+
|
|
21
|
+
```java
|
|
22
|
+
b.node(Depot.class, n -> {
|
|
23
|
+
n.identifiedBy("depotId").from(DepotOpened.class)
|
|
24
|
+
.from(DepotRenamed.class, f -> { f.usingKey("depotId").onlyWhenExisting(); });
|
|
25
|
+
}).edge(Lane.class, Depot.class, Depot.class, e -> {
|
|
26
|
+
e.named("CONNECTS").from(LaneOpened.class, f -> {
|
|
27
|
+
f.usingSourceKey("origin").usingTargetKey("destination").usingIdentity("laneId");
|
|
28
|
+
f.set("capacity").toProperty("capacity");
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Use plain fluent element types rather than simultaneously registering annotated declarations. Graph `set` supports `toValue`, `toProperty`, `toEventSourceId` and `toEventContextProperty`. For numeric fields use `add("load", "quantity")`, `subtract("load", "quantity")`, `increment("visits")`, `decrement("remaining")` or `count("openings")`. Graph mappings do not offer a collection-expansion builder: represent one relationship per event.
|
|
34
|
+
|
|
35
|
+
```java
|
|
36
|
+
@ViewOf(Depot.class)
|
|
37
|
+
record Arrival(@Key String depotId, String city, @FromEdge String capacity) {}
|
|
38
|
+
|
|
39
|
+
@ViewOf(Depot.class)
|
|
40
|
+
record Departures(@Key String depotId,
|
|
41
|
+
@Follows(value = Lane.class, direction = FollowDirection.Outgoing) List<Arrival> destinations) {}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
A view projects node properties and traverses to another view. A list requests many; a single member requests one. Use `@FromEdge(source = "capacity")` for a renamed incoming-edge field. `@ViewOf(name = "…", value = Depot.class)` overrides the view name. Direction is derived for unambiguous labels; specify `Incoming` or `Outgoing` for a self-edge. Keep the shape acyclic. Include views in discovery for validation; this is not a query. Use Neo4j/Cypher to verify creation and removal after replay. `withDefaultGraphSinkTypeId(WellKnownSinkTypes.IN_MEMORY_GRAPH)` selects a disposable graph sink instead of Neo4j, not an in-process traversal API.
|
|
45
|
+
|
|
46
|
+
Declaration errors are thrown at registration: `NodeMustHaveExactlyOneKey`, `EdgeMustHaveOneSourceAndOneTarget`, `EdgeCanHaveOnlyOneIdentifyingKey`, `NestedObjectInGraph` (properties must be primitives or collections of primitives), `GraphElementCannotBeReadModel` (a node or edge also marked as a read model) and `UnknownGraphEventProperty`. A view that breaks a rule throws a subtype of `InvalidGraphView`; `getReason()` names the rule and `getView()` the class.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Java document mapping builders
|
|
2
|
+
|
|
3
|
+
Use a single `IProjectionFor<Bin>` instead of class-level event mappings when names, keys or operations need explicit control. Pass Java class literals, property-name strings and void block lambdas. These are declaration builders, not callbacks that run per event. Supply the corresponding fields on the model and payloads.
|
|
4
|
+
|
|
5
|
+
```java
|
|
6
|
+
class BinProjection implements IProjectionFor<Bin> {
|
|
7
|
+
public void define(IProjectionBuilderFor<Bin> b) {
|
|
8
|
+
b.from(BinOpened.class, f -> {
|
|
9
|
+
f.usingKey("binId");
|
|
10
|
+
f.set("zoneCode").toProperty("zone");
|
|
11
|
+
f.setOnce("openedBy").toCausedBy(CausedByProperty.SUBJECT);
|
|
12
|
+
}).join(ZoneNamed.class, j -> {
|
|
13
|
+
j.on("zoneCode");
|
|
14
|
+
j.set("zoneName").toProperty("name");
|
|
15
|
+
}).from(StockReceived.class, f -> {
|
|
16
|
+
f.usingKey("binId");
|
|
17
|
+
f.add("units").with("quantity");
|
|
18
|
+
f.increment("deliveries");
|
|
19
|
+
f.add("bySku", DictionaryKey.fromEvent("sku")).with("quantity");
|
|
20
|
+
}).removedWith(BinClosed.class);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The join matches the zone event's key against stored `zoneCode`; it cannot create bins. Here close events use the bin's source id. For removal by another payload id use `removedWith(E.class, k -> { k.usingKey("binId"); })`; `removedWithJoin` removes via a join instead. `notRewindable()`, `noAutoMap()` and `autoMap()` configure the definition.
|
|
26
|
+
|
|
27
|
+
| Need | Inside the corresponding builder |
|
|
28
|
+
|---|---|
|
|
29
|
+
| Group keys | `f.usingConstantKey("warehouse")` folds into one row; alternatively `f.usingCompositeKey(k -> { k.property("sku", "sku"); k.toEventContextProperty("source", "eventSourceId"); })` names each component and its input. |
|
|
30
|
+
| Set or clear | `f.set("mode").toValue("open")`; `toValue(null)` clears a nullable field. `toProperty("address.city")` reads a path; `setOnce` keeps the first value. |
|
|
31
|
+
| Metadata | `f.set("lastSeen").toEventContextProperty("occurred")`; `toCausedBy` accepts `SUBJECT`, `NAME` or `USER_NAME`. `toEventSourceId()` declares a source-id mapping; for a required populated identity, carry and map the payload id and verify stored values. |
|
|
32
|
+
| Numeric updates | `f.subtract("units").with("quantity")` reverses an amount; `count("receipts")`, `increment("units")`, `decrement("remaining")` change by one. |
|
|
33
|
+
| Dictionary entry | Add a `DictionaryKey` argument to `set`, `setOnce`, `add`, `subtract`, `increment`, `decrement` or `count`; `f.removeKey("bySku", DictionaryKey.fromEvent("sku"))` deletes only that entry. Alternative keys: `DictionaryKey.fromContext("eventType.id")`, `DictionaryKey.fromCausedBy(CausedByProperty.SUBJECT)`. |
|
|
34
|
+
| Shared mapping | `b.fromEvery(a -> { a.set("lastSeen").toEventContextProperty("occurred"); a.count("byType", "eventType.id"); })`; `fromAll` is the same mapping, including children. Supports `setOnce`, constants, payload/source/context/causing identity and context-keyed increment/decrement. |
|
|
35
|
+
| Variant | `b.variantOf(BinIdentity.class, "binId").entersOn(BinOpened.class)`; populate `binId` in the entering mapping. |
|
|
36
|
+
|
|
37
|
+
```java
|
|
38
|
+
b.children("slots", Slot.class, c -> {
|
|
39
|
+
c.identifiedBy("sku");
|
|
40
|
+
c.orderByDescending("priority");
|
|
41
|
+
c.from(SlotAssigned.class, f -> {
|
|
42
|
+
f.usingParentKey("binId");
|
|
43
|
+
f.usingKey("sku");
|
|
44
|
+
f.set("sku").toProperty("sku");
|
|
45
|
+
f.set("priority").toProperty("priority");
|
|
46
|
+
});
|
|
47
|
+
}).nested("inspection", Inspection.class, n -> {
|
|
48
|
+
n.from(BinInspected.class, f -> { f.set("result").toProperty("result"); });
|
|
49
|
+
n.clearWith(InspectionExpired.class);
|
|
50
|
+
});
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
`identifiedBy` names the child field; `usingKey` and `usingParentKey` name event properties. Default placement appends; choose **one** of `prepend()`, `orderBy("priority")`, `orderByDescending("priority")`. A nested member is one object, not a keyed collection. The Java children builder has no child join or child removal callback: use a Kotlin property-annotated model in a mixed JVM project, or a reducer if the update cannot be declared reliably from Java.
|
|
@@ -1,9 +1,73 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Project a document from Java
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use the JVM client (`io.cratis:chronicle`), an event store connected to the intended kernel and discoverable `@EventType` classes. Names are illustrative. An active document uses the client's `defaultSinkTypeId` (MongoDB unless configured otherwise, e.g. by `CHRONICLE_SINK_TYPE`).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```java
|
|
6
|
+
import io.cratis.chronicle.events.EventType;
|
|
7
|
+
import io.cratis.chronicle.projections.*;
|
|
8
|
+
import io.cratis.chronicle.readModels.ReadModel;
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
@EventType record BinOpened(String binId, String zone) {}
|
|
11
|
+
@EventType record BinClosed() {}
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
@ReadModel
|
|
14
|
+
@FromEvent(eventType = BinOpened.class)
|
|
15
|
+
@RemovedWith(eventType = BinClosed.class)
|
|
16
|
+
class Bin {
|
|
17
|
+
public String binId;
|
|
18
|
+
public String zone;
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Append both events under the bin's id. Creation maps the two matching fields; the **instance key** comes from the event source, independently of the `binId` property. For a payload key, set `key = "binId"` on the relevant class annotations and supply that property on each event. Inspect two different keys after processing, then close one and check only that instance disappeared.
|
|
23
|
+
|
|
24
|
+
Include the model in artifact discovery. When explicitly registering, `ProjectionsServiceJavaBridge.register(projections, kotlin.jvm.JvmClassMappingKt.getKotlinClass(Bin.class))` takes a Kotlin class token for a model-bound definition, **not** a Java `Class`; for a separate mapping pass `new BinProjection()` instead. Java service bridges live in `io.cratis.chronicle.java`.
|
|
25
|
+
|
|
26
|
+
- `@Projection(id = "BinInventory", eventSequence = "…")` overrides simple-class-name projection identity and event-log input. Supply only the override needed; place it on the mapping class for a separate definition. `@ReadModel(id = "…", displayName = "…")` names the model, not its projection.
|
|
27
|
+
- `@Passive` (`io.cratis.chronicle.readModels`) computes a model-bound view on demand. Use only for source-local mapping. `@NotRewindable` marks the definition non-rewindable; it does not block observer replay.
|
|
28
|
+
- `@NoAutoMap` on the model disables same-name mapping. For explicit field mappings use [Java mapping builders](java-mappings.md): the document annotation reader inspects Kotlin property annotations, so a Java field annotation is not a dependable substitute. This differs from the graph reader.
|
|
29
|
+
- Mutually exclusive models: `@VariantOf(identity = BinIdentity.class, key = "binId")` and `@EntersOn(eventType = BinOpened.class)` declare membership and activation. Map the real shared id onto `binId`; entering removes sibling variants. Other handlers join existing rows on the shared id. Put common handlers on a discoverable `@GlobalFor(identity = BinIdentity.class)` class; every affected variant needs the target fields.
|
|
30
|
+
|
|
31
|
+
## Read and maintain the model
|
|
32
|
+
|
|
33
|
+
With the store's `IReadModelsService models`, use blocking bridges off event-loop threads. A missing instance is `null`.
|
|
34
|
+
|
|
35
|
+
```java
|
|
36
|
+
var bin = ReadModelsJavaBridge.getInstanceByKey(models, Bin.class, key);
|
|
37
|
+
var history = ReadModelsJavaBridge.getSnapshotsById(models, Bin.class, key);
|
|
38
|
+
var atCount = ReadModelsJavaBridge.getInstances(models, Bin.class, eventCount);
|
|
39
|
+
var page = ReadModelsJavaBridge.getMaterializedInstances(models, Bin.class, 0, 25);
|
|
40
|
+
var changes = ReadModelsJavaBridge.watch(models, Bin.class, onChange, onError);
|
|
41
|
+
ReadModelsJavaBridge.observeMaterializedInstancesPublisher(models, Bin.class, 0, 25)
|
|
42
|
+
.subscribe(subscriber);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`BlockingReadModels.getInstanceByKey` is the blocking store facade. Omit `eventCount` for all instances. A materialized page reads storage rather than reconstructing history. `watch` delivers changesets; `observeMaterializedInstances` delivers complete replacement pages to a callback. Cancel callback jobs when finished; a Java Flow subscriber requests demand and cancels its subscription. For externally queried records, authorize first, then `ReadModelsJavaBridge.release(models, instance)` or `releaseMany(models, instances)` returns the instances with protected values released. `dehydrateSession(models, Bin.class, key, sessionId)` ends a known session.
|
|
46
|
+
|
|
47
|
+
For a discovered materialized-change handler implement `IReadModelReactor`, e.g. `public void modified(Bin bin, ReadModelChangeset<Bin> change)`; `added` and `removed` are other handler names, and `List<Bin>` selects collection delivery. Do not use this as proof an append is visible.
|
|
48
|
+
|
|
49
|
+
Inspect `FailedPartitionsJavaBridge.getFor(failedPartitions, projectionId)` when rows lag. `ObserversJavaBridge.fastForward(observers, projectionId)` **skips** backlog; it does not rebuild missed rows. For an ad hoc declaration use `ProjectionsServiceJavaBridge.query(projections, declaration)` (optional third argument: event sequence id); handle `ProjectionQueryResult.Invalid` before consuming entries. This does not install a model. Register graphs and query the graph sink instead. In text, set `automap` or `no automap` in a join’s `with` block to override its scope.
|
|
50
|
+
|
|
51
|
+
## Graphs
|
|
52
|
+
|
|
53
|
+
See [Graph declarations and views](java-graphs.md).
|
|
54
|
+
|
|
55
|
+
## Definition errors
|
|
56
|
+
|
|
57
|
+
Thrown while the definition is built or registered; fix the declaration.
|
|
58
|
+
|
|
59
|
+
| Exception | Cause |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| `InvalidPropertyForType` | A model-bound annotation names a property that does not exist (names are unchecked strings) |
|
|
62
|
+
| `UnknownReadModelProperty` | A builder call names a property the target type does not have |
|
|
63
|
+
| `ChildrenOrderingAlreadyDefined`, `ConflictingChildrenOrdering` | A child collection given more than one ordering |
|
|
64
|
+
| `VariantMustDeclareEntersOnEvent` | A variant without the event that activates it |
|
|
65
|
+
| `GlobalHandlerPropertyNotOnVariant` | A shared (global) handler maps a property one variant lacks |
|
|
66
|
+
| `ProjectionRegistrationNotApplied` | The kernel accepted the registration but could not apply it; read `failure` |
|
|
67
|
+
|
|
68
|
+
## Not supported in this SDK
|
|
69
|
+
|
|
70
|
+
- No document builder for tags, pinned generation delivery (projections use compatibility delivery), container override, per-model named sink, indexes, query-only fields, event output or explicit initial state. Use store defaults, coordinate storage/index changes with the sink owner, keep query-only data in a response DTO and seed from creation events. Java field initializers are not the kernel seed.
|
|
71
|
+
- No distinct `fromEvery` versus `fromAll` mode or switch to exclude children; use explicit event handlers for restricted scope. No scalar-child selector, whole-payload add-child or derived-child inference API: map a concrete child explicitly, or use a reducer for custom shaping.
|
|
72
|
+
- No direct event-context key selector on a root `from`; carry an explicit payload key or use a composite key. No Java blocking session-keyed lookup or protected decision-read facade: use ordinary reads for display and guard commands at the owning write boundary.
|
|
73
|
+
- No replay or wait call: to replay, run `cratis chronicle observers replay <observer-id>` (the observer id is the projection id; see `cratis-chronicle-cli-operations`), then observe the expected state with a timeout and failure diagnosis. Do not substitute fast-forward. No typed graph traversal execution: query the graph sink instead.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Graph projections in Kotlin
|
|
2
|
+
|
|
3
|
+
Use `io.cratis.chronicle.projections.graphs.*`, the document mapping annotations in `io.cratis.chronicle.projections`, and `io.cratis.chronicle.keys.Key`. Define nodes and relationships rather than nesting one document in another:
|
|
4
|
+
|
|
5
|
+
```kotlin
|
|
6
|
+
@Graph("Dispatch") @Node @FromEvent(DepotOpened::class)
|
|
7
|
+
data class Depot(@Key val depotId: String, val name: String)
|
|
8
|
+
|
|
9
|
+
@Graph("Dispatch") @Node @FromEvent(VanRegistered::class)
|
|
10
|
+
data class Van(@Key val vanId: String)
|
|
11
|
+
|
|
12
|
+
@Graph("Dispatch") @Edge("BASED_AT")
|
|
13
|
+
@EdgeFrom(VanAssigned::class, sourceKey = "vanId", targetKey = "depotId")
|
|
14
|
+
@EdgeRemovedWith(VanReleased::class, sourceKey = "vanId", targetKey = "depotId")
|
|
15
|
+
data class BasedAt(@EdgeSource(Van::class) val vanId: String,
|
|
16
|
+
@EdgeTarget(Depot::class) val depotId: String)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Register graph classes together via discovery or `store.projections.register(Van::class, Depot::class, BasedAt::class)`. Do not mark graph elements as document read models. Each node needs one key. Source ID is the default; set `key = "depotId"` on `FromEvent` when that payload field identifies the node. For parallel relationships give the edge one `@Key` and use `identity = "assignmentId"` consistently on creation and removal. Edge removal leaves endpoints; `@RemovedWith(DepotClosed::class, detach = true)` on a node also removes its incident edges.
|
|
20
|
+
|
|
21
|
+
For existing-only updates or separate mapping code use a `@Graph("Dispatch")` class implementing `IGraphProjection`. Inside `override fun define(builder: IGraphProjectionBuilder)`:
|
|
22
|
+
|
|
23
|
+
```kotlin
|
|
24
|
+
builder.node(Depot::class) { n ->
|
|
25
|
+
n.identifiedBy(Depot::depotId).from(DepotOpened::class)
|
|
26
|
+
.from(DepotRenamed::class) { it.onlyWhenExisting().set(Depot::name).toProperty("label") }
|
|
27
|
+
.removedWith(DepotClosed::class) { it.detach() }
|
|
28
|
+
}
|
|
29
|
+
builder.edge(BasedAt::class, Van::class, Depot::class) { e ->
|
|
30
|
+
e.from(VanAssigned::class) { it.usingSourceKey("vanId").usingTargetKey("depotId") }
|
|
31
|
+
.removedWith(VanReleased::class) { it.usingSourceKey("vanId").usingTargetKey("depotId") }
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Define every endpoint node. Use `usingKey("depotId")` in node creation or removal to override the source ID. On an edge, `named("BASED_AT")` overrides its type; `identifiedBy` declares the edge identity member and `usingIdentity("assignmentId")` selects its event value. Node and edge `from` both accept `set("since").toEventContextProperty("occurred")`, `toProperty`, `toEventSourceId`, `toValue`, `add("load", "weight")`, `subtract`, `increment("visits")`, `decrement` and `count`. Use only members declared on the element.
|
|
36
|
+
|
|
37
|
+
Declare result shapes separately: `@ViewOf(Depot::class) data class DepotSummary(@Key val id: String, val name: String)`; on a `@ViewOf(Van::class)` view, add `@Follows(BasedAt::class) val depots: List<DepotSummary>`. Specify `FollowDirection.Outgoing` or `Incoming` when direction is ambiguous; use a nullable view rather than a list for one optional target. `@FromEdge("since")` reads a declared edge property on the target view. Supply `name` on `ViewOf` when the view needs an explicit name.
|
|
38
|
+
|
|
39
|
+
Neo4j is the default graph sink. For disposable storage configure `withDefaultGraphSinkTypeId(WellKnownSinkTypes.IN_MEMORY_GRAPH)`. Verify assignment creates a relationship with the intended direction and release removes only that relationship.
|
|
40
|
+
|
|
41
|
+
Declaration errors are thrown at registration: `NodeMustHaveExactlyOneKey`, `EdgeMustHaveOneSourceAndOneTarget`, `EdgeCanHaveOnlyOneIdentifyingKey`, `NestedObjectInGraph` (properties must be primitives or collections of primitives), `GraphElementCannotBeReadModel` (a node or edge also marked as a read model) and `UnknownGraphEventProperty`. A view that breaks a rule throws a subtype of `InvalidGraphView`; its `reason` names the rule and `view` the class.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
**Not supported in this SDK:** graph collection expansion, typed traversal execution and in-process graph scenarios. Supply individual relationship events, query the Neo4j sink with Cypher, and test against a running kernel.
|