@pega/sdk 0.0.2 → 0.0.4

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 (455) hide show
  1. package/LICENSE +183 -183
  2. package/README.md +6 -6
  3. package/SECURITY.md +2 -1
  4. package/dist/index.js +14 -57
  5. package/package.json +7 -6
  6. package/templates/angular-sdk-reference/package.json +15 -15
  7. package/templates/angular-sdk-reference/tsconfig.json +2 -2
  8. package/templates/react-native-sdk-reference/App.tsx +2 -4
  9. package/templates/react-native-sdk-reference/package.json +6 -6
  10. package/templates/react-native-sdk-reference/tsconfig.json +2 -1
  11. package/templates/react-sdk-reference/.claude/instructions/component-map.md +38 -0
  12. package/templates/react-sdk-reference/.claude/instructions/dse-component.md +75 -0
  13. package/templates/react-sdk-reference/.claude/instructions/field-component.md +75 -0
  14. package/templates/react-sdk-reference/.claude/instructions/template-component.md +93 -0
  15. package/templates/react-sdk-reference/.claude/instructions/widget-component.md +88 -0
  16. package/templates/react-sdk-reference/.claude/prompts/add-component.md +152 -0
  17. package/templates/react-sdk-reference/.claude/prompts/component-manifest.json +193 -0
  18. package/templates/react-sdk-reference/.claude/prompts/generate-all-components.md +158 -0
  19. package/templates/react-sdk-reference/.claude/prompts/generate-dse-components.md +140 -0
  20. package/templates/react-sdk-reference/.claude/prompts/generate-field-components.md +153 -0
  21. package/templates/react-sdk-reference/.claude/prompts/generate-template-components.md +165 -0
  22. package/templates/react-sdk-reference/.claude/prompts/generate-widget-components.md +138 -0
  23. package/templates/react-sdk-reference/.claude/prompts/identify-components.md +105 -0
  24. package/templates/react-sdk-reference/.claude/prompts/replace-design-system.md +519 -0
  25. package/templates/react-sdk-reference/.claude/skills/component-contracts.md +140 -0
  26. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/AlertBanner.md +137 -0
  27. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Banner.md +152 -0
  28. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/CaseSummaryFields.md +159 -0
  29. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/DetailsFields.md +148 -0
  30. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroup.md +134 -0
  31. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroupList.md +113 -0
  32. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldValueList.md +118 -0
  33. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Operator.md +155 -0
  34. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Pulse.md +85 -0
  35. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/RichTextEditor.md +232 -0
  36. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/WssQuickCreate.md +137 -0
  37. package/templates/react-sdk-reference/.claude/skills/design-system-extension.md +291 -0
  38. package/templates/react-sdk-reference/.claude/skills/field-components.md +295 -0
  39. package/templates/react-sdk-reference/.claude/skills/field-skills/AutoComplete.md +113 -0
  40. package/templates/react-sdk-reference/.claude/skills/field-skills/CancelAlert.md +211 -0
  41. package/templates/react-sdk-reference/.claude/skills/field-skills/Checkbox.md +175 -0
  42. package/templates/react-sdk-reference/.claude/skills/field-skills/Currency.md +109 -0
  43. package/templates/react-sdk-reference/.claude/skills/field-skills/Date.md +101 -0
  44. package/templates/react-sdk-reference/.claude/skills/field-skills/DateTime.md +106 -0
  45. package/templates/react-sdk-reference/.claude/skills/field-skills/Decimal.md +99 -0
  46. package/templates/react-sdk-reference/.claude/skills/field-skills/Dropdown.md +134 -0
  47. package/templates/react-sdk-reference/.claude/skills/field-skills/Email.md +109 -0
  48. package/templates/react-sdk-reference/.claude/skills/field-skills/Group.md +96 -0
  49. package/templates/react-sdk-reference/.claude/skills/field-skills/Integer.md +88 -0
  50. package/templates/react-sdk-reference/.claude/skills/field-skills/Location.md +145 -0
  51. package/templates/react-sdk-reference/.claude/skills/field-skills/Multiselect.md +188 -0
  52. package/templates/react-sdk-reference/.claude/skills/field-skills/ObjectReference.md +173 -0
  53. package/templates/react-sdk-reference/.claude/skills/field-skills/Percentage.md +93 -0
  54. package/templates/react-sdk-reference/.claude/skills/field-skills/Phone.md +129 -0
  55. package/templates/react-sdk-reference/.claude/skills/field-skills/RadioButtons.md +167 -0
  56. package/templates/react-sdk-reference/.claude/skills/field-skills/RichText.md +149 -0
  57. package/templates/react-sdk-reference/.claude/skills/field-skills/ScalarList.md +134 -0
  58. package/templates/react-sdk-reference/.claude/skills/field-skills/SelectableCard.md +231 -0
  59. package/templates/react-sdk-reference/.claude/skills/field-skills/SemanticLink.md +155 -0
  60. package/templates/react-sdk-reference/.claude/skills/field-skills/TextArea.md +98 -0
  61. package/templates/react-sdk-reference/.claude/skills/field-skills/TextContent.md +117 -0
  62. package/templates/react-sdk-reference/.claude/skills/field-skills/TextInput.md +107 -0
  63. package/templates/react-sdk-reference/.claude/skills/field-skills/Time.md +89 -0
  64. package/templates/react-sdk-reference/.claude/skills/field-skills/URL.md +86 -0
  65. package/templates/react-sdk-reference/.claude/skills/field-skills/UserReference.md +203 -0
  66. package/templates/react-sdk-reference/.claude/skills/run-and-verify.md +70 -0
  67. package/templates/react-sdk-reference/.claude/skills/template-components.md +321 -0
  68. package/templates/react-sdk-reference/.claude/skills/template-skills/AdvancedSearch.md +150 -0
  69. package/templates/react-sdk-reference/.claude/skills/template-skills/AppShell.md +124 -0
  70. package/templates/react-sdk-reference/.claude/skills/template-skills/BannerPage.md +86 -0
  71. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseSummary.md +106 -0
  72. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseView.md +137 -0
  73. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseViewActionsMenu.md +131 -0
  74. package/templates/react-sdk-reference/.claude/skills/template-skills/Confirmation.md +109 -0
  75. package/templates/react-sdk-reference/.claude/skills/template-skills/DataReference.md +124 -0
  76. package/templates/react-sdk-reference/.claude/skills/template-skills/DefaultForm.md +104 -0
  77. package/templates/react-sdk-reference/.claude/skills/template-skills/DefaultPage.md +112 -0
  78. package/templates/react-sdk-reference/.claude/skills/template-skills/Details.md +90 -0
  79. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsSubTabs.md +97 -0
  80. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsThreeColumn.md +80 -0
  81. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsTwoColumn.md +80 -0
  82. package/templates/react-sdk-reference/.claude/skills/template-skills/DynamicTabs.md +106 -0
  83. package/templates/react-sdk-reference/.claude/skills/template-skills/FieldGroupTemplate.md +112 -0
  84. package/templates/react-sdk-reference/.claude/skills/template-skills/HierarchicalForm.md +116 -0
  85. package/templates/react-sdk-reference/.claude/skills/template-skills/InlineDashboard.md +108 -0
  86. package/templates/react-sdk-reference/.claude/skills/template-skills/InlineDashboardPage.md +82 -0
  87. package/templates/react-sdk-reference/.claude/skills/template-skills/ListPage.md +70 -0
  88. package/templates/react-sdk-reference/.claude/skills/template-skills/ListView.md +142 -0
  89. package/templates/react-sdk-reference/.claude/skills/template-skills/MultiReferenceReadOnly.md +82 -0
  90. package/templates/react-sdk-reference/.claude/skills/template-skills/NarrowWide.md +143 -0
  91. package/templates/react-sdk-reference/.claude/skills/template-skills/OneColumn.md +114 -0
  92. package/templates/react-sdk-reference/.claude/skills/template-skills/PromotedFilters.md +130 -0
  93. package/templates/react-sdk-reference/.claude/skills/template-skills/SelfServiceCaseView.md +142 -0
  94. package/templates/react-sdk-reference/.claude/skills/template-skills/SimpleTable.md +131 -0
  95. package/templates/react-sdk-reference/.claude/skills/template-skills/SingleReferenceReadOnly.md +108 -0
  96. package/templates/react-sdk-reference/.claude/skills/template-skills/SubTabs.md +82 -0
  97. package/templates/react-sdk-reference/.claude/skills/template-skills/TwoColumn.md +133 -0
  98. package/templates/react-sdk-reference/.claude/skills/template-skills/WideNarrow.md +152 -0
  99. package/templates/react-sdk-reference/.claude/skills/template-skills/WssNavBar.md +139 -0
  100. package/templates/react-sdk-reference/.claude/skills/widget-components.md +260 -0
  101. package/templates/react-sdk-reference/.claude/skills/widget-skills/AppAnnouncement.md +84 -0
  102. package/templates/react-sdk-reference/.claude/skills/widget-skills/Attachment.md +151 -0
  103. package/templates/react-sdk-reference/.claude/skills/widget-skills/CaseHistory.md +110 -0
  104. package/templates/react-sdk-reference/.claude/skills/widget-skills/FileUtility.md +206 -0
  105. package/templates/react-sdk-reference/.claude/skills/widget-skills/Followers.md +103 -0
  106. package/templates/react-sdk-reference/.claude/skills/widget-skills/QuickCreate.md +118 -0
  107. package/templates/react-sdk-reference/.claude/skills/widget-skills/SummaryItem.md +169 -0
  108. package/templates/react-sdk-reference/.claude/skills/widget-skills/ToDo.md +198 -0
  109. package/templates/react-sdk-reference/.cursor/rules/component-map.mdrules +41 -0
  110. package/templates/react-sdk-reference/.cursor/rules/dse-component.mdrules +78 -0
  111. package/templates/react-sdk-reference/.cursor/rules/field-component.mdrules +74 -0
  112. package/templates/react-sdk-reference/.cursor/rules/pega-sdk.mdrules +247 -0
  113. package/templates/react-sdk-reference/.cursor/rules/prompts/add-component.mdrules +149 -0
  114. package/templates/react-sdk-reference/.cursor/rules/prompts/component-manifest.json +193 -0
  115. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-all-components.mdrules +154 -0
  116. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-dse-components.mdrules +131 -0
  117. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-field-components.mdrules +144 -0
  118. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-template-components.mdrules +156 -0
  119. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-widget-components.mdrules +129 -0
  120. package/templates/react-sdk-reference/.cursor/rules/prompts/identify-components.mdrules +110 -0
  121. package/templates/react-sdk-reference/.cursor/rules/prompts/replace-design-system.mdrules +524 -0
  122. package/templates/react-sdk-reference/.cursor/rules/skills/component-contracts.mdrules +145 -0
  123. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/AlertBanner.mdrules +140 -0
  124. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Banner.mdrules +154 -0
  125. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/CaseSummaryFields.mdrules +159 -0
  126. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/DetailsFields.mdrules +149 -0
  127. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldGroup.mdrules +136 -0
  128. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldGroupList.mdrules +116 -0
  129. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldValueList.mdrules +120 -0
  130. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Operator.mdrules +154 -0
  131. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Pulse.mdrules +88 -0
  132. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/RichTextEditor.mdrules +211 -0
  133. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/WssQuickCreate.mdrules +140 -0
  134. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension.mdrules +294 -0
  135. package/templates/react-sdk-reference/.cursor/rules/skills/field-components.mdrules +299 -0
  136. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/AutoComplete.mdrules +117 -0
  137. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/CancelAlert.mdrules +208 -0
  138. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Checkbox.mdrules +163 -0
  139. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Currency.mdrules +111 -0
  140. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Date.mdrules +104 -0
  141. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/DateTime.mdrules +108 -0
  142. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Decimal.mdrules +103 -0
  143. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Dropdown.mdrules +119 -0
  144. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Email.mdrules +112 -0
  145. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Group.mdrules +95 -0
  146. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Integer.mdrules +92 -0
  147. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Location.mdrules +141 -0
  148. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Multiselect.mdrules +169 -0
  149. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/ObjectReference.mdrules +169 -0
  150. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Percentage.mdrules +97 -0
  151. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Phone.mdrules +115 -0
  152. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/RadioButtons.mdrules +151 -0
  153. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/RichText.mdrules +143 -0
  154. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/ScalarList.mdrules +129 -0
  155. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/SelectableCard.mdrules +221 -0
  156. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/SemanticLink.mdrules +153 -0
  157. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextArea.mdrules +101 -0
  158. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextContent.mdrules +106 -0
  159. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextInput.mdrules +109 -0
  160. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Time.mdrules +93 -0
  161. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/URL.mdrules +90 -0
  162. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/UserReference.mdrules +185 -0
  163. package/templates/react-sdk-reference/.cursor/rules/skills/run-and-verify.mdrules +73 -0
  164. package/templates/react-sdk-reference/.cursor/rules/skills/template-components.mdrules +327 -0
  165. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/AdvancedSearch.mdrules +149 -0
  166. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/AppShell.mdrules +127 -0
  167. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/BannerPage.mdrules +88 -0
  168. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseSummary.mdrules +105 -0
  169. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseView.mdrules +136 -0
  170. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseViewActionsMenu.mdrules +131 -0
  171. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/Confirmation.mdrules +112 -0
  172. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DataReference.mdrules +125 -0
  173. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DefaultForm.mdrules +107 -0
  174. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DefaultPage.mdrules +115 -0
  175. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/Details.mdrules +93 -0
  176. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsSubTabs.mdrules +100 -0
  177. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsThreeColumn.mdrules +83 -0
  178. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsTwoColumn.mdrules +83 -0
  179. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DynamicTabs.mdrules +106 -0
  180. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/FieldGroupTemplate.mdrules +114 -0
  181. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/HierarchicalForm.mdrules +118 -0
  182. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/InlineDashboard.mdrules +109 -0
  183. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/InlineDashboardPage.mdrules +90 -0
  184. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/ListPage.mdrules +73 -0
  185. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/ListView.mdrules +144 -0
  186. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/MultiReferenceReadOnly.mdrules +85 -0
  187. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/NarrowWide.mdrules +146 -0
  188. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/OneColumn.mdrules +114 -0
  189. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/PromotedFilters.mdrules +129 -0
  190. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SelfServiceCaseView.mdrules +140 -0
  191. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SimpleTable.mdrules +132 -0
  192. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SingleReferenceReadOnly.mdrules +108 -0
  193. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SubTabs.mdrules +84 -0
  194. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/TwoColumn.mdrules +136 -0
  195. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/WideNarrow.mdrules +155 -0
  196. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/WssNavBar.mdrules +140 -0
  197. package/templates/react-sdk-reference/.cursor/rules/skills/widget-components.mdrules +276 -0
  198. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/AppAnnouncement.mdrules +87 -0
  199. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/Attachment.mdrules +151 -0
  200. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/CaseHistory.mdrules +112 -0
  201. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/FileUtility.mdrules +205 -0
  202. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/Followers.mdrules +104 -0
  203. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/QuickCreate.mdrules +119 -0
  204. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/SummaryItem.mdrules +172 -0
  205. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/ToDo.mdrules +195 -0
  206. package/templates/react-sdk-reference/.cursor/rules/template-component.mdrules +95 -0
  207. package/templates/react-sdk-reference/.cursor/rules/widget-component.mdrules +90 -0
  208. package/templates/react-sdk-reference/.github/agents/implementation-expert.agent.md +135 -0
  209. package/templates/react-sdk-reference/.github/copilot-instructions.md +58 -0
  210. package/templates/react-sdk-reference/.github/instructions/component-map.instructions.md +2 -2
  211. package/templates/react-sdk-reference/.github/instructions/dse-component.instructions.md +1 -1
  212. package/templates/react-sdk-reference/.github/instructions/field-component.instructions.md +5 -1
  213. package/templates/react-sdk-reference/.github/instructions/template-component.instructions.md +3 -2
  214. package/templates/react-sdk-reference/.github/instructions/widget-component.instructions.md +2 -1
  215. package/templates/react-sdk-reference/.github/prompts/add-component.prompt.md +187 -16
  216. package/templates/react-sdk-reference/.github/prompts/component-manifest.json +165 -83
  217. package/templates/react-sdk-reference/.github/prompts/generate-all-components.prompt.md +411 -0
  218. package/templates/react-sdk-reference/.github/prompts/generate-dse-components.prompt.md +205 -0
  219. package/templates/react-sdk-reference/.github/prompts/generate-field-components.prompt.md +223 -0
  220. package/templates/react-sdk-reference/.github/prompts/generate-template-components.prompt.md +229 -0
  221. package/templates/react-sdk-reference/.github/prompts/generate-widget-components.prompt.md +208 -0
  222. package/templates/react-sdk-reference/.github/prompts/identify-components.prompt.md +65 -65
  223. package/templates/react-sdk-reference/.github/skills/component-contracts.md +99 -99
  224. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/AlertBanner.md +40 -38
  225. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Banner.md +54 -51
  226. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/CaseSummaryFields.md +51 -46
  227. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/DetailsFields.md +32 -28
  228. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroup.md +38 -35
  229. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroupList.md +25 -23
  230. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldValueList.md +29 -26
  231. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Operator.md +32 -26
  232. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Pulse.md +17 -15
  233. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/RichTextEditor.md +85 -59
  234. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/WssQuickCreate.md +49 -47
  235. package/templates/react-sdk-reference/.github/skills/design-system-extension.md +60 -18
  236. package/templates/react-sdk-reference/.github/skills/field-components.md +56 -23
  237. package/templates/react-sdk-reference/.github/skills/field-skills/AutoComplete.md +27 -26
  238. package/templates/react-sdk-reference/.github/skills/field-skills/CancelAlert.md +30 -22
  239. package/templates/react-sdk-reference/.github/skills/field-skills/Checkbox.md +60 -43
  240. package/templates/react-sdk-reference/.github/skills/field-skills/Currency.md +23 -20
  241. package/templates/react-sdk-reference/.github/skills/field-skills/Date.md +19 -17
  242. package/templates/react-sdk-reference/.github/skills/field-skills/DateTime.md +18 -15
  243. package/templates/react-sdk-reference/.github/skills/field-skills/Decimal.md +22 -21
  244. package/templates/react-sdk-reference/.github/skills/field-skills/Dropdown.md +50 -30
  245. package/templates/react-sdk-reference/.github/skills/field-skills/Email.md +20 -18
  246. package/templates/react-sdk-reference/.github/skills/field-skills/Group.md +21 -15
  247. package/templates/react-sdk-reference/.github/skills/field-skills/Integer.md +17 -16
  248. package/templates/react-sdk-reference/.github/skills/field-skills/Location.md +30 -21
  249. package/templates/react-sdk-reference/.github/skills/field-skills/Multiselect.md +66 -42
  250. package/templates/react-sdk-reference/.github/skills/field-skills/ObjectReference.md +27 -18
  251. package/templates/react-sdk-reference/.github/skills/field-skills/Percentage.md +22 -21
  252. package/templates/react-sdk-reference/.github/skills/field-skills/Phone.md +36 -17
  253. package/templates/react-sdk-reference/.github/skills/field-skills/RadioButtons.md +56 -35
  254. package/templates/react-sdk-reference/.github/skills/field-skills/RichText.md +23 -12
  255. package/templates/react-sdk-reference/.github/skills/field-skills/ScalarList.md +41 -31
  256. package/templates/react-sdk-reference/.github/skills/field-skills/SelectableCard.md +70 -55
  257. package/templates/react-sdk-reference/.github/skills/field-skills/SemanticLink.md +34 -27
  258. package/templates/react-sdk-reference/.github/skills/field-skills/TextArea.md +24 -22
  259. package/templates/react-sdk-reference/.github/skills/field-skills/TextContent.md +38 -22
  260. package/templates/react-sdk-reference/.github/skills/field-skills/TextInput.md +24 -21
  261. package/templates/react-sdk-reference/.github/skills/field-skills/Time.md +16 -15
  262. package/templates/react-sdk-reference/.github/skills/field-skills/URL.md +16 -15
  263. package/templates/react-sdk-reference/.github/skills/field-skills/UserReference.md +57 -34
  264. package/templates/react-sdk-reference/.github/skills/run-and-verify.md +10 -8
  265. package/templates/react-sdk-reference/.github/skills/template-components.md +50 -14
  266. package/templates/react-sdk-reference/.github/skills/template-skills/AdvancedSearch.md +27 -21
  267. package/templates/react-sdk-reference/.github/skills/template-skills/AppShell.md +17 -15
  268. package/templates/react-sdk-reference/.github/skills/template-skills/BannerPage.md +19 -16
  269. package/templates/react-sdk-reference/.github/skills/template-skills/CaseSummary.md +19 -13
  270. package/templates/react-sdk-reference/.github/skills/template-skills/CaseView.md +23 -17
  271. package/templates/react-sdk-reference/.github/skills/template-skills/CaseViewActionsMenu.md +34 -29
  272. package/templates/react-sdk-reference/.github/skills/template-skills/Confirmation.md +18 -16
  273. package/templates/react-sdk-reference/.github/skills/template-skills/DataReference.md +36 -32
  274. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultForm.md +23 -21
  275. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultPage.md +31 -29
  276. package/templates/react-sdk-reference/.github/skills/template-skills/Details.md +19 -17
  277. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsSubTabs.md +22 -20
  278. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsThreeColumn.md +19 -17
  279. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsTwoColumn.md +19 -17
  280. package/templates/react-sdk-reference/.github/skills/template-skills/DynamicTabs.md +15 -10
  281. package/templates/react-sdk-reference/.github/skills/template-skills/FieldGroupTemplate.md +19 -16
  282. package/templates/react-sdk-reference/.github/skills/template-skills/HierarchicalForm.md +18 -15
  283. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboard.md +17 -13
  284. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboardPage.md +10 -13
  285. package/templates/react-sdk-reference/.github/skills/template-skills/ListPage.md +9 -7
  286. package/templates/react-sdk-reference/.github/skills/template-skills/ListView.md +33 -30
  287. package/templates/react-sdk-reference/.github/skills/template-skills/MultiReferenceReadOnly.md +13 -11
  288. package/templates/react-sdk-reference/.github/skills/template-skills/NarrowWide.md +42 -40
  289. package/templates/react-sdk-reference/.github/skills/template-skills/OneColumn.md +25 -20
  290. package/templates/react-sdk-reference/.github/skills/template-skills/PromotedFilters.md +25 -19
  291. package/templates/react-sdk-reference/.github/skills/template-skills/SelfServiceCaseView.md +36 -29
  292. package/templates/react-sdk-reference/.github/skills/template-skills/SimpleTable.md +31 -27
  293. package/templates/react-sdk-reference/.github/skills/template-skills/SingleReferenceReadOnly.md +29 -24
  294. package/templates/react-sdk-reference/.github/skills/template-skills/SubTabs.md +14 -11
  295. package/templates/react-sdk-reference/.github/skills/template-skills/TwoColumn.md +34 -32
  296. package/templates/react-sdk-reference/.github/skills/template-skills/WideNarrow.md +48 -46
  297. package/templates/react-sdk-reference/.github/skills/template-skills/WssNavBar.md +23 -19
  298. package/templates/react-sdk-reference/.github/skills/widget-components.md +52 -26
  299. package/templates/react-sdk-reference/.github/skills/widget-skills/AppAnnouncement.md +22 -20
  300. package/templates/react-sdk-reference/.github/skills/widget-skills/Attachment.md +33 -28
  301. package/templates/react-sdk-reference/.github/skills/widget-skills/CaseHistory.md +18 -15
  302. package/templates/react-sdk-reference/.github/skills/widget-skills/FileUtility.md +43 -37
  303. package/templates/react-sdk-reference/.github/skills/widget-skills/Followers.md +23 -19
  304. package/templates/react-sdk-reference/.github/skills/widget-skills/QuickCreate.md +20 -16
  305. package/templates/react-sdk-reference/.github/skills/widget-skills/SummaryItem.md +26 -24
  306. package/templates/react-sdk-reference/.github/skills/widget-skills/ToDo.md +43 -35
  307. package/templates/react-sdk-reference/AGENTS.md +216 -29
  308. package/templates/react-sdk-reference/index.html +1 -4
  309. package/templates/react-sdk-reference/package.json +16 -16
  310. package/templates/react-sdk-reference/pega-constellationjs-0.26.3-local.tgz +0 -0
  311. package/templates/react-sdk-reference/pega-sdk-react-0.1.0.tgz +0 -0
  312. package/templates/react-sdk-reference/sdk-config.json +1 -1
  313. package/templates/react-sdk-reference/src/AppSelector.tsx +6 -6
  314. package/templates/react-sdk-reference/src/FallbackComponent.tsx +2 -6
  315. package/templates/react-sdk-reference/src/MashupApp.styles.ts +269 -41
  316. package/templates/react-sdk-reference/src/MashupApp.tsx +186 -85
  317. package/templates/react-sdk-reference/src/PortalApp.tsx +10 -34
  318. package/templates/react-sdk-reference/src/components/component-map.ts +2 -7
  319. package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/AlertBanner.tsx +7 -28
  320. package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/Banner.tsx +12 -7
  321. package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +35 -33
  322. package/templates/react-sdk-reference/src/components/designSystemExtension/DetailsFields/DetailsFields.tsx +6 -27
  323. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroup/FieldGroup.tsx +15 -11
  324. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx +7 -7
  325. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldValueList/FieldValueList.tsx +18 -12
  326. package/templates/react-sdk-reference/src/components/designSystemExtension/Operator/Operator.tsx +27 -25
  327. package/templates/react-sdk-reference/src/components/designSystemExtension/Pulse/Pulse.tsx +4 -4
  328. package/templates/react-sdk-reference/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx +8 -40
  329. package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +9 -9
  330. package/templates/react-sdk-reference/src/components/field/AutoComplete/AutoComplete.tsx +26 -20
  331. package/templates/react-sdk-reference/src/components/field/CancelAlert/CancelAlert.tsx +35 -17
  332. package/templates/react-sdk-reference/src/components/field/Checkbox/Checkbox.tsx +27 -25
  333. package/templates/react-sdk-reference/src/components/field/Currency/Currency.tsx +10 -6
  334. package/templates/react-sdk-reference/src/components/field/Currency/currency-utils.ts +1 -1
  335. package/templates/react-sdk-reference/src/components/field/Date/Date.tsx +20 -7
  336. package/templates/react-sdk-reference/src/components/field/DateTime/DateTime.tsx +23 -8
  337. package/templates/react-sdk-reference/src/components/field/Decimal/Decimal.tsx +5 -5
  338. package/templates/react-sdk-reference/src/components/field/Dropdown/Dropdown.tsx +45 -25
  339. package/templates/react-sdk-reference/src/components/field/Email/Email.tsx +8 -8
  340. package/templates/react-sdk-reference/src/components/field/Group/Group.tsx +1 -1
  341. package/templates/react-sdk-reference/src/components/field/Integer/Integer.tsx +5 -5
  342. package/templates/react-sdk-reference/src/components/field/Location/Location.tsx +21 -16
  343. package/templates/react-sdk-reference/src/components/field/Multiselect/Multiselect.tsx +42 -27
  344. package/templates/react-sdk-reference/src/components/field/Multiselect/utils.ts +43 -29
  345. package/templates/react-sdk-reference/src/components/field/ObjectReference/ObjectReference.tsx +53 -30
  346. package/templates/react-sdk-reference/src/components/field/ObjectReference/utils.ts +12 -11
  347. package/templates/react-sdk-reference/src/components/field/Percentage/Percentage.tsx +6 -6
  348. package/templates/react-sdk-reference/src/components/field/Phone/Phone.tsx +12 -12
  349. package/templates/react-sdk-reference/src/components/field/RadioButtons/RadioButtons.tsx +38 -16
  350. package/templates/react-sdk-reference/src/components/field/RichText/RichText.tsx +17 -4
  351. package/templates/react-sdk-reference/src/components/field/ScalarList/ScalarList.tsx +5 -5
  352. package/templates/react-sdk-reference/src/components/field/SelectableCard/SelectableCard.tsx +31 -18
  353. package/templates/react-sdk-reference/src/components/field/SelectableCard/utils.tsx +28 -20
  354. package/templates/react-sdk-reference/src/components/field/SemanticLink/SemanticLink.tsx +28 -19
  355. package/templates/react-sdk-reference/src/components/field/SemanticLink/utils.ts +3 -1
  356. package/templates/react-sdk-reference/src/components/field/TextArea/TextArea.tsx +4 -4
  357. package/templates/react-sdk-reference/src/components/field/TextInput/TextInput.tsx +4 -4
  358. package/templates/react-sdk-reference/src/components/field/Time/Time.tsx +20 -7
  359. package/templates/react-sdk-reference/src/components/field/URL/URL.tsx +7 -7
  360. package/templates/react-sdk-reference/src/components/field/UserReference/UserReference.tsx +14 -14
  361. package/templates/react-sdk-reference/src/components/field/UserReference/UserReferenceUtils.ts +2 -2
  362. package/templates/react-sdk-reference/src/components/helpers/case-utils.tsx +5 -5
  363. package/templates/react-sdk-reference/src/components/helpers/data_page.ts +3 -3
  364. package/templates/react-sdk-reference/src/components/helpers/date-format-utils.ts +5 -5
  365. package/templates/react-sdk-reference/src/components/helpers/field-group-utils.ts +2 -7
  366. package/templates/react-sdk-reference/src/components/helpers/formatters/Boolean.ts +9 -3
  367. package/templates/react-sdk-reference/src/components/helpers/formatters/Currency.ts +18 -6
  368. package/templates/react-sdk-reference/src/components/helpers/formatters/CurrencyMap.ts +168 -168
  369. package/templates/react-sdk-reference/src/components/helpers/formatters/Date.ts +5 -5
  370. package/templates/react-sdk-reference/src/components/helpers/formatters/index.ts +8 -5
  371. package/templates/react-sdk-reference/src/components/helpers/instructions-utils.ts +2 -2
  372. package/templates/react-sdk-reference/src/components/helpers/simpleTableHelpers.ts +54 -30
  373. package/templates/react-sdk-reference/src/components/helpers/state-utils.tsx +5 -2
  374. package/templates/react-sdk-reference/src/components/helpers/template-utils.ts +5 -4
  375. package/templates/react-sdk-reference/src/components/helpers/utils.ts +3 -3
  376. package/templates/react-sdk-reference/src/components/helpers/versionHelpers.ts +3 -1
  377. package/templates/react-sdk-reference/src/components/index.ts +1 -4
  378. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/AdvancedSearch.tsx +18 -10
  379. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroup/persistUtils.ts +3 -3
  380. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +26 -90
  381. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/hooks.ts +8 -5
  382. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/utils.ts +8 -4
  383. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/TemplateContext.ts +1 -1
  384. package/templates/react-sdk-reference/src/components/template/AppShell/AppShell.tsx +28 -19
  385. package/templates/react-sdk-reference/src/components/template/BannerPage/BannerPage.tsx +2 -2
  386. package/templates/react-sdk-reference/src/components/template/CaseSummary/CaseSummary.tsx +5 -5
  387. package/templates/react-sdk-reference/src/components/template/CaseView/CaseView.tsx +35 -16
  388. package/templates/react-sdk-reference/src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +10 -10
  389. package/templates/react-sdk-reference/src/components/template/Confirmation/Confirmation.tsx +12 -26
  390. package/templates/react-sdk-reference/src/components/template/DataReference/DataReference.tsx +41 -124
  391. package/templates/react-sdk-reference/src/components/template/DataReference/DataReferenceAdvancedSearchContext.ts +2 -2
  392. package/templates/react-sdk-reference/src/components/template/DataReference/SearchForm.tsx +18 -78
  393. package/templates/react-sdk-reference/src/components/template/DataReference/utils.ts +18 -12
  394. package/templates/react-sdk-reference/src/components/template/DefaultForm/DefaultForm.tsx +4 -12
  395. package/templates/react-sdk-reference/src/components/template/DefaultForm/utils/index.ts +3 -3
  396. package/templates/react-sdk-reference/src/components/template/DefaultPage/DefaultPage.tsx +3 -3
  397. package/templates/react-sdk-reference/src/components/template/Details/Details/Details.tsx +6 -8
  398. package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +7 -14
  399. package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +7 -14
  400. package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/DynamicTabs.tsx +16 -8
  401. package/templates/react-sdk-reference/src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx +7 -4
  402. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/HierarchicalForm.tsx +20 -5
  403. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/hooks.ts +35 -77
  404. package/templates/react-sdk-reference/src/components/template/InlineDashboard/InlineDashboard.tsx +10 -10
  405. package/templates/react-sdk-reference/src/components/template/ListView/DefaultViewMeta.ts +31 -31
  406. package/templates/react-sdk-reference/src/components/template/ListView/ListView.tsx +173 -133
  407. package/templates/react-sdk-reference/src/components/template/ListView/hooks.ts +17 -10
  408. package/templates/react-sdk-reference/src/components/template/ListView/utils.ts +64 -51
  409. package/templates/react-sdk-reference/src/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +6 -6
  410. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/NarrowWide.tsx +6 -6
  411. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +8 -18
  412. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +3 -3
  413. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +7 -1
  414. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/OneColumn.tsx +3 -3
  415. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/OneColumnTab.tsx +1 -1
  416. package/templates/react-sdk-reference/src/components/template/PromotedFilters/PromotedFilters.tsx +13 -40
  417. package/templates/react-sdk-reference/src/components/template/SelfServiceCaseView/SelfServiceCaseView.tsx +19 -16
  418. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx +8 -7
  419. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +84 -203
  420. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +15 -5
  421. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.tsx +15 -29
  422. package/templates/react-sdk-reference/src/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +7 -7
  423. package/templates/react-sdk-reference/src/components/template/SubTabs/SubTabs.tsx +1 -1
  424. package/templates/react-sdk-reference/src/components/template/SubTabs/tabUtils.ts +13 -11
  425. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx +3 -3
  426. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +3 -3
  427. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx +6 -6
  428. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +13 -24
  429. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +3 -3
  430. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +7 -1
  431. package/templates/react-sdk-reference/src/components/template/WssNavBar/WssNavBar.tsx +25 -25
  432. package/templates/react-sdk-reference/src/components/template/utils.tsx +6 -6
  433. package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/AppAnnouncement.tsx +9 -9
  434. package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.tsx +125 -79
  435. package/templates/react-sdk-reference/src/components/widget/Attachment/AttachmentUtils.ts +58 -33
  436. package/templates/react-sdk-reference/src/components/widget/CaseHistory/CaseHistory.tsx +14 -12
  437. package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +19 -7
  438. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/FileUtility.tsx +137 -107
  439. package/templates/react-sdk-reference/src/components/widget/Followers/Followers.tsx +4 -4
  440. package/templates/react-sdk-reference/src/components/widget/QuickCreate/QuickCreate.tsx +15 -11
  441. package/templates/react-sdk-reference/src/components/widget/SummaryItem/SummaryItem.tsx +25 -18
  442. package/templates/react-sdk-reference/src/components/widget/SummaryList/SummaryList.tsx +7 -2
  443. package/templates/react-sdk-reference/src/components/widget/ToDo/ToDo.tsx +30 -116
  444. package/templates/react-sdk-reference/src/main.tsx +1 -1
  445. package/templates/react-sdk-reference/tsconfig.json +2 -1
  446. package/templates/react-sdk-reference/vite.config.ts +52 -27
  447. package/templates/wc-sdk-reference/package.json +3 -3
  448. package/templates/wc-sdk-reference/src/index.ts +10 -10
  449. package/templates/wc-sdk-reference/tsconfig.json +1 -0
  450. package/templates/react-sdk-reference/.github/prompts/replace-all-fields.prompt.md +0 -48
  451. package/templates/react-sdk-reference/.github/prompts/replace-component.prompt.md +0 -81
  452. package/templates/react-sdk-reference/.github/prompts/replace-field.prompt.md +0 -41
  453. package/templates/react-sdk-reference/.github/prompts/swap-design-system.prompt.md +0 -49
  454. package/templates/react-sdk-reference/.github/skills/swap-design-system.md +0 -105
  455. package/templates/react-sdk-reference/pega-constellationjs-0.26.2.tgz +0 -0
@@ -0,0 +1,154 @@
1
+ ---
2
+ description: generate-all-components.prompt
3
+ alwaysApply: false
4
+ ---
5
+
6
+ ## Step 0 — Resolve inputs
7
+
8
+ Read the user's message carefully. Extract:
9
+
10
+ - **Design system** — the UI library to use (e.g. `Ant Design`, `Chakra UI`, `Carbon`, `Radix UI`)
11
+ - **Base components folder** — the root folder that contains (or will contain) the component type subfolders (e.g. `src/components/`)
12
+ - **Component types in scope** — which types to generate (default: all four if not specified)
13
+
14
+ Both **design system** and **base components folder** are required. If either is missing or ambiguous, ask both unresolved items in one numbered list. Do not assume or default the base folder — the client's folder structure may differ.
15
+
16
+ Example questions (ask only the ones that are actually missing):
17
+ 1. Which design system should I use? (e.g. Ant Design, Chakra UI, Carbon, Radix UI)
18
+ 2. What is your base components folder? (e.g. `src/components/`) — subfolders `field/`, `template/`, `widget/`, and `designSystemExtension/` will be used under it.
19
+
20
+ ### Component type scope
21
+
22
+ Extract which types the user wants from the message:
23
+
24
+ | User says | Types in scope |
25
+ |---|---|
26
+ | "generate all components" | field + template + widget + designSystemExtension |
27
+ | "generate field and widget components" | field + widget |
28
+ | "generate widget, template components" | widget + template |
29
+ | "generate all components except templates" | field + widget + designSystemExtension |
30
+ | "replace everything" | field + template + widget + designSystemExtension |
31
+
32
+ Default to **all four types** if the message does not restrict the scope.
33
+
34
+ ### Derived output paths
35
+
36
+ Once the base folder is known, derive the output path for each type in scope:
37
+
38
+ | Type | Derived path |
39
+ |---|---|
40
+ | field | `<base>/field/` |
41
+ | template | `<base>/template/` |
42
+ | widget | `<base>/widget/` |
43
+ | designSystemExtension | `<base>/designSystemExtension/` |
44
+
45
+ Once design system, base folder, and type scope are resolved, continue to Step 1.
46
+
47
+ ---
48
+
49
+ ## Step 1 — Read general skill files (once, for each type in scope)
50
+
51
+ Read the general skill file for every type in scope. Do this upfront — do not re-read per component.
52
+
53
+ | Type | Skill file to read |
54
+ |---|---|
55
+ | field | `.cursor/rules/skills/field-components.mdrules` |
56
+ | template | `.cursor/rules/skills/template-components.mdrules` |
57
+ | widget | `.cursor/rules/skills/widget-components.mdrules` |
58
+ | designSystemExtension | `.cursor/rules/skills/design-system-extension.mdrules` |
59
+
60
+ Keep all loaded skill files active throughout the entire session.
61
+
62
+ ---
63
+
64
+ ## Step 2 — Install and discover the design system (once)
65
+
66
+ Execute **Step 3** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
67
+ - Check `package.json` for the DS package
68
+ - Install if missing, including any peer dependencies
69
+ - Report what was installed
70
+
71
+ Then execute **Step 4** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
72
+ - Read the DS README from `node_modules`
73
+ - Discover all exported components from `dist/index.d.ts`
74
+ - Read prop interfaces for primitives needed across **all types in scope**:
75
+ - **field**: form input controls (Input, Select, Checkbox, DatePicker, etc.)
76
+ - **template**: grid/layout primitives (Grid, Flex, Columns, SimpleGrid, etc.)
77
+ - **widget**: card/list/table/button/badge primitives
78
+ - **designSystemExtension**: alert/notification/avatar primitives
79
+ - Note form layout wrappers, size/variant conventions, icon packages, and design tokens
80
+
81
+ Build a unified **DS API reference map** covering all types in scope. Reuse it throughout — do not repeat discovery commands per component.
82
+
83
+ ---
84
+
85
+ ## Step 3 — Overwrite check (all types, all at once)
86
+
87
+ For every type in scope, check whether each component's `<outputPath>/<ComponentName>/<ComponentName>.tsx` already exists.
88
+
89
+ Collect all existing components across all types and report them in one consolidated list:
90
+
91
+ > "The following N components already exist across [types]: [list grouped by type]. How should I proceed?
92
+ > - **Overwrite all** — replace all existing implementations
93
+ > - **Skip existing** — only generate components that don't exist yet
94
+ > - **Cancel** — stop without generating anything"
95
+
96
+ Wait for the user's answer before proceeding. If none exist, continue immediately.
97
+
98
+ ---
99
+
100
+ ## Step 4 — Generate field components (skip if field not in scope)
101
+
102
+ If `field` is in scope, execute **Step 4** from `.cursor/rules/prompts/generate-field-components.mdrules` in full:
103
+ - Use the derived field output path: `<base>/field/`
104
+ - The general skill (`field-components.md`) is already loaded from Step 1 — do not re-read it
105
+ - The DS API reference map is already built from Step 2 — do not repeat discovery commands
106
+ - For each of the 27 field components: read skill file → generate → register in `component-map.ts`
107
+ - Report progress after each component
108
+
109
+ ---
110
+
111
+ ## Step 5 — Generate template components (skip if template not in scope)
112
+
113
+ If `template` is in scope, execute **Step 4** from `.cursor/rules/prompts/generate-template-components.mdrules` in full:
114
+ - Use the derived template output path: `<base>/template/`
115
+ - The general skill (`template-components.md`) is already loaded from Step 1 — do not re-read it
116
+ - The DS layout API is already discovered from Step 2 — do not repeat discovery commands
117
+ - For each of the 32 template components: read skill file → generate → register in `component-map.ts`
118
+ - Report progress after each component
119
+
120
+ ---
121
+
122
+ ## Step 6 — Generate widget components (skip if widget not in scope)
123
+
124
+ If `widget` is in scope, execute **Step 4** from `.cursor/rules/prompts/generate-widget-components.mdrules` in full:
125
+ - Use the derived widget output path: `<base>/widget/`
126
+ - The general skill (`widget-components.md`) is already loaded from Step 1 — do not re-read it
127
+ - The DS UI primitive map is already built from Step 2 — do not repeat discovery commands
128
+ - For each of the 9 widget components: read skill file → generate → register in `component-map.ts`
129
+ - If no skill file exists for a component (e.g., `SummaryList`), use the general pattern from `widget-components.md`
130
+ - Report progress after each component
131
+
132
+ ---
133
+
134
+ ## Step 7 — Generate design system extension components (skip if DSE not in scope)
135
+
136
+ If `designSystemExtension` is in scope, execute **Step 4** from `.cursor/rules/prompts/generate-dse-components.mdrules` in full:
137
+ - Use the derived DSE output path: `<base>/designSystemExtension/`
138
+ - The general skill (`design-system-extension.md`) is already loaded from Step 1 — do not re-read it
139
+ - The DS display primitive map is already built from Step 2 — do not repeat discovery commands
140
+ - For each of the 11 DSE components: read skill file → generate → register in `component-map.ts`
141
+ - Apply the Pattern B/A/C branching as specified in the skill file and `design-system-extension.md`
142
+ - Report progress after each component
143
+
144
+ ---
145
+
146
+ ## Step 8 — Verify the build
147
+
148
+ Execute **Step 7** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
149
+ - Run `npm run build`
150
+ - Fix any TypeScript or build errors before reporting completion
151
+ - Report a final summary:
152
+ - Total components generated, grouped by type
153
+ - All entries added to `component-map.ts`
154
+ - Any components skipped (if "skip existing" was chosen in Step 3)
@@ -0,0 +1,131 @@
1
+ ---
2
+ description: generate-dse-components.prompt
3
+ alwaysApply: false
4
+ ---
5
+
6
+ ## Step 0 — Resolve inputs
7
+
8
+ Read the user's message carefully. Extract:
9
+
10
+ - **Design system** — the UI library to use (e.g. `Ant Design`, `Chakra UI`, `Carbon`, `Radix UI`)
11
+ - **Output base path** — the folder where DSE components should be generated (e.g. `src/components/designSystemExtension/`)
12
+ - **Component list** — which components to generate (default: all 11 listed below)
13
+
14
+ Both **design system** and **output base path** are required. If either is missing or ambiguous, ask both unresolved items in one numbered list. Do not assume or default the output path — the client's folder structure may differ from the reference app.
15
+
16
+ Example questions (ask only the ones that are actually missing):
17
+ 1. Which design system should I use? (e.g. Ant Design, Chakra UI, Carbon, Radix UI)
18
+ 2. Where should the DSE components be generated? (e.g. `src/components/designSystemExtension/`)
19
+
20
+ If the user specified a subset (e.g., "just AlertBanner and FieldValueList"), restrict the list accordingly.
21
+
22
+ Once both are known, continue to Step 1.
23
+
24
+ ### Full component list (default — 11 DSE components)
25
+
26
+ | Component | Pattern | DS needed? |
27
+ |---|---|---|
28
+ | AlertBanner | B — Pure display | Yes |
29
+ | Banner | B — Pure display | Yes |
30
+ | CaseSummaryFields | A — PConnect display | Minimal |
31
+ | DetailsFields | A — PConnect display | Minimal |
32
+ | FieldGroup | C — Complex display | No |
33
+ | FieldGroupList | C — Complex display | No |
34
+ | FieldValueList | A — PConnect display | No (CSS only) |
35
+ | Operator | B — Pure display | Yes |
36
+ | Pulse | C — Complex display | No |
37
+ | RichTextEditor | C — Complex display | No |
38
+ | WssQuickCreate | B — Pure display | Yes |
39
+
40
+ ---
41
+
42
+ ## Step 1 — Read `design-system-extension.md` (once, for the entire session)
43
+
44
+ Read the full contents of `.cursor/rules/skills/design-system-extension.mdrules`.
45
+
46
+ This gives you:
47
+ - All three implementation patterns (Pure display, Field value display, Complex display with PConnect)
48
+ - The `// [DS RENDER]` placeholder approach for Pattern B components
49
+ - The Design System Adaptation section — pattern categorisation, variant mapping table, DS discovery guidance
50
+ - Styling patterns — when to use CSS files vs DS style props
51
+ - Registration conventions
52
+
53
+ Keep this context active throughout the entire generation session. Do not re-read it per component.
54
+
55
+ ---
56
+
57
+ ## Step 2 — Install and discover the design system (once)
58
+
59
+ Execute **Step 3** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
60
+ - Check `package.json` for the DS package
61
+ - Install if missing, including any peer dependencies
62
+ - Report what was installed
63
+
64
+ Then execute **Step 4** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
65
+ - Read the DS README from `node_modules`
66
+ - Discover exported components from `dist/index.d.ts`
67
+ - Focus on display primitives used by Pattern B components: Alert, Card, Avatar, Badge, Tag, Notification
68
+ - Read prop interfaces for these components from `.d.ts` files
69
+
70
+ > Pattern A/C components (FieldValueList, FieldGroup, Pulse, etc.) use PConnect bridge or plain CSS — they do not use the DS API. Only Pattern B components consume DS primitives.
71
+
72
+ Build a **DS display primitive reference map** from this discovery. Reuse it for every Pattern B component — do not repeat these commands per component.
73
+
74
+ ---
75
+
76
+ ## Step 3 — Overwrite check (all at once)
77
+
78
+ For each component in the list, check whether `<outputPath>/<ComponentName>/<ComponentName>.tsx` already exists.
79
+
80
+ If **any** exist, report them all at once and ask:
81
+ > "The following N components already exist: [list]. How should I proceed?
82
+ > - **Overwrite all** — replace all existing implementations
83
+ > - **Skip existing** — only generate components that don't exist yet
84
+ > - **Cancel** — stop without generating anything"
85
+
86
+ Wait for the user's answer before proceeding. If none exist, continue immediately.
87
+
88
+ ---
89
+
90
+ ## Step 4 — Generate each component (loop)
91
+
92
+ For each component in the resolved list (in the order listed in Step 0):
93
+
94
+ ### 4a — Read the component-specific skill file
95
+ Execute **Step 2** from `.cursor/rules/prompts/add-component.mdrules` for this component:
96
+ - Read `.cursor/rules/skills/design-system-extension-skills/<ComponentName>.mdrules` fully
97
+ - Identify the component's pattern (B / A / C) from the skill file
98
+ - Pay attention to:
99
+ - **Behavioral Contract** — prop handling, variant mapping, rendering logic, edge cases
100
+ - **Design System Mapping** table — the recommended DS primitive for Pattern B components
101
+
102
+ ### 4b — Generate the component files
103
+ Execute **Step 5** from `.cursor/rules/prompts/add-component.mdrules` for this component:
104
+ - Create `<outputPath>/<ComponentName>/` directory
105
+ - Create `<ComponentName>.tsx` using:
106
+ - **Pattern B** (Pure display — AlertBanner, Banner, Operator, WssQuickCreate): use DS alert/card/avatar primitive from Step 2 API map in the `// [DS RENDER]` section; apply variant mapping from the skill file
107
+ - **Pattern A** (PConnect display — CaseSummaryFields, DetailsFields, FieldValueList): use CSS classes or DS typography props; no DS component primitives
108
+ - **Pattern C** (Complex display — FieldGroup, FieldGroupList, Pulse, RichTextEditor): use PConnect bridge (`createElement(createPConnectComponent(), ...)`); no DS primitives
109
+ - Create `index.tsx` if required by the skill file:
110
+ ```typescript
111
+ export { default } from './<ComponentName>';
112
+ ```
113
+ - Create any CSS file required by the skill file
114
+
115
+ ### 4c — Register the component
116
+ Execute **Step 6** from `.cursor/rules/prompts/add-component.mdrules` for this component:
117
+ - Add the import to `src/components/component-map.ts` in the Design System Extension section
118
+ - Add the entry to `getSampleComponentMap()` under the DSE comment
119
+ - Do not reorder or restructure any existing entries
120
+
121
+ ### 4d — Report progress
122
+ After each component: "`<ComponentName>` ✓ — Pattern `<B/A/C>`<`, using <DS primitive>` if Pattern B>"
123
+
124
+ ---
125
+
126
+ ## Step 5 — Verify the build
127
+
128
+ Execute **Step 7** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
129
+ - Run `npm run build`
130
+ - Fix any TypeScript or build errors before reporting completion
131
+ - Report a summary: list of all files created and all entries added to `component-map.ts`
@@ -0,0 +1,144 @@
1
+ ---
2
+ description: generate-field-components.prompt
3
+ alwaysApply: false
4
+ ---
5
+
6
+ ## Step 0 — Resolve inputs
7
+
8
+ Read the user's message carefully. Extract:
9
+
10
+ - **Design system** — the UI library to use (e.g. `Ant Design`, `Chakra UI`, `Carbon`, `Radix UI`)
11
+ - **Output base path** — the folder where field components should be generated (e.g. `src/components/field/`, `app/ui/fields/`)
12
+ - **Component list** — which components to generate (default: all 27 listed below)
13
+
14
+ Both **design system** and **output base path** are required. If either is missing or ambiguous, ask both unresolved items in one numbered list. Do not assume or default the output path — the client's folder structure may differ from the reference app.
15
+
16
+ Example questions (ask only the ones that are actually missing):
17
+ 1. Which design system should I use? (e.g. Ant Design, Chakra UI, Carbon, Radix UI)
18
+ 2. Where should the field components be generated? (e.g. `src/components/field/`)
19
+
20
+ If the user specified a subset (e.g., "just TextInput and Dropdown"), restrict the list accordingly.
21
+
22
+ Once both are known, continue to Step 1.
23
+
24
+ ### Full component list (default)
25
+
26
+ | Component | Pega Name |
27
+ |---|---|
28
+ | AutoComplete | AutoComplete |
29
+ | CancelAlert | CancelAlert |
30
+ | Checkbox | Checkbox |
31
+ | Currency | Currency |
32
+ | Date | Date |
33
+ | DateTime | DateTime |
34
+ | Decimal | Decimal |
35
+ | Dropdown | Dropdown |
36
+ | Email | Email |
37
+ | Group | Group |
38
+ | Integer | Integer |
39
+ | Location | Location |
40
+ | Multiselect | Multiselect |
41
+ | ObjectReference | ObjectReference |
42
+ | Percentage | Percentage |
43
+ | Phone | Phone |
44
+ | RadioButtons | RadioButtons |
45
+ | RichText | RichText |
46
+ | ScalarList | ScalarList |
47
+ | SelectableCard | SelectableCard |
48
+ | SemanticLink | SemanticLink |
49
+ | TextArea | TextArea |
50
+ | TextContent | TextContent |
51
+ | TextInput | TextInput |
52
+ | Time | Time |
53
+ | URL | URL |
54
+ | UserReference | UserReference |
55
+
56
+ ---
57
+
58
+ ## Step 1 — Read `field-components.md` (once, for the entire session)
59
+
60
+ Read the full contents of `.cursor/rules/skills/field-components.mdrules`.
61
+
62
+ This gives you:
63
+ - The behavioral skeleton every field component must follow (state, effects, event handling, display modes)
64
+ - The Design System Adaptation guide (prop mapping conventions, form layout wrappers)
65
+ - The abstract template to use as a base for all components
66
+
67
+ Keep this context active throughout the entire generation session. Do not re-read it per component.
68
+
69
+ ---
70
+
71
+ ## Step 2 — Install and discover the design system (once)
72
+
73
+ Execute **Step 3** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
74
+ - Check `package.json` for the DS package
75
+ - Install if missing, including any peer dependencies
76
+ - Report what was installed
77
+
78
+ Then execute **Step 4** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
79
+ - Read the DS README from `node_modules`
80
+ - Discover all exported components from `dist/index.d.ts`
81
+ - Read prop interfaces for the control types needed across the component list
82
+ - Note form layout wrappers, size/variant conventions, icon packages, and design tokens
83
+
84
+ Build a **DS API reference map** from this discovery. You will reuse it for every component — do not repeat these commands per component.
85
+
86
+ ---
87
+
88
+ ## Step 3 — Overwrite check (all at once)
89
+
90
+ For each component in the list, check whether `<outputPath>/<ComponentName>/<ComponentName>.tsx` already exists.
91
+
92
+ If **any** exist, report them all at once and ask:
93
+ > "The following N components already exist: [list]. How should I proceed?
94
+ > - **Overwrite all** — replace all existing implementations
95
+ > - **Skip existing** — only generate components that don't exist yet
96
+ > - **Cancel** — stop without generating anything"
97
+
98
+ Wait for the user's answer before proceeding. If none exist, continue immediately.
99
+
100
+ ---
101
+
102
+ ## Step 4 — Generate each component (loop)
103
+
104
+ For each component in the resolved list (in the order listed in Step 0):
105
+
106
+ ### 4a — Read the component-specific skill file
107
+ Execute **Step 2** from `.cursor/rules/prompts/add-component.mdrules` for this component:
108
+ - Read `.cursor/rules/skills/field-skills/<ComponentName>.mdrules` fully
109
+ - Pay attention to:
110
+ - **Behavioral Contract** — state management, option loading, edge cases specific to this component
111
+ - **Design System Mapping** table — the recommended DS component for the chosen design system
112
+ - **UI control type** — use this to select the closest DS primitive if the chosen DS is not in the mapping table
113
+
114
+ ### 4b — Generate the component files
115
+ Execute **Step 5** from `.cursor/rules/prompts/add-component.mdrules` for this component:
116
+ - Create `<outputPath>/<ComponentName>/` directory
117
+ - Create `<ComponentName>.tsx` using:
118
+ - The abstract behavioral skeleton from `field-components.md` (read in Step 1)
119
+ - The Behavioral Contract from the component skill file
120
+ - The DS API confirmed in Step 2 (from the DS API reference map — no new terminal commands needed)
121
+ - Display mode guards (`DISPLAY_ONLY`, `STACKED_LARGE_VAL`) via `getComponentFromRegistry('FieldValueList')`
122
+ - `data-test-id={testId}` on the underlying interactive element
123
+ - Create `index.tsx`:
124
+ ```typescript
125
+ export { default } from './<ComponentName>';
126
+ ```
127
+
128
+ ### 4c — Register the component
129
+ Execute **Step 6** from `.cursor/rules/prompts/add-component.mdrules` for this component:
130
+ - Add the import to `src/components/component-map.ts` in the Fields section
131
+ - Add the entry to `getSampleComponentMap()` under the fields comment
132
+ - Do not reorder or restructure any existing entries
133
+
134
+ ### 4d — Report progress
135
+ After each component: "`<ComponentName>` ✓ — using `<DS component name>`"
136
+
137
+ ---
138
+
139
+ ## Step 5 — Verify the build
140
+
141
+ Execute **Step 7** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
142
+ - Run `npm run build`
143
+ - Fix any TypeScript or build errors before reporting completion
144
+ - Report a summary: list of all files created and all entries added to `component-map.ts`
@@ -0,0 +1,156 @@
1
+ ---
2
+ description: generate-template-components.prompt
3
+ alwaysApply: false
4
+ ---
5
+
6
+ ## Step 0 — Resolve inputs
7
+
8
+ Read the user's message carefully. Extract:
9
+
10
+ - **Design system** — the UI library to use (e.g. `Ant Design`, `Chakra UI`, `Carbon`, `Radix UI`)
11
+ - **Output base path** — the folder where template components should be generated (e.g. `src/components/template/`)
12
+ - **Component list** — which templates to generate (default: all 32 listed below)
13
+
14
+ Both **design system** and **output base path** are required. If either is missing or ambiguous, ask both unresolved items in one numbered list. Do not assume or default the output path — the client's folder structure may differ from the reference app.
15
+
16
+ Example questions (ask only the ones that are actually missing):
17
+ 1. Which design system should I use? (e.g. Ant Design, Chakra UI, Carbon, Radix UI)
18
+ 2. Where should the template components be generated? (e.g. `src/components/template/`)
19
+
20
+ > **Note:** The design system applies only to **layout templates** (TwoColumn, OneColumn, NarrowWide, WideNarrow, and their sub-variants). Form templates and page templates use the PConnect bridge pattern and are design-system agnostic — they will be generated without DS primitives regardless of your choice.
21
+
22
+ If the user specified a subset (e.g., "just TwoColumn and OneColumn"), restrict the list accordingly.
23
+
24
+ Once both are known, continue to Step 1.
25
+
26
+ ### Full component list (default — 32 templates)
27
+
28
+ | Component | Category |
29
+ |---|---|
30
+ | AdvancedSearch | Page |
31
+ | AppShell | Page |
32
+ | BannerPage | Page |
33
+ | CaseSummary | Page |
34
+ | CaseView | Page |
35
+ | CaseViewActionsMenu | Widget |
36
+ | Confirmation | Page |
37
+ | DataReference | Form |
38
+ | DefaultForm | Form |
39
+ | DefaultPage | Page |
40
+ | Details | Layout |
41
+ | DetailsSubTabs | Layout |
42
+ | DetailsThreeColumn | Layout |
43
+ | DetailsTwoColumn | Layout |
44
+ | DynamicTabs | Navigation |
45
+ | FieldGroupTemplate | Form |
46
+ | HierarchicalForm | Form |
47
+ | InlineDashboard | Page |
48
+ | InlineDashboardPage | Page |
49
+ | ListPage | Page |
50
+ | ListView | Page |
51
+ | MultiReferenceReadOnly | Display |
52
+ | NarrowWide | Layout |
53
+ | OneColumn | Layout |
54
+ | PromotedFilters | Widget |
55
+ | SelfServiceCaseView | Page |
56
+ | SimpleTable | Table |
57
+ | SingleReferenceReadOnly | Display |
58
+ | SubTabs | Navigation |
59
+ | TwoColumn | Layout |
60
+ | WideNarrow | Layout |
61
+ | WssNavBar | Navigation |
62
+
63
+ ---
64
+
65
+ ## Step 1 — Read `template-components.md` (once, for the entire session)
66
+
67
+ Read the full contents of `.cursor/rules/skills/template-components.mdrules`.
68
+
69
+ This gives you:
70
+ - **Layout template pattern** — DS-agnostic grid skeleton with `// [DS GRID]` placeholder; `templateCol` parsing logic; responsive behavior rules
71
+ - **Design System Adaptation section** — how to map the chosen DS's grid/flex primitive to the computed column ratios
72
+ - **Form template pattern** — PConnect bridge via `createElement(createPConnectComponent(), ...)` and `connectToState`; no DS involved
73
+ - **Page template pattern** — region extraction via `getRawMetadata()` and PConnect bridge; no DS involved
74
+ - Registration conventions and helper utilities
75
+
76
+ Keep this context active throughout the entire generation session. Do not re-read it per component.
77
+
78
+ ---
79
+
80
+ ## Step 2 — Install and discover the design system (once)
81
+
82
+ Execute **Step 3** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
83
+ - Check `package.json` for the DS package
84
+ - Install if missing, including any peer dependencies
85
+ - Report what was installed
86
+
87
+ Then execute **Step 4** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
88
+ - Read the DS README from `node_modules`
89
+ - Discover exported layout components (Grid, Columns, Flex, SimpleGrid, etc.) from `dist/index.d.ts`
90
+ - Read prop interfaces for the grid/layout components needed by layout templates
91
+ - Note responsive breakpoint APIs and column sizing conventions
92
+
93
+ > You only need layout-related DS components. Form and page templates do not use the DS.
94
+
95
+ Build a **DS layout API reference** from this discovery. Reuse it for every layout template — do not repeat these commands per component.
96
+
97
+ ---
98
+
99
+ ## Step 3 — Overwrite check (all at once)
100
+
101
+ For each component in the list, check whether `<outputPath>/<ComponentName>/<ComponentName>.tsx` already exists.
102
+
103
+ If **any** exist, report them all at once and ask:
104
+ > "The following N components already exist: [list]. How should I proceed?
105
+ > - **Overwrite all** — replace all existing implementations
106
+ > - **Skip existing** — only generate components that don't exist yet
107
+ > - **Cancel** — stop without generating anything"
108
+
109
+ Wait for the user's answer before proceeding. If none exist, continue immediately.
110
+
111
+ ---
112
+
113
+ ## Step 4 — Generate each component (loop)
114
+
115
+ For each component in the resolved list (in the order listed in Step 0):
116
+
117
+ ### 4a — Read the component-specific skill file
118
+ Execute **Step 2** from `.cursor/rules/prompts/add-component.mdrules` for this component:
119
+ - Read `.cursor/rules/skills/template-skills/<ComponentName>.mdrules` fully
120
+ - Identify the template category from the skill file:
121
+ - **Layout** — uses DS grid primitives from Step 2's API reference
122
+ - **Form** — uses PConnect bridge + CSS classes; ignore DS
123
+ - **Page** — uses region extraction + PConnect bridge; ignore DS
124
+ - Pay attention to Behavioral Contract, sub-variants, and any Design System Mapping table
125
+
126
+ ### 4b — Generate the component files
127
+ Execute **Step 5** from `.cursor/rules/prompts/add-component.mdrules` for this component:
128
+ - Create `<outputPath>/<ComponentName>/` directory
129
+ - Create `<ComponentName>.tsx` using:
130
+ - **Layout templates**: DS-agnostic skeleton from `template-components.md` with the `// [DS GRID]` section filled in using DS layout API confirmed in Step 2
131
+ - **Form/Page templates**: PConnect bridge pattern from `template-components.md`; no DS primitives
132
+ - Behavioral Contract from the component skill file
133
+ - Create `index.tsx` if required by the skill file:
134
+ ```typescript
135
+ export { default } from './<ComponentName>';
136
+ ```
137
+ - Create any CSS file required by the skill file (e.g., `DefaultForm.css` with grid classes)
138
+
139
+ ### 4c — Register the component
140
+ Execute **Step 6** from `.cursor/rules/prompts/add-component.mdrules` for this component:
141
+ - Add the import to `src/components/component-map.ts` in the Templates section
142
+ - Add the entry to `getSampleComponentMap()` under the templates comment
143
+ - For sub-variants (e.g., TwoColumnPage, TwoColumnTab), register each key separately pointing to its own file or a shared implementation as specified in the skill file
144
+ - Do not reorder or restructure any existing entries
145
+
146
+ ### 4d — Report progress
147
+ After each component: "`<ComponentName>` ✓ — `<Layout | Form | Page>` template`<, using <DS component name> for grid>` if layout"
148
+
149
+ ---
150
+
151
+ ## Step 5 — Verify the build
152
+
153
+ Execute **Step 7** from `.cursor/rules/prompts/add-component.mdrules` exactly as written:
154
+ - Run `npm run build`
155
+ - Fix any TypeScript or build errors before reporting completion
156
+ - Report a summary: list of all files created and all entries added to `component-map.ts`