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