@autobe/agent 0.16.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (703) hide show
  1. package/lib/AutoBeMockAgent.d.ts +5 -5
  2. package/lib/agent/src/AutoBeAgent.d.ts +52 -0
  3. package/lib/{AutoBeAgent.js → agent/src/AutoBeAgent.js} +37 -9
  4. package/lib/agent/src/AutoBeAgent.js.map +1 -0
  5. package/lib/agent/src/AutoBeAgentBase.d.ts +18 -0
  6. package/lib/agent/src/AutoBeAgentBase.js.map +1 -0
  7. package/lib/agent/src/AutoBeMockAgent.d.ts +15 -0
  8. package/lib/{AutoBeMockAgent.js → agent/src/AutoBeMockAgent.js} +34 -4
  9. package/lib/agent/src/AutoBeMockAgent.js.map +1 -0
  10. package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +34 -0
  11. package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -0
  12. package/lib/agent/src/context/AutoBeContext.d.ts +41 -0
  13. package/lib/agent/src/context/AutoBeContext.js.map +1 -0
  14. package/lib/agent/src/context/AutoBeState.d.ts +8 -0
  15. package/lib/agent/src/context/AutoBeState.js.map +1 -0
  16. package/lib/agent/src/context/AutoBeTokenUsage.d.ts +173 -0
  17. package/lib/agent/src/context/AutoBeTokenUsage.js +188 -0
  18. package/lib/agent/src/context/AutoBeTokenUsage.js.map +1 -0
  19. package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +116 -0
  20. package/lib/agent/src/context/AutoBeTokenUsageComponent.js +137 -0
  21. package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -0
  22. package/lib/agent/src/context/IAutoBeApplication.d.ts +107 -0
  23. package/lib/agent/src/context/IAutoBeApplication.js.map +1 -0
  24. package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +4 -0
  25. package/lib/agent/src/context/IAutoBeApplicationProps.js.map +1 -0
  26. package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +4 -0
  27. package/lib/agent/src/context/IAutoBeApplicationResult.js.map +1 -0
  28. package/lib/agent/src/context/assertSchemaModel.d.ts +2 -0
  29. package/lib/agent/src/context/assertSchemaModel.js.map +1 -0
  30. package/lib/agent/src/factory/createAgenticaHistory.d.ts +7 -0
  31. package/lib/agent/src/factory/createAgenticaHistory.js.map +1 -0
  32. package/lib/agent/src/factory/createAutoBeApplication.d.ts +7 -0
  33. package/lib/{factory → agent/src/factory}/createAutoBeApplication.js +1 -1
  34. package/lib/agent/src/factory/createAutoBeApplication.js.map +1 -0
  35. package/lib/agent/src/factory/createAutoBeContext.d.ts +19 -0
  36. package/lib/agent/src/factory/createAutoBeContext.js +214 -0
  37. package/lib/agent/src/factory/createAutoBeContext.js.map +1 -0
  38. package/lib/agent/src/factory/createAutoBeState.d.ts +3 -0
  39. package/lib/agent/src/factory/createAutoBeState.js.map +1 -0
  40. package/lib/agent/src/factory/getAutoBeGenerated.d.ts +4 -0
  41. package/lib/{factory → agent/src/factory}/getAutoBeGenerated.js +17 -14
  42. package/lib/agent/src/factory/getAutoBeGenerated.js.map +1 -0
  43. package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +7 -0
  44. package/lib/agent/src/factory/getAutoBeRealizeGenerated.js +27 -0
  45. package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +1 -0
  46. package/lib/agent/src/factory/index.d.ts +1 -0
  47. package/lib/agent/src/factory/index.js.map +1 -0
  48. package/lib/agent/src/index.d.ts +6 -0
  49. package/lib/{index.js → agent/src/index.js} +1 -0
  50. package/lib/agent/src/index.js.map +1 -0
  51. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +4 -0
  52. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js +46 -0
  53. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js.map +1 -0
  54. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
  55. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +30 -0
  56. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
  57. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +4 -0
  58. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +49 -0
  59. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
  60. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +5 -0
  61. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js +64 -0
  62. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
  63. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +6 -0
  64. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +265 -0
  65. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
  66. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
  67. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +727 -0
  68. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
  69. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +8 -0
  70. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +242 -0
  71. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
  72. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
  73. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js +3 -0
  74. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
  75. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
  76. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +3 -0
  77. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
  78. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
  79. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js +3 -0
  80. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
  81. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +2 -0
  82. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
  83. package/lib/agent/src/orchestrate/index.d.ts +5 -0
  84. package/lib/agent/src/orchestrate/index.js.map +1 -0
  85. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +3 -0
  86. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
  87. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
  88. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +34 -0
  89. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
  90. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +4 -0
  91. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +62 -0
  92. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
  93. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +5 -0
  94. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +49 -0
  95. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
  96. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +3 -0
  97. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +28 -0
  98. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
  99. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +4 -0
  100. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +51 -0
  101. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
  102. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
  103. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +35 -0
  104. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
  105. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +3 -0
  106. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
  107. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +4 -0
  108. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +28 -0
  109. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
  110. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
  111. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +53 -0
  112. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
  113. package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +5 -0
  114. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterface.js +12 -24
  115. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -0
  116. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
  117. package/lib/{orchestrate/interface/orchestrateInterfaceOperations.js → agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js} +227 -562
  118. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
  119. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -0
  120. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceComplement.js +20 -32
  121. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
  122. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +5 -0
  123. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceEndpoints.js +40 -41
  124. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
  125. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +4 -0
  126. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceGroups.js +15 -25
  127. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
  128. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +4 -0
  129. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +1768 -0
  130. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
  131. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +5 -0
  132. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1317 -0
  133. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
  134. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +4 -0
  135. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceSchemas.js +59 -71
  136. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
  137. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
  138. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +467 -0
  139. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
  140. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
  141. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +3 -0
  142. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
  143. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +55 -0
  144. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
  145. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +24 -0
  146. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
  147. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +108 -0
  148. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
  149. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +126 -0
  150. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
  151. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +96 -0
  152. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +3 -0
  153. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
  154. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +75 -0
  155. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
  156. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +91 -0
  157. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +3 -0
  158. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
  159. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +6 -0
  160. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
  161. package/lib/agent/src/orchestrate/internal/IProgress.d.ts +4 -0
  162. package/lib/agent/src/orchestrate/internal/IProgress.js +3 -0
  163. package/lib/agent/src/orchestrate/internal/IProgress.js.map +1 -0
  164. package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaComponentsHistories.d.ts +1 -1
  165. package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaComponentsHistories.js +1 -1
  166. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
  167. package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaCorrectHistories.js +1 -1
  168. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
  169. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
  170. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +59 -0
  171. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
  172. package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaSchemaHistories.d.ts +1 -1
  173. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +48 -0
  174. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
  175. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +5 -0
  176. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrisma.js +37 -40
  177. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -0
  178. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +5 -0
  179. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaComponent.js +164 -58
  180. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
  181. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +4 -0
  182. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaCorrect.js +130 -92
  183. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
  184. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
  185. package/lib/{orchestrate/prisma/orchestratePrismaSchemas.js → agent/src/orchestrate/prisma/orchestratePrismaReview.js} +197 -328
  186. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
  187. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +5 -0
  188. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js +1625 -0
  189. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
  190. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +121 -0
  191. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js +3 -0
  192. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
  193. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
  194. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js +3 -0
  195. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
  196. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
  197. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js +3 -0
  198. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
  199. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +99 -0
  200. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js +3 -0
  201. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
  202. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +5 -0
  203. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
  204. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
  205. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +40 -0
  206. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
  207. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  208. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +80 -0
  209. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
  210. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +7 -0
  211. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.js.map +1 -0
  212. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +13 -0
  213. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +32 -0
  214. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
  215. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +11 -0
  216. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +160 -0
  217. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
  218. package/lib/agent/src/orchestrate/realize/internal/compile.d.ts +7 -0
  219. package/lib/agent/src/orchestrate/realize/internal/compile.js +61 -0
  220. package/lib/agent/src/orchestrate/realize/internal/compile.js.map +1 -0
  221. package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +5 -0
  222. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +113 -0
  223. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -0
  224. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +10 -0
  225. package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorization.js +84 -70
  226. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
  227. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +4 -0
  228. package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +66 -52
  229. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
  230. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -0
  231. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +351 -0
  232. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
  233. package/lib/{orchestrate/realize/orchestrateRealizePlanner.d.ts → agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts} +5 -3
  234. package/lib/{orchestrate/realize/orchestrateRealizePlanner.js → agent/src/orchestrate/realize/orchestrateRealizeScenario.js} +14 -24
  235. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -0
  236. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +9 -0
  237. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +340 -0
  238. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
  239. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +92 -0
  240. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
  241. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +27 -0
  242. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
  243. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +345 -0
  244. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
  245. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +56 -0
  246. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +1 -0
  247. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +2 -0
  248. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +1 -0
  249. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.d.ts +79 -0
  250. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js +3 -0
  251. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js.map +1 -0
  252. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
  253. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js +3 -0
  254. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +1 -0
  255. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +276 -0
  256. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js +3 -0
  257. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
  258. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +5 -0
  259. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
  260. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +5 -0
  261. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
  262. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +4 -0
  263. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
  264. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +8 -0
  265. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
  266. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +3 -0
  267. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
  268. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +4 -0
  269. package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/replaceImportStatements.js +1 -0
  270. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
  271. package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +2 -0
  272. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -0
  273. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +1 -0
  274. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  275. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
  276. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  277. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
  278. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  279. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.d.ts +1 -1
  280. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
  281. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.d.ts +1 -1
  282. package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js.map +1 -0
  283. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +3 -0
  284. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +56 -0
  285. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
  286. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestWriteHistories.d.ts +1 -1
  287. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +179 -0
  288. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
  289. package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +5 -0
  290. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTest.js +12 -30
  291. package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -0
  292. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +5 -0
  293. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestCorrect.js +27 -43
  294. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
  295. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +4 -0
  296. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +858 -0
  297. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -0
  298. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +5 -0
  299. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestWrite.js +53 -54
  300. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -0
  301. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
  302. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  303. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
  304. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  305. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +134 -0
  306. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
  307. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +7 -0
  308. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
  309. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +113 -0
  310. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  311. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
  312. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  313. package/lib/agent/src/structures/IAutoBeConfig.d.ts +73 -0
  314. package/lib/agent/src/structures/IAutoBeConfig.js.map +1 -0
  315. package/lib/agent/src/structures/IAutoBeProps.d.ts +109 -0
  316. package/lib/agent/src/structures/IAutoBeProps.js.map +1 -0
  317. package/lib/agent/src/structures/IAutoBeVendor.d.ts +87 -0
  318. package/lib/agent/src/structures/IAutoBeVendor.js.map +1 -0
  319. package/lib/agent/src/utils/arrayToRecord.d.ts +17 -0
  320. package/lib/agent/src/utils/arrayToRecord.js.map +1 -0
  321. package/lib/agent/src/utils/backoffRetry.d.ts +22 -0
  322. package/lib/agent/src/utils/backoffRetry.js.map +1 -0
  323. package/lib/agent/src/utils/divideArray.d.ts +4 -0
  324. package/lib/agent/src/utils/divideArray.js.map +1 -0
  325. package/lib/agent/src/utils/emplaceMap.d.ts +1 -0
  326. package/lib/agent/src/utils/emplaceMap.js.map +1 -0
  327. package/lib/{orchestrate/realize/RealizePipe.d.ts → agent/src/utils/pipe.d.ts} +1 -1
  328. package/lib/agent/src/utils/pipe.js.map +1 -0
  329. package/lib/constants/AutoBeSystemPromptConstant.d.ts +19 -17
  330. package/lib/context/AutoBeContext.d.ts +31 -8
  331. package/lib/context/AutoBeTokenUsage.d.ts +168 -11
  332. package/lib/context/AutoBeTokenUsageComponent.d.ts +116 -0
  333. package/lib/factory/createAutoBeContext.d.ts +19 -0
  334. package/lib/factory/getAutoBeGenerated.d.ts +1 -1
  335. package/lib/factory/getAutoBeRealizeGenerated.d.ts +7 -0
  336. package/lib/index.d.ts +1 -0
  337. package/lib/index.mjs +10629 -5867
  338. package/lib/index.mjs.map +1 -1
  339. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +153 -0
  340. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +3 -0
  341. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +1 -0
  342. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +4 -0
  343. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
  344. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +4 -0
  345. package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -1
  346. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +6 -0
  347. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
  348. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +6 -12
  349. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
  350. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
  351. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
  352. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
  353. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +2 -1
  354. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
  355. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
  356. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
  357. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +1 -1
  358. package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +1 -1
  359. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +5 -0
  360. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
  361. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
  362. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +2 -1
  363. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +6 -2
  364. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +96 -0
  365. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +91 -0
  366. package/lib/orchestrate/internal/IProgress.d.ts +4 -0
  367. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +3 -0
  368. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +3 -0
  369. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
  370. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +3 -0
  371. package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
  372. package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
  373. package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
  374. package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +1 -1
  375. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +121 -0
  376. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
  377. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
  378. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +99 -0
  379. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
  380. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  381. package/lib/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +7 -0
  382. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +13 -0
  383. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +11 -0
  384. package/lib/orchestrate/realize/internal/compile.d.ts +7 -0
  385. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -0
  386. package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +91 -0
  387. package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +9 -0
  388. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +10 -3
  389. package/lib/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.d.ts +79 -0
  390. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
  391. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +276 -0
  392. package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +4 -0
  393. package/lib/orchestrate/test/histories/transformTestHistories.d.ts +3 -0
  394. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +3 -0
  395. package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +8 -0
  396. package/lib/orchestrate/test/orchestrateTestScenario.d.ts +2 -2
  397. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +25 -24
  398. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -1
  399. package/package.json +10 -10
  400. package/src/AutoBeAgent.ts +45 -10
  401. package/src/AutoBeMockAgent.ts +41 -11
  402. package/src/constants/AutoBeSystemPromptConstant.ts +19 -17
  403. package/src/context/AutoBeContext.ts +60 -7
  404. package/src/context/AutoBeTokenUsage.ts +260 -54
  405. package/src/context/AutoBeTokenUsageComponent.ts +198 -0
  406. package/src/factory/createAutoBeApplication.ts +4 -12
  407. package/src/factory/createAutoBeContext.ts +256 -0
  408. package/src/factory/getAutoBeGenerated.ts +17 -24
  409. package/src/factory/getAutoBeRealizeGenerated.ts +30 -0
  410. package/src/index.ts +1 -0
  411. package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +53 -0
  412. package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +34 -0
  413. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +56 -0
  414. package/src/orchestrate/analyze/orchestrateAnalyze.ts +61 -109
  415. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +89 -0
  416. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +123 -0
  417. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +51 -52
  418. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +108 -0
  419. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +85 -0
  420. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +71 -0
  421. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +40 -0
  422. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +27 -0
  423. package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +45 -22
  424. package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +43 -0
  425. package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +63 -0
  426. package/src/orchestrate/interface/orchestrateInterface.ts +14 -23
  427. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +106 -0
  428. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +27 -44
  429. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +28 -34
  430. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +15 -32
  431. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +207 -103
  432. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +84 -0
  433. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +72 -82
  434. package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +143 -0
  435. package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +49 -0
  436. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +2 -1
  437. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +6 -2
  438. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +102 -0
  439. package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +98 -0
  440. package/src/orchestrate/internal/IProgress.ts +4 -0
  441. package/src/orchestrate/prisma/{transformPrismaComponentsHistories.ts → histories/transformPrismaComponentsHistories.ts} +2 -2
  442. package/src/orchestrate/prisma/{transformPrismaCorrectHistories.ts → histories/transformPrismaCorrectHistories.ts} +1 -1
  443. package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +66 -0
  444. package/src/orchestrate/prisma/{transformPrismaSchemaHistories.ts → histories/transformPrismaSchemaHistories.ts} +3 -3
  445. package/src/orchestrate/prisma/orchestratePrisma.ts +73 -67
  446. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +27 -112
  447. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +100 -202
  448. package/src/orchestrate/prisma/orchestratePrismaReview.ts +118 -0
  449. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +137 -210
  450. package/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.ts +125 -0
  451. package/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.ts +144 -0
  452. package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +108 -0
  453. package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +101 -0
  454. package/src/orchestrate/realize/{transformRealizeAuthorization.ts → histories/transformRealizeAuthorization.ts} +14 -10
  455. package/src/orchestrate/realize/{transformRealizeAuthorizationCorrectHistories.ts → histories/transformRealizeAuthorizationCorrectHistories.ts} +9 -7
  456. package/src/orchestrate/realize/{transformRealizeCoderHistories.ts → histories/transformRealizeCoderHistories.ts} +6 -6
  457. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +47 -0
  458. package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +184 -0
  459. package/src/orchestrate/realize/internal/compile.ts +84 -0
  460. package/src/orchestrate/realize/orchestrateRealize.ts +118 -40
  461. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +45 -57
  462. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +19 -41
  463. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +118 -0
  464. package/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts} +15 -15
  465. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +120 -0
  466. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +11 -3
  467. package/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.ts +81 -0
  468. package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +43 -0
  469. package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +282 -0
  470. package/src/orchestrate/realize/utils/replaceImportStatements.ts +3 -1
  471. package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +5 -9
  472. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +23 -22
  473. package/src/orchestrate/test/{transformTestCorrectHistories.ts → histories/transformTestCorrectHistories.ts} +2 -2
  474. package/src/orchestrate/test/{transformTestHistories.ts → histories/transformTestHistories.ts} +1 -1
  475. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +70 -0
  476. package/src/orchestrate/test/{transformTestWriteHistories.ts → histories/transformTestWriteHistories.ts} +3 -3
  477. package/src/orchestrate/test/orchestrateTest.ts +11 -32
  478. package/src/orchestrate/test/orchestrateTestCorrect.ts +32 -62
  479. package/src/orchestrate/test/orchestrateTestScenario.ts +95 -158
  480. package/src/orchestrate/test/orchestrateTestWrite.ts +48 -71
  481. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +25 -24
  482. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +3 -1
  483. package/lib/AutoBeAgent.js.map +0 -1
  484. package/lib/AutoBeAgentBase.js.map +0 -1
  485. package/lib/AutoBeMockAgent.js.map +0 -1
  486. package/lib/constants/AutoBeSystemPromptConstant.js.map +0 -1
  487. package/lib/context/AutoBeContext.js.map +0 -1
  488. package/lib/context/AutoBeState.js.map +0 -1
  489. package/lib/context/AutoBeTokenUsage.js +0 -61
  490. package/lib/context/AutoBeTokenUsage.js.map +0 -1
  491. package/lib/context/IAutoBeApplication.js.map +0 -1
  492. package/lib/context/IAutoBeApplicationProps.js.map +0 -1
  493. package/lib/context/IAutoBeApplicationResult.js.map +0 -1
  494. package/lib/context/assertSchemaModel.js.map +0 -1
  495. package/lib/factory/createAgenticaHistory.js.map +0 -1
  496. package/lib/factory/createAutoBeApplication.js.map +0 -1
  497. package/lib/factory/createAutoBeState.js.map +0 -1
  498. package/lib/factory/getAutoBeGenerated.js.map +0 -1
  499. package/lib/factory/index.js.map +0 -1
  500. package/lib/index.js.map +0 -1
  501. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.d.ts +0 -45
  502. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js +0 -27
  503. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js.map +0 -1
  504. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.d.ts +0 -9
  505. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js +0 -3
  506. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js.map +0 -1
  507. package/lib/orchestrate/analyze/orchestrateAnalyze.js +0 -125
  508. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
  509. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.d.ts +0 -5
  510. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +0 -561
  511. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +0 -1
  512. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.d.ts +0 -12
  513. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +0 -395
  514. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +0 -1
  515. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +0 -347
  516. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
  517. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.d.ts +0 -68
  518. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js +0 -3
  519. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js.map +0 -1
  520. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.d.ts +0 -5
  521. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js +0 -27
  522. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js.map +0 -1
  523. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.d.ts +0 -12
  524. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js +0 -78
  525. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js.map +0 -1
  526. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +0 -16
  527. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +0 -79
  528. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +0 -1
  529. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  530. package/lib/orchestrate/index.js.map +0 -1
  531. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  532. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -62
  533. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  534. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -28
  535. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  536. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -28
  537. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  538. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -28
  539. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  540. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
  541. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -28
  542. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  543. package/lib/orchestrate/interface/orchestrateInterface.js.map +0 -1
  544. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
  545. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  546. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  547. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  548. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  549. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
  550. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
  551. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
  552. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
  553. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
  554. package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
  555. package/lib/orchestrate/prisma/orchestratePrisma.js.map +0 -1
  556. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
  557. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
  558. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  559. package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +0 -1
  560. package/lib/orchestrate/prisma/transformPrismaCorrectHistories.js.map +0 -1
  561. package/lib/orchestrate/prisma/transformPrismaHistories.d.ts +0 -3
  562. package/lib/orchestrate/prisma/transformPrismaHistories.js +0 -55
  563. package/lib/orchestrate/prisma/transformPrismaHistories.js.map +0 -1
  564. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +0 -48
  565. package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +0 -1
  566. package/lib/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
  567. package/lib/orchestrate/realize/RealizePipe.js +0 -14
  568. package/lib/orchestrate/realize/RealizePipe.js.map +0 -1
  569. package/lib/orchestrate/realize/orchestrateRealize.js +0 -74
  570. package/lib/orchestrate/realize/orchestrateRealize.js.map +0 -1
  571. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  572. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
  573. package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +0 -26
  574. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +0 -420
  575. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +0 -1
  576. package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +0 -1
  577. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  578. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
  579. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
  580. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
  581. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +0 -1
  582. package/lib/orchestrate/realize/transformRealizeAuthorization.d.ts +0 -4
  583. package/lib/orchestrate/realize/transformRealizeAuthorization.js +0 -39
  584. package/lib/orchestrate/realize/transformRealizeAuthorization.js.map +0 -1
  585. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  586. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js +0 -80
  587. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  588. package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +0 -7
  589. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +0 -1
  590. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
  591. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
  592. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
  593. package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
  594. package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
  595. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
  596. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +0 -11
  597. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +0 -221
  598. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +0 -1
  599. package/lib/orchestrate/test/compile/completeTestCode.js.map +0 -1
  600. package/lib/orchestrate/test/compile/filterTestFileName.js.map +0 -1
  601. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
  602. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
  603. package/lib/orchestrate/test/orchestrateTest.js.map +0 -1
  604. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
  605. package/lib/orchestrate/test/orchestrateTestScenario.js +0 -866
  606. package/lib/orchestrate/test/orchestrateTestScenario.js.map +0 -1
  607. package/lib/orchestrate/test/orchestrateTestWrite.js.map +0 -1
  608. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
  609. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
  610. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
  611. package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
  612. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
  613. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
  614. package/lib/orchestrate/test/transformTestCorrectHistories.js.map +0 -1
  615. package/lib/orchestrate/test/transformTestHistories.js.map +0 -1
  616. package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +0 -3
  617. package/lib/orchestrate/test/transformTestScenarioHistories.js +0 -100
  618. package/lib/orchestrate/test/transformTestScenarioHistories.js.map +0 -1
  619. package/lib/orchestrate/test/transformTestWriteHistories.js +0 -178
  620. package/lib/orchestrate/test/transformTestWriteHistories.js.map +0 -1
  621. package/lib/structures/IAutoBeConfig.js.map +0 -1
  622. package/lib/structures/IAutoBeProps.js.map +0 -1
  623. package/lib/structures/IAutoBeVendor.js.map +0 -1
  624. package/lib/utils/arrayToRecord.js.map +0 -1
  625. package/lib/utils/backoffRetry.js.map +0 -1
  626. package/lib/utils/divideArray.js.map +0 -1
  627. package/lib/utils/emplaceMap.js.map +0 -1
  628. package/lib/utils/enforceToolCall.d.ts +0 -3
  629. package/lib/utils/enforceToolCall.js +0 -13
  630. package/lib/utils/enforceToolCall.js.map +0 -1
  631. package/lib/utils/forceRetry.d.ts +0 -1
  632. package/lib/utils/forceRetry.js +0 -26
  633. package/lib/utils/forceRetry.js.map +0 -1
  634. package/lib/utils/pipe.js.map +0 -1
  635. package/src/orchestrate/analyze/AutoBeAnalyzeFileSystem.ts +0 -58
  636. package/src/orchestrate/analyze/AutoBeAnalyzePointer.ts +0 -10
  637. package/src/orchestrate/analyze/orchestrateAnalyzeComposer.ts +0 -112
  638. package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +0 -131
  639. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.ts +0 -75
  640. package/src/orchestrate/analyze/transformAnalyzeReviewerHistories.ts +0 -31
  641. package/src/orchestrate/analyze/transformAnalyzeWriteHistories.ts +0 -94
  642. package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +0 -96
  643. package/src/orchestrate/prisma/transformPrismaHistories.ts +0 -59
  644. package/src/orchestrate/realize/RealizePipe.ts +0 -39
  645. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +0 -182
  646. package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +0 -308
  647. package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -105
  648. package/src/utils/enforceToolCall.ts +0 -13
  649. package/src/utils/forceRetry.ts +0 -13
  650. /package/lib/{AutoBeAgentBase.js → agent/src/AutoBeAgentBase.js} +0 -0
  651. /package/lib/{constants → agent/src/constants}/AutoBeSystemPromptConstant.js +0 -0
  652. /package/lib/{context → agent/src/context}/AutoBeContext.js +0 -0
  653. /package/lib/{context → agent/src/context}/AutoBeState.js +0 -0
  654. /package/lib/{context → agent/src/context}/IAutoBeApplication.js +0 -0
  655. /package/lib/{context → agent/src/context}/IAutoBeApplicationProps.js +0 -0
  656. /package/lib/{context → agent/src/context}/IAutoBeApplicationResult.js +0 -0
  657. /package/lib/{context → agent/src/context}/assertSchemaModel.js +0 -0
  658. /package/lib/{factory → agent/src/factory}/createAgenticaHistory.js +0 -0
  659. /package/lib/{factory → agent/src/factory}/createAutoBeState.js +0 -0
  660. /package/lib/{factory → agent/src/factory}/index.js +0 -0
  661. /package/lib/{orchestrate → agent/src/orchestrate}/facade/transformFacadeStateMessage.js +0 -0
  662. /package/lib/{orchestrate → agent/src/orchestrate}/index.js +0 -0
  663. /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
  664. /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
  665. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
  666. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
  667. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
  668. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
  669. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
  670. /package/lib/{orchestrate → agent/src/orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
  671. /package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaCorrectHistories.d.ts +0 -0
  672. /package/lib/{orchestrate → agent/src/orchestrate}/realize/ProviderCodeComparator.js +0 -0
  673. /package/lib/{orchestrate/realize → agent/src/orchestrate/realize/histories}/transformRealizeCoderHistories.js +0 -0
  674. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
  675. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
  676. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeCoderApplication.js +0 -0
  677. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeCompile.js +0 -0
  678. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -0
  679. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
  680. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
  681. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
  682. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/InternalFileSystem.js +0 -0
  683. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
  684. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/completeTestCode.js +0 -0
  685. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/filterTestFileName.js +0 -0
  686. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
  687. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
  688. /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.js +0 -0
  689. /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.js +0 -0
  690. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
  691. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
  692. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
  693. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
  694. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
  695. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
  696. /package/lib/{structures → agent/src/structures}/IAutoBeConfig.js +0 -0
  697. /package/lib/{structures → agent/src/structures}/IAutoBeProps.js +0 -0
  698. /package/lib/{structures → agent/src/structures}/IAutoBeVendor.js +0 -0
  699. /package/lib/{utils → agent/src/utils}/arrayToRecord.js +0 -0
  700. /package/lib/{utils → agent/src/utils}/backoffRetry.js +0 -0
  701. /package/lib/{utils → agent/src/utils}/divideArray.js +0 -0
  702. /package/lib/{utils → agent/src/utils}/emplaceMap.js +0 -0
  703. /package/lib/{utils → agent/src/utils}/pipe.js +0 -0
@@ -45,144 +45,75 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
45
45
  return (mod && mod.__esModule) ? mod : { "default": mod };
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.orchestratePrismaSchemas = orchestratePrismaSchemas;
48
+ exports.orchestratePrismaReview = orchestratePrismaReview;
49
49
  const __typia_transform__isUniqueItems = __importStar(require("typia/lib/internal/_isUniqueItems.js"));
50
50
  const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
51
- const core_1 = require("@agentica/core");
52
51
  const typia_1 = __importDefault(require("typia"));
53
52
  const assertSchemaModel_1 = require("../../context/assertSchemaModel");
54
- const enforceToolCall_1 = require("../../utils/enforceToolCall");
55
- const forceRetry_1 = require("../../utils/forceRetry");
56
- const transformPrismaSchemaHistories_1 = require("./transformPrismaSchemaHistories");
57
- function orchestratePrismaSchemas(ctx, components) {
53
+ const transformPrismaReviewHistories_1 = require("./histories/transformPrismaReviewHistories");
54
+ function orchestratePrismaReview(ctx, application, schemas, componentList) {
58
55
  return __awaiter(this, void 0, void 0, function* () {
59
- const start = new Date();
60
- const total = components
61
- .map((c) => c.tables.length)
62
- .reduce((x, y) => x + y, 0);
63
- let completed = 0;
64
- return yield Promise.all(components.map((comp) => __awaiter(this, void 0, void 0, function* () {
65
- var _a, _b;
66
- const targetComponent = comp;
67
- const otherComponents = components.filter((y) => comp !== y);
68
- const result = yield (0, forceRetry_1.forceRetry)(() => process(ctx, targetComponent, otherComponents));
69
- const event = {
70
- type: "prismaSchemas",
71
- created_at: start.toISOString(),
72
- file: {
73
- filename: comp.filename,
74
- namespace: comp.namespace,
75
- models: result.models,
76
- },
77
- completed: (completed += comp.tables.length),
78
- total,
79
- step: (_b = (_a = ctx.state().analyze) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
80
- };
81
- ctx.dispatch(event);
82
- return event;
83
- })));
56
+ const progress = {
57
+ completed: 0,
58
+ total: componentList.length,
59
+ };
60
+ return yield Promise.all(componentList.map((component) => step(ctx, application, schemas, component, progress)));
84
61
  });
85
62
  }
86
- function process(ctx, targetComponent, otherComponents) {
63
+ function step(ctx, application, schemas, component, progress) {
87
64
  return __awaiter(this, void 0, void 0, function* () {
88
- var _a;
65
+ var _a, _b, _c, _d;
66
+ const start = new Date();
89
67
  const pointer = {
90
68
  value: null,
91
69
  };
92
- const agentica = new core_1.MicroAgentica({
93
- model: ctx.model,
94
- vendor: ctx.vendor,
95
- config: Object.assign(Object.assign({}, ((_a = ctx.config) !== null && _a !== void 0 ? _a : {})), { executor: {
96
- describe: null,
97
- } }),
98
- histories: (0, transformPrismaSchemaHistories_1.transformPrismaSchemaHistories)(ctx.state().analyze.files, targetComponent, otherComponents),
99
- controllers: [
100
- createApplication(ctx, {
101
- targetComponent,
102
- otherComponents,
103
- build: (next) => {
104
- pointer.value = next;
105
- },
106
- }),
107
- ],
108
- });
109
- (0, enforceToolCall_1.enforceToolCall)(agentica);
110
- yield agentica.conversate("Make prisma schema file please").finally(() => {
111
- const tokenUsage = agentica.getTokenUsage();
112
- ctx.usage().record(tokenUsage, ["prisma"]);
70
+ const { tokenUsage } = yield ctx.conversate({
71
+ source: "prismaReview",
72
+ histories: (0, transformPrismaReviewHistories_1.transformPrismaReviewHistories)({
73
+ analysis: (_b = (_a = ctx
74
+ .state()
75
+ .analyze) === null || _a === void 0 ? void 0 : _a.files.map((file) => ({ [file.filename]: file.content })).reduce((acc, cur) => {
76
+ return Object.assign(acc, cur);
77
+ }, {})) !== null && _b !== void 0 ? _b : {},
78
+ application,
79
+ schemas,
80
+ component,
81
+ }),
82
+ controller: createController(ctx, {
83
+ build: (next) => {
84
+ pointer.value = next;
85
+ },
86
+ }),
87
+ enforceFunctionCall: true,
88
+ message: "Please review the Prisma schema file.",
113
89
  });
114
90
  if (pointer.value === null)
115
- throw new Error("Unreachable code: Prisma Schema not generated");
116
- return pointer.value;
91
+ throw new Error("Failed to review the Prisma schema.");
92
+ const event = {
93
+ type: "prismaReview",
94
+ created_at: start.toISOString(),
95
+ filename: component.filename,
96
+ review: pointer.value.review,
97
+ plan: pointer.value.plan,
98
+ modifications: pointer.value.modifications,
99
+ tokenUsage,
100
+ completed: ++progress.completed,
101
+ total: progress.total,
102
+ step: (_d = (_c = ctx.state().analyze) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 0,
103
+ };
104
+ ctx.dispatch(event);
105
+ return event;
117
106
  });
118
107
  }
119
- function createApplication(ctx, props) {
108
+ function createController(ctx, props) {
120
109
  (0, assertSchemaModel_1.assertSchemaModel)(ctx.model);
121
110
  const application = collection[ctx.model];
122
- // application.functions[0].validate = (
123
- // input: unknown,
124
- // ): IValidation<IMakePrismaSchemaFileProps> => {
125
- // const result: IValidation<IMakePrismaSchemaFileProps> =
126
- // typia.validate<IMakePrismaSchemaFileProps>(input);
127
- // if (result.success === false) return result;
128
- // const everyModels: AutoBePrisma.IModel[] = result.data.models;
129
- // result.data.models = result.data.models.filter((m) =>
130
- // props.otherComponents.every((oc) => oc.tables.includes(m.name) === false),
131
- // );
132
- // const expected: string[] = props.targetComponent.tables;
133
- // const actual: string[] = result.data.models.map((m) => m.name);
134
- // const missed: string[] = expected.filter(
135
- // (x) => actual.includes(x) === false,
136
- // );
137
- // if (missed.length === 0) return result;
138
- // ctx.dispatch({
139
- // type: "prismaInsufficient",
140
- // created_at: new Date().toISOString(),
141
- // component: props.targetComponent,
142
- // actual: everyModels,
143
- // missed,
144
- // tablesToCreate: result.data.tablesToCreate,
145
- // validationReview: result.data.validationReview,
146
- // confirmedTables: result.data.confirmedTables,
147
- // });
148
- // return {
149
- // success: false,
150
- // data: result.data,
151
- // errors: [
152
- // {
153
- // path: "$input.file.models",
154
- // value: result.data.models,
155
- // expected: `Array<AutoBePrisma.IModel>`,
156
- // description: [
157
- // "You missed some tables from the current domain's component.",
158
- // "",
159
- // "Look at the following details to fix the schemas. Never forget to",
160
- // "compose the `missed` tables at the next function calling.",
161
- // "",
162
- // "- filename: current domain's filename",
163
- // "- namespace: current domain's namespace",
164
- // "- expected: expected tables in the current domain",
165
- // "- actual: actual tables you made",
166
- // "- missed: tables you have missed, and you have to compose again",
167
- // "",
168
- // JSON.stringify({
169
- // filename: props.targetComponent.filename,
170
- // namespace: props.targetComponent.namespace,
171
- // expected,
172
- // actual,
173
- // missed,
174
- // }),
175
- // ].join("\n"),
176
- // },
177
- // ],
178
- // };
179
- // };
180
111
  return {
181
112
  protocol: "class",
182
- name: "Prisma Generator",
113
+ name: "Prisma Schema Review",
183
114
  application,
184
115
  execute: {
185
- makePrismaSchemaFile: (next) => {
116
+ reviewSchemaFile: (next) => {
186
117
  props.build(next);
187
118
  },
188
119
  },
@@ -196,31 +127,21 @@ const claude = {
196
127
  },
197
128
  functions: [
198
129
  {
199
- name: "makePrismaSchemaFile",
130
+ name: "reviewSchemaFile",
200
131
  parameters: {
201
- description: " Properties containing the file\n\n------------------------------\n\nCurrent Type: {@link IMakePrismaSchemaFileProps}",
132
+ description: "Current Type: {@link IAutoBePrismaReviewApplication.IProps}",
202
133
  type: "object",
203
134
  properties: {
204
- tablesToCreate: {
205
- description: "STEP 1: First enumeration of tables that must be created\n\nList all table names that need to be created based on the\n`targetComponent.tables`. This should be an exact copy of the\n`targetComponent.tables` array.\n\nExample: [\"shopping_goods\", \"shopping_goods_options\"]",
206
- type: "array",
207
- items: {
208
- type: "string"
209
- }
210
- },
211
- validationReview: {
212
- description: "STEP 2: Validation review of the first enumeration\n\nCompare `tablesToCreate` against `targetComponent.tables` and\n`otherComponents[].tables`. Write a review statement that validates:\n\n- All tables from `targetComponent.tables` are included\n- No tables from `otherComponents[].tables` are included\n- Additional tables (if any) are for M:N junction relationships or\n domain-specific needs\n- No forbidden tables from other domains are included\n\nExample: \"VALIDATION PASSED: All required tables from\n`targetComponent.tables` included: shopping_goods, shopping_goods_options.\nFORBIDDEN CHECK: No tables from `otherComponents` included\n(shopping_customers, shopping_sellers are correctly excluded). Additional\ntables: none needed for this domain.\"",
135
+ review: {
136
+ description: "Comprehensive review analysis of the proposed schema modifications.\n\nContains the AI agent's detailed evaluation of the schema changes,\nincluding validation of normalization compliance, relationship integrity,\nindex optimization, and business requirement alignment. The review\nidentifies potential issues and confirms adherence to best practices.\n\n**Review Dimensions:**\n\n- **Normalization Validation**: Confirms 3NF compliance and proper data\n structure\n- **Relationship Integrity**: Validates foreign key references and\n cardinality\n- **Performance Optimization**: Reviews indexing strategy and query\n patterns\n- **Business Logic Alignment**: Ensures schema supports all use cases\n- **Naming Conventions**: Verifies consistent naming patterns\n- **Data Type Consistency**: Confirms appropriate field types\n- **Temporal Field Handling**: Validates audit trail implementation\n\n**Example:**\n\n \"After reviewing the schema modifications:\n 1. All tables properly implement UUID primary keys\n 2. Foreign key relationships correctly reference existing models\n 3. Composite indexes optimize for common query patterns\n 4. Snapshot tables include proper temporal fields\n 5. Materialized views (mv_) contain appropriate denormalization\n The schema follows all best practices and is ready for implementation.\"",
213
137
  type: "string"
214
138
  },
215
- confirmedTables: {
216
- description: "STEP 3: Second enumeration of tables to create\n\nAfter validation, re-list the tables that will be created. This should be\nidentical to `tablesToCreate` if validation passed. This serves as the\nfinal confirmed list before model creation.\n\nExample: [\"shopping_goods\", \"shopping_goods_options\"]",
217
- type: "array",
218
- items: {
219
- type: "string"
220
- }
139
+ plan: {
140
+ description: "Strategic database design plan that guided the schema creation.\n\nContains the original planning document that outlines the database\narchitecture strategy, including table structures, relationships,\nnormalization approach, and business requirement mapping. This plan\nserves as the blueprint for validating the implemented schema.\n\n**Planning Components:**\n\n- **Business Requirements**: Mapping of business needs to database\n structures\n- **Table Design**: Entity definitions and attribute specifications\n- **Relationship Strategy**: Cardinality and referential integrity planning\n- **Normalization Approach**: Application of 1NF, 2NF, 3NF principles\n- **Performance Considerations**: Index strategy and query optimization\n- **Snapshot Architecture**: Temporal data handling and audit requirements\n- **Materialized Views**: Denormalization strategy for performance\n\n**Example:**\n\n \"Database Design Strategy:\n Component: Sales Domain\n Tables: shopping_sales, shopping_sale_snapshots, shopping_sale_units\n\n Design Approach:\n - Normalize product catalog to 3NF for data integrity\n - Implement snapshot pattern for price history tracking\n - Create composite indexes for product search queries\n - Use materialized views for sales analytics dashboards\"",
141
+ type: "string"
221
142
  },
222
- models: {
223
- description: "STEP 4: Array of Prisma models (database tables) within the domain\n\nCreate exactly one model for each table in `confirmedTables`. Each model\nrepresents a business entity or concept within the namespace. Models can\nreference each other through foreign key relationships.\n\nThe `models` array length must equal `confirmedTables.length`. Each\n`model.name` must match an entry in `confirmedTables`.",
143
+ modifications: {
144
+ description: "Array of Prisma models that have been modified based on review feedback.\n\nContains ONLY the models that required changes, not the entire schema.\nEach model represents a complete table definition with all fields,\nrelationships, indexes, and documentation. These modifications will be\napplied to the models to produce the final implementation.\n\n**Model Requirements:**\n\n- **Complete Models**: Each entry must be a complete model definition\n- **Targeted Changes**: Only includes models that need modifications\n- **AST Compliance**: Follows AutoBePrisma.IModel interface structure\n- **Relationship Integrity**: All foreign keys reference valid models\n- **Index Optimization**: Strategic indexes without redundancy\n- **Documentation**: Comprehensive English descriptions\n\n**Notes:**\n\n- Models not included in this array remain unchanged from the models\n- The final schema merges these modifications with the original models\n- All modifications must resolve issues identified in the review",
224
145
  type: "array",
225
146
  items: {
226
147
  $ref: "#/$defs/AutoBePrisma.IModel"
@@ -228,10 +149,9 @@ const claude = {
228
149
  }
229
150
  },
230
151
  required: [
231
- "tablesToCreate",
232
- "validationReview",
233
- "confirmedTables",
234
- "models"
152
+ "review",
153
+ "plan",
154
+ "modifications"
235
155
  ],
236
156
  additionalProperties: false,
237
157
  $defs: {
@@ -240,12 +160,12 @@ const claude = {
240
160
  type: "object",
241
161
  properties: {
242
162
  name: {
243
- description: "Name of the Prisma model (database table name).\n\nShould follow snake_case convention with domain prefix. Examples:\n\"shopping_customers\", \"shopping_sale_snapshots\", \"bbs_articles\"\nMaterialized views use \"mv_\" prefix: \"mv_shopping_sale_last_snapshots\"",
163
+ description: "Name of the Prisma model (database table name).\n\nMUST use snake_case naming convention. Examples: \"shopping_customers\",\n\"shopping_sale_snapshots\", \"bbs_articles\" Materialized views use \"mv_\"\nprefix: \"mv_shopping_sale_last_snapshots\"",
244
164
  type: "string",
245
165
  pattern: "^[a-z][a-z0-9_]*$"
246
166
  },
247
167
  description: {
248
- description: "Detailed description explaining the business purpose and usage of the\nmodel.\n\nShould include:\n\n- Business context and purpose\n- Key relationships with other models\n- Important behavioral notes or constraints\n- References to related entities using \"{@\\link ModelName}\" syntax Example:\n \"Customer information, but not a person but a **connection** basis...\"",
168
+ description: "Detailed description explaining the business purpose and usage of the\nmodel.\n\nShould include:\n\n- Business context and purpose\n- Key relationships with other models\n- Important behavioral notes or constraints\n- References to related entities using \"{@\\link ModelName}\" syntax\n\n**IMPORTANT**: Description must be written in English. Example: \"Customer\ninformation, but not a person but a **connection** basis...\"",
249
169
  type: "string"
250
170
  },
251
171
  material: {
@@ -309,7 +229,7 @@ const claude = {
309
229
  type: "object",
310
230
  properties: {
311
231
  name: {
312
- description: "Name of the primary key field.\n\nConsistently named \"id\" across all models in the uploaded schemas.\nRepresents the unique identifier for each record in the table.",
232
+ description: "Name of the primary key field.\n\nMUST use snake_case naming convention. Consistently named \"id\" across all\nmodels in the uploaded schemas. Represents the unique identifier for each\nrecord in the table.",
313
233
  type: "string",
314
234
  pattern: "^[a-z][a-z0-9_]*$"
315
235
  },
@@ -318,7 +238,7 @@ const claude = {
318
238
  "const": "uuid"
319
239
  },
320
240
  description: {
321
- description: "Description of the primary key field's purpose.\n\nStandard description is \"Primary Key.\" across all models. Serves as the\nunique identifier for the model instance.",
241
+ description: "Description of the primary key field's purpose.\n\nStandard description is \"Primary Key.\" across all models. Serves as the\nunique identifier for the model instance.\n\n**IMPORTANT**: Description must be written in English.",
322
242
  type: "string"
323
243
  }
324
244
  },
@@ -333,7 +253,7 @@ const claude = {
333
253
  type: "object",
334
254
  properties: {
335
255
  name: {
336
- description: "Name of the foreign key field.\n\nFollows convention: \"{target_model_name_without_prefix}_id\" Examples:\n\"shopping_customer_id\", \"bbs_article_id\", \"attachment_file_id\" For\nself-references: \"parent_id\" (e.g., in hierarchical structures)",
256
+ description: "Name of the foreign key field.\n\nMUST use snake_case naming convention. Follows convention:\n\"{target_model_name_without_prefix}_id\" Examples: \"shopping_customer_id\",\n\"bbs_article_id\", \"attachment_file_id\" For self-references: \"parent_id\"\n(e.g., in hierarchical structures)",
337
257
  type: "string",
338
258
  pattern: "^[a-z][a-z0-9_]*$"
339
259
  },
@@ -342,7 +262,7 @@ const claude = {
342
262
  "const": "uuid"
343
263
  },
344
264
  description: {
345
- description: "Description explaining the purpose and target of this foreign key\nrelationship.\n\nShould reference the target model using format: \"Target model's {@\\link\nModelName.id}\" Examples: \"Belonged customer's {@\\link\nshopping_customers.id}\" May include additional context about the\nrelationship's business meaning.",
265
+ description: "Description explaining the purpose and target of this foreign key\nrelationship.\n\nShould reference the target model using format: \"Target model's {@\\link\nModelName.id}\" Examples: \"Belonged customer's {@\\link\nshopping_customers.id}\" May include additional context about the\nrelationship's business meaning.\n\n**IMPORTANT**: Description must be written in English.",
346
266
  type: "string"
347
267
  },
348
268
  relation: {
@@ -374,7 +294,7 @@ const claude = {
374
294
  name: {
375
295
  description: "Name of the relation property in the Prisma model.\n\nThis becomes the property name used to access the related model instance\nthrough the Prisma client. Should be descriptive and reflect the business\nrelationship being modeled.\n\nExamples:\n\n- \"customer\" for shopping_customer_id field\n- \"channel\" for shopping_channel_id field\n- \"parent\" for parent_id field in hierarchical structures\n- \"snapshot\" for versioning relationships\n- \"article\" for bbs_article_id field\n\nNaming convention: camelCase, descriptive of the relationship's business\nmeaning",
376
296
  type: "string",
377
- pattern: "^[a-zA-Z_][a-zA-Z0-9_]*$"
297
+ pattern: "^[a-z][a-zA-Z0-9]*$"
378
298
  },
379
299
  targetModel: {
380
300
  description: "Name of the target model being referenced by this relation.\n\nMust exactly match an existing model name in the schema. This is used by\nPrisma to establish the foreign key constraint and generate the\nappropriate relation mapping.\n\nExamples:\n\n- \"shopping_customers\" for customer relationships\n- \"shopping_channels\" for channel relationships\n- \"bbs_articles\" for article relationships\n- \"attachment_files\" for file attachments\n\nThe target model should exist in the same schema or be accessible through\nthe Prisma schema configuration.",
@@ -391,7 +311,7 @@ const claude = {
391
311
  type: "object",
392
312
  properties: {
393
313
  name: {
394
- description: "Name of the field in the database table.\n\nShould use snake_case convention. Common patterns from uploaded schemas:\n\n- Timestamps: created_at, updated_at, deleted_at, opened_at, closed_at\n- Identifiers: code, name, nickname, title\n- Business data: value, quantity, price, volume, balance\n- Flags: primary, required, exclusive, secret, multiplicative",
314
+ description: "Name of the field in the database table.\n\nMUST use snake_case naming convention. Common patterns from uploaded\nschemas:\n\n- Timestamps: created_at, updated_at, deleted_at, opened_at, closed_at\n- Identifiers: code, name, nickname, title\n- Business data: value, quantity, price, volume, balance\n- Flags: primary, required, exclusive, secret, multiplicative",
395
315
  type: "string",
396
316
  pattern: "^[a-z][a-z0-9_]*$"
397
317
  },
@@ -422,7 +342,7 @@ const claude = {
422
342
  ]
423
343
  },
424
344
  description: {
425
- description: "Description explaining the business purpose and usage of this field.\n\nShould clearly explain:\n\n- What business concept this field represents\n- Valid values or constraints if applicable\n- How it relates to business processes\n- Any special behavioral notes Example: \"Amount of cash payment.\" or\n \"Whether the unit is required or not.\"",
345
+ description: "Description explaining the business purpose and usage of this field.\n\nShould clearly explain:\n\n- What business concept this field represents\n- Valid values or constraints if applicable\n- How it relates to business processes\n- Any special behavioral notes\n\n**IMPORTANT**: Description must be written in English. Example: \"Amount\nof cash payment.\" or \"Whether the unit is required or not.\"",
426
346
  type: "string"
427
347
  },
428
348
  nullable: {
@@ -493,58 +413,38 @@ const claude = {
493
413
  }
494
414
  }
495
415
  },
496
- description: "Generates comprehensive Prisma schema files based on detailed requirements\nanalysis.\n\nCreates multiple organized schema files following enterprise patterns\nincluding proper domain separation, relationship modeling, snapshot\npatterns, inheritance, materialized views, and comprehensive documentation.\nThe generated schemas implement best practices for scalability,\nmaintainability, and data integrity.",
497
- validate: (() => { const _io0 = input => Array.isArray(input.tablesToCreate) && input.tablesToCreate.every(elem => "string" === typeof elem) && "string" === typeof input.validationReview && (Array.isArray(input.confirmedTables) && input.confirmedTables.every(elem => "string" === typeof elem)) && (Array.isArray(input.models) && input.models.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "string" === typeof input.description && "boolean" === typeof input.material && ("object" === typeof input.primaryField && null !== input.primaryField && _io2(input.primaryField)) && (Array.isArray(input.foreignFields) && input.foreignFields.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (Array.isArray(input.plainFields) && input.plainFields.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (Array.isArray(input.uniqueIndexes) && input.uniqueIndexes.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (Array.isArray(input.plainIndexes) && input.plainIndexes.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.ginIndexes) && input.ginIndexes.every(elem => "object" === typeof elem && null !== elem && _io8(elem))); const _io2 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "uuid" === input.type && "string" === typeof input.description; const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "uuid" === input.type && "string" === typeof input.description && ("object" === typeof input.relation && null !== input.relation && _io4(input.relation)) && "boolean" === typeof input.unique && "boolean" === typeof input.nullable; const _io4 = input => "string" === typeof input.name && RegExp("^[a-zA-Z_][a-zA-Z0-9_]*$").test(input.name) && "string" === typeof input.targetModel; const _io5 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && ("string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type) && "string" === typeof input.description && "boolean" === typeof input.nullable; const _io6 = input => Array.isArray(input.fieldNames) && (1 <= input.fieldNames.length && __typia_transform__isUniqueItems._isUniqueItems(input.fieldNames) && input.fieldNames.every(elem => "string" === typeof elem)) && true === input.unique; const _io7 = input => Array.isArray(input.fieldNames) && (1 <= input.fieldNames.length && __typia_transform__isUniqueItems._isUniqueItems(input.fieldNames) && input.fieldNames.every(elem => "string" === typeof elem)); const _io8 = input => "string" === typeof input.fieldName; const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.tablesToCreate) || _report(_exceptionable, {
498
- path: _path + ".tablesToCreate",
499
- expected: "Array<string>",
500
- value: input.tablesToCreate
501
- })) && input.tablesToCreate.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
502
- path: _path + ".tablesToCreate[" + _index11 + "]",
503
- expected: "string",
504
- value: elem
505
- })).every(flag => flag) || _report(_exceptionable, {
506
- path: _path + ".tablesToCreate",
507
- expected: "Array<string>",
508
- value: input.tablesToCreate
509
- }), "string" === typeof input.validationReview || _report(_exceptionable, {
510
- path: _path + ".validationReview",
416
+ description: "Reviews and validates Prisma schema modifications to ensure compliance with\ndatabase design best practices and business requirements.\n\nPerforms comprehensive validation of proposed schema changes including\nnormalization compliance, relationship integrity, performance optimization,\nand business logic alignment. The review process ensures all modifications\nmaintain data consistency and follow enterprise-level database standards.",
417
+ validate: (() => { const _io0 = input => "string" === typeof input.review && "string" === typeof input.plan && (Array.isArray(input.modifications) && input.modifications.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "string" === typeof input.description && "boolean" === typeof input.material && ("object" === typeof input.primaryField && null !== input.primaryField && _io2(input.primaryField)) && (Array.isArray(input.foreignFields) && input.foreignFields.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (Array.isArray(input.plainFields) && input.plainFields.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (Array.isArray(input.uniqueIndexes) && input.uniqueIndexes.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (Array.isArray(input.plainIndexes) && input.plainIndexes.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.ginIndexes) && input.ginIndexes.every(elem => "object" === typeof elem && null !== elem && _io8(elem))); const _io2 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "uuid" === input.type && "string" === typeof input.description; const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "uuid" === input.type && "string" === typeof input.description && ("object" === typeof input.relation && null !== input.relation && _io4(input.relation)) && "boolean" === typeof input.unique && "boolean" === typeof input.nullable; const _io4 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.targetModel; const _io5 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && ("string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type) && "string" === typeof input.description && "boolean" === typeof input.nullable; const _io6 = input => Array.isArray(input.fieldNames) && (1 <= input.fieldNames.length && __typia_transform__isUniqueItems._isUniqueItems(input.fieldNames) && input.fieldNames.every(elem => "string" === typeof elem)) && true === input.unique; const _io7 = input => Array.isArray(input.fieldNames) && (1 <= input.fieldNames.length && __typia_transform__isUniqueItems._isUniqueItems(input.fieldNames) && input.fieldNames.every(elem => "string" === typeof elem)); const _io8 = input => "string" === typeof input.fieldName; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
418
+ path: _path + ".review",
511
419
  expected: "string",
512
- value: input.validationReview
513
- }), (Array.isArray(input.confirmedTables) || _report(_exceptionable, {
514
- path: _path + ".confirmedTables",
515
- expected: "Array<string>",
516
- value: input.confirmedTables
517
- })) && input.confirmedTables.map((elem, _index12) => "string" === typeof elem || _report(_exceptionable, {
518
- path: _path + ".confirmedTables[" + _index12 + "]",
420
+ value: input.review
421
+ }), "string" === typeof input.plan || _report(_exceptionable, {
422
+ path: _path + ".plan",
519
423
  expected: "string",
520
- value: elem
521
- })).every(flag => flag) || _report(_exceptionable, {
522
- path: _path + ".confirmedTables",
523
- expected: "Array<string>",
524
- value: input.confirmedTables
525
- }), (Array.isArray(input.models) || _report(_exceptionable, {
526
- path: _path + ".models",
424
+ value: input.plan
425
+ }), (Array.isArray(input.modifications) || _report(_exceptionable, {
426
+ path: _path + ".modifications",
527
427
  expected: "Array<AutoBePrisma.IModel>",
528
- value: input.models
529
- })) && input.models.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
530
- path: _path + ".models[" + _index13 + "]",
428
+ value: input.modifications
429
+ })) && input.modifications.map((elem, _index9) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
430
+ path: _path + ".modifications[" + _index9 + "]",
531
431
  expected: "AutoBePrisma.IModel",
532
432
  value: elem
533
- })) && _vo1(elem, _path + ".models[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
534
- path: _path + ".models[" + _index13 + "]",
433
+ })) && _vo1(elem, _path + ".modifications[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
434
+ path: _path + ".modifications[" + _index9 + "]",
535
435
  expected: "AutoBePrisma.IModel",
536
436
  value: elem
537
437
  })).every(flag => flag) || _report(_exceptionable, {
538
- path: _path + ".models",
438
+ path: _path + ".modifications",
539
439
  expected: "Array<AutoBePrisma.IModel>",
540
- value: input.models
440
+ value: input.modifications
541
441
  })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
542
442
  path: _path + ".name",
543
- expected: "string & Pattern<\"^[a-z][a-z0-9_]*$\">",
443
+ expected: "string & SnakePattern",
544
444
  value: input.name
545
445
  })) || _report(_exceptionable, {
546
446
  path: _path + ".name",
547
- expected: "(string & Pattern<\"^[a-z][a-z0-9_]*$\">)",
447
+ expected: "(string & SnakePattern)",
548
448
  value: input.name
549
449
  }), "string" === typeof input.description || _report(_exceptionable, {
550
450
  path: _path + ".description",
@@ -566,12 +466,12 @@ const claude = {
566
466
  path: _path + ".foreignFields",
567
467
  expected: "Array<AutoBePrisma.IForeignField>",
568
468
  value: input.foreignFields
569
- })) && input.foreignFields.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
570
- path: _path + ".foreignFields[" + _index14 + "]",
469
+ })) && input.foreignFields.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
470
+ path: _path + ".foreignFields[" + _index10 + "]",
571
471
  expected: "AutoBePrisma.IForeignField",
572
472
  value: elem
573
- })) && _vo3(elem, _path + ".foreignFields[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
574
- path: _path + ".foreignFields[" + _index14 + "]",
473
+ })) && _vo3(elem, _path + ".foreignFields[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
474
+ path: _path + ".foreignFields[" + _index10 + "]",
575
475
  expected: "AutoBePrisma.IForeignField",
576
476
  value: elem
577
477
  })).every(flag => flag) || _report(_exceptionable, {
@@ -582,12 +482,12 @@ const claude = {
582
482
  path: _path + ".plainFields",
583
483
  expected: "Array<AutoBePrisma.IPlainField>",
584
484
  value: input.plainFields
585
- })) && input.plainFields.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
586
- path: _path + ".plainFields[" + _index15 + "]",
485
+ })) && input.plainFields.map((elem, _index11) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
486
+ path: _path + ".plainFields[" + _index11 + "]",
587
487
  expected: "AutoBePrisma.IPlainField",
588
488
  value: elem
589
- })) && _vo5(elem, _path + ".plainFields[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
590
- path: _path + ".plainFields[" + _index15 + "]",
489
+ })) && _vo5(elem, _path + ".plainFields[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
490
+ path: _path + ".plainFields[" + _index11 + "]",
591
491
  expected: "AutoBePrisma.IPlainField",
592
492
  value: elem
593
493
  })).every(flag => flag) || _report(_exceptionable, {
@@ -598,12 +498,12 @@ const claude = {
598
498
  path: _path + ".uniqueIndexes",
599
499
  expected: "Array<AutoBePrisma.IUniqueIndex>",
600
500
  value: input.uniqueIndexes
601
- })) && input.uniqueIndexes.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
602
- path: _path + ".uniqueIndexes[" + _index16 + "]",
501
+ })) && input.uniqueIndexes.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
502
+ path: _path + ".uniqueIndexes[" + _index12 + "]",
603
503
  expected: "AutoBePrisma.IUniqueIndex",
604
504
  value: elem
605
- })) && _vo6(elem, _path + ".uniqueIndexes[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
606
- path: _path + ".uniqueIndexes[" + _index16 + "]",
505
+ })) && _vo6(elem, _path + ".uniqueIndexes[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
506
+ path: _path + ".uniqueIndexes[" + _index12 + "]",
607
507
  expected: "AutoBePrisma.IUniqueIndex",
608
508
  value: elem
609
509
  })).every(flag => flag) || _report(_exceptionable, {
@@ -614,12 +514,12 @@ const claude = {
614
514
  path: _path + ".plainIndexes",
615
515
  expected: "Array<AutoBePrisma.IPlainIndex>",
616
516
  value: input.plainIndexes
617
- })) && input.plainIndexes.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
618
- path: _path + ".plainIndexes[" + _index17 + "]",
517
+ })) && input.plainIndexes.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
518
+ path: _path + ".plainIndexes[" + _index13 + "]",
619
519
  expected: "AutoBePrisma.IPlainIndex",
620
520
  value: elem
621
- })) && _vo7(elem, _path + ".plainIndexes[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
622
- path: _path + ".plainIndexes[" + _index17 + "]",
521
+ })) && _vo7(elem, _path + ".plainIndexes[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
522
+ path: _path + ".plainIndexes[" + _index13 + "]",
623
523
  expected: "AutoBePrisma.IPlainIndex",
624
524
  value: elem
625
525
  })).every(flag => flag) || _report(_exceptionable, {
@@ -630,12 +530,12 @@ const claude = {
630
530
  path: _path + ".ginIndexes",
631
531
  expected: "Array<AutoBePrisma.IGinIndex>",
632
532
  value: input.ginIndexes
633
- })) && input.ginIndexes.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
634
- path: _path + ".ginIndexes[" + _index18 + "]",
533
+ })) && input.ginIndexes.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
534
+ path: _path + ".ginIndexes[" + _index14 + "]",
635
535
  expected: "AutoBePrisma.IGinIndex",
636
536
  value: elem
637
- })) && _vo8(elem, _path + ".ginIndexes[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
638
- path: _path + ".ginIndexes[" + _index18 + "]",
537
+ })) && _vo8(elem, _path + ".ginIndexes[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
538
+ path: _path + ".ginIndexes[" + _index14 + "]",
639
539
  expected: "AutoBePrisma.IGinIndex",
640
540
  value: elem
641
541
  })).every(flag => flag) || _report(_exceptionable, {
@@ -644,11 +544,11 @@ const claude = {
644
544
  value: input.ginIndexes
645
545
  })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
646
546
  path: _path + ".name",
647
- expected: "string & Pattern<\"^[a-z][a-z0-9_]*$\">",
547
+ expected: "string & SnakePattern",
648
548
  value: input.name
649
549
  })) || _report(_exceptionable, {
650
550
  path: _path + ".name",
651
- expected: "(string & Pattern<\"^[a-z][a-z0-9_]*$\">)",
551
+ expected: "(string & SnakePattern)",
652
552
  value: input.name
653
553
  }), "uuid" === input.type || _report(_exceptionable, {
654
554
  path: _path + ".type",
@@ -660,11 +560,11 @@ const claude = {
660
560
  value: input.description
661
561
  })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
662
562
  path: _path + ".name",
663
- expected: "string & Pattern<\"^[a-z][a-z0-9_]*$\">",
563
+ expected: "string & SnakePattern",
664
564
  value: input.name
665
565
  })) || _report(_exceptionable, {
666
566
  path: _path + ".name",
667
- expected: "(string & Pattern<\"^[a-z][a-z0-9_]*$\">)",
567
+ expected: "(string & SnakePattern)",
668
568
  value: input.name
669
569
  }), "uuid" === input.type || _report(_exceptionable, {
670
570
  path: _path + ".type",
@@ -690,13 +590,13 @@ const claude = {
690
590
  path: _path + ".nullable",
691
591
  expected: "boolean",
692
592
  value: input.nullable
693
- })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-zA-Z_][a-zA-Z0-9_]*$").test(input.name) || _report(_exceptionable, {
593
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
694
594
  path: _path + ".name",
695
- expected: "string & Pattern<\"^[a-zA-Z_][a-zA-Z0-9_]*$\">",
595
+ expected: "string & CamelPattern",
696
596
  value: input.name
697
597
  })) || _report(_exceptionable, {
698
598
  path: _path + ".name",
699
- expected: "(string & Pattern<\"^[a-zA-Z_][a-zA-Z0-9_]*$\">)",
599
+ expected: "(string & CamelPattern)",
700
600
  value: input.name
701
601
  }), "string" === typeof input.targetModel || _report(_exceptionable, {
702
602
  path: _path + ".targetModel",
@@ -704,11 +604,11 @@ const claude = {
704
604
  value: input.targetModel
705
605
  })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
706
606
  path: _path + ".name",
707
- expected: "string & Pattern<\"^[a-z][a-z0-9_]*$\">",
607
+ expected: "string & SnakePattern",
708
608
  value: input.name
709
609
  })) || _report(_exceptionable, {
710
610
  path: _path + ".name",
711
- expected: "(string & Pattern<\"^[a-z][a-z0-9_]*$\">)",
611
+ expected: "(string & SnakePattern)",
712
612
  value: input.name
713
613
  }), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
714
614
  path: _path + ".type",
@@ -734,8 +634,8 @@ const claude = {
734
634
  path: _path + ".fieldNames",
735
635
  expected: "Array<> & UniqueItems<true>",
736
636
  value: input.fieldNames
737
- })) && input.fieldNames.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
738
- path: _path + ".fieldNames[" + _index19 + "]",
637
+ })) && input.fieldNames.map((elem, _index15) => "string" === typeof elem || _report(_exceptionable, {
638
+ path: _path + ".fieldNames[" + _index15 + "]",
739
639
  expected: "string",
740
640
  value: elem
741
641
  })).every(flag => flag)) || _report(_exceptionable, {
@@ -758,8 +658,8 @@ const claude = {
758
658
  path: _path + ".fieldNames",
759
659
  expected: "Array<> & UniqueItems<true>",
760
660
  value: input.fieldNames
761
- })) && input.fieldNames.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
762
- path: _path + ".fieldNames[" + _index20 + "]",
661
+ })) && input.fieldNames.map((elem, _index16) => "string" === typeof elem || _report(_exceptionable, {
662
+ path: _path + ".fieldNames[" + _index16 + "]",
763
663
  expected: "string",
764
664
  value: elem
765
665
  })).every(flag => flag)) || _report(_exceptionable, {
@@ -776,11 +676,11 @@ const claude = {
776
676
  _report = __typia_transform__validateReport._validateReport(errors);
777
677
  ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
778
678
  path: _path + "",
779
- expected: "IMakePrismaSchemaFileProps",
679
+ expected: "IAutoBePrismaReviewApplication.IProps",
780
680
  value: input
781
681
  })) && _vo0(input, _path + "", true) || _report(true, {
782
682
  path: _path + "",
783
- expected: "IMakePrismaSchemaFileProps",
683
+ expected: "IAutoBePrismaReviewApplication.IProps",
784
684
  value: input
785
685
  }))(input, "$input", true);
786
686
  const success = 0 === errors.length;
@@ -811,31 +711,21 @@ const collection = {
811
711
  },
812
712
  functions: [
813
713
  {
814
- name: "makePrismaSchemaFile",
714
+ name: "reviewSchemaFile",
815
715
  parameters: {
816
- description: " Properties containing the file\n\n------------------------------\n\nCurrent Type: {@link IMakePrismaSchemaFileProps}",
716
+ description: "Current Type: {@link IAutoBePrismaReviewApplication.IProps}",
817
717
  type: "object",
818
718
  properties: {
819
- tablesToCreate: {
820
- description: "STEP 1: First enumeration of tables that must be created\n\nList all table names that need to be created based on the\n`targetComponent.tables`. This should be an exact copy of the\n`targetComponent.tables` array.\n\nExample: [\"shopping_goods\", \"shopping_goods_options\"]",
821
- type: "array",
822
- items: {
823
- type: "string"
824
- }
825
- },
826
- validationReview: {
827
- description: "STEP 2: Validation review of the first enumeration\n\nCompare `tablesToCreate` against `targetComponent.tables` and\n`otherComponents[].tables`. Write a review statement that validates:\n\n- All tables from `targetComponent.tables` are included\n- No tables from `otherComponents[].tables` are included\n- Additional tables (if any) are for M:N junction relationships or\n domain-specific needs\n- No forbidden tables from other domains are included\n\nExample: \"VALIDATION PASSED: All required tables from\n`targetComponent.tables` included: shopping_goods, shopping_goods_options.\nFORBIDDEN CHECK: No tables from `otherComponents` included\n(shopping_customers, shopping_sellers are correctly excluded). Additional\ntables: none needed for this domain.\"",
719
+ review: {
720
+ description: "Comprehensive review analysis of the proposed schema modifications.\n\nContains the AI agent's detailed evaluation of the schema changes,\nincluding validation of normalization compliance, relationship integrity,\nindex optimization, and business requirement alignment. The review\nidentifies potential issues and confirms adherence to best practices.\n\n**Review Dimensions:**\n\n- **Normalization Validation**: Confirms 3NF compliance and proper data\n structure\n- **Relationship Integrity**: Validates foreign key references and\n cardinality\n- **Performance Optimization**: Reviews indexing strategy and query\n patterns\n- **Business Logic Alignment**: Ensures schema supports all use cases\n- **Naming Conventions**: Verifies consistent naming patterns\n- **Data Type Consistency**: Confirms appropriate field types\n- **Temporal Field Handling**: Validates audit trail implementation\n\n**Example:**\n\n \"After reviewing the schema modifications:\n 1. All tables properly implement UUID primary keys\n 2. Foreign key relationships correctly reference existing models\n 3. Composite indexes optimize for common query patterns\n 4. Snapshot tables include proper temporal fields\n 5. Materialized views (mv_) contain appropriate denormalization\n The schema follows all best practices and is ready for implementation.\"",
828
721
  type: "string"
829
722
  },
830
- confirmedTables: {
831
- description: "STEP 3: Second enumeration of tables to create\n\nAfter validation, re-list the tables that will be created. This should be\nidentical to `tablesToCreate` if validation passed. This serves as the\nfinal confirmed list before model creation.\n\nExample: [\"shopping_goods\", \"shopping_goods_options\"]",
832
- type: "array",
833
- items: {
834
- type: "string"
835
- }
723
+ plan: {
724
+ description: "Strategic database design plan that guided the schema creation.\n\nContains the original planning document that outlines the database\narchitecture strategy, including table structures, relationships,\nnormalization approach, and business requirement mapping. This plan\nserves as the blueprint for validating the implemented schema.\n\n**Planning Components:**\n\n- **Business Requirements**: Mapping of business needs to database\n structures\n- **Table Design**: Entity definitions and attribute specifications\n- **Relationship Strategy**: Cardinality and referential integrity planning\n- **Normalization Approach**: Application of 1NF, 2NF, 3NF principles\n- **Performance Considerations**: Index strategy and query optimization\n- **Snapshot Architecture**: Temporal data handling and audit requirements\n- **Materialized Views**: Denormalization strategy for performance\n\n**Example:**\n\n \"Database Design Strategy:\n Component: Sales Domain\n Tables: shopping_sales, shopping_sale_snapshots, shopping_sale_units\n\n Design Approach:\n - Normalize product catalog to 3NF for data integrity\n - Implement snapshot pattern for price history tracking\n - Create composite indexes for product search queries\n - Use materialized views for sales analytics dashboards\"",
725
+ type: "string"
836
726
  },
837
- models: {
838
- description: "STEP 4: Array of Prisma models (database tables) within the domain\n\nCreate exactly one model for each table in `confirmedTables`. Each model\nrepresents a business entity or concept within the namespace. Models can\nreference each other through foreign key relationships.\n\nThe `models` array length must equal `confirmedTables.length`. Each\n`model.name` must match an entry in `confirmedTables`.",
727
+ modifications: {
728
+ description: "Array of Prisma models that have been modified based on review feedback.\n\nContains ONLY the models that required changes, not the entire schema.\nEach model represents a complete table definition with all fields,\nrelationships, indexes, and documentation. These modifications will be\napplied to the models to produce the final implementation.\n\n**Model Requirements:**\n\n- **Complete Models**: Each entry must be a complete model definition\n- **Targeted Changes**: Only includes models that need modifications\n- **AST Compliance**: Follows AutoBePrisma.IModel interface structure\n- **Relationship Integrity**: All foreign keys reference valid models\n- **Index Optimization**: Strategic indexes without redundancy\n- **Documentation**: Comprehensive English descriptions\n\n**Notes:**\n\n- Models not included in this array remain unchanged from the models\n- The final schema merges these modifications with the original models\n- All modifications must resolve issues identified in the review",
839
729
  type: "array",
840
730
  items: {
841
731
  $ref: "#/$defs/AutoBePrisma.IModel"
@@ -843,10 +733,9 @@ const collection = {
843
733
  }
844
734
  },
845
735
  required: [
846
- "tablesToCreate",
847
- "validationReview",
848
- "confirmedTables",
849
- "models"
736
+ "review",
737
+ "plan",
738
+ "modifications"
850
739
  ],
851
740
  additionalProperties: false,
852
741
  $defs: {
@@ -855,11 +744,11 @@ const collection = {
855
744
  type: "object",
856
745
  properties: {
857
746
  name: {
858
- description: "Name of the Prisma model (database table name).\n\nShould follow snake_case convention with domain prefix. Examples:\n\"shopping_customers\", \"shopping_sale_snapshots\", \"bbs_articles\"\nMaterialized views use \"mv_\" prefix: \"mv_shopping_sale_last_snapshots\"\n\n\n@pattern ^[a-z][a-z0-9_]*$",
747
+ description: "Name of the Prisma model (database table name).\n\nMUST use snake_case naming convention. Examples: \"shopping_customers\",\n\"shopping_sale_snapshots\", \"bbs_articles\" Materialized views use \"mv_\"\nprefix: \"mv_shopping_sale_last_snapshots\"\n\n\n@pattern ^[a-z][a-z0-9_]*$",
859
748
  type: "string"
860
749
  },
861
750
  description: {
862
- description: "Detailed description explaining the business purpose and usage of the\nmodel.\n\nShould include:\n\n- Business context and purpose\n- Key relationships with other models\n- Important behavioral notes or constraints\n- References to related entities using \"{@\\link ModelName}\" syntax Example:\n \"Customer information, but not a person but a **connection** basis...\"",
751
+ description: "Detailed description explaining the business purpose and usage of the\nmodel.\n\nShould include:\n\n- Business context and purpose\n- Key relationships with other models\n- Important behavioral notes or constraints\n- References to related entities using \"{@\\link ModelName}\" syntax\n\n**IMPORTANT**: Description must be written in English. Example: \"Customer\ninformation, but not a person but a **connection** basis...\"",
863
752
  type: "string"
864
753
  },
865
754
  material: {
@@ -922,7 +811,7 @@ const collection = {
922
811
  type: "object",
923
812
  properties: {
924
813
  name: {
925
- description: "Name of the primary key field.\n\nConsistently named \"id\" across all models in the uploaded schemas.\nRepresents the unique identifier for each record in the table.\n\n\n@pattern ^[a-z][a-z0-9_]*$",
814
+ description: "Name of the primary key field.\n\nMUST use snake_case naming convention. Consistently named \"id\" across all\nmodels in the uploaded schemas. Represents the unique identifier for each\nrecord in the table.\n\n\n@pattern ^[a-z][a-z0-9_]*$",
926
815
  type: "string"
927
816
  },
928
817
  type: {
@@ -933,7 +822,7 @@ const collection = {
933
822
  ]
934
823
  },
935
824
  description: {
936
- description: "Description of the primary key field's purpose.\n\nStandard description is \"Primary Key.\" across all models. Serves as the\nunique identifier for the model instance.",
825
+ description: "Description of the primary key field's purpose.\n\nStandard description is \"Primary Key.\" across all models. Serves as the\nunique identifier for the model instance.\n\n**IMPORTANT**: Description must be written in English.",
937
826
  type: "string"
938
827
  }
939
828
  },
@@ -948,7 +837,7 @@ const collection = {
948
837
  type: "object",
949
838
  properties: {
950
839
  name: {
951
- description: "Name of the foreign key field.\n\nFollows convention: \"{target_model_name_without_prefix}_id\" Examples:\n\"shopping_customer_id\", \"bbs_article_id\", \"attachment_file_id\" For\nself-references: \"parent_id\" (e.g., in hierarchical structures)\n\n\n@pattern ^[a-z][a-z0-9_]*$",
840
+ description: "Name of the foreign key field.\n\nMUST use snake_case naming convention. Follows convention:\n\"{target_model_name_without_prefix}_id\" Examples: \"shopping_customer_id\",\n\"bbs_article_id\", \"attachment_file_id\" For self-references: \"parent_id\"\n(e.g., in hierarchical structures)\n\n\n@pattern ^[a-z][a-z0-9_]*$",
952
841
  type: "string"
953
842
  },
954
843
  type: {
@@ -959,7 +848,7 @@ const collection = {
959
848
  ]
960
849
  },
961
850
  description: {
962
- description: "Description explaining the purpose and target of this foreign key\nrelationship.\n\nShould reference the target model using format: \"Target model's {@\\link\nModelName.id}\" Examples: \"Belonged customer's {@\\link\nshopping_customers.id}\" May include additional context about the\nrelationship's business meaning.",
851
+ description: "Description explaining the purpose and target of this foreign key\nrelationship.\n\nShould reference the target model using format: \"Target model's {@\\link\nModelName.id}\" Examples: \"Belonged customer's {@\\link\nshopping_customers.id}\" May include additional context about the\nrelationship's business meaning.\n\n**IMPORTANT**: Description must be written in English.",
963
852
  type: "string"
964
853
  },
965
854
  relation: {
@@ -988,7 +877,7 @@ const collection = {
988
877
  type: "object",
989
878
  properties: {
990
879
  name: {
991
- description: "Name of the relation property in the Prisma model.\n\nThis becomes the property name used to access the related model instance\nthrough the Prisma client. Should be descriptive and reflect the business\nrelationship being modeled.\n\nExamples:\n\n- \"customer\" for shopping_customer_id field\n- \"channel\" for shopping_channel_id field\n- \"parent\" for parent_id field in hierarchical structures\n- \"snapshot\" for versioning relationships\n- \"article\" for bbs_article_id field\n\nNaming convention: camelCase, descriptive of the relationship's business\nmeaning\n\n\n@pattern ^[a-zA-Z_][a-zA-Z0-9_]*$",
880
+ description: "Name of the relation property in the Prisma model.\n\nThis becomes the property name used to access the related model instance\nthrough the Prisma client. Should be descriptive and reflect the business\nrelationship being modeled.\n\nExamples:\n\n- \"customer\" for shopping_customer_id field\n- \"channel\" for shopping_channel_id field\n- \"parent\" for parent_id field in hierarchical structures\n- \"snapshot\" for versioning relationships\n- \"article\" for bbs_article_id field\n\nNaming convention: camelCase, descriptive of the relationship's business\nmeaning\n\n\n@pattern ^[a-z][a-zA-Z0-9]*$",
992
881
  type: "string"
993
882
  },
994
883
  targetModel: {
@@ -1006,7 +895,7 @@ const collection = {
1006
895
  type: "object",
1007
896
  properties: {
1008
897
  name: {
1009
- description: "Name of the field in the database table.\n\nShould use snake_case convention. Common patterns from uploaded schemas:\n\n- Timestamps: created_at, updated_at, deleted_at, opened_at, closed_at\n- Identifiers: code, name, nickname, title\n- Business data: value, quantity, price, volume, balance\n- Flags: primary, required, exclusive, secret, multiplicative\n\n\n@pattern ^[a-z][a-z0-9_]*$",
898
+ description: "Name of the field in the database table.\n\nMUST use snake_case naming convention. Common patterns from uploaded\nschemas:\n\n- Timestamps: created_at, updated_at, deleted_at, opened_at, closed_at\n- Identifiers: code, name, nickname, title\n- Business data: value, quantity, price, volume, balance\n- Flags: primary, required, exclusive, secret, multiplicative\n\n\n@pattern ^[a-z][a-z0-9_]*$",
1010
899
  type: "string"
1011
900
  },
1012
901
  type: {
@@ -1023,7 +912,7 @@ const collection = {
1023
912
  ]
1024
913
  },
1025
914
  description: {
1026
- description: "Description explaining the business purpose and usage of this field.\n\nShould clearly explain:\n\n- What business concept this field represents\n- Valid values or constraints if applicable\n- How it relates to business processes\n- Any special behavioral notes Example: \"Amount of cash payment.\" or\n \"Whether the unit is required or not.\"",
915
+ description: "Description explaining the business purpose and usage of this field.\n\nShould clearly explain:\n\n- What business concept this field represents\n- Valid values or constraints if applicable\n- How it relates to business processes\n- Any special behavioral notes\n\n**IMPORTANT**: Description must be written in English. Example: \"Amount\nof cash payment.\" or \"Whether the unit is required or not.\"",
1027
916
  type: "string"
1028
917
  },
1029
918
  nullable: {
@@ -1093,58 +982,38 @@ const collection = {
1093
982
  }
1094
983
  }
1095
984
  },
1096
- description: "Generates comprehensive Prisma schema files based on detailed requirements\nanalysis.\n\nCreates multiple organized schema files following enterprise patterns\nincluding proper domain separation, relationship modeling, snapshot\npatterns, inheritance, materialized views, and comprehensive documentation.\nThe generated schemas implement best practices for scalability,\nmaintainability, and data integrity.",
1097
- validate: (() => { const _io0 = input => Array.isArray(input.tablesToCreate) && input.tablesToCreate.every(elem => "string" === typeof elem) && "string" === typeof input.validationReview && (Array.isArray(input.confirmedTables) && input.confirmedTables.every(elem => "string" === typeof elem)) && (Array.isArray(input.models) && input.models.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "string" === typeof input.description && "boolean" === typeof input.material && ("object" === typeof input.primaryField && null !== input.primaryField && _io2(input.primaryField)) && (Array.isArray(input.foreignFields) && input.foreignFields.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (Array.isArray(input.plainFields) && input.plainFields.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (Array.isArray(input.uniqueIndexes) && input.uniqueIndexes.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (Array.isArray(input.plainIndexes) && input.plainIndexes.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.ginIndexes) && input.ginIndexes.every(elem => "object" === typeof elem && null !== elem && _io8(elem))); const _io2 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "uuid" === input.type && "string" === typeof input.description; const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "uuid" === input.type && "string" === typeof input.description && ("object" === typeof input.relation && null !== input.relation && _io4(input.relation)) && "boolean" === typeof input.unique && "boolean" === typeof input.nullable; const _io4 = input => "string" === typeof input.name && RegExp("^[a-zA-Z_][a-zA-Z0-9_]*$").test(input.name) && "string" === typeof input.targetModel; const _io5 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && ("string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type) && "string" === typeof input.description && "boolean" === typeof input.nullable; const _io6 = input => Array.isArray(input.fieldNames) && (1 <= input.fieldNames.length && __typia_transform__isUniqueItems._isUniqueItems(input.fieldNames) && input.fieldNames.every(elem => "string" === typeof elem)) && true === input.unique; const _io7 = input => Array.isArray(input.fieldNames) && (1 <= input.fieldNames.length && __typia_transform__isUniqueItems._isUniqueItems(input.fieldNames) && input.fieldNames.every(elem => "string" === typeof elem)); const _io8 = input => "string" === typeof input.fieldName; const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.tablesToCreate) || _report(_exceptionable, {
1098
- path: _path + ".tablesToCreate",
1099
- expected: "Array<string>",
1100
- value: input.tablesToCreate
1101
- })) && input.tablesToCreate.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
1102
- path: _path + ".tablesToCreate[" + _index11 + "]",
985
+ description: "Reviews and validates Prisma schema modifications to ensure compliance with\ndatabase design best practices and business requirements.\n\nPerforms comprehensive validation of proposed schema changes including\nnormalization compliance, relationship integrity, performance optimization,\nand business logic alignment. The review process ensures all modifications\nmaintain data consistency and follow enterprise-level database standards.",
986
+ validate: (() => { const _io0 = input => "string" === typeof input.review && "string" === typeof input.plan && (Array.isArray(input.modifications) && input.modifications.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "string" === typeof input.description && "boolean" === typeof input.material && ("object" === typeof input.primaryField && null !== input.primaryField && _io2(input.primaryField)) && (Array.isArray(input.foreignFields) && input.foreignFields.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (Array.isArray(input.plainFields) && input.plainFields.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (Array.isArray(input.uniqueIndexes) && input.uniqueIndexes.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (Array.isArray(input.plainIndexes) && input.plainIndexes.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.ginIndexes) && input.ginIndexes.every(elem => "object" === typeof elem && null !== elem && _io8(elem))); const _io2 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "uuid" === input.type && "string" === typeof input.description; const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && "uuid" === input.type && "string" === typeof input.description && ("object" === typeof input.relation && null !== input.relation && _io4(input.relation)) && "boolean" === typeof input.unique && "boolean" === typeof input.nullable; const _io4 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.targetModel; const _io5 = input => "string" === typeof input.name && RegExp("^[a-z][a-z0-9_]*$").test(input.name) && ("string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type) && "string" === typeof input.description && "boolean" === typeof input.nullable; const _io6 = input => Array.isArray(input.fieldNames) && (1 <= input.fieldNames.length && __typia_transform__isUniqueItems._isUniqueItems(input.fieldNames) && input.fieldNames.every(elem => "string" === typeof elem)) && true === input.unique; const _io7 = input => Array.isArray(input.fieldNames) && (1 <= input.fieldNames.length && __typia_transform__isUniqueItems._isUniqueItems(input.fieldNames) && input.fieldNames.every(elem => "string" === typeof elem)); const _io8 = input => "string" === typeof input.fieldName; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
987
+ path: _path + ".review",
1103
988
  expected: "string",
1104
- value: elem
1105
- })).every(flag => flag) || _report(_exceptionable, {
1106
- path: _path + ".tablesToCreate",
1107
- expected: "Array<string>",
1108
- value: input.tablesToCreate
1109
- }), "string" === typeof input.validationReview || _report(_exceptionable, {
1110
- path: _path + ".validationReview",
1111
- expected: "string",
1112
- value: input.validationReview
1113
- }), (Array.isArray(input.confirmedTables) || _report(_exceptionable, {
1114
- path: _path + ".confirmedTables",
1115
- expected: "Array<string>",
1116
- value: input.confirmedTables
1117
- })) && input.confirmedTables.map((elem, _index12) => "string" === typeof elem || _report(_exceptionable, {
1118
- path: _path + ".confirmedTables[" + _index12 + "]",
989
+ value: input.review
990
+ }), "string" === typeof input.plan || _report(_exceptionable, {
991
+ path: _path + ".plan",
1119
992
  expected: "string",
1120
- value: elem
1121
- })).every(flag => flag) || _report(_exceptionable, {
1122
- path: _path + ".confirmedTables",
1123
- expected: "Array<string>",
1124
- value: input.confirmedTables
1125
- }), (Array.isArray(input.models) || _report(_exceptionable, {
1126
- path: _path + ".models",
993
+ value: input.plan
994
+ }), (Array.isArray(input.modifications) || _report(_exceptionable, {
995
+ path: _path + ".modifications",
1127
996
  expected: "Array<AutoBePrisma.IModel>",
1128
- value: input.models
1129
- })) && input.models.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1130
- path: _path + ".models[" + _index13 + "]",
997
+ value: input.modifications
998
+ })) && input.modifications.map((elem, _index9) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
999
+ path: _path + ".modifications[" + _index9 + "]",
1131
1000
  expected: "AutoBePrisma.IModel",
1132
1001
  value: elem
1133
- })) && _vo1(elem, _path + ".models[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
1134
- path: _path + ".models[" + _index13 + "]",
1002
+ })) && _vo1(elem, _path + ".modifications[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
1003
+ path: _path + ".modifications[" + _index9 + "]",
1135
1004
  expected: "AutoBePrisma.IModel",
1136
1005
  value: elem
1137
1006
  })).every(flag => flag) || _report(_exceptionable, {
1138
- path: _path + ".models",
1007
+ path: _path + ".modifications",
1139
1008
  expected: "Array<AutoBePrisma.IModel>",
1140
- value: input.models
1009
+ value: input.modifications
1141
1010
  })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
1142
1011
  path: _path + ".name",
1143
- expected: "string & Pattern<\"^[a-z][a-z0-9_]*$\">",
1012
+ expected: "string & SnakePattern",
1144
1013
  value: input.name
1145
1014
  })) || _report(_exceptionable, {
1146
1015
  path: _path + ".name",
1147
- expected: "(string & Pattern<\"^[a-z][a-z0-9_]*$\">)",
1016
+ expected: "(string & SnakePattern)",
1148
1017
  value: input.name
1149
1018
  }), "string" === typeof input.description || _report(_exceptionable, {
1150
1019
  path: _path + ".description",
@@ -1166,12 +1035,12 @@ const collection = {
1166
1035
  path: _path + ".foreignFields",
1167
1036
  expected: "Array<AutoBePrisma.IForeignField>",
1168
1037
  value: input.foreignFields
1169
- })) && input.foreignFields.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1170
- path: _path + ".foreignFields[" + _index14 + "]",
1038
+ })) && input.foreignFields.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1039
+ path: _path + ".foreignFields[" + _index10 + "]",
1171
1040
  expected: "AutoBePrisma.IForeignField",
1172
1041
  value: elem
1173
- })) && _vo3(elem, _path + ".foreignFields[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
1174
- path: _path + ".foreignFields[" + _index14 + "]",
1042
+ })) && _vo3(elem, _path + ".foreignFields[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
1043
+ path: _path + ".foreignFields[" + _index10 + "]",
1175
1044
  expected: "AutoBePrisma.IForeignField",
1176
1045
  value: elem
1177
1046
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1182,12 +1051,12 @@ const collection = {
1182
1051
  path: _path + ".plainFields",
1183
1052
  expected: "Array<AutoBePrisma.IPlainField>",
1184
1053
  value: input.plainFields
1185
- })) && input.plainFields.map((elem, _index15) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1186
- path: _path + ".plainFields[" + _index15 + "]",
1054
+ })) && input.plainFields.map((elem, _index11) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1055
+ path: _path + ".plainFields[" + _index11 + "]",
1187
1056
  expected: "AutoBePrisma.IPlainField",
1188
1057
  value: elem
1189
- })) && _vo5(elem, _path + ".plainFields[" + _index15 + "]", true && _exceptionable) || _report(_exceptionable, {
1190
- path: _path + ".plainFields[" + _index15 + "]",
1058
+ })) && _vo5(elem, _path + ".plainFields[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
1059
+ path: _path + ".plainFields[" + _index11 + "]",
1191
1060
  expected: "AutoBePrisma.IPlainField",
1192
1061
  value: elem
1193
1062
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1198,12 +1067,12 @@ const collection = {
1198
1067
  path: _path + ".uniqueIndexes",
1199
1068
  expected: "Array<AutoBePrisma.IUniqueIndex>",
1200
1069
  value: input.uniqueIndexes
1201
- })) && input.uniqueIndexes.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1202
- path: _path + ".uniqueIndexes[" + _index16 + "]",
1070
+ })) && input.uniqueIndexes.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1071
+ path: _path + ".uniqueIndexes[" + _index12 + "]",
1203
1072
  expected: "AutoBePrisma.IUniqueIndex",
1204
1073
  value: elem
1205
- })) && _vo6(elem, _path + ".uniqueIndexes[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
1206
- path: _path + ".uniqueIndexes[" + _index16 + "]",
1074
+ })) && _vo6(elem, _path + ".uniqueIndexes[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
1075
+ path: _path + ".uniqueIndexes[" + _index12 + "]",
1207
1076
  expected: "AutoBePrisma.IUniqueIndex",
1208
1077
  value: elem
1209
1078
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1214,12 +1083,12 @@ const collection = {
1214
1083
  path: _path + ".plainIndexes",
1215
1084
  expected: "Array<AutoBePrisma.IPlainIndex>",
1216
1085
  value: input.plainIndexes
1217
- })) && input.plainIndexes.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1218
- path: _path + ".plainIndexes[" + _index17 + "]",
1086
+ })) && input.plainIndexes.map((elem, _index13) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1087
+ path: _path + ".plainIndexes[" + _index13 + "]",
1219
1088
  expected: "AutoBePrisma.IPlainIndex",
1220
1089
  value: elem
1221
- })) && _vo7(elem, _path + ".plainIndexes[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
1222
- path: _path + ".plainIndexes[" + _index17 + "]",
1090
+ })) && _vo7(elem, _path + ".plainIndexes[" + _index13 + "]", true && _exceptionable) || _report(_exceptionable, {
1091
+ path: _path + ".plainIndexes[" + _index13 + "]",
1223
1092
  expected: "AutoBePrisma.IPlainIndex",
1224
1093
  value: elem
1225
1094
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1230,12 +1099,12 @@ const collection = {
1230
1099
  path: _path + ".ginIndexes",
1231
1100
  expected: "Array<AutoBePrisma.IGinIndex>",
1232
1101
  value: input.ginIndexes
1233
- })) && input.ginIndexes.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1234
- path: _path + ".ginIndexes[" + _index18 + "]",
1102
+ })) && input.ginIndexes.map((elem, _index14) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1103
+ path: _path + ".ginIndexes[" + _index14 + "]",
1235
1104
  expected: "AutoBePrisma.IGinIndex",
1236
1105
  value: elem
1237
- })) && _vo8(elem, _path + ".ginIndexes[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
1238
- path: _path + ".ginIndexes[" + _index18 + "]",
1106
+ })) && _vo8(elem, _path + ".ginIndexes[" + _index14 + "]", true && _exceptionable) || _report(_exceptionable, {
1107
+ path: _path + ".ginIndexes[" + _index14 + "]",
1239
1108
  expected: "AutoBePrisma.IGinIndex",
1240
1109
  value: elem
1241
1110
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1244,11 +1113,11 @@ const collection = {
1244
1113
  value: input.ginIndexes
1245
1114
  })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
1246
1115
  path: _path + ".name",
1247
- expected: "string & Pattern<\"^[a-z][a-z0-9_]*$\">",
1116
+ expected: "string & SnakePattern",
1248
1117
  value: input.name
1249
1118
  })) || _report(_exceptionable, {
1250
1119
  path: _path + ".name",
1251
- expected: "(string & Pattern<\"^[a-z][a-z0-9_]*$\">)",
1120
+ expected: "(string & SnakePattern)",
1252
1121
  value: input.name
1253
1122
  }), "uuid" === input.type || _report(_exceptionable, {
1254
1123
  path: _path + ".type",
@@ -1260,11 +1129,11 @@ const collection = {
1260
1129
  value: input.description
1261
1130
  })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
1262
1131
  path: _path + ".name",
1263
- expected: "string & Pattern<\"^[a-z][a-z0-9_]*$\">",
1132
+ expected: "string & SnakePattern",
1264
1133
  value: input.name
1265
1134
  })) || _report(_exceptionable, {
1266
1135
  path: _path + ".name",
1267
- expected: "(string & Pattern<\"^[a-z][a-z0-9_]*$\">)",
1136
+ expected: "(string & SnakePattern)",
1268
1137
  value: input.name
1269
1138
  }), "uuid" === input.type || _report(_exceptionable, {
1270
1139
  path: _path + ".type",
@@ -1290,13 +1159,13 @@ const collection = {
1290
1159
  path: _path + ".nullable",
1291
1160
  expected: "boolean",
1292
1161
  value: input.nullable
1293
- })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-zA-Z_][a-zA-Z0-9_]*$").test(input.name) || _report(_exceptionable, {
1162
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
1294
1163
  path: _path + ".name",
1295
- expected: "string & Pattern<\"^[a-zA-Z_][a-zA-Z0-9_]*$\">",
1164
+ expected: "string & CamelPattern",
1296
1165
  value: input.name
1297
1166
  })) || _report(_exceptionable, {
1298
1167
  path: _path + ".name",
1299
- expected: "(string & Pattern<\"^[a-zA-Z_][a-zA-Z0-9_]*$\">)",
1168
+ expected: "(string & CamelPattern)",
1300
1169
  value: input.name
1301
1170
  }), "string" === typeof input.targetModel || _report(_exceptionable, {
1302
1171
  path: _path + ".targetModel",
@@ -1304,11 +1173,11 @@ const collection = {
1304
1173
  value: input.targetModel
1305
1174
  })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
1306
1175
  path: _path + ".name",
1307
- expected: "string & Pattern<\"^[a-z][a-z0-9_]*$\">",
1176
+ expected: "string & SnakePattern",
1308
1177
  value: input.name
1309
1178
  })) || _report(_exceptionable, {
1310
1179
  path: _path + ".name",
1311
- expected: "(string & Pattern<\"^[a-z][a-z0-9_]*$\">)",
1180
+ expected: "(string & SnakePattern)",
1312
1181
  value: input.name
1313
1182
  }), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
1314
1183
  path: _path + ".type",
@@ -1334,8 +1203,8 @@ const collection = {
1334
1203
  path: _path + ".fieldNames",
1335
1204
  expected: "Array<> & UniqueItems<true>",
1336
1205
  value: input.fieldNames
1337
- })) && input.fieldNames.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
1338
- path: _path + ".fieldNames[" + _index19 + "]",
1206
+ })) && input.fieldNames.map((elem, _index15) => "string" === typeof elem || _report(_exceptionable, {
1207
+ path: _path + ".fieldNames[" + _index15 + "]",
1339
1208
  expected: "string",
1340
1209
  value: elem
1341
1210
  })).every(flag => flag)) || _report(_exceptionable, {
@@ -1358,8 +1227,8 @@ const collection = {
1358
1227
  path: _path + ".fieldNames",
1359
1228
  expected: "Array<> & UniqueItems<true>",
1360
1229
  value: input.fieldNames
1361
- })) && input.fieldNames.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
1362
- path: _path + ".fieldNames[" + _index20 + "]",
1230
+ })) && input.fieldNames.map((elem, _index16) => "string" === typeof elem || _report(_exceptionable, {
1231
+ path: _path + ".fieldNames[" + _index16 + "]",
1363
1232
  expected: "string",
1364
1233
  value: elem
1365
1234
  })).every(flag => flag)) || _report(_exceptionable, {
@@ -1376,11 +1245,11 @@ const collection = {
1376
1245
  _report = __typia_transform__validateReport._validateReport(errors);
1377
1246
  ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
1378
1247
  path: _path + "",
1379
- expected: "IMakePrismaSchemaFileProps",
1248
+ expected: "IAutoBePrismaReviewApplication.IProps",
1380
1249
  value: input
1381
1250
  })) && _vo0(input, _path + "", true) || _report(true, {
1382
1251
  path: _path + "",
1383
- expected: "IMakePrismaSchemaFileProps",
1252
+ expected: "IAutoBePrismaReviewApplication.IProps",
1384
1253
  value: input
1385
1254
  }))(input, "$input", true);
1386
1255
  const success = 0 === errors.length;
@@ -1406,4 +1275,4 @@ const collection = {
1406
1275
  deepseek: claude,
1407
1276
  "3.1": claude,
1408
1277
  };
1409
- //# sourceMappingURL=orchestratePrismaSchemas.js.map
1278
+ //# sourceMappingURL=orchestratePrismaReview.js.map