@autobe/agent 0.30.4 → 0.30.5

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 (210) hide show
  1. package/lib/constants/AutoBeSystemPromptConstant.d.ts +5 -4
  2. package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
  3. package/lib/describe/image/orchestrateImageDescribeDraft.js +6 -6
  4. package/lib/describe/image/structures/IAutoBeImageDescribeDraftApplication.d.ts +12 -63
  5. package/lib/index.mjs +2918 -2842
  6. package/lib/index.mjs.map +1 -1
  7. package/lib/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.js +8 -8
  8. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +36 -37
  9. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  10. package/lib/orchestrate/analyze/orchestrateAnalyzeScenarioReview.js +7 -7
  11. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js +55 -42
  12. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js.map +1 -1
  13. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js +67 -54
  14. package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js.map +1 -1
  15. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js +24 -25
  16. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js.map +1 -1
  17. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js +24 -25
  18. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js.map +1 -1
  19. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js +30 -31
  20. package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js.map +1 -1
  21. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.d.ts +14 -52
  22. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +23 -96
  23. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.d.ts +12 -40
  24. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.d.ts +30 -88
  25. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.d.ts +35 -94
  26. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.d.ts +23 -93
  27. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.d.ts +15 -88
  28. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js +76 -31
  29. package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js.map +1 -1
  30. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +7 -7
  31. package/lib/orchestrate/common/structures/IAnalysisSectionEntry.d.ts +2 -8
  32. package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +8 -50
  33. package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.d.ts +1 -9
  34. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.d.ts +4 -23
  35. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.d.ts +3 -21
  36. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.d.ts +4 -22
  37. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.d.ts +4 -22
  38. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.d.ts +5 -17
  39. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.d.ts +7 -76
  40. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.d.ts +6 -89
  41. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.d.ts +7 -93
  42. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.d.ts +3 -22
  43. package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.d.ts +3 -22
  44. package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js +114 -139
  45. package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js.map +1 -1
  46. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +90 -91
  47. package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js.map +1 -1
  48. package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js +58 -59
  49. package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js.map +1 -1
  50. package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +58 -59
  51. package/lib/orchestrate/interface/orchestrateInterfaceGroup.js.map +1 -1
  52. package/lib/orchestrate/interface/orchestrateInterfaceOperation.js +108 -132
  53. package/lib/orchestrate/interface/orchestrateInterfaceOperation.js.map +1 -1
  54. package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js +72 -72
  55. package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +76 -77
  56. package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js.map +1 -1
  57. package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js +130 -159
  58. package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js.map +1 -1
  59. package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js +126 -155
  60. package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js.map +1 -1
  61. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js +114 -142
  62. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js.map +1 -1
  63. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +5 -5
  64. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +100 -129
  65. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
  66. package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js +120 -149
  67. package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js.map +1 -1
  68. package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.d.ts +10 -97
  69. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.d.ts +14 -83
  70. package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.d.ts +12 -90
  71. package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +12 -80
  72. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +21 -116
  73. package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.d.ts +24 -112
  74. package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.d.ts +11 -83
  75. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +11 -76
  76. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.d.ts +18 -96
  77. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.d.ts +11 -76
  78. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.d.ts +25 -107
  79. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +5 -31
  80. package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.d.ts +6 -42
  81. package/lib/orchestrate/prisma/orchestratePrismaAuthorization.js +41 -41
  82. package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js +62 -63
  83. package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js.map +1 -1
  84. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +40 -41
  85. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  86. package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js +60 -61
  87. package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js.map +1 -1
  88. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +112 -116
  89. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  90. package/lib/orchestrate/prisma/orchestratePrismaGroup.js +48 -49
  91. package/lib/orchestrate/prisma/orchestratePrismaGroup.js.map +1 -1
  92. package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js +70 -71
  93. package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js.map +1 -1
  94. package/lib/orchestrate/prisma/orchestratePrismaSchema.js +118 -122
  95. package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
  96. package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js +126 -131
  97. package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js.map +1 -1
  98. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.d.ts +22 -99
  99. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.d.ts +12 -109
  100. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.d.ts +14 -100
  101. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.d.ts +15 -108
  102. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.d.ts +24 -106
  103. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.d.ts +13 -76
  104. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.d.ts +13 -111
  105. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.d.ts +26 -97
  106. package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.d.ts +16 -93
  107. package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js +1 -1
  108. package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js.map +1 -1
  109. package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js +1 -1
  110. package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js.map +1 -1
  111. package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js +20 -2
  112. package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js.map +1 -1
  113. package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js +22 -2
  114. package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js.map +1 -1
  115. package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectCasting.js +7 -7
  116. package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js +86 -6
  117. package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js.map +1 -1
  118. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +38 -38
  119. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +34 -34
  120. package/lib/orchestrate/realize/orchestrateRealizeCollectorCorrectOverall.js +38 -38
  121. package/lib/orchestrate/realize/orchestrateRealizeCollectorPlan.js +54 -54
  122. package/lib/orchestrate/realize/orchestrateRealizeCollectorWrite.js +36 -36
  123. package/lib/orchestrate/realize/orchestrateRealizeOperationCorrectOverall.js +44 -44
  124. package/lib/orchestrate/realize/orchestrateRealizeOperationWrite.js +42 -42
  125. package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js +1 -0
  126. package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js.map +1 -1
  127. package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectOverall.js +46 -46
  128. package/lib/orchestrate/realize/orchestrateRealizeTransformerPlan.js +36 -36
  129. package/lib/orchestrate/realize/orchestrateRealizeTransformerWrite.js +44 -44
  130. package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.d.ts +18 -0
  131. package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js +167 -8
  132. package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js.map +1 -1
  133. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +17 -71
  134. package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.d.ts +32 -92
  135. package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.d.ts +32 -114
  136. package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.d.ts +29 -106
  137. package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.d.ts +38 -131
  138. package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.d.ts +16 -71
  139. package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.d.ts +16 -73
  140. package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.d.ts +37 -155
  141. package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.d.ts +25 -88
  142. package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.d.ts +48 -181
  143. package/lib/orchestrate/realize/utils/generateTS2339Hints.d.ts +5 -3
  144. package/lib/orchestrate/realize/utils/generateTS2339Hints.js +37 -19
  145. package/lib/orchestrate/realize/utils/generateTS2339Hints.js.map +1 -1
  146. package/lib/orchestrate/test/histories/transformTestOperationWriteHistory.js +2 -2
  147. package/lib/orchestrate/test/orchestrateTestScenario.js +22 -22
  148. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +22 -22
  149. package/package.json +5 -5
  150. package/src/constants/AutoBeSystemPromptConstant.ts +5 -4
  151. package/src/describe/image/structures/IAutoBeImageDescribeDraftApplication.ts +12 -63
  152. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.ts +14 -52
  153. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +23 -96
  154. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.ts +12 -40
  155. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.ts +30 -88
  156. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.ts +35 -94
  157. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.ts +23 -93
  158. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.ts +15 -88
  159. package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.ts +92 -31
  160. package/src/orchestrate/common/structures/IAnalysisSectionEntry.ts +2 -8
  161. package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +8 -50
  162. package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +1 -9
  163. package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.ts +4 -23
  164. package/src/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.ts +3 -21
  165. package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +4 -22
  166. package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +4 -22
  167. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.ts +5 -17
  168. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.ts +7 -76
  169. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts +6 -89
  170. package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.ts +7 -93
  171. package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.ts +3 -22
  172. package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.ts +3 -22
  173. package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.ts +10 -97
  174. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +14 -83
  175. package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.ts +12 -90
  176. package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +12 -80
  177. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +21 -116
  178. package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.ts +24 -112
  179. package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +11 -83
  180. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +11 -76
  181. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.ts +18 -96
  182. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.ts +11 -76
  183. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.ts +25 -107
  184. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +5 -31
  185. package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.ts +6 -42
  186. package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.ts +22 -99
  187. package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.ts +12 -109
  188. package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.ts +14 -100
  189. package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.ts +15 -108
  190. package/src/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.ts +24 -106
  191. package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.ts +13 -76
  192. package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.ts +13 -111
  193. package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.ts +26 -97
  194. package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.ts +16 -93
  195. package/src/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.ts +21 -1
  196. package/src/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.ts +26 -4
  197. package/src/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.ts +125 -9
  198. package/src/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.ts +1 -0
  199. package/src/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.ts +210 -7
  200. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +17 -71
  201. package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.ts +32 -92
  202. package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.ts +32 -114
  203. package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.ts +29 -106
  204. package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.ts +38 -131
  205. package/src/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.ts +16 -71
  206. package/src/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.ts +16 -73
  207. package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.ts +37 -155
  208. package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.ts +25 -88
  209. package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.ts +48 -181
  210. package/src/orchestrate/realize/utils/generateTS2339Hints.ts +39 -19
@@ -67,7 +67,7 @@ function orchestratePrismaGroupReview(ctx, props) {
67
67
  properties: {
68
68
  thinking: {
69
69
  type: "string",
70
- description: "Reflect on requirements analysis before acting.\n\nFor preliminary requests (getAnalysisSections,\ngetPreviousAnalysisSections, getPreviousDatabaseSchemas):\n\n- What business domains do you need to analyze?\n- What requirements will help verify group coverage?\n\nFor completion (complete):\n\n- What domains did you analyze?\n- How many revisions are you making and why?\n- Summarize the domain-to-group mapping."
70
+ description: "Reasoning about your current state: what's missing (preliminary) or what\nyou accomplished (completion)."
71
71
  },
72
72
  request: {
73
73
  oneOf: [
@@ -93,7 +93,7 @@ function orchestratePrismaGroupReview(ctx, props) {
93
93
  complete: "#/components/schemas/IAutoBeDatabaseGroupReviewApplication.IComplete"
94
94
  }
95
95
  },
96
- description: "Request type discriminator.\n\nUse preliminary requests (getAnalysisSections, etc.) to fetch\nrequirements documents. Use complete to submit group revisions after\nthorough domain coverage analysis."
96
+ description: "Action to perform. Exhausted preliminary types are removed from the\nunion."
97
97
  }
98
98
  },
99
99
  required: [
@@ -106,7 +106,7 @@ function orchestratePrismaGroupReview(ctx, props) {
106
106
  properties: {
107
107
  type: {
108
108
  "const": "getPreviousAnalysisSections",
109
- description: "Type discriminator for the request.\n\nValue \"getPreviousAnalysisSections\" indicates this is a preliminary data\nrequest for analysis sections from the previous iteration."
109
+ description: "Type discriminator."
110
110
  },
111
111
  sectionIds: {
112
112
  type: "array",
@@ -115,21 +115,21 @@ function orchestratePrismaGroupReview(ctx, props) {
115
115
  minimum: 0
116
116
  },
117
117
  minItems: 1,
118
- description: "List of section IDs to retrieve from the previous iteration.\n\nCRITICAL: DO NOT request the same section IDs that you have already\nrequested in previous calls."
118
+ description: "Section IDs to retrieve from previous iteration. DO NOT request same IDs\nalready requested in previous calls."
119
119
  }
120
120
  },
121
121
  required: [
122
122
  "type",
123
123
  "sectionIds"
124
124
  ],
125
- description: "Request to retrieve individual analysis sections from previous iteration by\nnumeric ID.\n\nSame as {@link IAutoBePreliminaryGetAnalysisSections} but for sections from\nthe previous generation cycle, enabling comparison and consistency checks."
125
+ description: "Request to retrieve analysis sections from the previous iteration by numeric\nID."
126
126
  },
127
127
  IAutoBePreliminaryGetAnalysisSections: {
128
128
  type: "object",
129
129
  properties: {
130
130
  type: {
131
131
  "const": "getAnalysisSections",
132
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getAnalysisSections\" indicates this is a preliminary\ndata request for individual analysis sections."
132
+ description: "Type discriminator."
133
133
  },
134
134
  sectionIds: {
135
135
  type: "array",
@@ -139,21 +139,21 @@ function orchestratePrismaGroupReview(ctx, props) {
139
139
  },
140
140
  minItems: 1,
141
141
  maxItems: 100,
142
- description: "List of section IDs to retrieve.\n\nThese are sequential integer IDs from the analysis sections catalog. Each\nID maps to a specific ### section in the requirements documents.\n\nCRITICAL: DO NOT request the same section IDs that you have already\nrequested in previous calls."
142
+ description: "Section IDs to retrieve. DO NOT request same IDs already requested in\nprevious calls."
143
143
  }
144
144
  },
145
145
  required: [
146
146
  "type",
147
147
  "sectionIds"
148
148
  ],
149
- description: "Request to retrieve individual analysis sections by numeric ID.\n\nInstead of loading entire analysis files (~110-120KB each), this loads\nspecific ### sections (~200-600 words each) identified by integer IDs from\nthe section catalog."
149
+ description: "Request to retrieve individual analysis sections by numeric ID."
150
150
  },
151
151
  IAutoBePreliminaryGetPreviousDatabaseSchemas: {
152
152
  type: "object",
153
153
  properties: {
154
154
  type: {
155
155
  "const": "getPreviousDatabaseSchemas",
156
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPreviousDatabaseSchemas\" indicates this is a\npreliminary data request for database schemas from a previous version."
156
+ description: "Type discriminator."
157
157
  },
158
158
  schemaNames: {
159
159
  type: "array",
@@ -161,14 +161,14 @@ function orchestratePrismaGroupReview(ctx, props) {
161
161
  type: "string"
162
162
  },
163
163
  minItems: 1,
164
- description: "List of database table names to retrieve from the previous version.\n\nThese are table schema names that were generated in a previous version and\nare needed as reference context for the current regeneration.\n\n**Important Notes:**\n\n- These schemas MUST exist in the previous version\n- This function is only available when a previous version exists\n- Used for reference/comparison, not for re-requesting within same execution\n- Table names are in snake_case (e.g., \"shopping_sale\", \"bbs_article\")\n\n**When This Function is Available:**\n\n- When a previous version exists\n- When user requests modifications to existing database schema\n- During correction/regeneration cycles that need previous schema context\n\n**When This Function is NOT Available:**\n\n- During initial generation (no previous version exists)\n- No previous database schemas available for this orchestration task\n\n**Example Table Names:**\n\n- \"users\", \"posts\", \"comments\"\n- \"shopping_sales\", \"shopping_orders\", \"shopping_products\"\n- \"bbs_articles\", \"bbs_article_files\""
164
+ description: "Table names to retrieve from previous iteration. DO NOT request same names\nalready requested in previous calls."
165
165
  }
166
166
  },
167
167
  required: [
168
168
  "type",
169
169
  "schemaNames"
170
170
  ],
171
- description: "Request to retrieve database schemas from a previous version.\n\nThis type is used to load database schema definitions that were generated in\na **previous version** of the AutoBE generation pipeline. This is NOT about\nre-requesting schemas within the same execution, but rather accessing\nartifacts from an earlier version.\n\n**Use Case:** When regenerating or modifying the database schema based on\nuser change requests, agents need to reference the previously generated\ndatabase schemas to understand the existing database structure and what needs\nto be modified.\n\n**Key Difference from `getDatabaseSchemas`:**\n\n- `getDatabaseSchemas`: Fetches schemas from the **current version** (the\n version being generated right now)\n- `getPreviousDatabaseSchemas`: Fetches schemas from the **previous version**\n (the last successfully generated version)\n\n**Example Scenario:**\n\n Initial generation:\n - DATABASE phase creates: users, posts, comments tables\n - Generation completes successfully\n\n User: \"Add email verification status to users\"\n\n Regeneration:\n - DATABASE phase starts regeneration\n - Calls getPreviousDatabaseSchemas([\"users\"])\n \u2192 Loads the previous version of users table schema\n - Creates new version with emailVerified field added\n\n**Waterfall + Spiral Pattern:**\n\nThis aligns with AutoBE's regeneration cycles where:\n\n- Compilation failures trigger regeneration with corrections\n- User modifications trigger new versions\n- Previous schemas serve as reference for incremental changes"
171
+ description: "Request to retrieve database schemas from the previous iteration.\n\nLoads database table definitions from the last successfully generated\nversion, used as reference context during regeneration or modification\ncycles."
172
172
  },
173
173
  "IAutoBeDatabaseGroupReviewApplication.IComplete": {
174
174
  type: "object",
@@ -179,14 +179,14 @@ function orchestratePrismaGroupReview(ctx, props) {
179
179
  },
180
180
  review: {
181
181
  type: "string",
182
- description: "Domain coverage analysis.\n\nDocument how you analyzed business requirements and mapped them to group\nmodifications:\n\n- What business domains are defined in requirements?\n- Does each domain have a corresponding group?\n- Are group boundaries appropriate?\n- Are kind assignments correct?\n\nBe specific - reference actual requirements and explain the\ndomain-to-revisions mapping."
182
+ description: "How business requirements map to proposed group modifications,\nidentifying coverage gaps."
183
183
  },
184
184
  revises: {
185
185
  type: "array",
186
186
  items: {
187
187
  $ref: "#/components/schemas/AutoBeDatabaseGroupRevise"
188
188
  },
189
- description: "Array of group revision operations.\n\nInclude all create, update, and erase operations identified during\nreview. Each operation must include a reason explaining why the change is\nnecessary.\n\n## Operation Types:\n\n### Create - Add missing groups\n\nUse when a business domain has no corresponding group.\n\n```typescript\n{\n \"type\": \"create\",\n \"reason\": \"Notification functionality exists in requirements but has no group\",\n \"group\": {\n \"thinking\": \"...\",\n \"review\": \"...\",\n \"rationale\": \"...\",\n \"namespace\": \"Notifications\",\n \"filename\": \"schema-10-notifications.prisma\",\n \"kind\": \"domain\"\n }\n}\n```\n\n### Update - Modify existing groups\n\nUse when a group has property issues.\n\n```typescript\n{\n \"type\": \"update\",\n \"reason\": \"Namespace uses incorrect casing\",\n \"originalNamespace\": \"products_catalog\",\n \"group\": {\n \"thinking\": \"...\",\n \"review\": \"...\",\n \"rationale\": \"...\",\n \"namespace\": \"Products\",\n \"filename\": \"schema-03-products.prisma\",\n \"kind\": \"domain\"\n }\n}\n```\n\n### Erase - Remove groups\n\nUse when a group is unnecessary.\n\n```typescript\n{\n \"type\": \"erase\",\n \"reason\": \"Group is redundant with existing Products group\",\n \"namespace\": \"Catalog\"\n}\n```\n\n## Constraints:\n\n- After revisions: exactly 1 authorization group, \u22651 domain groups\n- Each operation must have a clear, requirement-based reason\n- Empty array is valid if no modifications are needed\n\n## Naming Conventions:\n\n- Namespace: PascalCase (e.g., \"Products\", \"Orders\")\n- Filename: `schema-{number}-{domain}.prisma` format\n- Kind: \"authorization\" or \"domain\""
189
+ description: "Group revision operations (create/update/erase). Each must include a\nreason.\n\nConstraints:\n\n- After revisions: exactly 1 authorization group, at least 1 domain group\n- Empty array is valid if no modifications are needed\n\nNaming: namespace PascalCase, filename `schema-{number}-{domain}.prisma`,\nkind \"authorization\" or \"domain\"."
190
190
  }
191
191
  },
192
192
  required: [
@@ -216,22 +216,22 @@ function orchestratePrismaGroupReview(ctx, props) {
216
216
  update: "#/components/schemas/AutoBeDatabaseGroupReviseUpdate"
217
217
  }
218
218
  },
219
- description: "Group revision operation type.\n\nDiscriminated union representing all possible group modifications during the\ngroup review phase. The review agent examines generated component group\nskeletons and returns an array of these operations to correct issues:\n\n- **Create**: Add missing groups for uncovered business domains\n- **Update**: Fix group properties (namespace, filename, kind, reasoning)\n- **Erase**: Remove unnecessary or redundant groups"
219
+ description: "Group revision: create | update | erase."
220
220
  },
221
221
  AutoBeDatabaseGroupReviseCreate: {
222
222
  type: "object",
223
223
  properties: {
224
224
  type: {
225
225
  "const": "create",
226
- description: "Type discriminator indicating this is a create operation."
226
+ description: "Type discriminator."
227
227
  },
228
228
  reason: {
229
229
  type: "string",
230
- description: "Brief, concise reason for creating this group.\n\nExplain which business domain this group covers and why it was missing from\nthe initial generation.\n\n**IMPORTANT**: Keep it **concise** - one or two sentences maximum"
230
+ description: "Why this group is needed. Keep concise."
231
231
  },
232
232
  group: {
233
233
  $ref: "#/components/schemas/AutoBeDatabaseGroup",
234
- description: "The new group to add.\n\nMust be a complete AutoBeDatabaseGroup with all required fields."
234
+ description: "The new group to add (complete AutoBeDatabaseGroup)."
235
235
  }
236
236
  },
237
237
  required: [
@@ -239,31 +239,31 @@ function orchestratePrismaGroupReview(ctx, props) {
239
239
  "reason",
240
240
  "group"
241
241
  ],
242
- description: "Request to create a new group in the component skeleton list.\n\nUse this when you identify a missing business domain group that should exist\nbased on requirements analysis. Common scenarios:\n\n- A business domain was not identified during initial group generation\n- A domain was incorrectly merged into another group and needs separation\n- Requirements analysis reveals additional functional areas"
242
+ description: "Add a missing group to the component skeleton list."
243
243
  },
244
244
  AutoBeDatabaseGroup: {
245
245
  type: "object",
246
246
  properties: {
247
247
  thinking: {
248
248
  type: "string",
249
- description: "Initial thoughts on why these tables belong together.\n\n\u2B50 **REASONING FIELD #1**: This field comes FIRST to ensure the AI reasons\nthrough the component's purpose before determining technical details.\nFunction calling order matters - thinking drives decision-making.\n\n**Example:**\n\n \"These tables all relate to user management and authentication.\n They share common patterns like user identification and access control.\""
249
+ description: "Initial thoughts on why these tables belong together."
250
250
  },
251
251
  review: {
252
252
  type: "string",
253
- description: "Review considerations for this component grouping.\n\n\u2B50 **REASONING FIELD #2**: After initial thinking, the AI reviews its\ndecisions by considering relationships with other domains and validating\nthe grouping strategy.\n\n**Example:**\n\n \"Reviewed relationships with other domains. While customers create orders,\n the customer entity itself is fundamentally about user identity, not sales.\""
253
+ description: "Review considerations: relationships with other domains, grouping\nvalidation."
254
254
  },
255
255
  rationale: {
256
256
  type: "string",
257
- description: "Final rationale for this component's composition.\n\n\u2B50 **REASONING FIELD #3**: The conclusive reasoning that cements the\ncomponent's structure before committing to technical choices (namespace,\nfilename).\n\n**Example:**\n\n \"This component groups all actor-related tables to maintain a clear\n separation between identity management and business transactions.\""
257
+ description: "Final rationale cementing the component's structure."
258
258
  },
259
259
  namespace: {
260
260
  type: "string",
261
- description: "Business domain namespace that groups related models.\n\n\uD83D\uDD27 **TECHNICAL FIELD #1**: Determined AFTER reasoning is complete. Used in\nPrisma documentation comments as \"@\\namespace directive\". Examples:\n\"Systematic\", \"Actors\", \"Sales\", \"Carts\", \"Orders\", \"Coupons\", \"Coins\",\n\"Inquiries\", \"Favorites\", \"Articles\""
261
+ description: "Business domain namespace for Prisma"
262
262
  },
263
263
  filename: {
264
264
  type: "string",
265
265
  pattern: "^[a-zA-Z0-9._-]+\\.prisma$",
266
- description: "Target filename for the Prisma schema file containing this component's\ntables.\n\n\uD83D\uDD27 **TECHNICAL FIELD #2**: Determined AFTER reasoning and namespace are\ncomplete. Follows the naming convention `schema-{number}-{domain}.prisma`\nwhere the number indicates dependency order and domain represents the\nbusiness area."
266
+ description: "Prisma schema filename. Convention: `schema-{number}-{domain}.prisma` where\nnumber indicates dependency order."
267
267
  },
268
268
  kind: {
269
269
  oneOf: [
@@ -274,7 +274,7 @@ function orchestratePrismaGroupReview(ctx, props) {
274
274
  "const": "domain"
275
275
  }
276
276
  ],
277
- description: "Kind of the component group.\n\n\uD83D\uDD27 **TECHNICAL FIELD #3**: Identifies whether this group contains\nauthentication/authorization tables or business domain tables.\n\n- **\"authorization\"**: Contains authentication and authorization tables\n (users, sessions, password resets, email verifications, etc.). These\n groups are processed by the Authorization Agent to generate core\n authentication tables for each actor type.\n- **\"domain\"**: Contains business domain tables (products, orders, etc.).\n These groups are processed by the Component Agent to generate business\n logic tables.\n\nThe Authorization Agent only processes groups with `kind: \"authorization\"`,\nwhile the Component Agent processes all groups but avoids creating core\nauthentication tables in authorization groups."
277
+ description: "Component group kind.\n\n- `\"authorization\"`: Auth tables (users, sessions, password resets).\n Processed by Authorization Agent.\n- `\"domain\"`: Business tables (products, orders). Processed by Component\n Agent."
278
278
  }
279
279
  },
280
280
  required: [
@@ -285,22 +285,22 @@ function orchestratePrismaGroupReview(ctx, props) {
285
285
  "filename",
286
286
  "kind"
287
287
  ],
288
- description: "Database component skeleton generated during the DATABASE_GROUP phase.\n\nWhen requirements are too extensive to process at once, the DATABASE_GROUP\nagent first generates multiple component skeletons that define the overall\ndatabase structure. Each skeleton specifies a Prisma schema file with its\nreasoning and technical details, but WITHOUT the actual table definitions.\n\n## Generation Process\n\nThe AI agent analyzes business requirements and creates component skeletons\nby:\n\n1. **Reasoning first**: Determining why certain tables belong together\n2. **Technical decisions second**: Choosing appropriate namespace and filename\n\nThis skeleton will later be filled with table definitions in the\nDATABASE_COMPONENT phase.\n\n## Property Order Matters\n\nThe field order is deliberately designed for function calling. The AI must\nreason through the component's purpose (thinking \u2192 review \u2192 rationale) BEFORE\nmaking technical commitments (namespace \u2192 filename)."
288
+ description: "Database component skeleton generated during the DATABASE_GROUP phase.\n\nField order is deliberate: reasoning fields (thinking \u2192 review \u2192 rationale)\ncome BEFORE technical fields (namespace \u2192 filename \u2192 kind) to ensure the AI\nreasons through purpose before committing to technical details."
289
289
  },
290
290
  AutoBeDatabaseGroupReviseErase: {
291
291
  type: "object",
292
292
  properties: {
293
293
  type: {
294
294
  "const": "erase",
295
- description: "Type discriminator indicating this is an erase operation."
295
+ description: "Type discriminator."
296
296
  },
297
297
  reason: {
298
298
  type: "string",
299
- description: "Brief, concise reason for deletion.\n\nExplain why this group should be removed and what issue it causes.\n\n**IMPORTANT**: Keep it **concise** - one or two sentences maximum"
299
+ description: "Why this group should be removed. Keep concise."
300
300
  },
301
301
  namespace: {
302
302
  type: "string",
303
- description: "The namespace of the group to remove.\n\nMust match exactly an existing group's namespace."
303
+ description: "Namespace of the group to remove. Must match exactly."
304
304
  }
305
305
  },
306
306
  required: [
@@ -308,26 +308,26 @@ function orchestratePrismaGroupReview(ctx, props) {
308
308
  "reason",
309
309
  "namespace"
310
310
  ],
311
- description: "Request to erase a group from the component skeleton list.\n\nUse this when a group should be removed:\n\n- Group is unnecessary or redundant with another group\n- Group does not correspond to any business domain in requirements\n- Group was hallucinated and not derived from actual requirements\n- Group's domain should be merged into another existing group"
311
+ description: "Remove a group from the component skeleton list."
312
312
  },
313
313
  AutoBeDatabaseGroupReviseUpdate: {
314
314
  type: "object",
315
315
  properties: {
316
316
  type: {
317
317
  "const": "update",
318
- description: "Type discriminator indicating this is an update operation."
318
+ description: "Type discriminator."
319
319
  },
320
320
  reason: {
321
321
  type: "string",
322
- description: "Brief, concise reason for this update.\n\nExplain what issue this fixes and why the change is necessary.\n\n**IMPORTANT**: Keep it **concise** - one or two sentences maximum"
322
+ description: "Why this fix is needed. Keep concise."
323
323
  },
324
324
  originalNamespace: {
325
325
  type: "string",
326
- description: "The namespace of the original group to modify.\n\nMust match exactly an existing group's namespace."
326
+ description: "Namespace of the original group. Must match exactly."
327
327
  },
328
328
  group: {
329
329
  $ref: "#/components/schemas/AutoBeDatabaseGroup",
330
- description: "The updated group definition.\n\nMust be a complete AutoBeDatabaseGroup with all required fields."
330
+ description: "Updated group definition (complete AutoBeDatabaseGroup)."
331
331
  }
332
332
  },
333
333
  required: [
@@ -336,7 +336,7 @@ function orchestratePrismaGroupReview(ctx, props) {
336
336
  "originalNamespace",
337
337
  "group"
338
338
  ],
339
- description: "Request to update an existing group in the component skeleton list.\n\nUse this when a group has issues that need correction:\n\n- Namespace naming convention violations\n- Filename format issues\n- Incorrect kind assignment (authorization vs domain)\n- Domain scope needs adjustment (thinking/review/rationale updates)"
339
+ description: "Fix an existing group's properties (namespace, filename, kind, reasoning)."
340
340
  }
341
341
  }
342
342
  },
@@ -347,14 +347,13 @@ function orchestratePrismaGroupReview(ctx, props) {
347
347
  parameters: [
348
348
  {
349
349
  name: "props",
350
- description: " Request containing either preliminary data request or complete\ntask with group revisions",
351
350
  required: true,
352
351
  schema: {
353
352
  $ref: "#/components/schemas/IAutoBeDatabaseGroupReviewApplication.IProps"
354
353
  }
355
354
  }
356
355
  ],
357
- description: "Analyze requirements and review the component group skeletons.\n\nYour PRIMARY task is to verify that the group structure provides complete,\nwell-organized coverage of all business domains described in the\nrequirements. Review existing groups and identify necessary modifications\nusing create, update, or erase operations.\n\nALWAYS fetch analysis sections first using `getAnalysisSections` to\nunderstand what business domains exist, then systematically verify group\ncoverage and apply corrections."
356
+ description: "Process group review task or retrieve preliminary data."
358
357
  }
359
358
  ]
360
359
  },
@@ -697,11 +696,11 @@ function createController(props) {
697
696
  type: "object",
698
697
  properties: {
699
698
  thinking: {
700
- description: "Reflect on requirements analysis before acting.\n\nFor preliminary requests (getAnalysisSections,\ngetPreviousAnalysisSections, getPreviousDatabaseSchemas):\n\n- What business domains do you need to analyze?\n- What requirements will help verify group coverage?\n\nFor completion (complete):\n\n- What domains did you analyze?\n- How many revisions are you making and why?\n- Summarize the domain-to-group mapping.",
699
+ description: "Reasoning about your current state: what's missing (preliminary) or what\nyou accomplished (completion).",
701
700
  type: "string"
702
701
  },
703
702
  request: {
704
- description: "Request type discriminator.\n\nUse preliminary requests (getAnalysisSections, etc.) to fetch\nrequirements documents. Use complete to submit group revisions after\nthorough domain coverage analysis.",
703
+ description: "Action to perform. Exhausted preliminary types are removed from the\nunion.",
705
704
  anyOf: [
706
705
  {
707
706
  $ref: "#/$defs/IAutoBePreliminaryGetPreviousAnalysisSections"
@@ -734,18 +733,18 @@ function createController(props) {
734
733
  additionalProperties: false,
735
734
  $defs: {
736
735
  IAutoBePreliminaryGetPreviousAnalysisSections: {
737
- description: "Request to retrieve individual analysis sections from previous iteration by\nnumeric ID.\n\nSame as {@link IAutoBePreliminaryGetAnalysisSections} but for sections from\nthe previous generation cycle, enabling comparison and consistency checks.",
736
+ description: "Request to retrieve analysis sections from the previous iteration by numeric\nID.",
738
737
  type: "object",
739
738
  properties: {
740
739
  type: {
741
- description: "Type discriminator for the request.\n\nValue \"getPreviousAnalysisSections\" indicates this is a preliminary data\nrequest for analysis sections from the previous iteration.",
740
+ description: "Type discriminator.",
742
741
  type: "string",
743
742
  "enum": [
744
743
  "getPreviousAnalysisSections"
745
744
  ]
746
745
  },
747
746
  sectionIds: {
748
- description: "List of section IDs to retrieve from the previous iteration.\n\nCRITICAL: DO NOT request the same section IDs that you have already\nrequested in previous calls.",
747
+ description: "Section IDs to retrieve from previous iteration. DO NOT request same IDs\nalready requested in previous calls.",
749
748
  type: "array",
750
749
  items: {
751
750
  type: "integer",
@@ -760,18 +759,18 @@ function createController(props) {
760
759
  ]
761
760
  },
762
761
  IAutoBePreliminaryGetAnalysisSections: {
763
- description: "Request to retrieve individual analysis sections by numeric ID.\n\nInstead of loading entire analysis files (~110-120KB each), this loads\nspecific ### sections (~200-600 words each) identified by integer IDs from\nthe section catalog.",
762
+ description: "Request to retrieve individual analysis sections by numeric ID.",
764
763
  type: "object",
765
764
  properties: {
766
765
  type: {
767
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getAnalysisSections\" indicates this is a preliminary\ndata request for individual analysis sections.",
766
+ description: "Type discriminator.",
768
767
  type: "string",
769
768
  "enum": [
770
769
  "getAnalysisSections"
771
770
  ]
772
771
  },
773
772
  sectionIds: {
774
- description: "List of section IDs to retrieve.\n\nThese are sequential integer IDs from the analysis sections catalog. Each\nID maps to a specific ### section in the requirements documents.\n\nCRITICAL: DO NOT request the same section IDs that you have already\nrequested in previous calls.",
773
+ description: "Section IDs to retrieve. DO NOT request same IDs already requested in\nprevious calls.",
775
774
  type: "array",
776
775
  items: {
777
776
  type: "integer",
@@ -787,18 +786,18 @@ function createController(props) {
787
786
  ]
788
787
  },
789
788
  IAutoBePreliminaryGetPreviousDatabaseSchemas: {
790
- description: "Request to retrieve database schemas from a previous version.\n\nThis type is used to load database schema definitions that were generated in\na **previous version** of the AutoBE generation pipeline. This is NOT about\nre-requesting schemas within the same execution, but rather accessing\nartifacts from an earlier version.\n\n**Use Case:** When regenerating or modifying the database schema based on\nuser change requests, agents need to reference the previously generated\ndatabase schemas to understand the existing database structure and what needs\nto be modified.\n\n**Key Difference from `getDatabaseSchemas`:**\n\n- `getDatabaseSchemas`: Fetches schemas from the **current version** (the\n version being generated right now)\n- `getPreviousDatabaseSchemas`: Fetches schemas from the **previous version**\n (the last successfully generated version)\n\n**Example Scenario:**\n\n Initial generation:\n - DATABASE phase creates: users, posts, comments tables\n - Generation completes successfully\n\n User: \"Add email verification status to users\"\n\n Regeneration:\n - DATABASE phase starts regeneration\n - Calls getPreviousDatabaseSchemas([\"users\"])\n \u2192 Loads the previous version of users table schema\n - Creates new version with emailVerified field added\n\n**Waterfall + Spiral Pattern:**\n\nThis aligns with AutoBE's regeneration cycles where:\n\n- Compilation failures trigger regeneration with corrections\n- User modifications trigger new versions\n- Previous schemas serve as reference for incremental changes",
789
+ description: "Request to retrieve database schemas from the previous iteration.\n\nLoads database table definitions from the last successfully generated\nversion, used as reference context during regeneration or modification\ncycles.",
791
790
  type: "object",
792
791
  properties: {
793
792
  type: {
794
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPreviousDatabaseSchemas\" indicates this is a\npreliminary data request for database schemas from a previous version.",
793
+ description: "Type discriminator.",
795
794
  type: "string",
796
795
  "enum": [
797
796
  "getPreviousDatabaseSchemas"
798
797
  ]
799
798
  },
800
799
  schemaNames: {
801
- description: "List of database table names to retrieve from the previous version.\n\nThese are table schema names that were generated in a previous version and\nare needed as reference context for the current regeneration.\n\n**Important Notes:**\n\n- These schemas MUST exist in the previous version\n- This function is only available when a previous version exists\n- Used for reference/comparison, not for re-requesting within same execution\n- Table names are in snake_case (e.g., \"shopping_sale\", \"bbs_article\")\n\n**When This Function is Available:**\n\n- When a previous version exists\n- When user requests modifications to existing database schema\n- During correction/regeneration cycles that need previous schema context\n\n**When This Function is NOT Available:**\n\n- During initial generation (no previous version exists)\n- No previous database schemas available for this orchestration task\n\n**Example Table Names:**\n\n- \"users\", \"posts\", \"comments\"\n- \"shopping_sales\", \"shopping_orders\", \"shopping_products\"\n- \"bbs_articles\", \"bbs_article_files\"",
800
+ description: "Table names to retrieve from previous iteration. DO NOT request same names\nalready requested in previous calls.",
802
801
  type: "array",
803
802
  items: {
804
803
  type: "string"
@@ -823,11 +822,11 @@ function createController(props) {
823
822
  ]
824
823
  },
825
824
  review: {
826
- description: "Domain coverage analysis.\n\nDocument how you analyzed business requirements and mapped them to group\nmodifications:\n\n- What business domains are defined in requirements?\n- Does each domain have a corresponding group?\n- Are group boundaries appropriate?\n- Are kind assignments correct?\n\nBe specific - reference actual requirements and explain the\ndomain-to-revisions mapping.",
825
+ description: "How business requirements map to proposed group modifications,\nidentifying coverage gaps.",
827
826
  type: "string"
828
827
  },
829
828
  revises: {
830
- description: "Array of group revision operations.\n\nInclude all create, update, and erase operations identified during\nreview. Each operation must include a reason explaining why the change is\nnecessary.\n\n## Operation Types:\n\n### Create - Add missing groups\n\nUse when a business domain has no corresponding group.\n\n```typescript\n{\n \"type\": \"create\",\n \"reason\": \"Notification functionality exists in requirements but has no group\",\n \"group\": {\n \"thinking\": \"...\",\n \"review\": \"...\",\n \"rationale\": \"...\",\n \"namespace\": \"Notifications\",\n \"filename\": \"schema-10-notifications.prisma\",\n \"kind\": \"domain\"\n }\n}\n```\n\n### Update - Modify existing groups\n\nUse when a group has property issues.\n\n```typescript\n{\n \"type\": \"update\",\n \"reason\": \"Namespace uses incorrect casing\",\n \"originalNamespace\": \"products_catalog\",\n \"group\": {\n \"thinking\": \"...\",\n \"review\": \"...\",\n \"rationale\": \"...\",\n \"namespace\": \"Products\",\n \"filename\": \"schema-03-products.prisma\",\n \"kind\": \"domain\"\n }\n}\n```\n\n### Erase - Remove groups\n\nUse when a group is unnecessary.\n\n```typescript\n{\n \"type\": \"erase\",\n \"reason\": \"Group is redundant with existing Products group\",\n \"namespace\": \"Catalog\"\n}\n```\n\n## Constraints:\n\n- After revisions: exactly 1 authorization group, \u22651 domain groups\n- Each operation must have a clear, requirement-based reason\n- Empty array is valid if no modifications are needed\n\n## Naming Conventions:\n\n- Namespace: PascalCase (e.g., \"Products\", \"Orders\")\n- Filename: `schema-{number}-{domain}.prisma` format\n- Kind: \"authorization\" or \"domain\"",
829
+ description: "Group revision operations (create/update/erase). Each must include a\nreason.\n\nConstraints:\n\n- After revisions: exactly 1 authorization group, at least 1 domain group\n- Empty array is valid if no modifications are needed\n\nNaming: namespace PascalCase, filename `schema-{number}-{domain}.prisma`,\nkind \"authorization\" or \"domain\".",
831
830
  type: "array",
832
831
  items: {
833
832
  $ref: "#/$defs/AutoBeDatabaseGroupRevise"
@@ -841,7 +840,7 @@ function createController(props) {
841
840
  ]
842
841
  },
843
842
  AutoBeDatabaseGroupRevise: {
844
- description: "Group revision operation type.\n\nDiscriminated union representing all possible group modifications during the\ngroup review phase. The review agent examines generated component group\nskeletons and returns an array of these operations to correct issues:\n\n- **Create**: Add missing groups for uncovered business domains\n- **Update**: Fix group properties (namespace, filename, kind, reasoning)\n- **Erase**: Remove unnecessary or redundant groups",
843
+ description: "Group revision: create | update | erase.",
845
844
  anyOf: [
846
845
  {
847
846
  $ref: "#/$defs/AutoBeDatabaseGroupReviseCreate"
@@ -863,22 +862,22 @@ function createController(props) {
863
862
  }
864
863
  },
865
864
  AutoBeDatabaseGroupReviseCreate: {
866
- description: "Request to create a new group in the component skeleton list.\n\nUse this when you identify a missing business domain group that should exist\nbased on requirements analysis. Common scenarios:\n\n- A business domain was not identified during initial group generation\n- A domain was incorrectly merged into another group and needs separation\n- Requirements analysis reveals additional functional areas",
865
+ description: "Add a missing group to the component skeleton list.",
867
866
  type: "object",
868
867
  properties: {
869
868
  type: {
870
- description: "Type discriminator indicating this is a create operation.",
869
+ description: "Type discriminator.",
871
870
  type: "string",
872
871
  "enum": [
873
872
  "create"
874
873
  ]
875
874
  },
876
875
  reason: {
877
- description: "Brief, concise reason for creating this group.\n\nExplain which business domain this group covers and why it was missing from\nthe initial generation.\n\n**IMPORTANT**: Keep it **concise** - one or two sentences maximum",
876
+ description: "Why this group is needed. Keep concise.",
878
877
  type: "string"
879
878
  },
880
879
  group: {
881
- description: "The new group to add.\n\nMust be a complete AutoBeDatabaseGroup with all required fields.",
880
+ description: "The new group to add (complete AutoBeDatabaseGroup).",
882
881
  $ref: "#/$defs/AutoBeDatabaseGroup"
883
882
  }
884
883
  },
@@ -889,32 +888,32 @@ function createController(props) {
889
888
  ]
890
889
  },
891
890
  AutoBeDatabaseGroup: {
892
- description: "Database component skeleton generated during the DATABASE_GROUP phase.\n\nWhen requirements are too extensive to process at once, the DATABASE_GROUP\nagent first generates multiple component skeletons that define the overall\ndatabase structure. Each skeleton specifies a Prisma schema file with its\nreasoning and technical details, but WITHOUT the actual table definitions.\n\n## Generation Process\n\nThe AI agent analyzes business requirements and creates component skeletons\nby:\n\n1. **Reasoning first**: Determining why certain tables belong together\n2. **Technical decisions second**: Choosing appropriate namespace and filename\n\nThis skeleton will later be filled with table definitions in the\nDATABASE_COMPONENT phase.\n\n## Property Order Matters\n\nThe field order is deliberately designed for function calling. The AI must\nreason through the component's purpose (thinking \u2192 review \u2192 rationale) BEFORE\nmaking technical commitments (namespace \u2192 filename).",
891
+ description: "Database component skeleton generated during the DATABASE_GROUP phase.\n\nField order is deliberate: reasoning fields (thinking \u2192 review \u2192 rationale)\ncome BEFORE technical fields (namespace \u2192 filename \u2192 kind) to ensure the AI\nreasons through purpose before committing to technical details.",
893
892
  type: "object",
894
893
  properties: {
895
894
  thinking: {
896
- description: "Initial thoughts on why these tables belong together.\n\n\u2B50 **REASONING FIELD #1**: This field comes FIRST to ensure the AI reasons\nthrough the component's purpose before determining technical details.\nFunction calling order matters - thinking drives decision-making.\n\n**Example:**\n\n \"These tables all relate to user management and authentication.\n They share common patterns like user identification and access control.\"",
895
+ description: "Initial thoughts on why these tables belong together.",
897
896
  type: "string"
898
897
  },
899
898
  review: {
900
- description: "Review considerations for this component grouping.\n\n\u2B50 **REASONING FIELD #2**: After initial thinking, the AI reviews its\ndecisions by considering relationships with other domains and validating\nthe grouping strategy.\n\n**Example:**\n\n \"Reviewed relationships with other domains. While customers create orders,\n the customer entity itself is fundamentally about user identity, not sales.\"",
899
+ description: "Review considerations: relationships with other domains, grouping\nvalidation.",
901
900
  type: "string"
902
901
  },
903
902
  rationale: {
904
- description: "Final rationale for this component's composition.\n\n\u2B50 **REASONING FIELD #3**: The conclusive reasoning that cements the\ncomponent's structure before committing to technical choices (namespace,\nfilename).\n\n**Example:**\n\n \"This component groups all actor-related tables to maintain a clear\n separation between identity management and business transactions.\"",
903
+ description: "Final rationale cementing the component's structure.",
905
904
  type: "string"
906
905
  },
907
906
  namespace: {
908
- description: "Business domain namespace that groups related models.\n\n\uD83D\uDD27 **TECHNICAL FIELD #1**: Determined AFTER reasoning is complete. Used in\nPrisma documentation comments as \"@\\namespace directive\". Examples:\n\"Systematic\", \"Actors\", \"Sales\", \"Carts\", \"Orders\", \"Coupons\", \"Coins\",\n\"Inquiries\", \"Favorites\", \"Articles\"",
907
+ description: "Business domain namespace for Prisma",
909
908
  type: "string"
910
909
  },
911
910
  filename: {
912
- description: "Target filename for the Prisma schema file containing this component's\ntables.\n\n\uD83D\uDD27 **TECHNICAL FIELD #2**: Determined AFTER reasoning and namespace are\ncomplete. Follows the naming convention `schema-{number}-{domain}.prisma`\nwhere the number indicates dependency order and domain represents the\nbusiness area.",
911
+ description: "Prisma schema filename. Convention: `schema-{number}-{domain}.prisma` where\nnumber indicates dependency order.",
913
912
  type: "string",
914
913
  pattern: "^[a-zA-Z0-9._-]+\\.prisma$"
915
914
  },
916
915
  kind: {
917
- description: "Kind of the component group.\n\n\uD83D\uDD27 **TECHNICAL FIELD #3**: Identifies whether this group contains\nauthentication/authorization tables or business domain tables.\n\n- **\"authorization\"**: Contains authentication and authorization tables\n (users, sessions, password resets, email verifications, etc.). These\n groups are processed by the Authorization Agent to generate core\n authentication tables for each actor type.\n- **\"domain\"**: Contains business domain tables (products, orders, etc.).\n These groups are processed by the Component Agent to generate business\n logic tables.\n\nThe Authorization Agent only processes groups with `kind: \"authorization\"`,\nwhile the Component Agent processes all groups but avoids creating core\nauthentication tables in authorization groups.",
916
+ description: "Component group kind.\n\n- `\"authorization\"`: Auth tables (users, sessions, password resets).\n Processed by Authorization Agent.\n- `\"domain\"`: Business tables (products, orders). Processed by Component\n Agent.",
918
917
  type: "string",
919
918
  "enum": [
920
919
  "authorization",
@@ -932,22 +931,22 @@ function createController(props) {
932
931
  ]
933
932
  },
934
933
  AutoBeDatabaseGroupReviseErase: {
935
- description: "Request to erase a group from the component skeleton list.\n\nUse this when a group should be removed:\n\n- Group is unnecessary or redundant with another group\n- Group does not correspond to any business domain in requirements\n- Group was hallucinated and not derived from actual requirements\n- Group's domain should be merged into another existing group",
934
+ description: "Remove a group from the component skeleton list.",
936
935
  type: "object",
937
936
  properties: {
938
937
  type: {
939
- description: "Type discriminator indicating this is an erase operation.",
938
+ description: "Type discriminator.",
940
939
  type: "string",
941
940
  "enum": [
942
941
  "erase"
943
942
  ]
944
943
  },
945
944
  reason: {
946
- description: "Brief, concise reason for deletion.\n\nExplain why this group should be removed and what issue it causes.\n\n**IMPORTANT**: Keep it **concise** - one or two sentences maximum",
945
+ description: "Why this group should be removed. Keep concise.",
947
946
  type: "string"
948
947
  },
949
948
  namespace: {
950
- description: "The namespace of the group to remove.\n\nMust match exactly an existing group's namespace.",
949
+ description: "Namespace of the group to remove. Must match exactly.",
951
950
  type: "string"
952
951
  }
953
952
  },
@@ -958,26 +957,26 @@ function createController(props) {
958
957
  ]
959
958
  },
960
959
  AutoBeDatabaseGroupReviseUpdate: {
961
- description: "Request to update an existing group in the component skeleton list.\n\nUse this when a group has issues that need correction:\n\n- Namespace naming convention violations\n- Filename format issues\n- Incorrect kind assignment (authorization vs domain)\n- Domain scope needs adjustment (thinking/review/rationale updates)",
960
+ description: "Fix an existing group's properties (namespace, filename, kind, reasoning).",
962
961
  type: "object",
963
962
  properties: {
964
963
  type: {
965
- description: "Type discriminator indicating this is an update operation.",
964
+ description: "Type discriminator.",
966
965
  type: "string",
967
966
  "enum": [
968
967
  "update"
969
968
  ]
970
969
  },
971
970
  reason: {
972
- description: "Brief, concise reason for this update.\n\nExplain what issue this fixes and why the change is necessary.\n\n**IMPORTANT**: Keep it **concise** - one or two sentences maximum",
971
+ description: "Why this fix is needed. Keep concise.",
973
972
  type: "string"
974
973
  },
975
974
  originalNamespace: {
976
- description: "The namespace of the original group to modify.\n\nMust match exactly an existing group's namespace.",
975
+ description: "Namespace of the original group. Must match exactly.",
977
976
  type: "string"
978
977
  },
979
978
  group: {
980
- description: "The updated group definition.\n\nMust be a complete AutoBeDatabaseGroup with all required fields.",
979
+ description: "Updated group definition (complete AutoBeDatabaseGroup).",
981
980
  $ref: "#/$defs/AutoBeDatabaseGroup"
982
981
  }
983
982
  },
@@ -990,7 +989,7 @@ function createController(props) {
990
989
  }
991
990
  }
992
991
  },
993
- description: "Analyze requirements and review the component group skeletons.\n\nYour PRIMARY task is to verify that the group structure provides complete,\nwell-organized coverage of all business domains described in the\nrequirements. Review existing groups and identify necessary modifications\nusing create, update, or erase operations.\n\nALWAYS fetch analysis sections first using `getAnalysisSections` to\nunderstand what business domains exist, then systematically verify group\ncoverage and apply corrections.",
992
+ description: "Process group review task or retrieve preliminary data.",
994
993
  validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu1(input.request)); const _io1 = input => "getAnalysisSections" === input.type && (Array.isArray(input.sectionIds) && (1 <= input.sectionIds.length && input.sectionIds.length <= 100 && input.sectionIds.every(elem => "number" === typeof elem && __typia_transform__isTypeUint32._isTypeUint32(elem)))); const _io2 = input => "getPreviousAnalysisSections" === input.type && (Array.isArray(input.sectionIds) && (1 <= input.sectionIds.length && input.sectionIds.every(elem => "number" === typeof elem && __typia_transform__isTypeUint32._isTypeUint32(elem)))); const _io3 = input => "getPreviousDatabaseSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io4 = input => "complete" === input.type && "string" === typeof input.review && (Array.isArray(input.revises) && input.revises.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io5 = input => "create" === input.type && "string" === typeof input.reason && ("object" === typeof input.group && null !== input.group && _io6(input.group)); const _io6 = input => "string" === typeof input.thinking && "string" === typeof input.review && "string" === typeof input.rationale && "string" === typeof input.namespace && ("string" === typeof input.filename && RegExp("^[a-zA-Z0-9._-]+\\.prisma$").test(input.filename)) && ("authorization" === input.kind || "domain" === input.kind); const _io7 = input => "erase" === input.type && "string" === typeof input.reason && "string" === typeof input.namespace; const _io8 = input => "update" === input.type && "string" === typeof input.reason && "string" === typeof input.originalNamespace && ("object" === typeof input.group && null !== input.group && _io6(input.group)); const _iu0 = input => (() => {
995
994
  if ("create" === input.type)
996
995
  return _io5(input);
@@ -1 +1 @@
1
- {"version":3,"file":"orchestratePrismaGroupReview.js","sourceRoot":"","sources":["../../../src/orchestrate/prisma/orchestratePrismaGroupReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,oEAgEC;;;;AAzED,kDAA4D;AAC5D,+BAA0B;AAG1B,uFAAoF;AACpF,qGAAkG;AAClG,2GAAwG;AAGxG,SAAsB,4BAA4B,CAChD,GAAkB,EAClB,KAGC;;QAED,MAAM,KAAK,GAAS,IAAI,IAAI,EAAE,CAAC;QAC/B,MAAM,WAAW,GAEb,IAAI,yDAA2B,CAAC;YAClC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;OACN;QAC3D,QAAQ,EAAE;YACR,OAAO,EAAE,QAAQ;SAClB;KACF,EACF,CAAC;IACF,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,MAAM;QACZ,WAAW;QACX,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBACjB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU;oBACnC,KAAK,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC;YACxC,CAAC;SAC8C;KAClD,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,qBAAiD,CAAC"}
1
+ {"version":3,"file":"orchestratePrismaGroupReview.js","sourceRoot":"","sources":["../../../src/orchestrate/prisma/orchestratePrismaGroupReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,oEAgEC;;;;AAzED,kDAA4D;AAC5D,+BAA0B;AAG1B,uFAAoF;AACpF,qGAAkG;AAClG,2GAAwG;AAGxG,SAAsB,4BAA4B,CAChD,GAAkB,EAClB,KAGC;;QAED,MAAM,KAAK,GAAS,IAAI,IAAI,EAAE,CAAC;QAC/B,MAAM,WAAW,GAEb,IAAI,yDAA2B,CAAC;YAClC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aACsD;YACjE,MAAM,EAAE,MAAM;YACd,KAAK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