create-auto-app 0.2.3 → 0.8.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 (343) hide show
  1. package/README.md +197 -0
  2. package/dist/index.js +5 -0
  3. package/dist/index.js.map +1 -1
  4. package/package.json +4 -4
  5. package/templates/.gitkeep +0 -0
  6. package/templates/shopping-app/.context/schema.json +389 -218
  7. package/templates/shopping-app/.context/server/.context/auto-ia-scheme.json +79 -0
  8. package/templates/shopping-app/.context/server/server/package.json +26 -0
  9. package/templates/shopping-app/.context/server/server/scripts/generate-schema.ts +34 -0
  10. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/commands.ts +8 -0
  11. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/decide.specs.ts +46 -0
  12. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/decide.ts +33 -0
  13. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/events.ts +10 -0
  14. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/evolve.ts +28 -0
  15. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/handle.ts +24 -0
  16. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/mutation.resolver.ts +25 -0
  17. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/register.ts +7 -0
  18. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/accepts-items-and-adds-to-their-cart/state.ts +47 -0
  19. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session/react.specs.ts +51 -0
  20. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session/react.ts +43 -0
  21. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session/register.ts +24 -0
  22. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/react.specs.ts +51 -0
  23. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/react.ts +43 -0
  24. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/creates-a-chat-session-/register.ts +24 -0
  25. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/commands.ts +8 -0
  26. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/decide.specs.ts +38 -0
  27. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/decide.ts +33 -0
  28. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/events.ts +10 -0
  29. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/evolve.ts +28 -0
  30. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/handle.ts +24 -0
  31. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/mutation.resolver.ts +25 -0
  32. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/register.ts +7 -0
  33. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/enters-shopping-criteria-into-assistant/state.ts +47 -0
  34. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/commands.ts +8 -0
  35. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/decide.specs.ts +101 -0
  36. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/decide.ts +42 -0
  37. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/events.ts +9 -0
  38. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/evolve.ts +28 -0
  39. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/handle.ts +52 -0
  40. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/mutation.resolver.ts +25 -0
  41. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/register.ts +7 -0
  42. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria/state.ts +47 -0
  43. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/commands.ts +8 -0
  44. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/decide.specs.ts +101 -0
  45. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/decide.ts +43 -0
  46. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/events.ts +9 -0
  47. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/evolve.ts +28 -0
  48. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/handle.ts +52 -0
  49. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/mutation.resolver.ts +25 -0
  50. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/register.ts +7 -0
  51. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/selects-items-relevant-to-the-shopping-criteria-/state.ts +47 -0
  52. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/projection.specs.ts +56 -0
  53. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/projection.ts +24 -0
  54. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/query.resolver.ts +56 -0
  55. package/templates/shopping-app/.context/server/server/src/domain/flows/seasonal-assistant/views-suggested-items/state.ts +4 -0
  56. package/templates/shopping-app/.context/server/server/src/domain/shared/ReadModel.ts +26 -0
  57. package/templates/shopping-app/{server/src/domain/shared/index.d.ts → .context/server/server/src/domain/shared/index.ts} +0 -1
  58. package/templates/shopping-app/{server/src/domain/shared/reactorSpecification.js → .context/server/server/src/domain/shared/reactorSpecification.ts} +116 -22
  59. package/templates/shopping-app/.context/server/server/src/domain/shared/sendCommand.ts +21 -0
  60. package/templates/shopping-app/{server/src/domain/shared/types.d.ts → .context/server/server/src/domain/shared/types.ts} +17 -5
  61. package/templates/shopping-app/.context/server/server/src/server.ts +43 -0
  62. package/templates/shopping-app/{server/src/utils/index.d.ts → .context/server/server/src/utils/index.ts} +0 -1
  63. package/templates/shopping-app/{server/src/utils/loadProjections.js → .context/server/server/src/utils/loadProjections.ts} +11 -6
  64. package/templates/shopping-app/.context/server/server/src/utils/loadRegisterFiles.ts +41 -0
  65. package/templates/shopping-app/{server/src/utils/loadResolvers.js → .context/server/server/src/utils/loadResolvers.ts} +16 -7
  66. package/templates/shopping-app/.context/server/server/tsconfig.json +13 -0
  67. package/templates/shopping-app/.context/server/server/vitest.config.ts +7 -0
  68. package/templates/shopping-app/auto.config.ts +78 -45
  69. package/templates/shopping-app/client/package.json +4 -4
  70. package/templates/shopping-app/client/src/App.tsx +13 -13
  71. package/templates/shopping-app/client/src/components/molecules/QuantitySelector.tsx +4 -4
  72. package/templates/shopping-app/client/src/components/molecules/ShoppingCriteriaForm.tsx +4 -4
  73. package/templates/shopping-app/client/src/components/molecules/SuggestedItemCard.tsx +6 -6
  74. package/templates/shopping-app/client/src/components/organisms/AssistantChatInterface.tsx +3 -3
  75. package/templates/shopping-app/client/src/components/organisms/PageHeader.tsx +2 -3
  76. package/templates/shopping-app/client/src/components/organisms/SuggestedItemsList.tsx +3 -3
  77. package/templates/shopping-app/client/src/index.css +10 -14
  78. package/templates/shopping-app/client/src/pages/AssistantChatPage.tsx +4 -4
  79. package/templates/shopping-app/client/src/pages/SuggestedItemsPage.tsx +4 -4
  80. package/templates/shopping-app/example-integrations/ai-chat-completion/package.json +5 -6
  81. package/templates/shopping-app/example-integrations/ai-chat-completion/src/ai-integration.ts +2 -2
  82. package/templates/shopping-app/example-integrations/cart/package.json +5 -6
  83. package/templates/shopping-app/example-integrations/cart-api/package.json +3 -3
  84. package/templates/shopping-app/example-integrations/product-catalogue/package.json +5 -5
  85. package/templates/shopping-app/example-integrations/product-catalogue/src/product-catalogue-integration.ts +3 -128
  86. package/templates/shopping-app/example-integrations/product-catalogue-api/package.json +3 -3
  87. package/templates/shopping-app/flows/shopping-assistant.flow.ts +195 -196
  88. package/templates/shopping-app/package.json +16 -11
  89. package/templates/shopping-app/server/package.json +4 -4
  90. package/templates/shopping-app/server/src/integrations/ai-integration.ts +2 -2
  91. package/templates/shopping-app/tsconfig.json +2 -2
  92. package/templates/shopping-app/.env +0 -8
  93. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-build.log +0 -4
  94. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-format.log +0 -12
  95. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-lint.log +0 -4
  96. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-test.log +0 -12
  97. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-type-check.log +0 -5
  98. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.d.ts +0 -23
  99. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.d.ts.map +0 -1
  100. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.js +0 -41
  101. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.js.map +0 -1
  102. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.d.ts +0 -2
  103. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.d.ts.map +0 -1
  104. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.js +0 -2
  105. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.js.map +0 -1
  106. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/eslint +0 -21
  107. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/jiti +0 -21
  108. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/msw +0 -21
  109. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/tsc +0 -21
  110. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/tsserver +0 -21
  111. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/vite +0 -21
  112. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/vitest +0 -21
  113. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-build.log +0 -4
  114. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-format.log +0 -12
  115. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-lint.log +0 -5
  116. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-test.log +0 -12
  117. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-type-check.log +0 -5
  118. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.d.ts +0 -30
  119. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.d.ts.map +0 -1
  120. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.js +0 -134
  121. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.js.map +0 -1
  122. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.d.ts +0 -3
  123. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.d.ts.map +0 -1
  124. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.js +0 -149
  125. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.js.map +0 -1
  126. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.d.ts +0 -8
  127. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.d.ts.map +0 -1
  128. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.js +0 -6
  129. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.js.map +0 -1
  130. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.d.ts +0 -123
  131. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.d.ts.map +0 -1
  132. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.js +0 -3
  133. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.js.map +0 -1
  134. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.d.ts +0 -46
  135. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.d.ts.map +0 -1
  136. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.js +0 -285
  137. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.js.map +0 -1
  138. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.d.ts +0 -13
  139. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.d.ts.map +0 -1
  140. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.js +0 -6
  141. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.js.map +0 -1
  142. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.d.ts +0 -19
  143. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.d.ts.map +0 -1
  144. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.js +0 -15
  145. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.js.map +0 -1
  146. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.d.ts +0 -18
  147. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.d.ts.map +0 -1
  148. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.js +0 -58
  149. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.js.map +0 -1
  150. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.d.ts +0 -34
  151. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.d.ts.map +0 -1
  152. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.js +0 -89
  153. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.js.map +0 -1
  154. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.d.ts +0 -34
  155. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.d.ts.map +0 -1
  156. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.js +0 -115
  157. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.js.map +0 -1
  158. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.d.ts +0 -79
  159. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.d.ts.map +0 -1
  160. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.js +0 -3
  161. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.js.map +0 -1
  162. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.d.ts +0 -2
  163. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.d.ts.map +0 -1
  164. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.js +0 -3
  165. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.js.map +0 -1
  166. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.d.ts +0 -158
  167. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.d.ts.map +0 -1
  168. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.js +0 -3
  169. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.js.map +0 -1
  170. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.d.ts +0 -382
  171. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.d.ts.map +0 -1
  172. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.js +0 -68
  173. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.js.map +0 -1
  174. package/templates/shopping-app/example-integrations/cart/dist/index.d.ts +0 -2
  175. package/templates/shopping-app/example-integrations/cart/dist/index.d.ts.map +0 -1
  176. package/templates/shopping-app/example-integrations/cart/dist/index.js +0 -2
  177. package/templates/shopping-app/example-integrations/cart/dist/index.js.map +0 -1
  178. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/eslint +0 -21
  179. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/jiti +0 -21
  180. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/msw +0 -21
  181. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/tsc +0 -21
  182. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/tsserver +0 -21
  183. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/vitest +0 -21
  184. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-build.log +0 -4
  185. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-format.log +0 -10
  186. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-lint.log +0 -4
  187. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-test.log +0 -12
  188. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-type-check.log +0 -4
  189. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.d.ts +0 -18
  190. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.d.ts.map +0 -1
  191. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.js +0 -28
  192. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.js.map +0 -1
  193. package/templates/shopping-app/example-integrations/cart-api/dist/index.d.ts +0 -4
  194. package/templates/shopping-app/example-integrations/cart-api/dist/index.d.ts.map +0 -1
  195. package/templates/shopping-app/example-integrations/cart-api/dist/index.js +0 -49
  196. package/templates/shopping-app/example-integrations/cart-api/dist/index.js.map +0 -1
  197. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.d.ts +0 -4
  198. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.d.ts.map +0 -1
  199. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.js +0 -261
  200. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.js.map +0 -1
  201. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/nodemon +0 -21
  202. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/swagger-jsdoc +0 -21
  203. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node +0 -21
  204. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-cwd +0 -21
  205. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-esm +0 -21
  206. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-script +0 -21
  207. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-transpile-only +0 -21
  208. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-script +0 -21
  209. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsc +0 -21
  210. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsserver +0 -21
  211. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsx +0 -21
  212. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/vitest +0 -21
  213. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-build.log +0 -4
  214. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-format.log +0 -12
  215. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-lint.log +0 -5
  216. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-test.log +0 -12
  217. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-type-check.log +0 -5
  218. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.d.ts +0 -3
  219. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.d.ts.map +0 -1
  220. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.js +0 -149
  221. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.js.map +0 -1
  222. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.d.ts +0 -8
  223. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.d.ts.map +0 -1
  224. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.js +0 -6
  225. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.js.map +0 -1
  226. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.d.ts +0 -123
  227. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.d.ts.map +0 -1
  228. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.js +0 -3
  229. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.js.map +0 -1
  230. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.d.ts +0 -46
  231. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.d.ts.map +0 -1
  232. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.js +0 -285
  233. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.js.map +0 -1
  234. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.d.ts +0 -13
  235. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.d.ts.map +0 -1
  236. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.js +0 -6
  237. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.js.map +0 -1
  238. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.d.ts +0 -19
  239. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.d.ts.map +0 -1
  240. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.js +0 -15
  241. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.js.map +0 -1
  242. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.d.ts +0 -18
  243. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.d.ts.map +0 -1
  244. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.js +0 -58
  245. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.js.map +0 -1
  246. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.d.ts +0 -34
  247. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.d.ts.map +0 -1
  248. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.js +0 -89
  249. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.js.map +0 -1
  250. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.d.ts +0 -34
  251. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.d.ts.map +0 -1
  252. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.js +0 -115
  253. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.js.map +0 -1
  254. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.d.ts +0 -79
  255. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.d.ts.map +0 -1
  256. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.js +0 -3
  257. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.js.map +0 -1
  258. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.d.ts +0 -2
  259. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.d.ts.map +0 -1
  260. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.js +0 -3
  261. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.js.map +0 -1
  262. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.d.ts +0 -115
  263. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.d.ts.map +0 -1
  264. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.js +0 -3
  265. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.js.map +0 -1
  266. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.d.ts +0 -206
  267. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.d.ts.map +0 -1
  268. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.js +0 -53
  269. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.js.map +0 -1
  270. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.d.ts +0 -2
  271. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.d.ts.map +0 -1
  272. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.js +0 -2
  273. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.js.map +0 -1
  274. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.d.ts +0 -32
  275. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.d.ts.map +0 -1
  276. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.js +0 -163
  277. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.js.map +0 -1
  278. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/eslint +0 -21
  279. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/jiti +0 -21
  280. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/msw +0 -21
  281. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/tsc +0 -21
  282. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/tsserver +0 -21
  283. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/vitest +0 -21
  284. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-build.log +0 -4
  285. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-format.log +0 -10
  286. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-lint.log +0 -5
  287. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-test.log +0 -13
  288. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-type-check.log +0 -5
  289. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.d.ts +0 -10
  290. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.d.ts.map +0 -1
  291. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.js +0 -75
  292. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.js.map +0 -1
  293. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.d.ts +0 -4
  294. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.d.ts.map +0 -1
  295. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.js +0 -49
  296. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.js.map +0 -1
  297. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.d.ts +0 -4
  298. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.d.ts.map +0 -1
  299. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.js +0 -170
  300. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.js.map +0 -1
  301. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/nodemon +0 -21
  302. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/swagger-jsdoc +0 -21
  303. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node +0 -21
  304. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-cwd +0 -21
  305. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-esm +0 -21
  306. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-script +0 -21
  307. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-transpile-only +0 -21
  308. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-script +0 -21
  309. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsc +0 -21
  310. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsserver +0 -21
  311. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsx +0 -21
  312. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/vitest +0 -21
  313. package/templates/shopping-app/pnpm-workspace.yaml +0 -2
  314. package/templates/shopping-app/server/src/domain/shared/ReadModel.d.ts +0 -10
  315. package/templates/shopping-app/server/src/domain/shared/ReadModel.d.ts.map +0 -1
  316. package/templates/shopping-app/server/src/domain/shared/ReadModel.js +0 -19
  317. package/templates/shopping-app/server/src/domain/shared/ReadModel.js.map +0 -1
  318. package/templates/shopping-app/server/src/domain/shared/index.d.ts.map +0 -1
  319. package/templates/shopping-app/server/src/domain/shared/index.js +0 -5
  320. package/templates/shopping-app/server/src/domain/shared/index.js.map +0 -1
  321. package/templates/shopping-app/server/src/domain/shared/reactorSpecification.d.ts +0 -56
  322. package/templates/shopping-app/server/src/domain/shared/reactorSpecification.d.ts.map +0 -1
  323. package/templates/shopping-app/server/src/domain/shared/reactorSpecification.js.map +0 -1
  324. package/templates/shopping-app/server/src/domain/shared/sendCommand.d.ts +0 -7
  325. package/templates/shopping-app/server/src/domain/shared/sendCommand.d.ts.map +0 -1
  326. package/templates/shopping-app/server/src/domain/shared/sendCommand.js +0 -16
  327. package/templates/shopping-app/server/src/domain/shared/sendCommand.js.map +0 -1
  328. package/templates/shopping-app/server/src/domain/shared/types.d.ts.map +0 -1
  329. package/templates/shopping-app/server/src/domain/shared/types.js +0 -40
  330. package/templates/shopping-app/server/src/domain/shared/types.js.map +0 -1
  331. package/templates/shopping-app/server/src/utils/index.d.ts.map +0 -1
  332. package/templates/shopping-app/server/src/utils/index.js +0 -4
  333. package/templates/shopping-app/server/src/utils/index.js.map +0 -1
  334. package/templates/shopping-app/server/src/utils/loadProjections.d.ts +0 -3
  335. package/templates/shopping-app/server/src/utils/loadProjections.d.ts.map +0 -1
  336. package/templates/shopping-app/server/src/utils/loadProjections.js.map +0 -1
  337. package/templates/shopping-app/server/src/utils/loadRegisterFiles.d.ts +0 -6
  338. package/templates/shopping-app/server/src/utils/loadRegisterFiles.d.ts.map +0 -1
  339. package/templates/shopping-app/server/src/utils/loadRegisterFiles.js +0 -26
  340. package/templates/shopping-app/server/src/utils/loadRegisterFiles.js.map +0 -1
  341. package/templates/shopping-app/server/src/utils/loadResolvers.d.ts +0 -5
  342. package/templates/shopping-app/server/src/utils/loadResolvers.d.ts.map +0 -1
  343. package/templates/shopping-app/server/src/utils/loadResolvers.js.map +0 -1
@@ -34,60 +34,78 @@
34
34
  }
35
35
  }
36
36
  ],
37
- "gwt": [
38
- {
39
- "when": {
40
- "commandRef": "EnterShoppingCriteria",
41
- "exampleData": {
42
- "sessionId": "shopper-123",
43
- "criteria": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering."
44
- }
45
- },
46
- "then": [
47
- {
48
- "eventRef": "ShoppingCriteriaEntered",
49
- "exampleData": {
50
- "sessionId": "shopper-123",
51
- "criteria": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering.",
52
- "timestamp": "2025-08-28T04:56:47.408Z"
37
+ "specs": {
38
+ "name": "When shopper submits criteria, a shopping session is started",
39
+ "rules": [
40
+ {
41
+ "description": "Valid criteria should start a shopping session",
42
+ "examples": [
43
+ {
44
+ "description": "User submits shopping criteria for children",
45
+ "when": {
46
+ "commandRef": "EnterShoppingCriteria",
47
+ "exampleData": {
48
+ "sessionId": "shopper-123",
49
+ "criteria": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering."
50
+ }
51
+ },
52
+ "then": [
53
+ {
54
+ "eventRef": "ShoppingCriteriaEntered",
55
+ "exampleData": {
56
+ "sessionId": "shopper-123",
57
+ "criteria": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering.",
58
+ "timestamp": "2025-09-04T21:20:20.309Z"
59
+ }
60
+ }
61
+ ]
53
62
  }
54
- }
55
- ]
56
- }
57
- ]
63
+ ]
64
+ }
65
+ ]
66
+ }
58
67
  }
59
68
  },
60
69
  {
61
- "name": "creates a chat session ",
70
+ "name": "creates a chat session",
62
71
  "type": "react",
63
72
  "server": {
64
- "gwt": [
65
- {
66
- "when": [
67
- {
68
- "eventRef": "ShoppingCriteriaEntered",
69
- "exampleData": {
70
- "sessionId": "session-abc",
71
- "criteria": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering.",
72
- "timestamp": "2025-08-28T04:56:47.408Z"
73
- }
74
- }
75
- ],
76
- "then": [
77
- {
78
- "commandRef": "SuggestShoppingItems",
79
- "exampleData": {
80
- "sessionId": "session-abc",
81
- "prompt": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering."
73
+ "specs": {
74
+ "name": "When shopping criteria are entered, request wishlist creation",
75
+ "rules": [
76
+ {
77
+ "description": "Shopping criteria should trigger item suggestion",
78
+ "examples": [
79
+ {
80
+ "description": "Criteria entered triggers wishlist creation",
81
+ "when": [
82
+ {
83
+ "eventRef": "ShoppingCriteriaEntered",
84
+ "exampleData": {
85
+ "sessionId": "session-abc",
86
+ "criteria": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering.",
87
+ "timestamp": "2025-09-04T21:20:20.309Z"
88
+ }
89
+ }
90
+ ],
91
+ "then": [
92
+ {
93
+ "commandRef": "SuggestShoppingItems",
94
+ "exampleData": {
95
+ "sessionId": "session-abc",
96
+ "prompt": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering."
97
+ }
98
+ }
99
+ ]
82
100
  }
83
- }
84
- ]
85
- }
86
- ]
101
+ ]
102
+ }
103
+ ]
104
+ }
87
105
  }
88
106
  },
89
107
  {
90
- "name": "selects items relevant to the shopping criteria ",
108
+ "name": "selects items relevant to the shopping criteria",
91
109
  "type": "command",
92
110
  "client": {
93
111
  "description": "",
@@ -132,51 +150,101 @@
132
150
  }
133
151
  }
134
152
  ],
135
- "gwt": [
136
- {
137
- "when": {
138
- "commandRef": "SuggestShoppingItems",
139
- "exampleData": {
140
- "sessionId": "session-abc",
141
- "prompt": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering."
142
- }
143
- },
144
- "then": [
145
- {
146
- "eventRef": "ShoppingItemsSuggested",
147
- "exampleData": {
148
- "sessionId": "session-abc",
149
- "suggestedItems": [
150
- {
151
- "productId": "prod-soccer-ball",
152
- "name": "Super Soccer Ball",
153
- "quantity": 1,
154
- "reason": "Perfect for your daughter who loves soccer"
155
- },
156
- {
157
- "productId": "prod-craft-kit",
158
- "name": "Deluxe Craft Kit",
159
- "quantity": 1,
160
- "reason": "Great for creative activities and crafts"
161
- },
153
+ "specs": {
154
+ "name": "When chat is triggered, AI suggests items based on product catalog",
155
+ "rules": [
156
+ {
157
+ "description": "AI should suggest relevant items from available products",
158
+ "examples": [
159
+ {
160
+ "description": "Product catalog with matching items generates suggestions",
161
+ "given": [
162
162
  {
163
- "productId": "prod-laptop-bag",
164
- "name": "Tech Laptop Backpack",
165
- "quantity": 1,
166
- "reason": "Essential for your son's school computer needs"
167
- },
163
+ "exampleData": {
164
+ "products": [
165
+ {
166
+ "productId": "prod-soccer-ball",
167
+ "name": "Super Soccer Ball",
168
+ "category": "Sports",
169
+ "price": 10,
170
+ "tags": ["soccer", "sports"],
171
+ "imageUrl": "https://example.com/soccer-ball.jpg"
172
+ },
173
+ {
174
+ "productId": "prod-craft-kit",
175
+ "name": "Deluxe Craft Kit",
176
+ "category": "Arts & Crafts",
177
+ "price": 25,
178
+ "tags": ["crafts", "art", "creative"],
179
+ "imageUrl": "https://example.com/craft-kit.jpg"
180
+ },
181
+ {
182
+ "productId": "prod-laptop-bag",
183
+ "name": "Tech Laptop Backpack",
184
+ "category": "School Supplies",
185
+ "price": 45,
186
+ "tags": ["computers", "tech", "school"],
187
+ "imageUrl": "https://example.com/laptop-bag.jpg"
188
+ },
189
+ {
190
+ "productId": "prod-mtg-starter",
191
+ "name": "Magic the Gathering Starter Set",
192
+ "category": "Games",
193
+ "price": 30,
194
+ "tags": ["magic", "tcg", "games"],
195
+ "imageUrl": "https://example.com/mtg-starter.jpg"
196
+ }
197
+ ]
198
+ },
199
+ "stateRef": "Products"
200
+ }
201
+ ],
202
+ "when": {
203
+ "commandRef": "SuggestShoppingItems",
204
+ "exampleData": {
205
+ "sessionId": "session-abc",
206
+ "prompt": "I need back-to-school items for my 7-year-old daughter who loves soccer and crafts, and my 12-year-old son who is into computers and Magic the Gathering."
207
+ }
208
+ },
209
+ "then": [
168
210
  {
169
- "productId": "prod-mtg-starter",
170
- "name": "Magic the Gathering Starter Set",
171
- "quantity": 1,
172
- "reason": "Ideal starter set for Magic the Gathering enthusiasts"
211
+ "eventRef": "ShoppingItemsSuggested",
212
+ "exampleData": {
213
+ "sessionId": "session-abc",
214
+ "suggestedItems": [
215
+ {
216
+ "productId": "prod-soccer-ball",
217
+ "name": "Super Soccer Ball",
218
+ "quantity": 1,
219
+ "reason": "Perfect for your daughter who loves soccer"
220
+ },
221
+ {
222
+ "productId": "prod-craft-kit",
223
+ "name": "Deluxe Craft Kit",
224
+ "quantity": 1,
225
+ "reason": "Great for creative activities and crafts"
226
+ },
227
+ {
228
+ "productId": "prod-laptop-bag",
229
+ "name": "Tech Laptop Backpack",
230
+ "quantity": 1,
231
+ "reason": "Essential for your son's school computer needs"
232
+ },
233
+ {
234
+ "productId": "prod-mtg-starter",
235
+ "name": "Magic the Gathering Starter Set",
236
+ "quantity": 1,
237
+ "reason": "Ideal starter set for Magic the Gathering enthusiasts"
238
+ }
239
+ ]
240
+ }
173
241
  }
174
242
  ]
175
243
  }
176
- }
177
- ]
178
- }
179
- ]
244
+ ]
245
+ }
246
+ ]
247
+ }
180
248
  }
181
249
  },
182
250
  {
@@ -208,78 +276,85 @@
208
276
  }
209
277
  }
210
278
  ],
211
- "gwt": [
212
- {
213
- "given": [
214
- {
215
- "eventRef": "ShoppingItemsSuggested",
216
- "exampleData": {
217
- "sessionId": "session-abc",
218
- "suggestedItems": [
219
- {
220
- "productId": "prod-soccer-ball",
221
- "name": "Super Soccer Ball",
222
- "quantity": 1,
223
- "reason": "Perfect for your daughter who loves soccer"
224
- },
225
- {
226
- "productId": "prod-craft-kit",
227
- "name": "Deluxe Craft Kit",
228
- "quantity": 1,
229
- "reason": "Great for creative activities and crafts"
230
- },
231
- {
232
- "productId": "prod-laptop-bag",
233
- "name": "Tech Laptop Backpack",
234
- "quantity": 1,
235
- "reason": "Essential for your son's school computer needs"
236
- },
237
- {
238
- "productId": "prod-mtg-starter",
239
- "name": "Magic the Gathering Starter Set",
240
- "quantity": 1,
241
- "reason": "Ideal starter set for Magic the Gathering enthusiasts"
242
- }
243
- ]
244
- }
245
- }
246
- ],
247
- "then": [
248
- {
249
- "stateRef": "SuggestedItems",
250
- "exampleData": {
251
- "sessionId": "session-abc",
252
- "items": [
253
- {
254
- "productId": "prod-soccer-ball",
255
- "name": "Super Soccer Ball",
256
- "quantity": 1,
257
- "reason": "Perfect for your daughter who loves soccer"
258
- },
259
- {
260
- "productId": "prod-craft-kit",
261
- "name": "Deluxe Craft Kit",
262
- "quantity": 1,
263
- "reason": "Great for creative activities and crafts"
264
- },
265
- {
266
- "productId": "prod-laptop-bag",
267
- "name": "Tech Laptop Backpack",
268
- "quantity": 1,
269
- "reason": "Essential for your son's school computer needs"
279
+ "specs": {
280
+ "name": "Suggested items are available for viewing",
281
+ "rules": [
282
+ {
283
+ "description": "Items should be available for viewing after suggestion",
284
+ "examples": [
285
+ {
286
+ "description": "Item becomes available after AI suggestion event",
287
+ "when": {
288
+ "exampleData": {
289
+ "sessionId": "session-abc",
290
+ "suggestedItems": [
291
+ {
292
+ "productId": "prod-soccer-ball",
293
+ "name": "Super Soccer Ball",
294
+ "quantity": 1,
295
+ "reason": "Perfect for your daughter who loves soccer"
296
+ },
297
+ {
298
+ "productId": "prod-craft-kit",
299
+ "name": "Deluxe Craft Kit",
300
+ "quantity": 1,
301
+ "reason": "Great for creative activities and crafts"
302
+ },
303
+ {
304
+ "productId": "prod-laptop-bag",
305
+ "name": "Tech Laptop Backpack",
306
+ "quantity": 1,
307
+ "reason": "Essential for your son's school computer needs"
308
+ },
309
+ {
310
+ "productId": "prod-mtg-starter",
311
+ "name": "Magic the Gathering Starter Set",
312
+ "quantity": 1,
313
+ "reason": "Ideal starter set for Magic the Gathering enthusiasts"
314
+ }
315
+ ]
270
316
  },
317
+ "eventRef": "ShoppingItemsSuggested"
318
+ },
319
+ "then": [
271
320
  {
272
- "productId": "prod-mtg-starter",
273
- "name": "Magic the Gathering Starter Set",
274
- "quantity": 1,
275
- "reason": "Ideal starter set for Magic the Gathering enthusiasts"
321
+ "stateRef": "SuggestedItems",
322
+ "exampleData": {
323
+ "sessionId": "session-abc",
324
+ "items": [
325
+ {
326
+ "productId": "prod-soccer-ball",
327
+ "name": "Super Soccer Ball",
328
+ "quantity": 1,
329
+ "reason": "Perfect for your daughter who loves soccer"
330
+ },
331
+ {
332
+ "productId": "prod-craft-kit",
333
+ "name": "Deluxe Craft Kit",
334
+ "quantity": 1,
335
+ "reason": "Great for creative activities and crafts"
336
+ },
337
+ {
338
+ "productId": "prod-laptop-bag",
339
+ "name": "Tech Laptop Backpack",
340
+ "quantity": 1,
341
+ "reason": "Essential for your son's school computer needs"
342
+ },
343
+ {
344
+ "productId": "prod-mtg-starter",
345
+ "name": "Magic the Gathering Starter Set",
346
+ "quantity": 1,
347
+ "reason": "Ideal starter set for Magic the Gathering enthusiasts"
348
+ }
349
+ ]
350
+ }
276
351
  }
277
352
  ]
278
353
  }
279
- }
280
- ]
281
- }
282
- ]
354
+ ]
355
+ }
356
+ ]
357
+ }
283
358
  }
284
359
  },
285
360
  {
@@ -308,79 +383,99 @@
308
383
  }
309
384
  }
310
385
  ],
311
- "gwt": [
312
- {
313
- "when": {
314
- "commandRef": "AddItemsToCart",
315
- "exampleData": {
316
- "sessionId": "session-abc",
317
- "items": [
318
- {
319
- "productId": "prod-soccer-ball",
320
- "quantity": 1
321
- },
322
- {
323
- "productId": "prod-craft-kit",
324
- "quantity": 1
325
- },
326
- {
327
- "productId": "prod-laptop-bag",
328
- "quantity": 1
386
+ "specs": {
387
+ "name": "When shopper accepts items, they are added to cart",
388
+ "rules": [
389
+ {
390
+ "description": "Accepted items should be added to the shopping cart",
391
+ "examples": [
392
+ {
393
+ "description": "User selects all suggested items for cart",
394
+ "when": {
395
+ "commandRef": "AddItemsToCart",
396
+ "exampleData": {
397
+ "sessionId": "session-abc",
398
+ "items": [
399
+ {
400
+ "productId": "prod-soccer-ball",
401
+ "quantity": 1
402
+ },
403
+ {
404
+ "productId": "prod-craft-kit",
405
+ "quantity": 1
406
+ },
407
+ {
408
+ "productId": "prod-laptop-bag",
409
+ "quantity": 1
410
+ },
411
+ {
412
+ "productId": "prod-mtg-starter",
413
+ "quantity": 1
414
+ }
415
+ ]
416
+ }
329
417
  },
330
- {
331
- "productId": "prod-mtg-starter",
332
- "quantity": 1
333
- }
334
- ]
335
- }
336
- },
337
- "then": [
338
- {
339
- "eventRef": "ItemsAddedToCart",
340
- "exampleData": {
341
- "sessionId": "session-abc",
342
- "items": [
418
+ "then": [
343
419
  {
344
- "productId": "prod-soccer-ball",
345
- "quantity": 1
346
- },
347
- {
348
- "productId": "prod-craft-kit",
349
- "quantity": 1
350
- },
351
- {
352
- "productId": "prod-laptop-bag",
353
- "quantity": 1
354
- },
355
- {
356
- "productId": "prod-mtg-starter",
357
- "quantity": 1
420
+ "eventRef": "ItemsAddedToCart",
421
+ "exampleData": {
422
+ "sessionId": "session-abc",
423
+ "items": [
424
+ {
425
+ "productId": "prod-soccer-ball",
426
+ "quantity": 1
427
+ },
428
+ {
429
+ "productId": "prod-craft-kit",
430
+ "quantity": 1
431
+ },
432
+ {
433
+ "productId": "prod-laptop-bag",
434
+ "quantity": 1
435
+ },
436
+ {
437
+ "productId": "prod-mtg-starter",
438
+ "quantity": 1
439
+ }
440
+ ],
441
+ "timestamp": "2025-09-04T21:20:20.310Z"
442
+ }
358
443
  }
359
- ],
360
- "timestamp": "2025-08-28T04:56:47.409Z"
444
+ ]
361
445
  }
362
- }
363
- ]
364
- }
365
- ]
446
+ ]
447
+ }
448
+ ]
449
+ }
366
450
  }
367
451
  }
368
- ]
452
+ ],
453
+ "sourceFile": "/Users/ramihatoum/WebstormProjects/xolvio/auto-engineer/examples/shopping-app/flows/shopping-assistant.flow.ts"
369
454
  }
370
455
  ],
371
456
  "messages": [
372
457
  {
373
- "type": "state",
374
- "name": "Products",
458
+ "type": "command",
459
+ "name": "DoChat",
375
460
  "fields": [
376
461
  {
377
- "name": "type",
378
- "type": "unknown",
462
+ "name": "sessionId",
463
+ "type": "string",
379
464
  "required": true
380
465
  },
381
466
  {
382
- "name": "data",
383
- "type": "{products: Array<{productId: string, name: string, category: string, price: number, tags: Array<string>, imageUrl: string}>}",
467
+ "name": "prompt",
468
+ "type": "string",
469
+ "required": true
470
+ },
471
+ {
472
+ "name": "systemPrompt",
473
+ "type": "string",
474
+ "required": false
475
+ },
476
+ {
477
+ "name": "schemaName",
478
+ "type": "string",
384
479
  "required": true
385
480
  }
386
481
  ],
@@ -390,7 +485,7 @@
390
485
  },
391
486
  {
392
487
  "type": "command",
393
- "name": "DoChat",
488
+ "name": "AddToCart",
394
489
  "fields": [
395
490
  {
396
491
  "name": "sessionId",
@@ -398,17 +493,74 @@
398
493
  "required": true
399
494
  },
400
495
  {
401
- "name": "prompt",
496
+ "name": "productId",
402
497
  "type": "string",
403
498
  "required": true
404
499
  },
405
500
  {
406
- "name": "systemPrompt",
501
+ "name": "name",
407
502
  "type": "string",
408
- "required": false
503
+ "required": true
409
504
  },
410
505
  {
411
- "name": "schemaName",
506
+ "name": "price",
507
+ "type": "number",
508
+ "required": true
509
+ },
510
+ {
511
+ "name": "quantity",
512
+ "type": "number",
513
+ "required": true
514
+ }
515
+ ],
516
+ "metadata": {
517
+ "version": 1
518
+ }
519
+ },
520
+ {
521
+ "type": "command",
522
+ "name": "RemoveFromCart",
523
+ "fields": [
524
+ {
525
+ "name": "sessionId",
526
+ "type": "string",
527
+ "required": true
528
+ },
529
+ {
530
+ "name": "productId",
531
+ "type": "string",
532
+ "required": true
533
+ },
534
+ {
535
+ "name": "quantity",
536
+ "type": "number",
537
+ "required": false
538
+ }
539
+ ],
540
+ "metadata": {
541
+ "version": 1
542
+ }
543
+ },
544
+ {
545
+ "type": "command",
546
+ "name": "ClearCart",
547
+ "fields": [
548
+ {
549
+ "name": "sessionId",
550
+ "type": "string",
551
+ "required": true
552
+ }
553
+ ],
554
+ "metadata": {
555
+ "version": 1
556
+ }
557
+ },
558
+ {
559
+ "type": "state",
560
+ "name": "Cart",
561
+ "fields": [
562
+ {
563
+ "name": "sessionId",
412
564
  "type": "string",
413
565
  "required": true
414
566
  }
@@ -417,6 +569,20 @@
417
569
  "version": 1
418
570
  }
419
571
  },
572
+ {
573
+ "type": "state",
574
+ "name": "Products",
575
+ "fields": [
576
+ {
577
+ "name": "products",
578
+ "type": "Array<{ productId: string; name: string; category: string; price: number; tags: Array<string>; imageUrl: string }>",
579
+ "required": true
580
+ }
581
+ ],
582
+ "metadata": {
583
+ "version": 1
584
+ }
585
+ },
420
586
  {
421
587
  "type": "command",
422
588
  "name": "EnterShoppingCriteria",
@@ -491,7 +657,7 @@
491
657
  },
492
658
  {
493
659
  "name": "suggestedItems",
494
- "type": "Array<{productId: string, name: string, quantity: number, reason: string}>",
660
+ "type": "Array<{ productId: string; name: string; quantity: number; reason: string }>",
495
661
  "required": true
496
662
  }
497
663
  ],
@@ -511,7 +677,7 @@
511
677
  },
512
678
  {
513
679
  "name": "items",
514
- "type": "Array<{productId: string, name: string, quantity: number, reason: string}>",
680
+ "type": "Array<{ productId: string; name: string; quantity: number; reason: string }>",
515
681
  "required": true
516
682
  }
517
683
  ],
@@ -530,7 +696,7 @@
530
696
  },
531
697
  {
532
698
  "name": "items",
533
- "type": "Array<{productId: string, quantity: number}>",
699
+ "type": "Array<{ productId: string; quantity: number }>",
534
700
  "required": true
535
701
  }
536
702
  ],
@@ -549,7 +715,7 @@
549
715
  },
550
716
  {
551
717
  "name": "items",
552
- "type": "Array<{productId: string, quantity: number}>",
718
+ "type": "Array<{ productId: string; quantity: number }>",
553
719
  "required": true
554
720
  },
555
721
  {
@@ -574,6 +740,11 @@
574
740
  "name": "product-catalog",
575
741
  "description": "product-catalog integration",
576
742
  "source": "@auto-engineer/product-catalog-integration"
743
+ },
744
+ {
745
+ "name": "cart",
746
+ "description": "cart integration",
747
+ "source": "@auto-engineer/cart-integration"
577
748
  }
578
749
  ]
579
750
  }