@autobe/agent 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/lib/AutoBeMockAgent.d.ts +2 -10
  2. package/lib/agent/src/AutoBeAgent.js +8 -2
  3. package/lib/agent/src/AutoBeAgent.js.map +1 -1
  4. package/lib/agent/src/AutoBeMockAgent.d.ts +2 -10
  5. package/lib/agent/src/AutoBeMockAgent.js +10 -5
  6. package/lib/agent/src/AutoBeMockAgent.js.map +1 -1
  7. package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +23 -29
  8. package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -1
  9. package/lib/agent/src/context/AutoBeContext.d.ts +1 -0
  10. package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +1 -0
  11. package/lib/agent/src/context/AutoBeTokenUsageComponent.js +14 -0
  12. package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -1
  13. package/lib/agent/src/factory/consentFunctionCall.d.ts +10 -0
  14. package/lib/agent/src/factory/consentFunctionCall.js +213 -0
  15. package/lib/agent/src/factory/consentFunctionCall.js.map +1 -0
  16. package/lib/agent/src/factory/createAgenticaHistory.js +1 -0
  17. package/lib/agent/src/factory/createAgenticaHistory.js.map +1 -1
  18. package/lib/agent/src/factory/createAutoBeContext.js +79 -19
  19. package/lib/agent/src/factory/createAutoBeContext.js.map +1 -1
  20. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +6 -0
  21. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +41 -0
  22. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -0
  23. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +12 -9
  24. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
  25. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +3 -1
  26. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +45 -31
  27. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
  28. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js +25 -6
  29. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  30. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +8 -3
  31. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +15 -12
  32. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
  33. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +33 -44
  34. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  35. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +6 -4
  36. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +10 -4
  37. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
  38. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +16 -16
  39. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +5 -5
  40. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js +45 -45
  41. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -1
  42. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +14 -14
  43. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
  44. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +31 -30
  45. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
  46. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +24 -31
  47. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
  48. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +4 -4
  49. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
  50. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +27 -26
  51. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
  52. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +13 -12
  53. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
  54. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js +4 -4
  55. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +11 -10
  56. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
  57. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +36 -29
  58. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
  59. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js +31 -9
  60. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -1
  61. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +2 -2
  62. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +1571 -1144
  63. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
  64. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js +24 -4
  65. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  66. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js +6 -2
  67. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  68. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
  69. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js +12 -14
  70. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
  71. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +103 -71
  72. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  73. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +2 -3
  74. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +147 -116
  75. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
  76. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +401 -233
  77. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
  78. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +2 -5
  79. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +362 -178
  80. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
  81. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +38 -0
  82. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +16 -16
  83. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +97 -14
  84. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +75 -1
  85. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +46 -14
  86. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +18 -24
  87. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -0
  88. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +35 -0
  89. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js.map +1 -0
  90. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +60 -66
  91. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
  92. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +19 -30
  93. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -1
  94. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +38 -35
  95. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
  96. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +39 -26
  97. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
  98. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js +15 -4
  99. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -1
  100. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -2
  101. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js +7 -9
  102. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  103. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js +38 -2
  104. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  105. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js +61 -10
  106. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
  107. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js +68 -24
  108. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
  109. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +24 -21
  110. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
  111. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +59 -57
  112. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
  113. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +1 -0
  114. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +17 -13
  115. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
  116. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
  117. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +287 -0
  118. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
  119. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -2
  120. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +46 -49
  121. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
  122. package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +7 -0
  123. package/lib/agent/src/orchestrate/realize/internal/{compile.js → compileRealizeFiles.js} +12 -29
  124. package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -0
  125. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +76 -45
  126. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -1
  127. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js +15 -9
  128. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
  129. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +9 -7
  130. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
  131. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -6
  132. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +25 -20
  133. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  134. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -66
  135. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -1
  136. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +8 -6
  137. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +36 -27
  138. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
  139. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +3 -3
  140. package/lib/agent/src/orchestrate/{internal/IProgress.js → realize/structures/IAutoBeRealizeCorrectApplication.js} +1 -1
  141. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
  142. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +19 -16
  143. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +5 -1
  144. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
  145. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js +13 -10
  146. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -1
  147. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +17 -16
  148. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
  149. package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js +33 -32
  150. package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js.map +1 -1
  151. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +2 -1
  152. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +97 -49
  153. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
  154. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +3 -3
  155. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
  156. package/lib/agent/src/orchestrate/test/orchestrateTest.js +17 -4
  157. package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -1
  158. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +18 -9
  159. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  160. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +138 -23
  161. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  162. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js +17 -17
  163. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  164. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +7 -6
  165. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +1 -1
  166. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
  167. package/lib/agent/src/orchestrate/{realize/structures/IAutoBeRealizeCoderApplication.js → test/structures/IAutoBeTestScenarioAuthorizationRole.js} +1 -1
  168. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
  169. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -2
  170. package/lib/agent/src/utils/executeCachedBatch.d.ts +1 -0
  171. package/lib/agent/src/utils/executeCachedBatch.js +23 -0
  172. package/lib/agent/src/utils/executeCachedBatch.js.map +1 -0
  173. package/lib/agent/src/utils/predicateStateMessage.d.ts +4 -0
  174. package/lib/agent/src/utils/predicateStateMessage.js +87 -0
  175. package/lib/agent/src/utils/predicateStateMessage.js.map +1 -0
  176. package/lib/constants/AutoBeSystemPromptConstant.d.ts +23 -29
  177. package/lib/context/AutoBeContext.d.ts +1 -0
  178. package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
  179. package/lib/factory/consentFunctionCall.d.ts +10 -0
  180. package/lib/index.mjs +4799 -2637
  181. package/lib/index.mjs.map +1 -1
  182. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +6 -0
  183. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +3 -1
  184. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +8 -3
  185. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +6 -4
  186. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +16 -16
  187. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +5 -5
  188. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +2 -2
  189. package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
  190. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +2 -3
  191. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +2 -5
  192. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +38 -0
  193. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +16 -16
  194. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +97 -14
  195. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +75 -1
  196. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +46 -14
  197. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +18 -24
  198. package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -0
  199. package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -2
  200. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +1 -0
  201. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
  202. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -2
  203. package/lib/orchestrate/realize/internal/compileRealizeFiles.d.ts +7 -0
  204. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -6
  205. package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -66
  206. package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +8 -6
  207. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +3 -3
  208. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +19 -16
  209. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +2 -1
  210. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +7 -6
  211. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +1 -1
  212. package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
  213. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -2
  214. package/lib/utils/executeCachedBatch.d.ts +1 -0
  215. package/lib/utils/predicateStateMessage.d.ts +4 -0
  216. package/package.json +6 -6
  217. package/src/AutoBeAgent.ts +18 -3
  218. package/src/AutoBeMockAgent.ts +13 -15
  219. package/src/constants/AutoBeSystemPromptConstant.ts +23 -29
  220. package/src/context/AutoBeContext.ts +1 -0
  221. package/src/context/AutoBeTokenUsageComponent.ts +20 -0
  222. package/src/factory/consentFunctionCall.ts +129 -0
  223. package/src/factory/createAgenticaHistory.ts +1 -0
  224. package/src/factory/createAutoBeContext.ts +108 -20
  225. package/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.ts +53 -0
  226. package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +13 -10
  227. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +68 -47
  228. package/src/orchestrate/analyze/orchestrateAnalyze.ts +33 -21
  229. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +21 -10
  230. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +18 -40
  231. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +15 -8
  232. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +16 -16
  233. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +5 -5
  234. package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +47 -47
  235. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +14 -14
  236. package/src/orchestrate/interface/histories/transformInterfaceComplementHistories.ts +31 -30
  237. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +20 -29
  238. package/src/orchestrate/interface/histories/transformInterfaceGroupHistories.ts +3 -3
  239. package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +23 -22
  240. package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +12 -11
  241. package/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.ts +5 -5
  242. package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +11 -10
  243. package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +37 -30
  244. package/src/orchestrate/interface/orchestrateInterface.ts +53 -12
  245. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +142 -32
  246. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +2 -0
  247. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +13 -9
  248. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +8 -19
  249. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +82 -74
  250. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +51 -32
  251. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +174 -56
  252. package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +149 -63
  253. package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +39 -0
  254. package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +16 -16
  255. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +101 -14
  256. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +77 -1
  257. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +47 -14
  258. package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +18 -24
  259. package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +41 -0
  260. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +61 -66
  261. package/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.ts +19 -30
  262. package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +38 -35
  263. package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +36 -23
  264. package/src/orchestrate/prisma/orchestratePrisma.ts +17 -6
  265. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +8 -19
  266. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +3 -0
  267. package/src/orchestrate/prisma/orchestratePrismaReview.ts +37 -18
  268. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +25 -17
  269. package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +24 -21
  270. package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +57 -59
  271. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +20 -14
  272. package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +294 -0
  273. package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +62 -57
  274. package/src/orchestrate/realize/internal/compileRealizeFiles.ts +71 -0
  275. package/src/orchestrate/realize/orchestrateRealize.ts +109 -86
  276. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +22 -13
  277. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +3 -0
  278. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +28 -24
  279. package/src/orchestrate/realize/orchestrateRealizeScenario.ts +0 -74
  280. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +37 -28
  281. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +3 -3
  282. package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +19 -16
  283. package/src/orchestrate/realize/utils/replaceImportStatements.ts +7 -0
  284. package/src/orchestrate/test/compile/completeTestCode.ts +17 -13
  285. package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +4 -4
  286. package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +17 -16
  287. package/src/orchestrate/test/histories/transformTestHistories.ts +35 -34
  288. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +116 -60
  289. package/src/orchestrate/test/histories/transformTestWriteHistories.ts +3 -3
  290. package/src/orchestrate/test/orchestrateTest.ts +18 -8
  291. package/src/orchestrate/test/orchestrateTestCorrect.ts +34 -24
  292. package/src/orchestrate/test/orchestrateTestScenario.ts +179 -36
  293. package/src/orchestrate/test/orchestrateTestWrite.ts +18 -19
  294. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +7 -6
  295. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +1 -1
  296. package/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.ts +7 -0
  297. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +2 -2
  298. package/src/utils/executeCachedBatch.ts +15 -0
  299. package/src/utils/predicateStateMessage.ts +107 -0
  300. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +0 -4
  301. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js +0 -46
  302. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js.map +0 -1
  303. package/lib/agent/src/orchestrate/internal/IProgress.d.ts +0 -4
  304. package/lib/agent/src/orchestrate/internal/IProgress.js.map +0 -1
  305. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +0 -7
  306. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.js +0 -213
  307. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.js.map +0 -1
  308. package/lib/agent/src/orchestrate/realize/internal/compile.d.ts +0 -7
  309. package/lib/agent/src/orchestrate/realize/internal/compile.js.map +0 -1
  310. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +0 -345
  311. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
  312. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +0 -56
  313. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.js +0 -3
  314. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
  315. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +0 -2
  316. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -5
  317. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +0 -1
  318. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js +0 -3
  319. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js.map +0 -1
  320. package/lib/agent/src/utils/pipe.d.ts +0 -5
  321. package/lib/agent/src/utils/pipe.js +0 -14
  322. package/lib/agent/src/utils/pipe.js.map +0 -1
  323. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +0 -4
  324. package/lib/orchestrate/internal/IProgress.d.ts +0 -4
  325. package/lib/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +0 -7
  326. package/lib/orchestrate/realize/internal/compile.d.ts +0 -7
  327. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +0 -345
  328. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +0 -56
  329. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +0 -2
  330. package/lib/utils/pipe.d.ts +0 -5
  331. package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +0 -53
  332. package/src/orchestrate/internal/IProgress.ts +0 -4
  333. package/src/orchestrate/realize/histories/transformRealizeCoderHistories.ts +0 -248
  334. package/src/orchestrate/realize/internal/compile.ts +0 -84
  335. package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +0 -358
  336. package/src/orchestrate/realize/structures/IAutoBeRealizeCompile.ts +0 -70
  337. package/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.ts +0 -2
  338. package/src/utils/pipe.ts +0 -39
  339. /package/lib/agent/src/orchestrate/realize/structures/{IAutoBeRealizeReviewApplication.d.ts → IAutoBeRealizeCorrectApplication.d.ts} +0 -0
  340. /package/lib/orchestrate/realize/structures/{IAutoBeRealizeReviewApplication.d.ts → IAutoBeRealizeCorrectApplication.d.ts} +0 -0
  341. /package/src/orchestrate/realize/structures/{IAutoBeRealizeReviewApplication.ts → IAutoBeRealizeCorrectApplication.ts} +0 -0
@@ -1,345 +0,0 @@
1
- import { AutoBeOpenApi } from "@autobe/interface";
2
- import { FAILED } from "./IAutoBeRealizeFailedSymbol";
3
- export interface IAutoBeRealizeCoderApplication {
4
- programming: (input: IAutoBeRealizeCoderApplication.IProps) => void;
5
- }
6
- export declare namespace IAutoBeRealizeCoderApplication {
7
- /**
8
- * Properties for the component or function that consumes the output of the
9
- * code generation pipeline.
10
- */
11
- interface IProps {
12
- /**
13
- * The detailed output of the code generation process, containing all phases
14
- * from planning to final implementation of a TypeScript provider function.
15
- */
16
- output: Omit<IAutoBeRealizeCoderApplication.RealizeCoderOutput, "filename">;
17
- }
18
- /**
19
- * Represents the complete output of a code generation pipeline. Each field
20
- * corresponds to a stage in the Chain of Thought (CoT) process for generating
21
- * a production-quality TypeScript function.
22
- *
23
- * All fields contain TypeScript code strings and follow these rules:
24
- *
25
- * - All code must be valid TypeScript or structurally valid even if incomplete.
26
- * - Each phase builds upon the previous one and must resolve specific concerns.
27
- * - All phases must follow system conventions around structure, typing, and
28
- * logic.
29
- */
30
- interface RealizeCoderOutput {
31
- /** @ignore */
32
- filename: string;
33
- /**
34
- * Error Analysis Phase (Optional)
35
- *
36
- * 🔍 Analyzes TypeScript compilation errors from previous attempts.
37
- *
38
- * This field should contain a detailed analysis of any TypeScript errors
39
- * encountered, with root cause identification and resolution strategies:
40
- *
41
- * Common Error Patterns to Analyze:
42
- *
43
- * 1. **"Property does not exist" (TS2353)**:
44
- *
45
- * - Root Cause: Using fields that don't exist in Prisma schema
46
- * - Example: Using `deleted_at` when the field doesn't exist in the model
47
- * - Resolution: Remove the non-existent field or use hard delete instead
48
- * 2. **"Type 'void' is not assignable" (TS2322)**:
49
- *
50
- * - Root Cause: Using `typia.assertGuard` instead of `typia.assert`
51
- * - `assertGuard` returns void, `assert` returns the validated value
52
- * - Resolution: Change `typia.assertGuard<T>()` to `typia.assert<T>()`
53
- * 3. **"Type 'Date' is not assignable to type 'string &
54
- * Format<'date-time'>'"**:
55
- *
56
- * - Root Cause: Assigning native Date objects to string fields
57
- * - Resolution: Use `toISOStringSafe(dateValue)` for all date conversions
58
- * 4. **Complex Prisma Type Errors**:
59
- *
60
- * - Root Cause: Nested operations with incompatible types
61
- * - Resolution: Use separate queries and application-level joins
62
- *
63
- * Analysis Format:
64
- *
65
- * - List each error with its TypeScript error code
66
- * - Identify the root cause (schema mismatch, wrong function usage, etc.)
67
- * - Provide specific resolution steps
68
- * - Note any schema limitations discovered
69
- */
70
- errorAnalysis?: string;
71
- /**
72
- * Step 1.
73
- *
74
- * 🧠 Provider Function Implementation Plan
75
- *
76
- * This field outlines the strategic plan for implementing the provider
77
- * function according to the Realize Coder Agent specification. Before
78
- * writing the actual code, think through the logic and structure.
79
- *
80
- * The plan MUST follow MANDATORY SCHEMA-FIRST APPROACH:
81
- *
82
- * 📋 STEP 1 - PRISMA SCHEMA VERIFICATION (MOST CRITICAL):
83
- *
84
- * - EXAMINE the actual Prisma schema model definition
85
- * - LIST EVERY field that exists in the model with exact types
86
- * - EXPLICITLY NOTE fields that DO NOT exist (e.g., "Note: deleted_at field
87
- * DOES NOT EXIST")
88
- * - Common assumption errors to avoid: `deleted_at`, `created_by`,
89
- * `updated_by`, `is_deleted`, `is_active`
90
- *
91
- * 📋 STEP 2 - FIELD INVENTORY:
92
- *
93
- * - List ONLY fields confirmed to exist in schema
94
- * - Example: "Verified fields in user model: id (String), email (String),
95
- * created_at (DateTime), updated_at (DateTime)"
96
- * - Example: "Fields that DO NOT exist: deleted_at, is_active, created_by"
97
- *
98
- * 📋 STEP 3 - FIELD ACCESS STRATEGY:
99
- *
100
- * - Plan which verified fields will be used in select, update, create
101
- * operations
102
- * - For complex operations with type errors, plan to use separate queries
103
- * instead of nested operations
104
- *
105
- * 📋 STEP 4 - TYPE COMPATIBILITY:
106
- *
107
- * - Plan DateTime to ISO string conversions using toISOStringSafe()
108
- * - Plan handling of nullable vs required fields
109
- *
110
- * 📋 STEP 5 - IMPLEMENTATION APPROACH:
111
- *
112
- * - 🧩 Required business entities (e.g., users, posts, logs) and their
113
- * relationships
114
- * - 🛠 Operations needed to fulfill the business scenario (e.g., fetch,
115
- * create, update) using ONLY verified fields
116
- * - 🔄 Data dependencies between steps (e.g., use userId to fetch related
117
- * data)
118
- * - ✅ Validation points (based on business rules, not field presence)
119
- * - 🚧 Error and edge cases that must be handled explicitly (e.g., missing
120
- * records)
121
- * - 🏗 Structure: always a single `async function`, using only `parameters`
122
- * and `body`
123
- *
124
- * ⚠️ Important Constraints:
125
- *
126
- * - Do NOT perform input validation — assume `parameters` and `body` are
127
- * already valid
128
- * - Use `typia.random<T>()` with an explanatory comment if logic can't be
129
- * implemented
130
- * - Never use `any` or make assumptions without sufficient context
131
- * - Use only allowed imports — DTOs and Prisma types
132
- * - Use `MyGlobal.prisma` for DB access and respect Prisma typing rules
133
- *
134
- * ⚠️ TypeScript-specific considerations:
135
- *
136
- * - Do **not** use native `Date` objects directly; always convert all dates
137
- * using `toISOStringSafe()` and brand as `string &
138
- * tags.Format<'date-time'>`. This rule applies throughout all phases.
139
- * - Prefer `satisfies` for DTO conformance instead of unsafe `as` casts
140
- * - Avoid weak typing such as `any`, `as any`, or `satisfies any`
141
- * - Use branded types (e.g., `tags.Format<'uuid'>`) and literal unions where
142
- * applicable
143
- *
144
- * ✅ Example Structure:
145
- *
146
- * ```ts
147
- * export async function doSomething(
148
- * user: { id: string & tags.Format<"uuid">; type: string },
149
- * parameters: IParams,
150
- * body: IBody
151
- * ): Promise<IReturn> {
152
- * const { id } = parameters;
153
- * const { name } = body;
154
- * const user = await MyGlobal.prisma.users.findFirst({ where: { id } });
155
- * if (!user) throw new Error("User not found");
156
- * ...
157
- * return result;
158
- * }
159
- * ```
160
- *
161
- * 🔍 Feasibility Analysis Requirement:
162
- *
163
- * - Before generating any code, the agent **must analyze** whether the
164
- * requested implementation is **feasible based on the given Prisma schema
165
- * and DTO types**.
166
- * - If required fields or relationships are **missing or incompatible**, the
167
- * plan should explicitly state that the implementation is **not
168
- * possible** with the current schema/DTO, and no code should be generated
169
- * in later stages.
170
- * - In such cases, only a detailed **comment in the `implementationCode`**
171
- * should be returned explaining why the logic cannot be implemented.
172
- *
173
- * 🔥 Error Handling Plan:
174
- *
175
- * If an error is expected or encountered during implementation:
176
- *
177
- * - Clearly document the error message(s) and TypeScript error codes.
178
- * - Analyze the root cause (e.g., type mismatch, missing field, nullability
179
- * issue).
180
- * - Define concrete steps to resolve the issue, such as:
181
- *
182
- * - Adjusting type declarations or using Prisma-generated input types.
183
- * - Using `?? undefined` to normalize nullable fields.
184
- * - Applying correct relation handling (e.g., `connect` instead of direct
185
- * foreign key assignment).
186
- * - Ensuring all date fields use `.toISOString()` and proper branding.
187
- * - Include fallback or workaround plans if a direct fix is complex.
188
- * - If no error is present, simply omit this section.
189
- *
190
- * This plan ensures the function will:
191
- *
192
- * - Respect the global architecture and coding conventions
193
- * - Be safe, predictable, and aligned with upstream logic
194
- */
195
- plan: string;
196
- /**
197
- * Step 2.
198
- *
199
- * The Prisma schema string that will be used to validate the implementation
200
- * logic in this file.
201
- *
202
- * You must **explicitly specify only the relevant models and fields** from
203
- * your full schema that are used in this implementation. This ensures that
204
- * your logic is aligned with the expected database structure without
205
- * accidentally introducing unrelated fields or models.
206
- *
207
- * ⚠️ Important: The value of this field must be a valid Prisma schema
208
- * string containing only the models used in this code — not the entire
209
- * schema.
210
- *
211
- * This acts as a safeguard against:
212
- *
213
- * - Forgetting required fields used in this implementation
214
- * - Including fields or models that are not actually used
215
- */
216
- prisma_schemas: string;
217
- /**
218
- * Step 3.
219
- *
220
- * Draft WITHOUT using native Date type.
221
- *
222
- * This is the initial drafting phase where you outline the basic skeleton
223
- * of the function. CRITICAL: This draft must NEVER use the native Date
224
- * type.
225
- *
226
- * - The function signature must correctly include `user`, `parameters`, and
227
- * `body` arguments.
228
- * - Design the main flow of business logic, such as DB fetches and early
229
- * returns based on conditions.
230
- * - Mark any incomplete or missing parts clearly with placeholders (e.g.,
231
- * comments or temporary values).
232
- *
233
- * ⚠️ Import rules:
234
- *
235
- * - Do NOT add any new import statements manually.
236
- * - All necessary imports are provided globally or by the system
237
- * automatically.
238
- * - Writing import statements directly is prohibited and may cause compile
239
- * errors. If import errors occur, check your environment configuration.
240
- *
241
- * ✅ Requirements:
242
- *
243
- * - Avoid using the `any` type at all costs to ensure type safety.
244
- * - NEVER declare variables with `: Date` type
245
- * - ALWAYS use `string & tags.Format<'date-time'>` for date values
246
- * - Use `toISOStringSafe(new Date())` for current timestamps
247
- * - Maintain a single-function structure; avoid using classes.
248
- */
249
- draft_without_date_type: string;
250
- /**
251
- * Step 4.
252
- *
253
- * A refined version of the draft with improved completeness.
254
- *
255
- * - Replace placeholder logic with real DTO-conformant operations.
256
- * - Add error handling (`throw new Error(...)`) where necessary.
257
- * - Begin resolving structural or type mismatches.
258
- *
259
- * ✅ Requirements:
260
- *
261
- * - Use `satisfies` to ensure DTO conformity.
262
- * - Avoid unsafe `as` casts unless only for branding or literal narrowing.
263
- * - Use `toISOStringSafe()` for all date conversions (NOT `.toISOString()`).
264
- * - Ensure all object keys strictly conform to the expected type definitions.
265
- */
266
- review: string;
267
- /**
268
- * 🛠 Phase 4-2: With compiler feedback (optional)
269
- *
270
- * A correction pass that applies fixes for compile-time errors that arose
271
- * during the review stage (if any).
272
- *
273
- * ✅ Must:
274
- *
275
- * - Only include this field if TypeScript errors are detected in the Review
276
- * phase.
277
- * - Resolve all TypeScript errors without using `as any`.
278
- * - Provide safe brand casting only if required (e.g., `as string &
279
- * tags.Format<'uuid'>`).
280
- * - If no TypeScript errors exist, this field MUST contain the text: "No
281
- * TypeScript errors detected - skipping this phase"
282
- */
283
- withCompilerFeedback: string;
284
- /**
285
- * Step 5.
286
- *
287
- * The complete and fully correct TypeScript function implementation.
288
- *
289
- * - Passes strict type checking without errors.
290
- * - Uses only safe branding or literal type assertions.
291
- * - Converts all date values properly using `toISOStringSafe()`.
292
- * - Follows DTO structures using `satisfies`.
293
- * - Avoids any weak typing such as `any`, `as any`, or `satisfies any`.
294
- * - Uses only allowed imports (e.g., from `../api/structures` and
295
- * `MyGlobal.prisma`).
296
- * - NEVER creates intermediate variables for Prisma operations.
297
- *
298
- * ⚠️ Fallback Behavior:
299
- *
300
- * - If the `plan` phase explicitly determines that the requested logic is
301
- * **not feasible** due to mismatches or limitations in the provided
302
- * Prisma schema and DTO types:
303
- *
304
- * - The implementation must still return a syntactically valid function.
305
- * - In such cases, return mock data using `typia.random<T>()` wrapped in the
306
- * correct structure, along with a comment explaining the limitation.
307
- *
308
- * Example fallback:
309
- *
310
- * ```ts
311
- * // ⚠️ Cannot implement logic due to missing relation between A and B
312
- * export async function someFunction(...) {
313
- * return typia.random<IReturn>(); // mocked output
314
- * }
315
- * ```
316
- *
317
- * ⚠️ Prohibited Practices:
318
- *
319
- * - Do NOT add or modify import statements manually. Imports are handled
320
- * automatically by the system.
321
- * - Do NOT use `any`, `as any`, or `satisfies any` to bypass type checking.
322
- * - Do NOT assign native `Date` objects directly; always convert them using
323
- * `toISOStringSafe()`.
324
- * - Do NOT use unsafe type assertions except for safe branding or literal
325
- * narrowing.
326
- * - Do NOT write code outside the single async function structure (e.g., no
327
- * classes or multiple functions).
328
- * - Do NOT perform any input validation — assume all inputs are already
329
- * validated.
330
- * - Do NOT use dynamic import expressions (`import()`); all imports must be
331
- * static.
332
- * - Do NOT use Prisma-generated input types; always use types from
333
- * `../api/structures`.
334
- * - Do NOT use `Object.prototype.hasOwnProperty.call()` for field checks.
335
- * - Do NOT escape newlines or quotes in the implementation string (e.g., no
336
- * `\\n` or `\"`); use a properly formatted template literal with actual
337
- * line breaks instead.
338
- */
339
- implementationCode: string;
340
- }
341
- interface IPipeOutput {
342
- result: RealizeCoderOutput | FAILED;
343
- operation: AutoBeOpenApi.IOperation;
344
- }
345
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAutoBeRealizeCoderApplication.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts"],"names":[],"mappings":""}
@@ -1,56 +0,0 @@
1
- import { AutoBeOpenApi, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
2
- import { tags } from "typia";
3
- import { IAutoBeRealizeCoderApplication } from "./IAutoBeRealizeCoderApplication";
4
- import { FAILED } from "./IAutoBeRealizeFailedSymbol";
5
- export declare namespace IAutoBeRealizeCompile {
6
- export type Result = IAutoBeRealizeCompile.Success | IAutoBeRealizeCompile.Fail;
7
- type IBase<T extends "success" | "failed"> = {
8
- /**
9
- * Indicates whether code generation was attempted. "success" means code was
10
- * generated, but compilation may still fail. "failed" means code generation
11
- * was not possible (e.g., invalid input).
12
- */
13
- type: T;
14
- };
15
- export interface Success extends IBase<"success"> {
16
- /**
17
- * Operation: An object containing the function specification including the
18
- * endpoint
19
- */
20
- operation: AutoBeOpenApi.IOperation;
21
- /** Result */
22
- result: IAutoBeRealizeCoderApplication.RealizeCoderOutput;
23
- }
24
- export interface Fail extends IBase<"failed"> {
25
- /**
26
- * Operation: An object containing the function specification including the
27
- * endpoint
28
- */
29
- operation: AutoBeOpenApi.IOperation;
30
- /** Result */
31
- result: FAILED;
32
- }
33
- export interface CodeArtifact {
34
- result: "failed" | "success";
35
- content: string;
36
- role?: (string & tags.MinLength<1>) | null;
37
- endpoint?: AutoBeOpenApi.IEndpoint;
38
- location: string;
39
- name?: string;
40
- }
41
- export type FileContentMap = Record<string, CodeArtifact>;
42
- export interface CompileDiagnostics {
43
- /**
44
- * Array containing all errors including previous attempts. Includes errors
45
- * that have already been resolved. Used to preserve error context and
46
- * identify recurring error patterns.
47
- */
48
- total: IAutoBeTypeScriptCompileResult.IDiagnostic[];
49
- /**
50
- * Array containing errors from the most recent code compilation. These are
51
- * the errors that need to be resolved in the current iteration.
52
- */
53
- current: IAutoBeTypeScriptCompileResult.IDiagnostic[];
54
- }
55
- export {};
56
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IAutoBeRealizeCompile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAutoBeRealizeCompile.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/structures/IAutoBeRealizeCompile.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export declare const FAILED: unique symbol;
2
- export type FAILED = typeof FAILED;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FAILED = void 0;
4
- exports.FAILED = Symbol("FAILED");
5
- //# sourceMappingURL=IAutoBeRealizeFailedSymbol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAutoBeRealizeFailedSymbol.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IAutoBeRealizeReviewApplication.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAutoBeRealizeReviewApplication.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { FAILED } from "../orchestrate/realize/structures/IAutoBeRealizeFailedSymbol";
2
- export declare function pipe<A, B>(a: A, ab: (a: A) => Promise<B | FAILED>): Promise<B | FAILED>;
3
- export declare function pipe<A, B, C>(a: A, ab: (a: A) => Promise<B | FAILED>, bc: (b: B) => Promise<C | FAILED>): Promise<C | FAILED>;
4
- export declare function pipe<A, B, C, D>(a: A, ab: (a: A) => Promise<B | FAILED>, bc: (b: B) => Promise<C | FAILED>, cd: (c: C) => Promise<D | FAILED>): Promise<D | FAILED>;
5
- export declare function pipe<A, B, C, D, E>(a: A, ab: (a: A) => Promise<B | FAILED>, bc: (b: B) => Promise<C | FAILED>, cd: (c: C) => Promise<D | FAILED>, de: (d: D) => Promise<E | FAILED>): Promise<E | FAILED>;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pipe = pipe;
4
- const IAutoBeRealizeFailedSymbol_1 = require("../orchestrate/realize/structures/IAutoBeRealizeFailedSymbol");
5
- function pipe(a, ...fns) {
6
- return fns.reduce((prev, fn) => {
7
- return prev.then((result) => {
8
- if (result === IAutoBeRealizeFailedSymbol_1.FAILED)
9
- return IAutoBeRealizeFailedSymbol_1.FAILED;
10
- return fn(result);
11
- });
12
- }, Promise.resolve(a));
13
- }
14
- //# sourceMappingURL=pipe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipe.js","sourceRoot":"","sources":["../../../../src/utils/pipe.ts"],"names":[],"mappings":";;AA4BA,oBAUC;AAtCD,6GAAsF;AA4BtF,SAAgB,IAAI,CAClB,CAAM,EACN,GAAG,GAAsC;IAEzC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;YAC1B,IAAI,MAAM,KAAK,mCAAM;gBAAE,OAAO,mCAAM,CAAC;YACrC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
@@ -1,4 +0,0 @@
1
- import { IAgenticaHistoryJson } from "@agentica/core";
2
- import { AutoBeAnalyzeScenarioEvent } from "@autobe/interface";
3
- import { AutoBeAnalyzeFile } from "@autobe/interface/src/histories/contents/AutoBeAnalyzeFile";
4
- export declare const transformAnalyzeReviewerHistories: (scenario: AutoBeAnalyzeScenarioEvent, otherFiles: AutoBeAnalyzeFile[], myFile: AutoBeAnalyzeFile) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
@@ -1,4 +0,0 @@
1
- export interface IProgress {
2
- total: number;
3
- completed: number;
4
- }
@@ -1,7 +0,0 @@
1
- import { IAgenticaHistoryJson } from "@agentica/core";
2
- import { AutoBeRealizeAuthorization, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
3
- import { AutoBeState } from "../../../context/AutoBeState";
4
- import { IAutoBeTestScenarioArtifacts } from "../../test/structures/IAutoBeTestScenarioArtifacts";
5
- import { IAutoBeRealizeScenario } from "../orchestrateRealizeScenario";
6
- import { IAutoBeRealizeCompile } from "../structures/IAutoBeRealizeCompile";
7
- export declare const transformRealizeCoderHistories: (state: AutoBeState, previousCodes: IAutoBeRealizeCompile.Success[], props: IAutoBeRealizeScenario, artifacts: IAutoBeTestScenarioArtifacts, previous: string | null, diagnostics: IAutoBeTypeScriptCompileResult.IDiagnostic[], authorization?: AutoBeRealizeAuthorization) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
@@ -1,7 +0,0 @@
1
- import { AutoBeRealizeAuthorization, AutoBeRealizeValidateEvent, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
2
- import { ILlmSchema } from "@samchon/openapi";
3
- import { AutoBeContext } from "../../../context/AutoBeContext";
4
- export declare function compile<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: {
5
- authorizations: AutoBeRealizeAuthorization[];
6
- providers: Record<string, string>;
7
- }): Promise<IAutoBeTypeScriptCompileResult.ISuccess | AutoBeRealizeValidateEvent>;