@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
@@ -80,7 +80,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
80
80
  properties: {
81
81
  thinking: {
82
82
  type: "string",
83
- description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on\nyour current state and explain your reasoning:\n\nFor preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):\n\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature\ncompletion."
83
+ description: "Reasoning about your current state: what's missing (preliminary) or what\nyou accomplished (completion)."
84
84
  },
85
85
  request: {
86
86
  oneOf: [
@@ -114,7 +114,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
114
114
  complete: "#/components/schemas/IAutoBeInterfaceEndpointReviewApplication.IComplete"
115
115
  }
116
116
  },
117
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getAnalysisSections, getDatabaseSchemas, getPreviousAnalysisSections,\ngetPreviousDatabaseSchemas, getPreviousInterfaceOperations) or completion\nof the review with all modifications (complete). When preliminary returns\nempty array, that type is removed from the union, physically preventing\nrepeated calls."
117
+ description: "Action to perform. Exhausted preliminary types are removed from the\nunion."
118
118
  }
119
119
  },
120
120
  required: [
@@ -127,7 +127,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
127
127
  properties: {
128
128
  type: {
129
129
  "const": "getAnalysisSections",
130
- 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."
130
+ description: "Type discriminator."
131
131
  },
132
132
  sectionIds: {
133
133
  type: "array",
@@ -137,21 +137,21 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
137
137
  },
138
138
  minItems: 1,
139
139
  maxItems: 100,
140
- 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."
140
+ description: "Section IDs to retrieve. DO NOT request same IDs already requested in\nprevious calls."
141
141
  }
142
142
  },
143
143
  required: [
144
144
  "type",
145
145
  "sectionIds"
146
146
  ],
147
- 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."
147
+ description: "Request to retrieve individual analysis sections by numeric ID."
148
148
  },
149
149
  IAutoBePreliminaryGetDatabaseSchemas: {
150
150
  type: "object",
151
151
  properties: {
152
152
  type: {
153
153
  "const": "getDatabaseSchemas",
154
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getDatabaseSchemas\" indicates this is a preliminary\ndata request for database schemas."
154
+ description: "Type discriminator."
155
155
  },
156
156
  schemaNames: {
157
157
  type: "array",
@@ -159,21 +159,21 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
159
159
  type: "string"
160
160
  },
161
161
  minItems: 1,
162
- description: "List of database table names to retrieve.\n\nTable names from the database schema representing database entities (e.g.,\n\"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls."
162
+ description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls."
163
163
  }
164
164
  },
165
165
  required: [
166
166
  "type",
167
167
  "schemaNames"
168
168
  ],
169
- description: "Request to retrieve database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific database table\nschemas needed for generating type-safe API operations."
169
+ description: "Request to retrieve database schema definitions for context."
170
170
  },
171
171
  IAutoBePreliminaryGetPreviousAnalysisSections: {
172
172
  type: "object",
173
173
  properties: {
174
174
  type: {
175
175
  "const": "getPreviousAnalysisSections",
176
- description: "Type discriminator for the request.\n\nValue \"getPreviousAnalysisSections\" indicates this is a preliminary data\nrequest for analysis sections from the previous iteration."
176
+ description: "Type discriminator."
177
177
  },
178
178
  sectionIds: {
179
179
  type: "array",
@@ -182,21 +182,21 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
182
182
  minimum: 0
183
183
  },
184
184
  minItems: 1,
185
- 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."
185
+ description: "Section IDs to retrieve from previous iteration. DO NOT request same IDs\nalready requested in previous calls."
186
186
  }
187
187
  },
188
188
  required: [
189
189
  "type",
190
190
  "sectionIds"
191
191
  ],
192
- 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."
192
+ description: "Request to retrieve analysis sections from the previous iteration by numeric\nID."
193
193
  },
194
194
  IAutoBePreliminaryGetPreviousDatabaseSchemas: {
195
195
  type: "object",
196
196
  properties: {
197
197
  type: {
198
198
  "const": "getPreviousDatabaseSchemas",
199
- 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."
199
+ description: "Type discriminator."
200
200
  },
201
201
  schemaNames: {
202
202
  type: "array",
@@ -204,21 +204,21 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
204
204
  type: "string"
205
205
  },
206
206
  minItems: 1,
207
- 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\""
207
+ description: "Table names to retrieve from previous iteration. DO NOT request same names\nalready requested in previous calls."
208
208
  }
209
209
  },
210
210
  required: [
211
211
  "type",
212
212
  "schemaNames"
213
213
  ],
214
- 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"
214
+ 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."
215
215
  },
216
216
  IAutoBePreliminaryGetPreviousInterfaceOperations: {
217
217
  type: "object",
218
218
  properties: {
219
219
  type: {
220
220
  "const": "getPreviousInterfaceOperations",
221
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPreviousInterfaceOperations\" indicates this is a\npreliminary data request for interface operations from a previous version."
221
+ description: "Type discriminator."
222
222
  },
223
223
  endpoints: {
224
224
  type: "array",
@@ -226,14 +226,14 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
226
226
  $ref: "#/components/schemas/AutoBeOpenApi.IEndpoint"
227
227
  },
228
228
  minItems: 1,
229
- description: "List of API operation endpoints to retrieve from the previous version.\n\nThese are endpoint identifiers (method + path) that were generated in a\nprevious version and are needed as reference context for the current\nregeneration.\n\n**Important Notes:**\n\n- These endpoints 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- Each endpoint is identified by: `{method: \"GET|POST|PUT|DELETE|PATCH\",\n path: \"/api/path\"}`\n\n**When This Function is Available:**\n\n- When a previous version exists\n- When user requests modifications to existing API operations\n- During correction/regeneration cycles that need previous operation context\n\n**When This Function is NOT Available:**\n\n- During initial generation (no previous version exists)\n- No previous interface operations available for this orchestration task\n\n**Endpoint Format:**\n\n- Method: HTTP verb in uppercase (e.g., \"GET\", \"POST\", \"PUT\", \"DELETE\",\n \"PATCH\")\n- Path: OpenAPI path with parameters (e.g., \"/users/{id}\", \"/posts\")\n\n**Example Endpoints:**\n\n- `{method: \"GET\", path: \"/users/{id}\"}`\n- `{method: \"POST\", path: \"/shoppings/orders\"}`\n- `{method: \"PATCH\", path: \"/bbs/articles\"}`"
229
+ description: "Endpoints to retrieve from previous iteration. DO NOT request same\nendpoints already requested in previous calls."
230
230
  }
231
231
  },
232
232
  required: [
233
233
  "type",
234
234
  "endpoints"
235
235
  ],
236
- description: "Request to retrieve interface operations from a previous version.\n\nThis type is used to load API operation definitions that were generated in a\n**previous version** of the AutoBE generation pipeline. This is NOT about\nre-requesting operations within the same execution, but rather accessing\nartifacts from an earlier version.\n\n**Use Case:** When regenerating or modifying API operations based on user\nchange requests, agents need to reference the previously generated operations\nto understand the existing API design and what needs to be modified.\n\n**Key Difference from `getInterfaceOperations`:**\n\n- `getInterfaceOperations`: Fetches operations from the **current version**\n (the version being generated right now)\n- `getPreviousInterfaceOperations`: Fetches operations from the **previous\n version** (the last successfully generated version)\n\n**Example Scenario:**\n\n Initial generation:\n - INTERFACE phase creates: GET /users, POST /users, GET /users/{id}\n - Generation completes successfully\n\n User: \"Change user creation to require email verification\"\n\n Regeneration:\n - INTERFACE phase starts regeneration\n - Calls getPreviousInterfaceOperations([{method: \"POST\", path: \"/users\"}])\n \u2192 Loads the previous version of POST /users operation\n - Creates new version with emailVerification requirement in request body\n\n**Automatic Schema Loading:**\n\nWhen operations are loaded from the previous version, their associated\nrequest/response body schemas are also referenced, providing complete context\nfor understanding the operation's data structures.\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 operations serve as reference for incremental API changes"
236
+ description: "Request to retrieve interface operations from the previous iteration.\n\nLoads API operation definitions from the last successfully generated version,\nused as reference context during regeneration or modification cycles."
237
237
  },
238
238
  "AutoBeOpenApi.IEndpoint": {
239
239
  type: "object",
@@ -241,7 +241,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
241
241
  path: {
242
242
  type: "string",
243
243
  pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$",
244
- description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)"
244
+ description: "HTTP path of the API operation.\n\nMust start with `/`. Parameters use curly braces: `{paramName}`. Resource\nnames in camelCase. No quotes, spaces, role prefixes (`/admin/`), or API\nversion prefixes (`/api/v1/`).\n\nAllowed characters: letters, digits, `/`, `{`, `}`, `-`, `_`, `.`"
245
245
  },
246
246
  method: {
247
247
  oneOf: [
@@ -261,7 +261,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
261
261
  "const": "patch"
262
262
  }
263
263
  ],
264
- description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record"
264
+ description: "HTTP method (lowercase only).\n\nUse `patch` (not `get`) when a read operation needs a complex\n{@link requestBody}. `get` cannot have a request body."
265
265
  }
266
266
  },
267
267
  required: [
@@ -275,18 +275,18 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
275
275
  properties: {
276
276
  type: {
277
277
  "const": "complete",
278
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request."
278
+ description: "Type discriminator for completion request."
279
279
  },
280
280
  review: {
281
281
  type: "string",
282
- description: "Summary of issues found and fixes applied during review.\n\nDocument all issues discovered during endpoint validation:\n\n- What duplicates, inconsistencies, or design issues were found?\n- What endpoints needed to be added, modified, or removed?\n- What patterns or conventions were violated?\n\nState \"No issues found.\" if all endpoints pass review."
282
+ description: "Summary of issues found and fixes applied. State \"No issues found.\" if\nall pass."
283
283
  },
284
284
  revises: {
285
285
  type: "array",
286
286
  items: {
287
287
  $ref: "#/components/schemas/AutoBeInterfaceEndpointRevise"
288
288
  },
289
- description: "Revision decisions for ALL endpoints.\n\nYou MUST provide exactly one revision for each endpoint in the provided\nlist. No omissions allowed.\n\n- Use **keep** for endpoints that are correct (do NOT simply omit them)\n- Use **create** to add missing endpoints\n- Use **update** to fix incorrectly structured endpoints\n- Use **erase** to remove invalid or duplicate endpoints\n\nThe endpoint field in keep, update, and erase must exactly match an\nendpoint from the provided list (path + method)."
289
+ description: "Revision decisions for ALL endpoints. One revision per endpoint, no\nomissions. The endpoint field in keep/update/erase must exactly match a\nprovided endpoint (path + method)."
290
290
  }
291
291
  },
292
292
  required: [
@@ -294,7 +294,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
294
294
  "review",
295
295
  "revises"
296
296
  ],
297
- description: "Request to complete the endpoint review process.\n\nFinalizes the review by submitting revision decisions for ALL endpoints.\nEvery endpoint in the provided list must have exactly one revision:\n\n- **keep**: Approve endpoint as-is (explicitly confirm it's correct)\n- **create**: Add a new endpoint that was missing\n- **update**: Fix an incorrectly structured endpoint\n- **erase**: Remove an invalid or duplicate endpoint\n\nThe revisions ensure the final API structure is consistent, free of\nduplicates, properly designed, and aligned with RESTful conventions."
297
+ description: "Complete endpoint review with revision decisions (keep/create/update/erase)\nfor ALL endpoints."
298
298
  },
299
299
  AutoBeInterfaceEndpointRevise: {
300
300
  oneOf: [
@@ -320,18 +320,18 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
320
320
  update: "#/components/schemas/AutoBeInterfaceEndpointUpdate"
321
321
  }
322
322
  },
323
- description: "Endpoint revision operation type.\n\nDiscriminated union representing all possible endpoint modifications during\nthe review phase. Review agents examine generated endpoints and must return a\nrevision for **every** endpoint in the provided list - no omissions allowed.\n\n## Available Operations\n\n- **Keep**: Approve endpoint as-is (explicitly confirm it's correct)\n- **Create**: Add missing endpoints that fulfill requirements\n- **Update**: Fix incorrectly structured endpoints (path/method corrections)\n- **Erase**: Remove invalid or duplicate endpoints\n\n## Important Rules\n\n1. Every endpoint in the review list MUST have a corresponding revision\n2. Use `keep` for endpoints that are correct - do NOT simply omit them\n3. The `endpoint` field in `keep`, `update`, and `erase` must exactly match an\n endpoint from the provided list (path + method)"
323
+ description: "Endpoint revision: keep | create | update | erase.\n\nEvery endpoint in the review list MUST have a revision \u2014 no omissions."
324
324
  },
325
325
  AutoBeInterfaceEndpointCreate: {
326
326
  type: "object",
327
327
  properties: {
328
328
  reason: {
329
329
  type: "string",
330
- description: "Reason for creating this endpoint.\n\nExplain which requirement this endpoint fulfills and why it was missing\nfrom the initial generation."
330
+ description: "Why this endpoint is needed."
331
331
  },
332
332
  type: {
333
333
  "const": "create",
334
- description: "Type discriminator indicating this is a create operation."
334
+ description: "Type discriminator."
335
335
  },
336
336
  design: {
337
337
  $ref: "#/components/schemas/AutoBeInterfaceEndpointDesign",
@@ -343,14 +343,14 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
343
343
  "type",
344
344
  "design"
345
345
  ],
346
- description: "Request to create a new endpoint.\n\nUse this when you identify a missing endpoint that should exist based on\nrequirements analysis. Common scenarios:\n\n- A required operation was accidentally omitted from initial generation\n- A use case requires an endpoint that wasn't initially identified\n- Review reveals gaps in API coverage for specific requirements"
346
+ description: "Add a missing endpoint."
347
347
  },
348
348
  AutoBeInterfaceEndpointDesign: {
349
349
  type: "object",
350
350
  properties: {
351
351
  description: {
352
352
  type: "string",
353
- description: "Description of what this endpoint does.\n\nFunctional description of the endpoint's purpose and business context.\nShould explain the use case and requirements this endpoint fulfills, not\njust repeat the path/method.\n\nWrite concisely. Keep it brief and to the point."
353
+ description: "Functional description of what this endpoint does and why. Keep concise."
354
354
  },
355
355
  authorizationActors: {
356
356
  type: "array",
@@ -359,7 +359,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
359
359
  pattern: "^[a-z][a-zA-Z0-9]*$",
360
360
  minLength: 1
361
361
  },
362
- description: "Authorization actors associated with this API endpoint.\n\nSpecify actors that are **associated with** this endpoint. An actor should\nbe included if:\n\n1. **The actor can call this endpoint**: The endpoint requires authentication\n and only this actor type can access it.\n2. **The endpoint is related to the actor**: If the endpoint path contains the\n actor name (e.g., `/auth/users/login` \u2192 `\"user\"`), or the endpoint\n serves that actor type, include the actor to indicate the relationship.\n\n## Examples\n\n- `/auth/users/login` \u2192 `[\"user\"]` (related to user)\n- `/auth/admins/join` \u2192 `[\"admin\"]` (related to admin)\n- `/users/{userId}/profile` \u2192 `[\"user\"]` (user can call)\n- `/products` \u2192 `[]` (public, no association)\n\n## \u26A0\uFE0F Actor Multiplication Effect\n\nEach actor may generate a separate endpoint. Minimize actors to prevent\nendpoint explosion.\n\n## Naming Convention\n\nUse camelCase for all actor names (e.g., `\"user\"`, `\"admin\"`, `\"seller\"`)."
362
+ description: "Authorization actors associated with this endpoint (camelCase).\n\nInclude an actor if it can call this endpoint or the endpoint is\nsemantically related to it (e.g., `/auth/users/login` \u2192 `[\"user\"]`). Empty\narray for public endpoints.\n\nEach actor may generate a separate endpoint \u2014 minimize to prevent endpoint\nexplosion."
363
363
  },
364
364
  authorizationType: {
365
365
  oneOf: [
@@ -388,7 +388,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
388
388
  "const": "management"
389
389
  }
390
390
  ],
391
- description: "Authorization type of the API endpoint.\n\n- `\"login\"`: User login endpoint that validates credentials\n- `\"join\"`: User registration endpoint that creates accounts\n- `\"withdraw\"`: User withdrawal/deactivation endpoint that deletes accounts\n- `\"refresh\"`: Token refresh endpoint that renews access tokens\n- `\"session\"`: Session related endpoint (e.g., logout, session management)\n- `\"password\"`: Password related endpoint (e.g., reset, change password)\n- `\"management\"`: Authentication-related endpoint other than above types\n (e.g., email/phone verification, 2FA, OAuth, profile update)\n- `null`: All other endpoints (CRUD, business logic, etc.)"
391
+ description: "Authorization type of the endpoint.\n\n- `\"login\"`: Credential validation\n- `\"join\"`: Account registration\n- `\"withdraw\"`: Account deactivation\n- `\"refresh\"`: Token renewal\n- `\"session\"`: Session management (logout, etc.)\n- `\"password\"`: Password reset/change\n- `\"management\"`: Other auth-related (2FA, OAuth, verification)\n- `null`: All other endpoints"
392
392
  },
393
393
  endpoint: {
394
394
  $ref: "#/components/schemas/AutoBeOpenApi.IEndpoint",
@@ -401,22 +401,22 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
401
401
  "authorizationType",
402
402
  "endpoint"
403
403
  ],
404
- description: "Endpoint design with description and specification.\n\nRepresents a single endpoint generated during the write phase, pairing the\nendpoint definition (path + method) with a description of its purpose.\n\nThis type formalizes the legacy\n`IAutoBeInterfaceEndpointWriteApplication.IContent` structure for reuse\nacross the codebase. The description provides business context that helps:\n\n- Review agents validate that the endpoint fulfills actual requirements\n- Operation generation create appropriate request/response schemas\n- Schema design infer correct data structures"
404
+ description: "Endpoint design with description, authorization, and endpoint definition."
405
405
  },
406
406
  AutoBeInterfaceEndpointErase: {
407
407
  type: "object",
408
408
  properties: {
409
409
  reason: {
410
410
  type: "string",
411
- description: "Reason for deletion.\n\nExplain why this endpoint should be removed and what issue it causes."
411
+ description: "Why this endpoint should be removed."
412
412
  },
413
413
  endpoint: {
414
414
  $ref: "#/components/schemas/AutoBeOpenApi.IEndpoint",
415
- description: "The endpoint to remove.\n\n\u26A0\uFE0F CRITICAL: Must be from the \"Endpoints for Review\" list provided above.\nDO NOT reference endpoints that are not in the provided list. Must match\nexactly (path + method)."
415
+ description: "Endpoint to remove. MUST match exactly (path + method) from the provided\nreview list."
416
416
  },
417
417
  type: {
418
418
  "const": "erase",
419
- description: "Type discriminator indicating this is an erase operation."
419
+ description: "Type discriminator."
420
420
  }
421
421
  },
422
422
  required: [
@@ -424,22 +424,22 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
424
424
  "endpoint",
425
425
  "type"
426
426
  ],
427
- description: "Request to erase an endpoint.\n\nUse this when an endpoint should be removed from the generated set:\n\n- Duplicate functionality with another endpoint\n- Not derived from actual requirements (hallucinated)\n- Violates RESTful conventions or business rules\n- Security concern (exposes sensitive data inappropriately)\n- Over-engineering (unnecessary granularity)"
427
+ description: "Remove an invalid or duplicate endpoint."
428
428
  },
429
429
  AutoBeInterfaceEndpointKeep: {
430
430
  type: "object",
431
431
  properties: {
432
432
  reason: {
433
433
  type: "string",
434
- description: "Reason for keeping this endpoint unchanged.\n\nBriefly explain why this endpoint is correctly designed and needs no\nmodification. This documents the review decision."
434
+ description: "Why this endpoint is correct and needs no changes."
435
435
  },
436
436
  endpoint: {
437
437
  $ref: "#/components/schemas/AutoBeOpenApi.IEndpoint",
438
- description: "The endpoint to keep unchanged.\n\n\u26A0\uFE0F CRITICAL: Must be from the \"Endpoints for Review\" list provided above.\nDO NOT reference endpoints that are not in the provided list. Must match\nexactly (path + method)."
438
+ description: "Endpoint to keep. MUST match exactly (path + method) from the provided\nreview list."
439
439
  },
440
440
  type: {
441
441
  "const": "keep",
442
- description: "Type discriminator indicating this is a keep operation."
442
+ description: "Type discriminator."
443
443
  }
444
444
  },
445
445
  required: [
@@ -447,26 +447,26 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
447
447
  "endpoint",
448
448
  "type"
449
449
  ],
450
- description: "Request to keep an endpoint unchanged.\n\nUse this to explicitly approve an endpoint that is correctly designed. Every\nendpoint in the review list MUST have a corresponding revision - use `keep`\nfor endpoints that need no changes rather than omitting them.\n\nThis explicit approval ensures:\n\n- Complete review coverage (no endpoints are accidentally skipped)\n- Documented reasoning for why the endpoint is correct\n- Audit trail of review decisions"
450
+ description: "Approve an endpoint as correctly designed.\n\nEvery endpoint in the review list MUST have a revision \u2014 use `keep` for\ncorrect ones rather than omitting them."
451
451
  },
452
452
  AutoBeInterfaceEndpointUpdate: {
453
453
  type: "object",
454
454
  properties: {
455
455
  reason: {
456
456
  type: "string",
457
- description: "Reason for this update.\n\nExplain what issue this fixes and why the new definition is better."
457
+ description: "Why this fix is needed."
458
458
  },
459
459
  endpoint: {
460
460
  $ref: "#/components/schemas/AutoBeOpenApi.IEndpoint",
461
- description: "The original endpoint to modify.\n\n\u26A0\uFE0F CRITICAL: Must be from the \"Endpoints for Review\" list provided above.\nDO NOT reference endpoints that are not in the provided list. Must match\nexactly (path + method)."
461
+ description: "Original endpoint to modify. MUST match exactly (path + method) from the\nprovided review list."
462
462
  },
463
463
  type: {
464
464
  "const": "update",
465
- description: "Type discriminator indicating this is an update operation."
465
+ description: "Type discriminator."
466
466
  },
467
467
  newDesign: {
468
468
  $ref: "#/components/schemas/AutoBeInterfaceEndpointDesign",
469
- description: "The updated endpoint definition.\n\nContains the corrected path and/or method."
469
+ description: "Corrected endpoint definition."
470
470
  }
471
471
  },
472
472
  required: [
@@ -475,7 +475,7 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
475
475
  "type",
476
476
  "newDesign"
477
477
  ],
478
- description: "Request to update an existing endpoint.\n\nUse this when an endpoint has issues that need correction:\n\n- Path naming inconsistency (e.g., `/userProfile` vs `/users/{userId}/profile`)\n- Incorrect HTTP method (e.g., GET for mutation operations)\n- Path structure needs adjustment (e.g., hierarchical nesting)\n- Parameter naming issues (e.g., `{id}` \u2192 `{userId}`)\n- Singular/plural normalization (e.g., `/user` \u2192 `/users`)"
478
+ description: "Fix an incorrectly structured endpoint (path/method corrections)."
479
479
  }
480
480
  }
481
481
  },
@@ -486,14 +486,13 @@ const orchestrateInterfaceEndpointReview = (ctx, props) => __awaiter(void 0, voi
486
486
  parameters: [
487
487
  {
488
488
  name: "props",
489
- description: " Request containing either preliminary data request or endpoint\nreview completion",
490
489
  required: true,
491
490
  schema: {
492
491
  $ref: "#/components/schemas/IAutoBeInterfaceEndpointReviewApplication.IProps"
493
492
  }
494
493
  }
495
494
  ],
496
- description: "Process endpoint review task or preliminary data requests.\n\nReviews and validates generated endpoints to ensure they meet quality\nstandards. The review process examines endpoint design, identifies issues\nsuch as duplicates or inconsistencies, and applies corrections through\nrevision operations (keep, create, update, or erase).\n\n**Critical**: Every endpoint in the provided list MUST receive a revision\ndecision. No omissions are allowed - use \"keep\" to explicitly approve\nendpoints that need no changes."
495
+ description: "Process task or retrieve preliminary data. Every endpoint MUST receive a\nrevision decision."
497
496
  }
498
497
  ]
499
498
  },
@@ -948,11 +947,11 @@ const createController = (props) => {
948
947
  type: "object",
949
948
  properties: {
950
949
  thinking: {
951
- description: "Think before you act.\n\nBefore requesting preliminary data or completing your task, reflect on\nyour current state and explain your reasoning:\n\nFor preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):\n\n- What critical information is missing that you don't already have?\n- Why do you need it specifically right now?\n- Be brief - state the gap, don't list everything you have.\n\nFor completion (complete):\n\n- What key assets did you acquire?\n- What did you accomplish?\n- Why is it sufficient to complete?\n- Summarize - don't enumerate every single item.\n\nThis reflection helps you avoid duplicate requests and premature\ncompletion.",
950
+ description: "Reasoning about your current state: what's missing (preliminary) or what\nyou accomplished (completion).",
952
951
  type: "string"
953
952
  },
954
953
  request: {
955
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval\n(getAnalysisSections, getDatabaseSchemas, getPreviousAnalysisSections,\ngetPreviousDatabaseSchemas, getPreviousInterfaceOperations) or completion\nof the review with all modifications (complete). When preliminary returns\nempty array, that type is removed from the union, physically preventing\nrepeated calls.",
954
+ description: "Action to perform. Exhausted preliminary types are removed from the\nunion.",
956
955
  anyOf: [
957
956
  {
958
957
  $ref: "#/$defs/IAutoBePreliminaryGetAnalysisSections"
@@ -993,18 +992,18 @@ const createController = (props) => {
993
992
  additionalProperties: false,
994
993
  $defs: {
995
994
  IAutoBePreliminaryGetAnalysisSections: {
996
- 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.",
995
+ description: "Request to retrieve individual analysis sections by numeric ID.",
997
996
  type: "object",
998
997
  properties: {
999
998
  type: {
1000
- 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.",
999
+ description: "Type discriminator.",
1001
1000
  type: "string",
1002
1001
  "enum": [
1003
1002
  "getAnalysisSections"
1004
1003
  ]
1005
1004
  },
1006
1005
  sectionIds: {
1007
- 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.",
1006
+ description: "Section IDs to retrieve. DO NOT request same IDs already requested in\nprevious calls.",
1008
1007
  type: "array",
1009
1008
  items: {
1010
1009
  type: "integer",
@@ -1020,18 +1019,18 @@ const createController = (props) => {
1020
1019
  ]
1021
1020
  },
1022
1021
  IAutoBePreliminaryGetDatabaseSchemas: {
1023
- description: "Request to retrieve database schema definitions for context.\n\nThis type is used in the preliminary phase to request specific database table\nschemas needed for generating type-safe API operations.",
1022
+ description: "Request to retrieve database schema definitions for context.",
1024
1023
  type: "object",
1025
1024
  properties: {
1026
1025
  type: {
1027
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getDatabaseSchemas\" indicates this is a preliminary\ndata request for database schemas.",
1026
+ description: "Type discriminator.",
1028
1027
  type: "string",
1029
1028
  "enum": [
1030
1029
  "getDatabaseSchemas"
1031
1030
  ]
1032
1031
  },
1033
1032
  schemaNames: {
1034
- description: "List of database table names to retrieve.\n\nTable names from the database schema representing database entities (e.g.,\n\"user\", \"post\", \"comment\").\n\nCRITICAL: DO NOT request the same schema names that you have already\nrequested in previous calls.",
1033
+ description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls.",
1035
1034
  type: "array",
1036
1035
  items: {
1037
1036
  type: "string"
@@ -1045,18 +1044,18 @@ const createController = (props) => {
1045
1044
  ]
1046
1045
  },
1047
1046
  IAutoBePreliminaryGetPreviousAnalysisSections: {
1048
- 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.",
1047
+ description: "Request to retrieve analysis sections from the previous iteration by numeric\nID.",
1049
1048
  type: "object",
1050
1049
  properties: {
1051
1050
  type: {
1052
- description: "Type discriminator for the request.\n\nValue \"getPreviousAnalysisSections\" indicates this is a preliminary data\nrequest for analysis sections from the previous iteration.",
1051
+ description: "Type discriminator.",
1053
1052
  type: "string",
1054
1053
  "enum": [
1055
1054
  "getPreviousAnalysisSections"
1056
1055
  ]
1057
1056
  },
1058
1057
  sectionIds: {
1059
- 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.",
1058
+ description: "Section IDs to retrieve from previous iteration. DO NOT request same IDs\nalready requested in previous calls.",
1060
1059
  type: "array",
1061
1060
  items: {
1062
1061
  type: "integer",
@@ -1071,18 +1070,18 @@ const createController = (props) => {
1071
1070
  ]
1072
1071
  },
1073
1072
  IAutoBePreliminaryGetPreviousDatabaseSchemas: {
1074
- 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",
1073
+ 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.",
1075
1074
  type: "object",
1076
1075
  properties: {
1077
1076
  type: {
1078
- 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.",
1077
+ description: "Type discriminator.",
1079
1078
  type: "string",
1080
1079
  "enum": [
1081
1080
  "getPreviousDatabaseSchemas"
1082
1081
  ]
1083
1082
  },
1084
1083
  schemaNames: {
1085
- 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\"",
1084
+ description: "Table names to retrieve from previous iteration. DO NOT request same names\nalready requested in previous calls.",
1086
1085
  type: "array",
1087
1086
  items: {
1088
1087
  type: "string"
@@ -1096,18 +1095,18 @@ const createController = (props) => {
1096
1095
  ]
1097
1096
  },
1098
1097
  IAutoBePreliminaryGetPreviousInterfaceOperations: {
1099
- description: "Request to retrieve interface operations from a previous version.\n\nThis type is used to load API operation definitions that were generated in a\n**previous version** of the AutoBE generation pipeline. This is NOT about\nre-requesting operations within the same execution, but rather accessing\nartifacts from an earlier version.\n\n**Use Case:** When regenerating or modifying API operations based on user\nchange requests, agents need to reference the previously generated operations\nto understand the existing API design and what needs to be modified.\n\n**Key Difference from `getInterfaceOperations`:**\n\n- `getInterfaceOperations`: Fetches operations from the **current version**\n (the version being generated right now)\n- `getPreviousInterfaceOperations`: Fetches operations from the **previous\n version** (the last successfully generated version)\n\n**Example Scenario:**\n\n Initial generation:\n - INTERFACE phase creates: GET /users, POST /users, GET /users/{id}\n - Generation completes successfully\n\n User: \"Change user creation to require email verification\"\n\n Regeneration:\n - INTERFACE phase starts regeneration\n - Calls getPreviousInterfaceOperations([{method: \"POST\", path: \"/users\"}])\n \u2192 Loads the previous version of POST /users operation\n - Creates new version with emailVerification requirement in request body\n\n**Automatic Schema Loading:**\n\nWhen operations are loaded from the previous version, their associated\nrequest/response body schemas are also referenced, providing complete context\nfor understanding the operation's data structures.\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 operations serve as reference for incremental API changes",
1098
+ description: "Request to retrieve interface operations from the previous iteration.\n\nLoads API operation definitions from the last successfully generated version,\nused as reference context during regeneration or modification cycles.",
1100
1099
  type: "object",
1101
1100
  properties: {
1102
1101
  type: {
1103
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"getPreviousInterfaceOperations\" indicates this is a\npreliminary data request for interface operations from a previous version.",
1102
+ description: "Type discriminator.",
1104
1103
  type: "string",
1105
1104
  "enum": [
1106
1105
  "getPreviousInterfaceOperations"
1107
1106
  ]
1108
1107
  },
1109
1108
  endpoints: {
1110
- description: "List of API operation endpoints to retrieve from the previous version.\n\nThese are endpoint identifiers (method + path) that were generated in a\nprevious version and are needed as reference context for the current\nregeneration.\n\n**Important Notes:**\n\n- These endpoints 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- Each endpoint is identified by: `{method: \"GET|POST|PUT|DELETE|PATCH\",\n path: \"/api/path\"}`\n\n**When This Function is Available:**\n\n- When a previous version exists\n- When user requests modifications to existing API operations\n- During correction/regeneration cycles that need previous operation context\n\n**When This Function is NOT Available:**\n\n- During initial generation (no previous version exists)\n- No previous interface operations available for this orchestration task\n\n**Endpoint Format:**\n\n- Method: HTTP verb in uppercase (e.g., \"GET\", \"POST\", \"PUT\", \"DELETE\",\n \"PATCH\")\n- Path: OpenAPI path with parameters (e.g., \"/users/{id}\", \"/posts\")\n\n**Example Endpoints:**\n\n- `{method: \"GET\", path: \"/users/{id}\"}`\n- `{method: \"POST\", path: \"/shoppings/orders\"}`\n- `{method: \"PATCH\", path: \"/bbs/articles\"}`",
1109
+ description: "Endpoints to retrieve from previous iteration. DO NOT request same\nendpoints already requested in previous calls.",
1111
1110
  type: "array",
1112
1111
  items: {
1113
1112
  $ref: "#/$defs/AutoBeOpenApi.IEndpoint"
@@ -1125,12 +1124,12 @@ const createController = (props) => {
1125
1124
  type: "object",
1126
1125
  properties: {
1127
1126
  path: {
1128
- description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)",
1127
+ description: "HTTP path of the API operation.\n\nMust start with `/`. Parameters use curly braces: `{paramName}`. Resource\nnames in camelCase. No quotes, spaces, role prefixes (`/admin/`), or API\nversion prefixes (`/api/v1/`).\n\nAllowed characters: letters, digits, `/`, `{`, `}`, `-`, `_`, `.`",
1129
1128
  type: "string",
1130
1129
  pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
1131
1130
  },
1132
1131
  method: {
1133
- description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
1132
+ description: "HTTP method (lowercase only).\n\nUse `patch` (not `get`) when a read operation needs a complex\n{@link requestBody}. `get` cannot have a request body.",
1134
1133
  type: "string",
1135
1134
  "enum": [
1136
1135
  "get",
@@ -1147,22 +1146,22 @@ const createController = (props) => {
1147
1146
  ]
1148
1147
  },
1149
1148
  "IAutoBeInterfaceEndpointReviewApplication.IComplete": {
1150
- description: "Request to complete the endpoint review process.\n\nFinalizes the review by submitting revision decisions for ALL endpoints.\nEvery endpoint in the provided list must have exactly one revision:\n\n- **keep**: Approve endpoint as-is (explicitly confirm it's correct)\n- **create**: Add a new endpoint that was missing\n- **update**: Fix an incorrectly structured endpoint\n- **erase**: Remove an invalid or duplicate endpoint\n\nThe revisions ensure the final API structure is consistent, free of\nduplicates, properly designed, and aligned with RESTful conventions.",
1149
+ description: "Complete endpoint review with revision decisions (keep/create/update/erase)\nfor ALL endpoints.",
1151
1150
  type: "object",
1152
1151
  properties: {
1153
1152
  type: {
1154
- description: "Type discriminator for the request.\n\nDetermines which action to perform: preliminary data retrieval or actual\ntask execution. Value \"complete\" indicates this is the final task\nexecution request.",
1153
+ description: "Type discriminator for completion request.",
1155
1154
  type: "string",
1156
1155
  "enum": [
1157
1156
  "complete"
1158
1157
  ]
1159
1158
  },
1160
1159
  review: {
1161
- description: "Summary of issues found and fixes applied during review.\n\nDocument all issues discovered during endpoint validation:\n\n- What duplicates, inconsistencies, or design issues were found?\n- What endpoints needed to be added, modified, or removed?\n- What patterns or conventions were violated?\n\nState \"No issues found.\" if all endpoints pass review.",
1160
+ description: "Summary of issues found and fixes applied. State \"No issues found.\" if\nall pass.",
1162
1161
  type: "string"
1163
1162
  },
1164
1163
  revises: {
1165
- description: "Revision decisions for ALL endpoints.\n\nYou MUST provide exactly one revision for each endpoint in the provided\nlist. No omissions allowed.\n\n- Use **keep** for endpoints that are correct (do NOT simply omit them)\n- Use **create** to add missing endpoints\n- Use **update** to fix incorrectly structured endpoints\n- Use **erase** to remove invalid or duplicate endpoints\n\nThe endpoint field in keep, update, and erase must exactly match an\nendpoint from the provided list (path + method).",
1164
+ description: "Revision decisions for ALL endpoints. One revision per endpoint, no\nomissions. The endpoint field in keep/update/erase must exactly match a\nprovided endpoint (path + method).",
1166
1165
  type: "array",
1167
1166
  items: {
1168
1167
  $ref: "#/$defs/AutoBeInterfaceEndpointRevise"
@@ -1176,7 +1175,7 @@ const createController = (props) => {
1176
1175
  ]
1177
1176
  },
1178
1177
  AutoBeInterfaceEndpointRevise: {
1179
- description: "Endpoint revision operation type.\n\nDiscriminated union representing all possible endpoint modifications during\nthe review phase. Review agents examine generated endpoints and must return a\nrevision for **every** endpoint in the provided list - no omissions allowed.\n\n## Available Operations\n\n- **Keep**: Approve endpoint as-is (explicitly confirm it's correct)\n- **Create**: Add missing endpoints that fulfill requirements\n- **Update**: Fix incorrectly structured endpoints (path/method corrections)\n- **Erase**: Remove invalid or duplicate endpoints\n\n## Important Rules\n\n1. Every endpoint in the review list MUST have a corresponding revision\n2. Use `keep` for endpoints that are correct - do NOT simply omit them\n3. The `endpoint` field in `keep`, `update`, and `erase` must exactly match an\n endpoint from the provided list (path + method)",
1178
+ description: "Endpoint revision: keep | create | update | erase.\n\nEvery endpoint in the review list MUST have a revision \u2014 no omissions.",
1180
1179
  anyOf: [
1181
1180
  {
1182
1181
  $ref: "#/$defs/AutoBeInterfaceEndpointCreate"
@@ -1202,15 +1201,15 @@ const createController = (props) => {
1202
1201
  }
1203
1202
  },
1204
1203
  AutoBeInterfaceEndpointCreate: {
1205
- description: "Request to create a new endpoint.\n\nUse this when you identify a missing endpoint that should exist based on\nrequirements analysis. Common scenarios:\n\n- A required operation was accidentally omitted from initial generation\n- A use case requires an endpoint that wasn't initially identified\n- Review reveals gaps in API coverage for specific requirements",
1204
+ description: "Add a missing endpoint.",
1206
1205
  type: "object",
1207
1206
  properties: {
1208
1207
  reason: {
1209
- description: "Reason for creating this endpoint.\n\nExplain which requirement this endpoint fulfills and why it was missing\nfrom the initial generation.",
1208
+ description: "Why this endpoint is needed.",
1210
1209
  type: "string"
1211
1210
  },
1212
1211
  type: {
1213
- description: "Type discriminator indicating this is a create operation.",
1212
+ description: "Type discriminator.",
1214
1213
  type: "string",
1215
1214
  "enum": [
1216
1215
  "create"
@@ -1228,15 +1227,15 @@ const createController = (props) => {
1228
1227
  ]
1229
1228
  },
1230
1229
  AutoBeInterfaceEndpointDesign: {
1231
- description: "Endpoint design with description and specification.\n\nRepresents a single endpoint generated during the write phase, pairing the\nendpoint definition (path + method) with a description of its purpose.\n\nThis type formalizes the legacy\n`IAutoBeInterfaceEndpointWriteApplication.IContent` structure for reuse\nacross the codebase. The description provides business context that helps:\n\n- Review agents validate that the endpoint fulfills actual requirements\n- Operation generation create appropriate request/response schemas\n- Schema design infer correct data structures",
1230
+ description: "Endpoint design with description, authorization, and endpoint definition.",
1232
1231
  type: "object",
1233
1232
  properties: {
1234
1233
  description: {
1235
- description: "Description of what this endpoint does.\n\nFunctional description of the endpoint's purpose and business context.\nShould explain the use case and requirements this endpoint fulfills, not\njust repeat the path/method.\n\nWrite concisely. Keep it brief and to the point.",
1234
+ description: "Functional description of what this endpoint does and why. Keep concise.",
1236
1235
  type: "string"
1237
1236
  },
1238
1237
  authorizationActors: {
1239
- description: "Authorization actors associated with this API endpoint.\n\nSpecify actors that are **associated with** this endpoint. An actor should\nbe included if:\n\n1. **The actor can call this endpoint**: The endpoint requires authentication\n and only this actor type can access it.\n2. **The endpoint is related to the actor**: If the endpoint path contains the\n actor name (e.g., `/auth/users/login` \u2192 `\"user\"`), or the endpoint\n serves that actor type, include the actor to indicate the relationship.\n\n## Examples\n\n- `/auth/users/login` \u2192 `[\"user\"]` (related to user)\n- `/auth/admins/join` \u2192 `[\"admin\"]` (related to admin)\n- `/users/{userId}/profile` \u2192 `[\"user\"]` (user can call)\n- `/products` \u2192 `[]` (public, no association)\n\n## \u26A0\uFE0F Actor Multiplication Effect\n\nEach actor may generate a separate endpoint. Minimize actors to prevent\nendpoint explosion.\n\n## Naming Convention\n\nUse camelCase for all actor names (e.g., `\"user\"`, `\"admin\"`, `\"seller\"`).",
1238
+ description: "Authorization actors associated with this endpoint (camelCase).\n\nInclude an actor if it can call this endpoint or the endpoint is\nsemantically related to it (e.g., `/auth/users/login` \u2192 `[\"user\"]`). Empty\narray for public endpoints.\n\nEach actor may generate a separate endpoint \u2014 minimize to prevent endpoint\nexplosion.",
1240
1239
  type: "array",
1241
1240
  items: {
1242
1241
  type: "string",
@@ -1245,7 +1244,7 @@ const createController = (props) => {
1245
1244
  }
1246
1245
  },
1247
1246
  authorizationType: {
1248
- description: "Authorization type of the API endpoint.\n\n- `\"login\"`: User login endpoint that validates credentials\n- `\"join\"`: User registration endpoint that creates accounts\n- `\"withdraw\"`: User withdrawal/deactivation endpoint that deletes accounts\n- `\"refresh\"`: Token refresh endpoint that renews access tokens\n- `\"session\"`: Session related endpoint (e.g., logout, session management)\n- `\"password\"`: Password related endpoint (e.g., reset, change password)\n- `\"management\"`: Authentication-related endpoint other than above types\n (e.g., email/phone verification, 2FA, OAuth, profile update)\n- `null`: All other endpoints (CRUD, business logic, etc.)",
1247
+ description: "Authorization type of the endpoint.\n\n- `\"login\"`: Credential validation\n- `\"join\"`: Account registration\n- `\"withdraw\"`: Account deactivation\n- `\"refresh\"`: Token renewal\n- `\"session\"`: Session management (logout, etc.)\n- `\"password\"`: Password reset/change\n- `\"management\"`: Other auth-related (2FA, OAuth, verification)\n- `null`: All other endpoints",
1249
1248
  anyOf: [
1250
1249
  {
1251
1250
  type: "string",
@@ -1277,19 +1276,19 @@ const createController = (props) => {
1277
1276
  ]
1278
1277
  },
1279
1278
  AutoBeInterfaceEndpointErase: {
1280
- description: "Request to erase an endpoint.\n\nUse this when an endpoint should be removed from the generated set:\n\n- Duplicate functionality with another endpoint\n- Not derived from actual requirements (hallucinated)\n- Violates RESTful conventions or business rules\n- Security concern (exposes sensitive data inappropriately)\n- Over-engineering (unnecessary granularity)",
1279
+ description: "Remove an invalid or duplicate endpoint.",
1281
1280
  type: "object",
1282
1281
  properties: {
1283
1282
  reason: {
1284
- description: "Reason for deletion.\n\nExplain why this endpoint should be removed and what issue it causes.",
1283
+ description: "Why this endpoint should be removed.",
1285
1284
  type: "string"
1286
1285
  },
1287
1286
  endpoint: {
1288
- description: "The endpoint to remove.\n\n\u26A0\uFE0F CRITICAL: Must be from the \"Endpoints for Review\" list provided above.\nDO NOT reference endpoints that are not in the provided list. Must match\nexactly (path + method).",
1287
+ description: "Endpoint to remove. MUST match exactly (path + method) from the provided\nreview list.",
1289
1288
  $ref: "#/$defs/AutoBeOpenApi.IEndpoint"
1290
1289
  },
1291
1290
  type: {
1292
- description: "Type discriminator indicating this is an erase operation.",
1291
+ description: "Type discriminator.",
1293
1292
  type: "string",
1294
1293
  "enum": [
1295
1294
  "erase"
@@ -1303,19 +1302,19 @@ const createController = (props) => {
1303
1302
  ]
1304
1303
  },
1305
1304
  AutoBeInterfaceEndpointKeep: {
1306
- description: "Request to keep an endpoint unchanged.\n\nUse this to explicitly approve an endpoint that is correctly designed. Every\nendpoint in the review list MUST have a corresponding revision - use `keep`\nfor endpoints that need no changes rather than omitting them.\n\nThis explicit approval ensures:\n\n- Complete review coverage (no endpoints are accidentally skipped)\n- Documented reasoning for why the endpoint is correct\n- Audit trail of review decisions",
1305
+ description: "Approve an endpoint as correctly designed.\n\nEvery endpoint in the review list MUST have a revision \u2014 use `keep` for\ncorrect ones rather than omitting them.",
1307
1306
  type: "object",
1308
1307
  properties: {
1309
1308
  reason: {
1310
- description: "Reason for keeping this endpoint unchanged.\n\nBriefly explain why this endpoint is correctly designed and needs no\nmodification. This documents the review decision.",
1309
+ description: "Why this endpoint is correct and needs no changes.",
1311
1310
  type: "string"
1312
1311
  },
1313
1312
  endpoint: {
1314
- description: "The endpoint to keep unchanged.\n\n\u26A0\uFE0F CRITICAL: Must be from the \"Endpoints for Review\" list provided above.\nDO NOT reference endpoints that are not in the provided list. Must match\nexactly (path + method).",
1313
+ description: "Endpoint to keep. MUST match exactly (path + method) from the provided\nreview list.",
1315
1314
  $ref: "#/$defs/AutoBeOpenApi.IEndpoint"
1316
1315
  },
1317
1316
  type: {
1318
- description: "Type discriminator indicating this is a keep operation.",
1317
+ description: "Type discriminator.",
1319
1318
  type: "string",
1320
1319
  "enum": [
1321
1320
  "keep"
@@ -1329,26 +1328,26 @@ const createController = (props) => {
1329
1328
  ]
1330
1329
  },
1331
1330
  AutoBeInterfaceEndpointUpdate: {
1332
- description: "Request to update an existing endpoint.\n\nUse this when an endpoint has issues that need correction:\n\n- Path naming inconsistency (e.g., `/userProfile` vs `/users/{userId}/profile`)\n- Incorrect HTTP method (e.g., GET for mutation operations)\n- Path structure needs adjustment (e.g., hierarchical nesting)\n- Parameter naming issues (e.g., `{id}` \u2192 `{userId}`)\n- Singular/plural normalization (e.g., `/user` \u2192 `/users`)",
1331
+ description: "Fix an incorrectly structured endpoint (path/method corrections).",
1333
1332
  type: "object",
1334
1333
  properties: {
1335
1334
  reason: {
1336
- description: "Reason for this update.\n\nExplain what issue this fixes and why the new definition is better.",
1335
+ description: "Why this fix is needed.",
1337
1336
  type: "string"
1338
1337
  },
1339
1338
  endpoint: {
1340
- description: "The original endpoint to modify.\n\n\u26A0\uFE0F CRITICAL: Must be from the \"Endpoints for Review\" list provided above.\nDO NOT reference endpoints that are not in the provided list. Must match\nexactly (path + method).",
1339
+ description: "Original endpoint to modify. MUST match exactly (path + method) from the\nprovided review list.",
1341
1340
  $ref: "#/$defs/AutoBeOpenApi.IEndpoint"
1342
1341
  },
1343
1342
  type: {
1344
- description: "Type discriminator indicating this is an update operation.",
1343
+ description: "Type discriminator.",
1345
1344
  type: "string",
1346
1345
  "enum": [
1347
1346
  "update"
1348
1347
  ]
1349
1348
  },
1350
1349
  newDesign: {
1351
- description: "The updated endpoint definition.\n\nContains the corrected path and/or method.",
1350
+ description: "Corrected endpoint definition.",
1352
1351
  $ref: "#/$defs/AutoBeInterfaceEndpointDesign"
1353
1352
  }
1354
1353
  },
@@ -1361,7 +1360,7 @@ const createController = (props) => {
1361
1360
  }
1362
1361
  }
1363
1362
  },
1364
- description: "Process endpoint review task or preliminary data requests.\n\nReviews and validates generated endpoints to ensure they meet quality\nstandards. The review process examines endpoint design, identifies issues\nsuch as duplicates or inconsistencies, and applies corrections through\nrevision operations (keep, create, update, or erase).\n\n**Critical**: Every endpoint in the provided list MUST receive a revision\ndecision. No omissions are allowed - use \"keep\" to explicitly approve\nendpoints that need no changes.",
1363
+ description: "Process task or retrieve preliminary data. Every endpoint MUST receive a\nrevision decision.",
1365
1364
  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 => "getDatabaseSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io3 = 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 _io4 = input => "getPreviousDatabaseSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io5 = input => "getPreviousInterfaceOperations" === input.type && (Array.isArray(input.endpoints) && (1 <= input.endpoints.length && input.endpoints.every(elem => "object" === typeof elem && null !== elem && _io6(elem)))); const _io6 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io7 = input => "complete" === input.type && "string" === typeof input.review && (Array.isArray(input.revises) && input.revises.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io8 = input => "string" === typeof input.reason && "create" === input.type && ("object" === typeof input.design && null !== input.design && _io9(input.design)); const _io9 = input => "string" === typeof input.description && (Array.isArray(input.authorizationActors) && input.authorizationActors.every(elem => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) && 1 <= elem.length))) && (null === input.authorizationType || "login" === input.authorizationType || "join" === input.authorizationType || "refresh" === input.authorizationType || "password" === input.authorizationType || "session" === input.authorizationType || "withdraw" === input.authorizationType || "management" === input.authorizationType) && ("object" === typeof input.endpoint && null !== input.endpoint && _io6(input.endpoint)); const _io10 = input => "string" === typeof input.reason && ("object" === typeof input.endpoint && null !== input.endpoint && _io6(input.endpoint)) && "erase" === input.type; const _io11 = input => "string" === typeof input.reason && ("object" === typeof input.endpoint && null !== input.endpoint && _io6(input.endpoint)) && "keep" === input.type; const _io12 = input => "string" === typeof input.reason && ("object" === typeof input.endpoint && null !== input.endpoint && _io6(input.endpoint)) && "update" === input.type && ("object" === typeof input.newDesign && null !== input.newDesign && _io9(input.newDesign)); const _iu0 = input => (() => {
1366
1365
  if ("create" === input.type)
1367
1366
  return _io8(input);