@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
@@ -7,9 +7,6 @@ export interface IAutoBeDatabaseCorrectApplication {
7
7
  /**
8
8
  * Process schema correction task or preliminary data requests.
9
9
  *
10
- * Fixes validation errors in specific database models while preserving all
11
- * business logic and model descriptions. Returns ONLY corrected models.
12
- *
13
10
  * @param props Request containing either preliminary data request or complete
14
11
  * task
15
12
  */
@@ -20,126 +17,47 @@ export declare namespace IAutoBeDatabaseCorrectApplication {
20
17
  /**
21
18
  * Think before you act.
22
19
  *
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.
20
+ * For preliminary requests: what critical information is missing and why?
21
+ * Be brief state the gap, don't list everything you have.
31
22
  *
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.
23
+ * For completion: what key assets did you acquire, what did you accomplish,
24
+ * why is it sufficient? Summarize — don't enumerate every single item.
41
25
  */
42
26
  thinking: string;
43
27
  /**
44
- * Type discriminator for the request.
45
- *
46
- * Determines which action to perform: preliminary data retrieval
47
- * (getAnalysisSections, getPreviousAnalysisSections, getDatabaseSchemas,
48
- * getPreviousDatabaseSchemas) or final schema correction (complete). When
49
- * preliminary returns empty array, that type is removed from the union,
50
- * physically preventing repeated calls.
28
+ * Action to perform. Exhausted preliminary types are removed from the
29
+ * union, physically preventing repeated calls.
51
30
  */
52
31
  request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetDatabaseSchemas | IAutoBePreliminaryGetPreviousAnalysisSections | IAutoBePreliminaryGetPreviousDatabaseSchemas;
53
32
  }
54
33
  /**
55
- * Request to fix validation errors in database models.
56
- *
57
- * Executes targeted error correction to resolve specific validation issues in
58
- * affected models only. Applies minimal changes while preserving original
59
- * design intent and business logic.
34
+ * Fix validation errors in affected models only, preserving design intent and
35
+ * business logic.
60
36
  */
61
37
  interface IComplete {
62
- /**
63
- * Type discriminator for the request.
64
- *
65
- * Determines which action to perform: preliminary data retrieval or actual
66
- * task execution. Value "complete" indicates this is the final task
67
- * execution request.
68
- */
38
+ /** Type discriminator for completion request. */
69
39
  type: "complete";
70
40
  /**
71
- * Detailed execution plan for fixing validation errors.
72
- *
73
- * Contains systematic reasoning and step-by-step error resolution approach
74
- * for targeted model validation issues.
75
- *
76
- * Required planning content:
77
- *
78
- * 1. Error scope analysis:
79
- *
80
- * - List all validation errors from IAutoBeDatabaseValidation.IError[]
81
- * - Extract unique table names to identify affected models
82
- * - Categorize errors by type (field duplications, references, types,
83
- * indexes)
84
- * - Identify which models need correction vs. remain unchanged
85
- * 2. Targeted fix strategy:
86
- *
87
- * - Focus ONLY on models mentioned in validation errors
88
- * - Outline minimal changes needed for each affected model
89
- * - Plan cross-model reference updates without modifying non-error models
90
- * - Ensure unchanged models maintain valid references to corrected models
91
- * 3. Model-specific fix plan:
92
- *
93
- * - Model-by-model modification plan for ONLY affected models
94
- * - Exact field additions, renames, or type corrections required
95
- * - Reference updates within corrected models only
96
- * - Index corrections limited to affected models
97
- * 4. Minimal scope validation:
98
- *
99
- * - Confirm which models will be included in output (error models only)
100
- * - List models that will remain unchanged in original schema
101
- * - Identify cross-model dependencies without including unchanged models
102
- * - Preserve all business logic within corrected models
103
- * 5. Targeted impact assessment:
104
- *
105
- * - Potential effects of fixes on unchanged models (reference validation)
106
- * - Verification points for corrected models only
107
- * - Ensure no new validation errors in targeted models
108
- * - Confirm minimal output scope compliance
41
+ * Execution plan for fixing validation errors. Required steps:
42
+ *
43
+ * 1. Error scope analysis list all validation errors, extract affected table
44
+ * names, categorize by type (duplications, references, types, indexes)
45
+ * 2. Targeted fix strategy — focus ONLY on models in errors, outline minimal
46
+ * changes per model
47
+ * 3. Model-specific fix plan — detail corrections per affected model
48
+ * 4. Minimal scope validation — confirm which models are in/out of output
49
+ * 5. Targeted impact assessment — verify fixes don't break references from
50
+ * unchanged models
51
+ *
52
+ * Preserve all business logic and cross-model references.
109
53
  */
110
54
  planning: string;
111
55
  /**
112
56
  * Models with validation errors that need correction.
113
57
  *
114
- * Contains ONLY models mentioned in IAutoBeDatabaseValidation.IError[]
115
- * array. Each model has specific validation errors requiring targeted
116
- * correction. Models not mentioned in errors are excluded from this input.
117
- *
118
- * Expected validation issues:
119
- *
120
- * - Duplicate field/relation names within these specific models
121
- * - Invalid foreign key references from these models to other models
122
- * - Single foreign key fields in index arrays within these models
123
- * - Invalid naming conventions within these specific models
124
- * - Type validation errors in fields of these models
125
- *
126
- * Model content analysis:
127
- *
128
- * - Complete field definitions for each error model only
129
- * - Relationships from these models (may reference unchanged models)
130
- * - Indexes within these models that need correction
131
- * - Business descriptions specific to these models
132
- * - Cross-model references that need validation (read-only for targets)
133
- *
134
- * Processing notes:
135
- *
136
- * - Input contains ONLY models with validation errors
137
- * - May reference other models not included in this input
138
- * - Cross-model references must be validated but target models won't be
139
- * modified
140
- * - Output should return corrected versions of ONLY these input models
141
- * - All business logic and descriptions within these models must be preserved
142
- * - Corrections must not break references from unchanged models
58
+ * Contains ONLY models from IAutoBeDatabaseValidation.IError[]. Output
59
+ * corrected versions of these models only. Cross-model references must stay
60
+ * valid but target models are not modified.
143
61
  */
144
62
  models: AutoBeDatabase.IModel[];
145
63
  }
@@ -4,101 +4,38 @@ import { IAutoBePreliminaryGetAnalysisSections } from "../../common/structures/I
4
4
  import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/structures/IAutoBePreliminaryGetPreviousAnalysisSections";
5
5
  import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas";
6
6
  export interface IAutoBeDatabaseGroupApplication {
7
- /**
8
- * Process database component group generation task or preliminary data
9
- * requests.
10
- *
11
- * Generate logical groups for organizing database component extraction based
12
- * on business domains. Processes group generation with incremental context
13
- * loading to ensure comprehensive organization.
14
- *
15
- * @param props Request containing either preliminary data request or complete
16
- * task
17
- */
7
+ /** Process group generation task or retrieve preliminary data. */
18
8
  process(props: IAutoBeDatabaseGroupApplication.IProps): void;
19
9
  }
20
10
  export declare namespace IAutoBeDatabaseGroupApplication {
21
11
  interface IProps {
22
12
  /**
23
- * Think before you act.
24
- *
25
- * Before requesting preliminary data or completing your task, reflect on
26
- * your current state and explain your reasoning:
27
- *
28
- * For preliminary requests (getAnalysisSections,
29
- * getPreviousAnalysisSections, getPreviousDatabaseSchemas):
30
- *
31
- * - What critical information is missing that you don't already have?
32
- * - Why do you need it specifically right now?
33
- * - Be brief - state the gap, don't list everything you have.
34
- *
35
- * For completion (complete):
36
- *
37
- * - What key assets did you acquire?
38
- * - What did you accomplish?
39
- * - Why is it sufficient to complete?
40
- * - Summarize - don't enumerate every single item.
41
- *
42
- * This reflection helps you avoid duplicate requests and premature
43
- * completion.
13
+ * Reasoning about your current state: what's missing (preliminary) or what
14
+ * you accomplished (completion).
44
15
  */
45
16
  thinking: string;
46
17
  /**
47
- * Type discriminator for the request.
48
- *
49
- * Determines which action to perform: preliminary data retrieval
50
- * (getAnalysisSections, getPreviousAnalysisSections,
51
- * getPreviousDatabaseSchemas) or final group generation (complete). When
52
- * preliminary returns empty array, that type is removed from the union,
53
- * physically preventing repeated calls.
18
+ * Action to perform. Exhausted preliminary types are removed from the
19
+ * union.
54
20
  */
55
21
  request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetPreviousAnalysisSections | IAutoBePreliminaryGetPreviousDatabaseSchemas;
56
22
  }
57
- /**
58
- * Request to generate database component groups.
59
- *
60
- * Executes group generation to organize database components based on business
61
- * domains from requirements.
62
- */
23
+ /** Generate database component groups organized by business domains. */
63
24
  interface IComplete {
64
- /**
65
- * Type discriminator for the request.
66
- *
67
- * Determines which action to perform: preliminary data retrieval or actual
68
- * task execution. Value "complete" indicates this is the final task
69
- * execution request.
70
- */
25
+ /** Type discriminator for completion request. */
71
26
  type: "complete";
72
27
  /**
73
- * Analysis of the requirements structure and domain organization.
74
- *
75
- * Documents the agent's understanding of the business requirements:
76
- *
77
- * - What major business domains were identified from the requirements?
78
- * - How are these domains related to each other?
79
- * - What organizational patterns exist in the requirements?
80
- * - What foundational vs domain-specific components are needed?
28
+ * Analysis of the requirements structure, domain organization, and
29
+ * component needs.
81
30
  */
82
31
  analysis: string;
83
- /**
84
- * Rationale for the component grouping decisions.
85
- *
86
- * Explains why the groups were organized this way:
87
- *
88
- * - Why was each component group created?
89
- * - Why were certain domains combined or kept separate?
90
- * - How does the grouping reflect the business domain structure?
91
- * - What considerations drove the component ordering?
92
- */
32
+ /** Rationale for component grouping decisions and domain boundaries. */
93
33
  rationale: string;
94
34
  /**
95
- * Array of database component groups for organizing development.
35
+ * Database component groups derived from business domains.
96
36
  *
97
- * DO: Derive groups from business domains in requirements rather than
98
- * arbitrary technical divisions. DO: Create foundational groups
99
- * (Systematic, Actors) separately from domain-specific groups. DO: Organize
100
- * groups around business workflows and entity relationships. DO: Provide
101
- * complete coverage of all components without overlap.
37
+ * Separate foundational groups (Systematic, Actors) from domain-specific
38
+ * groups. Ensure complete coverage without overlap.
102
39
  */
103
40
  groups: AutoBeDatabaseGroup[] & tags.MinItems<1>;
104
41
  }
@@ -3,47 +3,19 @@ import { IAutoBePreliminaryGetAnalysisSections } from "../../common/structures/I
3
3
  import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/structures/IAutoBePreliminaryGetPreviousAnalysisSections";
4
4
  import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas";
5
5
  export interface IAutoBeDatabaseGroupReviewApplication {
6
- /**
7
- * Analyze requirements and review the component group skeletons.
8
- *
9
- * Your PRIMARY task is to verify that the group structure provides complete,
10
- * well-organized coverage of all business domains described in the
11
- * requirements. Review existing groups and identify necessary modifications
12
- * using create, update, or erase operations.
13
- *
14
- * ALWAYS fetch analysis sections first using `getAnalysisSections` to
15
- * understand what business domains exist, then systematically verify group
16
- * coverage and apply corrections.
17
- *
18
- * @param props Request containing either preliminary data request or complete
19
- * task with group revisions
20
- */
6
+ /** Process group review task or retrieve preliminary data. */
21
7
  process(props: IAutoBeDatabaseGroupReviewApplication.IProps): void;
22
8
  }
23
9
  export declare namespace IAutoBeDatabaseGroupReviewApplication {
24
10
  interface IProps {
25
11
  /**
26
- * Reflect on requirements analysis before acting.
27
- *
28
- * For preliminary requests (getAnalysisSections,
29
- * getPreviousAnalysisSections, getPreviousDatabaseSchemas):
30
- *
31
- * - What business domains do you need to analyze?
32
- * - What requirements will help verify group coverage?
33
- *
34
- * For completion (complete):
35
- *
36
- * - What domains did you analyze?
37
- * - How many revisions are you making and why?
38
- * - Summarize the domain-to-group mapping.
12
+ * Reasoning about your current state: what's missing (preliminary) or what
13
+ * you accomplished (completion).
39
14
  */
40
15
  thinking: string;
41
16
  /**
42
- * Request type discriminator.
43
- *
44
- * Use preliminary requests (getAnalysisSections, etc.) to fetch
45
- * requirements documents. Use complete to submit group revisions after
46
- * thorough domain coverage analysis.
17
+ * Action to perform. Exhausted preliminary types are removed from the
18
+ * union.
47
19
  */
48
20
  request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetPreviousAnalysisSections | IAutoBePreliminaryGetPreviousDatabaseSchemas;
49
21
  }
@@ -52,91 +24,21 @@ export declare namespace IAutoBeDatabaseGroupReviewApplication {
52
24
  /** Type discriminator. Value "complete" indicates final submission. */
53
25
  type: "complete";
54
26
  /**
55
- * Domain coverage analysis.
56
- *
57
- * Document how you analyzed business requirements and mapped them to group
58
- * modifications:
59
- *
60
- * - What business domains are defined in requirements?
61
- * - Does each domain have a corresponding group?
62
- * - Are group boundaries appropriate?
63
- * - Are kind assignments correct?
64
- *
65
- * Be specific - reference actual requirements and explain the
66
- * domain-to-revisions mapping.
27
+ * How business requirements map to proposed group modifications,
28
+ * identifying coverage gaps.
67
29
  */
68
30
  review: string;
69
31
  /**
70
- * Array of group revision operations.
71
- *
72
- * Include all create, update, and erase operations identified during
73
- * review. Each operation must include a reason explaining why the change is
74
- * necessary.
75
- *
76
- * ## Operation Types:
32
+ * Group revision operations (create/update/erase). Each must include a
33
+ * reason.
77
34
  *
78
- * ### Create - Add missing groups
35
+ * Constraints:
79
36
  *
80
- * Use when a business domain has no corresponding group.
81
- *
82
- * ```typescript
83
- * {
84
- * "type": "create",
85
- * "reason": "Notification functionality exists in requirements but has no group",
86
- * "group": {
87
- * "thinking": "...",
88
- * "review": "...",
89
- * "rationale": "...",
90
- * "namespace": "Notifications",
91
- * "filename": "schema-10-notifications.prisma",
92
- * "kind": "domain"
93
- * }
94
- * }
95
- * ```
96
- *
97
- * ### Update - Modify existing groups
98
- *
99
- * Use when a group has property issues.
100
- *
101
- * ```typescript
102
- * {
103
- * "type": "update",
104
- * "reason": "Namespace uses incorrect casing",
105
- * "originalNamespace": "products_catalog",
106
- * "group": {
107
- * "thinking": "...",
108
- * "review": "...",
109
- * "rationale": "...",
110
- * "namespace": "Products",
111
- * "filename": "schema-03-products.prisma",
112
- * "kind": "domain"
113
- * }
114
- * }
115
- * ```
116
- *
117
- * ### Erase - Remove groups
118
- *
119
- * Use when a group is unnecessary.
120
- *
121
- * ```typescript
122
- * {
123
- * "type": "erase",
124
- * "reason": "Group is redundant with existing Products group",
125
- * "namespace": "Catalog"
126
- * }
127
- * ```
128
- *
129
- * ## Constraints:
130
- *
131
- * - After revisions: exactly 1 authorization group, ≥1 domain groups
132
- * - Each operation must have a clear, requirement-based reason
37
+ * - After revisions: exactly 1 authorization group, at least 1 domain group
133
38
  * - Empty array is valid if no modifications are needed
134
39
  *
135
- * ## Naming Conventions:
136
- *
137
- * - Namespace: PascalCase (e.g., "Products", "Orders")
138
- * - Filename: `schema-{number}-{domain}.prisma` format
139
- * - Kind: "authorization" or "domain"
40
+ * Naming: namespace PascalCase, filename `schema-{number}-{domain}.prisma`,
41
+ * kind "authorization" or "domain".
140
42
  */
141
43
  revises: AutoBeDatabaseGroupRevise[];
142
44
  }
@@ -4,10 +4,7 @@ import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/stru
4
4
  import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas";
5
5
  export interface IAutoBeDatabaseSchemaApplication {
6
6
  /**
7
- * Process schema generation task or preliminary data requests.
8
- *
9
- * Generates database models for the target component following normalization
10
- * principles and database design best practices.
7
+ * Process schema generation task or retrieve preliminary data.
11
8
  *
12
9
  * @param props Request containing either preliminary data request or complete
13
10
  * task
@@ -19,115 +16,47 @@ export declare namespace IAutoBeDatabaseSchemaApplication {
19
16
  /**
20
17
  * Think before you act.
21
18
  *
22
- * Before requesting preliminary data or completing your task, reflect on
23
- * your current state and explain your reasoning:
24
- *
25
- * For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
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.
19
+ * For preliminary requests: what critical information is missing and why?
20
+ * Be brief state the gap, don't list everything you have.
37
21
  *
38
- * This reflection helps you avoid duplicate requests and premature
39
- * completion.
22
+ * For completion: what key assets did you acquire, what did you accomplish,
23
+ * why is it sufficient? Summarize — don't enumerate every single item.
40
24
  */
41
25
  thinking: string;
42
26
  /**
43
- * Type discriminator for the request.
44
- *
45
- * Determines which action to perform: preliminary data retrieval
46
- * (getAnalysisSections, getPreviousAnalysisSections,
47
- * getPreviousDatabaseSchemas) or final schema generation (complete). When
48
- * preliminary returns empty array, that type is removed from the union,
49
- * physically preventing repeated calls.
27
+ * Action to perform. Exhausted preliminary types are removed from the
28
+ * union, physically preventing repeated calls.
50
29
  */
51
30
  request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetPreviousAnalysisSections | IAutoBePreliminaryGetPreviousDatabaseSchemas;
52
31
  }
53
32
  /**
54
- * Request to generate database schema models.
55
- *
56
- * Executes schema generation to create production-ready database models
57
- * following normalization principles, relationship patterns, and indexing
58
- * strategies.
33
+ * Generate production-ready database schema models with normalization and
34
+ * indexing.
59
35
  */
60
36
  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
- */
37
+ /** Type discriminator for completion request. */
68
38
  type: "complete";
69
39
  /**
70
- * Strategic database design analysis and planning.
71
- *
72
- * Contains the database architecture strategy for the target table and any
73
- * child tables needed for First Normal Form (1NF) compliance, including
74
- * structure, relationships, normalization approach, indexing strategies,
75
- * and business requirement mapping. This planning phase defines the
76
- * blueprint for the model implementations.
77
- *
78
- * Key planning aspects:
40
+ * Database design plan for the target table and any child tables (1NF
41
+ * decomposition).
79
42
  *
80
- * - Assignment validation: Extract targetTable as the assignment
81
- * - Target table: The primary table matching targetTable is mandatory
82
- * - Child tables: Additional tables to decompose repeating groups or
83
- * non-atomic values into separate normalized tables (1NF compliance)
84
- * - Child table naming: Must use singular form of targetTable as prefix
85
- * (e.g., for "shopping_orders": "shopping_order_items")
86
- * - Other tables: Identify existing tables from otherComponents for foreign
87
- * key relationships — never recreate them
88
- * - Normalization: Strict adherence to 1NF, 2NF, 3NF principles
89
- * - Snapshot architecture: Design for historical data preservation
90
- * - Junction tables: Plan M:N relationships with proper naming
91
- * ({table1}_{table2})
92
- * - Materialized views: Identify needs for mv_ prefixed denormalized tables
43
+ * Child table naming: singular form of targetTable as prefix (e.g.,
44
+ * "shopping_order_items"). Never recreate existing tables from
45
+ * otherComponents. Strict 1NF/2NF/3NF adherence. Junction tables:
46
+ * {table1}_{table2}. Materialized views: mv_ prefix.
93
47
  */
94
48
  plan: string;
95
49
  /**
96
- * Schema definition containing the single target table model and any newly
97
- * discovered table designs.
98
- *
99
- * The definition carries exactly one
100
- * {@link AutoBeDatabaseSchemaDefinition.model} — the target table assigned
101
- * to this call — so that the output stays within the LLM's maximum output
102
- * token limit. If normalization (e.g. 1NF decomposition) requires
103
- * additional child tables, declare them in
104
- * {@link AutoBeDatabaseSchemaDefinition.newDesigns} as lightweight name +
105
- * description pairs; they will be generated by their own dedicated pipeline
106
- * calls.
107
- *
108
- * Model implementation requirements:
109
- *
110
- * - Primary keys: Always UUID type with field name "id"
111
- * - Foreign keys: Proper IRelation configurations for all relationships
112
- * - Business fields: Only raw data fields - no calculated or derived values
113
- * - Data types: Limited to uuid, string, int, double, datetime, boolean, uri
114
- * - Relationships: Correct patterns for 1:1, 1:N, and M:N
115
- * - Indexes:
116
- *
117
- * - UniqueIndexes: Business constraints and composite unique keys
118
- * - PlainIndexes: Multi-column query optimization (never single FK)
119
- * - GinIndexes: Full-text search on appropriate string fields
120
- * - Materialized views: Tables prefixed with "mv_" have material flag set
121
- * - Documentation: Comprehensive English descriptions with business context
122
- *
123
- * Quality standards:
124
- *
125
- * - Strict adherence to 3NF (Third Normal Form)
126
- * - No denormalization except in materialized views (mv_ tables)
127
- * - All foreign keys reference valid existing tables
128
- * - Consistent created_at, updated_at, deleted_at patterns
129
- * - Proper historical data preservation where needed
130
- * - Optimized index strategy for expected query patterns
50
+ * Schema definition with exactly one
51
+ * {@link AutoBeDatabaseSchemaDefinition.model} (the target table).
52
+ * Additional child tables go in
53
+ * {@link AutoBeDatabaseSchemaDefinition.newDesigns} as name + description
54
+ * pairs.
55
+ *
56
+ * Key rules: UUID "id" primary keys, data types limited to
57
+ * uuid/string/int/double/ datetime/boolean/uri, no derived values, strict
58
+ * 3NF, mv_ prefix for materialized views, consistent
59
+ * created_at/updated_at/deleted_at, PlainIndexes never single FK.
131
60
  */
132
61
  definition: AutoBeDatabaseSchemaDefinition;
133
62
  }