@autobe/agent 0.25.6 → 0.26.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 (257) hide show
  1. package/lib/AutoBeAgent.js +3 -0
  2. package/lib/AutoBeAgent.js.map +1 -1
  3. package/lib/AutoBeMockAgent.js +15 -12
  4. package/lib/AutoBeMockAgent.js.map +1 -1
  5. package/lib/constants/AutoBeSystemPromptConstant.d.ts +26 -19
  6. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  7. package/lib/factory/consentFunctionCall.js +3 -0
  8. package/lib/factory/consentFunctionCall.js.map +1 -1
  9. package/lib/factory/createAutoBeContext.js +4 -1
  10. package/lib/factory/createAutoBeContext.js.map +1 -1
  11. package/lib/factory/getCommonPrompt.d.ts +2 -0
  12. package/lib/factory/getCommonPrompt.js +20 -0
  13. package/lib/factory/getCommonPrompt.js.map +1 -0
  14. package/lib/index.mjs +2636 -2258
  15. package/lib/index.mjs.map +1 -1
  16. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +1 -1
  17. package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
  18. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +2 -2
  19. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
  20. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +6 -6
  21. package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
  22. package/lib/orchestrate/analyze/orchestrateAnalyze.js +1 -1
  23. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  24. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +73 -73
  25. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  26. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +2 -2
  27. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +9 -9
  28. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +1 -1
  29. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +2 -17
  30. package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -1
  31. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.d.ts +6 -0
  32. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js +58 -0
  33. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js.map +1 -0
  34. package/lib/orchestrate/facade/transformFacadeStateMessage.js +1 -1
  35. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
  36. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +2 -2
  37. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +8 -8
  38. package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
  39. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
  40. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
  41. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
  42. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
  43. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +1 -1
  44. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
  45. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +2 -2
  46. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
  47. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
  48. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
  49. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
  50. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
  51. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +1 -0
  52. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +46 -20
  53. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
  54. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.d.ts +5 -0
  55. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js +51 -0
  56. package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js.map +1 -0
  57. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.d.ts +11 -0
  58. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js +81 -0
  59. package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js.map +1 -0
  60. package/lib/orchestrate/interface/orchestrateInterface.js +24 -4
  61. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
  62. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +52 -52
  63. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
  64. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +2 -2
  65. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  66. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +2 -2
  67. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
  68. package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
  69. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +2 -2
  70. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
  71. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +57 -57
  72. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  73. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +43 -43
  74. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
  75. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +4 -4
  76. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
  77. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.d.ts +7 -0
  78. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +444 -0
  79. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -0
  80. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +12 -0
  81. package/lib/orchestrate/interface/{orchestrateInterfaceSchemasReview.js → orchestrateInterfaceSchemaReview.js} +66 -57
  82. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -0
  83. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +9 -6
  84. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
  85. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +22 -22
  86. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +7 -7
  87. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.d.ts +101 -0
  88. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.js +3 -0
  89. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.js.map +1 -0
  90. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.d.ts +97 -0
  91. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js +3 -0
  92. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js.map +1 -0
  93. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +44 -0
  94. package/lib/orchestrate/interface/structures/{IAutobeInterfaceSchemasReviewApplication.js → IAutoBeInterfaceSchemaRenameApplication.js} +1 -1
  95. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.js.map +1 -0
  96. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.d.ts +92 -0
  97. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js +3 -0
  98. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js.map +1 -0
  99. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +42 -1
  100. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
  101. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +94 -0
  102. package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
  103. package/lib/orchestrate/interface/utils/OperationValidator.d.ts +1 -1
  104. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +13 -13
  105. package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
  106. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +1 -1
  107. package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
  108. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +1 -1
  109. package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
  110. package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +2 -2
  111. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +2 -2
  112. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  113. package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +2 -2
  114. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +2 -2
  115. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
  116. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +2 -2
  117. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js +8 -7
  118. package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
  119. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +4 -4
  120. package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
  121. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.d.ts +4 -7
  122. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js +8 -18
  123. package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +1 -1
  124. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -1
  125. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +8 -28
  126. package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
  127. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +1 -1
  128. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +16 -280
  129. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
  130. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +1 -1
  131. package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
  132. package/lib/orchestrate/realize/orchestrateRealize.js +2 -2
  133. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  134. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +12 -12
  135. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
  136. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +9 -9
  137. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
  138. package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +1 -1
  139. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +43 -22
  140. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  141. package/lib/orchestrate/realize/{orchestRateRealizeCorrectCasting.js → orchestrateRealizeCorrectCasting.js} +58 -46
  142. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -0
  143. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +3 -3
  144. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +2 -2
  145. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +6 -6
  146. package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -1
  147. package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -1
  148. package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
  149. package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +2 -2
  150. package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -1
  151. package/lib/orchestrate/realize/utils/getRealizeWriteDto.js +1 -1
  152. package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -1
  153. package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js +2 -2
  154. package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -1
  155. package/lib/orchestrate/realize/utils/printErrorHints.js +1 -1
  156. package/lib/orchestrate/realize/utils/printErrorHints.js.map +1 -1
  157. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js +1 -1
  158. package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
  159. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +5 -22
  160. package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
  161. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +10 -10
  162. package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -1
  163. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +5 -5
  164. package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
  165. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +2 -2
  166. package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
  167. package/lib/orchestrate/test/orchestrateTestCorrect.js +2 -0
  168. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  169. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +1 -0
  170. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
  171. package/lib/orchestrate/test/orchestrateTestScenario.js +26 -26
  172. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  173. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +2 -2
  174. package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
  175. package/lib/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.d.ts → IAutoBeTestScenarioAuthorizationActor.d.ts} +1 -1
  176. package/lib/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.js → IAutoBeTestScenarioAuthorizationActor.js} +1 -1
  177. package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationActor.js.map +1 -0
  178. package/package.json +5 -5
  179. package/src/AutoBeAgent.ts +3 -0
  180. package/src/AutoBeMockAgent.ts +15 -12
  181. package/src/constants/AutoBeSystemPromptConstant.ts +26 -19
  182. package/src/factory/consentFunctionCall.ts +4 -0
  183. package/src/factory/createAutoBeContext.ts +5 -1
  184. package/src/factory/getCommonPrompt.ts +25 -0
  185. package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +5 -5
  186. package/src/orchestrate/analyze/orchestrateAnalyze.ts +1 -1
  187. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +3 -3
  188. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +9 -9
  189. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +1 -1
  190. package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +2 -20
  191. package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.ts +65 -0
  192. package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +9 -9
  193. package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +45 -20
  194. package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.ts +55 -0
  195. package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.ts +90 -0
  196. package/src/orchestrate/interface/orchestrateInterface.ts +34 -14
  197. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +18 -18
  198. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +4 -4
  199. package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +2 -2
  200. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +5 -5
  201. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +23 -23
  202. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +4 -4
  203. package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +2 -2
  204. package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +269 -0
  205. package/src/orchestrate/interface/{orchestrateInterfaceSchemasReview.ts → orchestrateInterfaceSchemaReview.ts} +88 -70
  206. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +16 -8
  207. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +26 -22
  208. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +7 -7
  209. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.ts +108 -0
  210. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.ts +104 -0
  211. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +45 -0
  212. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.ts +99 -0
  213. package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +45 -3
  214. package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +110 -0
  215. package/src/orchestrate/interface/utils/OperationValidator.ts +1 -1
  216. package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +12 -12
  217. package/src/orchestrate/prisma/orchestratePrisma.ts +4 -4
  218. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +4 -4
  219. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +7 -7
  220. package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +8 -7
  221. package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +4 -4
  222. package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +14 -28
  223. package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +13 -30
  224. package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +20 -285
  225. package/src/orchestrate/realize/orchestrateRealize.ts +1 -1
  226. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +9 -9
  227. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +3 -3
  228. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +74 -60
  229. package/src/orchestrate/realize/{orchestRateRealizeCorrectCasting.ts → orchestrateRealizeCorrectCasting.ts} +86 -85
  230. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +3 -3
  231. package/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.ts +10 -7
  232. package/src/orchestrate/realize/utils/generateRealizeScenario.ts +1 -1
  233. package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +2 -2
  234. package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +1 -1
  235. package/src/orchestrate/realize/utils/getRealizeWriteInputType.ts +2 -2
  236. package/src/orchestrate/realize/utils/printErrorHints.ts +1 -1
  237. package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +1 -1
  238. package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +6 -24
  239. package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +10 -10
  240. package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +12 -10
  241. package/src/orchestrate/test/orchestrateTestCorrect.ts +2 -0
  242. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +1 -0
  243. package/src/orchestrate/test/orchestrateTestScenario.ts +30 -30
  244. package/src/orchestrate/test/orchestrateTestScenarioReview.ts +2 -2
  245. package/src/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.ts → IAutoBeTestScenarioAuthorizationActor.ts} +1 -1
  246. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
  247. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
  248. package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
  249. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
  250. package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
  251. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
  252. package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
  253. package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +0 -1
  254. package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
  255. package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +0 -67
  256. package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +0 -96
  257. /package/lib/orchestrate/realize/{orchestRateRealizeCorrectCasting.d.ts → orchestrateRealizeCorrectCasting.d.ts} +0 -0
@@ -0,0 +1,444 @@
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.orchestrateInterfaceSchemaRename = orchestrateInterfaceSchemaRename;
49
+ const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
50
+ const openapi_1 = require("@samchon/openapi");
51
+ const typia_1 = __importDefault(require("typia"));
52
+ const uuid_1 = require("uuid");
53
+ const assertSchemaModel_1 = require("../../context/assertSchemaModel");
54
+ const divideArray_1 = require("../../utils/divideArray");
55
+ const executeCachedBatch_1 = require("../../utils/executeCachedBatch");
56
+ const transformInterfaceSchemaRenameHistories_1 = require("./histories/transformInterfaceSchemaRenameHistories");
57
+ function orchestrateInterfaceSchemaRename(ctx_1, document_1) {
58
+ return __awaiter(this, arguments, void 0, function* (ctx, document, capacity = 2 /* AutoBeConfigConstant.INTERFACE_CAPACITY */ * 10) {
59
+ const tableNames = ctx
60
+ .state()
61
+ .prisma.result.data.files.map((f) => f.models)
62
+ .flat()
63
+ .map((m) => m.name)
64
+ .filter((m) => m.startsWith("mv_") === false);
65
+ const entireTypeNames = new Set();
66
+ for (let name of Object.keys(document.components.schemas)) {
67
+ if (name.startsWith("IPage"))
68
+ name = name.replace("IPage", "");
69
+ name = name.split(".")[0];
70
+ entireTypeNames.add(name);
71
+ }
72
+ const matrix = (0, divideArray_1.divideArray)({
73
+ array: Array.from(entireTypeNames),
74
+ capacity,
75
+ });
76
+ const progress = {
77
+ total: entireTypeNames.size,
78
+ completed: 0,
79
+ };
80
+ const refactors = uniqueRefactors((yield (0, executeCachedBatch_1.executeCachedBatch)(matrix.map((typeNames) => (promptCacheKey) => divideAndConquer(ctx, {
81
+ tableNames,
82
+ typeNames,
83
+ promptCacheKey,
84
+ progress,
85
+ })))).flat());
86
+ orchestrateInterfaceSchemaRename.rename(document, refactors);
87
+ });
88
+ }
89
+ (function (orchestrateInterfaceSchemaRename) {
90
+ orchestrateInterfaceSchemaRename.rename = (document, refactors) => {
91
+ var _a, _b;
92
+ // REPLACE RULE
93
+ const replace = (typeName) => {
94
+ // exact match
95
+ const exact = refactors.find((r) => r.from === typeName);
96
+ if (exact !== undefined)
97
+ return exact.to;
98
+ // T.X match
99
+ const prefix = refactors.find((r) => typeName.startsWith(`${r.from}.`));
100
+ if (prefix !== undefined)
101
+ return typeName.replace(`${prefix.from}.`, `${prefix.to}.`);
102
+ // IPageT exact match
103
+ const pageExact = refactors.find((r) => typeName === `IPage${r.from}`);
104
+ if (pageExact !== undefined)
105
+ return `IPage${pageExact.to}`;
106
+ // IPageT.X match
107
+ const pagePrefix = refactors.find((r) => typeName.startsWith(`IPage${r.from}.`));
108
+ if (pagePrefix !== undefined)
109
+ return typeName.replace(`IPage${pagePrefix.from}.`, `IPage${pagePrefix.to}.`);
110
+ return null;
111
+ };
112
+ // JSON SCHEMA REFERENCES
113
+ const $refChangers = new Map();
114
+ for (const value of Object.values(document.components.schemas))
115
+ openapi_1.OpenApiTypeChecker.visit({
116
+ components: document.components,
117
+ schema: value,
118
+ closure: (schema) => {
119
+ if (openapi_1.OpenApiTypeChecker.isReference(schema) === false)
120
+ return;
121
+ const x = schema.$ref.split("/").pop();
122
+ const y = replace(x);
123
+ if (y !== null)
124
+ $refChangers.set(schema, () => {
125
+ schema.$ref = `#/components/schemas/${y}`;
126
+ });
127
+ },
128
+ });
129
+ for (const fn of $refChangers.values())
130
+ fn();
131
+ // COMPONENT SCHEMAS
132
+ for (const x of Object.keys(document.components.schemas)) {
133
+ const y = replace(x);
134
+ if (y !== null) {
135
+ document.components.schemas[y] = document.components.schemas[x];
136
+ delete document.components.schemas[x];
137
+ }
138
+ }
139
+ // OPERATIONS
140
+ for (const op of document.operations) {
141
+ if (op.requestBody)
142
+ op.requestBody.typeName =
143
+ (_a = replace(op.requestBody.typeName)) !== null && _a !== void 0 ? _a : op.requestBody.typeName;
144
+ if (op.responseBody)
145
+ op.responseBody.typeName =
146
+ (_b = replace(op.responseBody.typeName)) !== null && _b !== void 0 ? _b : op.responseBody.typeName;
147
+ }
148
+ };
149
+ })(orchestrateInterfaceSchemaRename || (exports.orchestrateInterfaceSchemaRename = orchestrateInterfaceSchemaRename = {}));
150
+ const divideAndConquer = (ctx, props) => __awaiter(void 0, void 0, void 0, function* () {
151
+ try {
152
+ const pointer = {
153
+ value: null,
154
+ };
155
+ const { tokenUsage } = yield ctx.conversate({
156
+ source: "interfaceSchemaRename",
157
+ controller: createController(ctx.model, (value) => (pointer.value = value)),
158
+ histories: (0, transformInterfaceSchemaRenameHistories_1.transformInterfaceSchemaRenameHistories)(props),
159
+ enforceFunctionCall: true,
160
+ promptCacheKey: props.promptCacheKey,
161
+ message: "Rename DTO type names for consistency and clarity.",
162
+ });
163
+ if (pointer.value === null) {
164
+ props.progress.completed += props.typeNames.length;
165
+ return [];
166
+ }
167
+ pointer.value.refactors = uniqueRefactors(pointer.value.refactors);
168
+ ctx.dispatch({
169
+ type: "interfaceSchemaRename",
170
+ id: (0, uuid_1.v7)(),
171
+ refactors: pointer.value.refactors,
172
+ total: props.progress.total,
173
+ completed: (props.progress.completed += props.typeNames.length),
174
+ tokenUsage,
175
+ created_at: new Date().toISOString(),
176
+ });
177
+ return pointer.value.refactors;
178
+ }
179
+ catch (_a) {
180
+ props.progress.completed += props.typeNames.length;
181
+ return [];
182
+ }
183
+ });
184
+ const uniqueRefactors = (refactors) => {
185
+ // Remove self-references (A->A)
186
+ refactors = refactors.filter((r) => r.from !== r.to);
187
+ // Remove duplicates (keep the first occurrence)
188
+ refactors = Array.from(new Map(refactors.map((r) => [r.from, r])).values());
189
+ // Build adjacency map: from -> to
190
+ const renameMap = new Map();
191
+ for (const r of refactors) {
192
+ renameMap.set(r.from, r.to);
193
+ }
194
+ // Resolve transitive chains: A->B, B->C becomes A->C
195
+ const resolveChain = (from) => {
196
+ const visited = new Set();
197
+ let current = from;
198
+ while (renameMap.has(current)) {
199
+ // Cycle detection: A->B, B->C, C->A
200
+ if (visited.has(current)) {
201
+ // Cycle detected, keep the last valid mapping before cycle
202
+ return current;
203
+ }
204
+ visited.add(current);
205
+ current = renameMap.get(current);
206
+ }
207
+ return current;
208
+ };
209
+ // Build final refactor list with resolved chains
210
+ const resolved = new Map();
211
+ for (const from of renameMap.keys()) {
212
+ const finalTo = resolveChain(from);
213
+ // Only include if actually changes
214
+ if (from !== finalTo) {
215
+ resolved.set(from, {
216
+ from,
217
+ to: finalTo,
218
+ });
219
+ }
220
+ }
221
+ return Array.from(resolved.values());
222
+ };
223
+ const createController = (model, build) => {
224
+ (0, assertSchemaModel_1.assertSchemaModel)(model);
225
+ const application = collection[model === "chatgpt" ? "chatgpt" : "claude"];
226
+ return {
227
+ protocol: "class",
228
+ name: "SchemaRenamer",
229
+ application,
230
+ execute: {
231
+ rename: (props) => {
232
+ build(props);
233
+ },
234
+ },
235
+ };
236
+ };
237
+ const collection = {
238
+ chatgpt: {
239
+ model: "chatgpt",
240
+ options: {
241
+ reference: true,
242
+ strict: false,
243
+ separate: null
244
+ },
245
+ functions: [
246
+ {
247
+ name: "rename",
248
+ parameters: {
249
+ description: " Properties containing refactoring operations to fix naming\nviolations.\n\n------------------------------\n\nCurrent Type: {@link IAutoBeInterfaceSchemaRenameApplication.IProps}",
250
+ type: "object",
251
+ properties: {
252
+ refactors: {
253
+ description: "List of refactoring operations to rename incorrectly named DTO types.\n\nEach refactor specifies:\n\n- `from`: The current INCORRECT type name (e.g., \"ISale\", \"IBbsComment\")\n- `to`: The CORRECT type name with all components preserved (e.g.,\n \"IShoppingSale\", \"IBbsArticleComment\")\n\nIMPORTANT: Only include type names that violate the naming rules. If a\ntype name correctly preserves all components from the table name, do NOT\ninclude it in the refactors list.\n\nThe orchestrator will automatically handle:\n\n- Renaming the base type (e.g., ISale \u2192 IShoppingSale)\n- Renaming all variants (e.g., ISale.ICreate \u2192 IShoppingSale.ICreate)\n- Renaming page types (e.g., IPageISale \u2192 IPageIShoppingSale)\n- Updating all $ref references throughout the OpenAPI document",
254
+ type: "array",
255
+ items: {
256
+ $ref: "#/$defs/AutoBeInterfaceSchemaRefactor"
257
+ }
258
+ }
259
+ },
260
+ required: [
261
+ "refactors"
262
+ ],
263
+ additionalProperties: false,
264
+ $defs: {
265
+ AutoBeInterfaceSchemaRefactor: {
266
+ description: "Represents a DTO type name refactoring operation.\n\nThis interface defines a single rename operation to fix DTO type names that\nviolate the critical naming convention: ALL words from the Prisma table name\nMUST be preserved in the DTO type name.\n\nCommon violations detected:\n- Service prefix omission: `shopping_sales` \u2192 `ISale` (should be `IShoppingSale`)\n- Intermediate word omission: `bbs_article_comments` \u2192 `IBbsComment` (should be `IBbsArticleComment`)\n- Multiple words omitted: `shopping_order_good_refunds` \u2192 `IShoppingRefund` (should be `IShoppingOrderGoodRefund`)\n\nThe orchestrator automatically handles renaming all related variants:\n- Base type: `ISale` \u2192 `IShoppingSale`\n- Create variant: `ISale.ICreate` \u2192 `IShoppingSale.ICreate`\n- Update variant: `ISale.IUpdate` \u2192 `IShoppingSale.IUpdate`\n- Summary variant: `ISale.ISummary` \u2192 `IShoppingSale.ISummary`\n- Page type: `IPageISale` \u2192 `IPageIShoppingSale`",
267
+ type: "object",
268
+ properties: {
269
+ from: {
270
+ description: "Current INCORRECT type name that violates naming rules.\n\nThis is the base type name (without variant suffixes or IPage prefix)\nthat omits service prefixes or intermediate components from the\nPrisma table name.",
271
+ type: "string"
272
+ },
273
+ to: {
274
+ description: "CORRECT type name with all components preserved.\n\nThis is the proper base type name that preserves ALL words from the\nPrisma table name, converted from snake_case to PascalCase with \"I\" prefix.",
275
+ type: "string"
276
+ }
277
+ },
278
+ required: [
279
+ "from",
280
+ "to"
281
+ ]
282
+ }
283
+ }
284
+ },
285
+ description: "Analyze DTO type names and identify naming violations.\n\nThis method examines existing DTO type names to detect violations of the\nCRITICAL naming rule: ALL words from the Prisma table name MUST be\npreserved in the DTO type name. Omitting intermediate words breaks\ntype-to-table traceability and causes system failures.\n\nThe method receives a list of Prisma table names and current DTO type\nnames, then identifies which type names incorrectly omit service prefixes\nor intermediate components from their corresponding table names.",
286
+ validate: (() => { const _io0 = input => Array.isArray(input.refactors) && input.refactors.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.from && "string" === typeof input.to; const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.refactors) || _report(_exceptionable, {
287
+ path: _path + ".refactors",
288
+ expected: "Array<AutoBeInterfaceSchemaRefactor>",
289
+ value: input.refactors
290
+ })) && input.refactors.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
291
+ path: _path + ".refactors[" + _index2 + "]",
292
+ expected: "AutoBeInterfaceSchemaRefactor",
293
+ value: elem
294
+ })) && _vo1(elem, _path + ".refactors[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
295
+ path: _path + ".refactors[" + _index2 + "]",
296
+ expected: "AutoBeInterfaceSchemaRefactor",
297
+ value: elem
298
+ })).every(flag => flag) || _report(_exceptionable, {
299
+ path: _path + ".refactors",
300
+ expected: "Array<AutoBeInterfaceSchemaRefactor>",
301
+ value: input.refactors
302
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.from || _report(_exceptionable, {
303
+ path: _path + ".from",
304
+ expected: "string",
305
+ value: input.from
306
+ }), "string" === typeof input.to || _report(_exceptionable, {
307
+ path: _path + ".to",
308
+ expected: "string",
309
+ value: input.to
310
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
311
+ if (false === __is(input)) {
312
+ errors = [];
313
+ _report = __typia_transform__validateReport._validateReport(errors);
314
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
315
+ path: _path + "",
316
+ expected: "IAutoBeInterfaceSchemaRenameApplication.IProps",
317
+ value: input
318
+ })) && _vo0(input, _path + "", true) || _report(true, {
319
+ path: _path + "",
320
+ expected: "IAutoBeInterfaceSchemaRenameApplication.IProps",
321
+ value: input
322
+ }))(input, "$input", true);
323
+ const success = 0 === errors.length;
324
+ return success ? {
325
+ success,
326
+ data: input
327
+ } : {
328
+ success,
329
+ errors,
330
+ data: input
331
+ };
332
+ }
333
+ return {
334
+ success: true,
335
+ data: input
336
+ };
337
+ }; })()
338
+ }
339
+ ]
340
+ },
341
+ claude: {
342
+ model: "claude",
343
+ options: {
344
+ reference: true,
345
+ separate: null
346
+ },
347
+ functions: [
348
+ {
349
+ name: "rename",
350
+ parameters: {
351
+ description: " Properties containing refactoring operations to fix naming\nviolations.\n\n------------------------------\n\nCurrent Type: {@link IAutoBeInterfaceSchemaRenameApplication.IProps}",
352
+ type: "object",
353
+ properties: {
354
+ refactors: {
355
+ description: "List of refactoring operations to rename incorrectly named DTO types.\n\nEach refactor specifies:\n\n- `from`: The current INCORRECT type name (e.g., \"ISale\", \"IBbsComment\")\n- `to`: The CORRECT type name with all components preserved (e.g.,\n \"IShoppingSale\", \"IBbsArticleComment\")\n\nIMPORTANT: Only include type names that violate the naming rules. If a\ntype name correctly preserves all components from the table name, do NOT\ninclude it in the refactors list.\n\nThe orchestrator will automatically handle:\n\n- Renaming the base type (e.g., ISale \u2192 IShoppingSale)\n- Renaming all variants (e.g., ISale.ICreate \u2192 IShoppingSale.ICreate)\n- Renaming page types (e.g., IPageISale \u2192 IPageIShoppingSale)\n- Updating all $ref references throughout the OpenAPI document",
356
+ type: "array",
357
+ items: {
358
+ $ref: "#/$defs/AutoBeInterfaceSchemaRefactor"
359
+ }
360
+ }
361
+ },
362
+ required: [
363
+ "refactors"
364
+ ],
365
+ additionalProperties: false,
366
+ $defs: {
367
+ AutoBeInterfaceSchemaRefactor: {
368
+ description: "Represents a DTO type name refactoring operation.\n\nThis interface defines a single rename operation to fix DTO type names that\nviolate the critical naming convention: ALL words from the Prisma table name\nMUST be preserved in the DTO type name.\n\nCommon violations detected:\n- Service prefix omission: `shopping_sales` \u2192 `ISale` (should be `IShoppingSale`)\n- Intermediate word omission: `bbs_article_comments` \u2192 `IBbsComment` (should be `IBbsArticleComment`)\n- Multiple words omitted: `shopping_order_good_refunds` \u2192 `IShoppingRefund` (should be `IShoppingOrderGoodRefund`)\n\nThe orchestrator automatically handles renaming all related variants:\n- Base type: `ISale` \u2192 `IShoppingSale`\n- Create variant: `ISale.ICreate` \u2192 `IShoppingSale.ICreate`\n- Update variant: `ISale.IUpdate` \u2192 `IShoppingSale.IUpdate`\n- Summary variant: `ISale.ISummary` \u2192 `IShoppingSale.ISummary`\n- Page type: `IPageISale` \u2192 `IPageIShoppingSale`",
369
+ type: "object",
370
+ properties: {
371
+ from: {
372
+ description: "Current INCORRECT type name that violates naming rules.\n\nThis is the base type name (without variant suffixes or IPage prefix)\nthat omits service prefixes or intermediate components from the\nPrisma table name.",
373
+ type: "string"
374
+ },
375
+ to: {
376
+ description: "CORRECT type name with all components preserved.\n\nThis is the proper base type name that preserves ALL words from the\nPrisma table name, converted from snake_case to PascalCase with \"I\" prefix.",
377
+ type: "string"
378
+ }
379
+ },
380
+ required: [
381
+ "from",
382
+ "to"
383
+ ]
384
+ }
385
+ }
386
+ },
387
+ description: "Analyze DTO type names and identify naming violations.\n\nThis method examines existing DTO type names to detect violations of the\nCRITICAL naming rule: ALL words from the Prisma table name MUST be\npreserved in the DTO type name. Omitting intermediate words breaks\ntype-to-table traceability and causes system failures.\n\nThe method receives a list of Prisma table names and current DTO type\nnames, then identifies which type names incorrectly omit service prefixes\nor intermediate components from their corresponding table names.",
388
+ validate: (() => { const _io0 = input => Array.isArray(input.refactors) && input.refactors.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.from && "string" === typeof input.to; const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.refactors) || _report(_exceptionable, {
389
+ path: _path + ".refactors",
390
+ expected: "Array<AutoBeInterfaceSchemaRefactor>",
391
+ value: input.refactors
392
+ })) && input.refactors.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
393
+ path: _path + ".refactors[" + _index2 + "]",
394
+ expected: "AutoBeInterfaceSchemaRefactor",
395
+ value: elem
396
+ })) && _vo1(elem, _path + ".refactors[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
397
+ path: _path + ".refactors[" + _index2 + "]",
398
+ expected: "AutoBeInterfaceSchemaRefactor",
399
+ value: elem
400
+ })).every(flag => flag) || _report(_exceptionable, {
401
+ path: _path + ".refactors",
402
+ expected: "Array<AutoBeInterfaceSchemaRefactor>",
403
+ value: input.refactors
404
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.from || _report(_exceptionable, {
405
+ path: _path + ".from",
406
+ expected: "string",
407
+ value: input.from
408
+ }), "string" === typeof input.to || _report(_exceptionable, {
409
+ path: _path + ".to",
410
+ expected: "string",
411
+ value: input.to
412
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
413
+ if (false === __is(input)) {
414
+ errors = [];
415
+ _report = __typia_transform__validateReport._validateReport(errors);
416
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
417
+ path: _path + "",
418
+ expected: "IAutoBeInterfaceSchemaRenameApplication.IProps",
419
+ value: input
420
+ })) && _vo0(input, _path + "", true) || _report(true, {
421
+ path: _path + "",
422
+ expected: "IAutoBeInterfaceSchemaRenameApplication.IProps",
423
+ value: input
424
+ }))(input, "$input", true);
425
+ const success = 0 === errors.length;
426
+ return success ? {
427
+ success,
428
+ data: input
429
+ } : {
430
+ success,
431
+ errors,
432
+ data: input
433
+ };
434
+ }
435
+ return {
436
+ success: true,
437
+ data: input
438
+ };
439
+ }; })()
440
+ }
441
+ ]
442
+ },
443
+ };
444
+ //# sourceMappingURL=orchestrateInterfaceSchemaRename.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestrateInterfaceSchemaRename.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,4EA4CC;;AA9DD,8CAK0B;AAE1B,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,iHAA8G;AAG9G,SAAsB,gCAAgC;yDAGpD,GAAwB,EACxB,QAAiC,EACjC,WAAmB,kDAA0C,EAAE;QAE/D,MAAM,UAAU,GAAa,GAAG;aAC7B,KAAK,EAAE;aACP,MAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE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OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,eAAe;QACrB,WAAW;QACX,OAAO,EAAE;YACP,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;gBAChB,KAAK,CAAC,KAAK,CAAC,CAAC;YACf,CAAC;SACgD;KACpD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGJ;IACH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGH;CACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { AutoBeOpenApi } from "@autobe/interface";
2
+ import { ILlmSchema } from "@samchon/openapi";
3
+ import { AutoBeContext } from "../../context/AutoBeContext";
4
+ interface IConfig {
5
+ type: "interfaceSchemaContentReview" | "interfaceSchemaSecurityReview" | "interfaceSchemaRelationReview";
6
+ systemPrompt: string;
7
+ }
8
+ export declare function orchestrateInterfaceSchemaReview<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, config: IConfig, props: {
9
+ document: AutoBeOpenApi.IDocument;
10
+ instruction: string;
11
+ }, capacity?: number): Promise<Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>>;
12
+ export {};