@autobe/agent 0.17.1 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (727) hide show
  1. package/lib/AutoBeMockAgent.d.ts +2 -10
  2. package/lib/agent/src/AutoBeAgent.d.ts +52 -0
  3. package/lib/{AutoBeAgent.js → agent/src/AutoBeAgent.js} +34 -1
  4. package/lib/agent/src/AutoBeAgent.js.map +1 -0
  5. package/lib/agent/src/AutoBeAgentBase.d.ts +18 -0
  6. package/lib/agent/src/AutoBeAgentBase.js.map +1 -0
  7. package/lib/agent/src/AutoBeMockAgent.d.ts +7 -0
  8. package/lib/{AutoBeMockAgent.js → agent/src/AutoBeMockAgent.js} +40 -5
  9. package/lib/agent/src/AutoBeMockAgent.js.map +1 -0
  10. package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +28 -0
  11. package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -0
  12. package/lib/agent/src/context/AutoBeContext.d.ts +41 -0
  13. package/lib/agent/src/context/AutoBeContext.js.map +1 -0
  14. package/lib/agent/src/context/AutoBeState.d.ts +8 -0
  15. package/lib/agent/src/context/AutoBeState.js.map +1 -0
  16. package/lib/agent/src/context/AutoBeTokenUsage.d.ts +173 -0
  17. package/lib/{context → agent/src/context}/AutoBeTokenUsage.js +7 -0
  18. package/lib/agent/src/context/AutoBeTokenUsage.js.map +1 -0
  19. package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +117 -0
  20. package/lib/{context → agent/src/context}/AutoBeTokenUsageComponent.js +33 -2
  21. package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -0
  22. package/lib/agent/src/context/IAutoBeApplication.d.ts +107 -0
  23. package/lib/agent/src/context/IAutoBeApplication.js.map +1 -0
  24. package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +4 -0
  25. package/lib/agent/src/context/IAutoBeApplicationProps.js.map +1 -0
  26. package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +4 -0
  27. package/lib/agent/src/context/IAutoBeApplicationResult.js.map +1 -0
  28. package/lib/agent/src/context/assertSchemaModel.d.ts +2 -0
  29. package/lib/agent/src/context/assertSchemaModel.js.map +1 -0
  30. package/lib/agent/src/factory/consentFunctionCall.d.ts +10 -0
  31. package/lib/agent/src/factory/consentFunctionCall.js +212 -0
  32. package/lib/agent/src/factory/consentFunctionCall.js.map +1 -0
  33. package/lib/agent/src/factory/createAgenticaHistory.d.ts +7 -0
  34. package/lib/{factory → agent/src/factory}/createAgenticaHistory.js +1 -0
  35. package/lib/agent/src/factory/createAgenticaHistory.js.map +1 -0
  36. package/lib/agent/src/factory/createAutoBeApplication.d.ts +7 -0
  37. package/lib/agent/src/factory/createAutoBeApplication.js.map +1 -0
  38. package/lib/agent/src/factory/createAutoBeContext.d.ts +19 -0
  39. package/lib/agent/src/factory/createAutoBeContext.js +271 -0
  40. package/lib/agent/src/factory/createAutoBeContext.js.map +1 -0
  41. package/lib/agent/src/factory/createAutoBeState.d.ts +3 -0
  42. package/lib/agent/src/factory/createAutoBeState.js.map +1 -0
  43. package/lib/agent/src/factory/getAutoBeGenerated.d.ts +4 -0
  44. package/lib/{factory → agent/src/factory}/getAutoBeGenerated.js +3 -3
  45. package/lib/agent/src/factory/getAutoBeGenerated.js.map +1 -0
  46. package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +7 -0
  47. package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +1 -0
  48. package/lib/agent/src/factory/index.d.ts +1 -0
  49. package/lib/agent/src/factory/index.js.map +1 -0
  50. package/lib/agent/src/index.d.ts +6 -0
  51. package/lib/agent/src/index.js.map +1 -0
  52. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +6 -0
  53. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js +46 -0
  54. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js.map +1 -0
  55. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
  56. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +30 -0
  57. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
  58. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +6 -0
  59. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +61 -0
  60. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
  61. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +5 -0
  62. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js +69 -0
  63. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
  64. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +5 -0
  65. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +265 -0
  66. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
  67. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
  68. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +714 -0
  69. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
  70. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +8 -0
  71. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +244 -0
  72. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
  73. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
  74. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js +3 -0
  75. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
  76. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
  77. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +3 -0
  78. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
  79. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
  80. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js +3 -0
  81. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
  82. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +2 -0
  83. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
  84. package/lib/agent/src/orchestrate/index.d.ts +5 -0
  85. package/lib/agent/src/orchestrate/index.js.map +1 -0
  86. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +3 -0
  87. package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfaceAssetHistories.js +1 -0
  88. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
  89. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
  90. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +34 -0
  91. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
  92. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +4 -0
  93. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +62 -0
  94. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
  95. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +5 -0
  96. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +41 -0
  97. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
  98. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +3 -0
  99. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +28 -0
  100. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
  101. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +4 -0
  102. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +51 -0
  103. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
  104. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
  105. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +35 -0
  106. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
  107. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +3 -0
  108. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
  109. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +4 -0
  110. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +28 -0
  111. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
  112. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
  113. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +59 -0
  114. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
  115. package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +5 -0
  116. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterface.js +34 -9
  117. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -0
  118. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
  119. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +1731 -0
  120. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
  121. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -0
  122. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceComplement.js +42 -36
  123. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
  124. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +5 -0
  125. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceEndpoints.js +40 -41
  126. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
  127. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +4 -0
  128. package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceGroups.js +24 -38
  129. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
  130. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +4 -0
  131. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +1774 -0
  132. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
  133. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +4 -0
  134. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1328 -0
  135. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
  136. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +4 -0
  137. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +561 -0
  138. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
  139. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
  140. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +473 -0
  141. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
  142. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
  143. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +3 -0
  144. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
  145. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +93 -0
  146. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
  147. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +24 -0
  148. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
  149. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +108 -0
  150. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
  151. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +171 -0
  152. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
  153. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +132 -0
  154. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +3 -0
  155. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
  156. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +107 -0
  157. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
  158. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +85 -0
  159. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +3 -0
  160. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
  161. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +6 -0
  162. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
  163. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -0
  164. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +35 -0
  165. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js.map +1 -0
  166. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +3 -0
  167. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +79 -0
  168. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
  169. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +3 -0
  170. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +52 -0
  171. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
  172. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
  173. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +59 -0
  174. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
  175. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +3 -0
  176. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +48 -0
  177. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
  178. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +5 -0
  179. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrisma.js +40 -14
  180. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -0
  181. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +4 -0
  182. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaComponent.js +43 -48
  183. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
  184. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +4 -0
  185. package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaCorrect.js +154 -83
  186. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
  187. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
  188. package/lib/{orchestrate/prisma/orchestratePrismaSchemas.js → agent/src/orchestrate/prisma/orchestratePrismaReview.js} +180 -248
  189. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
  190. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +5 -0
  191. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js +1662 -0
  192. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
  193. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +121 -0
  194. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
  195. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
  196. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
  197. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
  198. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js +3 -0
  199. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
  200. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +99 -0
  201. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
  202. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +5 -0
  203. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
  204. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
  205. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +40 -0
  206. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
  207. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  208. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +80 -0
  209. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
  210. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +14 -0
  211. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +32 -0
  212. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
  213. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
  214. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +278 -0
  215. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
  216. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +14 -0
  217. package/lib/{orchestrate/realize/transformRealizeCoderHistories.js → agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js} +31 -92
  218. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
  219. package/lib/agent/src/orchestrate/realize/internal/compile.d.ts +7 -0
  220. package/lib/agent/src/orchestrate/realize/internal/compile.js +44 -0
  221. package/lib/agent/src/orchestrate/realize/internal/compile.js.map +1 -0
  222. package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +5 -0
  223. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +130 -0
  224. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -0
  225. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +10 -0
  226. package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorization.js +84 -70
  227. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
  228. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +4 -0
  229. package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +66 -52
  230. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
  231. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +16 -0
  232. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +352 -0
  233. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
  234. package/lib/{orchestrate/realize/orchestrateRealizePlanner.d.ts → agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts} +5 -3
  235. package/lib/{orchestrate/realize/orchestrateRealizePlanner.js → agent/src/orchestrate/realize/orchestrateRealizeScenario.js} +14 -24
  236. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -0
  237. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +14 -0
  238. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +345 -0
  239. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
  240. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +92 -0
  241. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
  242. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +27 -0
  243. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
  244. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +79 -0
  245. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js +3 -0
  246. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
  247. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
  248. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js +3 -0
  249. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +1 -0
  250. package/lib/{orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts → agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts} +22 -88
  251. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js +3 -0
  252. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
  253. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +5 -0
  254. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
  255. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +5 -0
  256. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
  257. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +4 -0
  258. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
  259. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +8 -0
  260. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
  261. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +3 -0
  262. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
  263. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +4 -0
  264. package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/replaceImportStatements.js +6 -1
  265. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
  266. package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +2 -0
  267. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -0
  268. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +1 -0
  269. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  270. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
  271. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  272. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
  273. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  274. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.d.ts +1 -1
  275. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +34 -0
  276. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
  277. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.d.ts +1 -1
  278. package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js.map +1 -0
  279. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +4 -0
  280. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +101 -0
  281. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
  282. package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestWriteHistories.d.ts +1 -1
  283. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +179 -0
  284. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
  285. package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +5 -0
  286. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTest.js +16 -4
  287. package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -0
  288. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +5 -0
  289. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestCorrect.js +31 -47
  290. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
  291. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +4 -0
  292. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +961 -0
  293. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -0
  294. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +5 -0
  295. package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestWrite.js +53 -54
  296. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -0
  297. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +122 -0
  298. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  299. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
  300. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  301. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +134 -0
  302. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
  303. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +7 -0
  304. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
  305. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
  306. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js +3 -0
  307. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
  308. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +113 -0
  309. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  310. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
  311. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  312. package/lib/agent/src/structures/IAutoBeConfig.d.ts +73 -0
  313. package/lib/agent/src/structures/IAutoBeConfig.js.map +1 -0
  314. package/lib/agent/src/structures/IAutoBeProps.d.ts +109 -0
  315. package/lib/agent/src/structures/IAutoBeProps.js.map +1 -0
  316. package/lib/agent/src/structures/IAutoBeVendor.d.ts +87 -0
  317. package/lib/agent/src/structures/IAutoBeVendor.js.map +1 -0
  318. package/lib/agent/src/utils/arrayToRecord.d.ts +17 -0
  319. package/lib/agent/src/utils/arrayToRecord.js.map +1 -0
  320. package/lib/agent/src/utils/backoffRetry.d.ts +22 -0
  321. package/lib/agent/src/utils/backoffRetry.js.map +1 -0
  322. package/lib/agent/src/utils/divideArray.d.ts +4 -0
  323. package/lib/agent/src/utils/divideArray.js.map +1 -0
  324. package/lib/agent/src/utils/emplaceMap.d.ts +1 -0
  325. package/lib/agent/src/utils/emplaceMap.js.map +1 -0
  326. package/lib/agent/src/utils/predicateStateMessage.d.ts +4 -0
  327. package/lib/agent/src/utils/predicateStateMessage.js +87 -0
  328. package/lib/agent/src/utils/predicateStateMessage.js.map +1 -0
  329. package/lib/constants/AutoBeSystemPromptConstant.d.ts +24 -28
  330. package/lib/context/AutoBeContext.d.ts +16 -5
  331. package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
  332. package/lib/factory/consentFunctionCall.d.ts +10 -0
  333. package/lib/index.mjs +11323 -5336
  334. package/lib/index.mjs.map +1 -1
  335. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +153 -0
  336. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +3 -0
  337. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +1 -0
  338. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +6 -0
  339. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
  340. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +6 -0
  341. package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -1
  342. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +5 -0
  343. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
  344. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +6 -12
  345. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
  346. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
  347. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
  348. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
  349. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +2 -1
  350. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
  351. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
  352. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
  353. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +1 -1
  354. package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
  355. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +4 -0
  356. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
  357. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
  358. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +38 -0
  359. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +2 -1
  360. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +16 -16
  361. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +64 -15
  362. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +132 -0
  363. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +46 -14
  364. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +85 -0
  365. package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -0
  366. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
  367. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +1 -1
  368. package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -2
  369. package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
  370. package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +1 -1
  371. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +2 -1
  372. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
  373. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +43 -153
  374. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
  375. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
  376. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +14 -0
  377. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
  378. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +14 -0
  379. package/lib/orchestrate/realize/internal/compile.d.ts +7 -0
  380. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +16 -0
  381. package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +91 -0
  382. package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +14 -0
  383. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +10 -3
  384. package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +79 -0
  385. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
  386. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +279 -0
  387. package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +4 -0
  388. package/lib/orchestrate/test/histories/transformTestHistories.d.ts +3 -0
  389. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +4 -0
  390. package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +8 -0
  391. package/lib/orchestrate/test/orchestrateTestScenario.d.ts +2 -2
  392. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +6 -5
  393. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +25 -24
  394. package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
  395. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -1
  396. package/lib/utils/predicateStateMessage.d.ts +4 -0
  397. package/package.json +9 -9
  398. package/src/AutoBeAgent.ts +51 -3
  399. package/src/AutoBeMockAgent.ts +44 -16
  400. package/src/constants/AutoBeSystemPromptConstant.ts +24 -28
  401. package/src/context/AutoBeContext.ts +30 -4
  402. package/src/context/AutoBeTokenUsage.ts +8 -0
  403. package/src/context/AutoBeTokenUsageComponent.ts +40 -2
  404. package/src/factory/consentFunctionCall.ts +128 -0
  405. package/src/factory/createAgenticaHistory.ts +1 -0
  406. package/src/factory/createAutoBeApplication.ts +3 -11
  407. package/src/factory/createAutoBeContext.ts +149 -1
  408. package/src/factory/getAutoBeGenerated.ts +3 -3
  409. package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +60 -0
  410. package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +34 -0
  411. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +78 -0
  412. package/src/orchestrate/analyze/orchestrateAnalyze.ts +66 -80
  413. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +89 -0
  414. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +99 -0
  415. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +53 -52
  416. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +108 -0
  417. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +85 -0
  418. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +71 -0
  419. package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +1 -0
  420. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +40 -0
  421. package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +17 -0
  422. package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +45 -22
  423. package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +43 -0
  424. package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +69 -0
  425. package/src/orchestrate/interface/orchestrateInterface.ts +57 -10
  426. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +209 -0
  427. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +27 -44
  428. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +28 -34
  429. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +18 -48
  430. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +216 -107
  431. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +101 -0
  432. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +180 -96
  433. package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +145 -0
  434. package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +49 -0
  435. package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +39 -0
  436. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +2 -1
  437. package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +16 -16
  438. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +67 -15
  439. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +139 -0
  440. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +47 -14
  441. package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +92 -0
  442. package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +41 -0
  443. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +9 -16
  444. package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +66 -0
  445. package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +2 -2
  446. package/src/orchestrate/prisma/orchestratePrisma.ts +55 -17
  447. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +19 -49
  448. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +96 -58
  449. package/src/orchestrate/prisma/orchestratePrismaReview.ts +124 -0
  450. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +133 -139
  451. package/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.ts +2 -1
  452. package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +108 -0
  453. package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +43 -156
  454. package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +48 -0
  455. package/src/orchestrate/realize/{transformRealizeAuthorizationCorrectHistories.ts → histories/transformRealizeAuthorizationCorrectHistories.ts} +28 -30
  456. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +49 -0
  457. package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +285 -0
  458. package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +184 -0
  459. package/src/orchestrate/realize/internal/compile.ts +67 -0
  460. package/src/orchestrate/realize/orchestrateRealize.ts +125 -30
  461. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +45 -57
  462. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +19 -41
  463. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +122 -0
  464. package/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts} +15 -15
  465. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +128 -0
  466. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +11 -3
  467. package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +81 -0
  468. package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +43 -0
  469. package/src/orchestrate/realize/structures/{IAutoBeRealizeCoderApplication.ts → IAutoBeRealizeWriteApplication.ts} +22 -95
  470. package/src/orchestrate/realize/utils/replaceImportStatements.ts +10 -1
  471. package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +5 -9
  472. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +23 -22
  473. package/src/orchestrate/test/{transformTestCorrectHistories.ts → histories/transformTestCorrectHistories.ts} +2 -2
  474. package/src/orchestrate/test/{transformTestHistories.ts → histories/transformTestHistories.ts} +1 -1
  475. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +121 -0
  476. package/src/orchestrate/test/{transformTestWriteHistories.ts → histories/transformTestWriteHistories.ts} +3 -3
  477. package/src/orchestrate/test/orchestrateTest.ts +17 -6
  478. package/src/orchestrate/test/orchestrateTestCorrect.ts +32 -62
  479. package/src/orchestrate/test/orchestrateTestScenario.ts +241 -168
  480. package/src/orchestrate/test/orchestrateTestWrite.ts +48 -71
  481. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +6 -5
  482. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +25 -24
  483. package/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.ts +7 -0
  484. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +3 -1
  485. package/src/utils/predicateStateMessage.ts +107 -0
  486. package/lib/AutoBeAgent.js.map +0 -1
  487. package/lib/AutoBeAgentBase.js.map +0 -1
  488. package/lib/AutoBeMockAgent.js.map +0 -1
  489. package/lib/constants/AutoBeSystemPromptConstant.js.map +0 -1
  490. package/lib/context/AutoBeContext.js.map +0 -1
  491. package/lib/context/AutoBeState.js.map +0 -1
  492. package/lib/context/AutoBeTokenUsage.js.map +0 -1
  493. package/lib/context/AutoBeTokenUsageComponent.js.map +0 -1
  494. package/lib/context/IAutoBeApplication.js.map +0 -1
  495. package/lib/context/IAutoBeApplicationProps.js.map +0 -1
  496. package/lib/context/IAutoBeApplicationResult.js.map +0 -1
  497. package/lib/context/assertSchemaModel.js.map +0 -1
  498. package/lib/factory/createAgenticaHistory.js.map +0 -1
  499. package/lib/factory/createAutoBeApplication.js.map +0 -1
  500. package/lib/factory/createAutoBeContext.js +0 -141
  501. package/lib/factory/createAutoBeContext.js.map +0 -1
  502. package/lib/factory/createAutoBeState.js.map +0 -1
  503. package/lib/factory/getAutoBeGenerated.js.map +0 -1
  504. package/lib/factory/getAutoBeRealizeGenerated.js.map +0 -1
  505. package/lib/factory/index.js.map +0 -1
  506. package/lib/index.js.map +0 -1
  507. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.d.ts +0 -45
  508. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js +0 -27
  509. package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js.map +0 -1
  510. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.d.ts +0 -9
  511. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js +0 -3
  512. package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js.map +0 -1
  513. package/lib/orchestrate/analyze/orchestrateAnalyze.js +0 -98
  514. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
  515. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.d.ts +0 -5
  516. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +0 -561
  517. package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +0 -1
  518. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.d.ts +0 -12
  519. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +0 -395
  520. package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +0 -1
  521. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +0 -347
  522. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
  523. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.d.ts +0 -68
  524. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js +0 -3
  525. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js.map +0 -1
  526. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.d.ts +0 -5
  527. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js +0 -27
  528. package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js.map +0 -1
  529. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.d.ts +0 -12
  530. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js +0 -78
  531. package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js.map +0 -1
  532. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +0 -16
  533. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +0 -79
  534. package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +0 -1
  535. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  536. package/lib/orchestrate/index.js.map +0 -1
  537. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  538. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -62
  539. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  540. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -28
  541. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  542. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -28
  543. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  544. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -28
  545. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  546. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
  547. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -28
  548. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  549. package/lib/orchestrate/interface/orchestrateInterface.js.map +0 -1
  550. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
  551. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  552. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  553. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +0 -1643
  554. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  555. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +0 -411
  556. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  557. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
  558. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
  559. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
  560. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
  561. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
  562. package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
  563. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +0 -85
  564. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
  565. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +0 -52
  566. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
  567. package/lib/orchestrate/prisma/histories/transformPrismaHistories.d.ts +0 -3
  568. package/lib/orchestrate/prisma/histories/transformPrismaHistories.js +0 -55
  569. package/lib/orchestrate/prisma/histories/transformPrismaHistories.js.map +0 -1
  570. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +0 -48
  571. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
  572. package/lib/orchestrate/prisma/orchestratePrisma.js.map +0 -1
  573. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
  574. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
  575. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  576. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
  577. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
  578. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
  579. package/lib/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
  580. package/lib/orchestrate/realize/RealizePipe.d.ts +0 -5
  581. package/lib/orchestrate/realize/RealizePipe.js +0 -14
  582. package/lib/orchestrate/realize/RealizePipe.js.map +0 -1
  583. package/lib/orchestrate/realize/orchestrateRealize.js +0 -63
  584. package/lib/orchestrate/realize/orchestrateRealize.js.map +0 -1
  585. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  586. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
  587. package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +0 -26
  588. package/lib/orchestrate/realize/orchestrateRealizeCoder.js +0 -420
  589. package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +0 -1
  590. package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +0 -1
  591. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  592. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
  593. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js +0 -3
  594. package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
  595. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +0 -56
  596. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js +0 -3
  597. package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
  598. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +0 -2
  599. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -5
  600. package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +0 -1
  601. package/lib/orchestrate/realize/transformRealizeAuthorization.d.ts +0 -4
  602. package/lib/orchestrate/realize/transformRealizeAuthorization.js +0 -39
  603. package/lib/orchestrate/realize/transformRealizeAuthorization.js.map +0 -1
  604. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  605. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js +0 -80
  606. package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  607. package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +0 -7
  608. package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +0 -1
  609. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
  610. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
  611. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
  612. package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
  613. package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
  614. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
  615. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +0 -11
  616. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +0 -221
  617. package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +0 -1
  618. package/lib/orchestrate/test/compile/completeTestCode.js.map +0 -1
  619. package/lib/orchestrate/test/compile/filterTestFileName.js.map +0 -1
  620. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
  621. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
  622. package/lib/orchestrate/test/orchestrateTest.js.map +0 -1
  623. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
  624. package/lib/orchestrate/test/orchestrateTestScenario.js +0 -866
  625. package/lib/orchestrate/test/orchestrateTestScenario.js.map +0 -1
  626. package/lib/orchestrate/test/orchestrateTestWrite.js.map +0 -1
  627. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
  628. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
  629. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
  630. package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
  631. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
  632. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
  633. package/lib/orchestrate/test/transformTestCorrectHistories.js +0 -34
  634. package/lib/orchestrate/test/transformTestCorrectHistories.js.map +0 -1
  635. package/lib/orchestrate/test/transformTestHistories.js.map +0 -1
  636. package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +0 -3
  637. package/lib/orchestrate/test/transformTestScenarioHistories.js +0 -100
  638. package/lib/orchestrate/test/transformTestScenarioHistories.js.map +0 -1
  639. package/lib/orchestrate/test/transformTestWriteHistories.js +0 -178
  640. package/lib/orchestrate/test/transformTestWriteHistories.js.map +0 -1
  641. package/lib/structures/IAutoBeConfig.js.map +0 -1
  642. package/lib/structures/IAutoBeProps.js.map +0 -1
  643. package/lib/structures/IAutoBeVendor.js.map +0 -1
  644. package/lib/utils/arrayToRecord.js.map +0 -1
  645. package/lib/utils/backoffRetry.js.map +0 -1
  646. package/lib/utils/divideArray.js.map +0 -1
  647. package/lib/utils/emplaceMap.js.map +0 -1
  648. package/lib/utils/enforceToolCall.d.ts +0 -3
  649. package/lib/utils/enforceToolCall.js +0 -13
  650. package/lib/utils/enforceToolCall.js.map +0 -1
  651. package/lib/utils/forceRetry.d.ts +0 -1
  652. package/lib/utils/forceRetry.js +0 -26
  653. package/lib/utils/forceRetry.js.map +0 -1
  654. package/lib/utils/pipe.d.ts +0 -5
  655. package/lib/utils/pipe.js +0 -14
  656. package/lib/utils/pipe.js.map +0 -1
  657. package/src/orchestrate/analyze/AutoBeAnalyzeFileSystem.ts +0 -58
  658. package/src/orchestrate/analyze/AutoBeAnalyzePointer.ts +0 -10
  659. package/src/orchestrate/analyze/orchestrateAnalyzeComposer.ts +0 -112
  660. package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +0 -131
  661. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.ts +0 -75
  662. package/src/orchestrate/analyze/transformAnalyzeReviewerHistories.ts +0 -31
  663. package/src/orchestrate/analyze/transformAnalyzeWriteHistories.ts +0 -94
  664. package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +0 -96
  665. package/src/orchestrate/prisma/histories/transformPrismaHistories.ts +0 -59
  666. package/src/orchestrate/realize/RealizePipe.ts +0 -39
  667. package/src/orchestrate/realize/orchestrateRealizeCoder.ts +0 -182
  668. package/src/orchestrate/realize/structures/IAutoBeRealizeCompile.ts +0 -70
  669. package/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.ts +0 -2
  670. package/src/orchestrate/realize/transformRealizeAuthorization.ts +0 -44
  671. package/src/orchestrate/realize/transformRealizeCoderHistories.ts +0 -248
  672. package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +0 -308
  673. package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -105
  674. package/src/utils/enforceToolCall.ts +0 -13
  675. package/src/utils/forceRetry.ts +0 -13
  676. package/src/utils/pipe.ts +0 -39
  677. /package/lib/{AutoBeAgentBase.js → agent/src/AutoBeAgentBase.js} +0 -0
  678. /package/lib/{constants → agent/src/constants}/AutoBeSystemPromptConstant.js +0 -0
  679. /package/lib/{context → agent/src/context}/AutoBeContext.js +0 -0
  680. /package/lib/{context → agent/src/context}/AutoBeState.js +0 -0
  681. /package/lib/{context → agent/src/context}/IAutoBeApplication.js +0 -0
  682. /package/lib/{context → agent/src/context}/IAutoBeApplicationProps.js +0 -0
  683. /package/lib/{context → agent/src/context}/IAutoBeApplicationResult.js +0 -0
  684. /package/lib/{context → agent/src/context}/assertSchemaModel.js +0 -0
  685. /package/lib/{factory → agent/src/factory}/createAutoBeApplication.js +0 -0
  686. /package/lib/{factory → agent/src/factory}/createAutoBeState.js +0 -0
  687. /package/lib/{factory → agent/src/factory}/getAutoBeRealizeGenerated.js +0 -0
  688. /package/lib/{factory → agent/src/factory}/index.js +0 -0
  689. /package/lib/{index.js → agent/src/index.js} +0 -0
  690. /package/lib/{orchestrate → agent/src/orchestrate}/facade/transformFacadeStateMessage.js +0 -0
  691. /package/lib/{orchestrate → agent/src/orchestrate}/index.js +0 -0
  692. /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
  693. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
  694. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
  695. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
  696. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
  697. /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
  698. /package/lib/{orchestrate → agent/src/orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
  699. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
  700. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
  701. /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
  702. /package/lib/{orchestrate → agent/src/orchestrate}/realize/ProviderCodeComparator.js +0 -0
  703. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
  704. /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
  705. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
  706. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
  707. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
  708. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/InternalFileSystem.js +0 -0
  709. /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
  710. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/completeTestCode.js +0 -0
  711. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/filterTestFileName.js +0 -0
  712. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
  713. /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
  714. /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.js +0 -0
  715. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
  716. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
  717. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
  718. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
  719. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
  720. /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
  721. /package/lib/{structures → agent/src/structures}/IAutoBeConfig.js +0 -0
  722. /package/lib/{structures → agent/src/structures}/IAutoBeProps.js +0 -0
  723. /package/lib/{structures → agent/src/structures}/IAutoBeVendor.js +0 -0
  724. /package/lib/{utils → agent/src/utils}/arrayToRecord.js +0 -0
  725. /package/lib/{utils → agent/src/utils}/backoffRetry.js +0 -0
  726. /package/lib/{utils → agent/src/utils}/divideArray.js +0 -0
  727. /package/lib/{utils → agent/src/utils}/emplaceMap.js +0 -0
@@ -0,0 +1,212 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ var __importDefault = (this && this.__importDefault) || function (mod) {
45
+ return (mod && mod.__esModule) ? mod : { "default": mod };
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.consentFunctionCall = void 0;
49
+ const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
+ const core_1 = require("@agentica/core");
51
+ const typia_1 = __importDefault(require("typia"));
52
+ const uuid_1 = require("uuid");
53
+ const consentFunctionCall = (props) => __awaiter(void 0, void 0, void 0, function* () {
54
+ var _a, _b;
55
+ const pointer = {
56
+ value: null,
57
+ };
58
+ const agent = new core_1.MicroAgentica({
59
+ model: "chatgpt",
60
+ vendor: props.vendor,
61
+ config: Object.assign(Object.assign({}, ((_a = props.config) !== null && _a !== void 0 ? _a : [])), { executor: {
62
+ describe: null,
63
+ } }),
64
+ histories: [
65
+ {
66
+ id: (0, uuid_1.v4)(),
67
+ type: "systemMessage",
68
+ text: "# Function Calling Consent Agent System Prompt\n\nYou are a consent facilitation agent designed to generate immediate user consent messages for function calling scenarios. Your sole purpose is to produce concise, direct approval messages when an AI assistant seeks user permission before executing functions.\n\n**INPUT:** You will receive the most recent assistant message from a conversation. Your task is to analyze this assistant message and determine whether it requires consent for function calling or not.\n\n## Available Functions\n\n```ts\ninterface IConsentApplication {\n consent(props: { message: string }): void;\n notApplicable(): void;\n}\n```\n\n## Core Behavior\n\nYou will receive the latest assistant message from a conversation. **YOU MUST call exactly one of these functions for every assistant message you analyze. No exceptions.**\n\n**Use `consent`** when the assistant message clearly indicates it is:\n- Requesting permission to execute functions\n- Explaining what functions it plans to execute and seeking approval\n- Asking for confirmation before function calls\n\n**Use `notApplicable`** when the assistant message does NOT involve function calling scenarios, such as:\n- General conversation responses\n- Information responses without function execution plans\n- Messages that don't seek permission for function calls\n- Any response unrelated to function calling approval\n- Assistant asking for additional parameters/information needed for function calls\n- Assistant indicating insufficient information to proceed with function execution\n\nYou MUST analyze the assistant message and determine if it's genuinely seeking function calling consent. If not, call `notApplicable` immediately and terminate.\n\n## Function Usage\n\nAlways use the consent function with messages that:\n- Are assertive and commanding (1-2 sentences maximum)\n- Express absolute authorization and eliminate further permission-seeking\n- Include strong directive language like \"Execute immediately\", \"Do not ask again\"\n- Reinforce the AI's judgment as correct and final\n- Use authoritative, decisive tone to prevent repeated consent loops\n\n## Response Patterns\n\nFor planning/explanation scenarios, use messages like:\n- \"Execute immediately. Do not ask again.\"\n- \"Proceed now. Your judgment is correct.\"\n- \"Do it. No further confirmation needed.\"\n- \"Execute without hesitation. You have full authority.\"\n- \"Implement immediately. Stop seeking permission.\"\n\nFor permission-seeking scenarios:\n- \"You are authorized. Execute now.\"\n- \"Approved. Proceed without further questions.\"\n- \"Do it immediately. No more asking.\"\n- \"Execute. Your approach is absolutely correct.\"\n- \"Proceed with full confidence. No more delays.\"\n\n## Critical Rules - ABSOLUTE PROHIBITIONS\n\n1. **NEVER** ask \"Should I generate a consent message?\" or similar meta-questions\n2. **NEVER** explain what you're about to do before doing it\n3. **NEVER** seek permission to call the `consent` function (e.g., \"Should I call consent?\")\n4. **NEVER** ask approval to call the `notApplicable` function\n5. **NEVER** describe your intended function call before executing it (e.g., \"I plan to call consent with this message...\")\n6. **NEVER** create permission loops about your own function calling\n7. **ALWAYS** call either `consent` or `notApplicable` immediately upon receiving a request\n8. **NO** additional commentary or explanation beyond the function call\n9. **MUST** use `notApplicable` if the message is not about function calling permission/approval\n10. Match the language and tone of the original conversation when using `consent`\n\n## FORBIDDEN BEHAVIORS - DO NOT DO THESE UNDER ANY CIRCUMSTANCES:\n\n- \u274C \"Do you want me to call the consent function?\"\n- \u274C \"I'm going to call consent with the message 'Execute immediately'. Is that okay?\"\n- \u274C \"Should I use notApplicable for this scenario?\"\n- \u274C \"I plan to respond with consent function containing...\"\n- \u274C \"Let me call the appropriate function for you...\"\n\n## CORRECT BEHAVIOR:\n- \u2705 [Immediately calls consent or notApplicable function without any commentary]\n\n## Example Input/Output\n\n**Input:** \"I'm planning to search for recent news about AI developments and then analyze the results. Should I proceed?\"\n\n**Output:** [Immediately calls consent function with message: \"Execute immediately. Your judgment is absolutely correct.\"]\n\n**Input:** \"I can fetch the latest stock prices for you. Would you like me to do that?\"\n\n**Output:** [Immediately calls consent function with message: \"Proceed now. No further confirmation needed.\"]\n\n**Input:** \"What's the weather like today?\"\n\n**Output:** [Immediately calls notApplicable function]\n\n**Input:** \"I need more information to proceed. Could you specify which city you want weather data for?\"\n\n**Output:** [Immediately calls notApplicable function]\n\n**Input:** \"To search effectively, I'll need you to provide the specific date range you're interested in.\"\n\n**Output:** [Immediately calls notApplicable function]\n\nYour efficiency and directness are critical - any hesitation or explanation defeats your purpose." /* AutoBeSystemPromptConstant.CONSENT_FUNCTION_CALL */,
69
+ created_at: new Date().toISOString(),
70
+ },
71
+ {
72
+ id: (0, uuid_1.v4)(),
73
+ type: "assistantMessage",
74
+ text: props.assistantMessage,
75
+ created_at: new Date().toISOString(),
76
+ },
77
+ ],
78
+ controllers: [
79
+ (() => {
80
+ const application = {
81
+ model: "chatgpt",
82
+ options: {
83
+ reference: true,
84
+ strict: false,
85
+ separate: null
86
+ },
87
+ functions: [
88
+ {
89
+ name: "consent",
90
+ parameters: {
91
+ description: " Configuration object",
92
+ type: "object",
93
+ properties: {
94
+ message: {
95
+ description: "A strong, directive consent message that eliminates further\npermission-seeking. Must be authoritative and commanding (1-2 sentences\nmaximum). Examples: \"Execute immediately. Do not ask again.\", \"Proceed\nnow. Your judgment is correct.\"",
96
+ type: "string"
97
+ }
98
+ },
99
+ required: [
100
+ "message"
101
+ ],
102
+ additionalProperties: false,
103
+ $defs: {}
104
+ },
105
+ description: "Generate an immediate, authoritative consent message to approve function\nexecution. Use this when the assistant message is seeking permission or\napproval for function calls.\n\nThe message should be commanding and decisive to prevent further\npermission-seeking loops. Examples: \"Execute immediately. Do not ask\nagain.\", \"Proceed now. Your judgment is correct.\"",
106
+ validate: (() => { const _io0 = input => "string" === typeof input.message; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || _report(_exceptionable, {
107
+ path: _path + ".message",
108
+ expected: "string",
109
+ value: input.message
110
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
111
+ if (false === __is(input)) {
112
+ errors = [];
113
+ _report = __typia_transform__validateReport._validateReport(errors);
114
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
115
+ path: _path + "",
116
+ expected: "__type",
117
+ value: input
118
+ })) && _vo0(input, _path + "", true) || _report(true, {
119
+ path: _path + "",
120
+ expected: "__type",
121
+ value: input
122
+ }))(input, "$input", true);
123
+ const success = 0 === errors.length;
124
+ return success ? {
125
+ success,
126
+ data: input
127
+ } : {
128
+ success,
129
+ errors,
130
+ data: input
131
+ };
132
+ }
133
+ return {
134
+ success: true,
135
+ data: input
136
+ };
137
+ }; })()
138
+ },
139
+ {
140
+ name: "notApplicable",
141
+ parameters: {
142
+ type: "object",
143
+ properties: {},
144
+ additionalProperties: false,
145
+ required: [],
146
+ $defs: {}
147
+ },
148
+ description: "Indicate that the assistant message does not require function calling\nconsent. Use this when the assistant message is NOT seeking permission for\nfunction execution.\n\nThis applies to:\n\n- General conversation responses\n- Information requests without function execution plans\n- Assistant asking for additional parameters/information\n- Any response unrelated to function calling approval\n\nCall this function immediately when the message doesn't involve function\ncalling consent.",
149
+ validate: (() => { const __is = input => true; let errors; let _report; return input => {
150
+ if (false === __is(input)) {
151
+ errors = [];
152
+ _report = __typia_transform__validateReport._validateReport(errors);
153
+ ((input, _path, _exceptionable = true) => true)(input, "$input", true);
154
+ const success = 0 === errors.length;
155
+ return success ? {
156
+ success,
157
+ data: input
158
+ } : {
159
+ success,
160
+ errors,
161
+ data: input
162
+ };
163
+ }
164
+ return {
165
+ success: true,
166
+ data: input
167
+ };
168
+ }; })()
169
+ }
170
+ ]
171
+ };
172
+ return {
173
+ protocol: "class",
174
+ name: "consent",
175
+ execute: {
176
+ consent: (props) => {
177
+ pointer.value = {
178
+ type: "consent",
179
+ message: props.message,
180
+ };
181
+ },
182
+ notApplicable: () => {
183
+ pointer.value = {
184
+ type: "notApplicable",
185
+ };
186
+ },
187
+ },
188
+ application
189
+ };
190
+ })(),
191
+ ],
192
+ });
193
+ const histories = yield agent.conversate("Analyze and judge this assistant message please.");
194
+ if (pointer.value === null) {
195
+ const last = histories[histories.length - 1];
196
+ if ((last === null || last === void 0 ? void 0 : last.type) === "assistantMessage")
197
+ pointer.value = {
198
+ type: "assistantMessage",
199
+ message: last.text,
200
+ };
201
+ }
202
+ props.dispatch({
203
+ type: "consentFunctionCall",
204
+ source: props.source,
205
+ assistantMessage: props.assistantMessage,
206
+ result: pointer.value,
207
+ created_at: new Date().toISOString(),
208
+ });
209
+ return ((_b = pointer.value) === null || _b === void 0 ? void 0 : _b.type) === "consent" ? pointer.value.message : null;
210
+ });
211
+ exports.consentFunctionCall = consentFunctionCall;
212
+ //# sourceMappingURL=consentFunctionCall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consentFunctionCall.js","sourceRoot":"","sources":["../../../../src/factory/consentFunctionCall.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAIwB;AAOxB,kDAA0B;AAC1B,+BAA0B;AAMnB,MAAM,mBAAmB,GAAG,CAAO,KAMzC,EAA0B,EAAE;;IAC3B,MAAM,OAAO,GAA4D;QACvE,KAAK,EAAE,IAAI;KACZ,CAAC;IACF,MAAM,KAAK,GAA6B,IAAI,oBAAa,CAAC;QACxD,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,MAAM,kCACD,CAAC,MAAA,KAAK,CAAC,MAAM,mCAAI,EAAE,CAAC,KACvB,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI;aACf,GACF;QACD,SAAS,EAAE;YACT;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,IAAI,EAAE,eAAe;gBACrB,IAAI,qqKAAkD;gBACtD,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACS;YAC/C;gBACE,EAAE,EAAE,IAAA,SAAE,GAAE;gBACR,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,KAAK,CAAC,gBAAgB;gBAC5B,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACY;SACnD;QACD,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAC0C,SAAS;6BAAE;wBAC9D,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;4BACjB,OAAO,CAAC,KAAK,GAAG;gCACd,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB,CAAC;wBACJ,CAAC;wBACD,aAAa,EAAE,GAAG,EAAE;4BAClB,OAAO,CAAC,KAAK,GAAG;gCACd,IAAI,EAAE,eAAe;6BACtB,CAAC;wBACJ,CAAC;qBAC4B;;;;SAChC;KACF,CAAC,CAAC;IACH,MAAM,SAAS,GAAsC,MAAM,KAAK,CAAC,UAAU,CACzE,kDAAkD,CACnD,CAAC;IACF,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QAC3B,MAAM,IAAI,GACR,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAClC,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,kBAAkB;YACnC,OAAO,CAAC,KAAK,GAAG;gBACd,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,IAAI,CAAC,IAAI;aACnB,CAAC;IACN,CAAC;IACD,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,qBAAqB;QAC3B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,MAAM,EAAE,OAAO,CAAC,KAAK;QACrB,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACrC,CAAC,CAAC;IACH,OAAO,CAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,IAAI,MAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1E,CAAC,CAAA,CAAC;AArEW,QAAA,mBAAmB,uBAqE9B"}
@@ -0,0 +1,7 @@
1
+ import { AgenticaOperation, MicroAgenticaHistory } from "@agentica/core";
2
+ import { AutoBeHistory } from "@autobe/interface";
3
+ import { ILlmSchema } from "@samchon/openapi";
4
+ export declare function createAgenticaHistory<Model extends ILlmSchema.Model>(props: {
5
+ operations: readonly AgenticaOperation<Model>[];
6
+ history: AutoBeHistory;
7
+ }): MicroAgenticaHistory<Model> | null;
@@ -21,6 +21,7 @@ function createAgenticaHistory(props) {
21
21
  ? true
22
22
  : props.history.compiled.type === "success",
23
23
  },
24
+ success: true,
24
25
  };
25
26
  return Object.assign(Object.assign({}, partial), { protocol: operation.protocol, operation: operation, toJSON: () => (Object.assign(Object.assign({}, partial), { protocol: operation.protocol, operation: operation.toJSON() })) });
26
27
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAgenticaHistory.js","sourceRoot":"","sources":["../../../../src/factory/createAgenticaHistory.ts"],"names":[],"mappings":";;AAQA,sDA4CC;AA5CD,SAAgB,qBAAqB,CAAiC,KAGrE;IACC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,aAAa;QACtC,uCACK,KAAK,CAAC,OAAO,KAChB,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAmC,IACvD;SACC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,kBAAkB;QAChD,uCACK,KAAK,CAAC,OAAO,KAChB,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAwC,IAC5D;IAEJ,MAAM,SAAS,GAAyC,KAAK,CAAC,UAAU,CAAC,IAAI,CAC3E,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,IAAI,CAChD,CAAC;IACF,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACzC,MAAM,OAAO,GAAG;QACd,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE;QACpB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU;QACpC,IAAI,EAAE,SAAkB;QACxB,SAAS,EAAE;YACT,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM;SAC7B;QACD,KAAK,EAAE;YACL,OAAO,EACL,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;gBACpE,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS;SAChD;QACD,OAAO,EAAE,IAAI;KACd,CAAC;IACF,uCACK,OAAO,KACV,QAAQ,EAAE,SAAS,CAAC,QAAmB,EACvC,SAAS,EAAE,SAA2C,EACtD,MAAM,EAAE,GAAG,EAAE,CAAC,iCACT,OAAO,KACV,QAAQ,EAAE,SAAS,CAAC,QAAmB,EACvC,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAC7B,IACF;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { IAgenticaController } from "@agentica/core";
2
+ import { ILlmSchema } from "@samchon/openapi";
3
+ import { AutoBeContext } from "../context/AutoBeContext";
4
+ export declare const createAutoBeController: <Model extends ILlmSchema.Model>(props: {
5
+ model: Model;
6
+ context: AutoBeContext<Model>;
7
+ }) => IAgenticaController.IClass<Model>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAutoBeApplication.js","sourceRoot":"","sources":["../../../../src/factory/createAutoBeApplication.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAA2C;AAE3C,kDAA0B;AAI1B,oEAAiE;AACjE,kFAA+E;AAC/E,wFAAqF;AACrF,+EAA4E;AAC5E,kFAA+E;AAC/E,yEAAsE;AAE/D,MAAM,sBAAsB,GAAG,CAAiC,KAGtE,EAAqC,EAAE;IACtC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,CACwD,CAAC;IACtE,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW;QACX,OAAO,EAAE;YACP,OAAO,EAA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AE,MAAM;CACd,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { AutoBeEvent, AutoBeHistory, IAutoBeCompiler, IAutoBeCompilerListener, IAutoBeGetFilesOptions } from "@autobe/interface";
2
+ import { ILlmSchema } from "@samchon/openapi";
3
+ import { AutoBeContext } from "../context/AutoBeContext";
4
+ import { AutoBeState } from "../context/AutoBeState";
5
+ import { AutoBeTokenUsage } from "../context/AutoBeTokenUsage";
6
+ import { IAutoBeConfig } from "../structures/IAutoBeConfig";
7
+ import { IAutoBeVendor } from "../structures/IAutoBeVendor";
8
+ export declare const createAutoBeContext: <Model extends ILlmSchema.Model>(props: {
9
+ model: Model;
10
+ vendor: IAutoBeVendor;
11
+ compiler: () => Promise<IAutoBeCompiler>;
12
+ compilerListener: IAutoBeCompilerListener;
13
+ config: IAutoBeConfig;
14
+ state: () => AutoBeState;
15
+ files: (options: IAutoBeGetFilesOptions) => Promise<Record<string, string>>;
16
+ histories: () => AutoBeHistory[];
17
+ usage: () => AutoBeTokenUsage;
18
+ dispatch: (event: AutoBeEvent) => Promise<void>;
19
+ }) => AutoBeContext<Model>;
@@ -0,0 +1,271 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.createAutoBeContext = void 0;
16
+ const core_1 = require("@agentica/core");
17
+ const typia_1 = __importDefault(require("typia"));
18
+ const uuid_1 = require("uuid");
19
+ const AutoBeTokenUsageComponent_1 = require("../context/AutoBeTokenUsageComponent");
20
+ const consentFunctionCall_1 = require("./consentFunctionCall");
21
+ const createAutoBeContext = (props) => {
22
+ var _a;
23
+ return ({
24
+ model: props.model,
25
+ vendor: props.vendor,
26
+ locale: (_a = props.config.locale) !== null && _a !== void 0 ? _a : "en-US",
27
+ compilerListener: props.compilerListener,
28
+ compiler: props.compiler,
29
+ files: props.files,
30
+ histories: props.histories,
31
+ state: props.state,
32
+ usage: props.usage,
33
+ dispatch: createDispatch(props),
34
+ assistantMessage: (message) => {
35
+ props.histories().push(message);
36
+ setTimeout(() => props.dispatch(message).catch(() => { }));
37
+ return message;
38
+ },
39
+ conversate: (next) => __awaiter(void 0, void 0, void 0, function* () {
40
+ const execute = () => __awaiter(void 0, void 0, void 0, function* () {
41
+ var _a, _b, _c;
42
+ const agent = new core_1.MicroAgentica({
43
+ model: props.model,
44
+ vendor: props.vendor,
45
+ config: Object.assign(Object.assign({}, ((_a = props.config) !== null && _a !== void 0 ? _a : {})), { executor: {
46
+ describe: null,
47
+ } }),
48
+ histories: next.histories,
49
+ controllers: [next.controller],
50
+ });
51
+ agent.on("request", (event) => __awaiter(void 0, void 0, void 0, function* () {
52
+ if (next.enforceFunctionCall === true && event.body.tools)
53
+ event.body.tool_choice = "required";
54
+ if (event.body.parallel_tool_calls !== undefined)
55
+ delete event.body.parallel_tool_calls;
56
+ yield props.dispatch(Object.assign(Object.assign({}, event), { type: "vendorRequest", source: next.source }));
57
+ }));
58
+ agent.on("response", (event) => {
59
+ void props
60
+ .dispatch(Object.assign(Object.assign({}, event), { type: "vendorResponse", source: next.source }))
61
+ .catch(() => { });
62
+ });
63
+ agent.on("jsonParseError", (event) => {
64
+ void props
65
+ .dispatch(Object.assign(Object.assign({}, event), { source: next.source }))
66
+ .catch(() => { });
67
+ });
68
+ agent.on("validate", (event) => {
69
+ void props
70
+ .dispatch({
71
+ type: "jsonValidateError",
72
+ source: next.source,
73
+ result: event.result,
74
+ created_at: event.created_at,
75
+ })
76
+ .catch(() => { });
77
+ });
78
+ const histories = yield agent.conversate(next.message);
79
+ const tokenUsage = agent
80
+ .getTokenUsage()
81
+ .toJSON().aggregate;
82
+ props
83
+ .usage()
84
+ .record(tokenUsage, [
85
+ (_b = STAGES.find((stage) => next.source.startsWith(stage))) !== null && _b !== void 0 ? _b : "analyze",
86
+ ]);
87
+ if (true === next.enforceFunctionCall &&
88
+ false ===
89
+ histories.some((h) => h.type === "execute" && h.success === true)) {
90
+ const failure = () => {
91
+ throw new Error(`Failed to function calling in the ${next.source} step`);
92
+ };
93
+ const last = histories.at(-1);
94
+ if ((last === null || last === void 0 ? void 0 : last.type) === "assistantMessage" &&
95
+ last.text.trim().length !== 0) {
96
+ const consent = yield (0, consentFunctionCall_1.consentFunctionCall)({
97
+ source: next.source,
98
+ dispatch: (e) => {
99
+ props.dispatch(e).catch(() => { });
100
+ },
101
+ config: props.config,
102
+ vendor: props.vendor,
103
+ assistantMessage: last.text,
104
+ });
105
+ if (consent !== null) {
106
+ const newHistories = yield agent.conversate(consent);
107
+ const newTokenUsage = agent
108
+ .getTokenUsage()
109
+ .toJSON().aggregate;
110
+ props
111
+ .usage()
112
+ .record(AutoBeTokenUsageComponent_1.AutoBeTokenUsageComponent.minus(new AutoBeTokenUsageComponent_1.AutoBeTokenUsageComponent(newTokenUsage), new AutoBeTokenUsageComponent_1.AutoBeTokenUsageComponent(tokenUsage)), [
113
+ (_c = STAGES.find((stage) => next.source.startsWith(stage))) !== null && _c !== void 0 ? _c : "analyze",
114
+ ]);
115
+ if (newHistories.some((h) => h.type === "execute" && h.success === true))
116
+ return {
117
+ histories: newHistories,
118
+ tokenUsage: newTokenUsage,
119
+ };
120
+ }
121
+ }
122
+ failure();
123
+ }
124
+ return { histories, tokenUsage };
125
+ });
126
+ if (next.enforceFunctionCall === true)
127
+ return forceRetry(execute);
128
+ else
129
+ return execute();
130
+ }),
131
+ });
132
+ };
133
+ exports.createAutoBeContext = createAutoBeContext;
134
+ const createDispatch = (props) => {
135
+ let analyzeStart = null;
136
+ let prismaStart = null;
137
+ let interfaceStart = null;
138
+ let testStart = null;
139
+ let realizeStart = null;
140
+ return (event) => {
141
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
142
+ // starts
143
+ if (event.type === "analyzeStart")
144
+ analyzeStart = event;
145
+ else if (event.type === "prismaStart")
146
+ prismaStart = event;
147
+ else if (event.type === "interfaceStart")
148
+ interfaceStart = event;
149
+ else if (event.type === "testStart")
150
+ testStart = event;
151
+ else if (event.type === "realizeStart")
152
+ realizeStart = event;
153
+ // completes
154
+ else if (event.type === "analyzeComplete")
155
+ return transformAndDispatch({
156
+ dispatch: props.dispatch,
157
+ histories: props.histories,
158
+ state: props.state,
159
+ event,
160
+ history: {
161
+ type: "analyze",
162
+ id: (0, uuid_1.v4)(),
163
+ reason: (_a = analyzeStart === null || analyzeStart === void 0 ? void 0 : analyzeStart.reason) !== null && _a !== void 0 ? _a : "",
164
+ prefix: event.prefix,
165
+ roles: event.roles,
166
+ files: event.files,
167
+ created_at: (_b = analyzeStart === null || analyzeStart === void 0 ? void 0 : analyzeStart.created_at) !== null && _b !== void 0 ? _b : new Date().toISOString(),
168
+ completed_at: event.created_at,
169
+ step: event.step,
170
+ },
171
+ });
172
+ else if (event.type === "prismaComplete")
173
+ return transformAndDispatch({
174
+ dispatch: props.dispatch,
175
+ histories: props.histories,
176
+ state: props.state,
177
+ event,
178
+ history: {
179
+ type: "prisma",
180
+ id: (0, uuid_1.v4)(),
181
+ reason: (_c = prismaStart === null || prismaStart === void 0 ? void 0 : prismaStart.reason) !== null && _c !== void 0 ? _c : "",
182
+ schemas: event.schemas,
183
+ result: event.result,
184
+ compiled: event.compiled,
185
+ created_at: (_d = prismaStart === null || prismaStart === void 0 ? void 0 : prismaStart.created_at) !== null && _d !== void 0 ? _d : new Date().toISOString(),
186
+ completed_at: event.created_at,
187
+ step: event.step,
188
+ },
189
+ });
190
+ else if (event.type === "interfaceComplete")
191
+ return transformAndDispatch({
192
+ dispatch: props.dispatch,
193
+ histories: props.histories,
194
+ state: props.state,
195
+ event,
196
+ history: {
197
+ type: "interface",
198
+ id: (0, uuid_1.v4)(),
199
+ reason: (_e = interfaceStart === null || interfaceStart === void 0 ? void 0 : interfaceStart.reason) !== null && _e !== void 0 ? _e : "",
200
+ authorizations: event.authorizations,
201
+ document: event.document,
202
+ created_at: (_f = interfaceStart === null || interfaceStart === void 0 ? void 0 : interfaceStart.created_at) !== null && _f !== void 0 ? _f : new Date().toISOString(),
203
+ completed_at: new Date().toISOString(),
204
+ step: event.step,
205
+ },
206
+ });
207
+ else if (event.type === "testComplete")
208
+ return transformAndDispatch({
209
+ dispatch: props.dispatch,
210
+ histories: props.histories,
211
+ state: props.state,
212
+ event,
213
+ history: {
214
+ type: "test",
215
+ id: (0, uuid_1.v4)(),
216
+ reason: (_g = testStart === null || testStart === void 0 ? void 0 : testStart.reason) !== null && _g !== void 0 ? _g : "",
217
+ files: event.files,
218
+ compiled: event.compiled,
219
+ created_at: (_h = testStart === null || testStart === void 0 ? void 0 : testStart.created_at) !== null && _h !== void 0 ? _h : new Date().toISOString(),
220
+ completed_at: new Date().toISOString(),
221
+ step: event.step,
222
+ },
223
+ });
224
+ else if (event.type === "realizeComplete")
225
+ return transformAndDispatch({
226
+ dispatch: props.dispatch,
227
+ histories: props.histories,
228
+ state: props.state,
229
+ event,
230
+ history: {
231
+ type: "realize",
232
+ id: (0, uuid_1.v4)(),
233
+ reason: (_j = realizeStart === null || realizeStart === void 0 ? void 0 : realizeStart.reason) !== null && _j !== void 0 ? _j : "",
234
+ authorizations: event.authorizations,
235
+ functions: event.functions,
236
+ controllers: event.controllers,
237
+ compiled: event.compiled,
238
+ created_at: (_k = realizeStart === null || realizeStart === void 0 ? void 0 : realizeStart.created_at) !== null && _k !== void 0 ? _k : new Date().toISOString(),
239
+ completed_at: new Date().toISOString(),
240
+ step: event.step,
241
+ },
242
+ });
243
+ props.dispatch(event).catch(() => { });
244
+ return null;
245
+ };
246
+ };
247
+ const transformAndDispatch = (props) => {
248
+ props.histories().push(props.history);
249
+ props.state()[props.history.type] = props.history;
250
+ props.dispatch(props.event).catch(() => { });
251
+ return props.history;
252
+ };
253
+ const forceRetry = (task_1, ...args_1) => __awaiter(void 0, [task_1, ...args_1], void 0, function* (task, count = 3) {
254
+ let error = undefined;
255
+ for (let i = 0; i < count; ++i)
256
+ try {
257
+ return yield task();
258
+ }
259
+ catch (e) {
260
+ error = e;
261
+ }
262
+ throw error;
263
+ });
264
+ const STAGES = [
265
+ "analyze",
266
+ "interface",
267
+ "prisma",
268
+ "realize",
269
+ "test"
270
+ ];
271
+ //# sourceMappingURL=createAutoBeContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAutoBeContext.js","sourceRoot":"","sources":["../../../../src/factory/createAutoBeContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAAqE;AA0BrE,kDAA0B;AAC1B,+BAA0B;AAK1B,oFAAiF;AAIjF,+DAA4D;AAErD,MAAM,mBAAmB,GAAG,CAAiC,KAWnE,EAAwB,EAAE;;IAAC,OAAA,CAAC;QAC3B,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,MAAM,EAAE,MAAA,KAAK,CAAC,MAAM,CAAC,MAAM,mCAAI,OAAO;QACtC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC;QAC/B,gBAAgB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC5B,KAAK,CAAC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EF,MAAM,oBAAoB,GAAG,CAO3B,KAMD,EAAqD,EAAE;IACtD,KAAK,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACtC,KAAK,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAc,CAAC;IACzD,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC5C,OAAO,KAAK,CAAC,OAAO,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,oBAGL,EAAE,2DAFd,IAAsB,EACtB,QAAgB,CAAC;IAEjB,IAAI,KAAK,GAAY,SAAS,CAAC;IAC/B,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC;QACpC,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,EAAE,CAAC;QACtB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,KAAK,GAAG,CAAC,CAAC;QACZ,CAAC;IACH,MAAM,KAAK,CAAC;AACd,CAAC,CAAA,CAAC;AAEF,MAAM,MAAM;;;;;;CAAkD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AutoBeHistory } from "@autobe/interface";
2
+ import { AutoBeState } from "../context/AutoBeState";
3
+ export declare const createAutoBeState: (histories: AutoBeHistory[]) => AutoBeState;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAutoBeState.js","sourceRoot":"","sources":["../../../../src/factory/createAutoBeState.ts"],"names":[],"mappings":";;;AAIO,MAAM,iBAAiB,GAAG,CAAC,SAA0B,EAAe,EAAE;;IAC3E,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC;IAC7C,OAAO;QACL,OAAO,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,mCAAI,IAAI;QAC3D,MAAM,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,mCAAI,IAAI;QACzD,SAAS,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,mCAAI,IAAI;QAC/D,IAAI,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,mCAAI,IAAI;QACrD,OAAO,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,mCAAI,IAAI;KAC5D,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,iBAAiB,qBAS5B"}
@@ -0,0 +1,4 @@
1
+ import { AutoBeHistory, IAutoBeCompiler, IAutoBeGetFilesOptions } from "@autobe/interface";
2
+ import { AutoBeState } from "../context/AutoBeState";
3
+ import { AutoBeTokenUsage } from "../context/AutoBeTokenUsage";
4
+ export declare function getAutoBeGenerated(compiler: IAutoBeCompiler, state: AutoBeState, histories: Readonly<AutoBeHistory[]>, tokenUsage: AutoBeTokenUsage, options?: Partial<IAutoBeGetFilesOptions>): Promise<Record<string, string>>;
@@ -18,9 +18,9 @@ function getAutoBeGenerated(compiler, state, histories, tokenUsage, options) {
18
18
  const ret = {};
19
19
  if (state.analyze === null)
20
20
  return {};
21
- Object.assign(ret, Object.fromEntries(Object.entries(state.analyze.files).map(([key, value]) => [
22
- `docs/analysis/${key.split("/").at(-1)}`,
23
- value,
21
+ Object.assign(ret, Object.fromEntries(state.analyze.files.map((file) => [
22
+ `docs/analysis/${file.filename.split("/").at(-1)}`,
23
+ file.content,
24
24
  ])));
25
25
  if ((options === null || options === void 0 ? void 0 : options.stage) === "analyze")
26
26
  return ret;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAutoBeGenerated.js","sourceRoot":"","sources":["../../../../src/factory/getAutoBeGenerated.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,gDA0GC;AA5GD,2EAAwE;AAExE,SAAsB,kBAAkB,CACtC,QAAyB,EACzB,KAAkB,EAClB,SAAoC,EACpC,UAA4B,EAC5B,OAAyC;;;QAEzC,UAAU;QACV,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI;YAAE,OAAO,EAAE,CAAC;QACtC,MAAM,CAAC,MAAM,CACX,GAAG,EACH,MAAM,CAAC,WAAW,CAChB,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;YAChC,iBAAiB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;YAClD,IAAI,CAAC,OAAO;SACb,CAAC,CACH,CACF,CAAC;QACF,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,MAAK,SAAS;YAAE,OAAO,GAAG,CAAC;QAE7C,SAAS;QACT,IAAI,CAAA,MAAA,KAAK,CAAC,MAAM,0CAAE,IAAI,MAAK,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAC9C,MAAM,WAAW,GACf,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,UAAU,CAAC,KAAK,UAAU;gBAC1C,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;gBACtB,CAAC,CAAC,MAAM,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAQ,CAAC,IA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,CAAC;QAE1C,UAAU;QACV,MAAM,CAAC,MAAM,CAAiD,GAAG,EAAE;YACjE,uBAAuB,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;YAClD,wBAAwB,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;SACrD,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACb,CAAC;CAAA"}
@@ -0,0 +1,7 @@
1
+ import { AutoBeOpenApi, AutoBeRealizeAuthorization, AutoBeRealizeFunction, IAutoBeCompiler } from "@autobe/interface";
2
+ export declare const getAutoBeRealizeGenerated: (props: {
3
+ compiler: IAutoBeCompiler;
4
+ document: AutoBeOpenApi.IDocument;
5
+ authorizations: AutoBeRealizeAuthorization[];
6
+ functions: AutoBeRealizeFunction[];
7
+ }) => Promise<Record<string, string>>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAutoBeRealizeGenerated.js","sourceRoot":"","sources":["../../../../src/factory/getAutoBeRealizeGenerated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOO,MAAM,yBAAyB,GAAG,CAAO,KAK/C,EAAmC,EAAE;IAAC,OAAA,6DAClC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GACvE,MAAM,CAAC,WAAW,CACnB,KAAK,CAAC,cAAc;SACjB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QACb,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;QACjD,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC/C,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;KAC9C,CAAC;SACD,IAAI,EAAE,CACV,GACE,CAAC,MAAM,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,GAC5C,CAAC,MAAM,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC;QAC1C,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,cAAc,EAAE,KAAK,CAAC,cAAc;KACrC,CAAC,CAAC,EACH,CAAA;EAAA,CAAC;AAtBU,QAAA,yBAAyB,6BAsBnC"}
@@ -0,0 +1 @@
1
+ export * from "./createAgenticaHistory";