@autobe/agent 0.22.1 → 0.23.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 (687) hide show
  1. package/lib/AutoBeAgent.d.ts +2 -1
  2. package/lib/{agent/src/AutoBeAgent.js → AutoBeAgent.js} +17 -3
  3. package/lib/AutoBeAgent.js.map +1 -0
  4. package/lib/AutoBeAgentBase.js.map +1 -0
  5. package/lib/{agent/src/AutoBeMockAgent.js → AutoBeMockAgent.js} +16 -0
  6. package/lib/AutoBeMockAgent.js.map +1 -0
  7. package/lib/constants/AutoBeConfigConstant.d.ts +3 -1
  8. package/lib/constants/AutoBeConfigConstant.js.map +1 -0
  9. package/lib/constants/AutoBeSystemPromptConstant.d.ts +17 -15
  10. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -0
  11. package/lib/context/AutoBeContext.js.map +1 -0
  12. package/lib/context/AutoBeState.js.map +1 -0
  13. package/lib/context/AutoBeTokenUsage.d.ts +1 -0
  14. package/lib/{agent/src/context → context}/AutoBeTokenUsage.js +8 -0
  15. package/lib/context/AutoBeTokenUsage.js.map +1 -0
  16. package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
  17. package/lib/{agent/src/context → context}/AutoBeTokenUsageComponent.js +8 -0
  18. package/lib/context/AutoBeTokenUsageComponent.js.map +1 -0
  19. package/lib/context/IAutoBeApplication.js.map +1 -0
  20. package/lib/context/IAutoBeApplicationProps.js.map +1 -0
  21. package/lib/context/IAutoBeApplicationResult.js.map +1 -0
  22. package/lib/context/assertSchemaModel.js.map +1 -0
  23. package/lib/{agent/src/factory → factory}/consentFunctionCall.js +1 -1
  24. package/lib/factory/consentFunctionCall.js.map +1 -0
  25. package/lib/factory/createAgenticaHistory.js.map +1 -0
  26. package/lib/factory/createAutoBeApplication.js.map +1 -0
  27. package/lib/{agent/src/factory → factory}/createAutoBeContext.js +66 -20
  28. package/lib/factory/createAutoBeContext.js.map +1 -0
  29. package/lib/factory/createAutoBeState.js.map +1 -0
  30. package/lib/factory/getAutoBeGenerated.js.map +1 -0
  31. package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -0
  32. package/lib/factory/getCriticalCompiler.d.ts +3 -0
  33. package/lib/factory/getCriticalCompiler.js +55 -0
  34. package/lib/factory/getCriticalCompiler.js.map +1 -0
  35. package/lib/factory/index.js.map +1 -0
  36. package/lib/index.js.map +1 -0
  37. package/lib/index.mjs +4827 -3025
  38. package/lib/index.mjs.map +1 -1
  39. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -0
  40. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
  41. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
  42. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
  43. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
  44. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
  45. package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeWrite.js +2 -4
  46. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
  47. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
  48. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
  49. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
  50. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.d.ts +8 -0
  51. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +31 -0
  52. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -0
  53. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +18 -0
  54. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +411 -0
  55. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -0
  56. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +122 -0
  57. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js +3 -0
  58. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js.map +1 -0
  59. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
  60. package/lib/orchestrate/index.js.map +1 -0
  61. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
  62. package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAuthorizationsHistories.js +1 -1
  63. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
  64. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +63 -0
  65. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
  66. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
  67. package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointsReviewHistories.js +4 -4
  68. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -0
  69. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
  70. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +52 -0
  71. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
  72. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +36 -0
  73. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
  74. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
  75. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +29 -0
  76. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
  77. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +60 -0
  78. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
  79. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -0
  80. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
  81. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceComplement.js +2 -2
  82. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
  83. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
  84. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -0
  85. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
  86. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceOperations.js +193 -274
  87. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
  88. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1747 -0
  89. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
  90. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemas.js +2 -2
  91. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
  92. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +1 -1
  93. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemasReview.js +5 -7
  94. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
  95. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
  96. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
  97. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
  98. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +1 -0
  99. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
  100. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +247 -1
  101. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
  102. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
  103. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
  104. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
  105. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -0
  106. package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -0
  107. package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +6 -1
  108. package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaValidator.js +26 -24
  109. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -0
  110. package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
  111. package/lib/{agent/src/orchestrate/interface/utils/JsonSchemaValidator.d.ts → orchestrate/interface/utils/OperationValidator.d.ts} +2 -2
  112. package/lib/orchestrate/interface/utils/OperationValidator.js +114 -0
  113. package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -0
  114. package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +1 -0
  115. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
  116. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
  117. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
  118. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
  119. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -0
  120. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
  121. package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaCorrect.js +2 -2
  122. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
  123. package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
  124. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
  125. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
  126. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
  127. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
  128. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
  129. package/lib/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
  130. package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorization.js +1 -1
  131. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
  132. package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorizationCorrectHistories.js +2 -2
  133. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
  134. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +57 -0
  135. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
  136. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
  137. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +141 -0
  138. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
  139. package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -0
  140. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.d.ts +4 -0
  141. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +505 -0
  142. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -0
  143. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealize.js +18 -8
  144. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
  145. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
  146. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +1 -1
  147. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
  148. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +2 -15
  149. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeCorrect.js +48 -43
  150. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
  151. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
  152. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
  153. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
  154. package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
  155. package/lib/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +1 -0
  156. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +1 -0
  157. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
  158. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
  159. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
  160. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
  161. package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
  162. package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
  163. package/lib/orchestrate/realize/utils/generateRealizeScenario.d.ts +25 -0
  164. package/lib/orchestrate/realize/utils/generateRealizeScenario.js +85 -0
  165. package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -0
  166. package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -0
  167. package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -0
  168. package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -0
  169. package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -0
  170. package/lib/orchestrate/realize/utils/replaceImportStatements.js +98 -0
  171. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
  172. package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
  173. package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  174. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  175. package/lib/orchestrate/test/compile/getTestImportStatements.js.map +1 -0
  176. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  177. package/lib/orchestrate/test/compile/getTestTemplateCode.js.map +1 -0
  178. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +51 -0
  179. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
  180. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.d.ts +4 -0
  181. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +33 -0
  182. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -0
  183. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +1 -1
  184. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +159 -0
  185. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
  186. package/lib/orchestrate/test/histories/transformTestValidateEvent.d.ts +4 -0
  187. package/lib/orchestrate/test/histories/transformTestValidateEvent.js +11 -0
  188. package/lib/orchestrate/test/histories/transformTestValidateEvent.js.map +1 -0
  189. package/lib/orchestrate/test/histories/transformTestWriteHistories.js +220 -0
  190. package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
  191. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTest.js +13 -7
  192. package/lib/orchestrate/test/orchestrateTest.js.map +1 -0
  193. package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +2 -2
  194. package/lib/orchestrate/test/orchestrateTestCorrect.js +513 -0
  195. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
  196. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.d.ts +7 -0
  197. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +425 -0
  198. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -0
  199. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestScenario.js +32 -36
  200. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -0
  201. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestWrite.js +23 -35
  202. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -0
  203. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  204. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.d.ts +140 -0
  205. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js +3 -0
  206. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js.map +1 -0
  207. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  208. package/lib/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +1 -0
  209. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +2 -2
  210. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
  211. package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
  212. package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
  213. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +38 -15
  214. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  215. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  216. package/lib/{agent/src/orchestrate → orchestrate}/test/utils/getReferenceIds.js +1 -1
  217. package/lib/orchestrate/test/utils/getReferenceIds.js.map +1 -0
  218. package/lib/structures/IAutoBeConfig.d.ts +1 -0
  219. package/lib/structures/IAutoBeConfig.js.map +1 -0
  220. package/lib/structures/IAutoBeProps.js.map +1 -0
  221. package/lib/structures/IAutoBeVendor.js.map +1 -0
  222. package/lib/utils/AutoBeTimeoutError.d.ts +4 -0
  223. package/lib/utils/AutoBeTimeoutError.js +18 -0
  224. package/lib/utils/AutoBeTimeoutError.js.map +1 -0
  225. package/lib/utils/TimeoutConversation.d.ts +24 -0
  226. package/lib/utils/TimeoutConversation.js +65 -0
  227. package/lib/utils/TimeoutConversation.js.map +1 -0
  228. package/lib/utils/arrayToRecord.js.map +1 -0
  229. package/lib/utils/backoffRetry.js.map +1 -0
  230. package/lib/utils/divideArray.js.map +1 -0
  231. package/lib/utils/emplaceMap.js.map +1 -0
  232. package/lib/utils/executeCachedBatch.js.map +1 -0
  233. package/lib/utils/predicateStateMessage.js.map +1 -0
  234. package/package.json +6 -6
  235. package/src/AutoBeAgent.ts +16 -1
  236. package/src/AutoBeMockAgent.ts +13 -3
  237. package/src/constants/AutoBeConfigConstant.ts +3 -1
  238. package/src/constants/AutoBeSystemPromptConstant.ts +17 -15
  239. package/src/context/AutoBeTokenUsage.ts +9 -0
  240. package/src/context/AutoBeTokenUsageComponent.ts +9 -0
  241. package/src/factory/consentFunctionCall.ts +1 -1
  242. package/src/factory/createAutoBeContext.ts +68 -20
  243. package/src/factory/getCriticalCompiler.ts +47 -0
  244. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +2 -4
  245. package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +43 -0
  246. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +170 -0
  247. package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +127 -0
  248. package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +4 -4
  249. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +2 -2
  250. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +10 -94
  251. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +49 -13
  252. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +3 -2
  253. package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +5 -5
  254. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +254 -4
  255. package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +31 -26
  256. package/src/orchestrate/interface/utils/OperationValidator.ts +127 -0
  257. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +2 -2
  258. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +6 -0
  259. package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +317 -0
  260. package/src/orchestrate/realize/orchestrateRealize.ts +29 -14
  261. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
  262. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +79 -67
  263. package/src/orchestrate/realize/utils/generateRealizeScenario.ts +104 -0
  264. package/src/orchestrate/realize/utils/replaceImportStatements.ts +60 -32
  265. package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +4 -3
  266. package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +39 -0
  267. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +75 -17
  268. package/src/orchestrate/test/histories/transformTestValidateEvent.ts +14 -0
  269. package/src/orchestrate/test/orchestrateTest.ts +11 -7
  270. package/src/orchestrate/test/orchestrateTestCorrect.ts +111 -33
  271. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +145 -0
  272. package/src/orchestrate/test/orchestrateTestScenario.ts +29 -13
  273. package/src/orchestrate/test/orchestrateTestWrite.ts +3 -1
  274. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +233 -0
  275. package/src/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.ts +146 -0
  276. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +2 -2
  277. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +110 -15
  278. package/src/orchestrate/test/utils/getReferenceIds.ts +1 -1
  279. package/src/structures/IAutoBeConfig.ts +2 -0
  280. package/src/utils/AutoBeTimeoutError.ts +13 -0
  281. package/src/utils/TimeoutConversation.ts +82 -0
  282. package/lib/agent/src/AutoBeAgent.d.ts +0 -52
  283. package/lib/agent/src/AutoBeAgent.js.map +0 -1
  284. package/lib/agent/src/AutoBeAgentBase.d.ts +0 -18
  285. package/lib/agent/src/AutoBeAgentBase.js.map +0 -1
  286. package/lib/agent/src/AutoBeMockAgent.d.ts +0 -7
  287. package/lib/agent/src/AutoBeMockAgent.js.map +0 -1
  288. package/lib/agent/src/constants/AutoBeConfigConstant.d.ts +0 -3
  289. package/lib/agent/src/constants/AutoBeConfigConstant.js.map +0 -1
  290. package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +0 -29
  291. package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +0 -1
  292. package/lib/agent/src/context/AutoBeContext.d.ts +0 -43
  293. package/lib/agent/src/context/AutoBeContext.js.map +0 -1
  294. package/lib/agent/src/context/AutoBeState.d.ts +0 -8
  295. package/lib/agent/src/context/AutoBeState.js.map +0 -1
  296. package/lib/agent/src/context/AutoBeTokenUsage.d.ts +0 -173
  297. package/lib/agent/src/context/AutoBeTokenUsage.js.map +0 -1
  298. package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +0 -117
  299. package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +0 -1
  300. package/lib/agent/src/context/IAutoBeApplication.d.ts +0 -107
  301. package/lib/agent/src/context/IAutoBeApplication.js.map +0 -1
  302. package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +0 -4
  303. package/lib/agent/src/context/IAutoBeApplicationProps.js.map +0 -1
  304. package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +0 -4
  305. package/lib/agent/src/context/IAutoBeApplicationResult.js.map +0 -1
  306. package/lib/agent/src/context/assertSchemaModel.d.ts +0 -2
  307. package/lib/agent/src/context/assertSchemaModel.js.map +0 -1
  308. package/lib/agent/src/factory/consentFunctionCall.d.ts +0 -10
  309. package/lib/agent/src/factory/consentFunctionCall.js.map +0 -1
  310. package/lib/agent/src/factory/createAgenticaHistory.d.ts +0 -7
  311. package/lib/agent/src/factory/createAgenticaHistory.js.map +0 -1
  312. package/lib/agent/src/factory/createAutoBeApplication.d.ts +0 -7
  313. package/lib/agent/src/factory/createAutoBeApplication.js.map +0 -1
  314. package/lib/agent/src/factory/createAutoBeContext.d.ts +0 -19
  315. package/lib/agent/src/factory/createAutoBeContext.js.map +0 -1
  316. package/lib/agent/src/factory/createAutoBeState.d.ts +0 -3
  317. package/lib/agent/src/factory/createAutoBeState.js.map +0 -1
  318. package/lib/agent/src/factory/getAutoBeGenerated.d.ts +0 -4
  319. package/lib/agent/src/factory/getAutoBeGenerated.js.map +0 -1
  320. package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +0 -7
  321. package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +0 -1
  322. package/lib/agent/src/factory/index.d.ts +0 -1
  323. package/lib/agent/src/factory/index.js.map +0 -1
  324. package/lib/agent/src/index.d.ts +0 -6
  325. package/lib/agent/src/index.js.map +0 -1
  326. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +0 -6
  327. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +0 -1
  328. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +0 -4
  329. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +0 -1
  330. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +0 -6
  331. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +0 -1
  332. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -5
  333. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
  334. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +0 -11
  335. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +0 -1
  336. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +0 -4
  337. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +0 -1
  338. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +0 -10
  339. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
  340. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +0 -111
  341. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +0 -1
  342. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +0 -78
  343. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +0 -1
  344. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +0 -74
  345. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +0 -1
  346. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +0 -2
  347. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  348. package/lib/agent/src/orchestrate/index.d.ts +0 -5
  349. package/lib/agent/src/orchestrate/index.js.map +0 -1
  350. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +0 -3
  351. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  352. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +0 -4
  353. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +0 -1
  354. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +0 -4
  355. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -63
  356. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  357. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +0 -5
  358. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  359. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +0 -4
  360. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +0 -1
  361. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +0 -3
  362. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  363. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +0 -4
  364. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -52
  365. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  366. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +0 -5
  367. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +0 -36
  368. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +0 -1
  369. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +0 -3
  370. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
  371. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +0 -4
  372. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -29
  373. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  374. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
  375. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
  376. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
  377. package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +0 -5
  378. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +0 -1
  379. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +0 -4
  380. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +0 -1
  381. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +0 -4
  382. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
  383. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +0 -5
  384. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  385. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -10
  386. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +0 -1
  387. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +0 -4
  388. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  389. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +0 -4
  390. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  391. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +0 -4
  392. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +0 -1416
  393. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +0 -1
  394. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +0 -4
  395. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  396. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
  397. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
  398. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +0 -47
  399. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +0 -1
  400. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +0 -93
  401. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
  402. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +0 -24
  403. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
  404. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +0 -60
  405. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +0 -1
  406. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +0 -108
  407. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
  408. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -171
  409. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
  410. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +0 -117
  411. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +0 -1
  412. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +0 -107
  413. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
  414. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
  415. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
  416. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.d.ts +0 -9
  417. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js.map +0 -1
  418. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +0 -5
  419. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +0 -1
  420. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js.map +0 -1
  421. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +0 -6
  422. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
  423. package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +0 -2
  424. package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +0 -1
  425. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +0 -3
  426. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
  427. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +0 -3
  428. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
  429. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +0 -8
  430. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +0 -1
  431. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +0 -3
  432. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
  433. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +0 -5
  434. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +0 -1
  435. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +0 -4
  436. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
  437. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +0 -4
  438. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
  439. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +0 -5
  440. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +0 -1
  441. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +0 -5
  442. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  443. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +0 -121
  444. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
  445. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +0 -142
  446. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
  447. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +0 -105
  448. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +0 -1
  449. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +0 -99
  450. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
  451. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +0 -5
  452. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
  453. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +0 -5
  454. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +0 -1
  455. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  456. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  457. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -14
  458. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +0 -51
  459. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +0 -1
  460. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +0 -3
  461. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +0 -1
  462. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +0 -11
  463. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +0 -141
  464. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +0 -1
  465. package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +0 -7
  466. package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +0 -1
  467. package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +0 -5
  468. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +0 -1
  469. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +0 -10
  470. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  471. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +0 -4
  472. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
  473. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +0 -19
  474. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +0 -1
  475. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
  476. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js +0 -44
  477. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +0 -1
  478. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +0 -11
  479. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +0 -1
  480. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +0 -109
  481. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  482. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +0 -47
  483. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
  484. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +0 -39
  485. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +0 -1
  486. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +0 -5
  487. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +0 -1
  488. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +0 -36
  489. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +0 -1
  490. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +0 -295
  491. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +0 -1
  492. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +0 -5
  493. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
  494. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +0 -5
  495. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
  496. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +0 -4
  497. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
  498. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +0 -8
  499. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
  500. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +0 -3
  501. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
  502. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +0 -31
  503. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +0 -1
  504. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.d.ts +0 -4
  505. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js.map +0 -1
  506. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +0 -2
  507. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +0 -1
  508. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +0 -30
  509. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js.map +0 -1
  510. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +0 -8
  511. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +0 -77
  512. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
  513. package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +0 -4
  514. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +0 -1
  515. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +0 -1
  516. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +0 -1
  517. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +0 -3
  518. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
  519. package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.d.ts +0 -2
  520. package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js.map +0 -1
  521. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +0 -5
  522. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
  523. package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.d.ts +0 -2
  524. package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js.map +0 -1
  525. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +0 -6
  526. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +0 -50
  527. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +0 -1
  528. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +0 -4
  529. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +0 -105
  530. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +0 -1
  531. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.d.ts +0 -10
  532. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +0 -220
  533. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +0 -1
  534. package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +0 -5
  535. package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +0 -1
  536. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +0 -5
  537. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +0 -405
  538. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
  539. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +0 -4
  540. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +0 -1
  541. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +0 -5
  542. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +0 -1
  543. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +0 -125
  544. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
  545. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +0 -8
  546. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
  547. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +0 -6
  548. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +0 -1
  549. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +0 -161
  550. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
  551. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +0 -8
  552. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
  553. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +0 -6
  554. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
  555. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +0 -126
  556. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
  557. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +0 -7
  558. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
  559. package/lib/agent/src/orchestrate/test/utils/getReferenceIds.d.ts +0 -5
  560. package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js.map +0 -1
  561. package/lib/agent/src/structures/IAutoBeConfig.d.ts +0 -75
  562. package/lib/agent/src/structures/IAutoBeConfig.js.map +0 -1
  563. package/lib/agent/src/structures/IAutoBeProps.d.ts +0 -109
  564. package/lib/agent/src/structures/IAutoBeProps.js.map +0 -1
  565. package/lib/agent/src/structures/IAutoBeVendor.d.ts +0 -87
  566. package/lib/agent/src/structures/IAutoBeVendor.js.map +0 -1
  567. package/lib/agent/src/utils/arrayToRecord.d.ts +0 -17
  568. package/lib/agent/src/utils/arrayToRecord.js.map +0 -1
  569. package/lib/agent/src/utils/backoffRetry.d.ts +0 -22
  570. package/lib/agent/src/utils/backoffRetry.js.map +0 -1
  571. package/lib/agent/src/utils/divideArray.d.ts +0 -4
  572. package/lib/agent/src/utils/divideArray.js.map +0 -1
  573. package/lib/agent/src/utils/emplaceMap.d.ts +0 -1
  574. package/lib/agent/src/utils/emplaceMap.js.map +0 -1
  575. package/lib/agent/src/utils/executeCachedBatch.d.ts +0 -1
  576. package/lib/agent/src/utils/executeCachedBatch.js.map +0 -1
  577. package/lib/agent/src/utils/predicateStateMessage.d.ts +0 -4
  578. package/lib/agent/src/utils/predicateStateMessage.js.map +0 -1
  579. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +0 -153
  580. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +0 -3
  581. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +0 -1
  582. package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
  583. package/src/orchestrate/realize/orchestrateRealizeScenario.ts +0 -57
  584. /package/lib/{agent/src/AutoBeAgentBase.js → AutoBeAgentBase.js} +0 -0
  585. /package/lib/{agent/src/constants → constants}/AutoBeConfigConstant.js +0 -0
  586. /package/lib/{agent/src/constants → constants}/AutoBeSystemPromptConstant.js +0 -0
  587. /package/lib/{agent/src/context → context}/AutoBeContext.js +0 -0
  588. /package/lib/{agent/src/context → context}/AutoBeState.js +0 -0
  589. /package/lib/{agent/src/context → context}/IAutoBeApplication.js +0 -0
  590. /package/lib/{agent/src/context → context}/IAutoBeApplicationProps.js +0 -0
  591. /package/lib/{agent/src/context → context}/IAutoBeApplicationResult.js +0 -0
  592. /package/lib/{agent/src/context → context}/assertSchemaModel.js +0 -0
  593. /package/lib/{agent/src/factory → factory}/createAgenticaHistory.js +0 -0
  594. /package/lib/{agent/src/factory → factory}/createAutoBeApplication.js +0 -0
  595. /package/lib/{agent/src/factory → factory}/createAutoBeState.js +0 -0
  596. /package/lib/{agent/src/factory → factory}/getAutoBeGenerated.js +0 -0
  597. /package/lib/{agent/src/factory → factory}/getAutoBeRealizeGenerated.js +0 -0
  598. /package/lib/{agent/src/factory → factory}/index.js +0 -0
  599. /package/lib/{agent/src/index.js → index.js} +0 -0
  600. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeReviewHistories.js +0 -0
  601. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeScenarioHistories.js +0 -0
  602. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeWriteHistories.js +0 -0
  603. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyze.js +0 -0
  604. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeReview.js +0 -0
  605. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeScenario.js +0 -0
  606. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeReviewApplication.js +0 -0
  607. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +0 -0
  608. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeWriteApplication.js +0 -0
  609. /package/lib/{agent/src/orchestrate → orchestrate}/facade/transformFacadeStateMessage.js +0 -0
  610. /package/lib/{agent/src/orchestrate → orchestrate}/index.js +0 -0
  611. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
  612. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointHistories.js +0 -0
  613. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceGroupHistories.js +0 -0
  614. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
  615. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterface.js +0 -0
  616. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceAuthorizations.js +0 -0
  617. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpoints.js +0 -0
  618. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpointsReview.js +0 -0
  619. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceGroups.js +0 -0
  620. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +0 -0
  621. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
  622. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
  623. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js +0 -0
  624. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
  625. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
  626. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +0 -0
  627. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
  628. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +0 -0
  629. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaFactory.js +0 -0
  630. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaNamingConvention.js +0 -0
  631. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
  632. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/fulfillJsonSchemaErrorMessages.js +0 -0
  633. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaComponentsHistories.js +0 -0
  634. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaCorrectHistories.js +0 -0
  635. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaReviewHistories.js +0 -0
  636. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaSchemaHistories.js +0 -0
  637. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrisma.js +0 -0
  638. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaComponent.js +0 -0
  639. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaReview.js +0 -0
  640. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaSchemas.js +0 -0
  641. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
  642. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
  643. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaReviewApplication.js +0 -0
  644. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
  645. /package/lib/{agent/src/orchestrate → orchestrate}/realize/ProviderCodeComparator.js +0 -0
  646. /package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeWriteAuthorizationsHistories.js +0 -0
  647. /package/lib/{agent/src/orchestrate → orchestrate}/realize/internal/compileRealizeFiles.js +0 -0
  648. /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorization.js +0 -0
  649. /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeWrite.js +0 -0
  650. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
  651. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
  652. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeCorrectApplication.js +0 -0
  653. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeFunctionFailure.js +0 -0
  654. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeScenarioResult.js +0 -0
  655. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeWriteApplication.js +0 -0
  656. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
  657. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
  658. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
  659. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/InternalFileSystem.js +0 -0
  660. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
  661. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteCodeTemplate.js +0 -0
  662. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteDto.js +0 -0
  663. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteImportStatements.js +0 -0
  664. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteInputType.js +0 -0
  665. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/completeTestCode.js +0 -0
  666. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/filterTestFileName.js +0 -0
  667. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
  668. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestImportStatements.js +0 -0
  669. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
  670. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestTemplateCode.js +0 -0
  671. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
  672. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
  673. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunctionFailure.js +0 -0
  674. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
  675. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
  676. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioAuthorizationRole.js +0 -0
  677. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
  678. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
  679. /package/lib/{agent/src/structures → structures}/IAutoBeConfig.js +0 -0
  680. /package/lib/{agent/src/structures → structures}/IAutoBeProps.js +0 -0
  681. /package/lib/{agent/src/structures → structures}/IAutoBeVendor.js +0 -0
  682. /package/lib/{agent/src/utils → utils}/arrayToRecord.js +0 -0
  683. /package/lib/{agent/src/utils → utils}/backoffRetry.js +0 -0
  684. /package/lib/{agent/src/utils → utils}/divideArray.js +0 -0
  685. /package/lib/{agent/src/utils → utils}/emplaceMap.js +0 -0
  686. /package/lib/{agent/src/utils → utils}/executeCachedBatch.js +0 -0
  687. /package/lib/{agent/src/utils → utils}/predicateStateMessage.js +0 -0
@@ -1,295 +0,0 @@
1
- export interface IAutoBeRealizeWriteApplication {
2
- /**
3
- * Generates provider function implementation through multi-phase development.
4
- *
5
- * This method implements a systematic approach to generate NestJS provider
6
- * functions that handle business logic for API operations. It follows a
7
- * schema-first approach with multiple refinement phases to ensure type-safe,
8
- * error-free code generation.
9
- *
10
- * The generation process includes:
11
- * 1. Strategic planning based on Prisma schema analysis
12
- * 2. Initial draft without Date type usage
13
- * 3. Review and refinement for completeness
14
- * 4. Compiler feedback integration if errors detected
15
- * 5. Final implementation with all validations and type safety
16
- *
17
- * @param next Properties containing the multi-phase implementation plan and code
18
- */
19
- coding: (next: IAutoBeRealizeWriteApplication.IProps) => void;
20
- }
21
- export declare namespace IAutoBeRealizeWriteApplication {
22
- /**
23
- * Properties for the Realize Write Application following Chain of Thinking (CoT).
24
- *
25
- * Each field represents a distinct phase in the reasoning and implementation process,
26
- * building upon the previous step to create a complete, error-free implementation.
27
- * This structured approach ensures clarity, debuggability, and systematic thinking.
28
- */
29
- interface IProps {
30
- /**
31
- * Step 1 - Planning Phase (CoT: Initial Reasoning)
32
- *
33
- * 🧠 Provider Function Implementation Plan
34
- *
35
- * This field outlines the strategic plan for implementing the provider
36
- * function according to the Realize Coder Agent specification. Before
37
- * writing the actual code, think through the logic and structure.
38
- *
39
- * The plan follows a SCHEMA-FIRST APPROACH:
40
- *
41
- * 📋 STEP 1 - PRISMA SCHEMA VERIFICATION:
42
- *
43
- * DO:
44
- *
45
- * - Examine the actual Prisma schema model definition
46
- * - List EVERY field that exists in the model with exact types
47
- * - Explicitly note fields that DO NOT exist
48
- * - Verify database compatibility (PostgreSQL AND SQLite)
49
- *
50
- * DO NOT:
51
- *
52
- * - Assume common fields exist without verification
53
- * - Use fields like deleted_at, created_by, updated_by, is_deleted, is_active
54
- * without checking
55
- * - Use PostgreSQL-specific features like mode: "insensitive"
56
- *
57
- * 📋 STEP 2 - FIELD INVENTORY:
58
- *
59
- * - List ONLY fields confirmed to exist in schema
60
- * - Example: "Verified fields in user model: id (String), email (String),
61
- * created_at (DateTime), updated_at (DateTime)"
62
- * - Example: "Fields that DO NOT exist: deleted_at, is_active, created_by"
63
- *
64
- * 📋 STEP 3 - FIELD ACCESS STRATEGY:
65
- *
66
- * - Plan which verified fields will be used in select, update, create
67
- * operations
68
- * - For complex operations with type errors, plan to use separate queries
69
- * instead of nested operations
70
- *
71
- * 📋 STEP 4 - TYPE COMPATIBILITY:
72
- *
73
- * - Plan DateTime to ISO string conversions using toISOStringSafe()
74
- * - Plan handling of nullable vs required fields
75
- *
76
- * 📋 STEP 5 - IMPLEMENTATION APPROACH:
77
- *
78
- * - 🧩 Required business entities (e.g., users, posts, logs) and their
79
- * relationships
80
- * - 🛠 Operations needed to fulfill the business scenario (e.g., fetch,
81
- * create, update) using ONLY verified fields
82
- * - 🔄 Data dependencies between steps (e.g., use userId to fetch related
83
- * data)
84
- * - ✅ Validation points (based on business rules, not field presence)
85
- * - 🚧 Error and edge cases that must be handled explicitly (e.g., missing
86
- * records)
87
- * - 🏗 Structure: always a single `async function`, using only `parameters`
88
- * and `body`
89
- *
90
- * ⚠️ Important Constraints:
91
- *
92
- * - Do NOT perform input validation — assume `parameters` and `body` are
93
- * already valid
94
- * - Use `typia.random<T>()` with an explanatory comment if logic can't be
95
- * implemented
96
- * - Never use `any` or make assumptions without sufficient context
97
- * - Use only allowed imports — DTOs and Prisma types
98
- * - Use `MyGlobal.prisma` for DB access and respect Prisma typing rules
99
- *
100
- * ⚠️ TypeScript-specific considerations:
101
- *
102
- * - Do **not** use native `Date` objects directly; always convert all dates
103
- * using `toISOStringSafe()` and brand as `string &
104
- * tags.Format<'date-time'>`. This rule applies throughout all phases.
105
- * - Prefer `satisfies` for DTO conformance instead of unsafe `as` casts
106
- * - Avoid weak typing such as `any`, `as any`, or `satisfies any`
107
- * - Use branded types (e.g., `tags.Format<'uuid'>`) and literal unions where
108
- * applicable
109
- *
110
- * ✅ Example Structure:
111
- *
112
- * ```ts
113
- * export async function doSomething(
114
- * user: { id: string & tags.Format<"uuid">; type: string },
115
- * parameters: IParams,
116
- * body: IBody
117
- * ): Promise<IReturn> {
118
- * const { id } = parameters;
119
- * const { name } = body;
120
- * const user = await MyGlobal.prisma.users.findFirst({ where: { id } });
121
- * if (!user) throw new Error("User not found");
122
- * ...
123
- * return result;
124
- * }
125
- * ```
126
- *
127
- * 🔍 Feasibility Analysis Requirement:
128
- *
129
- * - Before generating any code, the agent **must analyze** whether the
130
- * requested implementation is **feasible based on the given Prisma schema
131
- * and DTO types**.
132
- * - If required fields or relationships are **missing or incompatible**, the
133
- * plan should explicitly state that the implementation is **not
134
- * possible** with the current schema/DTO, and no code should be generated
135
- * in later stages.
136
- * - In such cases, only a detailed **comment in the `implementationCode`**
137
- * should be returned explaining why the logic cannot be implemented.
138
- *
139
- * 🔥 Error Handling Plan:
140
- *
141
- * If an error is expected or encountered during implementation:
142
- *
143
- * - Clearly document the error message(s) and TypeScript error codes.
144
- * - Analyze the root cause (e.g., type mismatch, missing field, nullability
145
- * issue).
146
- * - Define concrete steps to resolve the issue, such as:
147
- *
148
- * - Adjusting type declarations or using Prisma-generated input types.
149
- * - Using `?? undefined` to normalize nullable fields.
150
- * - Applying correct relation handling (e.g., `connect` instead of direct
151
- * foreign key assignment).
152
- * - Ensuring all date fields use `.toISOString()` and proper branding.
153
- * - Include fallback or workaround plans if a direct fix is complex.
154
- * - If no error is present, simply omit this section.
155
- *
156
- * This plan ensures the function will:
157
- *
158
- * - Respect the global architecture and coding conventions
159
- * - Be safe, predictable, and aligned with upstream logic
160
- */
161
- plan: string;
162
- /**
163
- * Step 2 - Schema Definition (CoT: Context Establishment)
164
- *
165
- * The Prisma schema string that will be used to validate the implementation
166
- * logic in this file.
167
- *
168
- * You must **explicitly specify only the relevant models and fields** from
169
- * your full schema that are used in this implementation. This ensures that
170
- * your logic is aligned with the expected database structure without
171
- * accidentally introducing unrelated fields or models.
172
- *
173
- * ⚠️ Important: The value of this field must be a valid Prisma schema
174
- * string containing only the models used in this code — not the entire
175
- * schema.
176
- *
177
- * This acts as a safeguard against:
178
- *
179
- * - Forgetting required fields used in this implementation
180
- * - Including fields or models that are not actually used
181
- */
182
- prisma_schemas: string;
183
- /**
184
- * Step 3 - Initial Draft (CoT: First Implementation Attempt)
185
- *
186
- * Draft WITHOUT using native Date type.
187
- *
188
- * This is the initial drafting phase where you outline the basic skeleton
189
- * of the function.
190
- *
191
- * DO NOT: Use the native Date type.
192
- *
193
- * - The function signature must correctly include `user`, `parameters`, and
194
- * `body` arguments.
195
- * - Design the main flow of business logic, such as DB fetches and early
196
- * returns based on conditions.
197
- * - Mark any incomplete or missing parts clearly with placeholders (e.g.,
198
- * comments or temporary values).
199
- *
200
- * Import rules:
201
- *
202
- * DO NOT:
203
- *
204
- * - Add any new import statements manually
205
- * - Write import statements directly (this causes compile errors)
206
- *
207
- * Note: All necessary imports are provided globally or by the system
208
- * automatically.
209
- *
210
- * ✅ Requirements:
211
- *
212
- * - Avoid using the `any` type at all costs to ensure type safety.
213
- * - NEVER declare variables with `: Date` type
214
- * - ALWAYS use `string & tags.Format<'date-time'>` for date values
215
- * - Use `toISOStringSafe(new Date())` for current timestamps
216
- * - Maintain a single-function structure; avoid using classes.
217
- */
218
- draft_without_date_type: string;
219
- /**
220
- * Step 4 - Review and Refinement (CoT: Self-Reflection)
221
- *
222
- * A refined version of the draft with improved completeness.
223
- *
224
- * - Replace placeholder logic with real DTO-conformant operations.
225
- * - Add error handling (`throw new Error(...)`) where necessary.
226
- * - Begin resolving structural or type mismatches.
227
- *
228
- * ✅ Requirements:
229
- *
230
- * - Use `satisfies` to ensure DTO conformity.
231
- * - Avoid unsafe `as` casts unless only for branding or literal narrowing.
232
- * - Use `toISOStringSafe()` for all date conversions (NOT `.toISOString()`).
233
- * - Ensure all object keys strictly conform to the expected type definitions.
234
- * - NEVER use `mode: "insensitive"` in string operations (breaks SQLite).
235
- */
236
- review: string;
237
- /**
238
- * Step 5 - Complete Implementation (CoT: Final Synthesis)
239
- *
240
- * The complete and fully correct TypeScript function implementation.
241
- *
242
- * - Passes strict type checking without errors.
243
- * - Uses only safe branding or literal type assertions.
244
- * - Converts all date values properly using `toISOStringSafe()`.
245
- * - Follows DTO structures using `satisfies`.
246
- * - Avoids any weak typing such as `any`, `as any`, or `satisfies any`.
247
- * - Uses only allowed imports (e.g., from `../api/structures` and
248
- * `MyGlobal.prisma`).
249
- * - NEVER creates intermediate variables for Prisma operations.
250
- * - NEVER uses `mode: "insensitive"` (PostgreSQL-only, breaks SQLite).
251
- *
252
- * ⚠️ Fallback Behavior:
253
- *
254
- * - If the `plan` phase explicitly determines that the requested logic is
255
- * **not feasible** due to mismatches or limitations in the provided
256
- * Prisma schema and DTO types:
257
- *
258
- * - The implementation must still return a syntactically valid function.
259
- * - In such cases, return mock data using `typia.random<T>()` wrapped in the
260
- * correct structure, along with a comment explaining the limitation.
261
- *
262
- * Example fallback:
263
- *
264
- * ```ts
265
- * // ⚠️ Cannot implement logic due to missing relation between A and B
266
- * export async function someFunction(...) {
267
- * return typia.random<IReturn>(); // mocked output
268
- * }
269
- * ```
270
- *
271
- * ⚠️ Prohibited Practices:
272
- *
273
- * - Do NOT add or modify import statements manually. Imports are handled
274
- * automatically by the system.
275
- * - Do NOT use `any`, `as any`, or `satisfies any` to bypass type checking.
276
- * - Do NOT assign native `Date` objects directly; always convert them using
277
- * `toISOStringSafe()`.
278
- * - Do NOT use unsafe type assertions except for safe branding or literal
279
- * narrowing.
280
- * - Do NOT write code outside the single async function structure (e.g., no
281
- * classes or multiple functions).
282
- * - Do NOT perform any input validation — assume all inputs are already
283
- * validated.
284
- * - Do NOT use dynamic import expressions (`import()`); all imports must be
285
- * static.
286
- * - Do NOT use Prisma-generated input types; always use types from
287
- * `../api/structures`.
288
- * - Do NOT use `Object.prototype.hasOwnProperty.call()` for field checks.
289
- * - Do NOT escape newlines or quotes in the implementation string (e.g., no
290
- * `\\n` or `\"`); use a properly formatted template literal with actual
291
- * line breaks instead.
292
- */
293
- implementationCode: string;
294
- }
295
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAutoBeRealizeWriteApplication.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export declare namespace AuthorizationFileSystem {
2
- const decoratorPath: (name: string) => string;
3
- const payloadPath: (name: string) => string;
4
- const providerPath: (name: string) => string;
5
- }
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
1
- export declare namespace AutoBeRealizeAuthorizationFileSystem {
2
- const getDecoratorPath: (name: string) => string;
3
- const getPayloadPath: (name: string) => string;
4
- const getProviderPath: (name: string) => string;
5
- }
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- export declare namespace AutoBeRealizeAuthorizationReplaceImport {
2
- function replaceProviderImport(role: string, content: string): string;
3
- function replaceDecoratorImport(role: string, content: string): string;
4
- }
@@ -1 +0,0 @@
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,MA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AAC;QAEF,OAAO,cAAc,CAAC;IACxB,CAAC;IArBe,8DAAsB,yBAqBrC,CAAA;AACH,CAAC,EA/DgB,uCAAuC,uDAAvC,uCAAuC,QA+DvD"}
@@ -1,8 +0,0 @@
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
- }
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- export declare namespace RealizeFileSystem {
2
- const providerPath: (filename: string) => string;
3
- }
@@ -1 +0,0 @@
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"}
@@ -1,31 +0,0 @@
1
- import { AutoBeOpenApi, AutoBeRealizeAuthorization } from "@autobe/interface";
2
- import { IAutoBeRealizeScenarioResult } from "../structures/IAutoBeRealizeScenarioResult";
3
- /**
4
- * Generate a TypeScript function template for the Realize Agent to complete
5
- *
6
- * This utility creates a function skeleton with proper imports, parameters, and
7
- * return type that the AI needs to implement. The template includes:
8
- *
9
- * - Import statements for required dependencies
10
- * - Function signature with all parameters
11
- * - Return type specification
12
- *
13
- * @example
14
- * // Returns a template like:
15
- * ```typescript
16
- * import { MyGlobal } from "../MyGlobal";
17
- * // ... other imports
18
- *
19
- * async function post__users_create(
20
- * body: IUserCreateRequest
21
- * ): Promise<IUserResponse> {
22
- * ...
23
- * }
24
- * ```;
25
- *
26
- * @param scenario - The realize scenario containing function metadata
27
- * @param operation - OpenAPI operation definition
28
- * @param authorization - Authorization context if endpoint is authenticated
29
- * @returns Complete TypeScript code template as a formatted string
30
- */
31
- export declare function getRealizeWriteCodeTemplate(scenario: IAutoBeRealizeScenarioResult, operation: AutoBeOpenApi.IOperation, authorization: AutoBeRealizeAuthorization | null): string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRealizeWriteCodeTemplate.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts"],"names":[],"mappings":";;AAkCA,kEA8DC;AA/FD,yCAA2C;AAG3C,uFAAoF;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,2BAA2B,CACzC,QAAsC,EACtC,SAAmC,EACnC,aAAgD;;IAEhD,2CAA2C;IAC3C,MAAM,kBAAkB,GAAa,EAAE,CAAC;IAExC,4EAA4E;IAC5E,IAAI,aAAa,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC7C,mDAAmD;QACnD,MAAM,aAAa,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAClF,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACzC,CAAC;IAED,+CAA+C;IAC/C,MAAM,cAAc,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACxD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;QACpC,MAAM,WAAW,GACf,QAAQ,IAAI,KAAK,CAAC,MAAM;YACtB,CAAC,CAAC,mB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utoBeContext } from "../../../context/AutoBeContext";
4
- export declare function getRealizeWriteDto<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, operation: AutoBeOpenApi.IOperation): Promise<Record<string, string>>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRealizeWriteDto.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/getRealizeWriteDto.ts"],"names":[],"mappings":";;;;;;;;;;;AAKA,gDA2BC;AA/BD,8CAAkE;AAIlE,SAAsB,kBAAkB,CACtC,GAAyB,EACzB,SAAmC;;QAEnC,MAAM,QAAQ,GAA4B,cAAc,CACtD,SAAS,EACT,GAAG,CAAC,KAAK,EAAE,CAAC,SAAU,CAAC,QAAQ,CAChC,CAAC;QAEF,MAAM,QAAQ,GAAoB,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;QACvD,MAAM,OAAO,GAAuB,MAAM,CAAC,OAAO,CAChD,MAAM,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CACzC,CAAC;QAEF,MAAM,MAAM,GAAG,CAAC,MAAc,EAAE,OAAgB,EAAE,EAAE;YAClD,MAAM,MAAM,GAAuB,OAAO,CAAC,MAAM,CAC/C,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,IAAI,CAC3C,CAAC;YACF,OAAO,MAAM,CAAC,WAAW,CACvB,OAAO;gBACL,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,KAAK,CAAC;gBAC7D,CAAC,CAAC,MAAM,CACX,CAAC;QACJ,CAAC,CAAC;QAEF,MAAM,GAAG,GAA2B,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACjE,OAAO,GAAG,CAAC;IACb,CAAC;CAAA;AAED,SAAS,cAAc,CACrB,SAAmC,EACnC,QAAiC;IAEjC,MAAM,UAAU,GAA8B;QAC5C,aAAa,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa;QAChD,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,MAAM,KAAK,GAAG,CAAC,QAAgB,EAAE,EAAE;QACjC,4BAAkB,CAAC,KAAK,CAAC;YACvB,UAAU,EAAE,QAAQ,CAAC,UAAU;YAC/B,MAAM,EAAE,EAAE,IAAI,EAAE,wBAAwB,QAAQ,EAAE,EAAE;YACpD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gBACb,IAAI,4BAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;oBACtC,MAAM,GAAG,GAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAG,CAAC;oBAC7C,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;gBAC7D,CAAC;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,IAAI,SAAS,CAAC,WAAW;QAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IACjE,IAAI,SAAS,CAAC,YAAY;QAAE,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAEnE,OAAO;QACL,UAAU,EAAE,CAAC,SAAS,CAAC;QACvB,UAAU;KACX,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- import { AutoBeOpenApi } from "@autobe/interface";
2
- export declare function getRealizeWriteImportStatements(operation: AutoBeOpenApi.IOperation): string[];
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRealizeWriteImportStatements.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts"],"names":[],"mappings":";;AAEA,0EA0BC;AA1BD,SAAgB,+BAA+B,CAC7C,SAAmC;IAEnC,MAAM,cAAc,GAAa,KAAK,CAAC,IAAI,CACzC,IAAI,GAAG,CACL,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,YAAY,CAAC;SAC5C,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;SAC3B,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC,CAC3C,CACF,CAAC;IAEF,6BAA6B;IAC7B,MAAM,OAAO,GAAG;QACd,iCAAiC;QACjC,yCAAyC;QACzC,sCAAsC;QACtC,0CAA0C;QAC1C,4BAA4B;QAC5B,2DAA2D;QAC3D,GAAG,cAAc,CAAC,GAAG,CACnB,CAAC,GAAG,EAAE,EAAE,CACN,YAAY,GAAG,qDAAqD,GAAG,IAAI,CAC9E;KACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,30 +0,0 @@
1
- import { AutoBeOpenApi, AutoBeRealizeAuthorization } from "@autobe/interface";
2
- /**
3
- * Generate TypeScript type definition string for provider function props
4
- *
5
- * This utility creates the exact props interface that the Realize Agent's
6
- * generated provider functions must accept. It combines:
7
- *
8
- * - Authentication context (user/admin/member from authorization)
9
- * - URL path parameters (e.g., id, boardId, postId)
10
- * - Request body type (if applicable)
11
- *
12
- * The output is injected into REALIZE_WRITE_ARTIFACT.md template to tell the AI
13
- * exactly what parameter type the function should accept.
14
- *
15
- * @example
16
- * // For DELETE /posts/:id (authenticated)
17
- * // Returns: "props: { user: IUser; id: string & tags.Format<'uuid'>; }"
18
- *
19
- * @example
20
- * // For GET /public/info (no auth, no params)
21
- * // Returns: "// No props parameter needed - function should have no parameters"
22
- *
23
- * @param operation - OpenAPI operation definition containing parameters and
24
- * auth requirements
25
- * @param authorization - Authorization context with user/role information (if
26
- * authenticated endpoint)
27
- * @returns TypeScript interface string like "props: { user: IUser; id: string;
28
- * body: IRequest; }"
29
- */
30
- export declare function getRealizeWriteInputType(operation: AutoBeOpenApi.IOperation, authorization: AutoBeRealizeAuthorization | null): string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRealizeWriteInputType.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/utils/getRealizeWriteInputType.ts"],"names":[],"mappings":";;AA+BA,4DAkDC;AAhFD,yCAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,wBAAwB,CACtC,SAAmC,EACnC,aAAgD;;IAEhD,MAAM,uBAAuB,GAAa,EAAE,CAAC;IAE7C,yEAAyE;IACzE,MAAM,iBAAiB,GAAG,aAAa,IAAI,SAAS,CAAC,iBAAiB,CAAC;IACvE,IAAI,iBAAiB,EAAE,CAAC;QACtB,MAAM,aAAa,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAClD,MAAM,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC;QACjD,uBAAuB,CAAC,IAAI,CAAC,GAAG,aAAa,KAAK,aAAa,GAAG,CAAC,CAAC;IACtE,CAAC;IAED,4DAA4D;IAC5D,MAAM,cAAc,GAAG,SAAS,CAAC,UAAU,CAAC;IAC5C,cAAc,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QACnC,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC;QACjC,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC;QACxC,MAAM,WAAW,GACf,QAAQ,IAAI,SAAS,CAAC,MAAM;YAC1B,CAAC,CAAC,mBAAmB,SAAS,CAAC,MAAM,CAAC,MAAM,IAAI;YAChD,CAAC,CAAC,EAAE,CAAC;QAET,MAAM,cAAc,GAAG,GAAG,SAAS,KAAK,SAAS,GAAG,WAAW,GAAG,CAAC;QACnE,uBAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,0DAA0D;IAC1D,MAAM,cAAc,GAAG,MAAA,SAAS,CAAC,WAAW,0CAAE,QAAQ,CAAC;IACvD,IAAI,cAAc,EAAE,CAAC;QACnB,MAAM,YAAY,GAAG,MAAA,SAAS,CAAC,WAAW,0CAAE,QAAQ,CAAC;QACrD,uBAAuB,CAAC,IAAI,CAAC,SAAS,YAAY,GAAG,CAAC,CAAC;IACzD,CAAC;IAED,wEAAwE;IACxE,MAAM,aAAa,GAAG,uBAAuB,CAAC,MAAM,GAAG,CAAC,CAAC;IAEzD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,mEAAmE,CAAC;IAC7E,CAAC;IAED,MAAM,eAAe,GAAG,uBAAuB;SAC5C,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC;SAC5B,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO,kBAAU,CAAC,IAAI,CAAA;;MAElB,eAAe;MACf,CAAC;AACP,CAAC"}
@@ -1,8 +0,0 @@
1
- import { AutoBeOpenApi } from "@autobe/interface";
2
- import { ILlmSchema } from "@samchon/openapi";
3
- import { AutoBeContext } from "../../../context/AutoBeContext";
4
- export declare function replaceImportStatements<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: {
5
- operation: AutoBeOpenApi.IOperation;
6
- code: string;
7
- decoratorType?: string;
8
- }): Promise<string>;
@@ -1,77 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.replaceImportStatements = replaceImportStatements;
13
- const getRealizeWriteImportStatements_1 = require("./getRealizeWriteImportStatements");
14
- function replaceImportStatements(ctx, props) {
15
- return __awaiter(this, void 0, void 0, function* () {
16
- let { operation, code, decoratorType } = props;
17
- const typeReferences = Array.from(new Set([operation.requestBody, operation.responseBody]
18
- .filter((el) => el !== null)
19
- .map((el) => el.typeName.split(".")[0])));
20
- const compiler = yield ctx.compiler();
21
- code = yield compiler.typescript.beautify(code);
22
- // Remove existing import statements using flexible regex patterns
23
- code = code
24
- .replace(/import\s*{\s*MyGlobal\s*}\s*from\s*["']\.\.\/MyGlobal["']\s*;?\s*/gm, "")
25
- .replace(/import\s+typia\s*,\s*{\s*tags\s*}\s*from\s*["']typia["']\s*;?\s*/gm, "")
26
- .replace(/import\s*{\s*tags\s*}\s*from\s*["']typia["']\s*;?\s*/gm, "")
27
- .replace(/import\s*{\s*tags\s*,\s*typia\s*}\s*from\s*["']typia["']\s*;?\s*/gm, "")
28
- .replace(/import\s+typia\s*from\s*["']typia["']\s*;?\s*/gm, "")
29
- .replace(/import\s*{\s*Prisma\s*}\s*from\s*["']@prisma\/client["']\s*;?\s*/gm, "")
30
- .replace(/import\s*{\s*v4\s*}\s*from\s*["']uuid["']\s*;?\s*/gm, "")
31
- .replace(/import\s*{\s*toISOStringSafe\s*}\s*from\s*["']\.\.\/util\/toISOStringSafe["']\s*;?\s*/gm, "")
32
- // Remove JWT import if it exists (to prevent duplication)
33
- .replace(/import\s+jwt\s+from\s*["']jsonwebtoken["']\s*;?\s*/gm, "")
34
- .replace(/import\s*\*\s*as\s+jwt\s+from\s*["']jsonwebtoken["']\s*;?\s*/gm, "");
35
- // Remove any existing API structure imports
36
- // Pattern 1: ../api/structures path
37
- code = code.replace(/import\s*(?:type\s*)?{\s*[^}]+\s*}\s*from\s*["']\.\.\/api\/structures\/[^"']+["']\s*;?\s*/gm, "");
38
- // Pattern 2: @ORGANIZATION/PROJECT-api/lib/structures path
39
- code = code.replace(/import\s*(?:type\s*)?{\s*[^}]+\s*}\s*from\s*["']@ORGANIZATION\/PROJECT-api\/lib\/structures\/[^"']+["']\s*;?\s*/gm, "");
40
- // Remove specific type imports that match our typeReferences
41
- for (const ref of typeReferences) {
42
- // Remove any import of this specific type from any path
43
- const typeImportRegex = new RegExp(`import\\s*(?:type\\s*)?{\\s*${ref}\\s*}\\s*from\\s*["'][^"']+["']\\s*;?\\s*`, "gm");
44
- code = code.replace(typeImportRegex, "");
45
- }
46
- // Remove any existing decoratorType imports if LLM mistakenly added them
47
- if (decoratorType) {
48
- const decoratorTypeRegex = new RegExp(`import\\s*(?:type\\s*)?{\\s*${decoratorType}\\s*}\\s*from\\s*["']\\.\\.\/decorators\/payload\/${decoratorType}["']\\s*;?\\s*`, "gm");
49
- code = code.replace(decoratorTypeRegex, "");
50
- }
51
- // Build the standard imports
52
- const imports = (0, getRealizeWriteImportStatements_1.getRealizeWriteImportStatements)(operation);
53
- // Only add decoratorType import if it exists
54
- if (decoratorType) {
55
- imports.push(`import { ${decoratorType} } from "../decorators/payload/${decoratorType}"`);
56
- }
57
- code = [...imports, "", code].join("\n");
58
- // Clean up formatting issues
59
- code =
60
- code
61
- // Remove lines with only whitespace
62
- .replace(/^\s+$/gm, "")
63
- // Replace 3+ consecutive newlines with exactly 2 newlines
64
- .replace(/\n{3,}/g, "\n\n")
65
- // Ensure proper spacing after import section
66
- .replace(/(import.*?;)(\s*)(\n(?!import|\s*$))/g, "$1\n\n$3")
67
- // Trim and ensure single trailing newline
68
- .trim() + "\n";
69
- // fix escaped codes
70
- code = code.replace(/\\n/g, "\n").replace(/\\"/g, '"').replace(/\\'/g, "'");
71
- // Apply final beautification
72
- code = yield compiler.typescript.beautify(code);
73
- code = code.replaceAll("typia.tags.assert", "typia.assert");
74
- return code;
75
- });
76
- }
77
- //# sourceMappingURL=replaceImportStatements.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"replaceImportStatements.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/real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AI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAE5E,6BAA6B;QAC7B,IAAI,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEhD,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;QAE5D,OAAO,IAAI,CAAC;IACd,CAAC;CAAA"}
@@ -1,4 +0,0 @@
1
- import { ILlmSchema } from "@samchon/openapi";
2
- import { AutoBeContext } from "../../../context/AutoBeContext";
3
- import { IAutoBeTestScenarioArtifacts } from "../structures/IAutoBeTestScenarioArtifacts";
4
- export declare const completeTestCode: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, artifacts: IAutoBeTestScenarioArtifacts, code: string) => Promise<string>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"completeTestCode.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/compile/completeTestCode.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAK3C,uEAAoE;AAE7D,MAAM,gBAAgB,GAAG,CAC9B,GAAyB,EACzB,SAAuC,EACvC,IAAY,EACK,EAAE;IACnB,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAC;IACtC,IAAI,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAChD,IAAI,GAAG,IAAI;SACR,KAAK,CAAC,MAAM,CAAC;SACb,IAAI,CAAC,IAAI,CAAC;SACV,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;SAC1D,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,OAAO,MAAM,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,kBAAU,CAAC,IAAI,CAAA;MACrD,IAAA,iDAAuB,EAAC,SAAS,CAAC,QAAQ,CAAC;;MAE3C,IAAI;GACP,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAlBW,QAAA,gBAAgB,oBAkB3B"}
@@ -1 +0,0 @@
1
- export declare function filterTestFileName(key: string): boolean;
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
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>>;
@@ -1 +0,0 @@
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;QACt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ImportStatements: (document: AutoBeOpenApi.IDocument) => string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTestImportStatements.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/compile/getTestImportStatements.ts"],"names":[],"mappings":";;;AACA,yCAA2C;AAEpC,MAAM,uBAAuB,GAAG,CACrC,QAAiC,EACzB,EAAE;IACV,MAAM,cAAc,GAAa,KAAK,CAAC,IAAI,CACzC,IAAI,GAAG,CACL,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC,CAC1E,CACF,CAAC,IAAI,EAAE,CAAC;IACT,OAAO,kBAAU,CAAC,IAAI,CAAA;;;;;;MAMlB,cAAc;SACb,GAAG,CACF,CAAC,GAAG,EAAE,EAAE,CACN,iBAAiB,GAAG,qDAAqD,GAAG,IAAI,CACnF;SACA,IAAI,CAAC,IAAI,CAAC;GACd,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,uBAAuB,2BAqBlC"}
@@ -1,5 +0,0 @@
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" | "functionName">): Promise<IAutoBeTestScenarioArtifacts>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTestScenarioArtifacts.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/compile/getTestScenarioArtifacts.ts"],"names":[],"mappings":";;;;;;;;;;;AAWA,4DAgCC;AAtCD,8CAAkE;AAIlE,+DAA4D;AAE5D,SAAsB,wBAAwB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C"}
@@ -1,2 +0,0 @@
1
- import { AutoBeOpenApi, AutoBeTestScenario } from "@autobe/interface";
2
- export declare const getTestTemplateCode: (scenario: Pick<AutoBeTestScenario, "endpoint" | "dependencies" | "functionName">, document: AutoBeOpenApi.IDocument) => string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTestTemplateCode.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/compile/getTestTemplateCode.ts"],"names":[],"mappings":";;;AACA,yCAA2C;AAE3C,uEAAoE;AAE7D,MAAM,mBAAmB,GAAG,CACjC,QAGC,EACD,QAAiC,EACzB,EAAE;IACV,OAAO,kBAAU,CAAC,IAAI,CAAA;MAClB,IAAA,iDAAuB,EAAC,QAAQ,CAAC;;;;;4BAKX,QAAQ,CAAC,YAAY;;;;;GAK9C,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,mBAAmB,uBAmB9B"}
@@ -1,6 +0,0 @@
1
- import { IAgenticaHistoryJson } from "@agentica/core";
2
- import { ILlmSchema } from "@samchon/openapi";
3
- import { AutoBeContext } from "../../../context/AutoBeContext";
4
- import { IAutoBeTestFunction } from "../structures/IAutoBeTestFunction";
5
- import { IAutoBeTestFunctionFailure } from "../structures/IAutoBeTestFunctionFailure";
6
- export declare const transformTestCorrectHistories: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, func: IAutoBeTestFunction, failures: IAutoBeTestFunctionFailure[]) => Promise<Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>>;