@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.
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +5 -4
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/describe/image/orchestrateImageDescribeDraft.js +6 -6
- package/lib/describe/image/structures/IAutoBeImageDescribeDraftApplication.d.ts +12 -63
- package/lib/index.mjs +2918 -2842
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeExtractDecisions.js +8 -8
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +36 -37
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenarioReview.js +7 -7
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js +55 -42
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js +67 -54
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js +24 -25
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js +24 -25
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js +30 -31
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.d.ts +14 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +23 -96
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.d.ts +12 -40
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.d.ts +30 -88
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.d.ts +35 -94
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.d.ts +23 -93
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.d.ts +15 -88
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js +76 -31
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js.map +1 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +7 -7
- package/lib/orchestrate/common/structures/IAnalysisSectionEntry.d.ts +2 -8
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +8 -50
- package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.d.ts +1 -9
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.d.ts +4 -23
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.d.ts +3 -21
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.d.ts +4 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.d.ts +4 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.d.ts +5 -17
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.d.ts +7 -76
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.d.ts +6 -89
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.d.ts +7 -93
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.d.ts +3 -22
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.d.ts +3 -22
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js +114 -139
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +90 -91
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js +58 -59
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +58 -59
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperation.js +108 -132
- package/lib/orchestrate/interface/orchestrateInterfaceOperation.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js +72 -72
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +76 -77
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js +130 -159
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js +126 -155
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js +114 -142
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +5 -5
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +100 -129
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js +120 -149
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.d.ts +10 -97
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.d.ts +14 -83
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.d.ts +12 -90
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +12 -80
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +21 -116
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.d.ts +24 -112
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.d.ts +11 -83
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +11 -76
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.d.ts +18 -96
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.d.ts +11 -76
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.d.ts +25 -107
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +5 -31
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.d.ts +6 -42
- package/lib/orchestrate/prisma/orchestratePrismaAuthorization.js +41 -41
- package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js +62 -63
- package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +40 -41
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js +60 -61
- package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +112 -116
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaGroup.js +48 -49
- package/lib/orchestrate/prisma/orchestratePrismaGroup.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js +70 -71
- package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +118 -122
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js +126 -131
- package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js.map +1 -1
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.d.ts +22 -99
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.d.ts +12 -109
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.d.ts +14 -100
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.d.ts +15 -108
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.d.ts +24 -106
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.d.ts +13 -76
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.d.ts +13 -111
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.d.ts +26 -97
- package/lib/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.d.ts +16 -93
- package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js +20 -2
- package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js +22 -2
- package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js.map +1 -1
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectCasting.js +7 -7
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js +86 -6
- package/lib/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +38 -38
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +34 -34
- package/lib/orchestrate/realize/orchestrateRealizeCollectorCorrectOverall.js +38 -38
- package/lib/orchestrate/realize/orchestrateRealizeCollectorPlan.js +54 -54
- package/lib/orchestrate/realize/orchestrateRealizeCollectorWrite.js +36 -36
- package/lib/orchestrate/realize/orchestrateRealizeOperationCorrectOverall.js +44 -44
- package/lib/orchestrate/realize/orchestrateRealizeOperationWrite.js +42 -42
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectOverall.js +46 -46
- package/lib/orchestrate/realize/orchestrateRealizeTransformerPlan.js +36 -36
- package/lib/orchestrate/realize/orchestrateRealizeTransformerWrite.js +44 -44
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.d.ts +18 -0
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js +167 -8
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +17 -71
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.d.ts +32 -92
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.d.ts +32 -114
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.d.ts +29 -106
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.d.ts +38 -131
- package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.d.ts +16 -71
- package/lib/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.d.ts +16 -73
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.d.ts +37 -155
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.d.ts +25 -88
- package/lib/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.d.ts +48 -181
- package/lib/orchestrate/realize/utils/generateTS2339Hints.d.ts +5 -3
- package/lib/orchestrate/realize/utils/generateTS2339Hints.js +37 -19
- package/lib/orchestrate/realize/utils/generateTS2339Hints.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestOperationWriteHistory.js +2 -2
- package/lib/orchestrate/test/orchestrateTestScenario.js +22 -22
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +22 -22
- package/package.json +5 -5
- package/src/constants/AutoBeSystemPromptConstant.ts +5 -4
- package/src/describe/image/structures/IAutoBeImageDescribeDraftApplication.ts +12 -63
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeExtractDecisionsApplication.ts +14 -52
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +23 -96
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.ts +12 -40
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.ts +30 -88
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.ts +35 -94
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.ts +23 -93
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.ts +15 -88
- package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.ts +92 -31
- package/src/orchestrate/common/structures/IAnalysisSectionEntry.ts +2 -8
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +8 -50
- package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +1 -9
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.ts +4 -23
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.ts +3 -21
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +4 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +4 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.ts +5 -17
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.ts +7 -76
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts +6 -89
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.ts +7 -93
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.ts +3 -22
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.ts +3 -22
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.ts +10 -97
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +14 -83
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.ts +12 -90
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +12 -80
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +21 -116
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.ts +24 -112
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +11 -83
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +11 -76
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.ts +18 -96
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.ts +11 -76
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.ts +25 -107
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +5 -31
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.ts +6 -42
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.ts +22 -99
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.ts +12 -109
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.ts +14 -100
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.ts +15 -108
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.ts +24 -106
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.ts +13 -76
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.ts +13 -111
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.ts +26 -97
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.ts +16 -93
- package/src/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.ts +21 -1
- package/src/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.ts +26 -4
- package/src/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.ts +125 -9
- package/src/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.ts +1 -0
- package/src/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.ts +210 -7
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +17 -71
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.ts +32 -92
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.ts +32 -114
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.ts +29 -106
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.ts +38 -131
- package/src/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.ts +16 -71
- package/src/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.ts +16 -73
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.ts +37 -155
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.ts +25 -88
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.ts +48 -181
- package/src/orchestrate/realize/utils/generateTS2339Hints.ts +39 -19
|
@@ -1,51 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* This agent extracts binary/discrete decisions from a single file's section
|
|
5
|
-
* content as structured data. The extracted decisions are then compared
|
|
6
|
-
* programmatically across files to detect contradictions.
|
|
2
|
+
* Extracts binary/discrete decisions from a file's sections for cross-file
|
|
3
|
+
* contradiction detection.
|
|
7
4
|
*/
|
|
8
5
|
export interface IAutoBeAnalyzeExtractDecisionsApplication {
|
|
9
|
-
/**
|
|
10
|
-
* Process decision extraction from a single file's sections.
|
|
11
|
-
*
|
|
12
|
-
* Reads the file content and extracts all binary/discrete decisions as
|
|
13
|
-
* structured data for cross-file contradiction detection.
|
|
14
|
-
*
|
|
15
|
-
* @param props Request containing extracted decisions
|
|
16
|
-
*/
|
|
6
|
+
/** Extract all binary/discrete decisions from a single file's sections. */
|
|
17
7
|
process(props: IAutoBeAnalyzeExtractDecisionsApplicationProps): void;
|
|
18
8
|
}
|
|
19
9
|
|
|
20
10
|
export interface IAutoBeAnalyzeExtractDecisionsApplicationProps {
|
|
21
11
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Before completing extraction, reflect on what decisions this file makes:
|
|
25
|
-
*
|
|
26
|
-
* - What binary (yes/no) choices does this file assert?
|
|
27
|
-
* - What discrete behavioral choices does this file make?
|
|
28
|
-
* - Are there decisions where another file could reasonably disagree?
|
|
12
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
13
|
+
* you accomplished (completion).
|
|
29
14
|
*/
|
|
30
15
|
thinking?: string | null;
|
|
31
16
|
|
|
32
|
-
/**
|
|
17
|
+
/** Action to perform: submit extracted decisions. */
|
|
33
18
|
request: IAutoBeAnalyzeExtractDecisionsApplicationComplete;
|
|
34
19
|
}
|
|
35
20
|
|
|
36
21
|
/** Request to complete the decision extraction. */
|
|
37
22
|
export interface IAutoBeAnalyzeExtractDecisionsApplicationComplete {
|
|
38
|
-
/** Type discriminator for
|
|
23
|
+
/** Type discriminator for completion request. */
|
|
39
24
|
type: "complete";
|
|
40
25
|
|
|
41
26
|
/**
|
|
42
|
-
* All binary/discrete decisions extracted from this file.
|
|
43
|
-
*
|
|
44
|
-
* Each decision represents a specific behavioral choice that the file makes.
|
|
45
|
-
* Use normalized topic names, decision names, and values.
|
|
46
|
-
*
|
|
47
|
-
* Return an empty array if the file has no extractable decisions (e.g., table
|
|
48
|
-
* of contents).
|
|
27
|
+
* All binary/discrete decisions extracted from this file. Use normalized
|
|
28
|
+
* names. Return an empty array if the file has no extractable decisions.
|
|
49
29
|
*/
|
|
50
30
|
decisions: IAutoBeAnalyzeExtractedDecision[];
|
|
51
31
|
}
|
|
@@ -53,9 +33,7 @@ export interface IAutoBeAnalyzeExtractDecisionsApplicationComplete {
|
|
|
53
33
|
/** A single extracted decision from the file's content. */
|
|
54
34
|
export interface IAutoBeAnalyzeExtractedDecision {
|
|
55
35
|
/**
|
|
56
|
-
* Normalized topic grouping.
|
|
57
|
-
*
|
|
58
|
-
* Use lowercase, underscore-separated names.
|
|
36
|
+
* Normalized topic grouping (lowercase, underscore-separated).
|
|
59
37
|
*
|
|
60
38
|
* @example
|
|
61
39
|
* (password_change, "todo_deletion", "edit_history");
|
|
@@ -63,9 +41,7 @@ export interface IAutoBeAnalyzeExtractedDecision {
|
|
|
63
41
|
topic: string;
|
|
64
42
|
|
|
65
43
|
/**
|
|
66
|
-
* Specific decision within the topic.
|
|
67
|
-
*
|
|
68
|
-
* Use lowercase, underscore-separated, descriptive names.
|
|
44
|
+
* Specific decision within the topic (lowercase, underscore-separated).
|
|
69
45
|
*
|
|
70
46
|
* @example
|
|
71
47
|
* (requires_current_password, "deletion_method", "recorded_values");
|
|
@@ -73,27 +49,13 @@ export interface IAutoBeAnalyzeExtractedDecision {
|
|
|
73
49
|
decision: string;
|
|
74
50
|
|
|
75
51
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* For binary decisions: "yes" or "no". For discrete decisions: short
|
|
79
|
-
* descriptive string.
|
|
52
|
+
* Binary: "yes"/"no". Discrete: short descriptive string.
|
|
80
53
|
*
|
|
81
54
|
* @example
|
|
82
|
-
* (yes,
|
|
83
|
-
* "no",
|
|
84
|
-
* "soft_delete",
|
|
85
|
-
* "hard_delete",
|
|
86
|
-
* "new_values",
|
|
87
|
-
* "previous_values");
|
|
55
|
+
* (yes, "soft_delete", "hard_delete");
|
|
88
56
|
*/
|
|
89
57
|
value: string;
|
|
90
58
|
|
|
91
|
-
/**
|
|
92
|
-
* Short quote (1-2 sentences) from the source text supporting this decision.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* "A user may change their password only by providing their
|
|
96
|
-
* current password."
|
|
97
|
-
*/
|
|
59
|
+
/** Short quote (1-2 sentences) from the source text supporting this decision. */
|
|
98
60
|
evidence: string;
|
|
99
61
|
}
|
|
@@ -9,14 +9,8 @@ import { FixedAnalyzeTemplateFeature } from "./FixedAnalyzeTemplate";
|
|
|
9
9
|
|
|
10
10
|
export interface IAutoBeAnalyzeScenarioApplication {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* Composes project structure with actors and entities based on requirements.
|
|
15
|
-
* File structure is fixed (6-file SRS template); the LLM only determines
|
|
16
|
-
* actors, entities, prefix, and language.
|
|
17
|
-
*
|
|
18
|
-
* @param props Request containing either preliminary data request or complete
|
|
19
|
-
* task
|
|
12
|
+
* Compose project structure (actors, entities, prefix, language) or request
|
|
13
|
+
* preliminary data.
|
|
20
14
|
*/
|
|
21
15
|
process(props: IAutoBeAnalyzeScenarioApplication.IProps): void;
|
|
22
16
|
}
|
|
@@ -26,125 +20,58 @@ export namespace IAutoBeAnalyzeScenarioApplication {
|
|
|
26
20
|
/**
|
|
27
21
|
* Think before you act.
|
|
28
22
|
*
|
|
29
|
-
*
|
|
30
|
-
* your current state and explain your reasoning:
|
|
23
|
+
* For preliminary requests: what previous analysis sections are missing?
|
|
31
24
|
*
|
|
32
|
-
* For
|
|
33
|
-
*
|
|
34
|
-
* - What critical information is missing that you don't already have?
|
|
35
|
-
* - Why do you need it specifically right now?
|
|
36
|
-
* - Be brief - state the gap, don't list everything you have.
|
|
37
|
-
*
|
|
38
|
-
* For completion (complete):
|
|
39
|
-
*
|
|
40
|
-
* - What key assets did you acquire?
|
|
41
|
-
* - What did you accomplished?
|
|
42
|
-
* - Why is it sufficient to complete?
|
|
43
|
-
* - Summarize - don't enumerate every single item.
|
|
44
|
-
*
|
|
45
|
-
* This reflection helps you avoid duplicate requests and premature
|
|
46
|
-
* completion.
|
|
25
|
+
* For completion: is the DTO transformable or non-transformable? What
|
|
26
|
+
* actors, entities, and prefix were chosen based on requirements?
|
|
47
27
|
*/
|
|
48
28
|
thinking?: string | null;
|
|
49
29
|
|
|
50
30
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* Determines which action to perform: preliminary data retrieval
|
|
54
|
-
* (getPreviousAnalysisSections) or final scenario composition (complete).
|
|
55
|
-
* When preliminary returns empty array, that type is removed from the
|
|
56
|
-
* union, physically preventing repeated calls.
|
|
31
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
32
|
+
* union.
|
|
57
33
|
*/
|
|
58
34
|
request: IComplete | IAutoBePreliminaryGetPreviousAnalysisSections;
|
|
59
35
|
}
|
|
60
36
|
|
|
61
|
-
/**
|
|
62
|
-
* Request to compose project structure with actors and entities.
|
|
63
|
-
*
|
|
64
|
-
* The document file structure is fixed as 6-file SRS template. LLM only
|
|
65
|
-
* determines actors, entities, prefix, and language. Files are generated
|
|
66
|
-
* programmatically from FixedAnalyzeTemplate.
|
|
67
|
-
*/
|
|
37
|
+
/** Compose project structure with actors and entities (6-file SRS template). */
|
|
68
38
|
export interface IComplete {
|
|
69
|
-
/**
|
|
70
|
-
* Type discriminator for the request.
|
|
71
|
-
*
|
|
72
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
73
|
-
* task execution. Value "complete" indicates this is the final task
|
|
74
|
-
* execution request.
|
|
75
|
-
*/
|
|
39
|
+
/** Type discriminator for completion request. */
|
|
76
40
|
type: "complete";
|
|
77
41
|
|
|
78
|
-
/**
|
|
42
|
+
/** Why these actors, entities, and prefix were chosen based on requirements. */
|
|
79
43
|
reason: string;
|
|
80
44
|
|
|
81
|
-
/**
|
|
82
|
-
* Prefix for file names and variable names. This will be used for
|
|
83
|
-
* organizing documentation files.
|
|
84
|
-
*
|
|
85
|
-
* DO: Use camelCase naming convention.
|
|
86
|
-
*/
|
|
45
|
+
/** Prefix for file/variable names (camelCase). */
|
|
87
46
|
prefix: string & CamelCasePattern;
|
|
88
47
|
|
|
89
|
-
/**
|
|
90
|
-
* Actors to be assigned for the project.
|
|
91
|
-
*
|
|
92
|
-
* Each actor has:
|
|
93
|
-
*
|
|
94
|
-
* - `name`: Actor identifier (camelCase)
|
|
95
|
-
* - `kind`: "guest" | "member" | "admin"
|
|
96
|
-
* - `description`: Actor's permissions and capabilities
|
|
97
|
-
*/
|
|
48
|
+
/** Actors for the project (name, kind, description). */
|
|
98
49
|
actors: AutoBeAnalyze.IActor[];
|
|
99
50
|
|
|
100
51
|
/**
|
|
101
|
-
* Language for document content.
|
|
102
|
-
*
|
|
103
|
-
* to `null` if not specified.
|
|
52
|
+
* Language for document content. Overrides locale if set; null if not
|
|
53
|
+
* specified.
|
|
104
54
|
*/
|
|
105
55
|
language: string | null;
|
|
106
56
|
|
|
107
57
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* writers (module, unit, section) MUST reference only these entities. This
|
|
112
|
-
* prevents hallucination and ensures cross-file consistency.
|
|
113
|
-
*
|
|
114
|
-
* Each entity should include:
|
|
115
|
-
*
|
|
116
|
-
* - `name`: PascalCase entity name (e.g., "Todo", "User", "Comment")
|
|
117
|
-
* - `attributes`: Key attributes with type hints (e.g., "title: text(1-500),
|
|
118
|
-
* required")
|
|
119
|
-
* - `relationships`: How this entity relates to others (e.g., "belongsTo User
|
|
120
|
-
* via userId")
|
|
121
|
-
*
|
|
122
|
-
* Include ALL domain entities that will appear in the requirements
|
|
123
|
-
* documents. Do NOT include meta-entities (InterpretationLog,
|
|
124
|
-
* ScopeDecisionLog, etc.) that describe the requirements process rather
|
|
125
|
-
* than the production system.
|
|
58
|
+
* AUTHORITATIVE entity list — all downstream writers MUST reference only
|
|
59
|
+
* these entities. Include ALL domain entities; do NOT include meta-entities
|
|
60
|
+
* describing the requirements process.
|
|
126
61
|
*/
|
|
127
62
|
entities: AutoBeAnalyzeScenarioEntity[];
|
|
128
63
|
|
|
129
64
|
/**
|
|
130
|
-
*
|
|
65
|
+
* Features activating conditional modules. DEFAULT IS EMPTY ARRAY [].
|
|
131
66
|
*
|
|
132
67
|
* WARNING: Wrong activation causes cascading hallucination across ALL SRS
|
|
133
|
-
* files.
|
|
134
|
-
* MUST fill with content — if the user never requested the feature, those
|
|
135
|
-
* modules get filled with hallucinated requirements.
|
|
136
|
-
*
|
|
137
|
-
* DEFAULT IS EMPTY ARRAY []. Most projects need no features.
|
|
138
|
-
*
|
|
139
|
-
* Activation rule: Include ONLY if the user used exact trigger keywords:
|
|
68
|
+
* files. Include ONLY if user used exact trigger keywords:
|
|
140
69
|
*
|
|
141
|
-
* - "file-storage":
|
|
142
|
-
* - "real-time":
|
|
143
|
-
* - "external-integration":
|
|
144
|
-
* service"
|
|
70
|
+
* - "file-storage": "file upload", "attachment", "image upload"
|
|
71
|
+
* - "real-time": "real-time", "WebSocket", "live updates", "chat"
|
|
72
|
+
* - "external-integration": "payment", "Stripe", "OAuth", "email service"
|
|
145
73
|
*
|
|
146
|
-
* Standard CRUD with auth =
|
|
147
|
-
* inference or general context.
|
|
74
|
+
* Standard CRUD with auth = []. Do NOT activate based on inference.
|
|
148
75
|
*/
|
|
149
76
|
features: FixedAnalyzeTemplateFeature[];
|
|
150
77
|
}
|
|
@@ -1,69 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* This agent reviews the scenario output against the user's original
|
|
5
|
-
* requirements, checking entity coverage, hallucination, actor classification,
|
|
6
|
-
* relationship completeness, and feature identification accuracy.
|
|
2
|
+
* Reviews scenario output against user requirements for entity coverage,
|
|
3
|
+
* hallucination, and consistency.
|
|
7
4
|
*/
|
|
8
5
|
export interface IAutoBeAnalyzeScenarioReviewApplication {
|
|
9
6
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* Reviews the scenario output and provides an approved/rejected verdict with
|
|
13
|
-
* structured feedback.
|
|
14
|
-
*
|
|
15
|
-
* @param props Request containing the review result
|
|
7
|
+
* Review scenario and provide approved/rejected verdict with structured
|
|
8
|
+
* feedback.
|
|
16
9
|
*/
|
|
17
10
|
process(props: IAutoBeAnalyzeScenarioReviewApplicationProps): void;
|
|
18
11
|
}
|
|
19
12
|
|
|
20
13
|
export interface IAutoBeAnalyzeScenarioReviewApplicationProps {
|
|
21
14
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Before completing the review, reflect on your analysis:
|
|
25
|
-
*
|
|
26
|
-
* - Does every user-mentioned concept have a corresponding entity?
|
|
27
|
-
* - Are there entities the user never mentioned or implied?
|
|
28
|
-
* - Are actors correctly classified by identity boundary?
|
|
29
|
-
* - Are all entity relationships complete and bidirectional?
|
|
30
|
-
* - Are features correctly identified from user requirements?
|
|
15
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
16
|
+
* you accomplished (completion).
|
|
31
17
|
*/
|
|
32
18
|
thinking?: string | null;
|
|
33
19
|
|
|
34
|
-
/**
|
|
20
|
+
/** Action to perform: submit review verdict. */
|
|
35
21
|
request: IAutoBeAnalyzeScenarioReviewApplicationComplete;
|
|
36
22
|
}
|
|
37
23
|
|
|
38
24
|
/** Request to complete the scenario review. */
|
|
39
25
|
export interface IAutoBeAnalyzeScenarioReviewApplicationComplete {
|
|
40
|
-
/** Type discriminator for
|
|
26
|
+
/** Type discriminator for completion request. */
|
|
41
27
|
type: "complete";
|
|
42
28
|
|
|
43
|
-
/**
|
|
44
|
-
* Whether the scenario passed review.
|
|
45
|
-
*
|
|
46
|
-
* Set to true if all review criteria pass. Set to false if any criterion
|
|
47
|
-
* fails.
|
|
48
|
-
*/
|
|
29
|
+
/** Whether the scenario passed review. */
|
|
49
30
|
approved: boolean;
|
|
50
31
|
|
|
51
32
|
/**
|
|
52
|
-
* Detailed review feedback.
|
|
53
|
-
*
|
|
54
|
-
* When rejecting: describe each issue clearly so the scenario generator can
|
|
55
|
-
* fix them on the next attempt.
|
|
56
|
-
*
|
|
57
|
-
* When approving: may include minor observations.
|
|
33
|
+
* Detailed review feedback. When rejecting, describe issues clearly for the
|
|
34
|
+
* next attempt.
|
|
58
35
|
*/
|
|
59
36
|
feedback: string;
|
|
60
37
|
|
|
61
|
-
/**
|
|
62
|
-
* Structured issues for targeted scenario regeneration.
|
|
63
|
-
*
|
|
64
|
-
* Each issue identifies a specific category and provides a concrete
|
|
65
|
-
* suggestion for fixing the scenario.
|
|
66
|
-
*/
|
|
38
|
+
/** Structured issues for targeted scenario regeneration. */
|
|
67
39
|
issues: IAutoBeAnalyzeScenarioReviewApplicationScenarioReviewIssue[];
|
|
68
40
|
}
|
|
69
41
|
|
package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.ts
CHANGED
|
@@ -1,70 +1,33 @@
|
|
|
1
1
|
import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/structures/IAutoBePreliminaryGetPreviousAnalysisSections";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* This agent reviews ALL files' section metadata (titles, keywords, purposes)
|
|
7
|
-
* together in a single LLM call, providing cross-file validation for
|
|
8
|
-
* terminology alignment, value consistency, naming conventions, and content
|
|
9
|
-
* deduplication.
|
|
10
|
-
*
|
|
11
|
-
* Unlike the per-file review which checks full content quality, this review
|
|
12
|
-
* only receives lightweight metadata to stay within context limits.
|
|
4
|
+
* Reviews all files' section metadata in a single call for cross-file
|
|
5
|
+
* terminology, value, and naming consistency.
|
|
13
6
|
*/
|
|
14
7
|
export interface IAutoBeAnalyzeSectionCrossFileReviewApplication {
|
|
15
|
-
/**
|
|
16
|
-
* Process cross-file section consistency review or preliminary data requests.
|
|
17
|
-
*
|
|
18
|
-
* Reviews section metadata across ALL files in a single call, ensuring
|
|
19
|
-
* cross-file consistency and uniformity.
|
|
20
|
-
*
|
|
21
|
-
* @param props Request containing either preliminary data request or complete
|
|
22
|
-
* task
|
|
23
|
-
*/
|
|
8
|
+
/** Review section metadata across all files for cross-file consistency. */
|
|
24
9
|
process(props: IAutoBeAnalyzeSectionCrossFileReviewApplicationProps): void;
|
|
25
10
|
}
|
|
26
11
|
|
|
27
12
|
export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationProps {
|
|
28
13
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* Before requesting preliminary data or completing your task, reflect on your
|
|
32
|
-
* current state and explain your reasoning:
|
|
33
|
-
*
|
|
34
|
-
* For preliminary requests:
|
|
35
|
-
*
|
|
36
|
-
* - What additional context do you need for cross-file validation?
|
|
37
|
-
*
|
|
38
|
-
* For completion:
|
|
39
|
-
*
|
|
40
|
-
* - Are values and constraints consistent across all files?
|
|
41
|
-
* - Is terminology aligned across all files?
|
|
42
|
-
* - Are naming conventions consistent?
|
|
43
|
-
* - Is there content duplication between files?
|
|
14
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
15
|
+
* you accomplished (completion).
|
|
44
16
|
*/
|
|
45
17
|
thinking?: string | null;
|
|
46
18
|
|
|
47
|
-
/**
|
|
19
|
+
/** Action to perform. Exhausted preliminary types are removed from the union. */
|
|
48
20
|
request:
|
|
49
21
|
| IAutoBeAnalyzeSectionCrossFileReviewApplicationComplete
|
|
50
22
|
| IAutoBePreliminaryGetPreviousAnalysisSections;
|
|
51
23
|
}
|
|
52
24
|
|
|
53
|
-
/**
|
|
54
|
-
* Request to complete the cross-file section consistency review.
|
|
55
|
-
*
|
|
56
|
-
* Provides per-file review verdicts based on cross-file consistency checks.
|
|
57
|
-
*/
|
|
25
|
+
/** Complete the cross-file section consistency review with per-file verdicts. */
|
|
58
26
|
export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationComplete {
|
|
59
|
-
/** Type discriminator for
|
|
27
|
+
/** Type discriminator for completion request. */
|
|
60
28
|
type: "complete";
|
|
61
29
|
|
|
62
|
-
/**
|
|
63
|
-
* Per-file review results.
|
|
64
|
-
*
|
|
65
|
-
* Each entry contains the verdict for one file's consistency with other
|
|
66
|
-
* files.
|
|
67
|
-
*/
|
|
30
|
+
/** Per-file review results. */
|
|
68
31
|
fileResults: IAutoBeAnalyzeSectionCrossFileReviewApplicationFileResult[];
|
|
69
32
|
}
|
|
70
33
|
|
|
@@ -73,47 +36,25 @@ export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationFileResult {
|
|
|
73
36
|
/** Index of the file in the scenario's files array. */
|
|
74
37
|
fileIndex: number;
|
|
75
38
|
|
|
76
|
-
/**
|
|
77
|
-
* Whether this file's sections are consistent with other files.
|
|
78
|
-
*
|
|
79
|
-
* If true: File's sections are consistent across files. If false: File's
|
|
80
|
-
* sections must be regenerated with feedback to align with other files.
|
|
81
|
-
*/
|
|
39
|
+
/** Whether this file's sections are consistent with other files. */
|
|
82
40
|
approved: boolean;
|
|
83
41
|
|
|
84
42
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* Criteria evaluated:
|
|
88
|
-
*
|
|
89
|
-
* - Value and constraint consistency across files
|
|
90
|
-
* - Terminology alignment
|
|
91
|
-
* - Naming convention consistency
|
|
92
|
-
* - Content deduplication
|
|
93
|
-
* - Structural balance
|
|
94
|
-
*
|
|
95
|
-
* For rejected files:
|
|
96
|
-
*
|
|
97
|
-
* - Specific cross-file inconsistencies identified
|
|
98
|
-
* - Recommendations for alignment with other files
|
|
43
|
+
* Cross-file consistency feedback. For rejected files, describe specific
|
|
44
|
+
* inconsistencies.
|
|
99
45
|
*/
|
|
100
46
|
feedback: string;
|
|
101
47
|
|
|
102
48
|
/**
|
|
103
|
-
* Structured review issues for targeted rewrites
|
|
104
|
-
*
|
|
105
|
-
* Optional for backward compatibility.
|
|
49
|
+
* Structured review issues for targeted rewrites. Optional for backward
|
|
50
|
+
* compatibility.
|
|
106
51
|
*/
|
|
107
52
|
issues?: IAutoBeAnalyzeSectionCrossFileReviewApplicationReviewIssue[] | null;
|
|
108
53
|
|
|
109
54
|
/**
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* When rejecting a file, identify EXACTLY which modules and units are
|
|
114
|
-
* inconsistent with other files. Only these will be regenerated on retry.
|
|
115
|
-
*
|
|
116
|
-
* Set to null if all module/units need regeneration, or if approving.
|
|
55
|
+
* Module/unit pairs with cross-file consistency issues. Only these are
|
|
56
|
+
* regenerated on retry. Set to null if all module/units need regeneration, or
|
|
57
|
+
* if approving.
|
|
117
58
|
*/
|
|
118
59
|
rejectedModuleUnits:
|
|
119
60
|
| IAutoBeAnalyzeSectionCrossFileReviewApplicationRejectedModuleUnit[]
|
|
@@ -125,36 +66,37 @@ export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationRejectedModuleUn
|
|
|
125
66
|
/** Index of the module section. */
|
|
126
67
|
moduleIndex: number;
|
|
127
68
|
|
|
128
|
-
/**
|
|
69
|
+
/** Unit indices needing section regeneration. */
|
|
129
70
|
unitIndices: number[];
|
|
130
71
|
|
|
131
|
-
/**
|
|
72
|
+
/** Feedback for this module/unit group's issues. */
|
|
132
73
|
feedback: string;
|
|
133
74
|
|
|
134
75
|
/**
|
|
135
|
-
* Structured issues scoped to this module/unit group.
|
|
136
|
-
*
|
|
137
|
-
* Optional for backward compatibility.
|
|
76
|
+
* Structured issues scoped to this module/unit group. Optional for backward
|
|
77
|
+
* compatibility.
|
|
138
78
|
*/
|
|
139
79
|
issues?: IAutoBeAnalyzeSectionCrossFileReviewApplicationReviewIssue[] | null;
|
|
140
80
|
|
|
141
81
|
/**
|
|
142
|
-
* Per-unit mapping of
|
|
143
|
-
*
|
|
144
|
-
* Keys are unit indices (from `unitIndices`), values are arrays of section
|
|
145
|
-
* indices within that unit's `sectionSections[]` that failed review.
|
|
146
|
-
*
|
|
147
|
-
* When null/undefined or when a unitIndex is not present as a key, ALL
|
|
148
|
-
* sections for that unit are regenerated (backward-compatible fallback).
|
|
82
|
+
* Per-unit mapping of section indices needing regeneration. When null or a
|
|
83
|
+
* unitIndex is absent, ALL sections for that unit are regenerated.
|
|
149
84
|
*/
|
|
150
85
|
sectionIndicesPerUnit?: Record<number, number[]> | null;
|
|
151
86
|
}
|
|
152
87
|
|
|
88
|
+
/** A specific review issue found during cross-file consistency check. */
|
|
153
89
|
export interface IAutoBeAnalyzeSectionCrossFileReviewApplicationReviewIssue {
|
|
90
|
+
/** Rule violation code (e.g., "TERM-001", "VALUE-002"). */
|
|
154
91
|
ruleCode: string;
|
|
92
|
+
/** Module index where the issue was found, or null if file-level. */
|
|
155
93
|
moduleIndex: number | null;
|
|
94
|
+
/** Unit index where the issue was found, or null if module-level. */
|
|
156
95
|
unitIndex: number | null;
|
|
96
|
+
/** Section index where the issue was found, or null if unit-level. */
|
|
157
97
|
sectionIndex?: number | null;
|
|
98
|
+
/** Specific instruction for fixing this issue. */
|
|
158
99
|
fixInstruction: string;
|
|
100
|
+
/** Supporting evidence from the source text. */
|
|
159
101
|
evidence?: string | null;
|
|
160
102
|
}
|