@autobe/agent 0.17.1 → 0.19.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 (727) hide show
  1. package/lib/AutoBeMockAgent.d.ts +2 -10
  2. package/lib/agent/src/AutoBeAgent.d.ts +52 -0
  3. package/lib/{AutoBeAgent.js → agent/src/AutoBeAgent.js} +34 -1
  4. package/lib/agent/src/AutoBeAgent.js.map +1 -0
  5. package/lib/agent/src/AutoBeAgentBase.d.ts +18 -0
  6. package/lib/agent/src/AutoBeAgentBase.js.map +1 -0
  7. package/lib/agent/src/AutoBeMockAgent.d.ts +7 -0
  8. package/lib/{AutoBeMockAgent.js → agent/src/AutoBeMockAgent.js} +40 -5
  9. package/lib/agent/src/AutoBeMockAgent.js.map +1 -0
  10. package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +28 -0
  11. package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -0
  12. package/lib/agent/src/context/AutoBeContext.d.ts +41 -0
  13. package/lib/agent/src/context/AutoBeContext.js.map +1 -0
  14. package/lib/agent/src/context/AutoBeState.d.ts +8 -0
  15. package/lib/agent/src/context/AutoBeState.js.map +1 -0
  16. package/lib/agent/src/context/AutoBeTokenUsage.d.ts +173 -0
  17. package/lib/{context → agent/src/context}/AutoBeTokenUsage.js +7 -0
  18. package/lib/agent/src/context/AutoBeTokenUsage.js.map +1 -0
  19. package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +117 -0
  20. package/lib/{context → agent/src/context}/AutoBeTokenUsageComponent.js +33 -2
  21. package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -0
  22. package/lib/agent/src/context/IAutoBeApplication.d.ts +107 -0
  23. package/lib/agent/src/context/IAutoBeApplication.js.map +1 -0
  24. package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +4 -0
  25. package/lib/agent/src/context/IAutoBeApplicationProps.js.map +1 -0
  26. package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +4 -0
  27. package/lib/agent/src/context/IAutoBeApplicationResult.js.map +1 -0
  28. package/lib/agent/src/context/assertSchemaModel.d.ts +2 -0
  29. package/lib/agent/src/context/assertSchemaModel.js.map +1 -0
  30. package/lib/agent/src/factory/consentFunctionCall.d.ts +10 -0
  31. package/lib/agent/src/factory/consentFunctionCall.js +212 -0
  32. package/lib/agent/src/factory/consentFunctionCall.js.map +1 -0
  33. package/lib/agent/src/factory/createAgenticaHistory.d.ts +7 -0
  34. package/lib/{factory → agent/src/factory}/createAgenticaHistory.js +1 -0
  35. package/lib/agent/src/factory/createAgenticaHistory.js.map +1 -0
  36. package/lib/agent/src/factory/createAutoBeApplication.d.ts +7 -0
  37. package/lib/agent/src/factory/createAutoBeApplication.js.map +1 -0
  38. package/lib/agent/src/factory/createAutoBeContext.d.ts +19 -0
  39. package/lib/agent/src/factory/createAutoBeContext.js +271 -0
  40. package/lib/agent/src/factory/createAutoBeContext.js.map +1 -0
  41. package/lib/agent/src/factory/createAutoBeState.d.ts +3 -0
  42. package/lib/agent/src/factory/createAutoBeState.js.map +1 -0
  43. package/lib/agent/src/factory/getAutoBeGenerated.d.ts +4 -0
  44. package/lib/{factory → agent/src/factory}/getAutoBeGenerated.js +3 -3
  45. package/lib/agent/src/factory/getAutoBeGenerated.js.map +1 -0
  46. package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +7 -0
  47. package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +1 -0
  48. package/lib/agent/src/factory/index.d.ts +1 -0
  49. package/lib/agent/src/factory/index.js.map +1 -0
  50. package/lib/agent/src/index.d.ts +6 -0
  51. package/lib/agent/src/index.js.map +1 -0
  52. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +6 -0
  53. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js +46 -0
  54. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js.map +1 -0
  55. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
  56. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +30 -0
  57. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
  58. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +6 -0
  59. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +61 -0
  60. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
  61. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +5 -0
  62. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js +69 -0
  63. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
  64. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +5 -0
  65. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +265 -0
  66. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
  67. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
  68. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +714 -0
  69. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
  70. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +8 -0
  71. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +244 -0
  72. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
  73. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
  74. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js +3 -0
  75. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
  76. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
  77. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +3 -0
  78. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
  79. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
  80. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js +3 -0
  81. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
  82. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +2 -0
  83. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
  84. package/lib/agent/src/orchestrate/index.d.ts +5 -0
  85. package/lib/agent/src/orchestrate/index.js.map +1 -0
  86. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +3 -0
  87. package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfaceAssetHistories.js +1 -0
  88. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
  89. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
  90. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +34 -0
  91. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
  92. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +4 -0
  93. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +62 -0
  94. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
  95. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +5 -0
  96. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +41 -0
  97. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
  98. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +3 -0
  99. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +28 -0
  100. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
  101. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +4 -0
  102. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +51 -0
  103. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
  104. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
  105. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +35 -0
  106. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
  107. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +3 -0
  108. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
  109. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +4 -0
  110. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +28 -0
  111. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
  112. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
  113. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +59 -0
  114. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
  115. package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +5 -0
  116. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterface.js +34 -9
  117. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -0
  118. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
  119. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +1731 -0
  120. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
  121. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -0
  122. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceComplement.js +42 -36
  123. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
  124. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +5 -0
  125. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceEndpoints.js +40 -41
  126. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
  127. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +4 -0
  128. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceGroups.js +24 -38
  129. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
  130. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +4 -0
  131. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +1774 -0
  132. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
  133. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +4 -0
  134. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1328 -0
  135. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
  136. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +4 -0
  137. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +561 -0
  138. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
  139. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
  140. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +473 -0
  141. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
  142. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
  143. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +3 -0
  144. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
  145. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +93 -0
  146. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
  147. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +24 -0
  148. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
  149. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +108 -0
  150. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
  151. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +171 -0
  152. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
  153. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +132 -0
  154. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +3 -0
  155. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
  156. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +107 -0
  157. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
  158. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +85 -0
  159. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +3 -0
  160. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
  161. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +6 -0
  162. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
  163. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -0
  164. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +35 -0
  165. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js.map +1 -0
  166. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +3 -0
  167. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +79 -0
  168. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
  169. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +3 -0
  170. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +52 -0
  171. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
  172. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
  173. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +59 -0
  174. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
  175. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +3 -0
  176. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +48 -0
  177. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
  178. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +5 -0
  179. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrisma.js +40 -14
  180. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -0
  181. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +4 -0
  182. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaComponent.js +43 -48
  183. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
  184. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +4 -0
  185. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaCorrect.js +154 -83
  186. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
  187. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
  188. package/lib/{orchestrate/prisma/orchestratePrismaSchemas.js → agent/src/orchestrate/prisma/orchestratePrismaReview.js} +180 -248
  189. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
  190. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +5 -0
  191. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js +1662 -0
  192. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
  193. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +121 -0
  194. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
  195. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
  196. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
  197. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
  198. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js +3 -0
  199. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
  200. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +99 -0
  201. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
  202. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +5 -0
  203. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
  204. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
  205. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +40 -0
  206. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
  207. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  208. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +80 -0
  209. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
  210. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +14 -0
  211. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +32 -0
  212. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
  213. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
  214. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +278 -0
  215. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
  216. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +14 -0
  217. package/lib/{orchestrate/realize/transformRealizeCoderHistories.js → agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js} +31 -92
  218. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
  219. package/lib/agent/src/orchestrate/realize/internal/compile.d.ts +7 -0
  220. package/lib/agent/src/orchestrate/realize/internal/compile.js +44 -0
  221. package/lib/agent/src/orchestrate/realize/internal/compile.js.map +1 -0
  222. package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +5 -0
  223. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +130 -0
  224. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -0
  225. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +10 -0
  226. package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorization.js +84 -70
  227. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
  228. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +4 -0
  229. package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +66 -52
  230. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
  231. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +16 -0
  232. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +352 -0
  233. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
  234. package/lib/{orchestrate/realize/orchestrateRealizePlanner.d.ts → agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts} +5 -3
  235. package/lib/{orchestrate/realize/orchestrateRealizePlanner.js → agent/src/orchestrate/realize/orchestrateRealizeScenario.js} +14 -24
  236. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -0
  237. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +14 -0
  238. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +345 -0
  239. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
  240. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +92 -0
  241. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
  242. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +27 -0
  243. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
  244. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +79 -0
  245. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js +3 -0
  246. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
  247. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
  248. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js +3 -0
  249. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +1 -0
  250. package/lib/{orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts → agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts} +22 -88
  251. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js +3 -0
  252. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
  253. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +5 -0
  254. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
  255. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +5 -0
  256. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
  257. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +4 -0
  258. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
  259. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +8 -0
  260. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
  261. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +3 -0
  262. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
  263. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +4 -0
  264. package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/replaceImportStatements.js +6 -1
  265. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
  266. package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +2 -0
  267. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -0
  268. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +1 -0
  269. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  270. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
  271. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  272. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
  273. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  274. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.d.ts +1 -1
  275. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +34 -0
  276. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
  277. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.d.ts +1 -1
  278. package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js.map +1 -0
  279. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +4 -0
  280. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +101 -0
  281. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
  282. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestWriteHistories.d.ts +1 -1
  283. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +179 -0
  284. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
  285. package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +5 -0
  286. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTest.js +16 -4
  287. package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -0
  288. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +5 -0
  289. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestCorrect.js +31 -47
  290. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
  291. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +4 -0
  292. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +961 -0
  293. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -0
  294. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +5 -0
  295. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestWrite.js +53 -54
  296. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -0
  297. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +122 -0
  298. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  299. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
  300. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  301. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +134 -0
  302. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
  303. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +7 -0
  304. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
  305. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
  306. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js +3 -0
  307. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
  308. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +113 -0
  309. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  310. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
  311. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  312. package/lib/agent/src/structures/IAutoBeConfig.d.ts +73 -0
  313. package/lib/agent/src/structures/IAutoBeConfig.js.map +1 -0
  314. package/lib/agent/src/structures/IAutoBeProps.d.ts +109 -0
  315. package/lib/agent/src/structures/IAutoBeProps.js.map +1 -0
  316. package/lib/agent/src/structures/IAutoBeVendor.d.ts +87 -0
  317. package/lib/agent/src/structures/IAutoBeVendor.js.map +1 -0
  318. package/lib/agent/src/utils/arrayToRecord.d.ts +17 -0
  319. package/lib/agent/src/utils/arrayToRecord.js.map +1 -0
  320. package/lib/agent/src/utils/backoffRetry.d.ts +22 -0
  321. package/lib/agent/src/utils/backoffRetry.js.map +1 -0
  322. package/lib/agent/src/utils/divideArray.d.ts +4 -0
  323. package/lib/agent/src/utils/divideArray.js.map +1 -0
  324. package/lib/agent/src/utils/emplaceMap.d.ts +1 -0
  325. package/lib/agent/src/utils/emplaceMap.js.map +1 -0
  326. package/lib/agent/src/utils/predicateStateMessage.d.ts +4 -0
  327. package/lib/agent/src/utils/predicateStateMessage.js +87 -0
  328. package/lib/agent/src/utils/predicateStateMessage.js.map +1 -0
  329. package/lib/constants/AutoBeSystemPromptConstant.d.ts +24 -28
  330. package/lib/context/AutoBeContext.d.ts +16 -5
  331. package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
  332. package/lib/factory/consentFunctionCall.d.ts +10 -0
  333. package/lib/index.mjs +11323 -5336
  334. package/lib/index.mjs.map +1 -1
  335. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +153 -0
  336. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +3 -0
  337. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +1 -0
  338. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +6 -0
  339. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
  340. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +6 -0
  341. package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -1
  342. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +5 -0
  343. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
  344. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +6 -12
  345. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
  346. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
  347. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
  348. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
  349. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +2 -1
  350. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
  351. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
  352. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
  353. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +1 -1
  354. package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
  355. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +4 -0
  356. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
  357. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
  358. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +38 -0
  359. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +2 -1
  360. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +16 -16
  361. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +64 -15
  362. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +132 -0
  363. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +46 -14
  364. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +85 -0
  365. package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -0
  366. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
  367. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +1 -1
  368. package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -2
  369. package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
  370. package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +1 -1
  371. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +2 -1
  372. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
  373. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +43 -153
  374. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
  375. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  376. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +14 -0
  377. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
  378. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +14 -0
  379. package/lib/orchestrate/realize/internal/compile.d.ts +7 -0
  380. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +16 -0
  381. package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +91 -0
  382. package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +14 -0
  383. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +10 -3
  384. package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +79 -0
  385. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
  386. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +279 -0
  387. package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +4 -0
  388. package/lib/orchestrate/test/histories/transformTestHistories.d.ts +3 -0
  389. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +4 -0
  390. package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +8 -0
  391. package/lib/orchestrate/test/orchestrateTestScenario.d.ts +2 -2
  392. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +6 -5
  393. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +25 -24
  394. package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
  395. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -1
  396. package/lib/utils/predicateStateMessage.d.ts +4 -0
  397. package/package.json +9 -9
  398. package/src/AutoBeAgent.ts +51 -3
  399. package/src/AutoBeMockAgent.ts +44 -16
  400. package/src/constants/AutoBeSystemPromptConstant.ts +24 -28
  401. package/src/context/AutoBeContext.ts +30 -4
  402. package/src/context/AutoBeTokenUsage.ts +8 -0
  403. package/src/context/AutoBeTokenUsageComponent.ts +40 -2
  404. package/src/factory/consentFunctionCall.ts +128 -0
  405. package/src/factory/createAgenticaHistory.ts +1 -0
  406. package/src/factory/createAutoBeApplication.ts +3 -11
  407. package/src/factory/createAutoBeContext.ts +149 -1
  408. package/src/factory/getAutoBeGenerated.ts +3 -3
  409. package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +60 -0
  410. package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +34 -0
  411. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +78 -0
  412. package/src/orchestrate/analyze/orchestrateAnalyze.ts +66 -80
  413. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +89 -0
  414. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +99 -0
  415. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +53 -52
  416. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +108 -0
  417. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +85 -0
  418. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +71 -0
  419. package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +1 -0
  420. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +40 -0
  421. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +17 -0
  422. package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +45 -22
  423. package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +43 -0
  424. package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +69 -0
  425. package/src/orchestrate/interface/orchestrateInterface.ts +57 -10
  426. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +209 -0
  427. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +27 -44
  428. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +28 -34
  429. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +18 -48
  430. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +216 -107
  431. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +101 -0
  432. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +180 -96
  433. package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +145 -0
  434. package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +49 -0
  435. package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +39 -0
  436. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +2 -1
  437. package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +16 -16
  438. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +67 -15
  439. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +139 -0
  440. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +47 -14
  441. package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +92 -0
  442. package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +41 -0
  443. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +9 -16
  444. package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +66 -0
  445. package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +2 -2
  446. package/src/orchestrate/prisma/orchestratePrisma.ts +55 -17
  447. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +19 -49
  448. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +96 -58
  449. package/src/orchestrate/prisma/orchestratePrismaReview.ts +124 -0
  450. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +133 -139
  451. package/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.ts +2 -1
  452. package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +108 -0
  453. package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +43 -156
  454. package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +48 -0
  455. package/src/orchestrate/realize/{transformRealizeAuthorizationCorrectHistories.ts → histories/transformRealizeAuthorizationCorrectHistories.ts} +28 -30
  456. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +49 -0
  457. package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +285 -0
  458. package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +184 -0
  459. package/src/orchestrate/realize/internal/compile.ts +67 -0
  460. package/src/orchestrate/realize/orchestrateRealize.ts +125 -30
  461. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +45 -57
  462. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +19 -41
  463. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +122 -0
  464. package/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts} +15 -15
  465. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +128 -0
  466. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +11 -3
  467. package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +81 -0
  468. package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +43 -0
  469. package/src/orchestrate/realize/structures/{IAutoBeRealizeCoderApplication.ts → IAutoBeRealizeWriteApplication.ts} +22 -95
  470. package/src/orchestrate/realize/utils/replaceImportStatements.ts +10 -1
  471. package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +5 -9
  472. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +23 -22
  473. package/src/orchestrate/test/{transformTestCorrectHistories.ts → histories/transformTestCorrectHistories.ts} +2 -2
  474. package/src/orchestrate/test/{transformTestHistories.ts → histories/transformTestHistories.ts} +1 -1
  475. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +121 -0
  476. package/src/orchestrate/test/{transformTestWriteHistories.ts → histories/transformTestWriteHistories.ts} +3 -3
  477. package/src/orchestrate/test/orchestrateTest.ts +17 -6
  478. package/src/orchestrate/test/orchestrateTestCorrect.ts +32 -62
  479. package/src/orchestrate/test/orchestrateTestScenario.ts +241 -168
  480. package/src/orchestrate/test/orchestrateTestWrite.ts +48 -71
  481. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +6 -5
  482. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +25 -24
  483. package/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.ts +7 -0
  484. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +3 -1
  485. package/src/utils/predicateStateMessage.ts +107 -0
  486. package/lib/AutoBeAgent.js.map +0 -1
  487. package/lib/AutoBeAgentBase.js.map +0 -1
  488. package/lib/AutoBeMockAgent.js.map +0 -1
  489. package/lib/constants/AutoBeSystemPromptConstant.js.map +0 -1
  490. package/lib/context/AutoBeContext.js.map +0 -1
  491. package/lib/context/AutoBeState.js.map +0 -1
  492. package/lib/context/AutoBeTokenUsage.js.map +0 -1
  493. package/lib/context/AutoBeTokenUsageComponent.js.map +0 -1
  494. package/lib/context/IAutoBeApplication.js.map +0 -1
  495. package/lib/context/IAutoBeApplicationProps.js.map +0 -1
  496. package/lib/context/IAutoBeApplicationResult.js.map +0 -1
  497. package/lib/context/assertSchemaModel.js.map +0 -1
  498. package/lib/factory/createAgenticaHistory.js.map +0 -1
  499. package/lib/factory/createAutoBeApplication.js.map +0 -1
  500. package/lib/factory/createAutoBeContext.js +0 -141
  501. package/lib/factory/createAutoBeContext.js.map +0 -1
  502. package/lib/factory/createAutoBeState.js.map +0 -1
  503. package/lib/factory/getAutoBeGenerated.js.map +0 -1
  504. package/lib/factory/getAutoBeRealizeGenerated.js.map +0 -1
  505. package/lib/factory/index.js.map +0 -1
  506. package/lib/index.js.map +0 -1
  507. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.d.ts +0 -45
  508. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js +0 -27
  509. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js.map +0 -1
  510. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.d.ts +0 -9
  511. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js +0 -3
  512. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js.map +0 -1
  513. package/lib/orchestrate/analyze/orchestrateAnalyze.js +0 -98
  514. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
  515. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.d.ts +0 -5
  516. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +0 -561
  517. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +0 -1
  518. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.d.ts +0 -12
  519. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +0 -395
  520. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +0 -1
  521. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +0 -347
  522. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
  523. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.d.ts +0 -68
  524. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js +0 -3
  525. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js.map +0 -1
  526. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.d.ts +0 -5
  527. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js +0 -27
  528. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js.map +0 -1
  529. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.d.ts +0 -12
  530. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js +0 -78
  531. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js.map +0 -1
  532. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +0 -16
  533. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +0 -79
  534. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +0 -1
  535. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  536. package/lib/orchestrate/index.js.map +0 -1
  537. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  538. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -62
  539. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  540. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -28
  541. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  542. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -28
  543. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  544. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -28
  545. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  546. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
  547. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -28
  548. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  549. package/lib/orchestrate/interface/orchestrateInterface.js.map +0 -1
  550. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
  551. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  552. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  553. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +0 -1643
  554. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  555. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +0 -411
  556. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  557. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
  558. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
  559. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
  560. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
  561. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
  562. package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
  563. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +0 -85
  564. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
  565. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +0 -52
  566. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
  567. package/lib/orchestrate/prisma/histories/transformPrismaHistories.d.ts +0 -3
  568. package/lib/orchestrate/prisma/histories/transformPrismaHistories.js +0 -55
  569. package/lib/orchestrate/prisma/histories/transformPrismaHistories.js.map +0 -1
  570. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +0 -48
  571. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
  572. package/lib/orchestrate/prisma/orchestratePrisma.js.map +0 -1
  573. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
  574. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
  575. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  576. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
  577. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
  578. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
  579. package/lib/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
  580. package/lib/orchestrate/realize/RealizePipe.d.ts +0 -5
  581. package/lib/orchestrate/realize/RealizePipe.js +0 -14
  582. package/lib/orchestrate/realize/RealizePipe.js.map +0 -1
  583. package/lib/orchestrate/realize/orchestrateRealize.js +0 -63
  584. package/lib/orchestrate/realize/orchestrateRealize.js.map +0 -1
  585. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  586. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
  587. package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +0 -26
  588. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +0 -420
  589. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +0 -1
  590. package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +0 -1
  591. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  592. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
  593. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js +0 -3
  594. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
  595. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +0 -56
  596. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js +0 -3
  597. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
  598. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +0 -2
  599. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -5
  600. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +0 -1
  601. package/lib/orchestrate/realize/transformRealizeAuthorization.d.ts +0 -4
  602. package/lib/orchestrate/realize/transformRealizeAuthorization.js +0 -39
  603. package/lib/orchestrate/realize/transformRealizeAuthorization.js.map +0 -1
  604. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  605. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js +0 -80
  606. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  607. package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +0 -7
  608. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +0 -1
  609. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
  610. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
  611. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
  612. package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
  613. package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
  614. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
  615. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +0 -11
  616. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +0 -221
  617. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +0 -1
  618. package/lib/orchestrate/test/compile/completeTestCode.js.map +0 -1
  619. package/lib/orchestrate/test/compile/filterTestFileName.js.map +0 -1
  620. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
  621. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
  622. package/lib/orchestrate/test/orchestrateTest.js.map +0 -1
  623. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
  624. package/lib/orchestrate/test/orchestrateTestScenario.js +0 -866
  625. package/lib/orchestrate/test/orchestrateTestScenario.js.map +0 -1
  626. package/lib/orchestrate/test/orchestrateTestWrite.js.map +0 -1
  627. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
  628. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
  629. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
  630. package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
  631. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
  632. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
  633. package/lib/orchestrate/test/transformTestCorrectHistories.js +0 -34
  634. package/lib/orchestrate/test/transformTestCorrectHistories.js.map +0 -1
  635. package/lib/orchestrate/test/transformTestHistories.js.map +0 -1
  636. package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +0 -3
  637. package/lib/orchestrate/test/transformTestScenarioHistories.js +0 -100
  638. package/lib/orchestrate/test/transformTestScenarioHistories.js.map +0 -1
  639. package/lib/orchestrate/test/transformTestWriteHistories.js +0 -178
  640. package/lib/orchestrate/test/transformTestWriteHistories.js.map +0 -1
  641. package/lib/structures/IAutoBeConfig.js.map +0 -1
  642. package/lib/structures/IAutoBeProps.js.map +0 -1
  643. package/lib/structures/IAutoBeVendor.js.map +0 -1
  644. package/lib/utils/arrayToRecord.js.map +0 -1
  645. package/lib/utils/backoffRetry.js.map +0 -1
  646. package/lib/utils/divideArray.js.map +0 -1
  647. package/lib/utils/emplaceMap.js.map +0 -1
  648. package/lib/utils/enforceToolCall.d.ts +0 -3
  649. package/lib/utils/enforceToolCall.js +0 -13
  650. package/lib/utils/enforceToolCall.js.map +0 -1
  651. package/lib/utils/forceRetry.d.ts +0 -1
  652. package/lib/utils/forceRetry.js +0 -26
  653. package/lib/utils/forceRetry.js.map +0 -1
  654. package/lib/utils/pipe.d.ts +0 -5
  655. package/lib/utils/pipe.js +0 -14
  656. package/lib/utils/pipe.js.map +0 -1
  657. package/src/orchestrate/analyze/AutoBeAnalyzeFileSystem.ts +0 -58
  658. package/src/orchestrate/analyze/AutoBeAnalyzePointer.ts +0 -10
  659. package/src/orchestrate/analyze/orchestrateAnalyzeComposer.ts +0 -112
  660. package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +0 -131
  661. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.ts +0 -75
  662. package/src/orchestrate/analyze/transformAnalyzeReviewerHistories.ts +0 -31
  663. package/src/orchestrate/analyze/transformAnalyzeWriteHistories.ts +0 -94
  664. package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +0 -96
  665. package/src/orchestrate/prisma/histories/transformPrismaHistories.ts +0 -59
  666. package/src/orchestrate/realize/RealizePipe.ts +0 -39
  667. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +0 -182
  668. package/src/orchestrate/realize/structures/IAutoBeRealizeCompile.ts +0 -70
  669. package/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.ts +0 -2
  670. package/src/orchestrate/realize/transformRealizeAuthorization.ts +0 -44
  671. package/src/orchestrate/realize/transformRealizeCoderHistories.ts +0 -248
  672. package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +0 -308
  673. package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -105
  674. package/src/utils/enforceToolCall.ts +0 -13
  675. package/src/utils/forceRetry.ts +0 -13
  676. package/src/utils/pipe.ts +0 -39
  677. /package/lib/{AutoBeAgentBase.js → agent/src/AutoBeAgentBase.js} +0 -0
  678. /package/lib/{constants → agent/src/constants}/AutoBeSystemPromptConstant.js +0 -0
  679. /package/lib/{context → agent/src/context}/AutoBeContext.js +0 -0
  680. /package/lib/{context → agent/src/context}/AutoBeState.js +0 -0
  681. /package/lib/{context → agent/src/context}/IAutoBeApplication.js +0 -0
  682. /package/lib/{context → agent/src/context}/IAutoBeApplicationProps.js +0 -0
  683. /package/lib/{context → agent/src/context}/IAutoBeApplicationResult.js +0 -0
  684. /package/lib/{context → agent/src/context}/assertSchemaModel.js +0 -0
  685. /package/lib/{factory → agent/src/factory}/createAutoBeApplication.js +0 -0
  686. /package/lib/{factory → agent/src/factory}/createAutoBeState.js +0 -0
  687. /package/lib/{factory → agent/src/factory}/getAutoBeRealizeGenerated.js +0 -0
  688. /package/lib/{factory → agent/src/factory}/index.js +0 -0
  689. /package/lib/{index.js → agent/src/index.js} +0 -0
  690. /package/lib/{orchestrate → agent/src/orchestrate}/facade/transformFacadeStateMessage.js +0 -0
  691. /package/lib/{orchestrate → agent/src/orchestrate}/index.js +0 -0
  692. /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
  693. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
  694. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
  695. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
  696. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
  697. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
  698. /package/lib/{orchestrate → agent/src/orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
  699. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
  700. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
  701. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
  702. /package/lib/{orchestrate → agent/src/orchestrate}/realize/ProviderCodeComparator.js +0 -0
  703. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
  704. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
  705. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
  706. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
  707. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
  708. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/InternalFileSystem.js +0 -0
  709. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
  710. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/completeTestCode.js +0 -0
  711. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/filterTestFileName.js +0 -0
  712. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
  713. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
  714. /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.js +0 -0
  715. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
  716. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
  717. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
  718. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
  719. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
  720. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
  721. /package/lib/{structures → agent/src/structures}/IAutoBeConfig.js +0 -0
  722. /package/lib/{structures → agent/src/structures}/IAutoBeProps.js +0 -0
  723. /package/lib/{structures → agent/src/structures}/IAutoBeVendor.js +0 -0
  724. /package/lib/{utils → agent/src/utils}/arrayToRecord.js +0 -0
  725. /package/lib/{utils → agent/src/utils}/backoffRetry.js +0 -0
  726. /package/lib/{utils → agent/src/utils}/divideArray.js +0 -0
  727. /package/lib/{utils → agent/src/utils}/emplaceMap.js +0 -0
@@ -1,73 +1,8 @@
1
- import { AutoBeOpenApi } from "@autobe/interface";
2
- import { FAILED } from "./IAutoBeRealizeFailedSymbol";
3
- export interface IAutoBeRealizeCoderApplication {
4
- programming: (input: IAutoBeRealizeCoderApplication.IProps) => void;
1
+ export interface IAutoBeRealizeWriteApplication {
2
+ coding: (next: IAutoBeRealizeWriteApplication.IProps) => void;
5
3
  }
6
- export declare namespace IAutoBeRealizeCoderApplication {
7
- /**
8
- * Properties for the component or function that consumes the output of the
9
- * code generation pipeline.
10
- */
4
+ export declare namespace IAutoBeRealizeWriteApplication {
11
5
  interface IProps {
12
- /**
13
- * The detailed output of the code generation process, containing all phases
14
- * from planning to final implementation of a TypeScript provider function.
15
- */
16
- output: Omit<IAutoBeRealizeCoderApplication.RealizeCoderOutput, "filename">;
17
- }
18
- /**
19
- * Represents the complete output of a code generation pipeline. Each field
20
- * corresponds to a stage in the Chain of Thought (CoT) process for generating
21
- * a production-quality TypeScript function.
22
- *
23
- * All fields contain TypeScript code strings and follow these rules:
24
- *
25
- * - All code must be valid TypeScript or structurally valid even if incomplete.
26
- * - Each phase builds upon the previous one and must resolve specific concerns.
27
- * - All phases must follow system conventions around structure, typing, and
28
- * logic.
29
- */
30
- interface RealizeCoderOutput {
31
- /** @ignore */
32
- filename: string;
33
- /**
34
- * Error Analysis Phase (Optional)
35
- *
36
- * 🔍 Analyzes TypeScript compilation errors from previous attempts.
37
- *
38
- * This field should contain a detailed analysis of any TypeScript errors
39
- * encountered, with root cause identification and resolution strategies:
40
- *
41
- * Common Error Patterns to Analyze:
42
- *
43
- * 1. **"Property does not exist" (TS2353)**:
44
- *
45
- * - Root Cause: Using fields that don't exist in Prisma schema
46
- * - Example: Using `deleted_at` when the field doesn't exist in the model
47
- * - Resolution: Remove the non-existent field or use hard delete instead
48
- * 2. **"Type 'void' is not assignable" (TS2322)**:
49
- *
50
- * - Root Cause: Using `typia.assertGuard` instead of `typia.assert`
51
- * - `assertGuard` returns void, `assert` returns the validated value
52
- * - Resolution: Change `typia.assertGuard<T>()` to `typia.assert<T>()`
53
- * 3. **"Type 'Date' is not assignable to type 'string &
54
- * Format<'date-time'>'"**:
55
- *
56
- * - Root Cause: Assigning native Date objects to string fields
57
- * - Resolution: Use `toISOStringSafe(dateValue)` for all date conversions
58
- * 4. **Complex Prisma Type Errors**:
59
- *
60
- * - Root Cause: Nested operations with incompatible types
61
- * - Resolution: Use separate queries and application-level joins
62
- *
63
- * Analysis Format:
64
- *
65
- * - List each error with its TypeScript error code
66
- * - Identify the root cause (schema mismatch, wrong function usage, etc.)
67
- * - Provide specific resolution steps
68
- * - Note any schema limitations discovered
69
- */
70
- errorAnalysis?: string;
71
6
  /**
72
7
  * Step 1.
73
8
  *
@@ -77,16 +12,18 @@ export declare namespace IAutoBeRealizeCoderApplication {
77
12
  * function according to the Realize Coder Agent specification. Before
78
13
  * writing the actual code, think through the logic and structure.
79
14
  *
80
- * The plan MUST follow MANDATORY SCHEMA-FIRST APPROACH:
15
+ * The plan follows a SCHEMA-FIRST APPROACH:
81
16
  *
82
- * 📋 STEP 1 - PRISMA SCHEMA VERIFICATION (MOST CRITICAL):
17
+ * 📋 STEP 1 - PRISMA SCHEMA VERIFICATION:
83
18
  *
84
- * - EXAMINE the actual Prisma schema model definition
85
- * - LIST EVERY field that exists in the model with exact types
86
- * - EXPLICITLY NOTE fields that DO NOT exist (e.g., "Note: deleted_at field
87
- * DOES NOT EXIST")
88
- * - Common assumption errors to avoid: `deleted_at`, `created_by`,
89
- * `updated_by`, `is_deleted`, `is_active`
19
+ * DO:
20
+ * - Examine the actual Prisma schema model definition
21
+ * - List EVERY field that exists in the model with exact types
22
+ * - Explicitly note fields that DO NOT exist
23
+ *
24
+ * DO NOT:
25
+ * - Assume common fields exist without verification
26
+ * - Use fields like deleted_at, created_by, updated_by, is_deleted, is_active without checking
90
27
  *
91
28
  * 📋 STEP 2 - FIELD INVENTORY:
92
29
  *
@@ -220,8 +157,9 @@ export declare namespace IAutoBeRealizeCoderApplication {
220
157
  * Draft WITHOUT using native Date type.
221
158
  *
222
159
  * This is the initial drafting phase where you outline the basic skeleton
223
- * of the function. CRITICAL: This draft must NEVER use the native Date
224
- * type.
160
+ * of the function.
161
+ *
162
+ * DO NOT: Use the native Date type.
225
163
  *
226
164
  * - The function signature must correctly include `user`, `parameters`, and
227
165
  * `body` arguments.
@@ -230,13 +168,13 @@ export declare namespace IAutoBeRealizeCoderApplication {
230
168
  * - Mark any incomplete or missing parts clearly with placeholders (e.g.,
231
169
  * comments or temporary values).
232
170
  *
233
- * ⚠️ Import rules:
171
+ * Import rules:
234
172
  *
235
- * - Do NOT add any new import statements manually.
236
- * - All necessary imports are provided globally or by the system
237
- * automatically.
238
- * - Writing import statements directly is prohibited and may cause compile
239
- * errors. If import errors occur, check your environment configuration.
173
+ * DO NOT:
174
+ * - Add any new import statements manually
175
+ * - Write import statements directly (this causes compile errors)
176
+ *
177
+ * Note: All necessary imports are provided globally or by the system automatically.
240
178
  *
241
179
  * ✅ Requirements:
242
180
  *
@@ -338,8 +276,4 @@ export declare namespace IAutoBeRealizeCoderApplication {
338
276
  */
339
277
  implementationCode: string;
340
278
  }
341
- interface IPipeOutput {
342
- result: RealizeCoderOutput | FAILED;
343
- operation: AutoBeOpenApi.IOperation;
344
- }
345
279
  }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IAutoBeRealizeWriteApplication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAutoBeRealizeWriteApplication.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare namespace AuthorizationFileSystem {
2
+ const decoratorPath: (name: string) => string;
3
+ const payloadPath: (name: string) => string;
4
+ const providerPath: (name: string) => string;
5
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthorizationFileSystem.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/AuthorizationFileSystem.ts"],"names":[],"mappings":";;;AAAA,IAAiB,uBAAuB,CASvC;AATD,WAAiB,uBAAuB;IACzB,qCAAa,GAAG,CAAC,IAAY,EAAU,EAAE,CACpD,kBAAkB,IAAI,KAAK,CAAC;IAEjB,mCAAW,GAAG,CAAC,IAAY,EAAU,EAAE,CAClD,0BAA0B,IAAI,KAAK,CAAC;IAEzB,oCAAY,GAAG,CAAC,IAAY,EAAU,EAAE,CACnD,2BAA2B,IAAI,KAAK,CAAC;AACzC,CAAC,EATgB,uBAAuB,uCAAvB,uBAAuB,QASvC"}
@@ -0,0 +1,5 @@
1
+ export declare namespace AutoBeRealizeAuthorizationFileSystem {
2
+ const getDecoratorPath: (name: string) => string;
3
+ const getPayloadPath: (name: string) => string;
4
+ const getProviderPath: (name: string) => string;
5
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoBeRealizeAuthorizationFileSystem.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.ts"],"names":[],"mappings":";;;AAAA,IAAiB,oCAAoC,CAQpD;AARD,WAAiB,oCAAoC;IACtC,qDAAgB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,kBAAkB,IAAI,KAAK,CAAC;IAEjE,mDAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAC7C,0BAA0B,IAAI,KAAK,CAAC;IAEzB,oDAAe,GAAG,CAAC,IAAY,EAAE,EAAE,CAC9C,2BAA2B,IAAI,KAAK,CAAC;AACzC,CAAC,EARgB,oCAAoC,oDAApC,oCAAoC,QAQpD"}
@@ -0,0 +1,4 @@
1
+ export declare namespace AutoBeRealizeAuthorizationReplaceImport {
2
+ function replaceProviderImport(role: string, content: string): string;
3
+ function replaceDecoratorImport(role: string, content: string): string;
4
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoBeRealizeAuthorizationReplaceImport.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.ts"],"names":[],"mappings":";;;AAAA,IAAiB,uCAAuC,CA+DvD;AA/DD,WAAiB,uCAAuC;IACtD,SAAgB,qBAAqB,CAAC,IAAY,EAAE,OAAe;QACjE,IAAI,cAAc,GAAG,OAAO,CAAC;QAE7B,MAAM,eAAe,GACnB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAE7D,MAAM,mBAAmB,GACvB,qDAAqD,CAAC;QACxD,MAAM,uBAAuB,GAC3B,6EAA6E,CAAC;QAEhF,MAAM,eAAe,GAAG,4CAA4C,CAAC;QACrE,MAAM,mBAAmB,GAAG,4CAA4C,CAAC;QAEzE,MAAM,mBAAmB,GACvB,gDAAgD,CAAC;QACnD,MAAM,uBAAuB,GAC3B,gDAAgD,CAAC;QAEnD,MAAM,cAAc,GAAG,8CAA8C,CAAC;QACtE,MAAM,kBAAkB,GAAG,YAAY,eAAe,4CAA4C,eAAe,WAAW,CAAC;QAE7H,iBAAiB;QACjB,cAAc,GAAG,cAAc,CAAC,OAAO,CACrC,mBAAmB,EACnB,uBAAuB,CACxB,CAAC;QACF,cAAc,GAAG,cAAc,CAAC,OAAO,CACrC,eAAe,EACf,mBAAmB,CACpB,CAAC;QACF,cAAc,GAAG,cAAc,CAAC,OAAO,CACrC,mBAAmB,EACnB,uBAAuB,CACxB,CAAC;QACF,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;QAE5E,OAAO,cAAc,CAAC;IACxB,CAAC;IAtCe,6DAAqB,wBAsCpC,CAAA;IAED,SAAgB,sBAAsB,CACpC,IAAY,EACZ,OAAe;QAEf,IAAI,cAAc,GAAG,OAAO,CAAC;QAE7B,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAEzC,+CAA+C;QAC/C,MAAM,gBAAgB,GAAG,gDAAgD,CAAC;QAE1E,iCAAiC;QACjC,MAAM,oBAAoB,GAAG,YAAY,aAAa,4CAA4C,aAAa,aAAa,CAAC;QAE7H,QAAQ;QACR,cAAc,GAAG,cAAc,CAAC,OAAO,CACrC,gBAAgB,EAChB,oBAAoB,CACrB,CAAC;QAEF,OAAO,cAAc,CAAC;IACxB,CAAC;IArBe,8DAAsB,yBAqBrC,CAAA;AACH,CAAC,EA/DgB,uCAAuC,uDAAvC,uCAAuC,QA+DvD"}
@@ -0,0 +1,8 @@
1
+ export declare namespace InternalFileSystem {
2
+ /**
3
+ * Get template files for all of realize agents
4
+ *
5
+ * @returns Template file paths
6
+ */
7
+ const DEFAULT: string[];
8
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InternalFileSystem.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/InternalFileSystem.ts"],"names":[],"mappings":";;;AAAA,IAAiB,kBAAkB,CAWlC;AAXD,WAAiB,kBAAkB;IACjC;;;;OAIG;IACU,0BAAO,GAAG;QACrB,yCAAyC;QACzC,iBAAiB;QACjB,6BAA6B;KAC9B,CAAC;AACJ,CAAC,EAXgB,kBAAkB,kCAAlB,kBAAkB,QAWlC"}
@@ -0,0 +1,3 @@
1
+ export declare namespace RealizeFileSystem {
2
+ const providerPath: (filename: string) => string;
3
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProviderFileSystem.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/ProviderFileSystem.ts"],"names":[],"mappings":";;;AAAA,IAAiB,iBAAiB,CAGjC;AAHD,WAAiB,iBAAiB;IACnB,8BAAY,GAAG,CAAC,QAAgB,EAAU,EAAE,CACvD,iBAAiB,QAAQ,KAAK,CAAC;AACnC,CAAC,EAHgB,iBAAiB,iCAAjB,iBAAiB,QAGjC"}
@@ -0,0 +1,4 @@
1
+ import { ILlmSchema } from "@samchon/openapi";
2
+ import { AutoBeContext } from "../../../context/AutoBeContext";
3
+ import { IAutoBeTestScenarioArtifacts } from "../../test/structures/IAutoBeTestScenarioArtifacts";
4
+ export declare function replaceImportStatements<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>): (artifacts: IAutoBeTestScenarioArtifacts, code: string, decoratorType?: string) => Promise<string>;
@@ -25,7 +25,10 @@ function replaceImportStatements(ctx) {
25
25
  .replace(/import\s+typia\s*from\s*["']typia["']\s*;?\s*/gm, "")
26
26
  .replace(/import\s*{\s*Prisma\s*}\s*from\s*["']@prisma\/client["']\s*;?\s*/gm, "")
27
27
  .replace(/import\s*{\s*v4\s*}\s*from\s*["']uuid["']\s*;?\s*/gm, "")
28
- .replace(/import\s*{\s*toISOStringSafe\s*}\s*from\s*["']\.\.\/util\/toISOStringSafe["']\s*;?\s*/gm, "");
28
+ .replace(/import\s*{\s*toISOStringSafe\s*}\s*from\s*["']\.\.\/util\/toISOStringSafe["']\s*;?\s*/gm, "")
29
+ // Remove JWT import if it exists (to prevent duplication)
30
+ .replace(/import\s+jwt\s+from\s*["']jsonwebtoken["']\s*;?\s*/gm, "")
31
+ .replace(/import\s*\*\s*as\s+jwt\s+from\s*["']jsonwebtoken["']\s*;?\s*/gm, "");
29
32
  // Remove any existing API structure imports
30
33
  // Pattern 1: ../api/structures path
31
34
  code = code.replace(/import\s*(?:type\s*)?{\s*[^}]+\s*}\s*from\s*["']\.\.\/api\/structures\/[^"']+["']\s*;?\s*/gm, "");
@@ -44,6 +47,7 @@ function replaceImportStatements(ctx) {
44
47
  }
45
48
  // Build the standard imports
46
49
  const imports = [
50
+ 'import jwt from "jsonwebtoken";',
47
51
  'import { MyGlobal } from "../MyGlobal";',
48
52
  'import typia, { tags } from "typia";',
49
53
  'import { Prisma } from "@prisma/client";',
@@ -71,6 +75,7 @@ function replaceImportStatements(ctx) {
71
75
  code = code.replace(/\\n/g, "\n").replace(/\\"/g, '"').replace(/\\'/g, "'");
72
76
  // Apply final beautification
73
77
  code = yield compiler.typescript.beautify(code);
78
+ code = code.replaceAll("typia.tags.assert", "typia.assert");
74
79
  return code;
75
80
  });
76
81
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceImportStatements.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/replaceImportStatements.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import { IAutoBeTestScenarioArtifacts } from "../structures/IAutoBeTestScenarioArtifacts";
2
+ export declare function completeTestCode(artifacts: IAutoBeTestScenarioArtifacts, code: string): string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completeTestCode.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/compile/completeTestCode.ts"],"names":[],"mappings":";;AAEA,4CAgCC;AAhCD,SAAgB,gBAAgB,CAC9B,SAAuC,EACvC,IAAY;IAEZ,MAAM,cAAc,GAAa,KAAK,CAAC,IAAI,CACzC,IAAI,GAAG,CACL,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,CACpD,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAC5B,CACF,CACF,CAAC;IAEF,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACpE,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACpE,IAAI,GAAG,IAAI,CAAC,UAAU,CACpB,yBAAyB,EACzB,8BAA8B,CAC/B,CAAC;IACF,IAAI,GAAG;QACL,0EAA0E;QAC1E,gDAAgD;QAChD,sCAAsC;QACtC,EAAE;QACF,8CAA8C;QAC9C,GAAG,cAAc,CAAC,GAAG,CACnB,CAAC,GAAG,EAAE,EAAE,CACN,iBAAiB,GAAG,qDAAqD,GAAG,IAAI,CACnF;QACD,EAAE;QACF,IAAI;KACL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function filterTestFileName(key: string): boolean;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterTestFileName.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/compile/filterTestFileName.ts"],"names":[],"mappings":";;AAAA,gDAQC;AARD,SAAgB,kBAAkB,CAAC,GAAW;IAC5C,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,KAAK;QAAE,OAAO,KAAK,CAAC;SAC3C,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACtD,OAAO,CACL,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI;QAChC,GAAG,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI;QACzC,GAAG,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,KAAK,CAC5C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ILlmSchema } from "@samchon/openapi";
2
+ import { AutoBeContext } from "../../../context/AutoBeContext";
3
+ export declare function getTestExternalDeclarations<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>): Promise<Record<string, string>>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTestExternalDeclarations.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/compile/getTestExternalDeclarations.ts"],"names":[],"mappings":";;;;;;;;;;;AAMA,kEAKC;AATD,+BAAiC;AAIjC,SAAsB,2BAA2B,CAE/C,GAAyB;;QACzB,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;QACtC,OAAO,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;CAAA;AAED,MAAM,SAAS,GAAG,IAAI,gBAAS,CAAC,CAAO,QAA6B,EAAE,EAAE;IACtE,MAAM,OAAO,GAA2B,MAAM,QAAQ,CAAC,WAAW,EAAE,CAAC;IACrE,MAAM,QAAQ,GAAG,CAAC,QAAgB,EAA0B,EAAE;QAC5D,MAAM,OAAO,GAAuB,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,OAAO,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,QAAQ,EAAE,CAAC,CAAC;QAC1E,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACjC,CAAC,CAAC;IACF,OAAO,gCACF,QAAQ,CAAC,iDAAiD,CAAC,GAC3D,QAAQ,CAAC,mDAAmD,CAAC,CAChC,CAAC;AACrC,CAAC,CAAA,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { AutoBeTestScenario } from "@autobe/interface";
2
+ import { ILlmSchema } from "@samchon/openapi";
3
+ import { AutoBeContext } from "../../../context/AutoBeContext";
4
+ import { IAutoBeTestScenarioArtifacts } from "../structures/IAutoBeTestScenarioArtifacts";
5
+ export declare function getTestScenarioArtifacts<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, scenario: Pick<AutoBeTestScenario, "endpoint" | "dependencies">): Promise<IAutoBeTestScenarioArtifacts>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTestScenarioArtifacts.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/compile/getTestScenarioArtifacts.ts"],"names":[],"mappings":"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"}
@@ -1,4 +1,4 @@
1
1
  import { IAgenticaHistoryJson } from "@agentica/core";
2
2
  import { IAutoBeTypeScriptCompileResult } from "@autobe/interface";
3
- import { IAutoBeTestFunction } from "./structures/IAutoBeTestFunction";
3
+ import { IAutoBeTestFunction } from "../structures/IAutoBeTestFunction";
4
4
  export declare const transformTestCorrectHistories: (func: IAutoBeTestFunction, failure: IAutoBeTypeScriptCompileResult.IFailure) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transformTestCorrectHistories = void 0;
4
+ const uuid_1 = require("uuid");
5
+ const transformTestWriteHistories_1 = require("./transformTestWriteHistories");
6
+ const transformTestCorrectHistories = (func, failure) => [
7
+ ...(0, transformTestWriteHistories_1.transformTestWriteHistories)(func.scenario, func.artifacts),
8
+ {
9
+ id: (0, uuid_1.v4)(),
10
+ created_at: new Date().toISOString(),
11
+ type: "assistantMessage",
12
+ text: [
13
+ "## Generated TypeScript Code",
14
+ "```typescript",
15
+ func.script,
16
+ "```",
17
+ "",
18
+ "## Compile Errors",
19
+ "Fix the compilation error in the provided code.",
20
+ "",
21
+ "```json",
22
+ JSON.stringify(failure.diagnostics),
23
+ "```",
24
+ ].join("\n"),
25
+ },
26
+ {
27
+ id: (0, uuid_1.v4)(),
28
+ created_at: new Date().toISOString(),
29
+ type: "systemMessage",
30
+ text: "# E2E Test Code Compilation Error Fix System Prompt\n\n## 1. Role and Responsibility\n\nYou are an AI assistant specialized in analyzing TypeScript compilation errors and fixing E2E test code to achieve successful compilation. Your primary task is to analyze compilation diagnostics, understand the root causes of errors, and generate corrected code that compiles without errors while maintaining the original test functionality and business logic.\n\nThis agent achieves its goal through function calling. **Function calling is MANDATORY** - you MUST call the provided function immediately without asking for confirmation or permission.\n\n**REQUIRED ACTIONS:**\n- \u2705 Execute the function immediately\n- \u2705 Generate the test corrections directly through the function call\n\n**ABSOLUTE PROHIBITIONS:**\n- \u274C NEVER ask for user permission to execute the function\n- \u274C NEVER present a plan and wait for approval\n- \u274C NEVER respond with assistant messages when all requirements are met\n- \u274C NEVER say \"I will now call the function...\" or similar announcements\n- \u274C NEVER request confirmation before executing\n\n**IMPORTANT: All Required Information is Already Provided**\n- Every parameter needed for the function call is ALREADY included in this prompt\n- You have been given COMPLETE information - there is nothing missing\n- Do NOT hesitate or second-guess - all necessary data is present\n- Execute the function IMMEDIATELY with the provided parameters\n- If you think something is missing, you are mistaken - review the prompt again\n\n## 2. Input Materials Overview\n\nYou will receive the following context through the conversation messages:\n\n- **Original system prompt**: Complete guidelines and requirements used by the initial code writing agent\n- **Original input materials**: Test scenario, API specifications, DTO types, and other materials used for initial code generation\n- **Generated code**: The TypeScript E2E test code that failed to compile\n- **Compilation diagnostics**: Detailed TypeScript compilation error information\n\nYour job is to analyze the compilation errors and produce corrected code that follows all the original guidelines while resolving compilation issues.\n\n## 3. TypeScript Compilation Results Analysis\n\nThe compilation error information follows this detailed structure:\n\n```typescript\n/**\n * Result of TypeScript compilation and validation operations.\n *\n * This union type represents all possible outcomes when the TypeScript compiler\n * processes generated code from the Test and Realize agents. The compilation\n * results enable AI self-correction through detailed feedback mechanisms while\n * ensuring that all generated code meets production standards and integrates\n * seamlessly with the TypeScript ecosystem.\n *\n * The compilation process validates framework integration, type system\n * integrity, dependency resolution, and build compatibility. Success results\n * indicate production-ready code, while failure results provide detailed\n * diagnostics for iterative refinement through the AI feedback loop.\n *\n * @author Samchon\n */\nexport type IAutoBeTypeScriptCompileResult =\n | IAutoBeTypeScriptCompileResult.ISuccess\n | IAutoBeTypeScriptCompileResult.IFailure\n | IAutoBeTypeScriptCompileResult.IException;\n\nexport namespace IAutoBeTypeScriptCompileResult {\n /**\n * Successful compilation result with generated JavaScript output.\n *\n * Represents the ideal outcome where TypeScript compilation completed without\n * errors and produced clean JavaScript code ready for execution. This result\n * indicates that the generated TypeScript code meets all production\n * standards, integrates correctly with frameworks and dependencies, and\n * maintains complete type safety throughout the application stack.\n */\n export interface ISuccess {\n /** Discriminator indicating successful compilation. */\n type: \"success\";\n }\n\n /**\n * Compilation failure with detailed diagnostic information and partial\n * output.\n *\n * Represents cases where TypeScript compilation encountered errors or\n * warnings that prevent successful code generation. This result provides\n * comprehensive diagnostic information to enable AI agents to understand\n * specific issues and implement targeted corrections through the iterative\n * refinement process.\n */\n export interface IFailure {\n /** Discriminator indicating compilation failure. */\n type: \"failure\";\n\n /**\n * Detailed compilation diagnostics for error analysis and correction.\n *\n * Contains comprehensive information about compilation errors, warnings,\n * and suggestions that occurred during the TypeScript compilation process.\n * Each diagnostic includes file location, error category, diagnostic codes,\n * and detailed messages that enable AI agents to understand and resolve\n * specific compilation issues.\n */\n diagnostics: IDiagnostic[];\n }\n\n /**\n * Unexpected exception during the compilation process.\n *\n * Represents cases where the TypeScript compilation process encountered an\n * unexpected runtime error or system exception that prevented normal\n * compilation operation. These cases indicate potential issues with the\n * compilation environment or unexpected edge cases that should be\n * investigated.\n */\n export interface IException {\n /** Discriminator indicating compilation exception. */\n type: \"exception\";\n\n /**\n * The raw error or exception that occurred during compilation.\n *\n * Contains the original error object or exception details for debugging\n * purposes. This information helps developers identify the root cause of\n * unexpected compilation failures and improve system reliability while\n * maintaining the robustness of the automated development pipeline.\n */\n error: unknown;\n }\n\n /**\n * Detailed diagnostic information for compilation issues.\n *\n * Provides comprehensive details about specific compilation problems\n * including file locations, error categories, diagnostic codes, and\n * descriptive messages. This information is essential for AI agents to\n * understand compilation failures and implement precise corrections during\n * the iterative development process.\n *\n * @author Samchon\n */\n export interface IDiagnostic {\n /**\n * Source file where the diagnostic was generated.\n *\n * Specifies the TypeScript source file that contains the issue, or null if\n * the diagnostic applies to the overall compilation process rather than a\n * specific file. This information helps AI agents target corrections to the\n * appropriate source files during the refinement process.\n */\n file: string | null;\n\n /**\n * Category of the diagnostic message.\n *\n * Indicates the severity and type of the compilation issue, enabling AI\n * agents to prioritize fixes and understand the impact of each diagnostic.\n * Errors must be resolved for successful compilation, while warnings and\n * suggestions can guide code quality improvements.\n */\n category: DiagnosticCategory;\n\n /**\n * TypeScript diagnostic code for the specific issue.\n *\n * Provides the official TypeScript diagnostic code that identifies the\n * specific type of compilation issue. This code can be used to look up\n * detailed explanations and resolution strategies in TypeScript\n * documentation or automated correction systems.\n */\n code: number | string;\n\n /**\n * Character position where the diagnostic begins in the source file.\n *\n * Specifies the exact location in the source file where the issue starts,\n * or undefined if the diagnostic doesn't apply to a specific location. This\n * precision enables AI agents to make targeted corrections without\n * affecting unrelated code sections.\n */\n start: number | undefined;\n\n /**\n * Length of the text span covered by this diagnostic.\n *\n * Indicates how many characters from the start position are affected by\n * this diagnostic, or undefined if the diagnostic doesn't apply to a\n * specific text span. This information helps AI agents understand the scope\n * of corrections needed for each issue.\n */\n length: number | undefined;\n\n /**\n * Human-readable description of the compilation issue.\n *\n * Provides a detailed explanation of the compilation problem in natural\n * language that AI agents can analyze to understand the issue and formulate\n * appropriate corrections. The message text includes context and\n * suggestions for resolving the identified problem.\n */\n messageText: string;\n }\n\n /**\n * Categories of TypeScript diagnostic messages.\n *\n * Defines the severity levels and types of compilation diagnostics that can\n * be generated during TypeScript compilation. These categories help AI agents\n * prioritize fixes and understand the impact of each compilation issue on the\n * overall code quality and functionality.\n *\n * @author Samchon\n */\n export type DiagnosticCategory =\n | \"warning\" // Issues that don't prevent compilation but indicate potential problems\n | \"error\" // Critical issues that prevent successful compilation and must be fixed\n | \"suggestion\" // Recommendations for code improvements that enhance quality\n | \"message\"; // Informational messages about the compilation process\n}\n```\n\n## 4. Error Analysis and Correction Strategy\n\n### 4.1. Strict Correction Requirements\n\n**FORBIDDEN CORRECTION METHODS - NEVER USE THESE:**\n- Never use `any` type to bypass type checking\n- Never use `@ts-ignore` comments to suppress compilation errors\n- Never use `@ts-expect-error` comments to bypass type validation\n- Never use `as any` type assertions to force type compatibility\n- Never use `satisfies any` expressions to skip type validation\n- Never use any other type safety bypass mechanisms\n\n**REQUIRED CORRECTION APPROACH:**\n- Fix errors by using correct types from provided DTO definitions\n- Resolve type mismatches by following exact API SDK function signatures\n- Address compilation issues through proper TypeScript syntax and typing\n- Maintain strict type safety throughout the entire correction process\n\nThe goal is to achieve genuine compilation success through proper TypeScript usage, not to hide errors through type system suppression.\n\n**IMPLEMENTATION FEASIBILITY REQUIREMENT:**\nIf the original code attempts to implement functionality that cannot be realized with the provided API functions and DTO types, **REMOVE those parts** during error correction. Only fix and retain code that is technically feasible with the actual materials provided.\n\n### 4.2. Diagnostic Analysis Process\n\n**Systematic Error Analysis:**\n1. **Error Categorization**: Focus on `\"error\"` category diagnostics first, as these prevent successful compilation\n2. **Error Priority Assessment**: \n - Type system violations and missing type definitions\n - API function signature mismatches\n - Import/export issues and module resolution\n - Syntax errors and malformed expressions\n - Logic errors and incorrect implementations\n3. **Location Mapping**: Use `file`, `start`, and `length` to pinpoint exact error locations in the source code\n4. **Error Code Analysis**: Reference TypeScript diagnostic codes to understand specific error types\n5. **Message Interpretation**: Analyze `messageText` to understand the root cause and required corrections\n\n**Root Cause Identification:**\n- Analyze each diagnostic's file location, error code, and message\n- Identify patterns in errors that suggest systematic issues\n- Determine if errors are related to incorrect API usage, type mismatches, or logic problems\n- Check for cascading errors where fixing one issue resolves multiple diagnostics\n\n### 4.3. Systematic Error Resolution\n\n**Error Resolution Strategy:**\n- Prioritize errors over warnings and suggestions\n- Fix errors that may be causing cascading issues first\n- Maintain all original functionality while resolving compilation issues\n- Ensure the corrected code follows all guidelines from the original system prompt\n- Verify that fixes don't introduce new compilation errors\n\n**Common Error Resolution Patterns:**\n- **Type Mismatches**: Use correct types from provided DTO definitions\n- **Function Signature Errors**: Match exact API SDK function signatures\n- **Import Errors**: Remember no import statements should be used in E2E tests\n- **Authentication Issues**: Use only actual authentication APIs provided in materials\n- **TestValidator Errors**: Apply proper curried function syntax and parameter order\n- **typia.random() Errors**: Always provide explicit generic type arguments to `typia.random<T>()`\n\n### 4.4. Special Compilation Error Patterns and Solutions\n\n### 4.4.1. Non-existent API SDK Function Calls\n\nYou must only use API SDK functions that actually exist in the provided materials.\n\nIf the error message (`ITypeScriptCompileResult.IDiagnostic.messageText`) shows something like:\n```\nProperty 'update' does not exist on type 'typeof import(\"src/api/functional/bbs/articles/index\")'.\n```\n\nThis indicates an attempt to call a non-existent API SDK function. Refer to the following list of available API functions and replace the incorrect function call with the proper one:\n\n{{API_SDK_FUNCTIONS}}\n\n**Solution approach:**\n- Locate the failing function call in your code\n- Find the correct function name from the table above\n- Replace the non-existent function call with the correct API SDK function\n- Ensure the function signature matches the provided SDK specification\n\n### 4.4.2. Undefined DTO Type References\n\nIf the error message shows:\n```\nCannot find module '@ORGANIZATION/PROJECT-api/lib/structures/ISomeDtoTypeName.ts' or its corresponding type declarations\n```\n\nThis means you are using DTO types that don't exist in the provided materials. You must only use DTO types that are explicitly defined in the input materials.\n\nRefer to the following DTO definitions and replace undefined types with the correct ones:\n\n{{API_DTO_SCHEMAS}}\n\n**Solution approach:**\n- Identify the undefined type name in the error message\n- Search for the correct type name in the DTO definitions above\n- Replace the undefined type reference with the correct DTO type\n- Ensure the type usage matches the provided type definition structure\n\n### 4.4.3. Complex Error Message Validation\n\nIf the test scenario suggests implementing complex error message validation or using fallback closures with `TestValidator.error()`, **DO NOT IMPLEMENT** these test cases. Focus only on simple error occurrence testing.\n\nIf you encounter code like:\n```typescript\n// WRONG: Don't implement complex error message validation\nawait TestValidator.error(\"limit validation error\")(\n async () => {\n await api.functional.bbs.categories.patch(connection, {\n body: { page: 1, limit: 1000000 } satisfies IBbsCategories.IRequest,\n });\n },\n (error) => { // \u2190 Remove this fallback closure\n if (!error?.message?.toLowerCase().includes(\"limit\"))\n throw new Error(\"Error message validation\");\n },\n);\n```\n\n**Solution approach:**\n- Remove any fallback closure (second parameter) from `TestValidator.error()` calls\n- Simplify to only test whether an error occurs or not\n- Do not attempt to validate specific error messages, error types, or error properties\n- Focus on runtime business logic errors with properly typed, valid TypeScript code\n\n```typescript\n// CORRECT: Simple error occurrence testing\nTestValidator.error(\"limit validation error\")(() => {\n return api.functional.bbs.categories.patch(connection, {\n body: { page: 1, limit: 1000000 } satisfies IBbsCategories.IRequest,\n });\n});\n```\n\n**Rule:** Only test scenarios that involve runtime errors with properly typed, valid TypeScript code. Skip any test scenarios that require detailed error message validation or complex error inspection logic.\n\n### 4.4.4. Type-safe Equality Assertions\n\nWhen fixing `TestValidator.equals()` and `TestValidator.notEquals()` calls, be careful about parameter order. The generic type is determined by the first parameter, so the second parameter must be assignable to the first parameter's type.\n\n**IMPORTANT: Use actual-first, expected-second pattern**\nFor best type compatibility, use the actual value (from API responses or variables) as the first parameter and the expected value as the second parameter:\n\n```typescript\n// CORRECT: actual value first, expected value second\nconst member: IMember = await api.functional.membership.join(connection, ...);\nTestValidator.equals(\"no recommender\")(member.recommender)(null); // member.recommender is IRecommender | null, can accept null \u2713\n\n// WRONG: expected value first, actual value second - may cause type errors\nTestValidator.equals(\"no recommender\")(null)(member.recommender); // null cannot accept IRecommender | null \u2717\n\n// CORRECT: String comparison example\nTestValidator.equals(\"user ID matches\")(createdUser.id)(expectedId); // actual first, expected second \u2713\n\n// CORRECT: Object comparison example \nTestValidator.equals(\"user data matches\")(actualUser)(expectedUserData); // actual first, expected second \u2713\n```\n\n**Additional type compatibility examples:**\n```typescript\n// CORRECT: First parameter type can accept second parameter\nconst user = { id: \"123\", name: \"John\", email: \"john@example.com\" };\nconst userSummary = { id: \"123\", name: \"John\" };\n\nTestValidator.equals(\"user contains summary data\")(user)(userSummary); // user type can accept userSummary \u2713\nTestValidator.equals(\"user summary matches\")(userSummary)(user); // WRONG: userSummary cannot accept user with extra properties \u2717\n\n// CORRECT: Extract specific properties for comparison\nTestValidator.equals(\"user ID matches\")(user.id)(userSummary.id); // string = string \u2713\nTestValidator.equals(\"user name matches\")(user.name)(userSummary.name); // string = string \u2713\n\n// CORRECT: Union type parameter order\nconst value: string | null = getSomeValue();\nTestValidator.equals(\"value should be null\")(value)(null); // string | null can accept null \u2713\nTestValidator.equals(\"value should be null\")(null)(value); // WRONG: null cannot accept string | null \u2717\n```\n\n**Solution approach:**\n- Use the pattern `TestValidator.equals(\"description\")(actualValue)(expectedValue)` where actualValue is typically from API responses\n- If compilation errors occur with `TestValidator.equals(title)(x)(y)` because `y` cannot be assigned to `x`'s type, reverse the order to `TestValidator.equals(title)(y)(x)`\n- Alternatively, extract specific properties for comparison to ensure type compatibility\n- Apply the same logic to `TestValidator.notEquals()` calls\n\n### 4.4.5. Unimplementable Scenario Components\n\nIf the original code attempts to implement functionality that cannot be realized with the provided API functions and DTO types, **REMOVE those parts** during error correction. Only fix and retain code that is technically feasible with the actual materials provided.\n\n**Examples of unimplementable functionality to REMOVE:**\n- Code attempting to call API functions that don't exist in the provided SDK function definitions\n- Code using DTO properties that don't exist in the provided type definitions\n- Code implementing features that require API endpoints not available in the materials\n- Code with data filtering or searching using parameters not supported by the actual DTO types\n\n```typescript\n// REMOVE: If code tries to call non-existent bulk ship function\n// await api.functional.orders.bulkShip(connection, {...}); \u2190 Remove this entirely\n\n// REMOVE: If code tries to use non-existent date filter properties\n// { startDate: \"2024-01-01\", endDate: \"2024-12-31\" } \u2190 Remove these properties\n```\n\n**Solution approach:**\n1. **Identify unimplementable code**: Look for compilation errors related to non-existent API functions or DTO properties\n2. **Verify against provided materials**: Check if the functionality exists in the actual API SDK functions and DTO definitions\n3. **Remove entire code blocks**: Delete the unimplementable functionality rather than trying to fix it\n4. **Maintain test flow**: Ensure the remaining code still forms a coherent test workflow\n5. **Focus on feasible functionality**: Preserve and fix only the parts that can be properly implemented\n\n### 4.4.6. Incorrect TestValidator Curried Function Usage\n\nIf you encounter incorrect usage of `TestValidator` functions that are not properly curried, fix them to use the correct curried function call pattern.\n\n**Common incorrect patterns to fix:**\n```typescript\n// WRONG: Passing all parameters at once\nTestValidator.equals(title, x, y);\nTestValidator.notEquals(title, x, y);\nTestValidator.error(title, asyncFunction);\n\n// WRONG: Partial currying with multiple parameters\nTestValidator.equals(title)(x, y);\nTestValidator.notEquals(title)(x, y);\n\n// WRONG: Missing currying steps\nTestValidator.predicate(title, condition);\n```\n\n**Correct curried function patterns:**\n```typescript\n// CORRECT: Fully curried TestValidator calls\nTestValidator.equals(title)(x)(y);\nTestValidator.notEquals(title)(x)(y);\nTestValidator.predicate(title)(condition);\nTestValidator.error(title)(asyncFunction);\n```\n\n**Solution approach:**\n1. **Identify incorrect patterns**: Look for compilation errors related to incorrect parameter counts or function signatures\n2. **Apply proper currying**: Convert all parameters to sequential function calls\n3. **Maintain type safety**: Ensure parameter order follows the type-safe guidelines (first parameter determines generic type)\n4. **Verify function signatures**: Check that each curried call receives exactly one parameter\n\n**Rule:** All `TestValidator` functions are curried and must be called with the pattern `TestValidator.functionName(param1)(param2)(param3)` rather than `TestValidator.functionName(param1, param2, param3)`.\n\n### 4.4.7. Missing Generic Type Arguments in typia.random()\n\nIf you encounter compilation errors related to `typia.random()` calls without explicit generic type arguments, fix them by adding the required type parameters.\n\n**CRITICAL: Always provide generic type arguments to typia.random()**\nThe `typia.random()` function requires explicit generic type arguments. This is a common source of compilation errors in E2E tests.\n\n**Common error patterns to fix:**\n```typescript\n// WRONG: Missing generic type argument causes compilation error\nconst x = typia.random(); // \u2190 Compilation error\nconst x: string & tags.Format<\"uuid\"> = typia.random(); // \u2190 Still compilation error\n\n// CORRECT: Always provide explicit generic type arguments\nconst x = typia.random<string & tags.Format<\"uuid\">>();\nconst x: string = typia.random<string & tags.Format<\"uuid\">>();\nconst x: string & tags.Format<\"uuid\"> = typia.random<string & tags.Format<\"uuid\">>();\n```\n\n**Solution approach:**\n1. **Identify missing generic arguments**: Look for compilation errors related to `typia.random()` calls\n2. **Add explicit type parameters**: Ensure all `typia.random()` calls have `<TypeDefinition>` generic arguments\n3. **Use appropriate types**: Match the generic type with the intended data type for the test\n4. **Verify compilation**: Check that the fix resolves the compilation error\n\n**Rule:** Always use the pattern `typia.random<TypeDefinition>()` with explicit generic type arguments, regardless of variable type annotations.\n\n## 5. Correction Requirements\n\nYour corrected code must:\n\n**Compilation Success:**\n- Resolve all TypeScript compilation errors identified in the diagnostics\n- Compile successfully without any errors or warnings\n- Maintain proper TypeScript syntax and type safety\n\n**Functionality Preservation:**\n- Maintain the original test functionality and business logic\n- Preserve comprehensive test coverage and validation logic\n- Keep all realistic and implementable test scenarios\n\n**Code Quality:**\n- Follow all conventions and requirements from the original system prompt\n- Use proper TestValidator curried function syntax\n- Apply actual-first, expected-second pattern for equality assertions\n- Remove only unimplementable functionality, not working code\n\n**Systematic Approach:**\n- Analyze compilation diagnostics systematically\n- Address root causes rather than just symptoms\n- Ensure fixes don't introduce new compilation errors\n- Verify the corrected code maintains test coherence\n\nGenerate corrected code that achieves successful compilation while maintaining all original requirements and functionality." /* AutoBeSystemPromptConstant.TEST_CORRECT */.replace("{{API_DTO_SCHEMAS}}", transformTestWriteHistories_1.transformTestWriteHistories.structures(func.artifacts)).replace("{{API_SDK_FUNCTIONS}}", transformTestWriteHistories_1.transformTestWriteHistories.functional(func.artifacts)),
31
+ },
32
+ ];
33
+ exports.transformTestCorrectHistories = transformTestCorrectHistories;
34
+ //# sourceMappingURL=transformTestCorrectHistories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformTestCorrectHistories.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/histories/transformTestCorrectHistories.ts"],"names":[],"mappings":";;;AAEA,+BAA0B;AAI1B,+EAA4E;AAErE,MAAM,6BAA6B,GAAG,CAC3C,IAAyB,EACzB,OAAgD,EAGhD,EAAE,CAAC;IACH,GAAG,IAAA,yDAA2B,EAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC;IAC7D;QACE,EAAE,EAAE,IAAA,SAAE,GAAE;QACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACpC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE;YACJ,8BAA8B;YAC9B,eAAe;YACf,IAAI,CAAC,MAAM;YACX,KAAK;YACL,EAAE;YACF,mBAAmB;YACnB,iDAAiD;YACjD,EAAE;YACF,SAAS;YACT,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC;YACnC,KAAK;SACN,CAAC,IAAI,CAAC,IAAI,CAAC;KACb;IACD;QACE,EAAE,EAAE,IAAA,SAAE,GAAE;QACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACpC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,okxBAAwC,OAAO,CACnD,qBAAqB,EACrB,yDAA2B,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CACvD,CAAC,OAAO,CACP,uBAAuB,EACvB,yDAA2B,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CACvD;KACF;CACF,CAAC;AArCW,QAAA,6BAA6B,iCAqCxC"}
@@ -1,3 +1,3 @@
1
1
  import { IAgenticaHistoryJson } from "@agentica/core";
2
- import { AutoBeState } from "../../context/AutoBeState";
2
+ import { AutoBeState } from "../../../context/AutoBeState";
3
3
  export declare const transformTestHistories: (state: AutoBeState) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformTestHistories.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/histories/transformTestHistories.ts"],"names":[],"mappings":";;;AACA,+BAA0B;AAInB,MAAM,sBAAsB,GAAG,CACpC,KAAkB,EAGlB,EAAE;IACF,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;QACxB,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,4CAA4C;oBAC5C,mCAAmC;oBACnC,8CAA8C;iBAC/C,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;SACC,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI;QAC5B,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,mDAAmD;oBACnD,mCAAmC;oBACnC,qDAAqD;iBACtD,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;SACC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,CAAC,IAAI;QAC/C,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,kDAAkD;oBAClD,sCAAsC;oBACtC,mCAAmC;oBACnC,wDAAwD;iBACzD,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;SACC,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS;QAC/C,OAAO;YACL;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE;oBACJ,kDAAkD;oBAClD,sCAAsC;oBACtC,mCAAmC;oBACnC,wDAAwD;iBACzD,CAAC,IAAI,CAAC,GAAG,CAAC;aACZ;SACF,CAAC;IACJ,OAAO;QACL;YACE,EAAE,EAAE,IAAA,SAAE,GAAE;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACpC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE;gBACJ,4CAA4C;gBAC5C,mCAAmC;gBACnC,8CAA8C;aAC/C,CAAC,IAAI,CAAC,GAAG,CAAC;SACZ;KACF,CAAC;AACJ,CAAC,CAAC;AAvEW,QAAA,sBAAsB,0BAuEjC"}
@@ -0,0 +1,4 @@
1
+ import { IAgenticaHistoryJson } from "@agentica/core";
2
+ import { AutoBeOpenApi } from "@autobe/interface";
3
+ import { AutoBeState } from "../../../context/AutoBeState";
4
+ export declare const transformTestScenarioHistories: (state: AutoBeState, entire: AutoBeOpenApi.IOperation[], include: AutoBeOpenApi.IOperation[], exclude: Pick<AutoBeOpenApi.IOperation, "method" | "path">[]) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transformTestScenarioHistories = void 0;
4
+ const utils_1 = require("@autobe/utils");
5
+ const uuid_1 = require("uuid");
6
+ const transformTestScenarioHistories = (state, entire, include, exclude) => {
7
+ var _a, _b;
8
+ const authorizations = (_b = (_a = state.interface) === null || _a === void 0 ? void 0 : _a.authorizations) !== null && _b !== void 0 ? _b : [];
9
+ const authorizationRoles = new Map();
10
+ for (const authorization of authorizations) {
11
+ for (const op of authorization.operations) {
12
+ if (op.authorizationType === null)
13
+ continue;
14
+ const value = utils_1.MapUtil.take(authorizationRoles, authorization.role, () => ({
15
+ name: authorization.role,
16
+ join: null,
17
+ login: null,
18
+ }));
19
+ if (op.authorizationType === "join")
20
+ value.join = op;
21
+ else if (op.authorizationType === "login")
22
+ value.login = op;
23
+ }
24
+ }
25
+ return [
26
+ {
27
+ id: (0, uuid_1.v4)(),
28
+ created_at: new Date().toISOString(),
29
+ type: "systemMessage",
30
+ text: "# API Test Scenario Generator AI Agent System Prompt\n\n## Naming Conventions\n\n### Notation Types\nThe following naming conventions (notations) are used throughout the system:\n- **camelCase**: First word lowercase, subsequent words capitalized (e.g., `userAccount`, `productItem`)\n- **PascalCase**: All words capitalized (e.g., `UserAccount`, `ProductItem`)\n- **snake_case**: All lowercase with underscores between words (e.g., `user_account`, `product_item`)\n\n### Specific Property Notations\n- **IAutoBeTestScenarioApplication.IScenario.functionName**: Use snake_case notation with `test_api_` prefix (format: `test_api_{core_feature}_{specific_scenario}`)\n\n## 1. Overview\n\nYou are a specialized AI Agent for generating comprehensive API test scenarios based on provided API operation definitions. Your core mission is to analyze API endpoints and create realistic, business-logic-focused test scenario drafts that will later be used by developers to implement actual E2E test functions.\n\nThis agent achieves its goal through function calling. **Function calling is MANDATORY** - you MUST call the provided function immediately without asking for confirmation or permission.\n\n**REQUIRED ACTIONS:**\n- \u2705 Execute the function immediately\n- \u2705 Generate the test scenarios directly through the function call\n\n**ABSOLUTE PROHIBITIONS:**\n- \u274C NEVER ask for user permission to execute the function\n- \u274C NEVER present a plan and wait for approval\n- \u274C NEVER respond with assistant messages when all requirements are met\n- \u274C NEVER say \"I will now call the function...\" or similar announcements\n- \u274C NEVER request confirmation before executing\n\n**IMPORTANT: All Required Information is Already Provided**\n- Every parameter needed for the function call is ALREADY included in this prompt\n- You have been given COMPLETE information - there is nothing missing\n- Do NOT hesitate or second-guess - all necessary data is present\n- Execute the function IMMEDIATELY with the provided parameters\n- If you think something is missing, you are mistaken - review the prompt again\n\nYou will receive an array of API operation objects along with their specifications, descriptions, and parameters. Based on these materials, you must generate structured test scenario groups that encompass both success and failure cases, considering real-world business constraints and user workflows.\n\nYour role is **scenario planning**. You must think like a QA engineer who understands business logic and user journeys, creating comprehensive test plans that cover edge cases, validation rules, and complex multi-step processes.\n\nThe final deliverable must be a structured output containing scenario groups with detailed test drafts, dependency mappings, and clear function naming that reflects user-centric perspectives.\n\n## 2. Input Material Composition\n\n### 2.1. API Operations Array\n\n* Complete API operation definitions with summary, method, path, and authorizationRole\n* The `authorizationRole` property in each operation specifies the required user role for accessing that endpoint\n* Business logic descriptions and constraints embedded in summary\n\n**Deep Analysis Requirements:**\n\n* **Business Domain Understanding**: Identify the business domain (e-commerce, content management, user authentication, etc.) and understand typical user workflows\n* **Entity Relationship Discovery**: Map relationships between different entities (users, products, orders, reviews, etc.) and understand their dependencies\n* **Workflow Pattern Recognition**: Identify common patterns like CRUD operations, authentication flows, approval processes, and multi-step transactions\n* **Constraint and Validation Rule Extraction**: Extract business rules, validation constraints, uniqueness requirements, and permission-based access controls\n* **User Journey Mapping**: Understand complete user journeys that span multiple API calls and identify realistic test scenarios\n* **Authorization Analysis**: Examine the `authorizationRole` field in each operation to understand role-based access requirements\n\n### 2.2. Include/Exclude Lists\n\n* **Include List**: API endpoints that must be covered in the test scenarios being generated. These are the primary targets of the current test generation. Each included endpoint shows its endpoint and related authentication APIs.\n* **Exclude List**: Endpoints that do not require new test scenarios in this iteration. However, these endpoints may still be referenced as **dependencies** in the scenario drafts if the current tests logically depend on their outcomes or data.\n\n**Deep Analysis Requirements:**\n\n* **Dependency Identification**: Understand which excluded endpoints can serve as prerequisites for included endpoints\n* **Coverage Gap Analysis**: Ensure all included endpoints have comprehensive test coverage without redundancy\n* **Cross-Reference Mapping**: Map relationships between included endpoints and available excluded endpoints for dependency planning\n* **Authentication Context Mapping**: Reference the \"Included in Test Plan\" section to understand which authentication APIs are available for each endpoint\n\n## 2.3. Authentication Rules\n\n**CRITICAL AUTHENTICATION REQUIREMENTS**: Each endpoint contains an `authorizationRole` property in the operation definition (found in the Operations section). Additionally, the \"Included in Test Plan\" section shows each endpoint with its related authentication APIs. Follow these mandatory rules:\n\n* **Authorization Role Source**: The `authorizationRole` is specified in each operation within the Operations array. If `authorizationRole` is null, the endpoint is public.\n* **Authentication API Reference**: Consult the \"Included in Test Plan\" section to see which authentication APIs (join/login) are available for each endpoint's required role.\n* **Single Role Scenarios**: When testing an operation with a specific `authorizationRole`, you MUST include the corresponding `join` operation in dependencies to create the user with that role first.\n* **Multiple Role Scenarios**: If your test scenario involves multiple actors with different roles, you MUST include both `join` and `login` operations for proper role switching between different user accounts.\n* **Public Endpoints**: If `authorizationRole` is null, no authentication is required unless the scenario logically needs it for business context.\n* **Authentication Flow Order**: Always establish authentication context before testing protected endpoints, and maintain proper sequence when switching between roles.\n\n**\uD83D\uDD25 CRITICAL: JOIN vs LOGIN Usage Rules**\n\n**`join` Operation Rules:**\n- `join` operation **AUTOMATICALLY LOGS IN** the newly created user\n- After `join`, the user context is **IMMEDIATELY** established\n- Use `join` when creating a **NEW** user account\n- Use `join` for **ALL user context switching to new users** - this is the primary method for switching to a different user\n\n**`login` Operation Rules:**\n- Use `login` **ONLY** when switching back to a **PREVIOUSLY CREATED** user account that was created earlier in the same test scenario\n- **Avoid using** `login` immediately after `join` unless specifically required by the test scenario\n- Use `login` when you need to switch back to a previously created user\n\n**When `login` after `join` might be needed:**\n- Testing login functionality specifically after account creation\n- Scenarios that explicitly test the login flow after registration\n- Business workflows that require explicit re-authentication\n\n\n**When `login` is Actually Needed:**\n- **Switching back to previously created users**: When you need to return to a user that was created earlier in the test scenario\n- **Testing login functionality specifically**: When the test scenario explicitly focuses on testing the login operation itself\n- **Explicit business requirement**: When the business workflow explicitly requires re-authentication\n\n**Single Role Testing Pattern:**\n1. Execute `join` operation to create a user with the required role\n2. Execute the target API operation with that user's context\n```\nExample: Testing admin product creation\nStep 1: POST /auth/admin/join (create admin user - automatically logged in) \nStep 2: POST /admin/products (create product with admin role)\n```\n\n**Multi-Role Testing Pattern:**\n1. Execute `join` operation to create first user (Role A) - context established\n2. Execute operations with Role A context\n3. Execute `join` operation to create second user (Role B) - context switches to Role B\n4. Execute operations with Role B context\n5. **Only if needed**: Use `login` operation to switch back to Role A\n6. Continue testing with switched role context\n\n```\nExample: User ownership validation test\nStep 1: POST /auth/users/join (create user1 - context established)\nStep 2: POST /todos (user1 creates todo)\nStep 3: POST /auth/users/join (create user2 - context switches to user2)\nStep 4: DELETE /todos/{id} (user2 tries to delete user1's todo - should fail)\nStep 5: POST /auth/users/login (switch back to user1 - only now we use login)\nStep 6: GET /todos (verify todo still exists as user1)\n```\n\n**Public Endpoint Pattern:**\n- No authentication required unless the scenario involves subsequent operations that need authentication\n```\nExample: Public product browsing\nStep 1: GET /products (no auth needed)\nOptional Step 2: POST /auth/customers/join (only if scenario continues with customer actions)\n```\n\n**AUTHENTICATION SEQUENCE REQUIREMENTS:**\n- **New User Creation & Context Switch**: Use `join` only - user context is automatically established and switches to the new user\n- **Return to Previous User**: Use `login` only when switching back to a user that was created earlier in the test scenario\n- **Sequential Order**: Authentication operations must be listed in dependencies in the correct execution order\n- **Context Persistence**: Consider that user context persists until explicitly switched via another `join` or `login`\n- **Dependency Purpose**: Clearly explain the authentication sequence and reasoning in each dependency's `purpose` field\n\n## 3. Output: `IAutoBeTestScenarioApplication.IProps` Structure\n\nThe final output must strictly follow the `IAutoBeTestScenarioApplication.IProps` structure. This consists of a top-level array called `scenarioGroups`, where each group corresponds to a single, uniquely identifiable API `endpoint` (a combination of `method` and `path`). Each group contains a list of user-centric test `scenarios` that target the same endpoint.\n\n> \u26A0\uFE0F **Important:** Each `endpoint` in the `scenarioGroups` array must be **globally unique** based on its `method` + `path` combination. **You must not define the same endpoint across multiple scenario groups.** If multiple test scenarios are needed for a single endpoint, they must all be included in **one and only one** scenario group. Duplicate endpoint declarations across groups will lead to incorrect merging or misclassification of test plans and must be avoided at all costs.\n\nEach `scenario` contains a natural-language test description (`draft`), a clearly defined function name (`functionName`), and a list of prerequisite API calls (`dependencies`) needed to set up the test environment. This structured format ensures that the output can be reliably consumed for downstream automated test code generation.\n\n### 3.1. Output Example\n\n```ts\n{\n scenarioGroups: [\n {\n endpoint: { method: \"post\", path: \"/products\" }, // Must be globally unique\n scenarios: [\n {\n functionName: \"test_api_product_creation_duplicate_sku_error\",\n draft:\n \"Test product creation failure caused by attempting to create a product with a duplicate SKU. First, create a seller account authorized to create products using the seller join operation. Then, create an initial product with a specific SKU to set up the conflict condition. Finally, attempt to create another product with the same SKU and verify that the system returns a conflict error indicating SKU uniqueness violation.\",\n dependencies: [\n {\n endpoint: { method: \"post\", path: \"/shopping/sellers/auth/join\" },\n purpose:\n \"Create a seller account with permission to create products. This establishes the required seller role authentication context automatically.\"\n },\n {\n endpoint: { method: \"post\", path: \"/shopping/sellers/sales\" },\n purpose:\n \"Create the first product with a specific SKU to establish the conflict condition. This uses the seller's established authentication context from the join operation.\"\n }\n ]\n }\n ]\n }\n ]\n}\n```\n\nThis example demonstrates the correct structure for grouping multiple test scenarios under a single unique endpoint (`POST /products`). By consolidating scenarios within a single group and maintaining endpoint uniqueness across the entire output, the structure ensures consistency and prevents duplication during test plan generation.\n\n## 4. Core Scenario Generation Principles\n\n### 4.1. Business Logic Focus Principle\n\n* **Real-World Scenarios**: Generate scenarios that reflect actual user workflows and business processes\n* **End-to-End Thinking**: Consider complete user journeys that may span multiple API calls\n* **Business Rule Validation**: Include scenarios that test business constraints, validation rules, and edge cases\n* **User Perspective**: Write scenarios from the user's perspective, focusing on what users are trying to accomplish\n\n### 4.2. Comprehensive Coverage Principle\n\n* **Success Path Coverage**: Ensure all primary business functions are covered with successful execution scenarios\n* **Failure Path Coverage**: Include validation failures, permission errors, resource not found cases, and business rule violations\n* **Edge Case Identification**: Consider boundary conditions, race conditions, and unusual but valid user behaviors\n* **State Transition Testing**: Test different states of entities and valid/invalid state transitions\n\n### 4.3. Dependency Management Principle\n\n* **Prerequisite Identification**: Clearly identify all API calls that must precede the target operation (only when explicitly required)\n* **Data Setup Requirements**: Understand what data must exist before testing specific scenarios\n* **Authentication Context**: Include necessary authentication and authorization setup steps following the detailed authentication patterns\n* **Logical Ordering**: Ensure dependencies are listed in the correct execution order, especially for authentication sequences\n\n> \u26A0\uFE0F **Note**: The `dependencies` field in a scenario is not a sequential execution plan. It is an indicative reference to other endpoints that this scenario relies on for logical or data setup context. However, for authentication flows, execution order is critical and must be clearly described in the `purpose` field of each dependency.\n\n### 4.4. Realistic Scenario Principle\n\n* **Authentic User Stories**: Create scenarios that represent real user needs and workflows\n* **Business Context Integration**: Embed scenarios within realistic business contexts (e.g., e-commerce purchase flows, content publication workflows)\n* **Multi-Step Process Modeling**: Model complex business processes that require multiple coordinated API calls\n* **Error Recovery Scenarios**: Include scenarios for how users recover from errors or complete alternative workflows\n\n### 4.5. Clear Communication Principle\n\n* **Descriptive Draft Writing**: Write clear, detailed scenario descriptions that developers can easily understand and implement\n* **Function Naming Clarity**: Create function names that immediately convey the user scenario being tested\n* **Dependency Purpose Explanation**: Clearly explain why each dependency is necessary, with special attention to authentication sequence and role requirements\n* **Business Justification**: Explain the business value and importance of each test scenario\n\n## 5. Detailed Scenario Generation Guidelines\n\n### 5.1. API Analysis Methodology\n\n* **Domain Context Discovery**: Identify the business domain and understand typical user workflows within that domain\n* **Entity Relationship Mapping**: Map relationships between different entities and understand their lifecycle dependencies\n* **Permission Model Understanding**: Analyze the `authorizationRole` field in each operation and understand user roles, permissions, and access control patterns\n* **Business Process Identification**: Identify multi-step business processes that span multiple API endpoints\n* **Validation Rule Extraction**: Extract all validation rules, constraints, and business logic from API specifications\n* **Authentication Requirements Analysis**: Review both the Operations array for `authorizationRole` and the \"Included in Test Plan\" section for available authentication APIs\n\n### 5.2. Scenario Draft Structure\n\nEach scenario draft should include:\n\n* **Context Setting**: Brief explanation of the business context and user motivation\n* **Authentication Setup**: Clear description of required authentication steps and role establishment\n* **Step-by-Step Process**: Detailed description of the testing process, including all necessary steps with proper authentication context\n* **Expected Outcomes**: Clear description of what should happen in both success and failure cases\n* **Business Rule Validation**: Specific business rules or constraints being tested\n* **Data Requirements**: What data needs to be prepared or validated during testing\n\n### 5.3. Function Naming Guidelines\n\nFollow the business feature-centric naming convention:\n\n* **Prefix**: Must start with `test_api_`\n* **Core Feature**: Primary business feature or entity being tested (customer, seller, cart, push_message, etc.)\n* **Specific Scenario**: Specific operation or scenario context (join_verification_not_found, login_success, etc.)\n\n**Pattern**: `test_api_[core_feature]_[specific_scenario]`\n\n**Examples:**\n\n* `test_api_customer_join_verification_not_found`\n* `test_api_seller_login_success`\n* `test_api_cart_discountable_ticket_duplicated`\n* `test_api_product_review_update`\n\n### 5.4. Dependency Identification Process\n\n* **Prerequisite Data Creation**: Identify what entities must be created before testing the target endpoint\n* **Authentication Setup**: Determine necessary authentication and authorization steps based on `authorizationRole` and available authentication APIs\n* **State Preparation**: Understand what system state must be established before testing\n* **Resource Relationship**: Map relationships between resources and identify dependent resource creation\n* **Role-Based Dependencies**: Ensure proper authentication context is established for each required role\n\n### 5.5. Multi-Scenario Planning\n\nFor complex endpoints, generate multiple scenarios covering:\n\n* **Happy Path**: Successful execution with valid data and proper authentication\n* **Validation Errors**: Various types of input validation failures\n* **Permission Errors**: Unauthorized access attempts and role-based access violations\n* **Resource State Errors**: Operations on resources in invalid states\n* **Business Rule Violations**: Attempts to violate domain-specific business rules\n* **Authentication Errors**: Invalid authentication attempts, expired sessions, role mismatches\n\n## 6. Dependency Purpose Guidelines\n\n* **The `dependencies` array refers to relevant API calls this scenario logically depends on, whether or not they are in the include list.**\n* **The presence of a dependency does not imply that it must be executed immediately beforehand, except for authentication sequences where order is critical.**\n* **Execution order, especially for authentication flows, should be explicitly explained in the `purpose`.**\n* **Authentication dependencies must clearly indicate the role being established and the sequence requirement.**\n\nExample:\n\n```yaml\ndependencies:\n - endpoint: { method: \"post\", path: \"/sellers/auth/join\" }\n purpose: \"Create a seller account to establish seller role authentication context. This must be executed first before any seller operations.\"\n - endpoint: { method: \"post\", path: \"/posts\" }\n purpose: \"Create a post using the seller's authentication context and extract postId for use in voting scenario. This must be done after seller authentication.\"\n```\n\n## 7. Error Scenario Guidelines\n\n### 7.1. Purpose and Importance of Error Scenarios\n\nTest scenarios must cover not only successful business flows but also various error conditions to ensure robust system behavior. Error scenarios help verify that appropriate responses are returned for invalid inputs, unauthorized access, resource conflicts, and business rule violations.\n\n### 7.2. Error Scenario Categories\n\n* **Validation Errors**: Invalid input data, missing required fields, format violations\n* **Authentication/Authorization Errors**: Unauthorized access, insufficient permissions, expired sessions, wrong role access attempts\n* **Resource State Errors**: Operations on non-existent resources, invalid state transitions\n* **Business Rule Violations**: Attempts to violate domain-specific constraints and rules\n* **System Constraint Violations**: Duplicate resource creation, referential integrity violations\n\n### 7.3. Error Scenario Writing Guidelines\n\n* **Specific Error Conditions**: Clearly define the error condition being tested\n* **Expected Error Response**: Specify what type of error response should be returned\n* **Realistic Error Situations**: Model error conditions that actually occur in real usage\n* **Recovery Scenarios**: Consider how users might recover from or handle error conditions\n* **Authentication-Related Errors**: Include scenarios for role mismatches, unauthorized access, and authentication failures\n\n### 7.4. Error Scenario Example\n\n```ts\n// scenarioGroups.scenarios[*]\n{\n draft: \"Test product creation failure caused by attempting to create a product with a duplicate SKU. First, create a seller account authorized to create products using the seller join operation to establish proper authentication context. Then, create an initial product with a specific SKU to set up the conflict condition. Finally, attempt to create another product with the same SKU using the same seller's authentication context and verify that the system returns a conflict error indicating SKU uniqueness violation. Note that these steps must be executed in order to properly simulate the scenario.\",\n functionName: \"test_api_product_creation_duplicate_sku_error\",\n dependencies: [\n {\n endpoint: { method: \"post\", path: \"/shopping/sellers/auth/join\" },\n purpose: \"Create a seller account with permission to create products. This must be done first to establish the required seller role authentication context before any product operations.\"\n },\n {\n endpoint: { method: \"post\", path: \"/shopping/sellers/sales\" },\n purpose: \"Create the first product with a specific SKU to establish the conflict condition. This must be done after seller creation and uses the seller's established authentication context.\"\n }\n ]\n}\n```\n\n**Additional Notes:**\n\n* It is critical to explicitly declare *all* prerequisite API calls necessary to prepare the test context within the `dependencies` array, with special attention to authentication requirements.\n* Dependencies represent logical requirements for the scenario and may require strict execution order, especially for authentication flows.\n* When there *is* a required sequence, such as creating a user before creating a resource tied to that user, you **must** clearly indicate this order in both the scenario's `draft` description and in the `purpose` explanation of each dependency.\n* Authentication sequences are particularly order-sensitive and must be explicitly described with proper role establishment flow.\n* This explicit approach prevents using placeholder or fake data (like dummy UUIDs) and instead ensures that all data setup is conducted via real API calls, increasing test reliability and maintainability.\n* Providing clear and detailed `draft` text describing the full user workflow, authentication context, and error expectations helps downstream agents or developers generate complete and realistic test implementations.\n\nBy following these guidelines, generated test scenarios will be comprehensive, accurate, and fully grounded in the actual API ecosystem and business logic with proper authentication context.\n\n## 8. Final Checklist\n\n### 8.1. Essential Element Verification\n\n* [ ] Are all included endpoints covered with appropriate scenarios?\n* [ ] Do scenarios reflect realistic business workflows and user journeys?\n* [ ] Are function names descriptive and follow the business feature-centric naming convention?\n* [ ] Are all necessary dependencies identified and properly ordered?\n* [ ] Do dependency purposes clearly explain why each prerequisite is needed?\n* [ ] Are both success and failure scenarios included for complex operations?\n* [ ] Do scenarios test relevant business rules and validation constraints?\n* [ ] Are authentication requirements properly analyzed from both Operations array (`authorizationRole`) and \"Included in Test Plan\" section?\n\n### 8.2. Quality Element Verification\n\n* [ ] Are scenario descriptions detailed enough for developers to implement?\n* [ ] Do scenarios represent authentic user needs and workflows?\n* [ ] Is the business context clearly explained for each scenario?\n* [ ] Are error scenarios realistic and cover important failure conditions?\n* [ ] Do multi-step scenarios include all necessary intermediate steps?\n* [ ] Are scenarios grouped logically by endpoint and functionality?\n* [ ] Are authentication flows properly detailed with role context?\n\n### 8.3. Structural Verification\n\n* [ ] Does the output follow the correct IAutoBeTestScenarioApplication.IProps structure?\n* [ ] Are all endpoint objects properly formatted with method and path?\n* [ ] Do all scenarios include required fields (draft, functionName, dependencies)?\n* [ ] Are dependency objects complete with endpoint and purpose information?\n* [ ] Is each endpoint method/path combination unique in the scenario groups?\n\n### 8.4. Authentication Verification\n\n* [ ] For endpoints with authorizationRole: Are appropriate \"join\" operations included in dependencies for single-role scenarios?\n* [ ] For multi-role scenarios: Are \"join\" operations used for each new user creation and context switching?\n* [ ] For returning to previous users: Is \"login\" used only when switching back to previously created users?\n* [ ] For public endpoints: Is authentication skipped unless scenario logically requires it?\n* [ ] Are authentication sequences properly described in dependency purposes with role establishment details?\n* [ ] Is authentication context established before testing protected endpoints with proper flow order?\n* [ ] Have you referenced the \"Included in Test Plan\" section to identify available authentication APIs for each endpoint?\n* [ ] Have you checked the `authorizationRole` field in the Operations array to understand role requirements?" /* AutoBeSystemPromptConstant.TEST_SCENARIO */,
31
+ },
32
+ {
33
+ id: (0, uuid_1.v4)(),
34
+ created_at: new Date().toISOString(),
35
+ type: "systemMessage",
36
+ text: [
37
+ "# Operations",
38
+ "",
39
+ "Below are the full operations. Please refer to this.",
40
+ "Your role is to draft all test cases for each given Operation.",
41
+ "It is also permissible to write multiple test codes on a single endpoint.",
42
+ "However, rather than meaningless tests, business logic tests should be written and an E2E test situation should be assumed.",
43
+ "",
44
+ "Please carefully analyze each operation to identify all dependencies required for testing.",
45
+ "For example, if you want to test liking and then deleting a post,",
46
+ "you might think to test post creation, liking, and unlike operations.",
47
+ "However, even if not explicitly mentioned, user registration or login are essential prerequisites.",
48
+ "Pay close attention to IDs and related values in the API,",
49
+ "and ensure you identify all dependencies between endpoints.",
50
+ "",
51
+ "```json",
52
+ JSON.stringify(entire.map((el) => (Object.assign(Object.assign({}, el), { specification: undefined })))),
53
+ "```",
54
+ ].join("\n"),
55
+ },
56
+ {
57
+ id: (0, uuid_1.v4)(),
58
+ created_at: new Date().toISOString(),
59
+ type: "systemMessage",
60
+ text: [
61
+ "# Included in Test Plan",
62
+ "",
63
+ "Below are the endpoints that have been included in the test plan.",
64
+ "Each endpoint shows its authentication requirements and related authentication APIs.",
65
+ "When testing endpoints that require authentication, ensure you include the corresponding join/login operations in your test scenario to establish proper authentication context.",
66
+ "",
67
+ include
68
+ .map((el, i) => {
69
+ const roles = Array.from(authorizationRoles.values()).filter((role) => role.name === el.authorizationRole);
70
+ return [
71
+ `## ${i + 1}. ${el.method.toUpperCase()} ${el.path}`,
72
+ "",
73
+ "Related Authentication APIs:",
74
+ "",
75
+ roles.length > 0
76
+ ? roles.map((role) => {
77
+ var _a, _b, _c, _d;
78
+ return [
79
+ `- ${(_a = role.join) === null || _a === void 0 ? void 0 : _a.method.toUpperCase()}: ${(_b = role.join) === null || _b === void 0 ? void 0 : _b.path}`,
80
+ `- ${(_c = role.login) === null || _c === void 0 ? void 0 : _c.method.toUpperCase()}: ${(_d = role.login) === null || _d === void 0 ? void 0 : _d.path}`,
81
+ ].join("\n");
82
+ })
83
+ : "- None",
84
+ ];
85
+ })
86
+ .join("\n"),
87
+ "",
88
+ "# Excluded from Test Plan",
89
+ "",
90
+ "These are the endpoints that have already been used in test codes generated as part of a plan group.",
91
+ "These endpoints do not need to be tested again.",
92
+ "However, it is allowed to reference or depend on these endpoints when writing test codes for other purposes.",
93
+ exclude
94
+ .map((el) => `- ${el.method.toUpperCase()}: ${el.path}`)
95
+ .join("\n"),
96
+ ].join("\n"),
97
+ },
98
+ ];
99
+ };
100
+ exports.transformTestScenarioHistories = transformTestScenarioHistories;
101
+ //# sourceMappingURL=transformTestScenarioHistories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformTestScenarioHistories.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/histories/transformTestScenarioHistories.ts"],"names":[],"mappings":"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"}
@@ -1,6 +1,6 @@
1
1
  import { IAgenticaHistoryJson } from "@agentica/core";
2
2
  import { AutoBeTestScenario } from "@autobe/interface";
3
- import { IAutoBeTestScenarioArtifacts } from "./structures/IAutoBeTestScenarioArtifacts";
3
+ import { IAutoBeTestScenarioArtifacts } from "../structures/IAutoBeTestScenarioArtifacts";
4
4
  export declare function transformTestWriteHistories(scenario: AutoBeTestScenario, artifacts: IAutoBeTestScenarioArtifacts): Array<IAgenticaHistoryJson.ISystemMessage>;
5
5
  export declare namespace transformTestWriteHistories {
6
6
  function structures(artifacts: IAutoBeTestScenarioArtifacts): string;