@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
@@ -1,107 +1,48 @@
1
1
  import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/structures/IAutoBePreliminaryGetPreviousAnalysisSections";
2
2
  /**
3
- * Application interface for the Cross-File Section Consistency Review agent.
4
- *
5
- * This agent reviews ALL files' section metadata (titles, keywords, purposes)
6
- * together in a single LLM call, providing cross-file validation for
7
- * terminology alignment, value consistency, naming conventions, and content
8
- * deduplication.
9
- *
10
- * Unlike the per-file review which checks full content quality, this review
11
- * only receives lightweight metadata to stay within context limits.
3
+ * Reviews all files' section metadata in a single call for cross-file
4
+ * terminology, value, and naming consistency.
12
5
  */
13
6
  export interface IAutoBeAnalyzeSectionCrossFileReviewApplication {
14
- /**
15
- * Process cross-file section consistency review or preliminary data requests.
16
- *
17
- * Reviews section metadata across ALL files in a single call, ensuring
18
- * cross-file consistency and uniformity.
19
- *
20
- * @param props Request containing either preliminary data request or complete
21
- * task
22
- */
7
+ /** Review section metadata across all files for cross-file consistency. */
23
8
  process(props: IAutoBeAnalyzeSectionCrossFileReviewApplicationProps): void;
24
9
  }
25
10
  export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationProps {
26
11
  /**
27
- * Think before you act.
28
- *
29
- * Before requesting preliminary data or completing your task, reflect on your
30
- * current state and explain your reasoning:
31
- *
32
- * For preliminary requests:
33
- *
34
- * - What additional context do you need for cross-file validation?
35
- *
36
- * For completion:
37
- *
38
- * - Are values and constraints consistent across all files?
39
- * - Is terminology aligned across all files?
40
- * - Are naming conventions consistent?
41
- * - Is there content duplication between files?
12
+ * Reasoning about your current state: what's missing (preliminary) or what
13
+ * you accomplished (completion).
42
14
  */
43
15
  thinking?: string | null;
44
- /** Type discriminator for the request. */
16
+ /** Action to perform. Exhausted preliminary types are removed from the union. */
45
17
  request: IAutoBeAnalyzeSectionCrossFileReviewApplicationComplete | IAutoBePreliminaryGetPreviousAnalysisSections;
46
18
  }
47
- /**
48
- * Request to complete the cross-file section consistency review.
49
- *
50
- * Provides per-file review verdicts based on cross-file consistency checks.
51
- */
19
+ /** Complete the cross-file section consistency review with per-file verdicts. */
52
20
  export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationComplete {
53
- /** Type discriminator for the request. */
21
+ /** Type discriminator for completion request. */
54
22
  type: "complete";
55
- /**
56
- * Per-file review results.
57
- *
58
- * Each entry contains the verdict for one file's consistency with other
59
- * files.
60
- */
23
+ /** Per-file review results. */
61
24
  fileResults: IAutoBeAnalyzeSectionCrossFileReviewApplicationFileResult[];
62
25
  }
63
26
  /** Per-file review result from cross-file consistency check. */
64
27
  export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationFileResult {
65
28
  /** Index of the file in the scenario's files array. */
66
29
  fileIndex: number;
67
- /**
68
- * Whether this file's sections are consistent with other files.
69
- *
70
- * If true: File's sections are consistent across files. If false: File's
71
- * sections must be regenerated with feedback to align with other files.
72
- */
30
+ /** Whether this file's sections are consistent with other files. */
73
31
  approved: boolean;
74
32
  /**
75
- * Detailed cross-file consistency feedback for this file.
76
- *
77
- * Criteria evaluated:
78
- *
79
- * - Value and constraint consistency across files
80
- * - Terminology alignment
81
- * - Naming convention consistency
82
- * - Content deduplication
83
- * - Structural balance
84
- *
85
- * For rejected files:
86
- *
87
- * - Specific cross-file inconsistencies identified
88
- * - Recommendations for alignment with other files
33
+ * Cross-file consistency feedback. For rejected files, describe specific
34
+ * inconsistencies.
89
35
  */
90
36
  feedback: string;
91
37
  /**
92
- * Structured review issues for targeted rewrites / patches.
93
- *
94
- * Optional for backward compatibility.
38
+ * Structured review issues for targeted rewrites. Optional for backward
39
+ * compatibility.
95
40
  */
96
41
  issues?: IAutoBeAnalyzeSectionCrossFileReviewApplicationReviewIssue[] | null;
97
42
  /**
98
- * Specific module/unit pairs whose sections have cross-file consistency
99
- * issues.
100
- *
101
- * When rejecting a file, identify EXACTLY which modules and units are
102
- * inconsistent with other files. Only these will be regenerated on retry.
103
- *
104
- * Set to null if all module/units need regeneration, or if approving.
43
+ * Module/unit pairs with cross-file consistency issues. Only these are
44
+ * regenerated on retry. Set to null if all module/units need regeneration, or
45
+ * if approving.
105
46
  */
106
47
  rejectedModuleUnits: IAutoBeAnalyzeSectionCrossFileReviewApplicationRejectedModuleUnit[] | null;
107
48
  }
@@ -109,32 +50,33 @@ export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationFileResult {
109
50
  export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationRejectedModuleUnit {
110
51
  /** Index of the module section. */
111
52
  moduleIndex: number;
112
- /** Indices of units within this module that need section regeneration. */
53
+ /** Unit indices needing section regeneration. */
113
54
  unitIndices: number[];
114
- /** Specific feedback for this module/unit group's issues. */
55
+ /** Feedback for this module/unit group's issues. */
115
56
  feedback: string;
116
57
  /**
117
- * Structured issues scoped to this module/unit group.
118
- *
119
- * Optional for backward compatibility.
58
+ * Structured issues scoped to this module/unit group. Optional for backward
59
+ * compatibility.
120
60
  */
121
61
  issues?: IAutoBeAnalyzeSectionCrossFileReviewApplicationReviewIssue[] | null;
122
62
  /**
123
- * Per-unit mapping of specific section indices that need regeneration.
124
- *
125
- * Keys are unit indices (from `unitIndices`), values are arrays of section
126
- * indices within that unit's `sectionSections[]` that failed review.
127
- *
128
- * When null/undefined or when a unitIndex is not present as a key, ALL
129
- * sections for that unit are regenerated (backward-compatible fallback).
63
+ * Per-unit mapping of section indices needing regeneration. When null or a
64
+ * unitIndex is absent, ALL sections for that unit are regenerated.
130
65
  */
131
66
  sectionIndicesPerUnit?: Record<number, number[]> | null;
132
67
  }
68
+ /** A specific review issue found during cross-file consistency check. */
133
69
  export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationReviewIssue {
70
+ /** Rule violation code (e.g., "TERM-001", "VALUE-002"). */
134
71
  ruleCode: string;
72
+ /** Module index where the issue was found, or null if file-level. */
135
73
  moduleIndex: number | null;
74
+ /** Unit index where the issue was found, or null if module-level. */
136
75
  unitIndex: number | null;
76
+ /** Section index where the issue was found, or null if unit-level. */
137
77
  sectionIndex?: number | null;
78
+ /** Specific instruction for fixing this issue. */
138
79
  fixInstruction: string;
80
+ /** Supporting evidence from the source text. */
139
81
  evidence?: string | null;
140
82
  }
@@ -1,109 +1,49 @@
1
1
  import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/structures/IAutoBePreliminaryGetPreviousAnalysisSections";
2
2
  /**
3
- * Application interface for the Cross-File Section Review agent.
4
- *
5
- * This agent reviews ALL files' section content together in a single LLM call,
6
- * providing cross-file validation for value consistency, terminology, Mermaid
7
- * diagram style, and EARS format (03-functional-requirements, 04-business-rules
8
- * only).
3
+ * Reviews all files' section content for cross-file value consistency,
4
+ * terminology, Mermaid style, and EARS format.
9
5
  */
10
6
  export interface IAutoBeAnalyzeSectionReviewApplication {
11
- /**
12
- * Process cross-file section review task or preliminary data requests.
13
- *
14
- * Reviews and validates section content across ALL files in a single call,
15
- * ensuring cross-file consistency and uniformity.
16
- *
17
- * @param props Request containing either preliminary data request or complete
18
- * task
19
- */
7
+ /** Review section content across all files for cross-file consistency. */
20
8
  process(props: IAutoBeAnalyzeSectionReviewApplicationProps): void;
21
9
  }
22
10
  export interface IAutoBeAnalyzeSectionReviewApplicationProps {
23
11
  /**
24
- * Think before you act.
25
- *
26
- * Before requesting preliminary data or completing your task, reflect on your
27
- * current state and explain your reasoning:
28
- *
29
- * For preliminary requests:
30
- *
31
- * - What additional context do you need for cross-file validation?
32
- *
33
- * For completion:
34
- *
35
- * - Is EARS format consistent across requirement files (03, 04)?
36
- * - Are values and constraints consistent across all files?
37
- * - Is terminology aligned across all files?
38
- * - Are Mermaid diagram styles uniform?
12
+ * Reasoning about your current state: what's missing (preliminary) or what
13
+ * you accomplished (completion).
39
14
  */
40
15
  thinking?: string | null;
41
- /** Type discriminator for the request. */
16
+ /** Action to perform. Exhausted preliminary types are removed from the union. */
42
17
  request: IAutoBeAnalyzeSectionReviewApplicationComplete | IAutoBePreliminaryGetPreviousAnalysisSections;
43
18
  }
44
- /**
45
- * Request to complete the cross-file section review.
46
- *
47
- * Provides per-file review verdicts for all files' section content.
48
- */
19
+ /** Complete the cross-file section review with per-file verdicts. */
49
20
  export interface IAutoBeAnalyzeSectionReviewApplicationComplete {
50
- /** Type discriminator for the request. */
21
+ /** Type discriminator for completion request. */
51
22
  type: "complete";
52
- /**
53
- * Per-file review results.
54
- *
55
- * Each entry contains the verdict for one file's section content.
56
- */
23
+ /** Per-file review results. */
57
24
  fileResults: IAutoBeAnalyzeSectionReviewApplicationFileResult[];
58
25
  }
59
26
  /** Per-file review result. */
60
27
  export interface IAutoBeAnalyzeSectionReviewApplicationFileResult {
61
28
  /** Index of the file in the scenario's files array. */
62
29
  fileIndex: number;
63
- /**
64
- * Whether this file's section content passed review.
65
- *
66
- * If true: File's sections are consistent with other files. If false: File's
67
- * sections must be regenerated with feedback.
68
- */
30
+ /** Whether this file's section content passed review. */
69
31
  approved: boolean;
70
32
  /**
71
- * Detailed review feedback for this file's section content.
72
- *
73
- * Cross-file review criteria evaluated:
74
- *
75
- * - EARS format compliance (03-functional-requirements, 04-business-rules only)
76
- * - Value and constraint consistency
77
- * - Terminology alignment
78
- * - Mermaid diagram style uniformity
79
- * - No prohibited content
80
- *
81
- * For rejected files:
82
- *
83
- * - Specific inconsistencies identified
84
- * - Recommendations for alignment
33
+ * Cross-file review feedback. For rejected files, describe specific
34
+ * inconsistencies.
85
35
  */
86
36
  feedback: string;
87
37
  /**
88
- * Structured review issues for targeted rewrites / patches.
89
- *
90
- * Optional for backward compatibility.
38
+ * Structured review issues for targeted rewrites. Optional for backward
39
+ * compatibility.
91
40
  */
92
41
  issues?: IAutoBeAnalyzeSectionReviewApplicationReviewIssue[] | null;
93
- /**
94
- * Revised sections for this file if modifications were made.
95
- *
96
- * Organized by moduleIndex and unitIndex. Set to `null` if no revisions were
97
- * made.
98
- */
42
+ /** Revised sections organized by moduleIndex/unitIndex. Null if no revisions. */
99
43
  revisedSections: IAutoBeAnalyzeSectionReviewApplicationRevisedModuleSections[] | null;
100
44
  /**
101
- * Specific module/unit pairs whose sections were rejected.
102
- *
103
- * When rejecting a file, identify EXACTLY which modules and units have
104
- * problematic sections. Only these will be regenerated on retry.
105
- *
106
- * Set to null if all module/units need regeneration, or if approving.
45
+ * Module/unit pairs with rejected sections. Only these are regenerated on
46
+ * retry. Null if all module/units need regeneration, or if approving.
107
47
  */
108
48
  rejectedModuleUnits: IAutoBeAnalyzeSectionReviewApplicationRejectedModuleUnit[] | null;
109
49
  }
@@ -111,50 +51,51 @@ export interface IAutoBeAnalyzeSectionReviewApplicationFileResult {
111
51
  export interface IAutoBeAnalyzeSectionReviewApplicationRejectedModuleUnit {
112
52
  /** Index of the module section. */
113
53
  moduleIndex: number;
114
- /** Indices of units within this module that need section regeneration. */
54
+ /** Unit indices needing section regeneration. */
115
55
  unitIndices: number[];
116
- /** Specific feedback for this module/unit group's issues. */
56
+ /** Feedback for this module/unit group's issues. */
117
57
  feedback: string;
118
58
  /**
119
- * Structured issues scoped to this module/unit group.
120
- *
121
- * Optional for backward compatibility.
59
+ * Structured issues scoped to this module/unit group. Optional for backward
60
+ * compatibility.
122
61
  */
123
62
  issues?: IAutoBeAnalyzeSectionReviewApplicationReviewIssue[] | null;
124
63
  /**
125
- * Per-unit mapping of specific section indices that need regeneration.
126
- *
127
- * Keys are unit indices (from `unitIndices`), values are arrays of section
128
- * indices within that unit's `sectionSections[]` that failed review.
129
- *
130
- * When null/undefined or when a unitIndex is not present as a key, ALL
131
- * sections for that unit are regenerated (backward-compatible fallback).
64
+ * Per-unit mapping of section indices needing regeneration. When null or a
65
+ * unitIndex is absent, ALL sections for that unit are regenerated.
132
66
  */
133
67
  sectionIndicesPerUnit?: Record<number, number[]> | null;
134
68
  }
69
+ /** A specific review issue found during section content review. */
135
70
  export interface IAutoBeAnalyzeSectionReviewApplicationReviewIssue {
71
+ /** Rule violation code (e.g., "TERM-001", "VALUE-002"). */
136
72
  ruleCode: string;
73
+ /** Module index where the issue was found, or null if file-level. */
137
74
  moduleIndex: number | null;
75
+ /** Unit index where the issue was found, or null if module-level. */
138
76
  unitIndex: number | null;
77
+ /** Section index where the issue was found, or null if unit-level. */
139
78
  sectionIndex?: number | null;
79
+ /** Specific instruction for fixing this issue. */
140
80
  fixInstruction: string;
81
+ /** Supporting evidence from the source text. */
141
82
  evidence?: string | null;
142
83
  }
143
- /** Structure for revised sections of a single module. */
84
+ /** Revised sections of a single module. */
144
85
  export interface IAutoBeAnalyzeSectionReviewApplicationRevisedModuleSections {
145
86
  /** Index of the module section. */
146
87
  moduleIndex: number;
147
- /** Revised sections for each unit in this module. */
88
+ /** Revised sections for each unit. */
148
89
  units: IAutoBeAnalyzeSectionReviewApplicationRevisedUnitSections[];
149
90
  }
150
- /** Structure for revised sections of a single unit. */
91
+ /** Revised sections of a single unit. */
151
92
  export interface IAutoBeAnalyzeSectionReviewApplicationRevisedUnitSections {
152
93
  /** Index of the unit section. */
153
94
  unitIndex: number;
154
- /** Revised section sections for this unit. */
95
+ /** Revised subsections (#### level) within this unit. */
155
96
  sectionSections: IAutoBeAnalyzeSectionReviewApplicationRevisedSectionSection[];
156
97
  }
157
- /** Structure for a revised section. */
98
+ /** A revised section. */
158
99
  export interface IAutoBeAnalyzeSectionReviewApplicationRevisedSectionSection {
159
100
  /** Title of the section. */
160
101
  title: string;
@@ -1,91 +1,43 @@
1
1
  import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/structures/IAutoBePreliminaryGetPreviousAnalysisSections";
2
2
  /**
3
- * Application interface for the Section (###) generation agent.
4
- *
5
- * This agent is responsible for creating detailed sections within an approved
6
- * unit section structure, producing implementation-ready requirement
7
- * specifications.
3
+ * Generates detailed sections (###) within approved unit structures as
4
+ * implementation-ready specs.
8
5
  */
9
6
  export interface IAutoBeAnalyzeWriteSectionApplication {
10
7
  /**
11
- * Process section generation task or preliminary data requests.
12
- *
13
- * Creates detailed sections for a specific unit section, including complete
14
- * content with Mermaid diagrams and, for requirement-heavy files
15
- * (03-functional-requirements, 04-business-rules), EARS format requirements.
16
- *
17
- * @param props Request containing either preliminary data request or complete
18
- * task
8
+ * Create detailed sections for a unit, with Mermaid diagrams and EARS format
9
+ * where applicable.
19
10
  */
20
11
  process(props: IAutoBeAnalyzeWriteSectionApplicationProps): void;
21
12
  }
22
13
  export interface IAutoBeAnalyzeWriteSectionApplicationProps {
23
14
  /**
24
- * Think before you act.
25
- *
26
- * Before requesting preliminary data or completing your task, reflect on your
27
- * current state and explain your reasoning:
28
- *
29
- * For preliminary requests:
30
- *
31
- * - What additional context do you need for detailed content?
32
- *
33
- * For completion:
34
- *
35
- * - How do the sections address the keywords from the unit section?
36
- * - For 03/04 files: Are requirements specific and in EARS format?
37
- * - For other files: Is content written in clear, descriptive prose?
38
- * - Are Mermaid diagrams properly formatted?
15
+ * Reasoning about your current state: what's missing (preliminary) or what
16
+ * you accomplished (completion).
39
17
  */
40
18
  thinking?: string | null;
41
- /** Type discriminator for the request. */
19
+ /** Action to perform. Exhausted preliminary types are removed from the union. */
42
20
  request: IAutoBeAnalyzeWriteSectionApplicationComplete | IAutoBePreliminaryGetPreviousAnalysisSections;
43
21
  }
44
- /**
45
- * Request to generate section content.
46
- *
47
- * Creates the detailed content within a unit section, including
48
- * implementation-ready requirements specifications with proper formatting and
49
- * diagrams.
50
- */
22
+ /** Generate detailed section content within a unit section. */
51
23
  export interface IAutoBeAnalyzeWriteSectionApplicationComplete {
52
- /** Type discriminator for the request. */
24
+ /** Type discriminator for completion request. */
53
25
  type: "complete";
54
26
  /** Index of the grandparent module section. */
55
27
  moduleIndex: number;
56
28
  /** Index of the parent unit section. */
57
29
  unitIndex: number;
58
- /**
59
- * Array of sections for this unit section.
60
- *
61
- * Each section represents a detailed subsection (#### level) containing
62
- * specific requirements, specifications, or process descriptions. The content
63
- * should:
64
- *
65
- * - Use EARS format for requirements in 03-functional-requirements and
66
- * 04-business-rules files; use natural language prose for other files
67
- * - Include Mermaid diagrams with proper syntax
68
- * - Be specific and implementation-ready
69
- * - Avoid prohibited content (DB schemas, API specs)
70
- */
30
+ /** Detailed subsections (#### level) for this unit. */
71
31
  sectionSections: IAutoBeAnalyzeWriteSectionApplicationSectionSection[];
72
32
  }
73
- /** Structure representing a single section. */
33
+ /** A single section (#### level). */
74
34
  export interface IAutoBeAnalyzeWriteSectionApplicationSectionSection {
75
- /**
76
- * Title of the section (#### level heading).
77
- *
78
- * Should clearly indicate the specific requirement, process, or feature being
79
- * detailed.
80
- */
35
+ /** Section title (#### level heading). */
81
36
  title: string;
82
37
  /**
83
- * Complete content for the section.
84
- *
85
- * Contains detailed requirements, specifications, and diagrams. Content
86
- * guidelines:
38
+ * Complete section content with requirements, specs, and diagrams.
87
39
  *
88
- * EARS Format (ONLY for 03-functional-requirements, 04-business-rules):
40
+ * EARS Format (03-functional-requirements, 04-business-rules ONLY):
89
41
  *
90
42
  * - Ubiquitous: "THE <system> SHALL <function>"
91
43
  * - Event-driven: "WHEN <trigger>, THE <system> SHALL <function>"
@@ -93,39 +45,17 @@ export interface IAutoBeAnalyzeWriteSectionApplicationSectionSection {
93
45
  * - Unwanted: "IF <condition>, THEN THE <system> SHALL <function>"
94
46
  * - Optional: "WHERE <feature>, THE <system> SHALL <function>"
95
47
  *
96
- * Natural Language (for 00-toc, 01-actors-and-auth, 02-domain-model,
97
- * 05-non-functional):
98
- *
99
- * - Use clear, descriptive prose for definitions, concepts, and policies
100
- * - Focus on readability over formal structure
101
- * - Tables and bullet points are preferred for structured data
102
- *
103
- * Mermaid Diagram Rules:
104
- *
105
- * - ALL labels must use double quotes: A["User Login"]
106
- * - NO spaces between brackets and quotes
107
- * - Arrow syntax: --> (NOT --|)
108
- * - LR orientation preferred for flowcharts
109
- *
110
- * Prohibited Content:
111
- *
112
- * - Database schemas or ERD
113
- * - API endpoint specifications
114
- * - Technical implementation details
115
- * - Frontend UI/UX specifications
116
- *
117
- * Hallucination Prevention:
118
- *
119
- * - Every requirement must trace to the original user input
120
- * - Do NOT invent SLA numbers, timeout values, or performance targets
121
- * - Do NOT add security mechanisms (2FA, JWT, encryption) user did not mention
122
- * - Do NOT add infrastructure requirements (CDN, caching) user did not mention
123
- * - 05-non-functional: only describe aspects the user explicitly mentioned
48
+ * Other files (00-toc, 01, 02, 05): clear descriptive prose, tables, bullet
49
+ * points.
124
50
  *
125
- * Conciseness:
51
+ * Mermaid rules: ALL labels use double quotes A["Label"], no spaces before
52
+ * quotes, --> arrows, LR preferred.
126
53
  *
127
- * - One concept = one section, not multiple sections rephrasing the same idea
128
- * - 02-domain-model: max 1-3 sections per business concept
54
+ * NEVER include: DB schemas/ERD, API specs, implementation details, frontend
55
+ * UI/UX specs. Every requirement MUST trace to user input. Do NOT invent SLA
56
+ * numbers, timeouts, security mechanisms, or infrastructure the user did not
57
+ * mention. One concept = one section. 02-domain-model: max 1-3 sections per
58
+ * concept.
129
59
  */
130
60
  content: string;
131
61
  }
@@ -1,111 +1,38 @@
1
1
  import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/structures/IAutoBePreliminaryGetPreviousAnalysisSections";
2
- /**
3
- * Application interface for the Unit Section (##) generation agent.
4
- *
5
- * This agent is responsible for creating unit-level sections within an approved
6
- * module section structure, defining functional requirement groupings and their
7
- * content.
8
- */
2
+ /** Generates unit-level sections (##) within approved module structures. */
9
3
  export interface IAutoBeAnalyzeWriteUnitApplication {
10
4
  /**
11
- * Process unit section generation task or preliminary data requests.
12
- *
13
- * Creates unit-level sections for a specific module section, including
14
- * section titles, purposes, content, and keywords for guiding section
15
- * generation.
16
- *
17
- * @param props Request containing either preliminary data request or complete
18
- * task
5
+ * Create unit sections with titles, purposes, content, and keywords for a
6
+ * module.
19
7
  */
20
8
  process(props: IAutoBeAnalyzeWriteUnitApplicationProps): void;
21
9
  }
22
10
  export interface IAutoBeAnalyzeWriteUnitApplicationProps {
23
11
  /**
24
- * Think before you act.
25
- *
26
- * Before requesting preliminary data or completing your task, reflect on your
27
- * current state and explain your reasoning:
28
- *
29
- * For preliminary requests:
30
- *
31
- * - What additional context do you need for this module section?
32
- * - Why is this information necessary?
33
- *
34
- * For completion:
35
- *
36
- * - How do the unit sections align with the parent module section?
37
- * - What functional areas are covered?
38
- * - Are the keywords appropriate for guiding section generation?
12
+ * Reasoning about your current state: what's missing (preliminary) or what
13
+ * you accomplished (completion).
39
14
  */
40
15
  thinking?: string | null;
41
- /** Type discriminator for the request. */
16
+ /** Action to perform. Exhausted preliminary types are removed from the union. */
42
17
  request: IAutoBeAnalyzeWriteUnitApplicationComplete | IAutoBePreliminaryGetPreviousAnalysisSections;
43
18
  }
44
- /**
45
- * Request to generate unit section structure.
46
- *
47
- * Creates the unit-level hierarchy within a module section, including section
48
- * definitions with purposes, content, and keywords that will guide section
49
- * generation.
50
- */
19
+ /** Generate unit section structure within a module section. */
51
20
  export interface IAutoBeAnalyzeWriteUnitApplicationComplete {
52
- /** Type discriminator for the request. */
21
+ /** Type discriminator for completion request. */
53
22
  type: "complete";
54
- /**
55
- * Index of the parent module section.
56
- *
57
- * References which module section (0-based) these unit sections belong to.
58
- * This ensures proper alignment with the approved module structure.
59
- */
23
+ /** Index of the parent module section (0-based). */
60
24
  moduleIndex: number;
61
- /**
62
- * Array of unit sections for this module section.
63
- *
64
- * Each unit section represents a subsection (### level) that groups related
65
- * functionality or requirements. The sections should:
66
- *
67
- * - Align with the parent module section's purpose
68
- * - Have clear functional boundaries
69
- * - Provide meaningful keywords for section guidance
70
- */
25
+ /** Unit sections (### level) grouping related functionality. */
71
26
  unitSections: IAutoBeAnalyzeWriteUnitApplicationUnitSection[];
72
27
  }
73
- /** Structure representing a single unit section. */
28
+ /** A single unit section. */
74
29
  export interface IAutoBeAnalyzeWriteUnitApplicationUnitSection {
75
- /**
76
- * Title of the unit section (### level heading).
77
- *
78
- * Should clearly indicate the functional area or requirement group covered by
79
- * this section.
80
- */
30
+ /** Title of the unit section (### level heading). */
81
31
  title: string;
82
- /**
83
- * Purpose statement explaining what this section covers.
84
- *
85
- * A brief description of the section's role within the parent module section
86
- * and what requirements it addresses.
87
- */
32
+ /** Brief purpose statement for this section's role within the parent module. */
88
33
  purpose: string;
89
- /**
90
- * Content for the unit section.
91
- *
92
- * The main body content that appears after the section heading, before any
93
- * sections. Should provide:
94
- *
95
- * - Overview of the functional area
96
- * - Context for the detailed requirements
97
- * - Relationships to other sections
98
- */
34
+ /** Main body content: overview, context, and relationships to other sections. */
99
35
  content: string;
100
- /**
101
- * Keywords that hint at section topics.
102
- *
103
- * A list of key concepts, features, or requirements that should be detailed
104
- * in the sections. These keywords guide the Section Agent in generating
105
- * appropriate detailed content.
106
- *
107
- * Example for "User Authentication" unit section: ["login", "registration",
108
- * "password recovery", "session management"]
109
- */
36
+ /** Keywords hinting at section topics to guide Section Agent generation. */
110
37
  keywords: string[];
111
38
  }