@autobe/agent 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (695) hide show
  1. package/lib/AutoBeAgent.d.ts +2 -1
  2. package/lib/{agent/src/AutoBeAgent.js → AutoBeAgent.js} +17 -3
  3. package/lib/AutoBeAgent.js.map +1 -0
  4. package/lib/AutoBeAgentBase.js.map +1 -0
  5. package/lib/{agent/src/AutoBeMockAgent.js → AutoBeMockAgent.js} +16 -0
  6. package/lib/AutoBeMockAgent.js.map +1 -0
  7. package/lib/constants/AutoBeConfigConstant.d.ts +3 -1
  8. package/lib/constants/AutoBeConfigConstant.js.map +1 -0
  9. package/lib/constants/AutoBeSystemPromptConstant.d.ts +17 -15
  10. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -0
  11. package/lib/context/AutoBeContext.js.map +1 -0
  12. package/lib/context/AutoBeState.js.map +1 -0
  13. package/lib/context/AutoBeTokenUsage.d.ts +1 -0
  14. package/lib/{agent/src/context → context}/AutoBeTokenUsage.js +8 -0
  15. package/lib/context/AutoBeTokenUsage.js.map +1 -0
  16. package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
  17. package/lib/{agent/src/context → context}/AutoBeTokenUsageComponent.js +8 -0
  18. package/lib/context/AutoBeTokenUsageComponent.js.map +1 -0
  19. package/lib/context/IAutoBeApplication.js.map +1 -0
  20. package/lib/context/IAutoBeApplicationProps.js.map +1 -0
  21. package/lib/context/IAutoBeApplicationResult.js.map +1 -0
  22. package/lib/context/assertSchemaModel.js.map +1 -0
  23. package/lib/{agent/src/factory → factory}/consentFunctionCall.js +1 -1
  24. package/lib/factory/consentFunctionCall.js.map +1 -0
  25. package/lib/factory/createAgenticaHistory.js.map +1 -0
  26. package/lib/factory/createAutoBeApplication.js.map +1 -0
  27. package/lib/{agent/src/factory → factory}/createAutoBeContext.js +66 -20
  28. package/lib/factory/createAutoBeContext.js.map +1 -0
  29. package/lib/factory/createAutoBeState.js.map +1 -0
  30. package/lib/factory/getAutoBeGenerated.js.map +1 -0
  31. package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -0
  32. package/lib/factory/getCriticalCompiler.d.ts +3 -0
  33. package/lib/factory/getCriticalCompiler.js +55 -0
  34. package/lib/factory/getCriticalCompiler.js.map +1 -0
  35. package/lib/factory/index.js.map +1 -0
  36. package/lib/index.js.map +1 -0
  37. package/lib/index.mjs +4869 -3042
  38. package/lib/index.mjs.map +1 -1
  39. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -0
  40. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
  41. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
  42. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
  43. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
  44. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
  45. package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeWrite.js +2 -4
  46. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
  47. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
  48. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
  49. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
  50. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.d.ts +8 -0
  51. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +31 -0
  52. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -0
  53. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +18 -0
  54. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +411 -0
  55. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -0
  56. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +122 -0
  57. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js +3 -0
  58. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js.map +1 -0
  59. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
  60. package/lib/orchestrate/index.js.map +1 -0
  61. package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
  62. package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAuthorizationsHistories.js +1 -1
  63. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
  64. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +63 -0
  65. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
  66. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
  67. package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointsReviewHistories.js +4 -4
  68. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -0
  69. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
  70. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +52 -0
  71. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
  72. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +36 -0
  73. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
  74. package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
  75. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +29 -0
  76. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
  77. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +60 -0
  78. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
  79. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -0
  80. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
  81. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceComplement.js +3 -3
  82. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
  83. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
  84. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -0
  85. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
  86. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceOperations.js +193 -274
  87. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
  88. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1747 -0
  89. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
  90. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemas.js +3 -3
  91. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
  92. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +1 -1
  93. package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemasReview.js +6 -8
  94. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
  95. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
  96. package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
  97. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
  98. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +1 -0
  99. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
  100. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +247 -1
  101. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
  102. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
  103. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
  104. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
  105. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -0
  106. package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -0
  107. package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +15 -0
  108. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +61 -0
  109. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -0
  110. package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
  111. package/lib/orchestrate/interface/utils/OperationValidator.d.ts +10 -0
  112. package/lib/orchestrate/interface/utils/OperationValidator.js +114 -0
  113. package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -0
  114. package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +1 -0
  115. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
  116. package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
  117. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
  118. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
  119. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -0
  120. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
  121. package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaCorrect.js +2 -2
  122. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
  123. package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
  124. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
  125. package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
  126. package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
  127. package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
  128. package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
  129. package/lib/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
  130. package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorization.js +1 -1
  131. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
  132. package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorizationCorrectHistories.js +2 -2
  133. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
  134. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +57 -0
  135. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
  136. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
  137. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +141 -0
  138. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
  139. package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -0
  140. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.d.ts +4 -0
  141. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +505 -0
  142. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -0
  143. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealize.js +18 -8
  144. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
  145. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
  146. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +1 -1
  147. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
  148. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +2 -15
  149. package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeCorrect.js +48 -43
  150. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
  151. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
  152. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
  153. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
  154. package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
  155. package/lib/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +1 -0
  156. package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +1 -0
  157. package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
  158. package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
  159. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
  160. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
  161. package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
  162. package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
  163. package/lib/orchestrate/realize/utils/generateRealizeScenario.d.ts +25 -0
  164. package/lib/orchestrate/realize/utils/generateRealizeScenario.js +85 -0
  165. package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -0
  166. package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -0
  167. package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -0
  168. package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -0
  169. package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -0
  170. package/lib/orchestrate/realize/utils/replaceImportStatements.js +98 -0
  171. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
  172. package/lib/orchestrate/test/compile/completeTestCode.d.ts +3 -1
  173. package/lib/orchestrate/test/compile/completeTestCode.js +31 -0
  174. package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
  175. package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
  176. package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestExternalDeclarations.js +5 -1
  177. package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
  178. package/lib/orchestrate/test/compile/getTestImportStatements.js.map +1 -0
  179. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
  180. package/lib/orchestrate/test/compile/getTestTemplateCode.js.map +1 -0
  181. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +51 -0
  182. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
  183. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.d.ts +4 -0
  184. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +33 -0
  185. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -0
  186. package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +1 -1
  187. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +159 -0
  188. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
  189. package/lib/orchestrate/test/histories/transformTestValidateEvent.d.ts +4 -0
  190. package/lib/orchestrate/test/histories/transformTestValidateEvent.js +11 -0
  191. package/lib/orchestrate/test/histories/transformTestValidateEvent.js.map +1 -0
  192. package/lib/orchestrate/test/histories/transformTestWriteHistories.js +220 -0
  193. package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
  194. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTest.js +13 -7
  195. package/lib/orchestrate/test/orchestrateTest.js.map +1 -0
  196. package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +2 -2
  197. package/lib/orchestrate/test/orchestrateTestCorrect.js +513 -0
  198. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
  199. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.d.ts +7 -0
  200. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +425 -0
  201. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -0
  202. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestScenario.js +32 -36
  203. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -0
  204. package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestWrite.js +25 -44
  205. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -0
  206. package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
  207. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.d.ts +140 -0
  208. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js +3 -0
  209. package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js.map +1 -0
  210. package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
  211. package/lib/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +1 -0
  212. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +2 -2
  213. package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
  214. package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
  215. package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
  216. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +38 -15
  217. package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
  218. package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
  219. package/lib/{agent/src/orchestrate → orchestrate}/test/utils/getReferenceIds.js +1 -1
  220. package/lib/orchestrate/test/utils/getReferenceIds.js.map +1 -0
  221. package/lib/structures/IAutoBeConfig.d.ts +1 -0
  222. package/lib/structures/IAutoBeConfig.js.map +1 -0
  223. package/lib/structures/IAutoBeProps.js.map +1 -0
  224. package/lib/structures/IAutoBeVendor.js.map +1 -0
  225. package/lib/utils/AutoBeTimeoutError.d.ts +4 -0
  226. package/lib/utils/AutoBeTimeoutError.js +18 -0
  227. package/lib/utils/AutoBeTimeoutError.js.map +1 -0
  228. package/lib/utils/TimeoutConversation.d.ts +24 -0
  229. package/lib/utils/TimeoutConversation.js +65 -0
  230. package/lib/utils/TimeoutConversation.js.map +1 -0
  231. package/lib/utils/arrayToRecord.js.map +1 -0
  232. package/lib/utils/backoffRetry.js.map +1 -0
  233. package/lib/utils/divideArray.js.map +1 -0
  234. package/lib/utils/emplaceMap.js.map +1 -0
  235. package/lib/utils/executeCachedBatch.js.map +1 -0
  236. package/lib/utils/predicateStateMessage.js.map +1 -0
  237. package/package.json +7 -7
  238. package/src/AutoBeAgent.ts +16 -1
  239. package/src/AutoBeMockAgent.ts +13 -3
  240. package/src/constants/AutoBeConfigConstant.ts +3 -1
  241. package/src/constants/AutoBeSystemPromptConstant.ts +17 -15
  242. package/src/context/AutoBeTokenUsage.ts +9 -0
  243. package/src/context/AutoBeTokenUsageComponent.ts +9 -0
  244. package/src/factory/consentFunctionCall.ts +1 -1
  245. package/src/factory/createAutoBeContext.ts +68 -20
  246. package/src/factory/getCriticalCompiler.ts +47 -0
  247. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +2 -4
  248. package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +43 -0
  249. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +170 -0
  250. package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +127 -0
  251. package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +4 -4
  252. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +3 -3
  253. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +10 -94
  254. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +49 -13
  255. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +4 -3
  256. package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +6 -6
  257. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +254 -4
  258. package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +71 -0
  259. package/src/orchestrate/interface/utils/OperationValidator.ts +127 -0
  260. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +2 -2
  261. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +6 -0
  262. package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +317 -0
  263. package/src/orchestrate/realize/orchestrateRealize.ts +29 -14
  264. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
  265. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +79 -67
  266. package/src/orchestrate/realize/utils/generateRealizeScenario.ts +104 -0
  267. package/src/orchestrate/realize/utils/replaceImportStatements.ts +60 -32
  268. package/src/orchestrate/test/compile/completeTestCode.ts +10 -12
  269. package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +11 -0
  270. package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +4 -3
  271. package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +39 -0
  272. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +75 -17
  273. package/src/orchestrate/test/histories/transformTestValidateEvent.ts +14 -0
  274. package/src/orchestrate/test/orchestrateTest.ts +11 -7
  275. package/src/orchestrate/test/orchestrateTestCorrect.ts +121 -50
  276. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +145 -0
  277. package/src/orchestrate/test/orchestrateTestScenario.ts +29 -13
  278. package/src/orchestrate/test/orchestrateTestWrite.ts +13 -19
  279. package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +233 -0
  280. package/src/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.ts +146 -0
  281. package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +2 -2
  282. package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +110 -15
  283. package/src/orchestrate/test/utils/getReferenceIds.ts +1 -1
  284. package/src/structures/IAutoBeConfig.ts +2 -0
  285. package/src/utils/AutoBeTimeoutError.ts +13 -0
  286. package/src/utils/TimeoutConversation.ts +82 -0
  287. package/lib/agent/src/AutoBeAgent.d.ts +0 -52
  288. package/lib/agent/src/AutoBeAgent.js.map +0 -1
  289. package/lib/agent/src/AutoBeAgentBase.d.ts +0 -18
  290. package/lib/agent/src/AutoBeAgentBase.js.map +0 -1
  291. package/lib/agent/src/AutoBeMockAgent.d.ts +0 -7
  292. package/lib/agent/src/AutoBeMockAgent.js.map +0 -1
  293. package/lib/agent/src/constants/AutoBeConfigConstant.d.ts +0 -3
  294. package/lib/agent/src/constants/AutoBeConfigConstant.js.map +0 -1
  295. package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +0 -29
  296. package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +0 -1
  297. package/lib/agent/src/context/AutoBeContext.d.ts +0 -43
  298. package/lib/agent/src/context/AutoBeContext.js.map +0 -1
  299. package/lib/agent/src/context/AutoBeState.d.ts +0 -8
  300. package/lib/agent/src/context/AutoBeState.js.map +0 -1
  301. package/lib/agent/src/context/AutoBeTokenUsage.d.ts +0 -173
  302. package/lib/agent/src/context/AutoBeTokenUsage.js.map +0 -1
  303. package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +0 -117
  304. package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +0 -1
  305. package/lib/agent/src/context/IAutoBeApplication.d.ts +0 -107
  306. package/lib/agent/src/context/IAutoBeApplication.js.map +0 -1
  307. package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +0 -4
  308. package/lib/agent/src/context/IAutoBeApplicationProps.js.map +0 -1
  309. package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +0 -4
  310. package/lib/agent/src/context/IAutoBeApplicationResult.js.map +0 -1
  311. package/lib/agent/src/context/assertSchemaModel.d.ts +0 -2
  312. package/lib/agent/src/context/assertSchemaModel.js.map +0 -1
  313. package/lib/agent/src/factory/consentFunctionCall.d.ts +0 -10
  314. package/lib/agent/src/factory/consentFunctionCall.js.map +0 -1
  315. package/lib/agent/src/factory/createAgenticaHistory.d.ts +0 -7
  316. package/lib/agent/src/factory/createAgenticaHistory.js.map +0 -1
  317. package/lib/agent/src/factory/createAutoBeApplication.d.ts +0 -7
  318. package/lib/agent/src/factory/createAutoBeApplication.js.map +0 -1
  319. package/lib/agent/src/factory/createAutoBeContext.d.ts +0 -19
  320. package/lib/agent/src/factory/createAutoBeContext.js.map +0 -1
  321. package/lib/agent/src/factory/createAutoBeState.d.ts +0 -3
  322. package/lib/agent/src/factory/createAutoBeState.js.map +0 -1
  323. package/lib/agent/src/factory/getAutoBeGenerated.d.ts +0 -4
  324. package/lib/agent/src/factory/getAutoBeGenerated.js.map +0 -1
  325. package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +0 -7
  326. package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +0 -1
  327. package/lib/agent/src/factory/index.d.ts +0 -1
  328. package/lib/agent/src/factory/index.js.map +0 -1
  329. package/lib/agent/src/index.d.ts +0 -6
  330. package/lib/agent/src/index.js.map +0 -1
  331. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +0 -6
  332. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +0 -1
  333. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +0 -4
  334. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +0 -1
  335. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +0 -6
  336. package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +0 -1
  337. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -5
  338. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
  339. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +0 -11
  340. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +0 -1
  341. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +0 -4
  342. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +0 -1
  343. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +0 -10
  344. package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
  345. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +0 -111
  346. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +0 -1
  347. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +0 -78
  348. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +0 -1
  349. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +0 -74
  350. package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +0 -1
  351. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +0 -2
  352. package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  353. package/lib/agent/src/orchestrate/index.d.ts +0 -5
  354. package/lib/agent/src/orchestrate/index.js.map +0 -1
  355. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +0 -3
  356. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
  357. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +0 -4
  358. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +0 -1
  359. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +0 -4
  360. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -63
  361. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
  362. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +0 -5
  363. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
  364. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +0 -4
  365. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +0 -1
  366. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +0 -3
  367. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
  368. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +0 -4
  369. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -52
  370. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
  371. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +0 -5
  372. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +0 -36
  373. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +0 -1
  374. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +0 -3
  375. package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
  376. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +0 -4
  377. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -29
  378. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
  379. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
  380. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
  381. package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
  382. package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +0 -5
  383. package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +0 -1
  384. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +0 -4
  385. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +0 -1
  386. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +0 -4
  387. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
  388. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +0 -5
  389. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
  390. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -10
  391. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +0 -1
  392. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +0 -4
  393. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
  394. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +0 -4
  395. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
  396. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +0 -4
  397. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +0 -1416
  398. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +0 -1
  399. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +0 -4
  400. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
  401. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
  402. package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
  403. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +0 -47
  404. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +0 -1
  405. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +0 -93
  406. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
  407. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +0 -24
  408. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
  409. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +0 -60
  410. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +0 -1
  411. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +0 -108
  412. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
  413. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -171
  414. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
  415. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +0 -117
  416. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +0 -1
  417. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +0 -107
  418. package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
  419. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
  420. package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
  421. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.d.ts +0 -9
  422. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js.map +0 -1
  423. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +0 -5
  424. package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +0 -1
  425. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +0 -6
  426. package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
  427. package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +0 -2
  428. package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +0 -1
  429. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
  430. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +0 -35
  431. package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js.map +0 -1
  432. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +0 -3
  433. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
  434. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +0 -3
  435. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
  436. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +0 -8
  437. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +0 -1
  438. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +0 -3
  439. package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
  440. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +0 -5
  441. package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +0 -1
  442. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +0 -4
  443. package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
  444. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +0 -4
  445. package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
  446. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +0 -5
  447. package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +0 -1
  448. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +0 -5
  449. package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
  450. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +0 -121
  451. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
  452. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +0 -142
  453. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
  454. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +0 -105
  455. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +0 -1
  456. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +0 -99
  457. package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
  458. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +0 -5
  459. package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
  460. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +0 -5
  461. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +0 -1
  462. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
  463. package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
  464. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -14
  465. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +0 -51
  466. package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +0 -1
  467. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +0 -3
  468. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +0 -1
  469. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +0 -11
  470. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +0 -141
  471. package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +0 -1
  472. package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +0 -7
  473. package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +0 -1
  474. package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +0 -5
  475. package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +0 -1
  476. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +0 -10
  477. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
  478. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +0 -4
  479. package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
  480. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +0 -19
  481. package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +0 -1
  482. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
  483. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js +0 -44
  484. package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +0 -1
  485. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +0 -11
  486. package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +0 -1
  487. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +0 -109
  488. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
  489. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +0 -47
  490. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
  491. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +0 -39
  492. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +0 -1
  493. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +0 -5
  494. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +0 -1
  495. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +0 -36
  496. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +0 -1
  497. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +0 -295
  498. package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +0 -1
  499. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +0 -5
  500. package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
  501. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +0 -5
  502. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
  503. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +0 -4
  504. package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
  505. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +0 -8
  506. package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
  507. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +0 -3
  508. package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
  509. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +0 -31
  510. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +0 -1
  511. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.d.ts +0 -4
  512. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js.map +0 -1
  513. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +0 -2
  514. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +0 -1
  515. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +0 -30
  516. package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js.map +0 -1
  517. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +0 -8
  518. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +0 -77
  519. package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
  520. package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +0 -2
  521. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js +0 -25
  522. package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +0 -1
  523. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +0 -1
  524. package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +0 -1
  525. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +0 -3
  526. package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
  527. package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.d.ts +0 -2
  528. package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js.map +0 -1
  529. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +0 -5
  530. package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
  531. package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.d.ts +0 -2
  532. package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js.map +0 -1
  533. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +0 -6
  534. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +0 -50
  535. package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +0 -1
  536. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +0 -4
  537. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +0 -105
  538. package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +0 -1
  539. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.d.ts +0 -10
  540. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +0 -220
  541. package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +0 -1
  542. package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +0 -5
  543. package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +0 -1
  544. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +0 -5
  545. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +0 -411
  546. package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
  547. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +0 -4
  548. package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +0 -1
  549. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +0 -5
  550. package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +0 -1
  551. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +0 -125
  552. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
  553. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +0 -8
  554. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
  555. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +0 -6
  556. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +0 -1
  557. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +0 -161
  558. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
  559. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +0 -8
  560. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
  561. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +0 -6
  562. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
  563. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +0 -126
  564. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
  565. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +0 -7
  566. package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
  567. package/lib/agent/src/orchestrate/test/utils/getReferenceIds.d.ts +0 -5
  568. package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js.map +0 -1
  569. package/lib/agent/src/structures/IAutoBeConfig.d.ts +0 -75
  570. package/lib/agent/src/structures/IAutoBeConfig.js.map +0 -1
  571. package/lib/agent/src/structures/IAutoBeProps.d.ts +0 -109
  572. package/lib/agent/src/structures/IAutoBeProps.js.map +0 -1
  573. package/lib/agent/src/structures/IAutoBeVendor.d.ts +0 -87
  574. package/lib/agent/src/structures/IAutoBeVendor.js.map +0 -1
  575. package/lib/agent/src/utils/arrayToRecord.d.ts +0 -17
  576. package/lib/agent/src/utils/arrayToRecord.js.map +0 -1
  577. package/lib/agent/src/utils/backoffRetry.d.ts +0 -22
  578. package/lib/agent/src/utils/backoffRetry.js.map +0 -1
  579. package/lib/agent/src/utils/divideArray.d.ts +0 -4
  580. package/lib/agent/src/utils/divideArray.js.map +0 -1
  581. package/lib/agent/src/utils/emplaceMap.d.ts +0 -1
  582. package/lib/agent/src/utils/emplaceMap.js.map +0 -1
  583. package/lib/agent/src/utils/executeCachedBatch.d.ts +0 -1
  584. package/lib/agent/src/utils/executeCachedBatch.js.map +0 -1
  585. package/lib/agent/src/utils/predicateStateMessage.d.ts +0 -4
  586. package/lib/agent/src/utils/predicateStateMessage.js.map +0 -1
  587. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +0 -153
  588. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +0 -3
  589. package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +0 -1
  590. package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
  591. package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
  592. package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +0 -41
  593. package/src/orchestrate/realize/orchestrateRealizeScenario.ts +0 -57
  594. /package/lib/{agent/src/AutoBeAgentBase.js → AutoBeAgentBase.js} +0 -0
  595. /package/lib/{agent/src/constants → constants}/AutoBeConfigConstant.js +0 -0
  596. /package/lib/{agent/src/constants → constants}/AutoBeSystemPromptConstant.js +0 -0
  597. /package/lib/{agent/src/context → context}/AutoBeContext.js +0 -0
  598. /package/lib/{agent/src/context → context}/AutoBeState.js +0 -0
  599. /package/lib/{agent/src/context → context}/IAutoBeApplication.js +0 -0
  600. /package/lib/{agent/src/context → context}/IAutoBeApplicationProps.js +0 -0
  601. /package/lib/{agent/src/context → context}/IAutoBeApplicationResult.js +0 -0
  602. /package/lib/{agent/src/context → context}/assertSchemaModel.js +0 -0
  603. /package/lib/{agent/src/factory → factory}/createAgenticaHistory.js +0 -0
  604. /package/lib/{agent/src/factory → factory}/createAutoBeApplication.js +0 -0
  605. /package/lib/{agent/src/factory → factory}/createAutoBeState.js +0 -0
  606. /package/lib/{agent/src/factory → factory}/getAutoBeGenerated.js +0 -0
  607. /package/lib/{agent/src/factory → factory}/getAutoBeRealizeGenerated.js +0 -0
  608. /package/lib/{agent/src/factory → factory}/index.js +0 -0
  609. /package/lib/{agent/src/index.js → index.js} +0 -0
  610. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeReviewHistories.js +0 -0
  611. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeScenarioHistories.js +0 -0
  612. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeWriteHistories.js +0 -0
  613. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyze.js +0 -0
  614. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeReview.js +0 -0
  615. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeScenario.js +0 -0
  616. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeReviewApplication.js +0 -0
  617. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +0 -0
  618. /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeWriteApplication.js +0 -0
  619. /package/lib/{agent/src/orchestrate → orchestrate}/facade/transformFacadeStateMessage.js +0 -0
  620. /package/lib/{agent/src/orchestrate → orchestrate}/index.js +0 -0
  621. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
  622. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointHistories.js +0 -0
  623. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceGroupHistories.js +0 -0
  624. /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
  625. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterface.js +0 -0
  626. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceAuthorizations.js +0 -0
  627. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpoints.js +0 -0
  628. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpointsReview.js +0 -0
  629. /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceGroups.js +0 -0
  630. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +0 -0
  631. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
  632. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
  633. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js +0 -0
  634. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
  635. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
  636. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +0 -0
  637. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
  638. /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +0 -0
  639. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaFactory.js +0 -0
  640. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaNamingConvention.js +0 -0
  641. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
  642. /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/fulfillJsonSchemaErrorMessages.js +0 -0
  643. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaComponentsHistories.js +0 -0
  644. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaCorrectHistories.js +0 -0
  645. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaReviewHistories.js +0 -0
  646. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaSchemaHistories.js +0 -0
  647. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrisma.js +0 -0
  648. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaComponent.js +0 -0
  649. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaReview.js +0 -0
  650. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaSchemas.js +0 -0
  651. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
  652. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
  653. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaReviewApplication.js +0 -0
  654. /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
  655. /package/lib/{agent/src/orchestrate → orchestrate}/realize/ProviderCodeComparator.js +0 -0
  656. /package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeWriteAuthorizationsHistories.js +0 -0
  657. /package/lib/{agent/src/orchestrate → orchestrate}/realize/internal/compileRealizeFiles.js +0 -0
  658. /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorization.js +0 -0
  659. /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeWrite.js +0 -0
  660. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
  661. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
  662. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeCorrectApplication.js +0 -0
  663. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeFunctionFailure.js +0 -0
  664. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeScenarioResult.js +0 -0
  665. /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeWriteApplication.js +0 -0
  666. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
  667. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
  668. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
  669. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/InternalFileSystem.js +0 -0
  670. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
  671. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteCodeTemplate.js +0 -0
  672. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteDto.js +0 -0
  673. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteImportStatements.js +0 -0
  674. /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteInputType.js +0 -0
  675. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/filterTestFileName.js +0 -0
  676. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestImportStatements.js +0 -0
  677. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
  678. /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestTemplateCode.js +0 -0
  679. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
  680. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
  681. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunctionFailure.js +0 -0
  682. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
  683. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
  684. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioAuthorizationRole.js +0 -0
  685. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
  686. /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
  687. /package/lib/{agent/src/structures → structures}/IAutoBeConfig.js +0 -0
  688. /package/lib/{agent/src/structures → structures}/IAutoBeProps.js +0 -0
  689. /package/lib/{agent/src/structures → structures}/IAutoBeVendor.js +0 -0
  690. /package/lib/{agent/src/utils → utils}/arrayToRecord.js +0 -0
  691. /package/lib/{agent/src/utils → utils}/backoffRetry.js +0 -0
  692. /package/lib/{agent/src/utils → utils}/divideArray.js +0 -0
  693. /package/lib/{agent/src/utils → utils}/emplaceMap.js +0 -0
  694. /package/lib/{agent/src/utils → utils}/executeCachedBatch.js +0 -0
  695. /package/lib/{agent/src/utils → utils}/predicateStateMessage.js +0 -0
@@ -0,0 +1,425 @@
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.orchestrateTestCorrectInvalidRequest = void 0;
49
+ const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
+ const utils_1 = require("@autobe/utils");
51
+ const typia_1 = __importDefault(require("typia"));
52
+ const uuid_1 = require("uuid");
53
+ const assertSchemaModel_1 = require("../../context/assertSchemaModel");
54
+ const transformTestCorrectInvalidRequestHistories_1 = require("./histories/transformTestCorrectInvalidRequestHistories");
55
+ const orchestrateTestCorrectInvalidRequest = (ctx, compile, write) => __awaiter(void 0, void 0, void 0, function* () {
56
+ const event = yield compile(write.script);
57
+ return yield predicate(ctx, compile, write, event, ctx.retry);
58
+ });
59
+ exports.orchestrateTestCorrectInvalidRequest = orchestrateTestCorrectInvalidRequest;
60
+ const predicate = (ctx, compile, write, event, life) => __awaiter(void 0, void 0, void 0, function* () {
61
+ if (event.result.type === "failure") {
62
+ ctx.dispatch(event);
63
+ return yield correct(ctx, compile, write, event, life - 1);
64
+ }
65
+ return event;
66
+ });
67
+ const correct = (ctx, compile, write, event, life) => __awaiter(void 0, void 0, void 0, function* () {
68
+ var _a, _b, _c, _d, _e, _f;
69
+ if (event.result.type !== "failure")
70
+ return event;
71
+ else if (life < 0)
72
+ return event;
73
+ const pointer = {
74
+ value: null,
75
+ };
76
+ const { tokenUsage } = yield ctx.conversate({
77
+ source: "testCorrect",
78
+ histories: yield (0, transformTestCorrectInvalidRequestHistories_1.transformTestCorrectInvalidRequestHistories)(null, event.result.diagnostics),
79
+ controller: createController({
80
+ model: ctx.model,
81
+ then: (next) => {
82
+ pointer.value = next;
83
+ },
84
+ reject: () => {
85
+ pointer.value = false;
86
+ },
87
+ }),
88
+ enforceFunctionCall: true,
89
+ message: utils_1.StringUtil.trim `
90
+ Fix the AutoBeTest.IFunction data to resolve the compilation error.
91
+
92
+ You don't need to explain me anything, but just fix or give it up
93
+ immediately without any hesitation, explanation, and questions.
94
+ `,
95
+ });
96
+ if (pointer.value === null)
97
+ throw new Error("Failed to correct test code.");
98
+ else if (pointer.value === false)
99
+ return event; // other's responsibility
100
+ ctx.dispatch({
101
+ type: "testCorrect",
102
+ id: (0, uuid_1.v7)(),
103
+ created_at: new Date().toISOString(),
104
+ file: {
105
+ scenario: write.scenario,
106
+ location: write.location,
107
+ content: write.script,
108
+ },
109
+ result: event.result,
110
+ tokenUsage,
111
+ step: (_b = (_a = ctx.state().analyze) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
112
+ think: pointer.value.think,
113
+ draft: pointer.value.draft,
114
+ review: (_c = pointer.value.revise) === null || _c === void 0 ? void 0 : _c.review,
115
+ final: (_d = pointer.value.revise) === null || _d === void 0 ? void 0 : _d.final,
116
+ });
117
+ const newWrite = {
118
+ artifacts: write.artifacts,
119
+ scenario: write.scenario,
120
+ location: write.location,
121
+ script: (_f = (_e = pointer.value.revise) === null || _e === void 0 ? void 0 : _e.final) !== null && _f !== void 0 ? _f : pointer.value.draft,
122
+ };
123
+ const newEvent = yield compile(newWrite.script);
124
+ return yield predicate(ctx, compile, newWrite, newEvent, life - 1);
125
+ });
126
+ const createController = (props) => {
127
+ (0, assertSchemaModel_1.assertSchemaModel)(props.model);
128
+ const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"];
129
+ return {
130
+ protocol: "class",
131
+ name: "correctInvalidRequest",
132
+ application,
133
+ execute: {
134
+ rewrite: (next) => {
135
+ props.then(next);
136
+ },
137
+ reject: () => {
138
+ props.reject();
139
+ },
140
+ },
141
+ };
142
+ };
143
+ const collection = {
144
+ chatgpt: {
145
+ model: "chatgpt",
146
+ options: {
147
+ reference: true,
148
+ strict: false,
149
+ separate: null
150
+ },
151
+ functions: [
152
+ {
153
+ name: "rewrite",
154
+ parameters: {
155
+ description: " - The analysis and correction properties\n\n------------------------------\n\nDescription of the current {@link IAutoBeTestCorrectInvalidRequestApplication.IProps} type:\n\n> Properties for the rewrite function containing the analysis and correction\n> workflow.\n> \n> This follows a three-phase approach: think \u2192 draft \u2192 revise, ensuring\n> systematic removal of invalid type testing code while maintaining the\n> integrity of valid E2E tests.\n\n### Description of {@link revise} property:\n\n> Review and finalization phase.\n> \n> Contains the review of changes made and the final cleaned code that\n> should compile without the invalid API request errors. This ensures the\n> correction is complete and accurate.",
156
+ type: "object",
157
+ properties: {
158
+ think: {
159
+ description: "Initial analysis phase.\n\nContains the agent's analysis of what specific invalid request pattern\nwas found in the code and how it's causing the compilation error. This\nshould identify:\n\n- The exact pattern (as any, satisfies, TestValidator.error, etc.)\n- Line numbers and locations of violations\n- The TypeScript error codes being triggered\n- Why this constitutes invalid type testing\n\nExample: \"Detected TestValidator.error() call at line 45 with 'as any'\ncasting on request body containing deliberately wrong types (number for\nemail field). This is causing TS2345 compilation error.\"",
160
+ type: "string"
161
+ },
162
+ draft: {
163
+ description: "Draft correction phase.\n\nThe initial corrected code with the problematic API request sections\ncompletely removed while preserving all valid test code.\n\nRules for drafting:\n\n- Remove entire test functions containing type violations\n- Do not comment out code - delete it completely\n- Preserve test suite structure and valid tests\n- Maintain proper indentation and formatting\n- Keep imports that are still needed by remaining code",
164
+ type: "string"
165
+ },
166
+ revise: {
167
+ $ref: "#/$defs/IAutoBeTestCorrectInvalidRequestApplication.IReviseProps"
168
+ }
169
+ },
170
+ required: [
171
+ "think",
172
+ "draft",
173
+ "revise"
174
+ ],
175
+ additionalProperties: false,
176
+ $defs: {
177
+ "IAutoBeTestCorrectInvalidRequestApplication.IReviseProps": {
178
+ description: "Properties for the revision phase of the correction process.\n\nThis phase ensures that the removal was complete and the remaining code is\nvalid and compilable.",
179
+ type: "object",
180
+ properties: {
181
+ review: {
182
+ description: "Review of the changes made.\n\nBrief explanation of what invalid API request code was removed and\nverification that valid test code was preserved. Should confirm:\n\n- Which patterns were found and removed\n- Line ranges that were deleted\n- Verification that valid tests remain intact\n- Confirmation that no partial fixes were applied\n\nExample: \"Removed lines 43-52 containing TestValidator.error with invalid\ntype casting. Verified remaining tests are valid and unaffected.\"",
183
+ type: "string"
184
+ },
185
+ final: {
186
+ description: "Final corrected code.\n\nThe complete, cleaned test code with all invalid API request sections\nremoved, ready for compilation.\n\nThis code must:\n\n- Compile without TypeScript errors\n- Contain only valid business logic tests\n- Have no `as any` or similar type violations\n- Maintain the original file structure\n- Be production-ready E2E test code",
187
+ type: "string"
188
+ }
189
+ },
190
+ required: [
191
+ "review",
192
+ "final"
193
+ ]
194
+ }
195
+ }
196
+ },
197
+ description: "Rewrite function to remove code containing invalid type API requests.\n\nThis function is called when the agent detects code that attempts to send\nAPI requests with deliberately wrong types, causing TypeScript compilation\nerrors. The agent will remove the problematic code sections while\npreserving valid test code.\n\nCommon patterns that trigger this function:\n\n- TestValidator.error calls testing type violations\n- Missing required fields with type assertions\n- Wrong type assignments with satisfies operator\n- Nested type violations in complex objects\n- Partial type testing with invalid structures\n\nThe rationale for deletion:\n\n- Type validation is the server's responsibility, not E2E tests\n- TypeScript compiler should enforce type safety at compile time\n- Invalid type testing breaks the entire test suite compilation\n- E2E tests should focus on business logic, not type system violations",
198
+ validate: (() => { const _io0 = input => "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.final; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.think || _report(_exceptionable, {
199
+ path: _path + ".think",
200
+ expected: "string",
201
+ value: input.think
202
+ }), "string" === typeof input.draft || _report(_exceptionable, {
203
+ path: _path + ".draft",
204
+ expected: "string",
205
+ value: input.draft
206
+ }), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
207
+ path: _path + ".revise",
208
+ expected: "IAutoBeTestCorrectInvalidRequestApplication.IReviseProps",
209
+ value: input.revise
210
+ })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
211
+ path: _path + ".revise",
212
+ expected: "IAutoBeTestCorrectInvalidRequestApplication.IReviseProps",
213
+ value: input.revise
214
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
215
+ path: _path + ".review",
216
+ expected: "string",
217
+ value: input.review
218
+ }), "string" === typeof input.final || _report(_exceptionable, {
219
+ path: _path + ".final",
220
+ expected: "string",
221
+ value: input.final
222
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
223
+ if (false === __is(input)) {
224
+ errors = [];
225
+ _report = __typia_transform__validateReport._validateReport(errors);
226
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
227
+ path: _path + "",
228
+ expected: "IAutoBeTestCorrectInvalidRequestApplication.IProps",
229
+ value: input
230
+ })) && _vo0(input, _path + "", true) || _report(true, {
231
+ path: _path + "",
232
+ expected: "IAutoBeTestCorrectInvalidRequestApplication.IProps",
233
+ value: input
234
+ }))(input, "$input", true);
235
+ const success = 0 === errors.length;
236
+ return success ? {
237
+ success,
238
+ data: input
239
+ } : {
240
+ success,
241
+ errors,
242
+ data: input
243
+ };
244
+ }
245
+ return {
246
+ success: true,
247
+ data: input
248
+ };
249
+ }; })()
250
+ },
251
+ {
252
+ name: "reject",
253
+ parameters: {
254
+ type: "object",
255
+ properties: {},
256
+ additionalProperties: false,
257
+ required: [],
258
+ $defs: {}
259
+ },
260
+ description: "Reject function when no invalid type API requests are detected.\n\nThis function is called when the compilation error is not related to\ninvalid API request types, indicating the agent should not intervene.\n\nCommon scenarios for rejection:\n\n- Syntax errors unrelated to type violations\n- Legitimate type mismatches that need fixing (not deletion)\n- Framework-specific compilation issues\n- Configuration or environment problems\n\nWhen called, this indicates that another specialized agent should handle\nthe compilation error, as it's outside this agent's domain.",
261
+ validate: (() => { const __is = input => true; let errors; let _report; return input => {
262
+ if (false === __is(input)) {
263
+ errors = [];
264
+ _report = __typia_transform__validateReport._validateReport(errors);
265
+ ((input, _path, _exceptionable = true) => true)(input, "$input", true);
266
+ const success = 0 === errors.length;
267
+ return success ? {
268
+ success,
269
+ data: input
270
+ } : {
271
+ success,
272
+ errors,
273
+ data: input
274
+ };
275
+ }
276
+ return {
277
+ success: true,
278
+ data: input
279
+ };
280
+ }; })()
281
+ }
282
+ ]
283
+ },
284
+ claude: {
285
+ model: "claude",
286
+ options: {
287
+ reference: true,
288
+ separate: null
289
+ },
290
+ functions: [
291
+ {
292
+ name: "rewrite",
293
+ parameters: {
294
+ description: " - The analysis and correction properties\n\n------------------------------\n\nDescription of the current {@link IAutoBeTestCorrectInvalidRequestApplication.IProps} type:\n\n> Properties for the rewrite function containing the analysis and correction\n> workflow.\n> \n> This follows a three-phase approach: think \u2192 draft \u2192 revise, ensuring\n> systematic removal of invalid type testing code while maintaining the\n> integrity of valid E2E tests.",
295
+ type: "object",
296
+ properties: {
297
+ think: {
298
+ description: "Initial analysis phase.\n\nContains the agent's analysis of what specific invalid request pattern\nwas found in the code and how it's causing the compilation error. This\nshould identify:\n\n- The exact pattern (as any, satisfies, TestValidator.error, etc.)\n- Line numbers and locations of violations\n- The TypeScript error codes being triggered\n- Why this constitutes invalid type testing\n\nExample: \"Detected TestValidator.error() call at line 45 with 'as any'\ncasting on request body containing deliberately wrong types (number for\nemail field). This is causing TS2345 compilation error.\"",
299
+ type: "string"
300
+ },
301
+ draft: {
302
+ description: "Draft correction phase.\n\nThe initial corrected code with the problematic API request sections\ncompletely removed while preserving all valid test code.\n\nRules for drafting:\n\n- Remove entire test functions containing type violations\n- Do not comment out code - delete it completely\n- Preserve test suite structure and valid tests\n- Maintain proper indentation and formatting\n- Keep imports that are still needed by remaining code",
303
+ type: "string"
304
+ },
305
+ revise: {
306
+ description: "Review and finalization phase.\n\nContains the review of changes made and the final cleaned code that\nshould compile without the invalid API request errors. This ensures the\ncorrection is complete and accurate.",
307
+ $ref: "#/$defs/IAutoBeTestCorrectInvalidRequestApplication.IReviseProps"
308
+ }
309
+ },
310
+ required: [
311
+ "think",
312
+ "draft",
313
+ "revise"
314
+ ],
315
+ additionalProperties: false,
316
+ $defs: {
317
+ "IAutoBeTestCorrectInvalidRequestApplication.IReviseProps": {
318
+ description: "Properties for the revision phase of the correction process.\n\nThis phase ensures that the removal was complete and the remaining code is\nvalid and compilable.",
319
+ type: "object",
320
+ properties: {
321
+ review: {
322
+ description: "Review of the changes made.\n\nBrief explanation of what invalid API request code was removed and\nverification that valid test code was preserved. Should confirm:\n\n- Which patterns were found and removed\n- Line ranges that were deleted\n- Verification that valid tests remain intact\n- Confirmation that no partial fixes were applied\n\nExample: \"Removed lines 43-52 containing TestValidator.error with invalid\ntype casting. Verified remaining tests are valid and unaffected.\"",
323
+ type: "string"
324
+ },
325
+ final: {
326
+ description: "Final corrected code.\n\nThe complete, cleaned test code with all invalid API request sections\nremoved, ready for compilation.\n\nThis code must:\n\n- Compile without TypeScript errors\n- Contain only valid business logic tests\n- Have no `as any` or similar type violations\n- Maintain the original file structure\n- Be production-ready E2E test code",
327
+ type: "string"
328
+ }
329
+ },
330
+ required: [
331
+ "review",
332
+ "final"
333
+ ]
334
+ }
335
+ }
336
+ },
337
+ description: "Rewrite function to remove code containing invalid type API requests.\n\nThis function is called when the agent detects code that attempts to send\nAPI requests with deliberately wrong types, causing TypeScript compilation\nerrors. The agent will remove the problematic code sections while\npreserving valid test code.\n\nCommon patterns that trigger this function:\n\n- TestValidator.error calls testing type violations\n- Missing required fields with type assertions\n- Wrong type assignments with satisfies operator\n- Nested type violations in complex objects\n- Partial type testing with invalid structures\n\nThe rationale for deletion:\n\n- Type validation is the server's responsibility, not E2E tests\n- TypeScript compiler should enforce type safety at compile time\n- Invalid type testing breaks the entire test suite compilation\n- E2E tests should focus on business logic, not type system violations",
338
+ validate: (() => { const _io0 = input => "string" === typeof input.think && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.final; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.think || _report(_exceptionable, {
339
+ path: _path + ".think",
340
+ expected: "string",
341
+ value: input.think
342
+ }), "string" === typeof input.draft || _report(_exceptionable, {
343
+ path: _path + ".draft",
344
+ expected: "string",
345
+ value: input.draft
346
+ }), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
347
+ path: _path + ".revise",
348
+ expected: "IAutoBeTestCorrectInvalidRequestApplication.IReviseProps",
349
+ value: input.revise
350
+ })) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
351
+ path: _path + ".revise",
352
+ expected: "IAutoBeTestCorrectInvalidRequestApplication.IReviseProps",
353
+ value: input.revise
354
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
355
+ path: _path + ".review",
356
+ expected: "string",
357
+ value: input.review
358
+ }), "string" === typeof input.final || _report(_exceptionable, {
359
+ path: _path + ".final",
360
+ expected: "string",
361
+ value: input.final
362
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
363
+ if (false === __is(input)) {
364
+ errors = [];
365
+ _report = __typia_transform__validateReport._validateReport(errors);
366
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
367
+ path: _path + "",
368
+ expected: "IAutoBeTestCorrectInvalidRequestApplication.IProps",
369
+ value: input
370
+ })) && _vo0(input, _path + "", true) || _report(true, {
371
+ path: _path + "",
372
+ expected: "IAutoBeTestCorrectInvalidRequestApplication.IProps",
373
+ value: input
374
+ }))(input, "$input", true);
375
+ const success = 0 === errors.length;
376
+ return success ? {
377
+ success,
378
+ data: input
379
+ } : {
380
+ success,
381
+ errors,
382
+ data: input
383
+ };
384
+ }
385
+ return {
386
+ success: true,
387
+ data: input
388
+ };
389
+ }; })()
390
+ },
391
+ {
392
+ name: "reject",
393
+ parameters: {
394
+ type: "object",
395
+ properties: {},
396
+ additionalProperties: false,
397
+ required: [],
398
+ $defs: {}
399
+ },
400
+ description: "Reject function when no invalid type API requests are detected.\n\nThis function is called when the compilation error is not related to\ninvalid API request types, indicating the agent should not intervene.\n\nCommon scenarios for rejection:\n\n- Syntax errors unrelated to type violations\n- Legitimate type mismatches that need fixing (not deletion)\n- Framework-specific compilation issues\n- Configuration or environment problems\n\nWhen called, this indicates that another specialized agent should handle\nthe compilation error, as it's outside this agent's domain.",
401
+ validate: (() => { const __is = input => true; let errors; let _report; return input => {
402
+ if (false === __is(input)) {
403
+ errors = [];
404
+ _report = __typia_transform__validateReport._validateReport(errors);
405
+ ((input, _path, _exceptionable = true) => true)(input, "$input", true);
406
+ const success = 0 === errors.length;
407
+ return success ? {
408
+ success,
409
+ data: input
410
+ } : {
411
+ success,
412
+ errors,
413
+ data: input
414
+ };
415
+ }
416
+ return {
417
+ success: true,
418
+ data: input
419
+ };
420
+ }; })()
421
+ }
422
+ ]
423
+ },
424
+ };
425
+ //# sourceMappingURL=orchestrateTestCorrectInvalidRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestrateTestCorrectInvalidRequest.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,yCAA2C;AAG3C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,yHAAsH;AAM/G,MAAM,oCAAoC,GAAG,CAGlD,GAAyB,EACzB,OAAwB,EACxB,KAA0B,EACQ,EAAE;IACpC,MAAM,KAAK,GAA4B,MAAM,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnE,OAAO,MAAM,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC,CAAA,CAAC;AATW,QAAA,oCAAoC,wCAS/C;AAEF,MAAM,SAAS,GAAG,CAChB,GAAyB,EACzB,OAAwB,EACxB,KAA0B,EAC1B,KAA8B,EAC9B,IAAY,EACsB,EAAE;IACpC,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACpC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACpB,OAAO,MAAM,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC;IAC7D,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAG,CACd,GAAyB,EACzB,OAAwB,EACxB,KAA0B,EAC1B,KAA8B,EAC9B,IAAY,EACsB,EAAE;;IACpC,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;SAC7C,IAAI,IAAI,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IAEhC,MAAM,OAAO,GAET;QACF,KAAK,EAAE,IAAI;KACZ,CAAC;IACF,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC;QAC1C,MAAM,EAAE,aAAa;QACrB,SAAS,EAAE,MAAM,IAAA,yFAA2C,EAC1D,IAAK,EACL,KAAK,CAAC,MAAM,CAAC,WAAW,CACzB;QACD,UAAU,EAAE,gBAAgB,CAAC;YAC3B,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE;gBACb,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;YACvB,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;YACxB,CAAC;SACF,CAAC;QACF,mBAAmB,EAAE,IAAI;QACzB,OAAO,EAAE,kBAAU,CAAC,IAAI,CAAA;;;;;KAKvB;KACF,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,KAAK,KAAK,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACvE,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK;QAAE,OAAO,KAAK,CAAC,CAAC,yBAAyB;IAEzE,GAAG,CAAC,QAAQ,CAAC;QACX,IAAI,EAAE,aAAa;QACnB,EAAE,EAAE,IAAA,SAAE,GAAE;QACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACpC,IAAI,EAAE;YACJ,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,OAAO,EAAE,KAAK,CAAC,MAAM;SACtB;QACD,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,UAAU;QACV,IAAI,EAAE,MAAA,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,0CAAE,IAAI,mCAAI,CAAC;QACpC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK;QAC1B,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK;QAC1B,MAAM,EAAE,MAAA,OAAO,CAAC,KAAK,CAAC,MAAM,0CAAE,MAAM;QACpC,KAAK,EAAE,MAAA,OAAO,CAAC,KAAK,CAAC,MAAM,0CAAE,KAAK;KACF,CAAC,CAAC;IACpC,MAAM,QAAQ,GAAwB;QACpC,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,KAAK,CAAC,MAAM,0CAAE,KAAK,mCAAI,OAAO,CAAC,KAAK,CAAC,KAAK;KAC3D,CAAC;IACF,MAAM,QAAQ,GAA4B,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACzE,OAAO,MAAM,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC;AACrE,CAAC,CAAA,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAiC,KAIzD,EAAyB,EAAE;IAC1B,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,WAAW,GAAG,UAAU,CAC5B,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CACe,CAAC;IAClE,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,uBAAuB;QAC7B,WAAW;QACX,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBAChB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,CAAC;SACoD;KACxD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGJ;IACH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGH;CACJ,CAAC"}