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