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