@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
@@ -6,10 +6,6 @@ export interface IAutoBeRealizeOperationCorrectApplication {
6
6
  /**
7
7
  * Process provider correction task or preliminary data requests.
8
8
  *
9
- * Systematically analyzes and corrects TypeScript compilation errors through
10
- * three-phase workflow (think → draft → revise). Maintains business logic
11
- * integrity while resolving all compilation issues.
12
- *
13
9
  * @param props Request containing either preliminary data request or complete
14
10
  * task
15
11
  */
@@ -20,56 +16,24 @@ export declare namespace IAutoBeRealizeOperationCorrectApplication {
20
16
  /**
21
17
  * Think before you act.
22
18
  *
23
- * Before requesting preliminary data or completing your task, reflect on
24
- * your current state and explain your reasoning:
25
- *
26
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
27
- *
28
- * - What critical information is missing that you don't already have?
29
- * - Why do you need it specifically right now?
30
- * - Be brief - state the gap, don't list everything you have.
19
+ * For preliminary requests: what critical information is missing and why?
31
20
  *
32
- * For completion (complete):
33
- *
34
- * - What key assets did you acquire?
35
- * - What did you accomplish?
36
- * - Why is it sufficient to complete?
37
- * - Summarize - don't enumerate every single item.
38
- *
39
- * This reflection helps you avoid duplicate requests and premature
40
- * completion.
21
+ * For completion: what did you acquire, what did you accomplish, why is it
22
+ * sufficient? Summarize — don't enumerate every single item.
41
23
  */
42
24
  thinking: string;
43
25
  /**
44
- * Type discriminator for the request.
45
- *
46
- * Determines which action to perform: preliminary data retrieval
47
- * (getDatabaseSchemas) or final error correction (complete). When
48
- * preliminary returns empty array, that type is removed from the union,
49
- * physically preventing repeated calls.
26
+ * Action to perform. Exhausted preliminary types are removed from the
27
+ * union, physically preventing repeated calls.
50
28
  */
51
29
  request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetDatabaseSchemas | IAutoBePreliminaryGetRealizeCollectors | IAutoBePreliminaryGetRealizeTransformers;
52
30
  }
53
- /**
54
- * Request to correct provider implementation errors.
55
- *
56
- * Executes three-phase error correction to resolve TypeScript compilation
57
- * issues in provider functions. Applies systematic fixes following think →
58
- * draft → revise pattern to ensure error-free production code.
59
- */
31
+ /** Correct provider compilation errors via think/draft/revise. */
60
32
  interface IComplete {
61
- /**
62
- * Type discriminator for the request.
63
- *
64
- * Determines which action to perform: preliminary data retrieval or actual
65
- * task execution. Value "complete" indicates this is the final task
66
- * execution request.
67
- */
33
+ /** Type discriminator for completion request. */
68
34
  type: "complete";
69
35
  /**
70
- * Initial error analysis and correction strategy.
71
- *
72
- * Analyzes TypeScript compilation errors to understand:
36
+ * Error analysis and correction strategy. Understand:
73
37
  *
74
38
  * - Error patterns and root causes
75
39
  * - Required fixes and their impact
@@ -77,43 +41,24 @@ export declare namespace IAutoBeRealizeOperationCorrectApplication {
77
41
  * - Database schema and API contract constraints
78
42
  */
79
43
  think: string;
80
- /**
81
- * First correction attempt.
82
- *
83
- * Implements the initial fixes identified in the think phase. For simple
84
- * errors (typos, missing imports), this may be the final solution. Complex
85
- * errors may require further refinement.
86
- */
44
+ /** Corrected implementation applying all fixes from think phase. */
87
45
  draft: string;
88
- /**
89
- * Revision and finalization phase.
90
- *
91
- * Reviews the draft corrections and produces the final, error-free code
92
- * that maintains all business requirements.
93
- */
46
+ /** Reviews draft corrections and produces final error-free code. */
94
47
  revise: IReviseProps;
95
48
  }
96
49
  interface IReviseProps {
97
50
  /**
98
- * Correction review and validation.
99
- *
100
- * Analyzes the draft corrections to ensure:
51
+ * Verify corrections:
101
52
  *
102
- * - All TypeScript errors are resolved
53
+ * - All TypeScript errors resolved
103
54
  * - Business logic remains intact
104
- * - AutoBE coding standards are maintained
105
- * - No new errors are introduced
106
- * - Performance and security are preserved
55
+ * - No new errors introduced
56
+ * - Performance and security preserved
107
57
  */
108
58
  review: string;
109
59
  /**
110
- * Final error-free implementation.
111
- *
112
- * The complete, corrected code that passes all TypeScript compilation
113
- * checks.
114
- *
115
- * Returns `null` if the draft corrections are sufficient and need no
116
- * further changes.
60
+ * Final error-free code with all corrections applied, or null if draft
61
+ * needs no changes.
117
62
  */
118
63
  final: string | null;
119
64
  }
@@ -3,26 +3,12 @@ import { IAutoBePreliminaryGetDatabaseSchemas } from "../../common/structures/IA
3
3
  import { IAutoBePreliminaryGetRealizeCollectors } from "../../common/structures/IAutoBePreliminaryGetRealizeCollectors";
4
4
  import { IAutoBePreliminaryGetRealizeTransformers } from "../../common/structures/IAutoBePreliminaryGetRealizeTransformers";
5
5
  /**
6
- * Function calling interface for generating API operation implementation
7
- * functions.
8
- *
9
- * Guides the AI agent through creating provider functions that implement
10
- * complete business logic for specific API endpoints. Each operation function
11
- * handles the full request-response lifecycle including validation,
12
- * authorization, database operations, and response formatting.
13
- *
14
- * The generation follows a structured RAG workflow: preliminary context
15
- * gathering (database schemas) → implementation planning → code generation →
16
- * review and refinement.
6
+ * Generates provider functions implementing business logic for API endpoints
7
+ * via plan/draft/revise workflow.
17
8
  */
18
9
  export interface IAutoBeRealizeOperationWriteApplication {
19
10
  /**
20
- * Process operation function implementation task or preliminary data
21
- * requests.
22
- *
23
- * Generates complete operation function implementation through three-phase
24
- * workflow (plan → draft → revise). Ensures type safety, proper database
25
- * query patterns, and API contract compliance.
11
+ * Process operation function generation task or preliminary data requests.
26
12
  *
27
13
  * @param props Request containing either preliminary data request or complete
28
14
  * task
@@ -34,75 +20,36 @@ export declare namespace IAutoBeRealizeOperationWriteApplication {
34
20
  /**
35
21
  * Think before you act.
36
22
  *
37
- * Before requesting preliminary data or completing your task, reflect on
38
- * your current state and explain your reasoning:
39
- *
40
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
41
- *
42
- * - What critical information is missing that you don't already have?
43
- * - Why do you need it specifically right now?
44
- * - Be brief - state the gap, don't list everything you have.
45
- *
46
- * For completion (complete):
47
- *
48
- * - What key assets did you acquire?
49
- * - What did you accomplish?
50
- * - Why is it sufficient to complete?
51
- * - Summarize - don't enumerate every single item.
23
+ * For preliminary requests: what critical information is missing and why?
52
24
  *
53
- * This reflection helps you avoid duplicate requests and premature
54
- * completion.
25
+ * For completion: what key assets did you acquire, what did you accomplish,
26
+ * why is it sufficient? Summarize — don't enumerate every single item.
55
27
  */
56
28
  thinking: string;
57
29
  /**
58
- * Type discriminator for the request.
59
- *
60
- * Determines which action to perform: preliminary data retrieval
61
- * (getDatabaseSchemas, getRealizeCollectors, getRealizeTransformers) or
62
- * final implementation generation (complete). When preliminary returns
63
- * empty array, that type is removed from the union, physically preventing
64
- * repeated calls.
30
+ * Action to perform. Exhausted preliminary types are removed from the
31
+ * union, physically preventing repeated calls.
65
32
  */
66
33
  request: IComplete | IAutoBePreliminaryGetDatabaseSchemas | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetRealizeCollectors | IAutoBePreliminaryGetRealizeTransformers;
67
34
  }
68
- /**
69
- * Request to generate operation function implementation.
70
- *
71
- * Executes three-phase generation to create complete operation
72
- * implementation. Follows plan → draft → revise pattern to ensure type
73
- * safety, proper database query patterns, and API contract compliance.
74
- */
35
+ /** Generate operation implementation via plan/draft/revise. */
75
36
  interface IComplete {
76
37
  /** Type discriminator for completion request. */
77
38
  type: "complete";
78
39
  /**
79
- * Operation implementation plan and strategy.
80
- *
81
- * Analyzes the operation function requirements, identifies related database
82
- * schemas, and outlines the implementation approach. Includes schema
40
+ * Operation implementation plan. Analyze requirements, identify related
41
+ * database schemas, and outline implementation approach including schema
83
42
  * validation and API contract verification.
84
43
  */
85
44
  plan: string;
86
- /**
87
- * Initial implementation draft.
88
- *
89
- * The first complete implementation attempt based on the plan. May contain
90
- * areas that need refinement in the review phase.
91
- */
45
+ /** First complete implementation attempt based on the plan. */
92
46
  draft: string;
93
- /**
94
- * Revision and finalization phase.
95
- *
96
- * Reviews the draft implementation and produces the final code with all
97
- * improvements and corrections applied.
98
- */
47
+ /** Reviews draft and produces final code. */
99
48
  revise: IReviseProps;
100
49
  }
101
50
  interface IReviseProps {
102
51
  /**
103
- * Review and improvement suggestions.
104
- *
105
- * Identifies areas for improvement in the draft code, including:
52
+ * Identify improvements:
106
53
  *
107
54
  * - Type safety enhancements
108
55
  * - Database query optimizations
@@ -112,12 +59,8 @@ export declare namespace IAutoBeRealizeOperationWriteApplication {
112
59
  */
113
60
  review: string;
114
61
  /**
115
- * Final operation function code.
116
- *
117
- * The complete, production-ready implementation with all review suggestions
118
- * applied.
119
- *
120
- * Returns `null` if the draft is already perfect and needs no changes.
62
+ * Final operation function code with all review improvements applied, or
63
+ * null if draft needs no changes.
121
64
  */
122
65
  final: string | null;
123
66
  }
@@ -4,11 +4,6 @@ export interface IAutoBeRealizeTransformerCorrectApplication {
4
4
  /**
5
5
  * Process transformer correction task or preliminary data requests.
6
6
  *
7
- * Systematically analyzes and corrects TypeScript compilation errors in
8
- * transformer functions through three-phase workflow (think → draft →
9
- * revise). Maintains business logic integrity while resolving all compilation
10
- * issues.
11
- *
12
7
  * @param props Request containing either preliminary data request or complete
13
8
  * task
14
9
  */
@@ -19,63 +14,31 @@ export declare namespace IAutoBeRealizeTransformerCorrectApplication {
19
14
  /**
20
15
  * Think before you act.
21
16
  *
22
- * Before requesting preliminary data or completing your task, reflect on
23
- * your current state and explain your reasoning:
24
- *
25
- * For preliminary requests (getDatabaseSchemas):
26
- *
27
- * - What critical information is missing that you don't already have?
28
- * - Why do you need it specifically right now?
29
- * - Be brief - state the gap, don't list everything you have.
30
- *
31
- * For completion (complete):
32
- *
33
- * - What key assets did you acquire?
34
- * - What did you accomplish?
35
- * - Why is it sufficient to complete?
36
- * - Summarize - don't enumerate every single item.
17
+ * For preliminary requests: what critical information is missing?
37
18
  *
38
- * This reflection helps you avoid duplicate requests and premature
39
- * completion.
19
+ * For completion: what did you acquire, what did you accomplish, why is it
20
+ * sufficient? Summarize — don't enumerate every single item.
40
21
  */
41
22
  thinking: string;
42
23
  /**
43
- * Type discriminator for the request.
44
- *
45
- * Determines which action to perform: preliminary data retrieval
46
- * (getDatabaseSchemas) or final error correction (complete). When
47
- * preliminary returns empty array, that type is removed from the union,
48
- * physically preventing repeated calls.
24
+ * Action to perform. Exhausted preliminary types are removed from the
25
+ * union, physically preventing repeated calls.
49
26
  */
50
27
  request: IComplete | IAutoBePreliminaryGetDatabaseSchemas;
51
28
  }
52
- /**
53
- * Request to correct transformer implementation errors.
54
- *
55
- * Executes three-phase error correction to resolve TypeScript compilation
56
- * issues in transformer functions. Applies systematic fixes following think →
57
- * draft → revise pattern to ensure error-free production code.
58
- */
29
+ /** Correct transformer compilation errors via think/draft/revise. */
59
30
  interface IComplete {
60
- /**
61
- * Type discriminator for the request.
62
- *
63
- * Determines which action to perform: preliminary data retrieval or actual
64
- * task execution. Value "complete" indicates this is the final task
65
- * execution request.
66
- */
31
+ /** Type discriminator for completion request. */
67
32
  type: "complete";
68
33
  /**
69
- * Systematic error analysis and correction strategy.
70
- *
71
- * MUST contain thorough analysis with these four mandatory sections:
34
+ * Systematic error analysis. MUST contain four sections:
72
35
  *
73
- * 1. Error Inventory - Categorize ALL compilation errors by root cause type
74
- * 2. Root Cause Analysis - Identify WHY each error occurs (wrong field, wrong
36
+ * 1. Error Inventory categorize ALL compilation errors by root cause
37
+ * 2. Root Cause Analysis identify WHY each error occurs (wrong field, wrong
75
38
  * transform, etc.)
76
- * 3. Schema Verification - Cross-check error-related fields against actual
39
+ * 3. Schema Verification cross-check error-related fields against actual
77
40
  * database schema
78
- * 4. Correction Strategy - Specific fix for each error in BOTH select() and
41
+ * 4. Correction Strategy specific fix for each error in BOTH select() and
79
42
  * transform()
80
43
  *
81
44
  * This forces you to understand the REAL problem (not guess) and plan
@@ -83,150 +46,69 @@ export declare namespace IAutoBeRealizeTransformerCorrectApplication {
83
46
  */
84
47
  think: string;
85
48
  /**
86
- * Database field-by-field selection mapping verification for the select()
87
- * function.
49
+ * Selection mapping verification for select(). For each database field
50
+ * needed by transform(), document:
88
51
  *
89
- * Review which database fields/relations are being selected to identify
90
- * missing selections or incorrect field names that cause compilation
91
- * errors.
92
- *
93
- * For each database field needed by transform(), document:
94
- *
95
- * - `member`: Exact database field/relation name (snake_case) - verify
96
- * against schema
97
- * - `kind`: Whether it's a scalar field, belongsTo, hasOne, or hasMany
98
- * relation
99
- * - `nullable`: Whether the field/relation is nullable (true/false for
100
- * scalar/belongsTo, null for hasMany/hasOne)
52
+ * - `member`: Exact Prisma field/relation name (snake_case) verify against
53
+ * the Relation Mapping Table and member list
54
+ * - `kind`: scalar, belongsTo, hasOne, or hasMany
55
+ * - `nullable`: true/false for scalar/belongsTo, null for hasMany/hasOne
101
56
  * - `how`: Current state + correction plan ("No change needed", "Fix: wrong
102
57
  * field name", etc.)
103
58
  *
104
- * The `kind` property helps identify selection syntax errors (e.g., using
105
- * `field: true` for a relation instead of nested select).
106
- *
107
- * The `nullable` property helps catch nullability mismatch errors in
108
- * transform().
109
- *
110
59
  * **Common selection errors to identify**:
111
60
  *
112
61
  * - Wrong field name (typo or doesn't exist in schema)
113
- * - Missing required field (transform() uses it but select() doesn't fetch
114
- * it)
115
- * - Wrong selection syntax (true for relation, or nested select for scalar)
116
- * - Selecting field that doesn't exist in database model
117
- * - Missing aggregation (_count, _sum) when transform() needs it
62
+ * - Missing required field (transform() uses it but select() doesn't)
63
+ * - Wrong syntax (true for relation, or nested select for scalar)
118
64
  *
119
- * This structured verification:
120
- *
121
- * - Catches missing field selections before runtime
122
- * - Identifies field name typos by comparing with schema
123
- * - Ensures select() provides all data transform() needs
124
- * - Documents what corrections are needed for selection logic
125
- * - Prevents "field not found" errors
126
- *
127
- * The validator will cross-check this against the database schema to ensure
128
- * all field names are valid and complete coverage.
129
- *
130
- * **Note**: If compilation succeeds, select() is typically correct. This
131
- * mapping is mainly for cases where select() has errors (wrong field names,
132
- * missing selections).
65
+ * Missing even a single required field will cause validation failure.
133
66
  */
134
67
  selectMappings: AutoBeRealizeTransformerSelectMapping[];
135
68
  /**
136
- * DTO property-by-property mapping verification for the transform()
137
- * function.
138
- *
139
- * Review EVERY property from the DTO type definition to ensure correct
140
- * transformation in the transform() function. This systematic approach
141
- * catches errors beyond what the compiler reports and prevents new issues.
142
- *
143
- * For each DTO property in transform(), document:
69
+ * Transform mapping verification. MUST include EVERY DTO property.
144
70
  *
145
71
  * - `property`: Exact DTO property name (camelCase)
146
72
  * - `how`: Current state + correction plan ("No change needed", "Fix:
147
- * [problem] → [solution]", etc.)
148
- *
149
- * Even properties without errors should be included with "No change needed"
150
- * to ensure complete review. Missing even a single property could hide
151
- * bugs.
152
- *
153
- * This structured verification:
154
- *
155
- * - Catches silent errors compiler didn't report
156
- * - Ensures no properties accidentally omitted in transform()
157
- * - Documents transformation corrections explicitly
158
- * - Verifies transform() logic correctness
159
- * - Prevents regression in working transformations
160
- *
161
- * **Common correction scenarios in transform()**:
73
+ * [problem] → [solution]")
162
74
  *
163
- * - Missing type conversion (Decimal Number, DateTime ISO)
164
- * - Wrong property name (DTO vs database mismatch)
165
- * - Inline transformation when neighbor transformer exists
166
- * - Missing computed property
167
- * - Wrong nullable handling (DateTime? → string | null)
168
- * - Fabricated property not in DTO
169
- * - Missing property from DTO
170
- * - Missing await for async transformers
75
+ * Even correct properties must be included with "No change needed" to
76
+ * ensure complete review.
171
77
  *
172
- * The validator will cross-check this against the DTO type definition to
173
- * ensure nothing was overlooked.
174
- *
175
- * **Note**: This mapping is ONLY for the transform() function. The select()
176
- * function is typically correct if compilation succeeds, as it's
177
- * structurally simpler.
78
+ * Missing even a single property will cause validation failure.
178
79
  */
179
80
  transformMappings: AutoBeRealizeTransformerTransformMapping[];
180
81
  /**
181
- * Initial correction implementation.
182
- *
183
- * Complete corrected code that applies ALL fixes from the think phase
184
- * strategy. EVERY error in think Section 1 inventory MUST be addressed.
185
- * Implement:
82
+ * Complete corrected code. EVERY error from think Section 1 MUST be
83
+ * addressed. Implement:
186
84
  *
187
85
  * - Field name corrections in select() (exact database field names)
188
86
  * - Type casts in transform() (Decimal→Number, DateTime→ISO)
189
87
  * - Neighbor transformer reuse (replace inline logic if transformer exists)
190
- * - Function order fix (transform → select → Payload)
191
88
  *
192
- * Apply fixes surgically - change ONLY what's broken, preserve working
89
+ * Apply fixes surgically change ONLY what's broken, preserve working
193
90
  * logic.
194
91
  */
195
92
  draft: string;
196
- /**
197
- * Revision and finalization phase.
198
- *
199
- * Reviews the draft corrections and produces the final, error-free code
200
- * that maintains all business requirements.
201
- */
93
+ /** Reviews draft corrections and produces final error-free code. */
202
94
  revise: IReviseProps;
203
95
  }
204
96
  interface IReviseProps {
205
97
  /**
206
- * Critical correction review and validation.
207
- *
208
- * MUST systematically verify using four checklists:
98
+ * MUST systematically verify four checklists:
209
99
  *
210
- * 1. Error Resolution - Confirm EVERY error from think Section 1 is fixed
211
- * 2. Root Cause Fix - Verify fixes address root causes (not workarounds/hacks)
212
- * 3. System Rules - Mandatory neighbor reuse, select (not include), proper
213
- * types
214
- * 4. No Regression - Confirm no NEW errors, Payload type matches select()
100
+ * 1. Error Resolution confirm EVERY error from think Section 1 is fixed
101
+ * 2. Root Cause Fix verify fixes address root causes (not workarounds/hacks)
102
+ * 3. System Rules neighbor reuse, select (not include), proper types
103
+ * 4. No Regression — confirm no NEW errors, Payload type matches select()
215
104
  *
216
- * Identify any remaining issues with line numbers and root cause analysis.
217
105
  * Catch Band-Aid fixes (any casts, type assertions) that hide real
218
106
  * problems.
219
107
  */
220
108
  review: string;
221
109
  /**
222
- * Final error-free transformer code with all corrections applied.
223
- *
224
- * Apply ALL remaining fixes identified in the review to produce
225
- * compilation-ready code. If review found issues (workarounds, new errors),
226
- * this MUST contain proper fixes.
227
- *
228
- * Return `null` ONLY if draft is already perfect and review found zero
229
- * issues.
110
+ * Final error-free code with all corrections applied, or null if draft
111
+ * needs no changes.
230
112
  */
231
113
  final: string | null;
232
114
  }