@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
@@ -10,10 +10,6 @@ export interface IAutoBeInterfaceOperationApplication {
10
10
  /**
11
11
  * Process operation generation task or preliminary data requests.
12
12
  *
13
- * Creates a complete API operation following REST principles and quality
14
- * standards. Processes the operation with progress tracking to ensure
15
- * iterative completion.
16
- *
17
13
  * @param props Request containing either preliminary data request or complete
18
14
  * task
19
15
  */
@@ -24,34 +20,16 @@ export namespace IAutoBeInterfaceOperationApplication {
24
20
  /**
25
21
  * Think before you act.
26
22
  *
27
- * Before requesting preliminary data or completing your task, reflect on
28
- * your current state and explain your reasoning:
29
- *
30
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
31
- *
32
- * - What critical information is missing that you don't already have?
33
- * - Why do you need it specifically right now?
34
- * - Be brief - state the gap, don't list everything you have.
35
- *
36
- * For completion (complete):
23
+ * For preliminary requests: what critical information is missing and why?
24
+ * Be brief state the gap, don't list everything you have.
37
25
  *
38
- * - What key assets did you acquire?
39
- * - What did you accomplish?
40
- * - Why is it sufficient to complete?
41
- * - Summarize - don't enumerate every single item.
42
- *
43
- * This reflection helps you avoid duplicate requests and premature
44
- * completion.
26
+ * For completion: what key assets did you acquire, what did you accomplish,
27
+ * why is it sufficient? Summarize — don't enumerate every single item.
45
28
  */
46
29
  thinking: string;
47
30
 
48
31
  /**
49
- * Type discriminator for the request.
50
- *
51
- * Determines which action to perform: preliminary data retrieval
52
- * (getAnalysisSections, getDatabaseSchemas, getPreviousAnalysisSections,
53
- * getPreviousDatabaseSchemas) or final operation generation (complete).
54
- * When preliminary returns empty array, that type is removed from the
32
+ * Action to perform. Exhausted preliminary types are removed from the
55
33
  * union, physically preventing repeated calls.
56
34
  */
57
35
  request:
@@ -63,113 +41,40 @@ export namespace IAutoBeInterfaceOperationApplication {
63
41
  | IAutoBePreliminaryGetPreviousInterfaceOperations;
64
42
  }
65
43
 
66
- /**
67
- * Request to generate a detailed API operation.
68
- *
69
- * Executes operation generation to create a complete API operation following
70
- * REST principles and quality standards. The operation includes
71
- * specification, path, method, detailed description, summary, parameters, and
72
- * request/response bodies.
73
- */
44
+ /** Request to generate a detailed API operation. */
74
45
  export interface IComplete {
75
- /**
76
- * Type discriminator for the request.
77
- *
78
- * Determines which action to perform: preliminary data retrieval or actual
79
- * task execution. Value "complete" indicates this is the final task
80
- * execution request.
81
- */
46
+ /** Type discriminator for completion request. */
82
47
  type: "complete";
83
48
 
84
- /**
85
- * Analysis of the endpoint's purpose and context.
86
- *
87
- * Before designing the operation, analyze what you know:
88
- *
89
- * - What is this endpoint for? What business requirement does it fulfill?
90
- * - What database entities and fields are involved?
91
- * - What parameters, request body, and response are needed?
92
- * - What authorization actors should have access?
93
- */
49
+ /** Analysis of the endpoint's purpose and context. */
94
50
  analysis: string;
95
51
 
96
- /**
97
- * Rationale for the operation design decisions.
98
- *
99
- * Explain why you designed the operation this way:
100
- *
101
- * - Why did you choose these parameters and body types?
102
- * - What authorization actors did you select and why?
103
- * - How does this operation fulfill the endpoint description?
104
- * - What was excluded from the design and why?
105
- */
52
+ /** Rationale for the operation design decisions. */
106
53
  rationale: string;
107
54
 
108
55
  /**
109
56
  * The API operation to generate.
110
57
  *
111
- * The operation includes:
58
+ * Follow CRUD operation patterns:
112
59
  *
113
- * - Specification: Detailed API specification with clear purpose and
114
- * functionality
115
- * - Path: Resource-centric URL path (e.g., "/resources/{resourceId}")
116
- * - Method: HTTP method (get, post, put, delete, patch)
117
- * - Description: Extremely detailed multi-paragraph description referencing
118
- * database schema comments
119
- * - Summary: Concise one-sentence summary of the endpoint
120
- * - Parameters: Array of all necessary parameters with descriptions and
121
- * schema definitions
122
- * - RequestBody: For POST/PUT/PATCH methods, with typeName referencing
123
- * components.schemas
124
- * - ResponseBody: With typeName referencing appropriate response type
60
+ * - List/search (PATCH `index`): include pagination, search, and sorting in
61
+ * request body
62
+ * - Detail retrieval (GET `at`): return single full entity
63
+ * - Creation (POST): use `.ICreate` request body
64
+ * - Modification (PUT): use `.IUpdate` request body
125
65
  *
126
- * The operation follows strict quality standards:
127
- *
128
- * 1. Detailed descriptions referencing database schema comments
129
- * 2. Accurate parameter definitions matching path parameters
130
- * 3. Appropriate request/response body type references
131
- * 4. Consistent patterns for CRUD operations
132
- *
133
- * For list retrievals (typically PATCH), include pagination, search, and
134
- * sorting. For detail retrieval (GET), return a single resource. For
135
- * creation (POST), use .ICreate request body. For modification (PUT), use
136
- * .IUpdate request body.
66
+ * Use object types for request/response bodies, reference named component
67
+ * types, and `application/json` content-type.
137
68
  */
138
69
  operation: IOperation;
139
70
  }
140
71
 
141
72
  /**
142
- * Operation of the Restful API.
143
- *
144
- * This interface defines a single API endpoint with its HTTP {@link method},
145
- * {@link path}, {@link parameters path parameters},
146
- * {@link requestBody request body}, and {@link responseBody} structure. It
147
- * corresponds to an individual operation in the paths section of an OpenAPI
148
- * document.
149
- *
150
- * Each operation requires a detailed explanation of its purpose through the
151
- * reason and description fields, making it clear why the API was designed and
152
- * how it should be used.
153
- *
154
- * DO: Use object types for all request bodies and responses. DO: Reference
155
- * named types defined in the components section. DO: Use `application/json`
156
- * as the content-type. DO: Use `string & tags.Format<"uri">` in the schema
157
- * for file upload/download operations instead of binary data formats.
158
- *
159
- * In OpenAPI, this might represent:
73
+ * RESTful API operation (excludes authorization and prerequisite fields).
160
74
  *
161
- * ```json
162
- * {
163
- * "/shoppings/customers/orders": {
164
- * "post": {
165
- * "description": "Create a new order application from shopping cart...",
166
- * "parameters": [...],
167
- * "requestBody": {...},
168
- * "responses": {...}
169
- * }
170
- * }
171
- * }
172
- * ```
75
+ * Use object types for request/response bodies, reference named component
76
+ * types, use `application/json` content-type, and `string &
77
+ * tags.Format<"uri">` for file operations.
173
78
  */
174
79
  export interface IOperation extends Omit<
175
80
  AutoBeOpenApi.IOperation,
@@ -10,10 +10,6 @@ export interface IAutoBeInterfaceOperationReviewApplication {
10
10
  /**
11
11
  * Process operation review task or preliminary data requests.
12
12
  *
13
- * Analyzes the operation for security vulnerabilities, schema compliance,
14
- * logical consistency, and standard adherence. Outputs structured thinking
15
- * process and the production-ready operation.
16
- *
17
13
  * @param props Request containing either preliminary data request or complete
18
14
  * task
19
15
  */
@@ -25,34 +21,17 @@ export namespace IAutoBeInterfaceOperationReviewApplication {
25
21
  /**
26
22
  * Think before you act.
27
23
  *
28
- * Before requesting preliminary data or completing your task, reflect on
29
- * your current state and explain your reasoning:
30
- *
31
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
32
- *
33
- * - What critical information is missing that you don't already have?
34
- * - Why do you need it specifically right now?
35
- * - Be brief - state the gap, don't list everything you have.
36
- *
37
- * For completion (complete):
24
+ * For preliminary requests: what critical information is missing and why?
25
+ * Be brief state the gap, don't list everything you have.
38
26
  *
39
- * - What key assets did you acquire?
40
- * - What did you accomplish?
41
- * - Why is it sufficient to complete?
42
- * - Summarize - don't enumerate every single item.
43
- *
44
- * This reflection helps you avoid duplicate requests and premature
45
- * completion.
27
+ * For completion: what key assets did you acquire, what did you accomplish,
28
+ * why is it sufficient? Summarize — don't enumerate every single item.
46
29
  */
47
30
  thinking: string;
48
31
 
49
32
  /**
50
- * Type discriminator for the request.
51
- *
52
- * Determines which action to perform: preliminary data retrieval
53
- * (getAnalysisSections, getDatabaseSchemas) or final operation review
54
- * (complete). When preliminary returns empty array, that type is removed
55
- * from the union, physically preventing repeated calls.
33
+ * Action to perform. Exhausted preliminary types are removed from the
34
+ * union, physically preventing repeated calls.
56
35
  */
57
36
  request:
58
37
  | IComplete
@@ -64,109 +43,42 @@ export namespace IAutoBeInterfaceOperationReviewApplication {
64
43
  }
65
44
 
66
45
  /**
67
- * Request to review and validate an API operation with minimal correction
68
- * power.
69
- *
70
- * This agent can ONLY modify fields present in the IOperation type. For
71
- * issues in fields not present in IOperation, it must reject the operation by
72
- * returning null.
46
+ * Review and validate an API operation. Can ONLY modify IOperation fields:
73
47
  *
74
- * The IOperation type contains only:
48
+ * - `specification`: Can fix implementation details, algorithm descriptions,
49
+ * database query logic
50
+ * - `description`: Can fix soft delete mismatches, inappropriate security
51
+ * mentions, add schema references
52
+ * - `requestBody`: Can modify both description and typeName
53
+ * - `responseBody`: Can modify both description and typeName
75
54
  *
76
- * - Specification: Implementation guidance for Realize Agent - can fix
77
- * implementation details, algorithm descriptions, database query logic
78
- * - Description: API documentation for consumers - can fix soft delete
79
- * mismatches, inappropriate security mentions, add schema references
80
- * - RequestBody: Complete object - can modify both description and typeName to
81
- * fix clarity issues and naming convention violations
82
- * - ResponseBody: Complete object - can modify both description and typeName to
83
- * fix clarity issues and naming convention violations
84
- *
85
- * Fields not in IOperation cannot be modified - the agent must reject by
86
- * returning null if those fields have issues.
55
+ * Return null to reject if issues exist in non-modifiable fields (path,
56
+ * method, parameters, etc.).
87
57
  */
88
58
  export interface IComplete {
89
- /**
90
- * Type discriminator for the request.
91
- *
92
- * Determines which action to perform: preliminary data retrieval or actual
93
- * task execution. Value "complete" indicates this is the final task
94
- * execution request.
95
- */
59
+ /** Type discriminator for completion request. */
96
60
  type: "complete";
97
61
 
98
- /**
99
- * Comprehensive operation-level review findings.
100
- *
101
- * Systematic assessment of the operation organized by severity:
102
- *
103
- * - Authorization configuration issues
104
- * - Path structure violations
105
- * - Metadata consistency problems
106
- * - Description accuracy issues
107
- *
108
- * Documents what issues were found during review, with specific examples
109
- * and current vs expected behavior.
110
- */
62
+ /** Operation-level review findings organized by severity. */
111
63
  review: string;
112
64
 
113
65
  /**
114
- * Action plan for identified issues.
115
- *
116
- * Structured improvement strategy explaining what corrections will be
117
- * applied and why:
118
- *
119
- * - What specific changes are being made
120
- * - Why each change is necessary
121
- * - If rejecting (returning null), why the operation cannot be fixed
122
- *
123
- * If no issues found: "No improvements required. Operation meets
124
- * standards."
66
+ * Action plan for corrections, or "No improvements required. Operation
67
+ * meets standards."
125
68
  */
126
69
  plan: string;
127
70
 
128
71
  /**
129
- * Corrected operation with issues resolved, or null if operation rejected.
130
- *
131
- * The agent can only modify fields present in IOperation type (description,
132
- * requestBody, responseBody).
133
- *
134
- * Return values:
135
- *
136
- * - **Corrected operation**: If fixable issues were found and corrected in
137
- * the modifiable fields
138
- * - **null**: If operation is perfect OR if issues exist in fields not
139
- * present in IOperation type
140
- *
141
- * When null is returned:
142
- *
143
- * - For perfect operations: means "no changes needed, proceed"
144
- * - For failed validation: means "reject this operation, remove from
145
- * pipeline"
146
- *
147
- * The orchestrator will filter out null operations from the final operation
148
- * list.
72
+ * Corrected operation with fixes applied. Null when no changes are needed.
73
+ * If issues exist in non-modifiable fields, also set to null (the `plan`
74
+ * field should explain why).
149
75
  */
150
76
  content: IOperation | null;
151
77
  }
152
78
 
153
79
  /**
154
- * Operation with ONLY the fields that this agent can modify.
155
- *
156
- * This type contains ONLY the modifiable fields. Fields not in this type
157
- * cannot be modified - if they have issues, the agent must return null.
158
- *
159
- * Fields in this type:
160
- *
161
- * - **specification**: Implementation guidance for Realize Agent - can fix
162
- * implementation details, algorithm descriptions, database query logic
163
- * - **description**: API documentation for consumers - can fix soft delete
164
- * mismatches, remove inappropriate security mentions, add schema
165
- * references
166
- * - **requestBody**: Complete request body object (or null) - can modify both
167
- * description and typeName to fix naming conventions or improve clarity
168
- * - **responseBody**: Complete response body object (or null) - can modify both
169
- * description and typeName to fix naming conventions or improve clarity
80
+ * Operation subset containing only modifiable fields. Return null if
81
+ * non-modifiable fields have issues.
170
82
  */
171
83
  export interface IOperation extends Pick<
172
84
  AutoBeOpenApi.IOperation,
@@ -10,52 +10,21 @@ import { IAutoBePreliminaryGetPreviousInterfaceOperations } from "../../common/s
10
10
  import { IAutoBePreliminaryGetPreviousInterfaceSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas";
11
11
 
12
12
  export interface IAutoBeInterfacePrerequisiteApplication {
13
- /**
14
- * Process prerequisite analysis task or preliminary data requests.
15
- *
16
- * Analyzes a single operation's dependencies and returns the complete
17
- * prerequisite chain based on resource relationships.
18
- *
19
- * @param props Request containing either preliminary data request or complete
20
- * task
21
- */
13
+ /** Process task or retrieve preliminary data. */
22
14
  process(props: IAutoBeInterfacePrerequisiteApplication.IProps): void;
23
15
  }
24
16
 
25
17
  export namespace IAutoBeInterfacePrerequisiteApplication {
26
18
  export interface IProps {
27
19
  /**
28
- * Think before you act.
29
- *
30
- * Before requesting preliminary data or completing your task, reflect on
31
- * your current state and explain your reasoning:
32
- *
33
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
34
- *
35
- * - What critical information is missing that you don't already have?
36
- * - Why do you need it specifically right now?
37
- * - Be brief - state the gap, don't list everything you have.
38
- *
39
- * For completion (complete):
40
- *
41
- * - What key assets did you acquire?
42
- * - What did you accomplish?
43
- * - Why is it sufficient to complete?
44
- * - Summarize - don't enumerate every single item.
45
- *
46
- * This reflection helps you avoid duplicate requests and premature
47
- * completion.
20
+ * Reasoning about your current state: what's missing (preliminary) or what
21
+ * you accomplished (completion).
48
22
  */
49
23
  thinking: string;
50
24
 
51
25
  /**
52
- * Type discriminator for the request.
53
- *
54
- * Determines which action to perform: preliminary data retrieval
55
- * (getAnalysisSections, getDatabaseSchemas, getInterfaceOperations,
56
- * getInterfaceSchemas) or final prerequisite analysis (complete). When
57
- * preliminary returns empty array, that type is removed from the union,
58
- * physically preventing repeated calls.
26
+ * Action to perform. Exhausted preliminary types are removed from the
27
+ * union.
59
28
  */
60
29
  request:
61
30
  | IComplete
@@ -69,62 +38,21 @@ export namespace IAutoBeInterfacePrerequisiteApplication {
69
38
  | IAutoBePreliminaryGetPreviousInterfaceSchemas;
70
39
  }
71
40
 
72
- /**
73
- * Request to analyze and generate API operation prerequisites.
74
- *
75
- * Executes prerequisite analysis to determine which Available API Operations
76
- * must be executed before the target operation based on resource creation
77
- * dependencies and existence validations.
78
- */
41
+ /** Request to analyze and generate API operation prerequisites. */
79
42
  export interface IComplete {
80
- /**
81
- * Type discriminator for the request.
82
- *
83
- * Determines which action to perform: preliminary data retrieval or actual
84
- * task execution. Value "complete" indicates this is the final task
85
- * execution request.
86
- */
43
+ /** Type discriminator for completion request. */
87
44
  type: "complete";
88
45
 
89
- /**
90
- * Analysis of the operation's resource dependencies.
91
- *
92
- * Before determining prerequisites, analyze what you know:
93
- *
94
- * - What resources does this operation require to exist?
95
- * - What foreign key relationships affect this operation?
96
- * - What path parameters imply resource dependencies?
97
- * - What request body fields reference other resources?
98
- */
46
+ /** Analysis of the operation's resource dependencies. */
99
47
  analysis: string;
100
48
 
101
- /**
102
- * Rationale for the prerequisite chain decisions.
103
- *
104
- * Explain why you selected these prerequisites:
105
- *
106
- * - Why is each prerequisite operation necessary?
107
- * - What resource must exist before this operation can succeed?
108
- * - What is the correct ordering of prerequisite operations?
109
- * - What prerequisites were excluded and why?
110
- */
49
+ /** Rationale for the prerequisite chain decisions. */
111
50
  rationale: string;
112
51
 
113
- /**
114
- * The API endpoint being analyzed.
115
- *
116
- * Identifies the specific operation (method + path) that needs
117
- * prerequisites.
118
- */
52
+ /** The API endpoint (method + path) being analyzed. */
119
53
  endpoint: AutoBeOpenApi.IEndpoint;
120
54
 
121
- /**
122
- * Required prerequisite operations.
123
- *
124
- * List of API operations that must be successfully executed before this
125
- * operation can be performed. Based on resource creation dependencies and
126
- * existence validations from the analysis.
127
- */
55
+ /** Required prerequisite operations that must execute before this operation. */
128
56
  prerequisites: AutoBeOpenApi.IPrerequisite[];
129
57
  }
130
58
  }
@@ -9,54 +9,21 @@ import { IAutoBePreliminaryGetPreviousInterfaceOperations } from "../../common/s
9
9
  import { IAutoBePreliminaryGetPreviousInterfaceSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas";
10
10
 
11
11
  export interface IAutoBeInterfaceSchemaApplication {
12
- /**
13
- * Process schema generation task or preliminary data requests.
14
- *
15
- * Generates OpenAPI components containing named schema types and integrates
16
- * them into the final OpenAPI specification. Processes all entity schemas,
17
- * their variants, and related type definitions to ensure comprehensive and
18
- * consistent API design.
19
- *
20
- * @param props Request containing either preliminary data request or complete
21
- * task
22
- */
12
+ /** Process task or retrieve preliminary data. */
23
13
  process(props: IAutoBeInterfaceSchemaApplication.IProps): void;
24
14
  }
25
15
 
26
16
  export namespace IAutoBeInterfaceSchemaApplication {
27
17
  export interface IProps {
28
18
  /**
29
- * Think before you act.
30
- *
31
- * Before requesting preliminary data or completing your task, reflect on
32
- * your current state and explain your reasoning:
33
- *
34
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
35
- *
36
- * - What critical information is missing that you don't already have?
37
- * - Why do you need it specifically right now?
38
- * - Be brief - state the gap, don't list everything you have.
39
- *
40
- * For completion (complete):
41
- *
42
- * - What key assets did you acquire?
43
- * - What did you accomplish?
44
- * - Why is it sufficient to complete?
45
- * - Summarize - don't enumerate every single item.
46
- *
47
- * This reflection helps you avoid duplicate requests and premature
48
- * completion.
19
+ * Reasoning about your current state: what's missing (preliminary) or what
20
+ * you accomplished (completion).
49
21
  */
50
22
  thinking: string;
51
23
 
52
24
  /**
53
- * Type discriminator for the request.
54
- *
55
- * Determines which action to perform: preliminary data retrieval
56
- * (getAnalysisSections, getDatabaseSchemas, getInterfaceOperations) or
57
- * final schema generation (complete). When preliminary returns empty array,
58
- * that type is removed from the union, physically preventing repeated
59
- * calls.
25
+ * Action to perform. Exhausted preliminary types are removed from the
26
+ * union.
60
27
  */
61
28
  request:
62
29
  | IComplete
@@ -69,52 +36,20 @@ export namespace IAutoBeInterfaceSchemaApplication {
69
36
  | IAutoBePreliminaryGetPreviousInterfaceSchemas;
70
37
  }
71
38
 
72
- /**
73
- * Request to generate a single OpenAPI schema component.
74
- *
75
- * Executes schema generation to create a type definition for a specific DTO
76
- * type. Each invocation handles one schema component to ensure accuracy and
77
- * clear responsibility.
78
- */
39
+ /** Request to generate a single OpenAPI schema component. */
79
40
  export interface IComplete {
80
- /**
81
- * Type discriminator for the request.
82
- *
83
- * Determines which action to perform: preliminary data retrieval or actual
84
- * task execution. Value "complete" indicates this is the final task
85
- * execution request.
86
- */
41
+ /** Type discriminator for completion request. */
87
42
  type: "complete";
88
43
 
89
- /**
90
- * Analysis of the type's purpose and context.
91
- *
92
- * Before designing the schema, analyze what you know:
93
- *
94
- * - What is this type for? (e.g., IProduct.ICreate is a creation request)
95
- * - What database entities or operations inform its structure?
96
- * - What fields should be included based on the variant type?
97
- * - Are there related types that provide structural hints?
98
- */
44
+ /** Analysis of the type's purpose and context. */
99
45
  analysis: string;
100
46
 
101
- /**
102
- * Rationale for the schema design decisions.
103
- *
104
- * Explain why you designed the schema this way:
105
- *
106
- * - Which properties did you include and why?
107
- * - What is required vs optional, and why?
108
- * - Which types use $ref and why?
109
- * - What was excluded and why? (e.g., auto-generated fields for ICreate)
110
- */
47
+ /** Rationale for the schema design decisions. */
111
48
  rationale: string;
112
49
 
113
50
  /**
114
- * Design structure for the schema being generated.
115
- *
116
- * Contains `databaseSchema`, `specification`, `description`, and `schema`
117
- * fields that together define a complete DTO type component.
51
+ * Schema design: database mapping, specification, description, and JSON
52
+ * Schema.
118
53
  */
119
54
  design: AutoBeInterfaceSchemaDesign;
120
55
  }