@cratis/pi 8.2.1 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +7 -9
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +25 -55
- package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +10 -7
- package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +8 -1
- package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -2
- package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +5 -5
- package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -3
- package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -4
- package/package/corpus/harnesses/copilot/instructions/components.instructions.md +6 -8
- package/package/corpus/harnesses/copilot/instructions/concepts.instructions.md +15 -2
- package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -5
- package/package/corpus/harnesses/copilot/instructions/criticality-tiers.instructions.md +7 -35
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +13 -6
- package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +8 -3
- package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +8 -2
- package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +12 -6
- package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +12 -7
- package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +8 -6
- package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +13 -9
- package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +9 -5
- package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +12 -8
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -4
- package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +12 -6
- package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +11 -7
- package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +7 -7
- package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +5 -3
- package/package/corpus/harnesses/copilot/instructions/general.instructions.md +2 -2
- package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +11 -6
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +13 -13
- package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +13 -39
- package/package/corpus/harnesses/copilot/instructions/go.instructions.md +18 -139
- package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +14 -60
- package/package/corpus/harnesses/copilot/instructions/issue-assignment.instructions.md +6 -9
- package/package/corpus/harnesses/copilot/instructions/java.instructions.md +8 -6
- package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +12 -7
- package/package/corpus/harnesses/copilot/instructions/local-verification-and-delivery.instructions.md +8 -5
- package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +11 -64
- package/package/corpus/harnesses/copilot/instructions/new-repository-intake.instructions.md +7 -28
- package/package/corpus/harnesses/copilot/instructions/operational-safety.instructions.md +26 -41
- package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +22 -5
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +8 -11
- package/package/corpus/harnesses/copilot/instructions/published-contracts.instructions.md +6 -25
- package/package/corpus/harnesses/copilot/instructions/react.instructions.md +9 -2
- package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +17 -5
- package/package/corpus/harnesses/copilot/instructions/review-reports.instructions.md +12 -94
- package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +5 -5
- package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +11 -8
- package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +9 -4
- package/package/corpus/harnesses/copilot/instructions/specs.instructions.md +7 -4
- package/package/corpus/harnesses/copilot/instructions/specs.scenarios.csharp.instructions.md +11 -2
- package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +8 -11
- package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +4 -7
- package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -8
- package/package/corpus/harnesses/copilot/instructions/verification-discipline.instructions.md +6 -9
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +29 -5
- package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +12 -3
- package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +11 -3
- package/package/corpus/hooks/README.md +2 -0
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +36 -24
- package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
- package/package/corpus/hooks/scripts/cratis-guard-writes.sh +2 -1
- package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
- package/package/corpus/rules/ai-distribution.md +7 -9
- package/package/corpus/rules/authoring-skills.md +25 -55
- package/package/corpus/rules/browser.md +10 -7
- package/package/corpus/rules/code-health-policy.txt +3 -3
- package/package/corpus/rules/code-health.md +8 -1
- package/package/corpus/rules/code-quality.csharp.md +3 -2
- package/package/corpus/rules/code-quality.md +5 -5
- package/package/corpus/rules/code-quality.typescript.md +4 -3
- package/package/corpus/rules/codescene-reference.txt +34 -0
- package/package/corpus/rules/codescene.md +5 -4
- package/package/corpus/rules/components.md +6 -8
- package/package/corpus/rules/concepts.md +15 -2
- package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
- package/package/corpus/rules/criticality-tiers.md +7 -35
- package/package/corpus/rules/csharp.md +13 -6
- package/package/corpus/rules/dialogs.md +8 -3
- package/package/corpus/rules/discoverability.md +8 -2
- package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
- package/package/corpus/rules/documentation.md +12 -7
- package/package/corpus/rules/editing-cratis-docs.md +8 -6
- package/package/corpus/rules/efcore.md +13 -9
- package/package/corpus/rules/efcore.specs.md +9 -5
- package/package/corpus/rules/elixir.md +12 -8
- package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
- package/package/corpus/rules/framework-dotnet.md +12 -6
- package/package/corpus/rules/framework.md +11 -7
- package/package/corpus/rules/frontend-quality.md +7 -7
- package/package/corpus/rules/frontend-testing.md +5 -3
- package/package/corpus/rules/general.md +8 -10
- package/package/corpus/rules/github-actions.md +11 -6
- package/package/corpus/rules/glossary.md +13 -13
- package/package/corpus/rules/go-engineering.md +13 -39
- package/package/corpus/rules/go.md +18 -139
- package/package/corpus/rules/guards-and-fuses.md +14 -60
- package/package/corpus/rules/issue-assignment.md +6 -9
- package/package/corpus/rules/java.md +8 -6
- package/package/corpus/rules/kotlin.md +12 -7
- package/package/corpus/rules/local-verification-and-delivery.md +8 -5
- package/package/corpus/rules/local-work-artifacts.md +11 -64
- package/package/corpus/rules/new-repository-intake.md +7 -28
- package/package/corpus/rules/operational-safety.md +26 -41
- package/package/corpus/rules/orleans.md +22 -5
- package/package/corpus/rules/profiles.md +8 -11
- package/package/corpus/rules/published-contracts.md +6 -25
- package/package/corpus/rules/react.md +9 -2
- package/package/corpus/rules/reactors.md +17 -5
- package/package/corpus/rules/review-reports.md +12 -94
- package/package/corpus/rules/scripting.md +5 -5
- package/package/corpus/rules/specs.csharp.md +11 -8
- package/package/corpus/rules/specs.elixir.md +9 -4
- package/package/corpus/rules/specs.md +7 -4
- package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
- package/package/corpus/rules/specs.typescript.md +8 -11
- package/package/corpus/rules/storybook.md +4 -7
- package/package/corpus/rules/typescript.md +8 -8
- package/package/corpus/rules/verification-discipline.md +6 -9
- package/package/corpus/rules/vertical-slices.md +29 -5
- package/package/corpus/rules/writing-correct-examples.md +12 -3
- package/package/corpus/rules/writing-cratis-docs.md +11 -3
- package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
- package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
- package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
- package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
- package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
- package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
- package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
- package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
- package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
- package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
- package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
- package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
- package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
- package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +92 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
- package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
- package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
- package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
- package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
- package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
- package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
- package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
- package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +281 -55
- package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
- package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
- package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
- package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
- package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
- package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
- package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
- package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
- package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
- package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
- package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +379 -31
- package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
- package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
- package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
- package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
- package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
- package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
- package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
- package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
- package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
- package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
- package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
- package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
- package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
- package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
- package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
- package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
- package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
- package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
- package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
- package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
- package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
- package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
- package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
- package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
- package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
- package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
- package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
- package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
- package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
- package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
- package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
- package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
- package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
- package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
- package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
- package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
- package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
- package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
- package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
- package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
- package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
- package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
- package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
- package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +80 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
- package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +161 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +57 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
- package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +57 -41
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
- package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
- package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +105 -45
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
- package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
- package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
- package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
- package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
- package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +57 -52
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
- package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
- package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
- package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
- package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
- package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
- package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
- package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
- package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
- package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
- package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
- package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
- package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
- package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
- package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
- package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
- package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
- package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
- package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
- package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
- package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
- package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
- package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
- package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
- package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
- package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
- package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
- package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
- package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
- package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
- package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
- package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
- package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
- package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
- package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
- package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
- package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
- package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
- package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
- package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
- package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
- package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
- package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
- package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
- package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
- package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
- package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
- package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
- package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
- package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
- package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
- package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
- package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
- package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
- package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
- package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
- package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
- package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
- package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
- package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
- package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
- package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
- package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
- package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
- package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
- package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
- package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
- package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
- package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
- package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
- package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
- package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
- package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
- package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
- package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
- package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
- package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
- package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
- package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
- package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
- package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
- package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
- package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
- package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
- package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
- package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
- package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
- package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
- package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
- package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
- package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
- package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
- package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
- package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
- package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
- package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
- package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
- package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
- package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
- package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
- package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
- package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
- package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
- package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
- package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
- package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
- package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
- package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
- package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
- package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
- package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
- package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
- package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
- package/package/corpus/skills/cratis-observability/references/go.md +292 -0
- package/package/corpus/skills/cratis-observability/references/java.md +236 -0
- package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
- package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
- package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
- package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
- package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
- package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
- package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
- package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
- package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
- package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
- package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
- package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
- package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
- package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
- package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
- package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
- package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
- package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
- package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
- package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
- package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
- package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
- package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
- package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
- package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
- package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
- package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
- package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
- package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
- package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
- package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
- package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
- package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
- package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
- package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
- package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
- package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
- package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
- package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
- package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
- package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
- package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
- package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
- package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
- package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
- package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
- package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
- package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
- package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
- package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
- package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
- package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
- package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
- package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
- package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
- package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
- package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
- package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
- package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
- package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
- package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
- package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
- package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
- package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
- package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
- package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
- package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +6 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
- package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
- package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
- package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
- package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
- package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
- package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
- package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
- package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
- package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
- package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
- package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
- package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
- package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
- package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
- package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
- package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
- package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
- package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
- package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
- package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
- package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
- package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
- package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
- package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
- package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
- package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
- package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
- package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
- package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
- package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
- package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
- package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
- package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
- package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
- package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
- package/package/profile-catalog.json +34 -2
- package/package.json +1 -1
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
- package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
- package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
- package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
- package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
- package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
- package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
- package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
- package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
- package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
- package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
- package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
- package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
- package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
- package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
- package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
- package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
- package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
- package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
- package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
- package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
- package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
- package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
- package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
- package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
- package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
- package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
- package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
- package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
- package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
- package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
- package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
- package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
- package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
- package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
- package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
- package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
- package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
- package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
- package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
|
@@ -1,25 +1,88 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Authorize Arc requests in Kotlin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use Arc's KSP-generated command handlers and query performers and run them through the Arc pipeline. Spring Boot auto-configures `CommandAuthorizationFilter` and `QueryAuthorizationFilter`; include them when assembling the pipelines yourself. Authenticate requests at the host. The Spring `ArcPrincipalFactory` captures the request identity before execution; Spring Security authorities lose the `ROLE_` prefix, and declared roles can also be resolved by servlet role checks. Supply a trusted factory if the default does not expose the roles, claims or scheme your rule needs. `IdentityDetailsProvider` enriches client identity details, not authorization.
|
|
4
|
+
|
|
5
|
+
## Declare admission
|
|
6
|
+
|
|
7
|
+
Names are illustrative. For sign-in alone, put `@Authorize` on the command. With the built-in evaluator, even **empty authorization metadata requires authentication**: omission does not make an operation public. To restrict a shift query further:
|
|
8
|
+
|
|
9
|
+
```kotlin
|
|
10
|
+
import io.cratis.arc.artifacts.ReadModel
|
|
11
|
+
import io.cratis.arc.authorization.*
|
|
12
|
+
|
|
13
|
+
@ReadModel
|
|
14
|
+
@Roles("Dispatcher", "Supervisor")
|
|
15
|
+
data class Shift(val label: String) {
|
|
16
|
+
companion object {
|
|
17
|
+
@JvmStatic fun internalShift() = Shift("On call")
|
|
18
|
+
|
|
19
|
+
@JvmStatic @AllowAnonymous fun publicShift() = Shift("Reception")
|
|
20
|
+
|
|
21
|
+
@JvmStatic
|
|
22
|
+
@Authorize(policy = "onDuty", roles = ["Supervisor"], schemes = ["staff-sso"])
|
|
23
|
+
fun escalationShift() = Shift("Escalation")
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`internalShift` inherits the class rule. A declaration on a query function or command `handle` **replaces** class authorization wholesale. KSP rejects `@AllowAnonymous` together with restrictions on the same declaration, or anonymous on both class and operation. Anonymous bypasses the built-in check, not other filters or host security.
|
|
29
|
+
|
|
30
|
+
After sign-in, policy, roles and schemes must each pass if specified. Repeated `@Roles` and `@Authorize(roles = …)` combine into **one** any-of set (case-sensitive). Roles and schemes also accept comma-separated entries; whitespace is trimmed. Schemes match `ArcPrincipal.authenticationScheme` case-insensitively; an absent scheme cannot match. A declaration does not install an authenticator.
|
|
31
|
+
|
|
32
|
+
In a Spring configuration register the policy by its exact bean name:
|
|
33
|
+
|
|
34
|
+
```kotlin
|
|
35
|
+
@Bean fun onDuty() = AuthorizationPolicy { caller ->
|
|
36
|
+
if (caller.claims.any { it.type == "duty" && it.value == "active" }) AuthorizationResult.success()
|
|
37
|
+
else AuthorizationResult.failure("Active duty required")
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`AuthorizationPolicy.evaluate` is suspending and receives only the principal. Without Spring, `ConcurrentAuthorizationPolicyRegistry().apply { register("onDuty", policy) }` supplies the registry for `AuthorizationEvaluator`; `find("onDuty")` returns null if absent. Blank registration names and duplicates are rejected; a missing declared policy denies access.
|
|
42
|
+
|
|
43
|
+
## Decisions that need the operation
|
|
44
|
+
|
|
45
|
+
Register an `AuthorizationCommandFilter` or `AuthorizationQueryFilter` bean for a rule shared across operations or dependent on the actual resource. These markers run before ordinary filters. Scope the rule explicitly and return an unauthorized result rather than a validation error. For example, with application-owned `ShiftAccess` and `ReleaseShift`:
|
|
46
|
+
|
|
47
|
+
```kotlin
|
|
48
|
+
class ReleaseGate(private val access: ShiftAccess) : AuthorizationCommandFilter {
|
|
49
|
+
override suspend fun execute(context: CommandContext): CommandResult<*> {
|
|
50
|
+
val release = context.command as? ReleaseShift ?: return CommandResult.success(context.correlationId)
|
|
51
|
+
val caller = context.principal
|
|
52
|
+
return if (caller.isAuthenticated && access.canRelease(caller.id, context.tenantId, release.shiftId))
|
|
53
|
+
CommandResult.success(context.correlationId)
|
|
54
|
+
else CommandResult.unauthorized(context.correlationId, "Release denied")
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Make `canRelease` deny when the authoritative record or key is missing or unreadable. For a query, match `context.queryName`, use `context.request.arguments` as lookup keys and return `QueryResult.unauthorized<Any?>(context.correlationId)` or `QueryResult.success<Any?>(context.correlationId)`. Exercise both pipelines with allowed, anonymous and wrong-role principals; verify denial before any data or effect.
|
|
60
|
+
|
|
61
|
+
## Recheck live delivery
|
|
62
|
+
|
|
63
|
+
Register a `GuardObservableQueryEmission` bean (from `io.cratis.arc.queries`) for a current-access lookup. For example, `access.currentlyPermitted` below returns a `CompletionStage<Boolean>` and reads current grants for the protected query:
|
|
4
64
|
|
|
5
65
|
```kotlin
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
data class BookRetired(val reason: String)
|
|
13
|
-
|
|
14
|
-
@Command
|
|
15
|
-
@Authorize(policy = "retireBooks")
|
|
16
|
-
data class RetireBook(val bookId: String, val reason: String) {
|
|
17
|
-
fun handle() = EventForEventSourceId(bookId, BookRetired(reason))
|
|
66
|
+
@Bean fun shiftGuard(access: ShiftAccess) = GuardObservableQueryEmission { emission ->
|
|
67
|
+
if (emission.queryName.value != access.protectedQueryName)
|
|
68
|
+
CompletableFuture.completedFuture(ObservableQueryEmissionVerdict.ALLOW)
|
|
69
|
+
else access.currentlyPermitted(emission.principal.id, emission.tenantId, emission.arguments)
|
|
70
|
+
.thenApply { permitted -> if (permitted) ObservableQueryEmissionVerdict.ALLOW
|
|
71
|
+
else ObservableQueryEmissionVerdict.DENY_AND_TERMINATE }
|
|
18
72
|
}
|
|
19
73
|
```
|
|
20
74
|
|
|
21
|
-
Use
|
|
75
|
+
Use `BlockingObservableQueryEmissionGuard { … }` for a synchronous verdict. Guards run even on the first emission (`isFirstEmission`); `SUPPRESS` skips only this emission. The most restrictive verdict wins; denial terminates and guard failures fail closed. Admission alone does not revalidate the subscription. Test by revoking access between two emissions.
|
|
76
|
+
|
|
77
|
+
## Trusted command execution
|
|
78
|
+
|
|
79
|
+
A trusted worker passes an explicit principal: `pipeline.execute(command, CommandExecutionOptions(correlationId, workerPrincipal, resolver))`. Do not manufacture roles for a web request. With Chronicle, put `@ExecuteCommandsAsSystem("Dispatcher")` (`io.cratis.arc.chronicle`) on the reactor class and pass returned commands to `ChronicleCommandSideEffectHandler.execute(value, reactorType, eventContext)`. Without the annotation that path uses the event's causing identity with no roles; the annotation grants only its declared roles, not privileges for independent calls.
|
|
22
80
|
|
|
23
|
-
|
|
81
|
+
## Not supported in this SDK
|
|
24
82
|
|
|
25
|
-
|
|
83
|
+
- Configurable undeclared-operation fallback and guest-evaluating named policies: declare requirements explicitly. For conditional guest access use `@AllowAnonymous` plus an independent fail-closed authorization filter.
|
|
84
|
+
- Resource-bearing named policies, receipt-time policy context and resource-free binding-failure opt-in: check bound resources in a filter; perform credential checks at the host even if binding fails. Capture trusted receipt time at ingress if needed.
|
|
85
|
+
- Built-in keyed recorded-state policy or state-aware guard helpers: inject the state reader into the filter or emission guard and deny on lookup failure.
|
|
86
|
+
- Authorization row-narrowing declaration: constrain the underlying query by authoritative access before counting, sorting and paging.
|
|
87
|
+
- Capability-credential scope ceiling: require exact scopes at a verifying host boundary in addition to Arc admission; a role alone is not a scope.
|
|
88
|
+
- Approval handoff: route to an approval-capable service or workflow before executing; sign-in or a policy pass is not approval.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# Python caller
|
|
2
2
|
|
|
3
|
-
Submit the request to the service that verifies the caller and enforces the policy.
|
|
3
|
+
Arc has no Python application SDK, so Python code cannot declare or enforce Arc authorization. Submit the request with the caller's credential to the service that owns the command or query; that service verifies the caller and enforces the policy.
|
|
@@ -1,11 +1,111 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Authorize an Arc operation on a Node server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Contents
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Authenticate, then declare admission
|
|
6
|
+
- Decide against the requested resource
|
|
7
|
+
- Enforce a shared gate
|
|
8
|
+
- Guard ongoing delivery
|
|
9
|
+
- Trusted server execution
|
|
10
|
+
- Not supported in this SDK
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
## Authenticate, then declare admission
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
Use `@cratis/arc.core` on the server. Names are illustrative. Configure one trusted identity boundary; for example, with deployment-owned issuer, audience and HTTPS key-set URL:
|
|
10
15
|
|
|
11
|
-
|
|
16
|
+
```ts
|
|
17
|
+
import { ArcApplication, authorize, command, jwtBearer } from '@cratis/arc.core';
|
|
18
|
+
|
|
19
|
+
const bearer = jwtBearer({ issuer, audience, jwksUrl: new URL(keysUrl), algorithms: ['RS256'] });
|
|
20
|
+
const builder = ArcApplication.createBuilder({ authentication: [bearer] });
|
|
21
|
+
|
|
22
|
+
@authorize()
|
|
23
|
+
@command()
|
|
24
|
+
class AcknowledgeShift {
|
|
25
|
+
handle() { /* record the acknowledgement */ }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
builder.add(AcknowledgeShift);
|
|
29
|
+
const app = await builder.build();
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
If the application uses generated bindings, call `builder.useGeneratedMetadata(metadata)` before adding or discovering artifacts. If the host already authenticates requests, configure `nativePrincipal: true` instead of Arc authentication handlers and supply the verified principal through the adapter's native context. Never trust a raw identity header or display cookie. Exercise the actual route with valid and absent credentials; only the former should reach the handler.
|
|
33
|
+
|
|
34
|
+
- `@authorize()` requires sign-in. Put it on the command **class**, not `handle`. No declaration alone imposes no sign-in requirement.
|
|
35
|
+
- `@roles('Dispatcher', 'Supervisor')` is the role gate and accepts either exact role; `@authorize({ roles: ['Dispatcher', 'Supervisor'] })` is equivalent and is the form to use when combining roles with a policy or scheme. Stack `@roles('OnDuty')` to require that role **as well**. A signed-in caller failing either group must be refused.
|
|
36
|
+
- `@authorize('ShiftAccess')` and `@authorize({ policy: 'ShiftAccess' })` require sign-in plus the named policy. For a principal-only test register, for example, `builder.addAuthorizationPolicy('ShiftAccess', (p, execution) => execution.tenantId !== undefined && p.roles.includes('Dispatcher'))` before build. Tenant selection alone is not authorization.
|
|
37
|
+
- For a route restricted to a credential source, configure `authenticationSchemes: { Workforce: bearer }` and apply `@authorize({ schemes: ['Workforce'], roles: ['Dispatcher'] })`. Schemes in one list are alternatives; roles and policy in the same declaration are additional checks. Unknown policies/schemes and multiple scheme declarations on one effective requirement are configuration errors: an unknown policy or scheme name fails `build()` with `InvalidAuthorizationConfiguration`.
|
|
38
|
+
- On a `@readModel()` class, use e.g. `@roles('Dispatcher')` as the baseline. On a `@query()` method, `@authorize()` **replaces** that baseline with any signed-in caller; `@allowAnonymous()` deliberately opens the method. Never stack anonymous and restricted declarations on the same target. Independent filters and definition callbacks still apply.
|
|
39
|
+
|
|
40
|
+
## Decide against the requested resource
|
|
41
|
+
|
|
42
|
+
Use a class policy when the decision needs scoped dependencies, the target descriptor or the request input. Policies run before schema parsing, also for malformed requests, so `resource.input` is the raw, untrusted request input: never trust its shape or expect schema coercions; parse it yourself and deny when it does not fit. Here `shiftKey` does that and `shiftAccess` reads authoritative membership (application code):
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
class ReadShift {
|
|
46
|
+
async authorize({ principal, target, resource }: AuthorizationPolicyContext) {
|
|
47
|
+
const key = shiftKey(resource.input);
|
|
48
|
+
return target.name === 'ShiftDetails' && key !== undefined &&
|
|
49
|
+
await shiftAccess(principal.id, key, resource.execution.signal);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
builder.addAuthorizationPolicy('ReadShift', ReadShift);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Apply `@authorize('ReadShift')` to the query. Both policy forms return a boolean or promise; fail closed on unreadable or missing state and honor cancellation. For constructor dependencies use `static inject = [ShiftStore]` and register the dependency with `builder.services.addScoped(ShiftStore)`.
|
|
56
|
+
|
|
57
|
+
For explicitly defined commands/queries, supply `authorization: { authenticated: true }`, `{ anonymous: true }`, or the same `roles`, `policy` and `schemes` fields as needed. `requirements: [{ roles: ['Dispatcher', 'Supervisor'] }, { roles: ['OnDuty'] }]` expresses AND across groups. A definition's separate `authorize: (input, ctx) => !!ctx.principal?.isAuthenticated && canRead(ctx.principal.id, input.shiftId)` runs after schema parsing and before validation, receives the parsed input (it is skipped when parsing fails), and returns a boolean or promise, **not** a result object; prefer it when the decision needs typed input. If a command handler itself must refuse before any effect, `return denied('Shift access required')` produces a denial rather than a validation error.
|
|
58
|
+
|
|
59
|
+
## Enforce a shared gate
|
|
60
|
+
|
|
61
|
+
Use scoped authorization filters for a decision shared across operations. Returning nothing continues; return the unauthorized result to stop. `operationName` identifies the declared operation; `command`/`query` is the parsed request, except that authorization filters also run on input that failed parsing, where it is the raw input, so check its shape before relying on it.
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
class CommandGate {
|
|
65
|
+
onExecution(c: CommandContext) {
|
|
66
|
+
if (!c.principal?.isAuthenticated) return unauthorizedCommandResult(c);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
class QueryGate {
|
|
70
|
+
onPerform(c: QueryContext) {
|
|
71
|
+
if (!c.principal?.isAuthenticated) return unauthorizedQueryResult(c);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
builder.services.addScoped(CommandGate).addScoped(QueryGate);
|
|
75
|
+
builder.addAuthorizationCommandFilter(CommandGate).addAuthorizationQueryFilter(QueryGate);
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Alternatively use discovered classes marked `@authorizationCommandFilter()` or `@authorizationQueryFilter()`. The blanket filters above also deny anonymous operations; explicitly account for any intended exceptions.
|
|
79
|
+
|
|
80
|
+
## Guard ongoing delivery
|
|
81
|
+
|
|
82
|
+
Admission at subscription is not a continuing entitlement. Register a scoped service in the server options and include its token in `query.observableEmissionGuards`. For example, with an application lookup that checks the current entitlement for the indicated query and input:
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
const token = serviceToken<ObservableEmissionGuard>('shift access');
|
|
86
|
+
const options = {
|
|
87
|
+
services: [{ token, lifetime: ServiceLifetime.Scoped, factory: (): ObservableEmissionGuard => ({
|
|
88
|
+
async check({ queryName, input, context, signal }) {
|
|
89
|
+
return context.principal?.isAuthenticated && await stillAllowed(context.principal.id, queryName, input, signal)
|
|
90
|
+
? ObservableEmissionDecision.Allow : ObservableEmissionDecision.DenyAndTerminate;
|
|
91
|
+
}
|
|
92
|
+
}) }],
|
|
93
|
+
query: { observableEmissionGuards: [token] }
|
|
94
|
+
};
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Guards inspect each rendered result (including current snapshots); `data` and `isFirstEmission` are available. `Suppress` skips delivery without terminating, `DenyAndTerminate` ends it, and the most restrictive decision wins. Revoke access midstream and check that the next result is not delivered.
|
|
98
|
+
|
|
99
|
+
## Trusted server execution
|
|
100
|
+
|
|
101
|
+
For a trusted background command use `await app.server.execute(commandInstance, { ...execution, principal: workerPrincipal })` with a server-owned execution context and least-privileged authenticated principal; inspect `isSuccess`. Never elevate an incoming request. For Chronicle reactor **returned** commands, decorate the reactor class with `@executeCommandsAsSystem('ShiftWriter')` from `@cratis/arc.chronicle`; by default returned commands have no principal. This does not grant roles to manual calls or prevent replay. With an Arc-owned client `withChronicle` wires delivery; for a caller-owned client set `reactorResultHandler: reactorCommandResultHandler(() => app.server)` before connecting.
|
|
102
|
+
|
|
103
|
+
## Not supported in this SDK
|
|
104
|
+
|
|
105
|
+
- Undeclared-operation fallback: declare each protected operation or install shared gates. Protect direct host routes separately.
|
|
106
|
+
- Guest named policy: named policies require sign-in. For a deliberately guest-capable operation use a definition callback that tests guest access explicitly.
|
|
107
|
+
- Named schemes on observable queries: use trusted default authentication and an admission rule instead.
|
|
108
|
+
- Recorded-state policy/guard base classes: read trusted state in the class policy or emission guard; deny on missing data or lookup failure. No receipt timestamp in the policy execution context: if timing matters, capture it at trusted ingress.
|
|
109
|
+
- Automatic row narrowing: add the caller's access predicate to the underlying query before counting, ordering or paging.
|
|
110
|
+
- Scope-ceiling declaration: independently require the exact scope from a verified credential as well as product authorization. Approval handoff: delegate to an approval-capable workflow before execution; a role is not approval.
|
|
111
|
+
- Resource-free requirement marker: named policies always run before parsing and authorization filters also run on input that failed parsing, so a rule that needs the resource must deny raw input it cannot parse; a malformed request is not evidence the resource would pass.
|
|
@@ -1,62 +1,105 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-arc-code-analysis-typescript
|
|
3
|
-
description: Use when adding
|
|
3
|
+
description: Use when adding Arc's static lint to a Node Arc server project, choosing its preset or options, or fixing an `arc-core/*` finding such as missing-field, ARC0004 or ARCCHR0006. Not for errors the Arc builder throws at startup (use cratis-arc-host-application) or C# Arc analyzer diagnostics (use cratis-code-review).
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Lint Arc server artifacts
|
|
7
|
+
# Lint Arc server artifacts before startup
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
and validator classes before `build()` or the first request. It targets ESLint
|
|
11
|
-
10 flat config and `typescript-eslint`. It is for Node server artifacts, not the Arc frontend. Install the plugin and tooling in the server project:
|
|
9
|
+
## Contents
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
- What it is
|
|
12
|
+
- When to use it
|
|
13
|
+
- How it behaves
|
|
14
|
+
- Default path
|
|
15
|
+
- Capability catalog
|
|
16
|
+
- Pitfalls
|
|
17
|
+
- Route near misses
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
// eslint.config.mjs
|
|
19
|
-
import arc from '@cratis/eslint-plugin-arc-core';
|
|
20
|
-
import tseslint from 'typescript-eslint';
|
|
19
|
+
## What it is
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
...tseslint.configs.recommended,
|
|
24
|
-
arc.configs['recommended-type-checked']
|
|
25
|
-
);
|
|
26
|
-
```
|
|
21
|
+
Arc's server lint plugin reads command, read-model, validator and reactor declarations and reports binding, discovery, authorization and Chronicle mistakes while code is edited, before the builder validates the graph at startup or a request fails on the wire. Every finding is named `arc-core/<rule>`; a rule keeps a .NET `ARC`/`ARCCHR` ID only where the same mistake exists on a Node server. This skill covers only that plugin for the Node Arc server; C# Arc analyzer diagnostics belong to `cratis-code-review`.
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Node server `package.json` → typescript, `*.kt` → kotlin, `*.java` → java, `go.mod` → go, `mix.exs` → elixir); only the project's languages are installed.
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
| --- | --- | --- |
|
|
32
|
-
| `recommended` | no | every rule except `query-argument-name`, `arcchr0006` and `arcchr0010`; type-dependent comparisons are skipped |
|
|
33
|
-
| `recommended-type-checked` | yes (`projectService`) | `recommended` plus `arcchr0006` and `arcchr0010` |
|
|
25
|
+
## When to use it
|
|
34
26
|
|
|
35
|
-
|
|
27
|
+
- Use it on every Node Arc server project, in the editor and in CI: it catches mistakes that otherwise appear only at startup or as silently missing data (unmarked fields, undiscovered artifacts, discarded values).
|
|
28
|
+
- It complements, never replaces, runtime checks. Decorators that throw when misapplied, the builder's startup validation (missing services, lifetimes, parameter binding, stale generated metadata) and the proxy generator's metadata check stay authoritative; a clean lint is not proof that the server starts.
|
|
29
|
+
- Its rules look only for Arc server declarations, but the presets apply to every TypeScript file: generated proxies and the generated metadata module are parsed and linted unless the project ignores them.
|
|
36
30
|
|
|
37
|
-
|
|
31
|
+
## How it behaves
|
|
38
32
|
|
|
39
|
-
|
|
33
|
+
- **Recognition is by import.** A rule sees an artifact only when its Arc decorators are imported directly from the Arc core package, field markers from Fundamentals, and Chronicle markers from the Chronicle client package or its `reactors`, `events` or `compliance` entry points (aliases and namespace imports count). Wrapper decorators and local re-export modules are invisible, so such artifacts get no findings.
|
|
34
|
+
- **Two presets, both strict.** Each enables its rules as errors on all `.ts` and `.tsx` files. Neither sets a parser or ignores anything: the project supplies the TypeScript parser and its own ignores.
|
|
35
|
+
- **Type information widens coverage.** Without it, ARC0003 and ARC0015 report nothing and the binding rules compare counts only, without saying so.
|
|
36
|
+
- **Rules are bounded static analysis.** Each recognizes specific shapes (stated per rule in the language reference); a clean run is not proof of correctness, especially for the Chronicle rules.
|
|
37
|
+
- **No automatic fixes.** The right fix depends on intent (wire contract, intended access, replay behavior), so apply it by hand.
|
|
38
|
+
|
|
39
|
+
## Default path
|
|
40
|
+
|
|
41
|
+
1. Install the plugin with its peer tooling and add the type-checked preset after the TypeScript-ESLint recommended configuration in the server's flat config (see Setup in your language reference).
|
|
42
|
+
2. Add an explicit ignore for generated output: the proxy output directory and the generated metadata module. No preset excludes them.
|
|
43
|
+
3. Make every linted file part of a TypeScript project, or ignore it: the type-checked preset uses the project service and fails on files that no project configuration covers.
|
|
44
|
+
4. Run the linter over the server source in CI beside the type check and specs. When the project generates artifact metadata, also append the metadata check flag to its existing metadata-generation command in CI (`cratis-arc-generate-proxies` owns that setup); otherwise stale metadata surfaces only when the host registers it at startup.
|
|
45
|
+
5. Done when the run reports no `arc-core/*` finding, and a deliberately broken artifact (a command property without a field marker) fails with `arc-core/missing-field`.
|
|
46
|
+
|
|
47
|
+
Choose the untyped `recommended` preset only when the linted files cannot get TypeScript project information, and accept losing the type-dependent checks.
|
|
48
|
+
|
|
49
|
+
## Capability catalog
|
|
50
|
+
|
|
51
|
+
Exact triggers, boundaries and fixes for each rule: see Fix a finding in your language reference. Options and opt-in rules: see Options in your language reference.
|
|
52
|
+
|
|
53
|
+
**Presets and options**
|
|
54
|
+
|
|
55
|
+
- `recommended-type-checked` (default): every rule except the opt-in name rule, with project-service type information; the only preset that runs ARCCHR0006 and ARCCHR0010.
|
|
56
|
+
- `recommended`: the same rules minus ARCCHR0006 and ARCCHR0010, with all type comparisons skipped; use only without type information.
|
|
57
|
+
- `query-argument-name` (opt-in, in neither preset): requires each query wire argument name to equal its local parameter name; enable when the team adopts that convention, and satisfy it by renaming the local parameter, never the wire name.
|
|
58
|
+
- `validator-target` option `generatedMetadata`: accepts validators without an explicit target; enable only for files whose host installs generated metadata that CI checks.
|
|
40
59
|
|
|
41
|
-
|
|
42
|
-
and `missing-field` describe things `build()` or the wire schema will break on.
|
|
43
|
-
- Arc decorators must come from `@cratis/arc.core`, and `@field` from `@cratis/fundamentals`; wrapper decorators are not recognized.
|
|
44
|
-
- The Chronicle rules need the decorator imports to come from
|
|
45
|
-
`@cratis/chronicle` or `@cratis/chronicle/reactors`; the rule cannot prove a
|
|
46
|
-
`this.client` field belongs to the reactor, so a non-match is not a clean bill.
|
|
47
|
-
- Lint complements, not replaces, `build()`: the builder validates the whole
|
|
48
|
-
graph (missing services, lifetime mismatches, misplaced decorators, stale
|
|
49
|
-
metadata) and `arc-proxygenerator --check-metadata` catches stale generated
|
|
50
|
-
metadata in CI.
|
|
60
|
+
**Model binding and discovery**
|
|
51
61
|
|
|
52
|
-
|
|
62
|
+
- `missing-field`: a non-private command or read-model property without a field marker; the wire schema omits it.
|
|
63
|
+
- `declared-field`: a field marker on a declare-only property, which the emitted class does not contain.
|
|
64
|
+
- `inject-binding`: a command handler's injection tokens disagree in count or provable type with its parameters (one extra leading parameter may take the prepared value).
|
|
65
|
+
- `query-binding`: explicit query descriptors disagree in count with the parameters before the first default or rest parameter, or in provable type.
|
|
66
|
+
- `misplaced-decorator`: query, injection or method-level authorization markers on a member where Arc ignores or rejects them.
|
|
67
|
+
- `unexported-artifact`: a command, read model or validator that is not exported, so discovery never registers it.
|
|
68
|
+
- `validator-target`: a validator subclass without an explicit target, which Arc never registers.
|
|
69
|
+
|
|
70
|
+
**Commands, queries and authorization**
|
|
71
|
+
|
|
72
|
+
- `arc0002`: a class shaped like a command (public instance fields and an instance handler) that is not marked as one.
|
|
73
|
+
- `arc0003` (type information): a separate class handling a command; Arc runs only the command's own handler.
|
|
74
|
+
- `arc0004`: a command with no instance handler, own or inherited.
|
|
75
|
+
- `arc0005`: a preparation step returning a value that the handler has no parameter for.
|
|
76
|
+
- `arc0010`: an async command handler with no asynchronous work.
|
|
77
|
+
- `arc0012`: a built-in error thrown from a command, validator or read model.
|
|
78
|
+
- `arc0014`: a query method with type parameters, which an HTTP caller cannot supply.
|
|
79
|
+
- `arc0015` (type information): a query converting a primitive parameter into a concept inside its body, which skips concept validation.
|
|
80
|
+
- `arc0019`: anonymous access combined with sign-in or roles on one declaration.
|
|
81
|
+
|
|
82
|
+
**Chronicle integration**
|
|
83
|
+
|
|
84
|
+
- `arcchr0003`: a reactor appending directly to a store it obtained instead of returning the event.
|
|
85
|
+
- `arcchr0006` (type-checked preset): a reactor returning a command with no replay decision for that event.
|
|
86
|
+
- `arcchr0007`: a command's handler or preparation step appending directly instead of returning events.
|
|
87
|
+
- `arcchr0009`: a command field whose name reads as a secret and would be written to the causation of every appended event.
|
|
88
|
+
- `arcchr0010` (type-checked preset): a keyless command returning a plain Guid beside an event, so the Guid does not select the event source; return it as the event-source response or give the command a key.
|
|
89
|
+
|
|
90
|
+
**Not mapped:** the .NET IDs without a Node counterpart, and why, are listed under Fix a finding in your language reference.
|
|
91
|
+
|
|
92
|
+
## Pitfalls
|
|
53
93
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
94
|
+
- A suppression hides the finding, not the failure: `missing-field`, `unexported-artifact` and `validator-target` describe data or artifacts that the runtime drops without an error.
|
|
95
|
+
- Renaming a query's wire argument to satisfy a naming rule changes the HTTP contract and every generated proxy; rename the local parameter.
|
|
96
|
+
- Resolving ARC0019 by deleting the restriction can expose a protected operation. Keep the intended access.
|
|
97
|
+
- For ARCCHR0006, once-only skips the effect during replay but does not stop redelivery after recovery, so the command must stay safe to run twice. Skip replay only for effects that must not repeat; otherwise add a replay handler for the same event.
|
|
98
|
+
- ARCCHR0009 is a name heuristic over a fixed word list. Names containing password, secret, token, credential or apiKey are withheld at runtime and never reported; any other secret is recorded unless marked. Mark an operational secret field not-audited and personal data PII, never one for the other.
|
|
58
99
|
|
|
59
100
|
## Route near misses
|
|
60
101
|
|
|
61
|
-
-
|
|
62
|
-
-
|
|
102
|
+
- Declaring the artifacts the rules check: `cratis-arc-declare-command`, `cratis-arc-expose-query`, `cratis-arc-validation-typescript`, `cratis-arc-authorize-request`.
|
|
103
|
+
- Errors thrown when the builder starts or registers generated metadata: `cratis-arc-host-application`; generating and checking that metadata: `cratis-arc-generate-proxies`.
|
|
104
|
+
- Replay-safe reactor effects: `cratis-chronicle-react-to-fact`. Personal data in events and read models: `cratis-chronicle-protect-personal-data`.
|
|
105
|
+
- C# Arc analyzer diagnostics: `cratis-code-review`.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Fix `arc-core` findings
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Binding and discovery rules
|
|
6
|
+
- Command, query and authorization rules
|
|
7
|
+
- Chronicle rules
|
|
8
|
+
- .NET IDs without a TypeScript rule
|
|
9
|
+
|
|
10
|
+
Each rule is named `arc-core/<rule>`. "Reports" is the exact shape the rule recognizes; "Misses" is what it cannot see, so a clean run is not proof there. No rule offers an automatic fix. Class and event names are illustrative.
|
|
11
|
+
|
|
12
|
+
## Binding and discovery rules
|
|
13
|
+
|
|
14
|
+
- **`missing-field`.** Reports: a non-static property on a `@command()` or `@readModel()` class without `@field`, when it is public or `protected`. Skips `private` and `#private` members, names starting with `_`, and `declare` properties. Fix: add `@field(Type)` if the property is wire data, because the wire schema omits unmarked properties; make it `private` or `#` if it is internal state. A `declare` property is never emitted, so it cannot carry wire data either.
|
|
15
|
+
- **`declared-field`.** Reports: `@field` on a `declare` property (other decorators are not checked). Fix: drop `declare` and use a definite assignment, `@field(String) note!: string;`.
|
|
16
|
+
- **`inject-binding`.** Reports: `@inject(...)` on `handle` whose token count differs from the parameters before the first default or rest parameter, or (with type information) a class token whose instance type cannot be the parameter's type. Misses: opaque tokens, `@inject` on `provide`. Arc binds tokens by position. When the command defines `provide()` and the token list has no `provided(Type)`, exactly one extra **leading** `handle` parameter receives the value `provide()` returned. Parameters from the first default or rest parameter on are not counted. Fix: put the prepared value first, then one token per remaining parameter in order:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
@command()
|
|
20
|
+
export class AssignShift {
|
|
21
|
+
@field(ShiftId) shiftId!: ShiftId;
|
|
22
|
+
provide() { return new Roster(); }
|
|
23
|
+
|
|
24
|
+
@inject(Scheduler)
|
|
25
|
+
handle(roster: Roster, scheduler: Scheduler) { /* … */ }
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
To bind the prepared value at another position, list `provided(Roster)` at that position instead.
|
|
30
|
+
- **`query-binding`.** Reports: on a `@query(...)` with explicit descriptors (`argument(...)`, `service(...)`, `queryOptions()`; a leading options object is not counted), a descriptor count that differs from the parameters before the first default or rest parameter, or (with type information) an `argument` or `service` token that cannot produce its parameter. Skips bare `@query()`, which uses inferred metadata. Fix: one descriptor per bound parameter, in order. Do not add a descriptor for a parameter with a default value: that fails this rule and startup. For an optional wire argument, use `argument('limit', Number, { optional: true })` on a parameter without a default and handle the missing value in the body.
|
|
31
|
+
- **`query-argument-name`** (opt-in). Reports: a string-literal `argument('wireName', …)` whose name differs from the parameter at the same position. Arc never uses the local name. Fix: rename the local parameter; renaming the wire argument changes the query string every caller and generated proxy sends.
|
|
32
|
+
- **`misplaced-decorator`.** Reports: `@query` not on a static method of a `@readModel()` class; `@inject` not on an instance `handle` or `provide` of a `@command()` class; method-level `@authorize`, `@roles` or `@allowAnonymous` not on a static `@query` method of a `@readModel()` class; any of these on a property. Fix: move the decorator to its supported site. Command authorization goes on the command class.
|
|
33
|
+
- **`unexported-artifact`.** Reports: a `@command()`, `@readModel()` or `@validator()` class that is not exported. An inline `export` and an `export { AssignShift }` list in the same file both count. Fix: export it; discovery registers only exported declarations.
|
|
34
|
+
- **`validator-target`.** Reports: a class extending `CommandValidator`, `QueryValidator`, `ConceptValidator` or `ModelValidator` without `@validator(Target)`. Fix: add `@validator(AssignShift)`. Use the `generatedMetadata` option (Options in the language reference) only when generated metadata is installed and checked in CI.
|
|
35
|
+
|
|
36
|
+
## Command, query and authorization rules
|
|
37
|
+
|
|
38
|
+
- **`arc0002`.** Reports: an undecorated, non-abstract class with a public (not `private` or `protected`) instance property and a non-static, non-private `handle()`. Skips names ending in `Helper` or `Extensions`; with type information, a handler taking a command is left to `arc0003`. Fix: if it is a command, add `@command()` and `@field` on its wire properties. If it is a service, make its state `private` or `protected`.
|
|
39
|
+
- **`arc0003`** (type information only). Reports: an undecorated class whose instance `handle()` takes a `@command()` class as its first parameter. Arc runs only `handle()` on the command instance. Fix: move the logic into the command's own `handle()` and inject collaborators with `@inject`.
|
|
40
|
+
- **`arc0004`.** Reports: a `@command()` with no instance `handle()`, own or inherited. A `static handle` does not count; TypeScript `private` and `protected` handlers do. Fix: add an instance `handle()`.
|
|
41
|
+
- **`arc0005`.** Reports: `provide()` directly returning a value while `handle()` declares no parameters and none is inherited. Returning `undefined`, `void …`, `rejected(...)` or `denied(...)` is exempt; returns nested in conditions or blocks are not checked. Fix: add a leading `handle` parameter for the value, or stop returning it.
|
|
42
|
+
- **`arc0010`.** Reports: an `async handle()` on a `@command()` with no `await`, no `for await`, and no `return` of a non-literal value directly in its body; awaits inside nested callbacks do not count, and returning a literal or `undefined` does not count as asynchronous. Fix: remove `async` only when no caller depends on the returned promise and turning a rejected promise into a synchronous throw is acceptable. Otherwise await the real asynchronous work, or keep `async` and suppress the line with that reason.
|
|
43
|
+
- **`arc0012`.** Reports: `throw new Error(...)` or another built-in error (`TypeError`, `RangeError`, `ReferenceError`, `SyntaxError`, `URIError`, `EvalError`, `AggregateError`, with or without `new`) written inside a `@command()`, `@validator()` or `@readModel()` class. Misses: throws in helpers and through aliases. Fix: throw a domain-named error class (`class ShiftAlreadyAssigned extends Error {}`); for invalid input, reject it in a validator instead of throwing.
|
|
44
|
+
- **`arc0014`.** Reports: a `@query()` method declaring its own type parameters, such as `static all<T>()`. Fix: use concrete parameter and return types.
|
|
45
|
+
- **`arc0015`** (type information only). Reports: in a `@query` method of a `@readModel()` class, `new SomeConcept(parameter)` where `parameter` is a primitive-typed method parameter. The pipeline validates the declared argument, not a concept built later. Fix: declare the argument as the concept, `@query(argument('shiftId', ShiftId))` with `static byShift(shiftId: ShiftId)`. Review optional and search arguments before changing their declared type.
|
|
46
|
+
- **`arc0019`.** Reports: `@allowAnonymous()` together with `@authorize()` or `@roles()` on the same class or the same method. A class restriction overridden by a method-level `@allowAnonymous()` is not reported. Fix: decide the intended access and keep only that. If the operation must be protected, remove `@allowAnonymous()`; remove the restriction only when the operation is deliberately public.
|
|
47
|
+
|
|
48
|
+
## Chronicle rules
|
|
49
|
+
|
|
50
|
+
- **`arcchr0003`.** Reports: in a `@reactor()` class, a direct `this.<field>.eventLog.append(...)` or `appendMany(...)` (also `.transactional`) when that field is initialized from, or assigned earlier in the same method from, `getEventStore(...)` or `getStore(...)` called on `this.client` or `this.runtime`. Misses: stores from other clients, uninitialized fields, helpers and callbacks; it cannot prove the store belongs to the reactor. Fix: return the event (or several) from the handler so Chronicle appends it.
|
|
51
|
+
- **`arcchr0006`** (type-checked preset only). Reports: a reactor handler that returns a `@command()` instance (directly, through a top-level promise, one level of array, or a `this.helper()` in the same reactor) when neither the handler nor the reactor is `@onceOnly()` and the reactor has no replay handler for that event. Misses: handlers whose name is not the camel-cased event class name or whose first parameter is not typed as that `@eventType()` class, classes from compiled packages, `any`/`unknown` returns, and commands executed through the server instead of returned. It does not judge whether repeating the command is safe. Fix by deciding what replay does with the effect:
|
|
52
|
+
- The effect must not repeat on replay (a notification, a payment request): mark the handler, or the whole reactor, `@onceOnly()`.
|
|
53
|
+
- Replay must rebuild or adjust the effect: add a replay handler for the **same** event, a method named `replay` plus the event class name or one marked `@replay(ShiftAssigned)`. It replaces the live handler during replay, even if it returns nothing.
|
|
54
|
+
|
|
55
|
+
In both cases keep the command safe to run twice: once-only does not stop redelivery after failed-partition recovery.
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
import { onceOnly, reactor } from '@cratis/chronicle/reactors';
|
|
59
|
+
|
|
60
|
+
@reactor()
|
|
61
|
+
export class ShiftNotifications {
|
|
62
|
+
@onceOnly()
|
|
63
|
+
shiftAssigned(event: ShiftAssigned): NotifyWorker {
|
|
64
|
+
return new NotifyWorker(event.workerId);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
- **`arcchr0007`.** Reports: in a `@command()`'s `handle()` or `provide()`, a direct `eventLog.append(...)` or `appendMany(...)` (also `.transactional`) on a store held in a `this` field, on a store from `getStore(...)` called on a `this` field, or on a store from an injected `ChronicleReadModels` parameter, through a local variable or inline. Misses: helpers, callbacks and stores from anywhere else. Fix: return the event (or a tuple of events and a response) from `handle()` so it joins the command's append batch. To target another event source, return `eventForEventSourceId({ eventSourceId, event })`.
|
|
69
|
+
- **`arcchr0009`.** Runs only when `@cratis/arc.chronicle` resolves from the linted file. Reports: a field or constructor parameter property of a `@command()` whose camel-case words (or adjacent pairs) include Passphrase, PrivateKey, AccessKey, Pin, Otp, Cvv, Cvc, SecurityCode or AuthorizationHeader, unless the field is marked `@notAudited()` or `@pii()`, the command class is marked `@pii()` (which withholds all its values), or the field is annotated `number`, `boolean`, `Date`, `Guid`, `DateOnly`, `TimeOnly` or `TimeSpan`. Names containing password, secret, token, credential or apiKey (any case) are withheld from causation at runtime and are never reported; do not mark them. Private fields are checked too. Misses: computed and inherited fields, and types hidden behind aliases. At runtime every other own string, number, boolean, Guid, date or time value of the command, and every concept wrapping one, is written to the causation of every event it appends. Fix: mark an operational secret (a passphrase, one-time code, key) `@notAudited()` from `@cratis/arc.chronicle`; mark personal data about a person `@pii()` from `@cratis/chronicle/compliance` instead (`cratis-chronicle-protect-personal-data`). Then review the remaining fields: a secret whose name the heuristic misses is recorded unless marked.
|
|
70
|
+
- **`arcchr0010`** (type-checked preset only). Reports: a `@command()` with no own `@key()` field, `getKey()` or `getEventSourceId()` whose `handle()` returns `tuple(guid, new SomeEvent())`, where `guid` is a Fundamentals `Guid` (`Guid.create()`, `Guid.parse(...)` or a variable) and the event is a direct `new` of an `@eventType()` class. The Guid is only a response; the event goes to a new random event source on every execution. Misses: commands that extend another class, string ids, event factories, returns inside loops, `switch` or `try`, and events from compiled packages. Fix, when the id should identify the event source:
|
|
71
|
+
- return `tuple(eventSourceIdResponse(id.toString()), new ShiftOpened())`, which appends the event to `id`, overriding any key, and returns `id` to the caller; or
|
|
72
|
+
- give the command a key: a `@key()` field, `getKey()`, or `getEventSourceId()` (which takes precedence), so every event it returns goes to that event source.
|
|
73
|
+
|
|
74
|
+
Keep the plain Guid response when it is not meant to route the event.
|
|
75
|
+
|
|
76
|
+
## .NET IDs without a TypeScript rule
|
|
77
|
+
|
|
78
|
+
- **ARC0001:** queries may return any shape.
|
|
79
|
+
- **ARC0006:** `commandReadModel(Type)` already rejects a missing model unless `{ optional: true }` is passed.
|
|
80
|
+
- **ARC0007–ARC0009:** TypeScript has classes, not records; concepts are classes extending `ConceptAs`.
|
|
81
|
+
- **ARC0011:** roles are strings; there is no `nameof`.
|
|
82
|
+
- **ARC0013:** validation selectors are captured, never invoked on input, and unwrap concepts automatically.
|
|
83
|
+
- **ARC0016–ARC0018:** operations are returned `CommandOperation` objects, not annotated methods.
|
|
84
|
+
- **ARC0020–ARC0021:** ASP.NET Core attributes and authentication schemes do not exist in the Node host.
|
|
85
|
+
- **ARCCHR0001:** there is no aggregate `On` method-signature convention to check.
|
|
86
|
+
- **ARCCHR0002:** a second `@key()` on one command throws when the class is defined.
|
|
87
|
+
- **ARCCHR0004:** an explicit event type id equal to the class name is not redundant here: it keeps the persisted identity stable across minification or renaming.
|
|
88
|
+
- **ARCCHR0005:** `commandReadModel(Type)` without an owner fails at startup, but an event returned from a command on a host without `withChronicle` becomes an ordinary response and nothing reports it; check the host wiring.
|
|
89
|
+
- **ARCCHR0008:** there are no data-annotation keys.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Lint a Node Arc server with `@cratis/eslint-plugin-arc-core`
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Setup
|
|
6
|
+
- Run it in CI
|
|
7
|
+
- Options
|
|
8
|
+
- What the rules recognize
|
|
9
|
+
- Fix a finding
|
|
10
|
+
- When the plugin does not load or rules never fire
|
|
11
|
+
|
|
12
|
+
Paths and class names below are illustrative.
|
|
13
|
+
|
|
14
|
+
## Setup
|
|
15
|
+
|
|
16
|
+
Install the plugin and its peer tooling in the server project. `typescript-eslint` supplies the TypeScript parser; `typescript` must already be installed:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm install --save-dev @cratis/eslint-plugin-arc-core eslint typescript-eslint
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Add the type-checked preset after the TypeScript-ESLint recommended configuration in the flat config, with an explicit ignore for generated output, because neither preset ignores anything:
|
|
23
|
+
|
|
24
|
+
```javascript
|
|
25
|
+
// eslint.config.mjs
|
|
26
|
+
import arc from '@cratis/eslint-plugin-arc-core';
|
|
27
|
+
import tseslint from 'typescript-eslint';
|
|
28
|
+
|
|
29
|
+
export default tseslint.config(
|
|
30
|
+
{ ignores: ['Web/src/generated/**', 'Features/generatedMetadata.ts'] },
|
|
31
|
+
...tseslint.configs.recommended,
|
|
32
|
+
arc.configs['recommended-type-checked']
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
A configuration object containing only `ignores` excludes those paths from every rule. List the proxy output directory and the generated metadata module that the project actually uses.
|
|
37
|
+
|
|
38
|
+
The type-checked preset turns on `parserOptions.projectService`. A linted file that no `tsconfig.json` includes fails to parse: add it to a project, or ignore it. Replace the preset with `arc.configs.recommended` only when the files cannot get type information; it drops `arcchr0006` and `arcchr0010`, and `arc0003` and `arc0015` then report nothing.
|
|
39
|
+
|
|
40
|
+
## Run it in CI
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
npx eslint src
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Substitute the server source directory. Run it beside `tsc` and the specs. Every enabled rule reports as an error, so any finding fails the step.
|
|
47
|
+
|
|
48
|
+
When the project generates artifact metadata, append `--check-metadata` to the existing `arc-proxygenerator --project … --metadata <file>` command in CI. The check needs `--metadata`, cannot be combined with `--watch`, writes nothing and reports that the generated artifact metadata is current. Without it, stale metadata fails only at startup, when `builder.useGeneratedMetadata(metadata)` rejects it. `cratis-arc-generate-proxies` owns the generation command itself.
|
|
49
|
+
|
|
50
|
+
## Options
|
|
51
|
+
|
|
52
|
+
**Matching query argument names (opt-in).** Arc binds query descriptors to method parameters by position, so a wire name may differ from the local name:
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
@query(argument('shiftId', ShiftId))
|
|
56
|
+
static byShift(id: ShiftId) { /* the wire argument shiftId arrives as id */ }
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Enable `query-argument-name` when the team wants wire and local names to match:
|
|
60
|
+
|
|
61
|
+
```javascript
|
|
62
|
+
{ rules: { 'arc-core/query-argument-name': 'warn' } }
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
To fix its finding, rename the local parameter (`id` → `shiftId`). Renaming the wire argument changes the query string that callers and generated proxies send.
|
|
66
|
+
|
|
67
|
+
**Validators registered by generated metadata.** With generated metadata, Arc reads a validator's generic target from source, so `@validator(Target)` is optional. Scope the option to the files compiled with that metadata:
|
|
68
|
+
|
|
69
|
+
```javascript
|
|
70
|
+
{ files: ['Features/**/*.ts'], rules: { 'arc-core/validator-target': ['error', { generatedMetadata: true }] } }
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The option only silences the finding; it does not register the validator. Enable it only when the host calls `builder.useGeneratedMetadata(metadata)` before `discover()` or `add()` and CI runs `--check-metadata`; otherwise the validator may never register. Verify that invalid input is rejected.
|
|
74
|
+
|
|
75
|
+
## What the rules recognize
|
|
76
|
+
|
|
77
|
+
Each decorator must be imported directly from its package; aliases (`import { command as cmd }`) and namespace imports (`arc.command()`) count, but wrapper decorators and local re-export modules do not:
|
|
78
|
+
|
|
79
|
+
| Marker | Package |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| `@command`, `@readModel`, `@query`, `argument`, `service`, `@inject`, `provided`, `@validator`, `@authorize`, `@roles`, `@allowAnonymous`, `@key`, `tuple`, validator bases | `@cratis/arc.core` |
|
|
82
|
+
| `@field` | `@cratis/fundamentals` |
|
|
83
|
+
| `@notAudited`, `eventSourceIdResponse` | `@cratis/arc.chronicle` |
|
|
84
|
+
| `@reactor`, `@onceOnly`, `@replay` | `@cratis/chronicle` or `@cratis/chronicle/reactors` |
|
|
85
|
+
| `@eventType` | `@cratis/chronicle` or `@cratis/chronicle/events` |
|
|
86
|
+
| `@pii` | `@cratis/chronicle` or `@cratis/chronicle/compliance` |
|
|
87
|
+
|
|
88
|
+
`arcchr0009` additionally runs only when `@cratis/arc.chronicle` resolves from the linted file.
|
|
89
|
+
|
|
90
|
+
## Fix a finding
|
|
91
|
+
|
|
92
|
+
Read [Rule fixes](typescript-rule-fixes.md) for each rule's exact trigger, what it cannot see, and the fix that preserves behavior.
|
|
93
|
+
|
|
94
|
+
## When the plugin does not load or rules never fire
|
|
95
|
+
|
|
96
|
+
- Compare the installed plugin's `peerDependencies` (`eslint`, `@typescript-eslint/parser`, `typescript`) with the installed packages, and install any that are missing or outside the range.
|
|
97
|
+
- Confirm that the flat config applies the TypeScript parser to the linted files (the `tseslint.configs.recommended` entry does); without it the rules cannot read decorators.
|
|
98
|
+
- If a known mistake produces no finding, check that the decorator is imported directly from the package in the table, not through a wrapper or a local barrel file.
|
|
99
|
+
- If only type-dependent rules stay silent, confirm the type-checked preset is active and the file belongs to a TypeScript project.
|