@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.
Files changed (1140) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +7 -9
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +25 -55
  3. package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +10 -7
  4. package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +8 -1
  5. package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -2
  6. package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +5 -5
  7. package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -3
  8. package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -4
  9. package/package/corpus/harnesses/copilot/instructions/components.instructions.md +6 -8
  10. package/package/corpus/harnesses/copilot/instructions/concepts.instructions.md +15 -2
  11. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -5
  12. package/package/corpus/harnesses/copilot/instructions/criticality-tiers.instructions.md +7 -35
  13. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +13 -6
  14. package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +8 -3
  15. package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +8 -2
  16. package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +12 -6
  17. package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +12 -7
  18. package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +8 -6
  19. package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +13 -9
  20. package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +9 -5
  21. package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +12 -8
  22. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -4
  23. package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +12 -6
  24. package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +11 -7
  25. package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +7 -7
  26. package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +5 -3
  27. package/package/corpus/harnesses/copilot/instructions/general.instructions.md +2 -2
  28. package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +11 -6
  29. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +13 -13
  30. package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +13 -39
  31. package/package/corpus/harnesses/copilot/instructions/go.instructions.md +18 -139
  32. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +14 -60
  33. package/package/corpus/harnesses/copilot/instructions/issue-assignment.instructions.md +6 -9
  34. package/package/corpus/harnesses/copilot/instructions/java.instructions.md +8 -6
  35. package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +12 -7
  36. package/package/corpus/harnesses/copilot/instructions/local-verification-and-delivery.instructions.md +8 -5
  37. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +11 -64
  38. package/package/corpus/harnesses/copilot/instructions/new-repository-intake.instructions.md +7 -28
  39. package/package/corpus/harnesses/copilot/instructions/operational-safety.instructions.md +26 -41
  40. package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +22 -5
  41. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +8 -11
  42. package/package/corpus/harnesses/copilot/instructions/published-contracts.instructions.md +6 -25
  43. package/package/corpus/harnesses/copilot/instructions/react.instructions.md +9 -2
  44. package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +17 -5
  45. package/package/corpus/harnesses/copilot/instructions/review-reports.instructions.md +12 -94
  46. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +5 -5
  47. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +11 -8
  48. package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +9 -4
  49. package/package/corpus/harnesses/copilot/instructions/specs.instructions.md +7 -4
  50. package/package/corpus/harnesses/copilot/instructions/specs.scenarios.csharp.instructions.md +11 -2
  51. package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +8 -11
  52. package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +4 -7
  53. package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -8
  54. package/package/corpus/harnesses/copilot/instructions/verification-discipline.instructions.md +6 -9
  55. package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +29 -5
  56. package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +12 -3
  57. package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +11 -3
  58. package/package/corpus/hooks/README.md +2 -0
  59. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +36 -24
  60. package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
  61. package/package/corpus/hooks/scripts/cratis-guard-writes.sh +2 -1
  62. package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
  63. package/package/corpus/rules/ai-distribution.md +7 -9
  64. package/package/corpus/rules/authoring-skills.md +25 -55
  65. package/package/corpus/rules/browser.md +10 -7
  66. package/package/corpus/rules/code-health-policy.txt +3 -3
  67. package/package/corpus/rules/code-health.md +8 -1
  68. package/package/corpus/rules/code-quality.csharp.md +3 -2
  69. package/package/corpus/rules/code-quality.md +5 -5
  70. package/package/corpus/rules/code-quality.typescript.md +4 -3
  71. package/package/corpus/rules/codescene-reference.txt +34 -0
  72. package/package/corpus/rules/codescene.md +5 -4
  73. package/package/corpus/rules/components.md +6 -8
  74. package/package/corpus/rules/concepts.md +15 -2
  75. package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
  76. package/package/corpus/rules/criticality-tiers.md +7 -35
  77. package/package/corpus/rules/csharp.md +13 -6
  78. package/package/corpus/rules/dialogs.md +8 -3
  79. package/package/corpus/rules/discoverability.md +8 -2
  80. package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
  81. package/package/corpus/rules/documentation.md +12 -7
  82. package/package/corpus/rules/editing-cratis-docs.md +8 -6
  83. package/package/corpus/rules/efcore.md +13 -9
  84. package/package/corpus/rules/efcore.specs.md +9 -5
  85. package/package/corpus/rules/elixir.md +12 -8
  86. package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
  87. package/package/corpus/rules/framework-dotnet.md +12 -6
  88. package/package/corpus/rules/framework.md +11 -7
  89. package/package/corpus/rules/frontend-quality.md +7 -7
  90. package/package/corpus/rules/frontend-testing.md +5 -3
  91. package/package/corpus/rules/general.md +8 -10
  92. package/package/corpus/rules/github-actions.md +11 -6
  93. package/package/corpus/rules/glossary.md +13 -13
  94. package/package/corpus/rules/go-engineering.md +13 -39
  95. package/package/corpus/rules/go.md +18 -139
  96. package/package/corpus/rules/guards-and-fuses.md +14 -60
  97. package/package/corpus/rules/issue-assignment.md +6 -9
  98. package/package/corpus/rules/java.md +8 -6
  99. package/package/corpus/rules/kotlin.md +12 -7
  100. package/package/corpus/rules/local-verification-and-delivery.md +8 -5
  101. package/package/corpus/rules/local-work-artifacts.md +11 -64
  102. package/package/corpus/rules/new-repository-intake.md +7 -28
  103. package/package/corpus/rules/operational-safety.md +26 -41
  104. package/package/corpus/rules/orleans.md +22 -5
  105. package/package/corpus/rules/profiles.md +8 -11
  106. package/package/corpus/rules/published-contracts.md +6 -25
  107. package/package/corpus/rules/react.md +9 -2
  108. package/package/corpus/rules/reactors.md +17 -5
  109. package/package/corpus/rules/review-reports.md +12 -94
  110. package/package/corpus/rules/scripting.md +5 -5
  111. package/package/corpus/rules/specs.csharp.md +11 -8
  112. package/package/corpus/rules/specs.elixir.md +9 -4
  113. package/package/corpus/rules/specs.md +7 -4
  114. package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
  115. package/package/corpus/rules/specs.typescript.md +8 -11
  116. package/package/corpus/rules/storybook.md +4 -7
  117. package/package/corpus/rules/typescript.md +8 -8
  118. package/package/corpus/rules/verification-discipline.md +6 -9
  119. package/package/corpus/rules/vertical-slices.md +29 -5
  120. package/package/corpus/rules/writing-correct-examples.md +12 -3
  121. package/package/corpus/rules/writing-cratis-docs.md +11 -3
  122. package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
  123. package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
  124. package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
  125. package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
  126. package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
  127. package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
  128. package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
  129. package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
  130. package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
  131. package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
  132. package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
  133. package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
  134. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
  135. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
  136. package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
  137. package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
  138. package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
  139. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
  140. package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +92 -0
  141. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
  142. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
  143. package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
  144. package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
  145. package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
  146. package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
  147. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
  148. package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
  149. package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
  150. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
  151. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
  152. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
  153. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
  154. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
  155. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
  156. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
  157. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
  158. package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
  159. package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
  160. package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
  161. package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
  162. package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
  163. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
  164. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
  165. package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
  166. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
  167. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
  168. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
  169. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +281 -55
  170. package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
  171. package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
  172. package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
  173. package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
  174. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
  175. package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
  176. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
  177. package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
  178. package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
  179. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
  180. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
  181. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
  182. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
  183. package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
  184. package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
  185. package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
  186. package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
  187. package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
  188. package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
  189. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
  190. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
  191. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
  192. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
  193. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
  194. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
  195. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
  196. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
  197. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
  198. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
  199. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
  200. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
  201. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
  202. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
  203. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
  204. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
  205. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +379 -31
  206. package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
  207. package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
  208. package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
  209. package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
  210. package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
  211. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
  212. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
  213. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
  214. package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
  215. package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
  216. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
  217. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
  218. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
  219. package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
  220. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
  221. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
  222. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
  223. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
  224. package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
  225. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
  226. package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
  227. package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
  228. package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
  229. package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
  230. package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
  231. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
  232. package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
  233. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
  234. package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
  235. package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
  236. package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
  237. package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
  238. package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
  239. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
  240. package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
  241. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
  242. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
  243. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
  244. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
  245. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
  246. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
  247. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
  248. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
  249. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
  250. package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
  251. package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
  252. package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
  253. package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
  254. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
  255. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
  256. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
  257. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
  258. package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
  259. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
  260. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
  261. package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
  262. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
  263. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
  264. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
  265. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
  266. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
  267. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
  268. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
  269. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
  270. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
  271. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
  272. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
  273. package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
  274. package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
  275. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
  276. package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
  277. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
  278. package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
  279. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
  280. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
  281. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
  282. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
  283. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
  284. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
  285. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
  286. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
  287. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
  288. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
  289. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
  290. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
  291. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
  292. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
  293. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
  294. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
  295. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
  296. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
  297. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
  298. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
  299. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
  300. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
  301. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
  302. package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
  303. package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
  304. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
  305. package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
  306. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
  307. package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
  308. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
  309. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
  310. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
  311. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
  312. package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
  313. package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
  314. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
  315. package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
  316. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
  317. package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
  318. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
  319. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
  320. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
  321. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
  322. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
  323. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
  324. package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
  325. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
  326. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
  327. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +80 -0
  328. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
  329. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
  330. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
  331. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
  332. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
  333. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
  334. package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
  335. package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
  336. package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
  337. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
  338. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
  339. package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
  340. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
  341. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
  342. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
  343. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
  344. package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
  345. package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
  346. package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
  347. package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
  348. package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
  349. package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
  350. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
  351. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
  352. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
  353. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
  354. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
  355. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
  356. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +161 -0
  357. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
  358. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
  359. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +57 -0
  360. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
  361. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
  362. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
  363. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +57 -41
  364. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
  365. package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
  366. package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
  367. package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
  368. package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
  369. package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
  370. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
  371. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
  372. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
  373. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
  374. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
  375. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
  376. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
  377. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
  378. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
  379. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
  380. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
  381. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
  382. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
  383. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
  384. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
  385. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
  386. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
  387. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +105 -45
  388. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
  389. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
  390. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
  391. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
  392. package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
  393. package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
  394. package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
  395. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
  396. package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
  397. package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
  398. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
  399. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
  400. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
  401. package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
  402. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
  403. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
  404. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
  405. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
  406. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
  407. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
  408. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
  409. package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
  410. package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
  411. package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
  412. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
  413. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
  414. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
  415. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
  416. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
  417. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
  418. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
  419. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
  420. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
  421. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +57 -52
  422. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
  423. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
  424. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
  425. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
  426. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
  427. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
  428. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
  429. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
  430. package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
  431. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
  432. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
  433. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
  434. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
  435. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
  436. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
  437. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
  438. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
  439. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
  440. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
  441. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
  442. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
  443. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
  444. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
  445. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
  446. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
  447. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
  448. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
  449. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
  450. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
  451. package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
  452. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
  453. package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
  454. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
  455. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
  456. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
  457. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
  458. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
  459. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
  460. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
  461. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
  462. package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
  463. package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
  464. package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
  465. package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
  466. package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
  467. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
  468. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
  469. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
  470. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
  471. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
  472. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
  473. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
  474. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
  475. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
  476. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
  477. package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
  478. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
  479. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
  480. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
  481. package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
  482. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
  483. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
  484. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
  485. package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
  486. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
  487. package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
  488. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
  489. package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
  490. package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
  491. package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
  492. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
  493. package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
  494. package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
  495. package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
  496. package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
  497. package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
  498. package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
  499. package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
  500. package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
  501. package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
  502. package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
  503. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
  504. package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
  505. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
  506. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
  507. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
  508. package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
  509. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
  510. package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
  511. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
  512. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
  513. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
  514. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
  515. package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
  516. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
  517. package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
  518. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
  519. package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
  520. package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
  521. package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
  522. package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
  523. package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
  524. package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
  525. package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
  526. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
  527. package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
  528. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
  529. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
  530. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
  531. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
  532. package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
  533. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
  534. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
  535. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
  536. package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
  537. package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
  538. package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
  539. package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
  540. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
  541. package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
  542. package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
  543. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
  544. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
  545. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
  546. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
  547. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
  548. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
  549. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
  550. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
  551. package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
  552. package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
  553. package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
  554. package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
  555. package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
  556. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
  557. package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
  558. package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
  559. package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
  560. package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
  561. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
  562. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
  563. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
  564. package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
  565. package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
  566. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
  567. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
  568. package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
  569. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
  570. package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
  571. package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
  572. package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
  573. package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
  574. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
  575. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
  576. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
  577. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
  578. package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
  579. package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
  580. package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
  581. package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
  582. package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
  583. package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
  584. package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
  585. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
  586. package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
  587. package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
  588. package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
  589. package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
  590. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
  591. package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
  592. package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
  593. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
  594. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
  595. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
  596. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
  597. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
  598. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
  599. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
  600. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
  601. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
  602. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
  603. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
  604. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
  605. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
  606. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
  607. package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
  608. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
  609. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
  610. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
  611. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
  612. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
  613. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
  614. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
  615. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
  616. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
  617. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
  618. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
  619. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
  620. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
  621. package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
  622. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
  623. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
  624. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
  625. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
  626. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
  627. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
  628. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
  629. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
  630. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
  631. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
  632. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
  633. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
  634. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
  635. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
  636. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
  637. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
  638. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
  639. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
  640. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
  641. package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
  642. package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
  643. package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
  644. package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
  645. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
  646. package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
  647. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
  648. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
  649. package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
  650. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
  651. package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
  652. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
  653. package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
  654. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
  655. package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
  656. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
  657. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
  658. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
  659. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
  660. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
  661. package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
  662. package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
  663. package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
  664. package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
  665. package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
  666. package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
  667. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
  668. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
  669. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
  670. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
  671. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
  672. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
  673. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
  674. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
  675. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
  676. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
  677. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
  678. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
  679. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
  680. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
  681. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
  682. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
  683. package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
  684. package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
  685. package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
  686. package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
  687. package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
  688. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
  689. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
  690. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
  691. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
  692. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
  693. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
  694. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
  695. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
  696. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
  697. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
  698. package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
  699. package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
  700. package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
  701. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
  702. package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
  703. package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
  704. package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
  705. package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
  706. package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
  707. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
  708. package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
  709. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
  710. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
  711. package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
  712. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
  713. package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
  714. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
  715. package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
  716. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
  717. package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
  718. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
  719. package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
  720. package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
  721. package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
  722. package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
  723. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
  724. package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
  725. package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
  726. package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
  727. package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
  728. package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
  729. package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
  730. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
  731. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
  732. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
  733. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
  734. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
  735. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
  736. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
  737. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
  738. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
  739. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
  740. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
  741. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
  742. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
  743. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
  744. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
  745. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
  746. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
  747. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
  748. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
  749. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
  750. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
  751. package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
  752. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
  753. package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
  754. package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
  755. package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
  756. package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
  757. package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
  758. package/package/corpus/skills/cratis-observability/references/go.md +292 -0
  759. package/package/corpus/skills/cratis-observability/references/java.md +236 -0
  760. package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
  761. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
  762. package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
  763. package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
  764. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
  765. package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
  766. package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
  767. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
  768. package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
  769. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
  770. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
  771. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
  772. package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
  773. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
  774. package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
  775. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
  776. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
  777. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
  778. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
  779. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
  780. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
  781. package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
  782. package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
  783. package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
  784. package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
  785. package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
  786. package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
  787. package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
  788. package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
  789. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
  790. package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
  791. package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
  792. package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
  793. package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
  794. package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
  795. package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
  796. package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
  797. package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
  798. package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
  799. package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
  800. package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
  801. package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
  802. package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
  803. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
  804. package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
  805. package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
  806. package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
  807. package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
  808. package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
  809. package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
  810. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
  811. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
  812. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
  813. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
  814. package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
  815. package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
  816. package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
  817. package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
  818. package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
  819. package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
  820. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
  821. package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
  822. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
  823. package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
  824. package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
  825. package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
  826. package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
  827. package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
  828. package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
  829. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
  830. package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
  831. package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
  832. package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
  833. package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
  834. package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
  835. package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
  836. package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
  837. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
  838. package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
  839. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
  840. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
  841. package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
  842. package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
  843. package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
  844. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
  845. package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
  846. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
  847. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
  848. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
  849. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
  850. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
  851. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
  852. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
  853. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
  854. package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
  855. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
  856. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
  857. package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
  858. package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
  859. package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
  860. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
  861. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
  862. package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
  863. package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
  864. package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
  865. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
  866. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
  867. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
  868. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
  869. package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
  870. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
  871. package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
  872. package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
  873. package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
  874. package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
  875. package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
  876. package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
  877. package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
  878. package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
  879. package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
  880. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
  881. package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
  882. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
  883. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
  884. package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
  885. package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
  886. package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
  887. package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
  888. package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
  889. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
  890. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
  891. package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
  892. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
  893. package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
  894. package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
  895. package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
  896. package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
  897. package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
  898. package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
  899. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
  900. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
  901. package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
  902. package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
  903. package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
  904. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
  905. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
  906. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
  907. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
  908. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
  909. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
  910. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
  911. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
  912. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
  913. package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
  914. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
  915. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
  916. package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
  917. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
  918. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
  919. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
  920. package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
  921. package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
  922. package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
  923. package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
  924. package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
  925. package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
  926. package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
  927. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
  928. package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
  929. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
  930. package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
  931. package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
  932. package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
  933. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
  934. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
  935. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
  936. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
  937. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
  938. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
  939. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
  940. package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
  941. package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
  942. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  943. package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
  944. package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
  945. package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
  946. package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
  947. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
  948. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
  949. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
  950. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
  951. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
  952. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
  953. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
  954. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
  955. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
  956. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
  957. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  958. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
  959. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
  960. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
  961. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  962. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +6 -9
  963. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
  964. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
  965. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
  966. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
  967. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
  968. package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
  969. package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
  970. package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
  971. package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
  972. package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
  973. package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
  974. package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
  975. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
  976. package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
  977. package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
  978. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
  979. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
  980. package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
  981. package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
  982. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
  983. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
  984. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
  985. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
  986. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
  987. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
  988. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
  989. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
  990. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
  991. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
  992. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
  993. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
  994. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
  995. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
  996. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
  997. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
  998. package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
  999. package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
  1000. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
  1001. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
  1002. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
  1003. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
  1004. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
  1005. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
  1006. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
  1007. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
  1008. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
  1009. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
  1010. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
  1011. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
  1012. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
  1013. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
  1014. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
  1015. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
  1016. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
  1017. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
  1018. package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
  1019. package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
  1020. package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
  1021. package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
  1022. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
  1023. package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
  1024. package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
  1025. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
  1026. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
  1027. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
  1028. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
  1029. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
  1030. package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
  1031. package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
  1032. package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
  1033. package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
  1034. package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
  1035. package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
  1036. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
  1037. package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
  1038. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
  1039. package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
  1040. package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
  1041. package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
  1042. package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
  1043. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
  1044. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
  1045. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
  1046. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
  1047. package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
  1048. package/package/profile-catalog.json +34 -2
  1049. package/package.json +1 -1
  1050. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
  1051. package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
  1052. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
  1053. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
  1054. package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
  1055. package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
  1056. package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
  1057. package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
  1058. package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
  1059. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
  1060. package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
  1061. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
  1062. package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
  1063. package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
  1064. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
  1065. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
  1066. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
  1067. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
  1068. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
  1069. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
  1070. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
  1071. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
  1072. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
  1073. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
  1074. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
  1075. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
  1076. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
  1077. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
  1078. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
  1079. package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
  1080. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
  1081. package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
  1082. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
  1083. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
  1084. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
  1085. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
  1086. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
  1087. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
  1088. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
  1089. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
  1090. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
  1091. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
  1092. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
  1093. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
  1094. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
  1095. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
  1096. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
  1097. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
  1098. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
  1099. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
  1100. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
  1101. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
  1102. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
  1103. package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
  1104. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
  1105. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
  1106. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
  1107. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
  1108. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
  1109. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
  1110. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
  1111. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
  1112. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
  1113. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
  1114. package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
  1115. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
  1116. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
  1117. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
  1118. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
  1119. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
  1120. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
  1121. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
  1122. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
  1123. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
  1124. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
  1125. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
  1126. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
  1127. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
  1128. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
  1129. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
  1130. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
  1131. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
  1132. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
  1133. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
  1134. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
  1135. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
  1136. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
  1137. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
  1138. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
  1139. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
  1140. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
@@ -1,51 +1,206 @@
1
1
  ---
2
2
  name: cratis-components-host-chat
3
- description: Use when connecting a topic-based chat sidebar to generated live queries or to topics and messages already owned by the host. Not for confirmation or busy dialogs (use cratis-components-coordinate-feedback).
4
- compatibility: Requires react, @cratis/components and @cratis/arc.react.
3
+ description: Use when adding topic-based chat to a Cratis React application — a sidebar of conversations with mentions, typing indicators, message or topic actions and topic auto-naming — fed by Arc observable queries or by topics and messages the host already holds, or when embedding a topic list or a single conversation in a page. Not for a comment panel pinned to an item on a board or the Canvas conversation kit (use cratis-components-build-canvas).
4
+ compatibility: Requires react, @cratis/components, @cratis/arc, @cratis/arc.react and @cratis/fundamentals.
5
5
  ---
6
6
 
7
- # Show messages for the selected topic
7
+ # Host a topic-based chat
8
8
 
9
- Default to `ChatSidebarForObservableQueries` when the screen has generated live queries and does not already own that state. Choose this when the host already owns the arrays and selection: import `{ ChatSidebar }` from `@cratis/components/Chat` and use `<ChatSidebar open={open} onClose={onClose} topics={topics} messages={messages} selectedTopicId={selectedTopicId} onTopicSelected={id => setSelectedTopicId(id ?? null)} onSendMessage={(id, body, mentions) => send(String(id), body, mentions)} />` instead of subscribing again. Both bindings send with the explicit topic ID.
9
+ ## Contents
10
10
 
11
- 1. Render the sidebar under the application's `<Arc>` provider from `@cratis/arc.react`. Import the generated observable query proxies `Topics` and `Messages` from the app's proxy tree. `Messages` takes `{ topicId: string }`.
12
- 2. The `Topics` query returns rows with an `id` and optionally `name`. Each row returned by `Messages` must have `id`, `topicId`, `authorId`, `body: string` and `timestamp: Date`. Use string IDs or IDs that implement `toString()`. Here `authorId` identifies the message sender, not a catalog author.
13
- 3. Pass the generated query classes themselves to `ChatSidebarForObservableQueries`, not their `.use()` results. The adapter subscribes to topics and changes the message subscription with the open topic. Render the sidebar even when it is closed. Toggle `open` instead of mounting it conditionally, so the topic list continues to receive updates. Return `undefined` from `messagesArguments` until a topic is open.
14
- 4. Supply the application's send operation. The example passes through the message body and mentions with the topic ID received by `onSendMessage`. Handle errors in the host; the callback does not report send success back to the sidebar.
11
+ - What the chat is
12
+ - When to use it
13
+ - How it behaves at runtime
14
+ - Default path
15
+ - Capability catalog
16
+ - Pitfalls
17
+ - Verify in a browser
15
18
 
16
- ```tsx
17
- import { ChatSidebarForObservableQueries, type ChatMention } from '@cratis/components/Chat';
18
- import { Topics } from '../../generated/Features/Conversations/Topics';
19
- import { Messages } from '../../generated/Features/Conversations/Messages';
19
+ ## What the chat is
20
20
 
21
- type ChatProps = {
22
- open: boolean; onClose: () => void;
23
- send: (topicId: string, body: string, mentions: ChatMention[]) => void;
24
- };
25
- export function TopicChat({ open, onClose, send }: ChatProps) {
26
- return <ChatSidebarForObservableQueries open={open} onClose={onClose}
27
- topicsQuery={Topics} messagesQuery={Messages}
28
- messagesArguments={id => id === undefined ? undefined : { topicId: String(id) }}
29
- onSendMessage={(id, body, mentions) => send(String(id), body, mentions)} />;
30
- }
31
- ```
21
+ Cratis Components Chat, imported from the `@cratis/components/Chat` subpath, renders topic-based conversations: a list of topics, each with its own message thread, in a panel that slides in beside the work. It is a renderer. The host owns all data and every write: the components raise intents (send, start a topic, name a topic, run an action), the host runs its commands, and the updated topics and messages flow back in, normally through live (observable) queries. A message stores only its author's identifier; the host resolves names and avatars at render time. The components never learn whether a write succeeded, and their states are presentation only: the server authorizes every read and write.
32
22
 
33
- Switch from one topic to another before the first topic's messages arrive. Only the selected topic's messages should appear. If messages are missing, check the argument name and the selected ID before changing the query.
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. The chat lives in the React frontend whatever the backend SDK, so its bindings are in the TypeScript reference. Names in this skill are illustrative.
34
24
 
35
- ## Choose this when the host adds topic or message actions
25
+ ## When to use it
36
26
 
37
- Add these props only if the host supplies the corresponding operations:
27
+ | Need | Use |
28
+ |---|---|
29
+ | Topics and messages exposed as Arc observable queries; the sidebar may own topic selection | `ChatSidebarForObservableQueries` (default) |
30
+ | Host owns the subscriptions or another data source, needs controlled selection (deep links), maps query results into the chat shape, or must clear selection when access is lost | `ChatSidebar` with `topicsStatus` and `messagesStatus` |
31
+ | A topic list or one conversation embedded in a page, without the sliding panel | `ChatTopicList` or `ChatConversation` |
32
+ | A stored message body, with its mentions highlighted, shown elsewhere | `ChatMessageBody` |
33
+ | One comment thread pinned to an item on a board | `cratis-components-build-canvas` |
38
34
 
39
- - `authorOf={id => ({ name: displayName(id), kind: ChatAuthorKind.User })}` resolves a sender. Import `{ ChatAuthorKind }` from `@cratis/components/Chat`; use `ChatAuthorKind.Agent` for an agent.
40
- - `onStartTopic={() => startTopic()}` opens the topic whose ID the host returns. `onRequestTopicName={(topic, body) => nameTopic(topic.id, body)}` asks the host to name an existing unnamed topic from its first message.
41
- - `topicActions={[{ id: 'rename', label: 'Rename', onInvoke: topic => renameTopic(topic.id) }]}` acts on the topic. `actions={[{ id: 'copy', label: 'Copy', icon: <span aria-hidden="true">⧉</span>, onInvoke: message => copyMessage(message.body) }]}` acts on one message.
35
+ The conversation kit (its `Chat` panel, `ChatComposer`, `ChatMessageBubble`, reactions, `ChatBubble`) is exported only from `@cratis/components/Canvas`; there is no `Chat/Kit` subpath, and the Chat subpath shares only `ChatAuthorKind`, `ChatTypingAuthor`, `BuildAvatarUrlParams`, `ChatComposerLabels` and the mention helpers with it. The kit's `ChatMessage` (text, author name, reactions; sent through `onSend`) is not this chat's (body, topic, mentions); never mix them. Its contract is in `cratis-components-build-canvas`.
42
36
 
43
- ## When it goes off the usual path
37
+ ## How it behaves at runtime
44
38
 
45
- - **Send fails after the user switches topics:** keep the submitted draft and failure in the host under the ID received by `onSendMessage`. Offer recovery for that topic; don't show the failed send as a stored message or retry it against the newly selected topic.
39
+ **Data.** A topic has `id`, and optionally `name`, `startedBy`, `started`, `lastActivity` and `metadata`. A message has `id`, `topicId`, `authorId`, `body`, `timestamp`, and optionally `mentions` and `metadata`. The components are generic over the host's own topic and message types, so actions and callbacks receive the full host object. An identifier is a string or any value with a string form (such as a GUID); identifiers are compared by that string form. Timestamps that arrive as strings are converted to dates.
46
40
 
47
- ## Related skills
41
+ **Ordering and filtering.** The topic list orders topics by `lastActivity`, falling back to `started`, most recent first. Messages render in the order given; sort them by timestamp in the query. The sidebar's `messages` may hold the whole chat or only the open topic's; it shows those whose `topicId` matches the open topic.
48
42
 
49
- - If the host owns the subscriptions, use `cratis-arc-react-bind-slice` from the Arc React profile. Pass `topicsStatus` and `messagesStatus` to `ChatSidebar`; an access denial or failed query is not an empty conversation.
43
+ **Selection.** Without `selectedTopicId` the sidebar keeps the open topic internally. With it, the host controls selection: an identifier opens that topic and `null` shows the list. `onTopicSelected` reports only selections the sidebar makes (opening from the list, Back with no identifier, a started topic that opens), never changes the host makes through `selectedTopicId`; in controlled mode nothing changes until the host stores the reported value. The sidebar remounts the conversation for each open topic, so every switch discards the previous topic's unsent draft. The observable-query wrapper always owns selection.
50
44
 
51
- Attach message actions with `actions` and host content with `renderMessageExtra`. If keeping a cached history in the host during loading or failure, scope it to the active topic and discard access-denied data. Do not represent a failed or denied request as an empty conversation.
45
+ **Starting a topic.** The new-topic button appears only when `onStartTopic` is supplied. The host creates the topic and returns its identifier, directly or as a promise; the sidebar opens it unless the open topic changed while the start was pending. Returning nothing leaves the selection unchanged; a rejected promise is not handled. The topic must also arrive in `topics`; until it does the title shows the unnamed placeholder.
46
+
47
+ **Sending.** Enter sends; Shift+Enter adds a line. The draft is trimmed and an empty draft is not sent. `onSendMessage` receives the topic the draft was written in, the body and its mentions. It is not awaited and the composer clears the draft as soon as it is called, so a failed send is lost unless the host keeps the body and mentions under that topic identifier and offers a retry. A message appears only when the host supplies it in `messages`. The body is plain text with each mention written as `@Name`; mentions are extracted from the final text, so a picked mention edited away does not count. Store the reported mentions on the message so the conversation highlights them.
48
+
49
+ **Naming.** A topic is unnamed when its name is missing or whitespace; override this with `isTopicUnnamed` when the backend stores a literal placeholder. An unnamed topic shows `New topic` in the list and the title. Right after calling `onSendMessage`, without waiting for its outcome, the sidebar calls `onRequestTopicName(topic, firstMessageBody)` when the open topic is in `topics`, is unnamed, and has no rows in the supplied `messages`. That counts supplied rows, not stored history: a topic whose messages are still loading counts as empty, and a send that later fails still triggers naming. The call is not awaited and can repeat before the data updates, so the handler must be safe to run twice. The new name shows when it arrives in `topics`.
50
+
51
+ **Query states.** Each list has a `ChatStatus`. The default is `Ready`, so without a status a loading, failed or denied query looks like an empty chat.
52
+
53
+ | Status | No data yet | With existing data |
54
+ |---|---|---|
55
+ | `Ready` | Empty text (`No topics yet. Start the first one!`, `No messages yet. Say hello!`) | The data |
56
+ | `Loading` | Loading text, announced as status | Data stays visible |
57
+ | `Failed` | Failure text, announced as alert | Alert above the data |
58
+ | `Unauthorized` | Access-denied alert | Alert replaces the data; the new-topic button or the composer is disabled and typing is hidden |
59
+
60
+ **Denial per surface.** `topicsStatus` gates only the topic list and `messagesStatus` only the conversation. The header is gated by neither: its title comes from the open topic's row in `topics`, `renderHeaderActions` still renders, and close and back stay available. A denied topics query therefore leaves an open thread, its title and header actions in place. When access is lost, the host drops the denied rows, clears the selection (the wrapper keeps its selection, even while closed: remount it) and hides actions for that topic, and the server refuses the reads and writes.
61
+
62
+ **Observable-query wrapper.** The topics query subscribes on mount, even while `open` is false, and closing does not unsubscribe, so mount it only where that subscription should be live. The messages query subscribes while a topic is open and `messagesArguments` returns arguments. Denial maps to `Unauthorized`; exceptions, validation errors and other unsuccessful results to `Failed`; performing or not ready to `Loading`. After a topic or argument switch it never shows the previous rows and reports `Loading` until a result for the new arguments arrives, which is immediate when Arc already holds a cached result: never rely on a loading frame. A failed result without data does not keep the last good collection.
63
+
64
+ **Presentation.** The default panel is non-modal: it moves no focus and ignores Escape and outside clicks; only close (calling `onClose`) dismisses it, and Back returns to the list. The panel and emoji picker portal into the components provider's `overlayEnvironment` container (the document body by default) and wait while it returns nothing. All text is English by default and is localized only through `labels`. Messages and authors (including when it scrolls), composer, actions, panel, label fields and styling hooks: [presentation details](references/presentation.md).
65
+
66
+ ## Default path
67
+
68
+ 1. Expose two observable queries: all topics, and the messages of one topic (taking the topic identifier). Expose commands for starting a topic, sending a message and renaming a topic, authorized per topic on the server, and generate the proxies (see `cratis-arc-expose-query`, `cratis-arc-declare-command` and `cratis-arc-generate-proxies`). Done when the proxies exist.
69
+ 2. Import the stylesheet once: the aggregate `@cratis/components/styles`, or `@cratis/components/styles/base` plus `@cratis/components/Chat/styles`. Done when the panel renders styled.
70
+ 3. Render `ChatSidebarForObservableQueries` inside the Arc React provider (see `cratis-arc-react-bind-slice`), in the area that offers chat. Pass both queries and `messagesArguments`, which maps the open topic to the messages query's arguments. Keep `open` in host state, set it to false in `onClose`, and keep the component mounted while closed. In `onSendMessage`, run the send command and check its result; on failure, report it and keep the body and mentions under the reported topic identifier with a retry for that topic. In `onStartTopic`, create the new identifier, run the start command, and return the identifier only on success; otherwise, including a rejection, report it and return nothing. Resolve authors with `authorOf`. See Default: bind observable queries in your language reference.
71
+ 4. Add only what the feature needs: `onRequestTopicName`, mention candidates, `typingAuthors`, `actions` and `topicActions`.
72
+
73
+ Done when: opening shows the topic list or `No topics yet. Start the first one!`; starting a topic opens its conversation; a sent message appears through the messages query, not before; a failed send or start is reported and the failed body can be retried in its own topic; an unnamed topic shows `New topic` until its name arrives; a denied query shows the access-denied alert, not an empty chat; and the browser checks below pass.
74
+
75
+ If a sent message never appears, check that the command persisted it and the messages query returns it with the open topic's `topicId`. If naming never fires, check that the topic was in `topics` before the first send.
76
+
77
+ ## Capability catalog
78
+
79
+ ### ChatSidebar
80
+
81
+ - `open` — required; shows the panel. Keep the sidebar mounted while closed.
82
+ - `onClose` — required; close request (and Escape or outside press when modal); set `open` to false.
83
+ - `topics` — required; the topics to list.
84
+ - `messages` — required; the whole chat's or the open topic's messages.
85
+ - `onSendMessage(topicId, body, mentions)` — required; persist a message in the topic it was written in.
86
+ - `topicsStatus` — `ChatStatus` of the topics query; pass it whenever the host owns the query.
87
+ - `messagesStatus` — `ChatStatus` of the messages query; pass it whenever the host owns the query.
88
+ - `selectedTopicId` — controlled selection (`null` shows the list), for deep links or clearing selection on denial.
89
+ - `onTopicSelected(topicId, topic)` — selections the sidebar makes; store them in controlled mode.
90
+ - `onStartTopic()` — create a topic and return its identifier; omit to hide the new-topic button.
91
+ - `onRequestTopicName(topic, firstMessageBody)` — name an unnamed topic from its first message.
92
+ - `isTopicUnnamed(topic)` — custom unnamed predicate, when the backend stores a placeholder name.
93
+ - `topicActions` — `ChatTopicAction` list beside each topic, such as rename or archive.
94
+ - `renderHeaderActions(openTopic)` — host content beside the title, such as rename or retry; `openTopic` is absent while the list shows or when its row is missing from `topics`.
95
+ - `position` — `'left'` or `'right'` edge (right by default).
96
+ - `width` — any CSS length (`24rem` by default).
97
+ - `modal` — backdrop with Escape and outside-press dismissal, when the chat should block the page.
98
+ - `labels` — `ChatSidebarLabels`, to localize or reword text.
99
+ - `className` — class on the panel.
100
+ - `pt` — `ChatSidebarParts` attributes per part, for test IDs, ARIA or styling hooks.
101
+ - Every `ChatConversation` option except `messages`, `status`, `onSendMessage`, `labels` and `className` applies to the open conversation; `authorOf`, `renderAvatar` and `buildAvatarUrl` also feed the topic list.
102
+
103
+ ### ChatSidebarForObservableQueries
104
+
105
+ - `topicsQuery` — required; the generated observable topics query.
106
+ - `topicsArguments` — the topics query's arguments, when it takes any.
107
+ - `messagesQuery` — required; the generated observable messages query.
108
+ - `messagesArguments(topicId)` — required; maps the open topic to the messages query's arguments; called with no identifier while the list shows; return nothing to hold the subscription.
109
+ - Every `ChatSidebar` option except `topics`, `messages`, `selectedTopicId`, `topicsStatus` and `messagesStatus`.
110
+
111
+ ### ChatConversation
112
+
113
+ - `messages` — required; the thread, rendered in the given order without topic filtering.
114
+ - `onSendMessage(body, mentions)` — required; persist a message. It carries no topic, so add it from host state.
115
+ - `status` — `ChatStatus` of the messages query.
116
+ - `authorOf(authorId)` — resolve an author to a `ChatAuthor`.
117
+ - `renderAvatar(authorId, author)` — replace the built-in avatar.
118
+ - `renderAuthorName(authorId, author)` — replace the built-in name text.
119
+ - `renderMessageExtra(message)` — host content under a body, such as reactions or a failure notice.
120
+ - `actions` — `ChatMessageAction` list for messages.
121
+ - `mentionCandidates` — a known list of people and agents to mention.
122
+ - `resolveMentionCandidates(query)` — look candidates up as text follows `@` (list or promise), for large or remote directories.
123
+ - `typingAuthors` — `ChatTypingAuthor` list shown as typing.
124
+ - `quickReply` — set false to remove the reply button (on by default).
125
+ - `buildAvatarUrl(params)` — image URL for avatars; omit for initials only.
126
+ - `autoFocus` — focus the composer on mount, for chats opened from the keyboard.
127
+ - `labels` — `ChatConversationLabels`.
128
+ - `className` — class on the root.
129
+
130
+ ### ChatTopicList
131
+
132
+ - `topics` — required; the topics, ordered by activity.
133
+ - `onOpen(topic)` — required; the open intent; the host stores which topic is open.
134
+ - `onStart()` — raise the new-topic intent; omit to hide the button.
135
+ - `status` — `ChatStatus` of the topics query.
136
+ - `authorOf(authorId)` — resolve each topic's starter.
137
+ - `renderAvatar(authorId, author)` — replace the starter's avatar.
138
+ - `buildAvatarUrl(params)` — image URL for the starter's avatar.
139
+ - `isTopicUnnamed(topic)` — custom unnamed predicate.
140
+ - `topicActions` — `ChatTopicAction` list beside each topic.
141
+ - `labels` — `ChatTopicListLabels`.
142
+ - `className` — class on the root.
143
+
144
+ ### ChatMessageBody
145
+
146
+ - `body` — required; a stored plain-text body.
147
+ - `mentions` — the stored mentions to highlight; omit when there are none.
148
+
149
+ ### Components provider
150
+
151
+ - `overlayEnvironment` — `getContainer()` returns the element the non-modal panel and emoji picker portal into; return nothing to defer them. Use it when overlays must mount inside a specific application element (see `cratis-components-theme-application`).
152
+
153
+ ### Data contracts
154
+
155
+ - `ChatTopic`, `ChatMessage` — the shapes under Data above; extend them with host fields.
156
+ - `ChatIdentifier` — string or any value with a string form.
157
+ - `ChatAuthor` — `name`, `kind`, optional `hasAvatar`, `avatarVersion` (changes to bust the image cache) and `initials` (the built-in avatar derives initials from `name`; use `renderAvatar` for custom ones).
158
+ - `ChatAuthorKind` — `User` or `Agent`; decides avatar lookup and mention styling.
159
+ - `ChatMention` — `id`, `name`, `kind`; what `onSendMessage` reports and a message stores.
160
+ - `MentionCandidate` — `id`, `name`, `hasAvatar`, `kind`, optional `avatarVersion`.
161
+ - `ChatTypingAuthor` — `id`, `name`, `hasAvatar`, `kind`.
162
+ - `ChatStatus` — `Ready`, `Loading`, `Failed`, `Unauthorized`.
163
+ - `ChatMessageAction` — `id`, `label` (tooltip and accessible name), `icon` (icon-font class or element; required), optional `isAvailable(message)`, `onInvoke(message)`.
164
+ - `ChatTopicAction` — `id`, `label` (accessible name includes the topic's name), optional `icon` (label text shows without it), optional `isAvailable(topic)`, `onInvoke(topic)`.
165
+ - `BuildAvatarUrlParams` — `userId`, `ownerType` (`Users` for people, `Agents` for agents; the type also allows `Personas`), `avatarSize` (`Small` or `Medium`), optional `version`.
166
+
167
+ ### Labels and styling
168
+
169
+ Every field is in [presentation details](references/presentation.md).
170
+
171
+ - `ChatSidebarLabels` — sidebar text; nests the list and conversation labels.
172
+ - `ChatTopicListLabels` — topic list text.
173
+ - `ChatConversationLabels` — conversation text; nests composer and timestamp labels.
174
+ - `ChatComposerLabels` — composer and emoji picker text.
175
+ - `RelativeTimestampLabels` — `just now`, minutes and hours text.
176
+ - Styling hooks — `pt` parts, panel `data-*` states, the mention class and `--cratis-*` tokens.
177
+
178
+ ### Helpers
179
+
180
+ - `chatIdentifierString(id)` — the string form the components compare; use it for keys and lookups.
181
+ - `sameChatIdentifier(left, right)` — the components' comparison; false when either is missing.
182
+ - `isTopicUnnamed(topic)` — the default predicate, to compose into a custom one.
183
+ - `shouldRequestTopicName(topicIsUnnamed, existingMessageCount)` — the naming rule, for embedded layouts.
184
+ - `topicsByActivity(topics)` — the list's ordering, without mutating.
185
+ - `relativeTimestamp(moment, now, labels)` — the timestamp text; `now` and `labels` are optional.
186
+ - `findMentionRanges(text, candidates)` — mention positions as `MentionRange` (`start`, `end`, `candidate`).
187
+ - `mentionSegments(text, candidates)` — the text split into `MentionSegment` (`text`, optional `mention`), for custom rendering.
188
+ - `extractMentions(text, candidates)` — the mentioned candidates, for bodies outside the conversation. Mention helpers need candidates with only a `name`.
189
+
190
+ ## Pitfalls
191
+
192
+ - Host-owned queries without statuses make loading, failure and denial look like an empty chat.
193
+ - Treating a send as done because `onSendMessage` was called: the draft is already gone. Keep a failed body for retry under the reported topic, never the one open later.
194
+ - Reusing one `ChatConversation` across topics in an embedded layout carries one topic's unsent draft into another; remount it per topic.
195
+ - A naming handler that is not safe to repeat can rename a topic twice; one that does not store the name leaves the placeholder showing.
196
+
197
+ ## Verify in a browser
198
+
199
+ Tests do not exercise focus, portals or the composer; check in a browser:
200
+
201
+ - Focus: open the chat from a keyboard action and land in it (move focus, or `autoFocus`); Tab reaches message actions, topic actions, back and close; Escape and an outside press close only a modal sidebar.
202
+ - Localized labels: every visible and accessible string (title, back, close, new topic, placeholder, statuses, typing, timestamps, emoji picker) shows the application's `labels`, not English defaults.
203
+ - Failed send: make the send command fail, switch topics, and retry; the failure was reported and the retry lands in the topic it was written in.
204
+ - Direct topic switch: type a draft and switch topics from the host or the embedded list; the draft neither shows nor sends in the other topic.
205
+ - Denial after selection: open a topic, then revoke access; the thread, its title and host header actions go away, and the server refuses reads and writes.
206
+ - States: loading, failure and denial each look different from an empty chat.
@@ -0,0 +1,60 @@
1
+ # Chat presentation details
2
+
3
+ ## Contents
4
+
5
+ - Messages and authors
6
+ - Composer
7
+ - Actions
8
+ - Panel and overlays
9
+ - Labels
10
+ - Styling
11
+
12
+ ## Messages and authors
13
+
14
+ `authorOf` turns an author identifier into a name and a kind (person or agent) at render time, so a renamed author or a new avatar shows without rewriting messages; without it the raw identifier is shown as the name. The built-in avatar is an initials circle derived from the name, colored by the identifier. It shows an image only when the author has an avatar and `buildAvatarUrl` is supplied, requesting owner type `Agents` for agents and `Users` otherwise at `Small` size, and falls back to initials when the image fails to load. Change `avatarVersion` after an upload so the URL changes. `renderAvatar` and `renderAuthorName` replace the built-in circle and name text entirely.
15
+
16
+ Consecutive messages by one author show the author row once. A timestamp shows on the last message of a same-author, same-minute run, as `just now`, `5m ago`, `3h ago`, then a locale date.
17
+
18
+ The conversation scrolls to the newest message whenever it receives a different messages array or the number of typing authors changes. The sidebar re-filters the open topic's messages on each of its renders, so any sidebar render scrolls; a host-owned conversation scrolls whenever the host passes a new array.
19
+
20
+ ## Composer
21
+
22
+ Typing `@` opens suggestions from `mentionCandidates`, `resolveMentionCandidates` or both, merged by identifier; omit both to turn mentions off. Arrow keys move the highlight, Enter or Tab picks, and Escape closes only the suggestions. Lookup results for outdated text are discarded, and a rejected lookup clears only the resolved candidates. Mention matching is case-insensitive and the longest name wins; a name continuing into a longer word is not a mention.
23
+
24
+ The emoji button opens a row of recent emoji and a full categorized picker, inserts at the caret, and remembers recent choices in browser storage without any callback.
25
+
26
+ `typingAuthors` shows one, two or several authors as typing, with avatars; the host clears the list when the reply arrives. Typing is hidden while the messages query is denied.
27
+
28
+ ## Actions
29
+
30
+ Message actions appear as a button row on a message when it is hovered or focused, and stay in the Tab order. An action's `icon` is required (an element, or a class name rendered as an icon-font glyph) and its `label` is the tooltip and accessible name. Quick reply is built in: it prefills the composer with `@Name ` for the author and does not send; turning it off does not affect other actions.
31
+
32
+ Topic actions sit beside each topic's open button. Without an `icon` the label text shows; the accessible name is the label followed by the topic's name. Invoking one does not open the topic.
33
+
34
+ Without `isAvailable` an action shows on every message or topic. Actions receive the host's full message or topic object. No action changes data itself: the host applies the change and supplies the updated data.
35
+
36
+ ## Panel and overlays
37
+
38
+ By default the sidebar is non-modal: it does not move or trap focus and does not close on Escape or an outside click, so the page behind stays usable. Only the close button dismisses it, by calling `onClose`; the host sets `open` to false. Back returns to the topic list. Move focus into the panel yourself when it opens from a keyboard action, or use `autoFocus` to focus the composer when a conversation mounts.
39
+
40
+ The non-modal panel and the composer's emoji picker portal into the container returned by the components provider's `overlayEnvironment.getContainer()`, the document body by default. While it returns nothing they do not render and ask again on later renders; they never fall back to the body. The panel slides in and out unless reduced motion is requested, and server rendering emits no panel markup.
41
+
42
+ With `modal`, the panel renders as a modal overlay: a backdrop blocks the page and Escape or a press outside the panel calls `onClose`.
43
+
44
+ ## Labels
45
+
46
+ Every string is English by default and is localized only through the component's `labels`, not through the components provider's messages. Unset fields keep their default; placeholders in braces are substituted. The close glyph comes from the provider's `close` icon.
47
+
48
+ - Sidebar (`ChatSidebarLabels`): `topics` (list title), `unnamedTopic` (title and list rows), `back`, `close`, `topicList`, `conversation`.
49
+ - Topic list (`ChatTopicListLabels`): `newTopic`, `unnamedTopic`, `startedBy` (`{name}`), `loading`, `failed`, `unauthorized`, `empty`, `timestamps`.
50
+ - Conversation (`ChatConversationLabels`): `loading`, `failed`, `unauthorized`, `empty`, `typing` (`{name}`), `typingTwo` (`{first}`, `{second}`), `typingSeveral`, `quickReplyTo` (`{name}`), `timestamps`, `composer`.
51
+ - Composer (`ChatComposerLabels`): `placeholder`, `insertEmoji`, `send` (tooltip), `sendMessage` (accessible name), `reactionPicker`.
52
+ - Emoji: `reactionPicker` takes `pickEmoji`, `allEmojis` and `emojiPicker`; `emojiPicker` takes `pickEmoji`, `allEmojis`, `emojiCategories` and `categories`, keyed `smileys`, `people`, `nature`, `food`, `activity`, `travel`, `objects`, `symbols`, `flags`.
53
+ - Timestamps (`RelativeTimestampLabels`): `justNow`, `minutesAgo` (`{minutes}`), `hoursAgo` (`{hours}`).
54
+
55
+ ## Styling
56
+
57
+ - Parts through `pt` (`ChatSidebarParts`): `backdrop`, `root`, `header`, `title`, `back`, `close`, `content`; each takes element attributes such as class, style, ARIA and `data-*`. `back` and `close` take button attributes except the click handler and type.
58
+ - The panel exposes `data-position`, `data-open`, `data-selected` (a topic is open), `data-entering` and `data-exiting` for styling states.
59
+ - A rendered mention carries the class `cratis-chat-message__mention` and `data-kind` (`user` or `agent`); agents get a dotted underline by default.
60
+ - Colors come from the `--cratis-*` theme tokens (see `cratis-components-theme-application`).
@@ -0,0 +1,108 @@
1
+ # Compose chat features in TypeScript and React
2
+
3
+ ## Contents
4
+
5
+ - Authors and avatars
6
+ - Mentions and typing
7
+ - Message actions and extras
8
+ - Topic actions and header content
9
+ - Naming
10
+ - Labels and parts
11
+
12
+ Import `ChatAuthorKind` and the types from `@cratis/components/Chat`. `sidebarProps` stands for the required `ChatSidebar` props. The observable-query wrapper accepts every option here. `renderHeaderActions`, `onRequestTopicName`, `pt` and the nested `labels` are sidebar-only; `ChatConversation` and `ChatTopicList` take the rest that apply to them.
13
+
14
+ ## Authors and avatars
15
+
16
+ ```tsx
17
+ <ChatSidebar {...sidebarProps}
18
+ authorOf={authorId => {
19
+ const member = team.get(String(authorId));
20
+ return member === undefined
21
+ ? { name: 'Former member', kind: ChatAuthorKind.User }
22
+ : { name: member.name, kind: member.isAgent ? ChatAuthorKind.Agent : ChatAuthorKind.User,
23
+ hasAvatar: member.hasAvatar, avatarVersion: member.avatarVersion };
24
+ }}
25
+ buildAvatarUrl={({ ownerType, userId, avatarSize, version }) =>
26
+ `/avatars/${ownerType}/${userId}/${avatarSize}?v=${version ?? 0}`} />
27
+ ```
28
+
29
+ - `authorOf` runs at render time, so a renamed author or new avatar shows without rewriting messages. Without it the identifier is the name.
30
+ - An image loads only when `hasAvatar` is true and `buildAvatarUrl` is set; the chat requests `ownerType` `Agents` for agents and `Users` otherwise, at `Small` size. A failed image falls back to initials.
31
+ - Bump `avatarVersion` after an upload so the URL changes.
32
+ - `renderAvatar(authorId, author)` and `renderAuthorName(authorId, author)` replace the built-in circle and name text entirely.
33
+
34
+ ## Mentions and typing
35
+
36
+ ```tsx
37
+ <ChatSidebar {...sidebarProps}
38
+ mentionCandidates={[{ id: 'reviewer', name: 'Review Agent', hasAvatar: false, kind: ChatAuthorKind.Agent }]}
39
+ resolveMentionCandidates={query => searchTeam(query)}
40
+ typingAuthors={replyPending ? [{ id: 'reviewer', name: 'Review Agent', hasAvatar: false, kind: ChatAuthorKind.Agent }] : []} />
41
+ ```
42
+
43
+ - Use either candidate source or both; results merge by identifier. `resolveMentionCandidates` may return a list or a promise; stale answers are dropped and a rejection clears only resolved candidates. Omit both to turn mentions off.
44
+ - `onSendMessage` reports the mentions still present in the final text. Store them and return them on the message as `mentions`.
45
+ - `typingAuthors` shows one, two or "several" authors as typing; the host clears the list when the reply arrives.
46
+
47
+ ## Message actions and extras
48
+
49
+ ```tsx
50
+ type TicketMessage = ChatMessage & { ticketId?: string; failed?: boolean };
51
+
52
+ <ChatSidebar<TicketMessage> {...sidebarProps}
53
+ actions={[
54
+ { id: 'open-ticket', label: 'Open ticket', icon: <span aria-hidden="true">↗</span>,
55
+ isAvailable: message => message.ticketId !== undefined, onInvoke: message => openTicket(message) },
56
+ { id: 'copy', label: 'Copy text', icon: 'app-icon-copy', onInvoke: message => copyText(message.body) },
57
+ ]}
58
+ renderMessageExtra={message => message.failed ? <RetryNotice message={message} /> : null} />
59
+ ```
60
+
61
+ - `icon` is required: an element, or a class name rendered as an icon-font glyph. `label` is the tooltip and accessible name. Without `isAvailable` the action shows on every message.
62
+ - `onInvoke` receives the host's full message type. The action changes nothing itself; supply updated data.
63
+ - `renderMessageExtra` adds host content under a body, such as reactions or a failure notice; give its controls accessible names.
64
+ - Quick reply is built in and prefills `@Name `; `quickReply={false}` removes it without affecting `actions`.
65
+
66
+ ## Topic actions and header content
67
+
68
+ ```tsx
69
+ <ChatSidebar {...sidebarProps}
70
+ topicActions={[
71
+ { id: 'rename', label: 'Rename', onInvoke: topic => promptRename(topic) },
72
+ { id: 'archive', label: 'Archive', icon: 'app-icon-archive', onInvoke: topic => archive(topic.id) },
73
+ ]}
74
+ renderHeaderActions={openTopic => openTopic ? <RenameButton topic={openTopic} /> : null} />
75
+ ```
76
+
77
+ - A topic action shows its `label` text when it has no `icon`; its accessible name is the label followed by the topic's name. Invoking it does not open the topic. `isAvailable(topic)` limits it.
78
+ - `renderHeaderActions` receives the open topic, or `undefined` while the list shows or when the open topic's row is missing from `topics`. It renders whatever the query statuses say, so gate actions on the caller's access yourself.
79
+ - A rename only shows once the stored name arrives in `topics`.
80
+
81
+ ## Naming
82
+
83
+ ```tsx
84
+ <ChatSidebar {...sidebarProps}
85
+ onRequestTopicName={(topic, firstMessageBody) => suggestName(topic.id, firstMessageBody)}
86
+ isTopicUnnamed={topic => !topic.name?.trim() || topic.name === 'Untitled'}
87
+ labels={{ unnamedTopic: 'Naming…' }} />
88
+ ```
89
+
90
+ - The handler runs right after `onSendMessage` is called, not after the send succeeds, when the open topic is in `topics`, is unnamed and has no rows in the supplied `messages`. It counts supplied rows, not stored history, so a topic whose messages are still loading counts as empty and a failed first send still requests a name. It is unawaited; make it safe to run twice.
91
+ - Override `isTopicUnnamed` only when the backend stores a literal placeholder. Compose with the exported `isTopicUnnamed` to keep the blank-name rule.
92
+ - If naming fails, store a fallback name or offer a rename action.
93
+
94
+ ## Labels and parts
95
+
96
+ ```tsx
97
+ <ChatSidebar {...sidebarProps}
98
+ labels={{
99
+ topics: 'Conversations',
100
+ topicList: { newTopic: 'Start a conversation' },
101
+ conversation: { empty: 'No replies yet.', composer: { placeholder: 'Ask the team…' } },
102
+ }}
103
+ pt={{ root: { 'data-testid': 'support-chat' }, close: { title: 'Close conversations' } }} />
104
+ ```
105
+
106
+ - Pass only the strings to change; the rest keep their English defaults. Braced placeholders (`{name}`, `{minutes}`) are substituted.
107
+ - The provider's messages do not localize chat; `labels` does.
108
+ - `pt` adds attributes to the panel parts; it cannot replace the back or close click handlers.
@@ -0,0 +1,59 @@
1
+ # Embedded chat layouts in TypeScript and React
2
+
3
+ Use these when the page, not a sliding panel, hosts the chat. They have no header, close or back button, portal, or naming request.
4
+
5
+ ## Topic list beside a conversation
6
+
7
+ The host owns which topic is open, filters its messages, and requests a name itself: neither standalone component calls a naming handler. The exported helpers reproduce the sidebar's rule.
8
+
9
+ ```tsx
10
+ import { useState } from 'react';
11
+ import {
12
+ ChatConversation, ChatTopicList, chatIdentifierString, isTopicUnnamed, sameChatIdentifier, shouldRequestTopicName,
13
+ type ChatAuthor, type ChatIdentifier, type ChatMention, type ChatMessage, type ChatStatus, type ChatTopic,
14
+ } from '@cratis/components/Chat';
15
+
16
+ type DeskProps = {
17
+ topics: ChatTopic[]; topicsStatus: ChatStatus;
18
+ messages: ChatMessage[]; messagesStatus: ChatStatus;
19
+ send: (topicId: ChatIdentifier, body: string, mentions: ChatMention[]) => void;
20
+ nameTopic: (topic: ChatTopic, firstMessageBody: string) => void;
21
+ startTopic: () => void;
22
+ authorOf: (authorId: ChatIdentifier) => ChatAuthor;
23
+ };
24
+
25
+ export function SupportDesk({ topics, topicsStatus, messages, messagesStatus, send, nameTopic, startTopic, authorOf }: DeskProps) {
26
+ const [openId, setOpenId] = useState<ChatIdentifier>();
27
+ const openTopic = topics.find(topic => sameChatIdentifier(topic.id, openId));
28
+ const thread = messages.filter(message => sameChatIdentifier(message.topicId, openId));
29
+
30
+ return <div className="support-desk">
31
+ <ChatTopicList topics={topics} status={topicsStatus} authorOf={authorOf}
32
+ onOpen={topic => setOpenId(topic.id)} onStart={startTopic} />
33
+ {openTopic && <ChatConversation key={chatIdentifierString(openTopic.id)}
34
+ messages={thread} status={messagesStatus} authorOf={authorOf}
35
+ onSendMessage={(body, mentions) => {
36
+ send(openTopic.id, body, mentions);
37
+ if (shouldRequestTopicName(isTopicUnnamed(openTopic), thread.length)) nameTopic(openTopic, body);
38
+ }} />}
39
+ </div>;
40
+ }
41
+ ```
42
+
43
+ - Key the conversation by the topic identifier. It keeps the unsent draft and its picked mentions in its own state, so one instance reused across topics would show one topic's draft in another and send it there.
44
+ - `send` follows the sidebar's rules: check the command result, report a failure and keep the body and mentions under the topic it received for a retry.
45
+ - `ChatConversation` renders the messages it is given, in order; it does not filter by topic. Its send callback has no topic identifier, so add it from host state.
46
+ - `ChatTopicList` orders topics by activity and has no selected state. `onStart` raises the new-topic intent and returns nothing; open the created topic from host state.
47
+ - When access is lost, clear `openId` and the denied rows here too; the statuses only change what each component renders.
48
+ - Pass labels directly: `ChatTopicListLabels` to the list and `ChatConversationLabels` to the conversation, without the sidebar's `topicList` or `conversation` nesting.
49
+ - Every other conversation option (`actions`, mentions, `typingAuthors`, `renderMessageExtra`, `quickReply`, `autoFocus`) and list option (`topicActions`, `isTopicUnnamed`, `renderAvatar`, `buildAvatarUrl`) behaves as on the sidebar; see the composition topic of this reference.
50
+
51
+ ## Render a stored body
52
+
53
+ `ChatMessageBody` renders one body with its mentions marked, for a transcript, notification or application-owned message list:
54
+
55
+ ```tsx
56
+ <ChatMessageBody body={message.body} mentions={message.mentions} />
57
+ ```
58
+
59
+ It renders plain text, not HTML or Markdown. Each supplied mention found in the text gets the `cratis-chat-message__mention` class and `data-kind`; other text is unchanged. Omit `mentions` when the body has none.