create-auto-app 0.2.1 → 0.2.2

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 (289) hide show
  1. package/dist/index.js +7 -7
  2. package/dist/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/templates/shopping-app/auto.config.ts +6 -6
  5. package/templates/shopping-app/client/auto-configure.ts +1 -1
  6. package/templates/shopping-app/client/package.json +1 -1
  7. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-build.log +4 -0
  8. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-format.log +12 -0
  9. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-lint.log +4 -0
  10. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-test.log +12 -0
  11. package/templates/shopping-app/example-integrations/ai-chat-completion/.turbo/turbo-type-check.log +5 -0
  12. package/templates/shopping-app/example-integrations/ai-chat-completion/CHANGELOG.md +134 -0
  13. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.d.ts +23 -0
  14. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.d.ts.map +1 -0
  15. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.js +41 -0
  16. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/ai-integration.js.map +1 -0
  17. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.d.ts +2 -0
  18. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.d.ts.map +1 -0
  19. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.js +2 -0
  20. package/templates/shopping-app/example-integrations/ai-chat-completion/dist/index.js.map +1 -0
  21. package/templates/shopping-app/example-integrations/ai-chat-completion/eslint.config.ts +12 -0
  22. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/eslint +21 -0
  23. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/jiti +21 -0
  24. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/msw +21 -0
  25. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/tsc +21 -0
  26. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/tsserver +21 -0
  27. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/vite +21 -0
  28. package/templates/shopping-app/example-integrations/ai-chat-completion/node_modules/.bin/vitest +21 -0
  29. package/templates/shopping-app/example-integrations/ai-chat-completion/package.json +29 -0
  30. package/templates/shopping-app/example-integrations/ai-chat-completion/src/ai-integration.ts +76 -0
  31. package/templates/shopping-app/example-integrations/ai-chat-completion/src/index.ts +1 -0
  32. package/templates/shopping-app/example-integrations/ai-chat-completion/tsconfig.json +10 -0
  33. package/templates/shopping-app/example-integrations/ai-chat-completion/tsconfig.test.json +7 -0
  34. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-build.log +4 -0
  35. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-format.log +12 -0
  36. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-lint.log +5 -0
  37. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-test.log +12 -0
  38. package/templates/shopping-app/example-integrations/cart/.turbo/turbo-type-check.log +5 -0
  39. package/templates/shopping-app/example-integrations/cart/CHANGELOG.md +124 -0
  40. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.d.ts +30 -0
  41. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.d.ts.map +1 -0
  42. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.js +134 -0
  43. package/templates/shopping-app/example-integrations/cart/dist/cart-integration.js.map +1 -0
  44. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.d.ts +3 -0
  45. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.d.ts.map +1 -0
  46. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.js +149 -0
  47. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/client.gen.js.map +1 -0
  48. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.d.ts +8 -0
  49. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.d.ts.map +1 -0
  50. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.js +6 -0
  51. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/index.js.map +1 -0
  52. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.d.ts +123 -0
  53. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.d.ts.map +1 -0
  54. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.js +3 -0
  55. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/types.gen.js.map +1 -0
  56. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.d.ts +46 -0
  57. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.d.ts.map +1 -0
  58. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.js +285 -0
  59. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client/utils.gen.js.map +1 -0
  60. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.d.ts +13 -0
  61. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.d.ts.map +1 -0
  62. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.js +6 -0
  63. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/client.gen.js.map +1 -0
  64. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.d.ts +19 -0
  65. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.d.ts.map +1 -0
  66. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.js +15 -0
  67. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/auth.gen.js.map +1 -0
  68. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.d.ts +18 -0
  69. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.d.ts.map +1 -0
  70. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.js +58 -0
  71. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/bodySerializer.gen.js.map +1 -0
  72. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.d.ts +34 -0
  73. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.d.ts.map +1 -0
  74. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.js +89 -0
  75. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/params.gen.js.map +1 -0
  76. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.d.ts +34 -0
  77. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.d.ts.map +1 -0
  78. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.js +115 -0
  79. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/pathSerializer.gen.js.map +1 -0
  80. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.d.ts +79 -0
  81. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.d.ts.map +1 -0
  82. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.js +3 -0
  83. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/core/types.gen.js.map +1 -0
  84. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.d.ts +2 -0
  85. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.d.ts.map +1 -0
  86. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.js +3 -0
  87. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/index.js.map +1 -0
  88. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.d.ts +158 -0
  89. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.d.ts.map +1 -0
  90. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.js +3 -0
  91. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/types.gen.js.map +1 -0
  92. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.d.ts +382 -0
  93. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.d.ts.map +1 -0
  94. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.js +68 -0
  95. package/templates/shopping-app/example-integrations/cart/dist/generated/cart/zod.gen.js.map +1 -0
  96. package/templates/shopping-app/example-integrations/cart/dist/index.d.ts +2 -0
  97. package/templates/shopping-app/example-integrations/cart/dist/index.d.ts.map +1 -0
  98. package/templates/shopping-app/example-integrations/cart/dist/index.js +2 -0
  99. package/templates/shopping-app/example-integrations/cart/dist/index.js.map +1 -0
  100. package/templates/shopping-app/example-integrations/cart/eslint.config.ts +12 -0
  101. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/eslint +21 -0
  102. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/jiti +21 -0
  103. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/msw +21 -0
  104. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/tsc +21 -0
  105. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/tsserver +21 -0
  106. package/templates/shopping-app/example-integrations/cart/node_modules/.bin/vitest +21 -0
  107. package/templates/shopping-app/example-integrations/cart/package.json +31 -0
  108. package/templates/shopping-app/example-integrations/cart/src/cart-integration.ts +198 -0
  109. package/templates/shopping-app/example-integrations/cart/src/generated/cart/client/client.gen.ts +199 -0
  110. package/templates/shopping-app/example-integrations/cart/src/generated/cart/client/index.ts +25 -0
  111. package/templates/shopping-app/example-integrations/cart/src/generated/cart/client/types.gen.ts +232 -0
  112. package/templates/shopping-app/example-integrations/cart/src/generated/cart/client/utils.gen.ts +419 -0
  113. package/templates/shopping-app/example-integrations/cart/src/generated/cart/client.gen.ts +18 -0
  114. package/templates/shopping-app/example-integrations/cart/src/generated/cart/core/auth.gen.ts +42 -0
  115. package/templates/shopping-app/example-integrations/cart/src/generated/cart/core/bodySerializer.gen.ts +92 -0
  116. package/templates/shopping-app/example-integrations/cart/src/generated/cart/core/params.gen.ts +153 -0
  117. package/templates/shopping-app/example-integrations/cart/src/generated/cart/core/pathSerializer.gen.ts +181 -0
  118. package/templates/shopping-app/example-integrations/cart/src/generated/cart/core/types.gen.ts +120 -0
  119. package/templates/shopping-app/example-integrations/cart/src/generated/cart/index.ts +2 -0
  120. package/templates/shopping-app/example-integrations/cart/src/generated/cart/types.gen.ts +175 -0
  121. package/templates/shopping-app/example-integrations/cart/src/generated/cart/zod.gen.ts +78 -0
  122. package/templates/shopping-app/example-integrations/cart/src/index.ts +1 -0
  123. package/templates/shopping-app/example-integrations/cart/tsconfig.json +10 -0
  124. package/templates/shopping-app/example-integrations/cart/tsconfig.test.json +7 -0
  125. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-build.log +4 -0
  126. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-format.log +10 -0
  127. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-lint.log +4 -0
  128. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-test.log +12 -0
  129. package/templates/shopping-app/example-integrations/cart-api/.turbo/turbo-type-check.log +4 -0
  130. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.d.ts +18 -0
  131. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.d.ts.map +1 -0
  132. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.js +28 -0
  133. package/templates/shopping-app/example-integrations/cart-api/dist/data/cart.js.map +1 -0
  134. package/templates/shopping-app/example-integrations/cart-api/dist/index.d.ts +4 -0
  135. package/templates/shopping-app/example-integrations/cart-api/dist/index.d.ts.map +1 -0
  136. package/templates/shopping-app/example-integrations/cart-api/dist/index.js +49 -0
  137. package/templates/shopping-app/example-integrations/cart-api/dist/index.js.map +1 -0
  138. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.d.ts +4 -0
  139. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.d.ts.map +1 -0
  140. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.js +261 -0
  141. package/templates/shopping-app/example-integrations/cart-api/dist/routes/cart.js.map +1 -0
  142. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/nodemon +21 -0
  143. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/swagger-jsdoc +21 -0
  144. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node +21 -0
  145. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-cwd +21 -0
  146. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-esm +21 -0
  147. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-script +21 -0
  148. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-node-transpile-only +21 -0
  149. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/ts-script +21 -0
  150. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsc +21 -0
  151. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsserver +21 -0
  152. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/tsx +21 -0
  153. package/templates/shopping-app/example-integrations/cart-api/node_modules/.bin/vitest +21 -0
  154. package/templates/shopping-app/example-integrations/cart-api/package.json +49 -0
  155. package/templates/shopping-app/example-integrations/cart-api/src/data/cart.ts +45 -0
  156. package/templates/shopping-app/example-integrations/cart-api/src/index.ts +59 -0
  157. package/templates/shopping-app/example-integrations/cart-api/src/routes/cart.ts +289 -0
  158. package/templates/shopping-app/example-integrations/cart-api/tsconfig.json +9 -0
  159. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-build.log +4 -0
  160. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-format.log +12 -0
  161. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-lint.log +5 -0
  162. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-test.log +12 -0
  163. package/templates/shopping-app/example-integrations/product-catalogue/.turbo/turbo-type-check.log +5 -0
  164. package/templates/shopping-app/example-integrations/product-catalogue/CHANGELOG.md +124 -0
  165. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.d.ts +3 -0
  166. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.d.ts.map +1 -0
  167. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.js +149 -0
  168. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/client.gen.js.map +1 -0
  169. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.d.ts +8 -0
  170. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.d.ts.map +1 -0
  171. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.js +6 -0
  172. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/index.js.map +1 -0
  173. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.d.ts +123 -0
  174. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.d.ts.map +1 -0
  175. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.js +3 -0
  176. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/types.gen.js.map +1 -0
  177. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.d.ts +46 -0
  178. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.d.ts.map +1 -0
  179. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.js +285 -0
  180. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client/utils.gen.js.map +1 -0
  181. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.d.ts +13 -0
  182. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.d.ts.map +1 -0
  183. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.js +6 -0
  184. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/client.gen.js.map +1 -0
  185. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.d.ts +19 -0
  186. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.d.ts.map +1 -0
  187. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.js +15 -0
  188. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/auth.gen.js.map +1 -0
  189. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.d.ts +18 -0
  190. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.d.ts.map +1 -0
  191. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.js +58 -0
  192. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/bodySerializer.gen.js.map +1 -0
  193. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.d.ts +34 -0
  194. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.d.ts.map +1 -0
  195. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.js +89 -0
  196. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/params.gen.js.map +1 -0
  197. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.d.ts +34 -0
  198. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.d.ts.map +1 -0
  199. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.js +115 -0
  200. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/pathSerializer.gen.js.map +1 -0
  201. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.d.ts +79 -0
  202. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.d.ts.map +1 -0
  203. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.js +3 -0
  204. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/core/types.gen.js.map +1 -0
  205. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.d.ts +2 -0
  206. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.d.ts.map +1 -0
  207. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.js +3 -0
  208. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/index.js.map +1 -0
  209. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.d.ts +115 -0
  210. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.d.ts.map +1 -0
  211. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.js +3 -0
  212. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/types.gen.js.map +1 -0
  213. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.d.ts +206 -0
  214. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.d.ts.map +1 -0
  215. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.js +53 -0
  216. package/templates/shopping-app/example-integrations/product-catalogue/dist/generated/product-catalog/zod.gen.js.map +1 -0
  217. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.d.ts +2 -0
  218. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.d.ts.map +1 -0
  219. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.js +2 -0
  220. package/templates/shopping-app/example-integrations/product-catalogue/dist/index.js.map +1 -0
  221. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.d.ts +32 -0
  222. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.d.ts.map +1 -0
  223. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.js +163 -0
  224. package/templates/shopping-app/example-integrations/product-catalogue/dist/product-catalogue-integration.js.map +1 -0
  225. package/templates/shopping-app/example-integrations/product-catalogue/eslint.config.ts +12 -0
  226. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/eslint +21 -0
  227. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/jiti +21 -0
  228. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/msw +21 -0
  229. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/tsc +21 -0
  230. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/tsserver +21 -0
  231. package/templates/shopping-app/example-integrations/product-catalogue/node_modules/.bin/vitest +21 -0
  232. package/templates/shopping-app/example-integrations/product-catalogue/package.json +31 -0
  233. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/client/client.gen.ts +199 -0
  234. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/client/index.ts +25 -0
  235. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/client/types.gen.ts +232 -0
  236. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/client/utils.gen.ts +419 -0
  237. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/client.gen.ts +18 -0
  238. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/core/auth.gen.ts +42 -0
  239. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/core/bodySerializer.gen.ts +92 -0
  240. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/core/params.gen.ts +153 -0
  241. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/core/pathSerializer.gen.ts +181 -0
  242. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/core/types.gen.ts +120 -0
  243. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/index.ts +2 -0
  244. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/types.gen.ts +133 -0
  245. package/templates/shopping-app/example-integrations/product-catalogue/src/generated/product-catalog/zod.gen.ts +62 -0
  246. package/templates/shopping-app/example-integrations/product-catalogue/src/index.ts +1 -0
  247. package/templates/shopping-app/example-integrations/product-catalogue/src/product-catalogue-integration.ts +225 -0
  248. package/templates/shopping-app/example-integrations/product-catalogue/tsconfig.json +10 -0
  249. package/templates/shopping-app/example-integrations/product-catalogue/tsconfig.test.json +7 -0
  250. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-build.log +4 -0
  251. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-format.log +10 -0
  252. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-lint.log +5 -0
  253. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-test.log +13 -0
  254. package/templates/shopping-app/example-integrations/product-catalogue-api/.turbo/turbo-type-check.log +5 -0
  255. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.d.ts +10 -0
  256. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.d.ts.map +1 -0
  257. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.js +75 -0
  258. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/data/products.js.map +1 -0
  259. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.d.ts +4 -0
  260. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.d.ts.map +1 -0
  261. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.js +49 -0
  262. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/index.js.map +1 -0
  263. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.d.ts +4 -0
  264. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.d.ts.map +1 -0
  265. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.js +170 -0
  266. package/templates/shopping-app/example-integrations/product-catalogue-api/dist/routes/products.js.map +1 -0
  267. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/nodemon +21 -0
  268. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/swagger-jsdoc +21 -0
  269. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node +21 -0
  270. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-cwd +21 -0
  271. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-esm +21 -0
  272. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-script +21 -0
  273. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-node-transpile-only +21 -0
  274. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/ts-script +21 -0
  275. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsc +21 -0
  276. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsserver +21 -0
  277. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/tsx +21 -0
  278. package/templates/shopping-app/example-integrations/product-catalogue-api/node_modules/.bin/vitest +21 -0
  279. package/templates/shopping-app/example-integrations/product-catalogue-api/package.json +51 -0
  280. package/templates/shopping-app/example-integrations/product-catalogue-api/src/data/products.ts +90 -0
  281. package/templates/shopping-app/example-integrations/product-catalogue-api/src/index.ts +59 -0
  282. package/templates/shopping-app/example-integrations/product-catalogue-api/src/routes/products.ts +181 -0
  283. package/templates/shopping-app/example-integrations/product-catalogue-api/tsconfig.json +9 -0
  284. package/templates/shopping-app/flows/shopping-assistant.flow.ts +1 -1
  285. package/templates/shopping-app/package.json +10 -6
  286. package/templates/shopping-app/server/package.json +1 -1
  287. package/templates/shopping-app/server/src/integrations/ai-integration.ts +1 -1
  288. package/templates/shopping-app/server/src/integrations/cart-integration.ts +1 -1
  289. package/templates/shopping-app/server/src/integrations/product-catalogue-integration.ts +1 -1
@@ -0,0 +1,76 @@
1
+ import { Integration, Event, Command } from '@auto-engineer/flow';
2
+ import {
3
+ generateStructuredDataWithAI,
4
+ AIProvider,
5
+ z,
6
+ getSchemaByName,
7
+ generateTextWithAI,
8
+ } from '@auto-engineer/ai-gateway';
9
+
10
+ export type ChatCompleted = Event<
11
+ 'ChatCompleted',
12
+ {
13
+ sessionId: string;
14
+ suggestedItems: { productId: string; name: string; quantity: number; reason: string }[];
15
+ timestamp: Date;
16
+ }
17
+ >;
18
+
19
+ export type DoChat = Command<
20
+ 'DoChat',
21
+ {
22
+ sessionId: string;
23
+ prompt: string;
24
+ systemPrompt?: string;
25
+ schemaName?: string;
26
+ }
27
+ >;
28
+
29
+ type AICommands = {
30
+ DoChat: <T>(command: DoChat) => Promise<T>;
31
+ };
32
+
33
+ export const AI: Integration<'ai', Record<string, never>, AICommands> = {
34
+ __brand: 'Integration' as const,
35
+ type: 'ai' as const,
36
+ name: 'AI',
37
+ Commands: {
38
+ schema: {
39
+ DoChat: z.object({
40
+ sessionId: z.string(),
41
+ prompt: z.string(),
42
+ systemPrompt: z.string().optional(),
43
+ schemaName: z.string(),
44
+ }),
45
+ },
46
+ DoChat: async <T>(command: DoChat): Promise<T> => {
47
+ const { prompt, systemPrompt, schemaName } = command.data;
48
+
49
+ const fullPrompt = systemPrompt?.trim() != null ? `${systemPrompt.trim()}\n\n${prompt.trim()}` : prompt.trim();
50
+
51
+ if (schemaName != null) {
52
+ const schema = getSchemaByName(schemaName);
53
+
54
+ if (schema) {
55
+ return await generateStructuredDataWithAI(fullPrompt, AIProvider.Anthropic, {
56
+ schema: schema as z.ZodSchema<T>,
57
+ schemaName,
58
+ schemaDescription: `AI output matching schema '${schemaName}'`,
59
+ includeTools: true,
60
+ });
61
+ }
62
+ }
63
+ const raw = await generateTextWithAI(fullPrompt, AIProvider.Anthropic, {
64
+ includeTools: true,
65
+ });
66
+
67
+ try {
68
+ return JSON.parse(raw) as T;
69
+ } catch (err) {
70
+ throw new Error(
71
+ `Failed to parse unstructured AI response: ${err instanceof Error ? err.message : String(err)}`,
72
+ );
73
+ }
74
+ },
75
+ },
76
+ };
@@ -0,0 +1 @@
1
+ export * from './ai-integration';
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist",
5
+ "rootDir": "./src",
6
+ "types": ["vitest/globals", "node"]
7
+ },
8
+ "include": ["src/**/*"],
9
+ "exclude": ["node_modules", "dist"]
10
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["vitest/globals"]
5
+ },
6
+ "include": ["src/**/*.test.ts", "src/**/*.spec.ts"]
7
+ }
@@ -0,0 +1,4 @@
1
+
2
+ > @auto-engineer/cart-integration@0.6.1 build /Users/sam/WebstormProjects/top/auto-engineer/integrations/cart
3
+ > tsc
4
+
@@ -0,0 +1,12 @@
1
+
2
+ 
3
+ > @auto-engineer/cart-integration@0.6.1 format /Users/sam/WebstormProjects/top/auto-engineer/integrations/cart
4
+ > prettier --write "**/*.{js,ts,json,md,yml,yaml}" --ignore-path ../../.prettierignore
5
+
6
+ CHANGELOG.mdCHANGELOG.md 31ms (unchanged)
7
+ eslint.config.tseslint.config.ts 40ms (unchanged)
8
+ package.jsonpackage.json 13ms (unchanged)
9
+ src/cart-integration.tssrc/cart-integration.ts 30ms (unchanged)
10
+ src/index.tssrc/index.ts 1ms (unchanged)
11
+ tsconfig.jsontsconfig.json 1ms (unchanged)
12
+ tsconfig.test.jsontsconfig.test.json 2ms (unchanged)
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @auto-engineer/cart-integration@0.6.1 lint /Users/sam/WebstormProjects/top/auto-engineer/integrations/cart
4
+ > eslint 'src/**/*.ts' --ignore-pattern 'src/generated/**/*' --max-warnings 0 --config ./eslint.config.ts
5
+
@@ -0,0 +1,12 @@
1
+
2
+ > @auto-engineer/cart-integration@0.6.1 test /Users/sam/WebstormProjects/top/auto-engineer/integrations/cart
3
+ > vitest run
4
+
5
+
6
+ RUN v3.2.4 /Users/sam/WebstormProjects/top/auto-engineer/integrations/cart
7
+
8
+ No test files found, exiting with code 0
9
+
10
+ include: **/*.specs.{js,ts}
11
+ exclude: **/.tmp/**, **/node_modules/**, **/dist/**
12
+
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @auto-engineer/cart-integration@0.6.1 type-check /Users/sam/WebstormProjects/top/auto-engineer/integrations/cart
4
+ > tsc --noEmit
5
+
@@ -0,0 +1,124 @@
1
+ # @auto-engineer/cart-integration
2
+
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - version bump for testihng
8
+ - Updated dependencies
9
+ - @auto-engineer/ai-gateway@0.6.1
10
+ - @auto-engineer/flow@0.7.1
11
+
12
+ ## 0.6.0
13
+
14
+ ### Minor Changes
15
+
16
+ - Major overhaul of the plugin system
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @auto-engineer/ai-gateway@0.6.0
22
+ - @auto-engineer/flow@0.7.0
23
+
24
+ ## 0.5.0
25
+
26
+ ### Minor Changes
27
+
28
+ - • All cli commands now use commands and emit events on the bus
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies
33
+ - @auto-engineer/ai-gateway@0.5.0
34
+ - @auto-engineer/flow@0.6.0
35
+
36
+ ## 0.4.3
37
+
38
+ ### Patch Changes
39
+
40
+ - version testing
41
+ - Updated dependencies
42
+ - @auto-engineer/ai-gateway@0.4.3
43
+ - @auto-engineer/flow@0.5.3
44
+
45
+ ## 0.4.2
46
+
47
+ ### Patch Changes
48
+
49
+ - Bump versions
50
+ - Updated dependencies
51
+ - @auto-engineer/ai-gateway@0.4.2
52
+ - @auto-engineer/flow@0.5.2
53
+
54
+ ## 0.4.1
55
+
56
+ ### Patch Changes
57
+
58
+ - Version bump to trigger builds
59
+ - Updated dependencies
60
+ - @auto-engineer/ai-gateway@0.4.1
61
+ - @auto-engineer/flow@0.5.1
62
+
63
+ ## 0.4.0
64
+
65
+ ### Minor Changes
66
+
67
+ - [#22](https://github.com/SamHatoum/auto-engineer/pull/22) [`927b39a`](https://github.com/SamHatoum/auto-engineer/commit/927b39a2c08c0baa1942b2955a8e8015e09364d9) Thanks [@SamHatoum](https://github.com/SamHatoum)! - Some major refactorings of the directory structure
68
+
69
+ ### Patch Changes
70
+
71
+ - [`f3e97e5`](https://github.com/SamHatoum/auto-engineer/commit/f3e97e563b79ca8328e802dd502e65285ec58ce9) Thanks [@SamHatoum](https://github.com/SamHatoum)! - global version bump to test release process
72
+
73
+ - Updated dependencies [[`f3e97e5`](https://github.com/SamHatoum/auto-engineer/commit/f3e97e563b79ca8328e802dd502e65285ec58ce9), [`927b39a`](https://github.com/SamHatoum/auto-engineer/commit/927b39a2c08c0baa1942b2955a8e8015e09364d9)]:
74
+ - @auto-engineer/ai-gateway@0.4.0
75
+ - @auto-engineer/flow@0.5.0
76
+
77
+ ## 0.3.0
78
+
79
+ ### Minor Changes
80
+
81
+ - [`330afa5`](https://github.com/SamHatoum/auto-engineer/commit/330afa565079e3b528d0f448d64919a8dc78d684) Thanks [@SamHatoum](https://github.com/SamHatoum)! - Fix multiple dependency issues
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [[`330afa5`](https://github.com/SamHatoum/auto-engineer/commit/330afa565079e3b528d0f448d64919a8dc78d684)]:
86
+ - @auto-engineer/ai-gateway@0.3.0
87
+ - @auto-engineer/flow@0.4.0
88
+
89
+ ## 0.2.0
90
+
91
+ ### Minor Changes
92
+
93
+ - [#22](https://github.com/SamHatoum/auto-engineer/pull/22) [`e39acf3`](https://github.com/SamHatoum/auto-engineer/commit/e39acf31e9051652084d0de99cf8c89b40e6531c) Thanks [@SamHatoum](https://github.com/SamHatoum)! - Some major refactorings of the directory structure
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [[`d4dcacd`](https://github.com/SamHatoum/auto-engineer/commit/d4dcacd18cf2217d3ac9f4354f79ab7ff2ba39a0), [`e39acf3`](https://github.com/SamHatoum/auto-engineer/commit/e39acf31e9051652084d0de99cf8c89b40e6531c)]:
98
+ - @auto-engineer/ai-gateway@0.2.0
99
+ - @auto-engineer/flow@0.3.0
100
+
101
+ ## 0.1.3
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies [[`96c6f02`](https://github.com/SamHatoum/auto-engineer/commit/96c6f02989f9856a269367f42e288c7dbf5dd1d3), [`988ab04`](https://github.com/SamHatoum/auto-engineer/commit/988ab04530d41e116df9196434c0e57ff2ee11a8), [`6b8a9e4`](https://github.com/SamHatoum/auto-engineer/commit/6b8a9e4b618b0ecda3656e695f5e51e40992fc40), [`91a124f`](https://github.com/SamHatoum/auto-engineer/commit/91a124ff09ecb5893571d0d6fc86e51eaac7a3f0)]:
106
+ - @auto-engineer/flow@0.2.0
107
+
108
+ ## 0.1.2
109
+
110
+ ### Patch Changes
111
+
112
+ - Fix workspace:\* dependencies to use actual version numbers for npm publishing
113
+
114
+ - Updated dependencies []:
115
+ - @auto-engineer/ai-gateway@0.1.2
116
+ - @auto-engineer/flow@0.1.3
117
+
118
+ ## 0.1.1
119
+
120
+ ### Patch Changes
121
+
122
+ - Updated dependencies []:
123
+ - @auto-engineer/ai-gateway@0.1.1
124
+ - @auto-engineer/flow@0.1.2
@@ -0,0 +1,30 @@
1
+ import type { State, Integration } from '@auto-engineer/flow';
2
+ import type { CartSession } from './generated/cart';
3
+ export type CartState = State<'Cart', {
4
+ cart: CartSession;
5
+ }>;
6
+ type CartQueries = {
7
+ GetCart: (p: {
8
+ sessionId: string;
9
+ }) => Promise<CartState>;
10
+ };
11
+ type CartCommands = {
12
+ AddItem: (p: {
13
+ sessionId: string;
14
+ productId: string;
15
+ name: string;
16
+ price: number;
17
+ quantity: number;
18
+ }) => Promise<CartState>;
19
+ RemoveItem: (p: {
20
+ sessionId: string;
21
+ productId: string;
22
+ quantity: number;
23
+ }) => Promise<CartState>;
24
+ Clear: (p: {
25
+ sessionId: string;
26
+ }) => Promise<CartState>;
27
+ };
28
+ export declare const Cart: Integration<'cart', CartQueries, CartCommands>;
29
+ export {};
30
+ //# sourceMappingURL=cart-integration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-integration.d.ts","sourceRoot":"","sources":["../src/cart-integration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAI9D,OAAO,KAAK,EACV,WAAW,EAOZ,MAAM,kBAAkB,CAAC;AAS1B,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC;AAM7D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CAC3D,CAAC;AACF,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,CAAC,CAAC,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IACzB,UAAU,EAAE,CAAC,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IAClG,KAAK,EAAE,CAAC,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAgF/D,CAAC"}
@@ -0,0 +1,134 @@
1
+ import { registerTool, z } from '@auto-engineer/ai-gateway';
2
+ import { createClient as createCartClient } from './generated/cart/client';
3
+ import { zGetApiCartBySessionIdResponse, zPostApiCartBySessionIdAddResponse, zPostApiCartBySessionIdRemoveResponse, zPostApiCartBySessionIdClearResponse, } from './generated/cart/zod.gen';
4
+ // ---------- Client ----------
5
+ const cartClient = createCartClient({ baseUrl: 'http://localhost:3002' });
6
+ export const Cart = {
7
+ __brand: 'Integration',
8
+ type: 'cart',
9
+ name: 'cart',
10
+ Queries: {
11
+ // GET /api/cart/{sessionId}
12
+ GetCart: async ({ sessionId }) => {
13
+ const res = await cartClient.get({
14
+ url: '/api/cart/{sessionId}',
15
+ path: { sessionId },
16
+ });
17
+ if (res.error !== undefined) {
18
+ console.error(`GetCart error for "${sessionId}":`, res.error);
19
+ const now = new Date().toISOString();
20
+ return { type: 'Cart', data: { cart: { sessionId, items: [], total: 0, createdAt: now, updatedAt: now } } };
21
+ }
22
+ return { type: 'Cart', data: { cart: res.data } };
23
+ },
24
+ },
25
+ Commands: {
26
+ // POST /api/cart/{sessionId}/add
27
+ AddItem: async ({ sessionId, productId, name, price, quantity }) => {
28
+ const res = await cartClient.post({
29
+ url: '/api/cart/{sessionId}/add',
30
+ path: { sessionId },
31
+ body: { productId, name, price, quantity },
32
+ });
33
+ if (res.error !== undefined) {
34
+ console.error(`AddItem error for "${sessionId}":`, res.error);
35
+ // fall back to current cart
36
+ const fallback = await cartClient.get({
37
+ url: '/api/cart/{sessionId}',
38
+ path: { sessionId },
39
+ });
40
+ return { type: 'Cart', data: { cart: fallback.data } };
41
+ }
42
+ return { type: 'Cart', data: { cart: res.data } };
43
+ },
44
+ // POST /api/cart/{sessionId}/remove
45
+ RemoveItem: async ({ sessionId, productId, quantity }) => {
46
+ const res = await cartClient.post({
47
+ url: '/api/cart/{sessionId}/remove',
48
+ path: { sessionId },
49
+ body: { productId, quantity },
50
+ });
51
+ if (res.error !== undefined) {
52
+ console.error(`RemoveItem error for "${sessionId}":`, res.error);
53
+ const fallback = await cartClient.get({
54
+ url: '/api/cart/{sessionId}',
55
+ path: { sessionId },
56
+ });
57
+ return { type: 'Cart', data: { cart: fallback.data } };
58
+ }
59
+ return { type: 'Cart', data: { cart: res.data } };
60
+ },
61
+ // POST /api/cart/{sessionId}/clear
62
+ Clear: async ({ sessionId }) => {
63
+ const res = await cartClient.post({
64
+ url: '/api/cart/{sessionId}/clear',
65
+ path: { sessionId },
66
+ });
67
+ if (res.error !== undefined) {
68
+ console.error(`Clear error for "${sessionId}":`, res.error);
69
+ const fallback = await cartClient.get({
70
+ url: '/api/cart/{sessionId}',
71
+ path: { sessionId },
72
+ });
73
+ return { type: 'Cart', data: { cart: fallback.data } };
74
+ }
75
+ return { type: 'Cart', data: { cart: res.data } };
76
+ },
77
+ },
78
+ };
79
+ // ---------- MCP tools ----------
80
+ registerTool('CART_GET', {
81
+ title: 'Get Cart',
82
+ description: 'Fetch a cart session by ID',
83
+ inputSchema: { sessionId: z.string().min(1) },
84
+ schema: zGetApiCartBySessionIdResponse,
85
+ schemaName: 'CartSession',
86
+ schemaDescription: 'Cart session details',
87
+ }, async ({ sessionId }) => {
88
+ const res = await Cart.Queries.GetCart({ sessionId });
89
+ return { content: [{ type: 'text', text: JSON.stringify(res.data.cart, null, 2) }] };
90
+ });
91
+ registerTool('CART_ADD', {
92
+ title: 'Add Item to Cart',
93
+ description: 'Add an item to the cart',
94
+ inputSchema: {
95
+ sessionId: z.string().min(1),
96
+ productId: z.string().min(1),
97
+ name: z.string().min(1),
98
+ price: z.number(),
99
+ quantity: z.number().int().positive(),
100
+ },
101
+ schema: zPostApiCartBySessionIdAddResponse,
102
+ schemaName: 'CartSession',
103
+ schemaDescription: 'Updated cart',
104
+ }, async (args) => {
105
+ const res = await Cart.Commands.AddItem(args);
106
+ return { content: [{ type: 'text', text: JSON.stringify(res.data.cart, null, 2) }] };
107
+ });
108
+ registerTool('CART_REMOVE', {
109
+ title: 'Remove Item from Cart',
110
+ description: 'Remove or decrement an item in the cart',
111
+ inputSchema: {
112
+ sessionId: z.string().min(1),
113
+ productId: z.string().min(1),
114
+ quantity: z.number().int().positive(),
115
+ },
116
+ schema: zPostApiCartBySessionIdRemoveResponse,
117
+ schemaName: 'CartSession',
118
+ schemaDescription: 'Updated cart',
119
+ }, async (args) => {
120
+ const res = await Cart.Commands.RemoveItem(args);
121
+ return { content: [{ type: 'text', text: JSON.stringify(res.data.cart, null, 2) }] };
122
+ });
123
+ registerTool('CART_CLEAR', {
124
+ title: 'Clear Cart',
125
+ description: 'Remove all items from the cart',
126
+ inputSchema: { sessionId: z.string().min(1) },
127
+ schema: zPostApiCartBySessionIdClearResponse,
128
+ schemaName: 'CartSession',
129
+ schemaDescription: 'Updated cart',
130
+ }, async ({ sessionId }) => {
131
+ const res = await Cart.Commands.Clear({ sessionId });
132
+ return { content: [{ type: 'text', text: JSON.stringify(res.data.cart, null, 2) }] };
133
+ });
134
+ //# sourceMappingURL=cart-integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-integration.js","sourceRoot":"","sources":["../src/cart-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAU3E,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,qCAAqC,EACrC,oCAAoC,GACrC,MAAM,0BAA0B,CAAC;AAKlC,+BAA+B;AAC/B,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,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AAChG,CAAC,CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Client, Config } from './types.gen';
2
+ export declare const createClient: (config?: Config) => Client;
3
+ //# sourceMappingURL=client.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.gen.d.ts","sourceRoot":"","sources":["../../../../src/generated/cart/client/client.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAA0B,MAAM,aAAa,CAAC;AAgB1E,eAAO,MAAM,YAAY,GAAI,SAAQ,MAAW,KAAG,MAoLlD,CAAC"}
@@ -0,0 +1,149 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { buildUrl, createConfig, createInterceptors, getParseAs, mergeConfigs, mergeHeaders, setAuthParams, } from './utils.gen';
3
+ export const createClient = (config = {}) => {
4
+ let _config = mergeConfigs(createConfig(), config);
5
+ const getConfig = () => ({ ..._config });
6
+ const setConfig = (config) => {
7
+ _config = mergeConfigs(_config, config);
8
+ return getConfig();
9
+ };
10
+ const interceptors = createInterceptors();
11
+ const request = async (options) => {
12
+ const opts = {
13
+ ..._config,
14
+ ...options,
15
+ fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
16
+ headers: mergeHeaders(_config.headers, options.headers),
17
+ serializedBody: undefined,
18
+ };
19
+ if (opts.security) {
20
+ await setAuthParams({
21
+ ...opts,
22
+ security: opts.security,
23
+ });
24
+ }
25
+ if (opts.requestValidator) {
26
+ await opts.requestValidator(opts);
27
+ }
28
+ if (opts.body && opts.bodySerializer) {
29
+ opts.serializedBody = opts.bodySerializer(opts.body);
30
+ }
31
+ // remove Content-Type header if body is empty to avoid sending invalid requests
32
+ if (opts.serializedBody === undefined || opts.serializedBody === '') {
33
+ opts.headers.delete('Content-Type');
34
+ }
35
+ const url = buildUrl(opts);
36
+ const requestInit = {
37
+ redirect: 'follow',
38
+ ...opts,
39
+ body: opts.serializedBody,
40
+ };
41
+ let request = new Request(url, requestInit);
42
+ for (const fn of interceptors.request._fns) {
43
+ if (fn) {
44
+ request = await fn(request, opts);
45
+ }
46
+ }
47
+ // fetch must be assigned here, otherwise it would throw the error:
48
+ // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
49
+ const _fetch = opts.fetch;
50
+ let response = await _fetch(request);
51
+ for (const fn of interceptors.response._fns) {
52
+ if (fn) {
53
+ response = await fn(response, request, opts);
54
+ }
55
+ }
56
+ const result = {
57
+ request,
58
+ response,
59
+ };
60
+ if (response.ok) {
61
+ if (response.status === 204 ||
62
+ response.headers.get('Content-Length') === '0') {
63
+ return opts.responseStyle === 'data'
64
+ ? {}
65
+ : {
66
+ data: {},
67
+ ...result,
68
+ };
69
+ }
70
+ const parseAs = (opts.parseAs === 'auto'
71
+ ? getParseAs(response.headers.get('Content-Type'))
72
+ : opts.parseAs) ?? 'json';
73
+ let data;
74
+ switch (parseAs) {
75
+ case 'arrayBuffer':
76
+ case 'blob':
77
+ case 'formData':
78
+ case 'json':
79
+ case 'text':
80
+ data = await response[parseAs]();
81
+ break;
82
+ case 'stream':
83
+ return opts.responseStyle === 'data'
84
+ ? response.body
85
+ : {
86
+ data: response.body,
87
+ ...result,
88
+ };
89
+ }
90
+ if (parseAs === 'json') {
91
+ if (opts.responseValidator) {
92
+ await opts.responseValidator(data);
93
+ }
94
+ if (opts.responseTransformer) {
95
+ data = await opts.responseTransformer(data);
96
+ }
97
+ }
98
+ return opts.responseStyle === 'data'
99
+ ? data
100
+ : {
101
+ data,
102
+ ...result,
103
+ };
104
+ }
105
+ const textError = await response.text();
106
+ let jsonError;
107
+ try {
108
+ jsonError = JSON.parse(textError);
109
+ }
110
+ catch {
111
+ // noop
112
+ }
113
+ const error = jsonError ?? textError;
114
+ let finalError = error;
115
+ for (const fn of interceptors.error._fns) {
116
+ if (fn) {
117
+ finalError = (await fn(error, response, request, opts));
118
+ }
119
+ }
120
+ finalError = finalError || {};
121
+ if (opts.throwOnError) {
122
+ throw finalError;
123
+ }
124
+ // TODO: we probably want to return error and improve types
125
+ return opts.responseStyle === 'data'
126
+ ? undefined
127
+ : {
128
+ error: finalError,
129
+ ...result,
130
+ };
131
+ };
132
+ return {
133
+ buildUrl,
134
+ connect: (options) => request({ ...options, method: 'CONNECT' }),
135
+ delete: (options) => request({ ...options, method: 'DELETE' }),
136
+ get: (options) => request({ ...options, method: 'GET' }),
137
+ getConfig,
138
+ head: (options) => request({ ...options, method: 'HEAD' }),
139
+ interceptors,
140
+ options: (options) => request({ ...options, method: 'OPTIONS' }),
141
+ patch: (options) => request({ ...options, method: 'PATCH' }),
142
+ post: (options) => request({ ...options, method: 'POST' }),
143
+ put: (options) => request({ ...options, method: 'PUT' }),
144
+ request,
145
+ setConfig,
146
+ trace: (options) => request({ ...options, method: 'TRACE' }),
147
+ };
148
+ };
149
+ //# sourceMappingURL=client.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.gen.js","sourceRoot":"","sources":["../../../../src/generated/cart/client/client.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAGrD,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;AAOrB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAiB,EAAE,EAAU,EAAE;IAC1D,IAAI,OAAO,GAAG,YAAY,CAAC,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IAEnD,MAAM,SAAS,GAAG,GAAW,EAAE,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAEjD,MAAM,SAAS,GAAG,CAAC,MAAc,EAAU,EAAE;QAC3C,OAAO,GAAG,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,SAAS,EAAE,CAAC;IACr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AO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QACxD,OAAO;QACP,SAAS;QACT,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;KAC7D,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export type { Auth } from '../core/auth.gen';
2
+ export type { QuerySerializerOptions } from '../core/bodySerializer.gen';
3
+ export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen';
4
+ export { buildClientParams } from '../core/params.gen';
5
+ export { createClient } from './client.gen';
6
+ export type { Client, ClientOptions, Config, CreateClientConfig, Options, OptionsLegacyParser, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from './types.gen';
7
+ export { createConfig, mergeHeaders } from './utils.gen';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/cart/client/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EACV,MAAM,EACN,aAAa,EACb,MAAM,EACN,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from '../core/bodySerializer.gen';
3
+ export { buildClientParams } from '../core/params.gen';
4
+ export { createClient } from './client.gen';
5
+ export { createConfig, mergeHeaders } from './utils.gen';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/cart/client/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAIrD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAc5C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}