@autobe/agent 0.28.1 → 0.29.1

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 (543) hide show
  1. package/lib/AutoBeAgent.js +5 -4
  2. package/lib/AutoBeAgent.js.map +1 -1
  3. package/lib/AutoBeMockAgent.js +1 -0
  4. package/lib/AutoBeMockAgent.js.map +1 -1
  5. package/lib/constants/AutoBeConfigConstant.d.ts +3 -1
  6. package/lib/constants/AutoBeSystemPromptConstant.d.ts +39 -26
  7. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  8. package/lib/context/AutoBeContext.d.ts +1 -1
  9. package/lib/factory/createAutoBeContext.js +13 -13
  10. package/lib/factory/createAutoBeContext.js.map +1 -1
  11. package/lib/index.mjs +43499 -23744
  12. package/lib/index.mjs.map +1 -1
  13. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +7 -2
  14. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +11 -21
  15. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
  16. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +2 -2
  17. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +12 -5
  18. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
  19. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +2 -2
  20. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +53 -50
  21. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
  22. package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -2
  23. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  24. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +855 -258
  25. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
  26. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +2 -14
  27. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  28. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +2 -9
  29. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
  30. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +110 -36
  31. package/lib/orchestrate/common/AutoBePreliminaryController.d.ts +40 -0
  32. package/lib/orchestrate/common/AutoBePreliminaryController.js +97 -0
  33. package/lib/orchestrate/common/AutoBePreliminaryController.js.map +1 -0
  34. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistory.d.ts +8 -0
  35. package/lib/orchestrate/{realize/histories/transformRealizeCorrectCastingHistories.js → common/histories/transformCommonCorrectCastingHistory.js} +16 -13
  36. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistory.js.map +1 -0
  37. package/lib/orchestrate/common/histories/transformPreliminaryHistory.d.ts +4 -0
  38. package/lib/orchestrate/common/histories/transformPreliminaryHistory.js +285 -0
  39. package/lib/orchestrate/common/histories/transformPreliminaryHistory.js.map +1 -0
  40. package/lib/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.d.ts → transformPreviousAndLatestCorrectHistory.d.ts} +1 -1
  41. package/lib/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.js → transformPreviousAndLatestCorrectHistory.js} +4 -4
  42. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js.map +1 -0
  43. package/lib/orchestrate/common/internal/complementPreliminaryCollection.d.ts +7 -0
  44. package/lib/orchestrate/common/internal/complementPreliminaryCollection.js +99 -0
  45. package/lib/orchestrate/common/internal/complementPreliminaryCollection.js.map +1 -0
  46. package/lib/orchestrate/common/internal/createPreliminaryCollection.d.ts +3 -0
  47. package/lib/orchestrate/common/internal/createPreliminaryCollection.js +20 -0
  48. package/lib/orchestrate/common/internal/createPreliminaryCollection.js.map +1 -0
  49. package/lib/orchestrate/common/internal/validatePreliminary.d.ts +5 -0
  50. package/lib/orchestrate/common/internal/validatePreliminary.js +217 -0
  51. package/lib/orchestrate/common/internal/validatePreliminary.js.map +1 -0
  52. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +10 -22
  53. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
  54. package/lib/orchestrate/common/orchestratePreliminary.d.ts +12 -0
  55. package/lib/orchestrate/common/orchestratePreliminary.js +231 -0
  56. package/lib/orchestrate/common/orchestratePreliminary.js.map +1 -0
  57. package/lib/orchestrate/common/structures/AutoBePreliminaryRequest.d.ts +16 -0
  58. package/lib/orchestrate/{realize/structures/IAutoBeRealizeAuthorizationApplication.js → common/structures/AutoBePreliminaryRequest.js} +1 -1
  59. package/lib/orchestrate/common/structures/AutoBePreliminaryRequest.js.map +1 -0
  60. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +1 -4
  61. package/lib/orchestrate/common/structures/IAutoBeOrchestrateResult.d.ts +9 -0
  62. package/lib/orchestrate/{interface/structures/IAutoBeInterfacePrerequisitesApplication.js → common/structures/IAutoBeOrchestrateResult.js} +1 -1
  63. package/lib/orchestrate/common/structures/IAutoBeOrchestrateResult.js.map +1 -0
  64. package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.d.ts +8 -0
  65. package/lib/orchestrate/{interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js → common/structures/IAutoBePreliminaryCollection.js} +1 -1
  66. package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.js.map +1 -0
  67. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.d.ts +27 -0
  68. package/lib/orchestrate/{interface/structures/IAutoBeInterfaceOperationsReviewApplication.js → common/structures/IAutoBePreliminaryGetAnalysisFiles.js} +1 -1
  69. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.js.map +1 -0
  70. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.d.ts +28 -0
  71. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.js +3 -0
  72. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.js.map +1 -0
  73. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.d.ts +27 -0
  74. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.js +3 -0
  75. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.js.map +1 -0
  76. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.d.ts +27 -0
  77. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.js +3 -0
  78. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.js.map +1 -0
  79. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.d.ts +10 -0
  80. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.js +70 -0
  81. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.js.map +1 -0
  82. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistory.d.ts +3 -0
  83. package/lib/orchestrate/interface/histories/{transformInterfaceCommonHistories.js → transformInterfaceCommonHistory.js} +4 -4
  84. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistory.js.map +1 -0
  85. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.d.ts +9 -0
  86. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.js +60 -0
  87. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.js.map +1 -0
  88. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.d.ts +12 -0
  89. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.js +63 -0
  90. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.js.map +1 -0
  91. package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.d.ts +7 -0
  92. package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.js +36 -0
  93. package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.js.map +1 -0
  94. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.d.ts +6 -0
  95. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.js +68 -0
  96. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.js.map +1 -0
  97. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.d.ts +9 -0
  98. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.js +72 -0
  99. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.js.map +1 -0
  100. package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.d.ts +7 -0
  101. package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.js +38 -0
  102. package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.js.map +1 -0
  103. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.d.ts +8 -0
  104. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.js +73 -0
  105. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.js.map +1 -0
  106. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.d.ts +11 -0
  107. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.js +95 -0
  108. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.js.map +1 -0
  109. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.d.ts +5 -0
  110. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.js +54 -0
  111. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.js.map +1 -0
  112. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.d.ts +12 -0
  113. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.js +75 -0
  114. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.js.map +1 -0
  115. package/lib/orchestrate/interface/orchestrateInterface.js +90 -46
  116. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
  117. package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.d.ts +6 -0
  118. package/lib/orchestrate/interface/{orchestrateInterfaceAuthorizations.js → orchestrateInterfaceAuthorization.js} +1370 -226
  119. package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js.map +1 -0
  120. package/lib/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -3
  121. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +2807 -532
  122. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  123. package/lib/orchestrate/interface/{orchestrateInterfaceEndpoints.d.ts → orchestrateInterfaceEndpoint.d.ts} +1 -1
  124. package/lib/orchestrate/interface/orchestrateInterfaceEndpoint.js +1356 -0
  125. package/lib/orchestrate/interface/orchestrateInterfaceEndpoint.js.map +1 -0
  126. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.d.ts +4 -0
  127. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +1337 -0
  128. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js.map +1 -0
  129. package/lib/orchestrate/interface/{orchestrateInterfaceGroups.d.ts → orchestrateInterfaceGroup.d.ts} +1 -2
  130. package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +621 -0
  131. package/lib/orchestrate/interface/orchestrateInterfaceGroup.js.map +1 -0
  132. package/lib/orchestrate/interface/{orchestrateInterfaceOperations.d.ts → orchestrateInterfaceOperation.d.ts} +1 -2
  133. package/lib/orchestrate/interface/{orchestrateInterfaceOperations.js → orchestrateInterfaceOperation.js} +1275 -216
  134. package/lib/orchestrate/interface/orchestrateInterfaceOperation.js.map +1 -0
  135. package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.d.ts +4 -0
  136. package/lib/orchestrate/interface/{orchestrateInterfaceOperationsReview.js → orchestrateInterfaceOperationReview.js} +1421 -247
  137. package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js.map +1 -0
  138. package/lib/orchestrate/interface/{orchestrateInterfacePrerequisites.d.ts → orchestrateInterfacePrerequisite.d.ts} +1 -1
  139. package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +2159 -0
  140. package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js.map +1 -0
  141. package/lib/orchestrate/interface/{orchestrateInterfaceSchemas.d.ts → orchestrateInterfaceSchema.d.ts} +1 -2
  142. package/lib/orchestrate/interface/{orchestrateInterfaceSchemas.js → orchestrateInterfaceSchema.js} +2550 -546
  143. package/lib/orchestrate/interface/orchestrateInterfaceSchema.js.map +1 -0
  144. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +7 -17
  145. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
  146. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +1 -0
  147. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +2823 -548
  148. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
  149. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +56 -5
  150. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +57 -10
  151. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +55 -10
  152. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.d.ts +96 -0
  153. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.js +3 -0
  154. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.js.map +1 -0
  155. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +6 -82
  156. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +58 -13
  157. package/lib/orchestrate/interface/structures/{IAutoBeInterfaceOperationsReviewApplication.d.ts → IAutoBeInterfaceOperationReviewApplication.d.ts} +58 -28
  158. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.js +3 -0
  159. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.js.map +1 -0
  160. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.d.ts +98 -0
  161. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.js +3 -0
  162. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.js.map +1 -0
  163. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +56 -15
  164. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.d.ts +62 -22
  165. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.d.ts +60 -21
  166. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.d.ts +61 -19
  167. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +29 -23
  168. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
  169. package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js +67 -61
  170. package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -1
  171. package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +2 -1
  172. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +52 -25
  173. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
  174. package/lib/orchestrate/interface/utils/OperationValidator.js +59 -1
  175. package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -1
  176. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.d.ts +6 -0
  177. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js +98 -0
  178. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js.map +1 -0
  179. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.d.ts +7 -0
  180. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.js +31 -0
  181. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.js.map +1 -0
  182. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.d.ts +7 -0
  183. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.js +38 -0
  184. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.js.map +1 -0
  185. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.d.ts +8 -0
  186. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js +79 -0
  187. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js.map +1 -0
  188. package/lib/orchestrate/prisma/orchestratePrisma.js +9 -6
  189. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
  190. package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
  191. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +8 -14
  192. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  193. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +2863 -1543
  194. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  195. package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +1 -1
  196. package/lib/orchestrate/prisma/orchestratePrismaReview.js +2886 -1566
  197. package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
  198. package/lib/orchestrate/prisma/{orchestratePrismaSchemas.d.ts → orchestratePrismaSchema.d.ts} +1 -1
  199. package/lib/orchestrate/prisma/orchestratePrismaSchema.js +3068 -0
  200. package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -0
  201. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +74 -76
  202. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +90 -72
  203. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +89 -66
  204. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.d.ts +9 -0
  205. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.js +79 -0
  206. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.js.map +1 -0
  207. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.d.ts +7 -0
  208. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.js +41 -0
  209. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.js.map +1 -0
  210. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.d.ts +12 -0
  211. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.js +67 -0
  212. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.js.map +1 -0
  213. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.d.ts +18 -0
  214. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.js +54 -0
  215. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.js.map +1 -0
  216. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +4 -2
  217. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +140 -106
  218. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
  219. package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.d.ts +3 -0
  220. package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.js +23 -0
  221. package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.js.map +1 -0
  222. package/lib/orchestrate/realize/orchestrateRealize.js +4 -4
  223. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  224. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +5 -1
  225. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +1288 -572
  226. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
  227. package/lib/orchestrate/realize/{orchestrateRealizeAuthorization.d.ts → orchestrateRealizeAuthorizationWrite.d.ts} +1 -1
  228. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +1410 -0
  229. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js.map +1 -0
  230. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +664 -140
  231. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  232. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +20 -65
  233. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
  234. package/lib/orchestrate/realize/orchestrateRealizeWrite.js +660 -135
  235. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
  236. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +79 -19
  237. package/lib/orchestrate/realize/structures/{IAutoBeRealizeAuthorizationApplication.d.ts → IAutoBeRealizeAuthorizationWriteApplication.d.ts} +60 -27
  238. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.js +3 -0
  239. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.js.map +1 -0
  240. package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +54 -5
  241. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +6 -14
  242. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +54 -6
  243. package/lib/orchestrate/realize/utils/generateRealizeScenario.d.ts +1 -3
  244. package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -7
  245. package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
  246. package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +3 -3
  247. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +23 -20
  248. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
  249. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.d.ts +4 -0
  250. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.js +36 -0
  251. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.js.map +1 -0
  252. package/lib/orchestrate/test/histories/transformTestScenarioHistory.d.ts +11 -0
  253. package/lib/orchestrate/test/histories/transformTestScenarioHistory.js +95 -0
  254. package/lib/orchestrate/test/histories/transformTestScenarioHistory.js.map +1 -0
  255. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.d.ts +10 -0
  256. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.js +67 -0
  257. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.js.map +1 -0
  258. package/lib/orchestrate/test/histories/{transformTestWriteHistories.d.ts → transformTestWriteHistory.d.ts} +4 -4
  259. package/lib/orchestrate/test/histories/{transformTestWriteHistories.js → transformTestWriteHistory.js} +79 -76
  260. package/lib/orchestrate/test/histories/transformTestWriteHistory.js.map +1 -0
  261. package/lib/orchestrate/test/orchestrateTestCorrect.js +13 -26
  262. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  263. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +3 -15
  264. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
  265. package/lib/orchestrate/test/orchestrateTestScenario.d.ts +1 -1
  266. package/lib/orchestrate/test/orchestrateTestScenario.js +1370 -316
  267. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  268. package/lib/orchestrate/test/orchestrateTestScenarioReview.d.ts +5 -3
  269. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +1067 -288
  270. package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
  271. package/lib/orchestrate/test/orchestrateTestWrite.js +8 -15
  272. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  273. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +66 -4
  274. package/lib/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.d.ts +82 -14
  275. package/lib/structures/IAutoBeOrchestrateHistory.d.ts +5 -0
  276. package/lib/structures/IAutoBeOrchestrateHistory.js +3 -0
  277. package/lib/structures/IAutoBeOrchestrateHistory.js.map +1 -0
  278. package/lib/utils/executeCachedBatch.d.ts +5 -1
  279. package/lib/utils/executeCachedBatch.js +23 -5
  280. package/lib/utils/executeCachedBatch.js.map +1 -1
  281. package/lib/utils/validateEmptyCode.js +2 -2
  282. package/lib/utils/validateEmptyCode.js.map +1 -1
  283. package/package.json +8 -6
  284. package/src/AutoBeAgent.ts +2 -1
  285. package/src/AutoBeMockAgent.ts +1 -0
  286. package/src/constants/AutoBeConfigConstant.ts +2 -0
  287. package/src/constants/AutoBeSystemPromptConstant.ts +39 -26
  288. package/src/context/AutoBeContext.ts +1 -1
  289. package/src/factory/createAutoBeContext.ts +10 -5
  290. package/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.ts +17 -28
  291. package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +12 -6
  292. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +62 -61
  293. package/src/orchestrate/analyze/orchestrateAnalyze.ts +2 -0
  294. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +97 -48
  295. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +3 -16
  296. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +1 -2
  297. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +114 -36
  298. package/src/orchestrate/common/AutoBePreliminaryController.ts +161 -0
  299. package/src/orchestrate/common/histories/transformCommonCorrectCastingHistory.ts +32 -0
  300. package/src/orchestrate/common/histories/transformPreliminaryHistory.ts +383 -0
  301. package/src/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.ts → transformPreviousAndLatestCorrectHistory.ts} +1 -1
  302. package/src/orchestrate/common/internal/complementPreliminaryCollection.ts +123 -0
  303. package/src/orchestrate/common/internal/createPreliminaryCollection.ts +32 -0
  304. package/src/orchestrate/common/internal/validatePreliminary.ts +315 -0
  305. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +8 -15
  306. package/src/orchestrate/common/orchestratePreliminary.ts +361 -0
  307. package/src/orchestrate/common/structures/AutoBePreliminaryRequest.ts +18 -0
  308. package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +1 -4
  309. package/src/orchestrate/common/structures/IAutoBeOrchestrateResult.ts +13 -0
  310. package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +9 -0
  311. package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.ts +29 -0
  312. package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +30 -0
  313. package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +29 -0
  314. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.ts +29 -0
  315. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.ts +77 -0
  316. package/src/orchestrate/interface/histories/{transformInterfaceCommonHistories.ts → transformInterfaceCommonHistory.ts} +1 -1
  317. package/src/orchestrate/interface/histories/{transformInterfaceGroupHistories.ts → transformInterfaceComplementHistory.ts} +35 -21
  318. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistory.ts +74 -0
  319. package/src/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.ts +40 -0
  320. package/src/orchestrate/interface/histories/transformInterfaceGroupHistory.ts +72 -0
  321. package/src/orchestrate/interface/histories/transformInterfaceOperationHistory.ts +79 -0
  322. package/src/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.ts +43 -0
  323. package/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.ts +89 -0
  324. package/src/orchestrate/interface/histories/transformInterfaceSchemaHistory.ts +105 -0
  325. package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.ts +56 -0
  326. package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.ts +88 -0
  327. package/src/orchestrate/interface/orchestrateInterface.ts +115 -51
  328. package/src/orchestrate/interface/{orchestrateInterfaceAuthorizations.ts → orchestrateInterfaceAuthorization.ts} +91 -67
  329. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +174 -78
  330. package/src/orchestrate/interface/orchestrateInterfaceEndpoint.ts +207 -0
  331. package/src/orchestrate/interface/orchestrateInterfaceEndpointReview.ts +139 -0
  332. package/src/orchestrate/interface/orchestrateInterfaceGroup.ts +153 -0
  333. package/src/orchestrate/interface/{orchestrateInterfaceOperations.ts → orchestrateInterfaceOperation.ts} +109 -86
  334. package/src/orchestrate/interface/orchestrateInterfaceOperationReview.ts +186 -0
  335. package/src/orchestrate/interface/{orchestrateInterfacePrerequisites.ts → orchestrateInterfacePrerequisite.ts} +123 -58
  336. package/src/orchestrate/interface/{orchestrateInterfaceSchemas.ts → orchestrateInterfaceSchema.ts} +96 -90
  337. package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +10 -11
  338. package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +127 -60
  339. package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +63 -5
  340. package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +67 -12
  341. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +63 -10
  342. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +106 -0
  343. package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +6 -84
  344. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +65 -13
  345. package/src/orchestrate/interface/structures/{IAutoBeInterfaceOperationsReviewApplication.ts → IAutoBeInterfaceOperationReviewApplication.ts} +65 -30
  346. package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +111 -0
  347. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +65 -15
  348. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.ts +71 -24
  349. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.ts +68 -23
  350. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.ts +69 -21
  351. package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +31 -23
  352. package/src/orchestrate/interface/utils/JsonSchemaNamingConvention.ts +73 -61
  353. package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +53 -26
  354. package/src/orchestrate/interface/utils/OperationValidator.ts +69 -1
  355. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistory.ts +109 -0
  356. package/src/orchestrate/prisma/histories/{transformPrismaCorrectHistories.ts → transformPrismaCorrectHistory.ts} +13 -22
  357. package/src/orchestrate/prisma/histories/transformPrismaReviewHistory.ts +42 -0
  358. package/src/orchestrate/prisma/histories/{transformPrismaSchemaHistories.ts → transformPrismaSchemaHistory.ts} +7 -8
  359. package/src/orchestrate/prisma/orchestratePrisma.ts +12 -17
  360. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +7 -15
  361. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +129 -64
  362. package/src/orchestrate/prisma/orchestratePrismaReview.ts +115 -59
  363. package/src/orchestrate/prisma/{orchestratePrismaSchemas.ts → orchestratePrismaSchema.ts} +92 -60
  364. package/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.ts +81 -76
  365. package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +97 -72
  366. package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +93 -66
  367. package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.ts +89 -0
  368. package/src/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.ts +45 -0
  369. package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.ts +85 -0
  370. package/src/orchestrate/realize/histories/transformRealizeCorrectHistory.ts +77 -0
  371. package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +152 -121
  372. package/src/orchestrate/realize/histories/{transformRealizeWriteAuthorizationsHistories.ts → transformRealizeWriteMembershipHistory.ts} +2 -2
  373. package/src/orchestrate/realize/orchestrateRealize.ts +4 -3
  374. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +155 -97
  375. package/src/orchestrate/realize/orchestrateRealizeAuthorizationWrite.ts +241 -0
  376. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +88 -86
  377. package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +17 -56
  378. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +82 -78
  379. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +85 -22
  380. package/src/orchestrate/realize/structures/{IAutoBeRealizeAuthorizationApplication.ts → IAutoBeRealizeAuthorizationWriteApplication.ts} +64 -29
  381. package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +58 -5
  382. package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.ts +6 -19
  383. package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +58 -6
  384. package/src/orchestrate/realize/utils/generateRealizeScenario.ts +2 -20
  385. package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +30 -30
  386. package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.ts +40 -0
  387. package/src/orchestrate/test/histories/transformTestScenarioHistory.ts +116 -0
  388. package/src/orchestrate/test/histories/transformTestScenarioReviewHistory.ts +85 -0
  389. package/src/orchestrate/test/histories/transformTestWriteHistory.ts +169 -0
  390. package/src/orchestrate/test/orchestrateTestCorrect.ts +13 -19
  391. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +5 -12
  392. package/src/orchestrate/test/orchestrateTestScenario.ts +143 -83
  393. package/src/orchestrate/test/orchestrateTestScenarioReview.ts +93 -76
  394. package/src/orchestrate/test/orchestrateTestWrite.ts +7 -7
  395. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +74 -4
  396. package/src/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.ts +89 -14
  397. package/src/structures/IAutoBeOrchestrateHistory.ts +6 -0
  398. package/src/utils/executeCachedBatch.ts +33 -7
  399. package/src/utils/validateEmptyCode.ts +2 -2
  400. package/lib/factory/AutoBeFunctionCallingMetricFactory.d.ts +0 -7
  401. package/lib/factory/AutoBeFunctionCallingMetricFactory.js +0 -35
  402. package/lib/factory/AutoBeFunctionCallingMetricFactory.js.map +0 -1
  403. package/lib/factory/AutoBeProcessAggregateFactory.d.ts +0 -13
  404. package/lib/factory/AutoBeProcessAggregateFactory.js +0 -100
  405. package/lib/factory/AutoBeProcessAggregateFactory.js.map +0 -1
  406. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.d.ts +0 -8
  407. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +0 -16
  408. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +0 -1
  409. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js.map +0 -1
  410. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +0 -3
  411. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js +0 -62
  412. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  413. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +0 -8
  414. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +0 -68
  415. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +0 -1
  416. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.d.ts +0 -3
  417. package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.js.map +0 -1
  418. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +0 -9
  419. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -74
  420. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  421. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +0 -10
  422. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -61
  423. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  424. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +0 -4
  425. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +0 -34
  426. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +0 -1
  427. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +0 -6
  428. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -52
  429. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  430. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +0 -8
  431. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -71
  432. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  433. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +0 -5
  434. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +0 -36
  435. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +0 -1
  436. package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.d.ts +0 -3
  437. package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js +0 -102
  438. package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js.map +0 -1
  439. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +0 -9
  440. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -74
  441. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  442. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.d.ts +0 -5
  443. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js +0 -51
  444. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js.map +0 -1
  445. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.d.ts +0 -11
  446. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js +0 -81
  447. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js.map +0 -1
  448. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +0 -4
  449. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +0 -1
  450. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +0 -508
  451. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  452. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -4
  453. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +0 -488
  454. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +0 -1
  455. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +0 -458
  456. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  457. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  458. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +0 -4
  459. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +0 -1
  460. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +0 -917
  461. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +0 -1
  462. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  463. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +0 -60
  464. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +0 -1
  465. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +0 -1
  466. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.d.ts +0 -52
  467. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.js.map +0 -1
  468. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +0 -6
  469. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +0 -95
  470. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
  471. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +0 -3
  472. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +0 -41
  473. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
  474. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +0 -8
  475. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +0 -62
  476. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +0 -1
  477. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +0 -8
  478. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +0 -78
  479. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
  480. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +0 -1678
  481. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  482. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +0 -5
  483. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js +0 -44
  484. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +0 -1
  485. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  486. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +0 -82
  487. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  488. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.d.ts +0 -5
  489. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +0 -1
  490. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -13
  491. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +0 -29
  492. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +0 -1
  493. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +0 -3
  494. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +0 -23
  495. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +0 -1
  496. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +0 -710
  497. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  498. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  499. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.d.ts +0 -4
  500. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +0 -33
  501. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +0 -1
  502. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +0 -10
  503. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +0 -101
  504. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +0 -1
  505. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.d.ts +0 -8
  506. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +0 -72
  507. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +0 -1
  508. package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +0 -1
  509. package/lib/utils/TokenUsageComputer.d.ts +0 -5
  510. package/lib/utils/TokenUsageComputer.js +0 -29
  511. package/lib/utils/TokenUsageComputer.js.map +0 -1
  512. package/src/factory/AutoBeFunctionCallingMetricFactory.ts +0 -44
  513. package/src/factory/AutoBeProcessAggregateFactory.ts +0 -141
  514. package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +0 -25
  515. package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +0 -72
  516. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +0 -75
  517. package/src/orchestrate/interface/histories/transformInterfaceComplementHistories.ts +0 -82
  518. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +0 -72
  519. package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +0 -40
  520. package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +0 -78
  521. package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +0 -44
  522. package/src/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.ts +0 -118
  523. package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +0 -80
  524. package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.ts +0 -55
  525. package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.ts +0 -90
  526. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +0 -152
  527. package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +0 -98
  528. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +0 -91
  529. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +0 -157
  530. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.ts +0 -65
  531. package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.ts +0 -58
  532. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +0 -104
  533. package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +0 -69
  534. package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +0 -52
  535. package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +0 -95
  536. package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +0 -30
  537. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +0 -46
  538. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +0 -185
  539. package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +0 -39
  540. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +0 -125
  541. package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +0 -89
  542. package/src/orchestrate/test/histories/transformTestWriteHistories.ts +0 -172
  543. package/src/utils/TokenUsageComputer.ts +0 -35
@@ -48,16 +48,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.orchestrateRealizeCorrect = orchestrateRealizeCorrect;
49
49
  const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
50
  const __typia_transform__llmApplicationFinalize = __importStar(require("typia/lib/internal/_llmApplicationFinalize.js"));
51
- const utils_1 = require("@autobe/utils");
52
51
  const typia_1 = __importDefault(require("typia"));
53
52
  const uuid_1 = require("uuid");
54
53
  const assertSchemaModel_1 = require("../../context/assertSchemaModel");
55
54
  const executeCachedBatch_1 = require("../../utils/executeCachedBatch");
56
55
  const validateEmptyCode_1 = require("../../utils/validateEmptyCode");
57
- const transformRealizeCorrectHistories_1 = require("./histories/transformRealizeCorrectHistories");
56
+ const AutoBePreliminaryController_1 = require("../common/AutoBePreliminaryController");
57
+ const transformRealizeCorrectHistory_1 = require("./histories/transformRealizeCorrectHistory");
58
58
  const compileRealizeFiles_1 = require("./internal/compileRealizeFiles");
59
59
  const filterDiagnostics_1 = require("./utils/filterDiagnostics");
60
- const getRealizeWriteCodeTemplate_1 = require("./utils/getRealizeWriteCodeTemplate");
61
60
  const getRealizeWriteDto_1 = require("./utils/getRealizeWriteDto");
62
61
  const replaceImportStatements_1 = require("./utils/replaceImportStatements");
63
62
  function orchestrateRealizeCorrect(ctx_1, scenarios_1, authorizations_1, functions_1, previousFailures_1, progress_1) {
@@ -120,7 +119,7 @@ function correct(ctx, props) {
120
119
  if (props.locations.length === 0) {
121
120
  return props.functions;
122
121
  }
123
- const corrected = yield (0, executeCachedBatch_1.executeCachedBatch)(props.locations.map((location) => () => __awaiter(this, void 0, void 0, function* () {
122
+ const corrected = yield (0, executeCachedBatch_1.executeCachedBatch)(ctx, props.locations.map((location) => () => __awaiter(this, void 0, void 0, function* () {
124
123
  var _a;
125
124
  const scenario = props.scenarios.find((el) => el.location === location);
126
125
  const func = props.functions.find((el) => el.location === location);
@@ -170,87 +169,244 @@ function correct(ctx, props) {
170
169
  }
171
170
  function step(ctx, props) {
172
171
  return __awaiter(this, void 0, void 0, function* () {
173
- var _a, _b, _c, _d, _e, _f;
174
- const pointer = {
175
- value: null,
176
- };
177
172
  const dto = yield (0, getRealizeWriteDto_1.getRealizeWriteDto)(ctx, props.scenario.operation);
178
- const { metric, tokenUsage } = yield ctx.conversate({
179
- source: "realizeCorrect",
180
- controller: createController({
181
- model: ctx.model,
182
- functionName: props.scenario.functionName,
183
- build: (next) => {
184
- pointer.value = next;
173
+ const preliminary = new AutoBePreliminaryController_1.AutoBePreliminaryController({
174
+ source: SOURCE,
175
+ application: {
176
+ version: "3.1",
177
+ components: {
178
+ schemas: {
179
+ "IAutoBeRealizeCorrectApplication.IProps": {
180
+ type: "object",
181
+ properties: {
182
+ thinking: {
183
+ type: "string",
184
+ description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on your\ncurrent state and explain your reasoning:\n\nFor preliminary requests (getAnalysisFiles, getPrismaSchemas, etc.):\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature completion."
185
+ },
186
+ request: {
187
+ oneOf: [
188
+ {
189
+ $ref: "#/components/schemas/IAutoBePreliminaryGetPrismaSchemas"
190
+ },
191
+ {
192
+ $ref: "#/components/schemas/IAutoBeRealizeCorrectApplication.IComplete"
193
+ }
194
+ ],
195
+ discriminator: {
196
+ propertyName: "type",
197
+ mapping: {
198
+ getPrismaSchemas: "#/components/schemas/IAutoBePreliminaryGetPrismaSchemas",
199
+ complete: "#/components/schemas/IAutoBeRealizeCorrectApplication.IComplete"
200
+ }
201
+ },
202
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getPrismaSchemas) or final error correction (complete). When preliminary\nreturns empty array, that type is removed from the union, physically\npreventing repeated calls."
203
+ }
204
+ },
205
+ required: [
206
+ "thinking",
207
+ "request"
208
+ ]
209
+ },
210
+ IAutoBePreliminaryGetPrismaSchemas: {
211
+ type: "object",
212
+ properties: {
213
+ type: {
214
+ "const": "getPrismaSchemas",
215
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPrismaSchemas\" indicates this is a preliminary\ndata request for Prisma schemas."
216
+ },
217
+ schemaNames: {
218
+ type: "array",
219
+ items: {
220
+ type: "string"
221
+ },
222
+ minItems: 1,
223
+ description: "List of Prisma table names to retrieve.\n\nTable names from the Prisma schema file representing database entities\n(e.g., \"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls."
224
+ }
225
+ },
226
+ required: [
227
+ "type",
228
+ "schemaNames"
229
+ ],
230
+ description: "Request to retrieve Prisma database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific Prisma table\nschemas needed for generating type-safe API operations."
231
+ },
232
+ "IAutoBeRealizeCorrectApplication.IComplete": {
233
+ type: "object",
234
+ properties: {
235
+ type: {
236
+ "const": "complete",
237
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request."
238
+ },
239
+ think: {
240
+ type: "string",
241
+ description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints"
242
+ },
243
+ draft: {
244
+ type: "string",
245
+ description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement."
246
+ },
247
+ revise: {
248
+ $ref: "#/components/schemas/IAutoBeRealizeCorrectApplication.IReviseProps",
249
+ description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements."
250
+ }
251
+ },
252
+ required: [
253
+ "type",
254
+ "think",
255
+ "draft",
256
+ "revise"
257
+ ],
258
+ description: "Request to correct provider implementation errors.\n\nExecutes three-phase error correction to resolve TypeScript compilation\nissues in provider functions. Applies systematic fixes following think \u2192\ndraft \u2192 revise pattern to ensure error-free production code."
259
+ },
260
+ "IAutoBeRealizeCorrectApplication.IReviseProps": {
261
+ type: "object",
262
+ properties: {
263
+ review: {
264
+ type: "string",
265
+ description: "Correction review and validation.\n\nAnalyzes the draft corrections to ensure:\n\n- All TypeScript errors are resolved\n- Business logic remains intact\n- AutoBE coding standards are maintained\n- No new errors are introduced\n- Performance and security are preserved"
266
+ },
267
+ final: {
268
+ oneOf: [
269
+ {
270
+ type: "null"
271
+ },
272
+ {
273
+ type: "string"
274
+ }
275
+ ],
276
+ description: "Final error-free implementation.\n\nThe complete, corrected code that passes all TypeScript compilation\nchecks.\n\nReturns `null` if the draft corrections are sufficient and need no\nfurther changes."
277
+ }
278
+ },
279
+ required: [
280
+ "review",
281
+ "final"
282
+ ]
283
+ }
284
+ }
185
285
  },
186
- }),
187
- histories: (0, transformRealizeCorrectHistories_1.transformRealizeCorrectHistories)({
286
+ functions: [
287
+ {
288
+ name: "process",
289
+ async: false,
290
+ parameters: [
291
+ {
292
+ name: "props",
293
+ description: " Request containing either preliminary data request or complete\ntask",
294
+ required: true,
295
+ schema: {
296
+ $ref: "#/components/schemas/IAutoBeRealizeCorrectApplication.IProps"
297
+ }
298
+ }
299
+ ],
300
+ description: "Process provider correction task or preliminary data requests.\n\nSystematically analyzes and corrects TypeScript compilation errors through\nthree-phase workflow (think \u2192 draft \u2192 revise). Maintains business logic\nintegrity while resolving all compilation issues."
301
+ }
302
+ ]
303
+ },
304
+ kinds: ["prismaSchemas"],
305
+ state: ctx.state(),
306
+ });
307
+ return yield preliminary.orchestrate(ctx, (out) => __awaiter(this, void 0, void 0, function* () {
308
+ var _a, _b, _c, _d, _e;
309
+ const pointer = {
310
+ value: null,
311
+ };
312
+ const result = yield ctx.conversate(Object.assign({ source: "realizeCorrect", controller: createController({
313
+ model: ctx.model,
314
+ functionName: props.scenario.functionName,
315
+ build: (next) => {
316
+ pointer.value = next;
317
+ },
318
+ preliminary,
319
+ }), enforceFunctionCall: true }, (0, transformRealizeCorrectHistory_1.transformRealizeCorrectHistory)(ctx, {
188
320
  state: ctx.state(),
189
321
  scenario: props.scenario,
190
322
  authorization: props.authorization,
323
+ function: props.function,
191
324
  dto,
192
325
  failures: [...props.previousFailures, props.failure],
193
326
  totalAuthorizations: props.totalAuthorizations,
194
- }),
195
- enforceFunctionCall: true,
196
- message: utils_1.StringUtil.trim `
197
- Correct the TypeScript code implementation.
198
-
199
- The instruction to write at first was as follows, and the code you received is the code you wrote according to this instruction.
200
- When modifying, modify the entire code, but not the import statement.
201
-
202
- Below is template code you wrote:
203
-
204
- ${(0, getRealizeWriteCodeTemplate_1.getRealizeWriteCodeTemplate)({
205
- scenario: props.scenario,
206
- schemas: ctx.state().interface.document.components.schemas,
207
- operation: props.scenario.operation,
208
- authorization: (_a = props.authorization) !== null && _a !== void 0 ? _a : null,
209
- })}
210
-
211
- Current code is as follows:
212
- \`\`\`typescript
213
- ${props.function.content}
214
- \`\`\`
215
- `,
216
- });
217
- if (pointer.value === null) {
218
- return null;
219
- }
220
- pointer.value.draft = yield (0, replaceImportStatements_1.replaceImportStatements)(ctx, {
221
- operation: props.scenario.operation,
222
- schemas: ctx.state().interface.document.components.schemas,
223
- code: pointer.value.draft,
224
- decoratorType: (_b = props.authorization) === null || _b === void 0 ? void 0 : _b.payload.name,
225
- });
226
- if (pointer.value.revise.final)
227
- pointer.value.revise.final = yield (0, replaceImportStatements_1.replaceImportStatements)(ctx, {
228
- operation: props.scenario.operation,
229
- schemas: ctx.state().interface.document.components.schemas,
230
- code: pointer.value.revise.final,
231
- decoratorType: (_c = props.authorization) === null || _c === void 0 ? void 0 : _c.payload.name,
232
- });
233
- const event = {
234
- type: "realizeCorrect",
235
- kind: "overall",
236
- id: (0, uuid_1.v7)(),
237
- location: props.scenario.location,
238
- content: (_d = pointer.value.revise.final) !== null && _d !== void 0 ? _d : pointer.value.draft,
239
- metric,
240
- tokenUsage,
241
- completed: ++props.progress.completed,
242
- total: props.progress.total,
243
- step: (_f = (_e = ctx.state().analyze) === null || _e === void 0 ? void 0 : _e.step) !== null && _f !== void 0 ? _f : 0,
244
- created_at: new Date().toISOString(),
245
- };
246
- ctx.dispatch(event);
247
- return event;
327
+ preliminary,
328
+ })));
329
+ if (pointer.value !== null) {
330
+ pointer.value.draft = yield (0, replaceImportStatements_1.replaceImportStatements)(ctx, {
331
+ operation: props.scenario.operation,
332
+ schemas: ctx.state().interface.document.components.schemas,
333
+ code: pointer.value.draft,
334
+ decoratorType: (_a = props.authorization) === null || _a === void 0 ? void 0 : _a.payload.name,
335
+ });
336
+ if (pointer.value.revise.final)
337
+ pointer.value.revise.final = yield (0, replaceImportStatements_1.replaceImportStatements)(ctx, {
338
+ operation: props.scenario.operation,
339
+ schemas: ctx.state().interface.document.components.schemas,
340
+ code: pointer.value.revise.final,
341
+ decoratorType: (_b = props.authorization) === null || _b === void 0 ? void 0 : _b.payload.name,
342
+ });
343
+ const event = {
344
+ type: "realizeCorrect",
345
+ kind: "overall",
346
+ id: (0, uuid_1.v7)(),
347
+ location: props.scenario.location,
348
+ content: (_c = pointer.value.revise.final) !== null && _c !== void 0 ? _c : pointer.value.draft,
349
+ metric: result.metric,
350
+ tokenUsage: result.tokenUsage,
351
+ completed: ++props.progress.completed,
352
+ total: props.progress.total,
353
+ step: (_e = (_d = ctx.state().analyze) === null || _d === void 0 ? void 0 : _d.step) !== null && _e !== void 0 ? _e : 0,
354
+ created_at: new Date().toISOString(),
355
+ };
356
+ ctx.dispatch(event);
357
+ return out(result)(event);
358
+ }
359
+ return out(result)(null);
360
+ }));
248
361
  });
249
362
  }
250
363
  function createController(props) {
251
364
  (0, assertSchemaModel_1.assertSchemaModel)(props.model);
252
365
  const validate = (input) => {
253
- const result = (() => { const _io0 = input => "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.think || _report(_exceptionable, {
366
+ const result = (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getPrismaSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io3(input.revise)); const _io3 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _iu0 = input => (() => {
367
+ if ("getPrismaSchemas" === input.type)
368
+ return _io1(input);
369
+ else if ("complete" === input.type)
370
+ return _io2(input);
371
+ else
372
+ return false;
373
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.thinking || _report(_exceptionable, {
374
+ path: _path + ".thinking",
375
+ expected: "string",
376
+ value: input.thinking
377
+ }), ("object" === typeof input.request && null !== input.request || _report(_exceptionable, {
378
+ path: _path + ".request",
379
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
380
+ value: input.request
381
+ })) && _vu0(input.request, _path + ".request", true && _exceptionable) || _report(_exceptionable, {
382
+ path: _path + ".request",
383
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
384
+ value: input.request
385
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["getPrismaSchemas" === input.type || _report(_exceptionable, {
386
+ path: _path + ".type",
387
+ expected: "\"getPrismaSchemas\"",
388
+ value: input.type
389
+ }), (Array.isArray(input.schemaNames) || _report(_exceptionable, {
390
+ path: _path + ".schemaNames",
391
+ expected: "(Array<string> & MinItems<1>)",
392
+ value: input.schemaNames
393
+ })) && ((1 <= input.schemaNames.length || _report(_exceptionable, {
394
+ path: _path + ".schemaNames",
395
+ expected: "Array<> & MinItems<1>",
396
+ value: input.schemaNames
397
+ })) && input.schemaNames.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
398
+ path: _path + ".schemaNames[" + _index2 + "]",
399
+ expected: "string",
400
+ value: elem
401
+ })).every(flag => flag)) || _report(_exceptionable, {
402
+ path: _path + ".schemaNames",
403
+ expected: "(Array<string> & MinItems<1>)",
404
+ value: input.schemaNames
405
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["complete" === input.type || _report(_exceptionable, {
406
+ path: _path + ".type",
407
+ expected: "\"complete\"",
408
+ value: input.type
409
+ }), "string" === typeof input.think || _report(_exceptionable, {
254
410
  path: _path + ".think",
255
411
  expected: "string",
256
412
  value: input.think
@@ -262,11 +418,11 @@ function createController(props) {
262
418
  path: _path + ".revise",
263
419
  expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
264
420
  value: input.revise
265
- })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
421
+ })) && _vo3(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
266
422
  path: _path + ".revise",
267
423
  expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
268
424
  value: input.revise
269
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
425
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
270
426
  path: _path + ".review",
271
427
  expected: "string",
272
428
  value: input.review
@@ -274,7 +430,18 @@ function createController(props) {
274
430
  path: _path + ".final",
275
431
  expected: "(null | string)",
276
432
  value: input.final
277
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
433
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
434
+ if ("getPrismaSchemas" === input.type)
435
+ return _vo1(input, _path, true && _exceptionable);
436
+ else if ("complete" === input.type)
437
+ return _vo2(input, _path, true && _exceptionable);
438
+ else
439
+ return _report(_exceptionable, {
440
+ path: _path,
441
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
442
+ value: input
443
+ });
444
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
278
445
  if (false === __is(input)) {
279
446
  errors = [];
280
447
  _report = __typia_transform__validateReport._validateReport(errors);
@@ -304,10 +471,15 @@ function createController(props) {
304
471
  }; })()(input);
305
472
  if (result.success === false)
306
473
  return result;
474
+ else if (result.data.request.type !== "complete")
475
+ return props.preliminary.validate({
476
+ thinking: result.data.thinking,
477
+ request: result.data.request,
478
+ });
307
479
  const errors = (0, validateEmptyCode_1.validateEmptyCode)({
308
480
  functionName: props.functionName,
309
- draft: result.data.draft,
310
- revise: result.data.revise,
481
+ draft: result.data.request.draft,
482
+ revise: result.data.request.revise,
311
483
  });
312
484
  return errors.length
313
485
  ? {
@@ -324,11 +496,12 @@ function createController(props) {
324
496
  : "claude"](validate);
325
497
  return {
326
498
  protocol: "class",
327
- name: "Write code",
499
+ name: SOURCE,
328
500
  application,
329
501
  execute: {
330
- correct: (next) => {
331
- props.build(next);
502
+ process: (next) => {
503
+ if (next.request.type === "complete")
504
+ props.build(next.request);
332
505
  },
333
506
  },
334
507
  };
@@ -344,31 +517,95 @@ const collection = {
344
517
  },
345
518
  functions: [
346
519
  {
347
- name: "correct",
520
+ name: "process",
348
521
  parameters: {
349
- description: " Three-phase correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}",
522
+ description: " Request containing either preliminary data request or complete\ntask\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}",
350
523
  type: "object",
351
524
  properties: {
352
- think: {
353
- description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
354
- type: "string"
355
- },
356
- draft: {
357
- description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
525
+ thinking: {
526
+ description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on your\ncurrent state and explain your reasoning:\n\nFor preliminary requests (getAnalysisFiles, getPrismaSchemas, etc.):\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature completion.",
358
527
  type: "string"
359
528
  },
360
- revise: {
361
- description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements.",
362
- $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
529
+ request: {
530
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getPrismaSchemas) or final error correction (complete). When preliminary\nreturns empty array, that type is removed from the union, physically\npreventing repeated calls.",
531
+ anyOf: [
532
+ {
533
+ $ref: "#/$defs/IAutoBePreliminaryGetPrismaSchemas"
534
+ },
535
+ {
536
+ $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IComplete"
537
+ }
538
+ ],
539
+ "x-discriminator": {
540
+ propertyName: "type",
541
+ mapping: {
542
+ getPrismaSchemas: "#/$defs/IAutoBePreliminaryGetPrismaSchemas",
543
+ complete: "#/$defs/IAutoBeRealizeCorrectApplication.IComplete"
544
+ }
545
+ }
363
546
  }
364
547
  },
365
548
  required: [
366
- "think",
367
- "draft",
368
- "revise"
549
+ "thinking",
550
+ "request"
369
551
  ],
370
552
  additionalProperties: false,
371
553
  $defs: {
554
+ IAutoBePreliminaryGetPrismaSchemas: {
555
+ description: "Request to retrieve Prisma database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific Prisma table\nschemas needed for generating type-safe API operations.",
556
+ type: "object",
557
+ properties: {
558
+ type: {
559
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPrismaSchemas\" indicates this is a preliminary\ndata request for Prisma schemas.",
560
+ type: "string",
561
+ "enum": [
562
+ "getPrismaSchemas"
563
+ ]
564
+ },
565
+ schemaNames: {
566
+ description: "List of Prisma table names to retrieve.\n\nTable names from the Prisma schema file representing database entities\n(e.g., \"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls.\n\n\n@minItems 1",
567
+ type: "array",
568
+ items: {
569
+ type: "string"
570
+ }
571
+ }
572
+ },
573
+ required: [
574
+ "type",
575
+ "schemaNames"
576
+ ]
577
+ },
578
+ "IAutoBeRealizeCorrectApplication.IComplete": {
579
+ description: "Request to correct provider implementation errors.\n\nExecutes three-phase error correction to resolve TypeScript compilation\nissues in provider functions. Applies systematic fixes following think \u2192\ndraft \u2192 revise pattern to ensure error-free production code.",
580
+ type: "object",
581
+ properties: {
582
+ type: {
583
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request.",
584
+ type: "string",
585
+ "enum": [
586
+ "complete"
587
+ ]
588
+ },
589
+ think: {
590
+ description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
591
+ type: "string"
592
+ },
593
+ draft: {
594
+ description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
595
+ type: "string"
596
+ },
597
+ revise: {
598
+ description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements.",
599
+ $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
600
+ }
601
+ },
602
+ required: [
603
+ "type",
604
+ "think",
605
+ "draft",
606
+ "revise"
607
+ ]
608
+ },
372
609
  "IAutoBeRealizeCorrectApplication.IReviseProps": {
373
610
  type: "object",
374
611
  properties: {
@@ -395,8 +632,51 @@ const collection = {
395
632
  }
396
633
  }
397
634
  },
398
- description: "Systematically analyze and correct TypeScript compilation errors.\n\nImplements a three-phase workflow (think \u2192 draft \u2192 revise) that balances\nefficiency for simple errors with thoroughness for complex problems.",
399
- validate: (() => { const _io0 = input => "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.think || _report(_exceptionable, {
635
+ description: "Process provider correction task or preliminary data requests.\n\nSystematically analyzes and corrects TypeScript compilation errors through\nthree-phase workflow (think \u2192 draft \u2192 revise). Maintains business logic\nintegrity while resolving all compilation issues.",
636
+ validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getPrismaSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io3(input.revise)); const _io3 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _iu0 = input => (() => {
637
+ if ("getPrismaSchemas" === input.type)
638
+ return _io1(input);
639
+ else if ("complete" === input.type)
640
+ return _io2(input);
641
+ else
642
+ return false;
643
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.thinking || _report(_exceptionable, {
644
+ path: _path + ".thinking",
645
+ expected: "string",
646
+ value: input.thinking
647
+ }), ("object" === typeof input.request && null !== input.request || _report(_exceptionable, {
648
+ path: _path + ".request",
649
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
650
+ value: input.request
651
+ })) && _vu0(input.request, _path + ".request", true && _exceptionable) || _report(_exceptionable, {
652
+ path: _path + ".request",
653
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
654
+ value: input.request
655
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["getPrismaSchemas" === input.type || _report(_exceptionable, {
656
+ path: _path + ".type",
657
+ expected: "\"getPrismaSchemas\"",
658
+ value: input.type
659
+ }), (Array.isArray(input.schemaNames) || _report(_exceptionable, {
660
+ path: _path + ".schemaNames",
661
+ expected: "(Array<string> & MinItems<1>)",
662
+ value: input.schemaNames
663
+ })) && ((1 <= input.schemaNames.length || _report(_exceptionable, {
664
+ path: _path + ".schemaNames",
665
+ expected: "Array<> & MinItems<1>",
666
+ value: input.schemaNames
667
+ })) && input.schemaNames.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
668
+ path: _path + ".schemaNames[" + _index2 + "]",
669
+ expected: "string",
670
+ value: elem
671
+ })).every(flag => flag)) || _report(_exceptionable, {
672
+ path: _path + ".schemaNames",
673
+ expected: "(Array<string> & MinItems<1>)",
674
+ value: input.schemaNames
675
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["complete" === input.type || _report(_exceptionable, {
676
+ path: _path + ".type",
677
+ expected: "\"complete\"",
678
+ value: input.type
679
+ }), "string" === typeof input.think || _report(_exceptionable, {
400
680
  path: _path + ".think",
401
681
  expected: "string",
402
682
  value: input.think
@@ -408,11 +688,11 @@ const collection = {
408
688
  path: _path + ".revise",
409
689
  expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
410
690
  value: input.revise
411
- })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
691
+ })) && _vo3(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
412
692
  path: _path + ".revise",
413
693
  expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
414
694
  value: input.revise
415
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
695
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
416
696
  path: _path + ".review",
417
697
  expected: "string",
418
698
  value: input.review
@@ -420,7 +700,18 @@ const collection = {
420
700
  path: _path + ".final",
421
701
  expected: "(null | string)",
422
702
  value: input.final
423
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
703
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
704
+ if ("getPrismaSchemas" === input.type)
705
+ return _vo1(input, _path, true && _exceptionable);
706
+ else if ("complete" === input.type)
707
+ return _vo2(input, _path, true && _exceptionable);
708
+ else
709
+ return _report(_exceptionable, {
710
+ path: _path,
711
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
712
+ value: input
713
+ });
714
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
424
715
  if (false === __is(input)) {
425
716
  errors = [];
426
717
  _report = __typia_transform__validateReport._validateReport(errors);
@@ -453,7 +744,7 @@ const collection = {
453
744
  };
454
745
  __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
455
746
  validate: {
456
- correct: validate,
747
+ process: validate,
457
748
  },
458
749
  }), { equals: false }));
459
750
  return application;
@@ -467,31 +758,90 @@ const collection = {
467
758
  },
468
759
  functions: [
469
760
  {
470
- name: "correct",
761
+ name: "process",
471
762
  parameters: {
472
- description: " Three-phase correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}",
763
+ description: " Request containing either preliminary data request or complete\ntask\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}",
473
764
  type: "object",
474
765
  properties: {
475
- think: {
476
- description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
766
+ thinking: {
767
+ description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on your\ncurrent state and explain your reasoning:\n\nFor preliminary requests (getAnalysisFiles, getPrismaSchemas, etc.):\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature completion.",
477
768
  type: "string"
478
769
  },
479
- draft: {
480
- description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
481
- type: "string"
482
- },
483
- revise: {
484
- description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements.",
485
- $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
770
+ request: {
771
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getPrismaSchemas) or final error correction (complete). When preliminary\nreturns empty array, that type is removed from the union, physically\npreventing repeated calls.",
772
+ oneOf: [
773
+ {
774
+ $ref: "#/$defs/IAutoBePreliminaryGetPrismaSchemas"
775
+ },
776
+ {
777
+ $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IComplete"
778
+ }
779
+ ],
780
+ discriminator: {
781
+ propertyName: "type",
782
+ mapping: {
783
+ getPrismaSchemas: "#/$defs/IAutoBePreliminaryGetPrismaSchemas",
784
+ complete: "#/$defs/IAutoBeRealizeCorrectApplication.IComplete"
785
+ }
786
+ }
486
787
  }
487
788
  },
488
789
  required: [
489
- "think",
490
- "draft",
491
- "revise"
790
+ "thinking",
791
+ "request"
492
792
  ],
493
793
  additionalProperties: false,
494
794
  $defs: {
795
+ IAutoBePreliminaryGetPrismaSchemas: {
796
+ description: "Request to retrieve Prisma database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific Prisma table\nschemas needed for generating type-safe API operations.",
797
+ type: "object",
798
+ properties: {
799
+ type: {
800
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPrismaSchemas\" indicates this is a preliminary\ndata request for Prisma schemas.",
801
+ "const": "getPrismaSchemas"
802
+ },
803
+ schemaNames: {
804
+ description: "List of Prisma table names to retrieve.\n\nTable names from the Prisma schema file representing database entities\n(e.g., \"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls.",
805
+ type: "array",
806
+ items: {
807
+ type: "string"
808
+ },
809
+ minItems: 1
810
+ }
811
+ },
812
+ required: [
813
+ "type",
814
+ "schemaNames"
815
+ ]
816
+ },
817
+ "IAutoBeRealizeCorrectApplication.IComplete": {
818
+ description: "Request to correct provider implementation errors.\n\nExecutes three-phase error correction to resolve TypeScript compilation\nissues in provider functions. Applies systematic fixes following think \u2192\ndraft \u2192 revise pattern to ensure error-free production code.",
819
+ type: "object",
820
+ properties: {
821
+ type: {
822
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request.",
823
+ "const": "complete"
824
+ },
825
+ think: {
826
+ description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
827
+ type: "string"
828
+ },
829
+ draft: {
830
+ description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
831
+ type: "string"
832
+ },
833
+ revise: {
834
+ description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements.",
835
+ $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
836
+ }
837
+ },
838
+ required: [
839
+ "type",
840
+ "think",
841
+ "draft",
842
+ "revise"
843
+ ]
844
+ },
495
845
  "IAutoBeRealizeCorrectApplication.IReviseProps": {
496
846
  type: "object",
497
847
  properties: {
@@ -518,8 +868,51 @@ const collection = {
518
868
  }
519
869
  }
520
870
  },
521
- description: "Systematically analyze and correct TypeScript compilation errors.\n\nImplements a three-phase workflow (think \u2192 draft \u2192 revise) that balances\nefficiency for simple errors with thoroughness for complex problems.",
522
- validate: (() => { const _io0 = input => "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.think || _report(_exceptionable, {
871
+ description: "Process provider correction task or preliminary data requests.\n\nSystematically analyzes and corrects TypeScript compilation errors through\nthree-phase workflow (think \u2192 draft \u2192 revise). Maintains business logic\nintegrity while resolving all compilation issues.",
872
+ validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getPrismaSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io3(input.revise)); const _io3 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _iu0 = input => (() => {
873
+ if ("getPrismaSchemas" === input.type)
874
+ return _io1(input);
875
+ else if ("complete" === input.type)
876
+ return _io2(input);
877
+ else
878
+ return false;
879
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.thinking || _report(_exceptionable, {
880
+ path: _path + ".thinking",
881
+ expected: "string",
882
+ value: input.thinking
883
+ }), ("object" === typeof input.request && null !== input.request || _report(_exceptionable, {
884
+ path: _path + ".request",
885
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
886
+ value: input.request
887
+ })) && _vu0(input.request, _path + ".request", true && _exceptionable) || _report(_exceptionable, {
888
+ path: _path + ".request",
889
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
890
+ value: input.request
891
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["getPrismaSchemas" === input.type || _report(_exceptionable, {
892
+ path: _path + ".type",
893
+ expected: "\"getPrismaSchemas\"",
894
+ value: input.type
895
+ }), (Array.isArray(input.schemaNames) || _report(_exceptionable, {
896
+ path: _path + ".schemaNames",
897
+ expected: "(Array<string> & MinItems<1>)",
898
+ value: input.schemaNames
899
+ })) && ((1 <= input.schemaNames.length || _report(_exceptionable, {
900
+ path: _path + ".schemaNames",
901
+ expected: "Array<> & MinItems<1>",
902
+ value: input.schemaNames
903
+ })) && input.schemaNames.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
904
+ path: _path + ".schemaNames[" + _index2 + "]",
905
+ expected: "string",
906
+ value: elem
907
+ })).every(flag => flag)) || _report(_exceptionable, {
908
+ path: _path + ".schemaNames",
909
+ expected: "(Array<string> & MinItems<1>)",
910
+ value: input.schemaNames
911
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["complete" === input.type || _report(_exceptionable, {
912
+ path: _path + ".type",
913
+ expected: "\"complete\"",
914
+ value: input.type
915
+ }), "string" === typeof input.think || _report(_exceptionable, {
523
916
  path: _path + ".think",
524
917
  expected: "string",
525
918
  value: input.think
@@ -531,11 +924,11 @@ const collection = {
531
924
  path: _path + ".revise",
532
925
  expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
533
926
  value: input.revise
534
- })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
927
+ })) && _vo3(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
535
928
  path: _path + ".revise",
536
929
  expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
537
930
  value: input.revise
538
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
931
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
539
932
  path: _path + ".review",
540
933
  expected: "string",
541
934
  value: input.review
@@ -543,7 +936,18 @@ const collection = {
543
936
  path: _path + ".final",
544
937
  expected: "(null | string)",
545
938
  value: input.final
546
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
939
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
940
+ if ("getPrismaSchemas" === input.type)
941
+ return _vo1(input, _path, true && _exceptionable);
942
+ else if ("complete" === input.type)
943
+ return _vo2(input, _path, true && _exceptionable);
944
+ else
945
+ return _report(_exceptionable, {
946
+ path: _path,
947
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
948
+ value: input
949
+ });
950
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
547
951
  if (false === __is(input)) {
548
952
  errors = [];
549
953
  _report = __typia_transform__validateReport._validateReport(errors);
@@ -576,7 +980,7 @@ const collection = {
576
980
  };
577
981
  __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
578
982
  validate: {
579
- correct: validate,
983
+ process: validate,
580
984
  },
581
985
  }), { equals: false }));
582
986
  return application;
@@ -590,31 +994,96 @@ const collection = {
590
994
  },
591
995
  functions: [
592
996
  {
593
- name: "correct",
997
+ name: "process",
594
998
  parameters: {
595
- description: " Three-phase correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}",
999
+ description: " Request containing either preliminary data request or complete\ntask\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeCorrectApplication.IProps}",
596
1000
  type: "object",
597
1001
  properties: {
598
- think: {
599
- description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
600
- type: "string"
601
- },
602
- draft: {
603
- description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
1002
+ thinking: {
1003
+ description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on your\ncurrent state and explain your reasoning:\n\nFor preliminary requests (getAnalysisFiles, getPrismaSchemas, etc.):\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature completion.",
604
1004
  type: "string"
605
1005
  },
606
- revise: {
607
- description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements.",
608
- $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
1006
+ request: {
1007
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getPrismaSchemas) or final error correction (complete). When preliminary\nreturns empty array, that type is removed from the union, physically\npreventing repeated calls.",
1008
+ anyOf: [
1009
+ {
1010
+ $ref: "#/$defs/IAutoBePreliminaryGetPrismaSchemas"
1011
+ },
1012
+ {
1013
+ $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IComplete"
1014
+ }
1015
+ ],
1016
+ "x-discriminator": {
1017
+ propertyName: "type",
1018
+ mapping: {
1019
+ getPrismaSchemas: "#/$defs/IAutoBePreliminaryGetPrismaSchemas",
1020
+ complete: "#/$defs/IAutoBeRealizeCorrectApplication.IComplete"
1021
+ }
1022
+ }
609
1023
  }
610
1024
  },
611
1025
  required: [
612
- "think",
613
- "draft",
614
- "revise"
1026
+ "thinking",
1027
+ "request"
615
1028
  ],
616
1029
  additionalProperties: false,
617
1030
  $defs: {
1031
+ IAutoBePreliminaryGetPrismaSchemas: {
1032
+ description: "Request to retrieve Prisma database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific Prisma table\nschemas needed for generating type-safe API operations.",
1033
+ type: "object",
1034
+ properties: {
1035
+ type: {
1036
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPrismaSchemas\" indicates this is a preliminary\ndata request for Prisma schemas.",
1037
+ type: "string",
1038
+ "enum": [
1039
+ "getPrismaSchemas"
1040
+ ]
1041
+ },
1042
+ schemaNames: {
1043
+ description: "List of Prisma table names to retrieve.\n\nTable names from the Prisma schema file representing database entities\n(e.g., \"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls.",
1044
+ type: "array",
1045
+ items: {
1046
+ type: "string"
1047
+ },
1048
+ minItems: 1
1049
+ }
1050
+ },
1051
+ required: [
1052
+ "type",
1053
+ "schemaNames"
1054
+ ]
1055
+ },
1056
+ "IAutoBeRealizeCorrectApplication.IComplete": {
1057
+ description: "Request to correct provider implementation errors.\n\nExecutes three-phase error correction to resolve TypeScript compilation\nissues in provider functions. Applies systematic fixes following think \u2192\ndraft \u2192 revise pattern to ensure error-free production code.",
1058
+ type: "object",
1059
+ properties: {
1060
+ type: {
1061
+ description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request.",
1062
+ type: "string",
1063
+ "enum": [
1064
+ "complete"
1065
+ ]
1066
+ },
1067
+ think: {
1068
+ description: "Initial error analysis and correction strategy.\n\nAnalyzes TypeScript compilation errors to understand:\n\n- Error patterns and root causes\n- Required fixes and their impact\n- Whether quick fixes or deep refactoring is needed\n- Prisma schema and API contract constraints",
1069
+ type: "string"
1070
+ },
1071
+ draft: {
1072
+ description: "First correction attempt.\n\nImplements the initial fixes identified in the think phase. For simple\nerrors (typos, missing imports), this may be the final solution. Complex\nerrors may require further refinement.",
1073
+ type: "string"
1074
+ },
1075
+ revise: {
1076
+ description: "Revision and finalization phase.\n\nReviews the draft corrections and produces the final, error-free code\nthat maintains all business requirements.",
1077
+ $ref: "#/$defs/IAutoBeRealizeCorrectApplication.IReviseProps"
1078
+ }
1079
+ },
1080
+ required: [
1081
+ "type",
1082
+ "think",
1083
+ "draft",
1084
+ "revise"
1085
+ ]
1086
+ },
618
1087
  "IAutoBeRealizeCorrectApplication.IReviseProps": {
619
1088
  type: "object",
620
1089
  properties: {
@@ -641,8 +1110,51 @@ const collection = {
641
1110
  }
642
1111
  }
643
1112
  },
644
- description: "Systematically analyze and correct TypeScript compilation errors.\n\nImplements a three-phase workflow (think \u2192 draft \u2192 revise) that balances\nefficiency for simple errors with thoroughness for complex problems.",
645
- validate: (() => { const _io0 = input => "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.think || _report(_exceptionable, {
1113
+ description: "Process provider correction task or preliminary data requests.\n\nSystematically analyzes and corrects TypeScript compilation errors through\nthree-phase workflow (think \u2192 draft \u2192 revise). Maintains business logic\nintegrity while resolving all compilation issues.",
1114
+ validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getPrismaSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io3(input.revise)); const _io3 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _iu0 = input => (() => {
1115
+ if ("getPrismaSchemas" === input.type)
1116
+ return _io1(input);
1117
+ else if ("complete" === input.type)
1118
+ return _io2(input);
1119
+ else
1120
+ return false;
1121
+ })(); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.thinking || _report(_exceptionable, {
1122
+ path: _path + ".thinking",
1123
+ expected: "string",
1124
+ value: input.thinking
1125
+ }), ("object" === typeof input.request && null !== input.request || _report(_exceptionable, {
1126
+ path: _path + ".request",
1127
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
1128
+ value: input.request
1129
+ })) && _vu0(input.request, _path + ".request", true && _exceptionable) || _report(_exceptionable, {
1130
+ path: _path + ".request",
1131
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
1132
+ value: input.request
1133
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["getPrismaSchemas" === input.type || _report(_exceptionable, {
1134
+ path: _path + ".type",
1135
+ expected: "\"getPrismaSchemas\"",
1136
+ value: input.type
1137
+ }), (Array.isArray(input.schemaNames) || _report(_exceptionable, {
1138
+ path: _path + ".schemaNames",
1139
+ expected: "(Array<string> & MinItems<1>)",
1140
+ value: input.schemaNames
1141
+ })) && ((1 <= input.schemaNames.length || _report(_exceptionable, {
1142
+ path: _path + ".schemaNames",
1143
+ expected: "Array<> & MinItems<1>",
1144
+ value: input.schemaNames
1145
+ })) && input.schemaNames.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
1146
+ path: _path + ".schemaNames[" + _index2 + "]",
1147
+ expected: "string",
1148
+ value: elem
1149
+ })).every(flag => flag)) || _report(_exceptionable, {
1150
+ path: _path + ".schemaNames",
1151
+ expected: "(Array<string> & MinItems<1>)",
1152
+ value: input.schemaNames
1153
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["complete" === input.type || _report(_exceptionable, {
1154
+ path: _path + ".type",
1155
+ expected: "\"complete\"",
1156
+ value: input.type
1157
+ }), "string" === typeof input.think || _report(_exceptionable, {
646
1158
  path: _path + ".think",
647
1159
  expected: "string",
648
1160
  value: input.think
@@ -654,11 +1166,11 @@ const collection = {
654
1166
  path: _path + ".revise",
655
1167
  expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
656
1168
  value: input.revise
657
- })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
1169
+ })) && _vo3(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
658
1170
  path: _path + ".revise",
659
1171
  expected: "IAutoBeRealizeCorrectApplication.IReviseProps",
660
1172
  value: input.revise
661
- })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
1173
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
662
1174
  path: _path + ".review",
663
1175
  expected: "string",
664
1176
  value: input.review
@@ -666,7 +1178,18 @@ const collection = {
666
1178
  path: _path + ".final",
667
1179
  expected: "(null | string)",
668
1180
  value: input.final
669
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
1181
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
1182
+ if ("getPrismaSchemas" === input.type)
1183
+ return _vo1(input, _path, true && _exceptionable);
1184
+ else if ("complete" === input.type)
1185
+ return _vo2(input, _path, true && _exceptionable);
1186
+ else
1187
+ return _report(_exceptionable, {
1188
+ path: _path,
1189
+ expected: "(IAutoBePreliminaryGetPrismaSchemas | IAutoBeRealizeCorrectApplication.IComplete)",
1190
+ value: input
1191
+ });
1192
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
670
1193
  if (false === __is(input)) {
671
1194
  errors = [];
672
1195
  _report = __typia_transform__validateReport._validateReport(errors);
@@ -699,10 +1222,11 @@ const collection = {
699
1222
  };
700
1223
  __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
701
1224
  validate: {
702
- correct: validate,
1225
+ process: validate,
703
1226
  },
704
1227
  }), { equals: false }));
705
1228
  return application;
706
1229
  })(),
707
1230
  };
1231
+ const SOURCE = "realizeCorrect";
708
1232
  //# sourceMappingURL=orchestrateRealizeCorrect.js.map