@autobe/agent 0.30.4-dev.20260324 → 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/LICENSE +661 -661
- 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/interface/utils/AutoBeJsonSchemaValidator.js +283 -283
- 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/AutoBeMockAgent.ts +283 -283
- 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/orchestrateInterfaceSchemaRefine.ts +291 -291
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +309 -309
- 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/interface/utils/AutoBeJsonSchemaValidator.ts +763 -763
- 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
- package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +237 -237
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +322 -322
- package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +52 -52
- package/src/structures/IAutoBeVendor.ts +127 -127
- package/README.md +0 -261
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A single ### section extracted from an analysis file,
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Instead of loading entire analysis files (~110-120KB each), the preliminary
|
|
6
|
-
* system can load individual sections (~200-600 words) identified by sequential
|
|
7
|
-
* integer IDs.
|
|
8
|
-
*
|
|
9
|
-
* @author Juntak
|
|
2
|
+
* A single ### section extracted from an analysis file, with parent hierarchy
|
|
3
|
+
* context and numeric ID.
|
|
10
4
|
*/
|
|
11
5
|
export interface IAnalysisSectionEntry {
|
|
12
6
|
/**
|
|
@@ -1,72 +1,30 @@
|
|
|
1
1
|
export interface IAutoBeCommonCorrectCastingApplication {
|
|
2
|
-
/**
|
|
3
|
-
* Rewrite function to fix severe syntax structure errors and type system
|
|
4
|
-
* errors.
|
|
5
|
-
*
|
|
6
|
-
* Called when detecting:
|
|
7
|
-
*
|
|
8
|
-
* - **Severe syntax errors**: Nested declarations in object literals, malformed
|
|
9
|
-
* structures
|
|
10
|
-
* - **Type system errors**: Typia tags, Date conversions, nullable narrowing,
|
|
11
|
-
* literal types
|
|
12
|
-
* - **Escape sequence errors**: Double backslashes in JSON context
|
|
13
|
-
*
|
|
14
|
-
* @param props The analysis and correction properties
|
|
15
|
-
*/
|
|
2
|
+
/** Rewrite code to fix severe syntax structure or type system errors. */
|
|
16
3
|
rewrite(props: IAutoBeCommonCorrectCastingApplication.IProps): void;
|
|
17
4
|
|
|
18
|
-
/**
|
|
19
|
-
* Reject function when error is outside scope.
|
|
20
|
-
*
|
|
21
|
-
* Called when error is unrelated (imports, undefined variables, business
|
|
22
|
-
* logic). These errors are handled by subsequent agents.
|
|
23
|
-
*/
|
|
5
|
+
/** Reject when error is outside scope (handled by subsequent agents). */
|
|
24
6
|
reject(): void;
|
|
25
7
|
}
|
|
26
8
|
export namespace IAutoBeCommonCorrectCastingApplication {
|
|
27
9
|
export interface IProps {
|
|
28
|
-
/**
|
|
29
|
-
* Analysis of syntax structure or type system error.
|
|
30
|
-
*
|
|
31
|
-
* Identifies error pattern and chosen fix strategy:
|
|
32
|
-
*
|
|
33
|
-
* - Syntax: Nested declarations, malformed structures
|
|
34
|
-
* - Type: Tag incompatibility, nullable narrowing, Date conversions
|
|
35
|
-
*/
|
|
10
|
+
/** Analysis of the error pattern and chosen fix strategy. */
|
|
36
11
|
think: string;
|
|
37
12
|
|
|
38
|
-
/**
|
|
39
|
-
* Draft code with initial syntax/type fixes applied.
|
|
40
|
-
*
|
|
41
|
-
* After first correction round:
|
|
42
|
-
*
|
|
43
|
-
* - Syntax: Flattened declarations, restructured code
|
|
44
|
-
* - Type: Satisfies patterns, Date conversions, nullable checks
|
|
45
|
-
*/
|
|
13
|
+
/** Draft code with initial syntax/type fixes applied. */
|
|
46
14
|
draft: string;
|
|
47
15
|
|
|
48
|
-
/**
|
|
49
|
-
* Review and final code with all errors resolved.
|
|
50
|
-
*
|
|
51
|
-
* Review of applied fixes and final code ready for compilation.
|
|
52
|
-
*/
|
|
16
|
+
/** Self-review pass that checks corrections and produces final code. */
|
|
53
17
|
revise: IReviseProps;
|
|
54
18
|
}
|
|
55
19
|
|
|
56
20
|
export interface IReviseProps {
|
|
57
21
|
/**
|
|
58
|
-
* Review of
|
|
59
|
-
*
|
|
60
|
-
* Explains strategies used and confirms all errors resolved.
|
|
22
|
+
* Review of correction patterns applied and confirmation all errors
|
|
23
|
+
* resolved.
|
|
61
24
|
*/
|
|
62
25
|
review: string;
|
|
63
26
|
|
|
64
|
-
/**
|
|
65
|
-
* Final corrected code ready for compilation.
|
|
66
|
-
*
|
|
67
|
-
* Code with all syntax/type errors fixed. Set to `null` when draft already
|
|
68
|
-
* resolves all issues with no further refinements needed.
|
|
69
|
-
*/
|
|
27
|
+
/** Final corrected code, or `null` when draft already resolves all issues. */
|
|
70
28
|
final: string | null;
|
|
71
29
|
}
|
|
72
30
|
}
|
|
@@ -7,15 +7,7 @@ import {
|
|
|
7
7
|
|
|
8
8
|
import { IAnalysisSectionEntry } from "./IAnalysisSectionEntry";
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* Complete data collection for preliminary RAG system.
|
|
12
|
-
*
|
|
13
|
-
* Used in both `all` (globally available) and `local` (currently loaded)
|
|
14
|
-
* contexts of `AutoBePreliminaryController`. Contains current iteration data
|
|
15
|
-
* and optional previous iteration data for complement cycles.
|
|
16
|
-
*
|
|
17
|
-
* @author Samchon
|
|
18
|
-
*/
|
|
10
|
+
/** Complete data collection for the preliminary RAG system. */
|
|
19
11
|
export interface IAutoBePreliminaryCollection {
|
|
20
12
|
/** Individual ### sections from analysis files for fine-grained retrieval. */
|
|
21
13
|
analysisSections: IAnalysisSectionEntry[];
|
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Request to retrieve individual analysis sections by numeric ID.
|
|
5
|
-
*
|
|
6
|
-
* Instead of loading entire analysis files (~110-120KB each), this loads
|
|
7
|
-
* specific ### sections (~200-600 words each) identified by integer IDs from
|
|
8
|
-
* the section catalog.
|
|
9
|
-
*
|
|
10
|
-
* @author Juntak
|
|
11
|
-
*/
|
|
3
|
+
/** Request to retrieve individual analysis sections by numeric ID. */
|
|
12
4
|
export interface IAutoBePreliminaryGetAnalysisSections {
|
|
13
|
-
/**
|
|
14
|
-
* Type discriminator for the request.
|
|
15
|
-
*
|
|
16
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
17
|
-
* task execution. Value "getAnalysisSections" indicates this is a preliminary
|
|
18
|
-
* data request for individual analysis sections.
|
|
19
|
-
*/
|
|
5
|
+
/** Type discriminator. */
|
|
20
6
|
type: "getAnalysisSections";
|
|
21
7
|
|
|
22
8
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* These are sequential integer IDs from the analysis sections catalog. Each
|
|
26
|
-
* ID maps to a specific ### section in the requirements documents.
|
|
27
|
-
*
|
|
28
|
-
* CRITICAL: DO NOT request the same section IDs that you have already
|
|
29
|
-
* requested in previous calls.
|
|
9
|
+
* Section IDs to retrieve. DO NOT request same IDs already requested in
|
|
10
|
+
* previous calls.
|
|
30
11
|
*/
|
|
31
12
|
sectionIds: (number & tags.Type<"uint32">)[] &
|
|
32
13
|
tags.MinItems<1> &
|
|
@@ -1,30 +1,12 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Request to retrieve database schema definitions for context.
|
|
5
|
-
*
|
|
6
|
-
* This type is used in the preliminary phase to request specific database table
|
|
7
|
-
* schemas needed for generating type-safe API operations.
|
|
8
|
-
*
|
|
9
|
-
* @author Samchon
|
|
10
|
-
*/
|
|
3
|
+
/** Request to retrieve database schema definitions for context. */
|
|
11
4
|
export interface IAutoBePreliminaryGetDatabaseSchemas {
|
|
12
|
-
/**
|
|
13
|
-
* Type discriminator for the request.
|
|
14
|
-
*
|
|
15
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
16
|
-
* task execution. Value "getDatabaseSchemas" indicates this is a preliminary
|
|
17
|
-
* data request for database schemas.
|
|
18
|
-
*/
|
|
5
|
+
/** Type discriminator. */
|
|
19
6
|
type: "getDatabaseSchemas";
|
|
20
7
|
|
|
21
8
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Table names from the database schema representing database entities (e.g.,
|
|
25
|
-
* "user", "post", "comment").
|
|
26
|
-
*
|
|
27
|
-
* CRITICAL: DO NOT request the same schema names that you have already
|
|
9
|
+
* Database table names to retrieve. DO NOT request same names already
|
|
28
10
|
* requested in previous calls.
|
|
29
11
|
*/
|
|
30
12
|
schemaNames: string[] & tags.MinItems<1>;
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
2
|
import { tags } from "typia";
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Request to retrieve existing interface operations for context.
|
|
6
|
-
*
|
|
7
|
-
* This type is used in the preliminary phase to request already-generated API
|
|
8
|
-
* operations for review, validation, or complementary generation tasks.
|
|
9
|
-
*
|
|
10
|
-
* @author Samchon
|
|
11
|
-
*/
|
|
4
|
+
/** Request to retrieve existing interface operations for context. */
|
|
12
5
|
export interface IAutoBePreliminaryGetInterfaceOperations {
|
|
13
|
-
/**
|
|
14
|
-
* Type discriminator for the request.
|
|
15
|
-
*
|
|
16
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
17
|
-
* task execution. Value "getInterfaceOperations" indicates this is a
|
|
18
|
-
* preliminary data request for interface operations.
|
|
19
|
-
*/
|
|
6
|
+
/** Type discriminator. */
|
|
20
7
|
type: "getInterfaceOperations";
|
|
21
8
|
|
|
22
9
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* Operations that have been generated in previous phases, containing paths,
|
|
26
|
-
* methods, parameters, and request/response bodies.
|
|
27
|
-
*
|
|
28
|
-
* CRITICAL: DO NOT request the same endpoints that you have already requested
|
|
29
|
-
* in previous calls.
|
|
10
|
+
* API operation endpoints to retrieve. DO NOT request same endpoints already
|
|
11
|
+
* requested in previous calls.
|
|
30
12
|
*/
|
|
31
13
|
endpoints: AutoBeOpenApi.IEndpoint[] & tags.MinItems<1>;
|
|
32
14
|
}
|
|
@@ -1,31 +1,13 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Request to retrieve OpenAPI schema type definitions for context.
|
|
5
|
-
*
|
|
6
|
-
* This type is used in the preliminary phase to request specific schema
|
|
7
|
-
* definitions from components.schemas for review or complementary generation.
|
|
8
|
-
*
|
|
9
|
-
* @author Samchon
|
|
10
|
-
*/
|
|
3
|
+
/** Request to retrieve OpenAPI schema type definitions for context. */
|
|
11
4
|
export interface IAutoBePreliminaryGetInterfaceSchemas {
|
|
12
|
-
/**
|
|
13
|
-
* Type discriminator for the request.
|
|
14
|
-
*
|
|
15
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
16
|
-
* task execution. Value "getInterfaceSchemas" indicates this is a preliminary
|
|
17
|
-
* data request for interface schemas.
|
|
18
|
-
*/
|
|
5
|
+
/** Type discriminator. */
|
|
19
6
|
type: "getInterfaceSchemas";
|
|
20
7
|
|
|
21
8
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Schema names from the OpenAPI components.schemas section (e.g., "IUser",
|
|
25
|
-
* "IUser.ICreate", "IPost.IUpdate").
|
|
26
|
-
*
|
|
27
|
-
* CRITICAL: DO NOT request the same type names that you have already
|
|
28
|
-
* requested in previous calls.
|
|
9
|
+
* Schema type names to retrieve. DO NOT request same names already requested
|
|
10
|
+
* in previous calls.
|
|
29
11
|
*/
|
|
30
12
|
typeNames: string[] & tags.MinItems<1>;
|
|
31
13
|
}
|
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Request to retrieve
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Same as {@link IAutoBePreliminaryGetAnalysisSections} but for sections from
|
|
8
|
-
* the previous generation cycle, enabling comparison and consistency checks.
|
|
9
|
-
*
|
|
10
|
-
* @author Juntak
|
|
4
|
+
* Request to retrieve analysis sections from the previous iteration by numeric
|
|
5
|
+
* ID.
|
|
11
6
|
*/
|
|
12
7
|
export interface IAutoBePreliminaryGetPreviousAnalysisSections {
|
|
13
|
-
/**
|
|
14
|
-
* Type discriminator for the request.
|
|
15
|
-
*
|
|
16
|
-
* Value "getPreviousAnalysisSections" indicates this is a preliminary data
|
|
17
|
-
* request for analysis sections from the previous iteration.
|
|
18
|
-
*/
|
|
8
|
+
/** Type discriminator. */
|
|
19
9
|
type: "getPreviousAnalysisSections";
|
|
20
10
|
|
|
21
11
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* CRITICAL: DO NOT request the same section IDs that you have already
|
|
25
|
-
* requested in previous calls.
|
|
12
|
+
* Section IDs to retrieve from previous iteration. DO NOT request same IDs
|
|
13
|
+
* already requested in previous calls.
|
|
26
14
|
*/
|
|
27
15
|
sectionIds: (number & tags.Type<"uint32">)[] & tags.MinItems<1>;
|
|
28
16
|
}
|
|
@@ -1,88 +1,19 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Request to retrieve database schemas from
|
|
4
|
+
* Request to retrieve database schemas from the previous iteration.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* artifacts from an earlier version.
|
|
10
|
-
*
|
|
11
|
-
* **Use Case:** When regenerating or modifying the database schema based on
|
|
12
|
-
* user change requests, agents need to reference the previously generated
|
|
13
|
-
* database schemas to understand the existing database structure and what needs
|
|
14
|
-
* to be modified.
|
|
15
|
-
*
|
|
16
|
-
* **Key Difference from `getDatabaseSchemas`:**
|
|
17
|
-
*
|
|
18
|
-
* - `getDatabaseSchemas`: Fetches schemas from the **current version** (the
|
|
19
|
-
* version being generated right now)
|
|
20
|
-
* - `getPreviousDatabaseSchemas`: Fetches schemas from the **previous version**
|
|
21
|
-
* (the last successfully generated version)
|
|
22
|
-
*
|
|
23
|
-
* **Example Scenario:**
|
|
24
|
-
*
|
|
25
|
-
* Initial generation:
|
|
26
|
-
* - DATABASE phase creates: users, posts, comments tables
|
|
27
|
-
* - Generation completes successfully
|
|
28
|
-
*
|
|
29
|
-
* User: "Add email verification status to users"
|
|
30
|
-
*
|
|
31
|
-
* Regeneration:
|
|
32
|
-
* - DATABASE phase starts regeneration
|
|
33
|
-
* - Calls getPreviousDatabaseSchemas(["users"])
|
|
34
|
-
* → Loads the previous version of users table schema
|
|
35
|
-
* - Creates new version with emailVerified field added
|
|
36
|
-
*
|
|
37
|
-
* **Waterfall + Spiral Pattern:**
|
|
38
|
-
*
|
|
39
|
-
* This aligns with AutoBE's regeneration cycles where:
|
|
40
|
-
*
|
|
41
|
-
* - Compilation failures trigger regeneration with corrections
|
|
42
|
-
* - User modifications trigger new versions
|
|
43
|
-
* - Previous schemas serve as reference for incremental changes
|
|
44
|
-
*
|
|
45
|
-
* @author Samchon
|
|
6
|
+
* Loads database table definitions from the last successfully generated
|
|
7
|
+
* version, used as reference context during regeneration or modification
|
|
8
|
+
* cycles.
|
|
46
9
|
*/
|
|
47
10
|
export interface IAutoBePreliminaryGetPreviousDatabaseSchemas {
|
|
48
|
-
/**
|
|
49
|
-
* Type discriminator for the request.
|
|
50
|
-
*
|
|
51
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
52
|
-
* task execution. Value "getPreviousDatabaseSchemas" indicates this is a
|
|
53
|
-
* preliminary data request for database schemas from a previous version.
|
|
54
|
-
*/
|
|
11
|
+
/** Type discriminator. */
|
|
55
12
|
type: "getPreviousDatabaseSchemas";
|
|
56
13
|
|
|
57
14
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* These are table schema names that were generated in a previous version and
|
|
61
|
-
* are needed as reference context for the current regeneration.
|
|
62
|
-
*
|
|
63
|
-
* **Important Notes:**
|
|
64
|
-
*
|
|
65
|
-
* - These schemas MUST exist in the previous version
|
|
66
|
-
* - This function is only available when a previous version exists
|
|
67
|
-
* - Used for reference/comparison, not for re-requesting within same execution
|
|
68
|
-
* - Table names are in snake_case (e.g., "shopping_sale", "bbs_article")
|
|
69
|
-
*
|
|
70
|
-
* **When This Function is Available:**
|
|
71
|
-
*
|
|
72
|
-
* - When a previous version exists
|
|
73
|
-
* - When user requests modifications to existing database schema
|
|
74
|
-
* - During correction/regeneration cycles that need previous schema context
|
|
75
|
-
*
|
|
76
|
-
* **When This Function is NOT Available:**
|
|
77
|
-
*
|
|
78
|
-
* - During initial generation (no previous version exists)
|
|
79
|
-
* - No previous database schemas available for this orchestration task
|
|
80
|
-
*
|
|
81
|
-
* **Example Table Names:**
|
|
82
|
-
*
|
|
83
|
-
* - "users", "posts", "comments"
|
|
84
|
-
* - "shopping_sales", "shopping_orders", "shopping_products"
|
|
85
|
-
* - "bbs_articles", "bbs_article_files"
|
|
15
|
+
* Table names to retrieve from previous iteration. DO NOT request same names
|
|
16
|
+
* already requested in previous calls.
|
|
86
17
|
*/
|
|
87
18
|
schemaNames: string[] & tags.MinItems<1>;
|
|
88
19
|
}
|
package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts
CHANGED
|
@@ -2,101 +2,18 @@ import { AutoBeOpenApi } from "@autobe/interface";
|
|
|
2
2
|
import { tags } from "typia";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Request to retrieve interface operations from
|
|
5
|
+
* Request to retrieve interface operations from the previous iteration.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* re-requesting operations within the same execution, but rather accessing
|
|
10
|
-
* artifacts from an earlier version.
|
|
11
|
-
*
|
|
12
|
-
* **Use Case:** When regenerating or modifying API operations based on user
|
|
13
|
-
* change requests, agents need to reference the previously generated operations
|
|
14
|
-
* to understand the existing API design and what needs to be modified.
|
|
15
|
-
*
|
|
16
|
-
* **Key Difference from `getInterfaceOperations`:**
|
|
17
|
-
*
|
|
18
|
-
* - `getInterfaceOperations`: Fetches operations from the **current version**
|
|
19
|
-
* (the version being generated right now)
|
|
20
|
-
* - `getPreviousInterfaceOperations`: Fetches operations from the **previous
|
|
21
|
-
* version** (the last successfully generated version)
|
|
22
|
-
*
|
|
23
|
-
* **Example Scenario:**
|
|
24
|
-
*
|
|
25
|
-
* Initial generation:
|
|
26
|
-
* - INTERFACE phase creates: GET /users, POST /users, GET /users/{id}
|
|
27
|
-
* - Generation completes successfully
|
|
28
|
-
*
|
|
29
|
-
* User: "Change user creation to require email verification"
|
|
30
|
-
*
|
|
31
|
-
* Regeneration:
|
|
32
|
-
* - INTERFACE phase starts regeneration
|
|
33
|
-
* - Calls getPreviousInterfaceOperations([{method: "POST", path: "/users"}])
|
|
34
|
-
* → Loads the previous version of POST /users operation
|
|
35
|
-
* - Creates new version with emailVerification requirement in request body
|
|
36
|
-
*
|
|
37
|
-
* **Automatic Schema Loading:**
|
|
38
|
-
*
|
|
39
|
-
* When operations are loaded from the previous version, their associated
|
|
40
|
-
* request/response body schemas are also referenced, providing complete context
|
|
41
|
-
* for understanding the operation's data structures.
|
|
42
|
-
*
|
|
43
|
-
* **Waterfall + Spiral Pattern:**
|
|
44
|
-
*
|
|
45
|
-
* This aligns with AutoBE's regeneration cycles where:
|
|
46
|
-
*
|
|
47
|
-
* - Compilation failures trigger regeneration with corrections
|
|
48
|
-
* - User modifications trigger new versions
|
|
49
|
-
* - Previous operations serve as reference for incremental API changes
|
|
50
|
-
*
|
|
51
|
-
* @author Samchon
|
|
7
|
+
* Loads API operation definitions from the last successfully generated version,
|
|
8
|
+
* used as reference context during regeneration or modification cycles.
|
|
52
9
|
*/
|
|
53
10
|
export interface IAutoBePreliminaryGetPreviousInterfaceOperations {
|
|
54
|
-
/**
|
|
55
|
-
* Type discriminator for the request.
|
|
56
|
-
*
|
|
57
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
58
|
-
* task execution. Value "getPreviousInterfaceOperations" indicates this is a
|
|
59
|
-
* preliminary data request for interface operations from a previous version.
|
|
60
|
-
*/
|
|
11
|
+
/** Type discriminator. */
|
|
61
12
|
type: "getPreviousInterfaceOperations";
|
|
62
13
|
|
|
63
14
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* These are endpoint identifiers (method + path) that were generated in a
|
|
67
|
-
* previous version and are needed as reference context for the current
|
|
68
|
-
* regeneration.
|
|
69
|
-
*
|
|
70
|
-
* **Important Notes:**
|
|
71
|
-
*
|
|
72
|
-
* - These endpoints MUST exist in the previous version
|
|
73
|
-
* - This function is only available when a previous version exists
|
|
74
|
-
* - Used for reference/comparison, not for re-requesting within same execution
|
|
75
|
-
* - Each endpoint is identified by: `{method: "GET|POST|PUT|DELETE|PATCH",
|
|
76
|
-
* path: "/api/path"}`
|
|
77
|
-
*
|
|
78
|
-
* **When This Function is Available:**
|
|
79
|
-
*
|
|
80
|
-
* - When a previous version exists
|
|
81
|
-
* - When user requests modifications to existing API operations
|
|
82
|
-
* - During correction/regeneration cycles that need previous operation context
|
|
83
|
-
*
|
|
84
|
-
* **When This Function is NOT Available:**
|
|
85
|
-
*
|
|
86
|
-
* - During initial generation (no previous version exists)
|
|
87
|
-
* - No previous interface operations available for this orchestration task
|
|
88
|
-
*
|
|
89
|
-
* **Endpoint Format:**
|
|
90
|
-
*
|
|
91
|
-
* - Method: HTTP verb in uppercase (e.g., "GET", "POST", "PUT", "DELETE",
|
|
92
|
-
* "PATCH")
|
|
93
|
-
* - Path: OpenAPI path with parameters (e.g., "/users/{id}", "/posts")
|
|
94
|
-
*
|
|
95
|
-
* **Example Endpoints:**
|
|
96
|
-
*
|
|
97
|
-
* - `{method: "GET", path: "/users/{id}"}`
|
|
98
|
-
* - `{method: "POST", path: "/shoppings/orders"}`
|
|
99
|
-
* - `{method: "PATCH", path: "/bbs/articles"}`
|
|
15
|
+
* Endpoints to retrieve from previous iteration. DO NOT request same
|
|
16
|
+
* endpoints already requested in previous calls.
|
|
100
17
|
*/
|
|
101
18
|
endpoints: AutoBeOpenApi.IEndpoint[] & tags.MinItems<1>;
|
|
102
19
|
}
|
|
@@ -1,105 +1,19 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Request to retrieve interface schemas from
|
|
4
|
+
* Request to retrieve interface schemas from the previous iteration.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* the same execution, but rather accessing artifacts from an earlier version.
|
|
10
|
-
*
|
|
11
|
-
* **Use Case:** When regenerating or modifying API schemas based on user change
|
|
12
|
-
* requests, agents need to reference the previously generated schemas to
|
|
13
|
-
* understand the existing DTO structure and what needs to be modified.
|
|
14
|
-
*
|
|
15
|
-
* **Key Difference from `getInterfaceSchemas`:**
|
|
16
|
-
*
|
|
17
|
-
* - `getInterfaceSchemas`: Fetches schemas from the **current version** (the
|
|
18
|
-
* version being generated right now)
|
|
19
|
-
* - `getPreviousInterfaceSchemas`: Fetches schemas from the **previous version**
|
|
20
|
-
* (the last successfully generated version)
|
|
21
|
-
*
|
|
22
|
-
* **Example Scenario:**
|
|
23
|
-
*
|
|
24
|
-
* Initial generation:
|
|
25
|
-
* - INTERFACE phase creates: IUser, IUser.ICreate, IUser.IUpdate, IPost
|
|
26
|
-
* - Generation completes successfully
|
|
27
|
-
*
|
|
28
|
-
* User: "Add phone number to user profile"
|
|
29
|
-
*
|
|
30
|
-
* Regeneration:
|
|
31
|
-
* - INTERFACE phase starts regeneration
|
|
32
|
-
* - Calls getPreviousInterfaceSchemas(["IUser", "IUser.IUpdate"])
|
|
33
|
-
* → Loads the previous versions of these schemas
|
|
34
|
-
* - Creates new versions with phoneNumber property added
|
|
35
|
-
*
|
|
36
|
-
* **Automatic Dependency Loading:**
|
|
37
|
-
*
|
|
38
|
-
* When schemas are loaded from the previous version, their referenced schemas
|
|
39
|
-
* (via `$ref`) are also available, providing complete type dependency context
|
|
40
|
-
* for understanding the schema structure.
|
|
41
|
-
*
|
|
42
|
-
* **Schema Type Naming Convention:**
|
|
43
|
-
*
|
|
44
|
-
* - Entity schemas: `IEntityName` (e.g., "IUser", "IPost", "IShoppingSale")
|
|
45
|
-
* - Nested DTOs: `IEntityName.ISubType` (e.g., "IUser.ICreate", "IPost.IUpdate")
|
|
46
|
-
* - Response wrappers: `IPage<IEntityName>` (e.g., "IPageIUser", "IPageIPost")
|
|
47
|
-
* - Summary types: `IEntityName.ISummary` (e.g., "IBbsArticle.ISummary")
|
|
48
|
-
* - Authorized types: `IEntityName.IAuthorized` (e.g., "IUser.IAuthorized")
|
|
49
|
-
*
|
|
50
|
-
* **Waterfall + Spiral Pattern:**
|
|
51
|
-
*
|
|
52
|
-
* This aligns with AutoBE's regeneration cycles where:
|
|
53
|
-
*
|
|
54
|
-
* - Compilation failures trigger regeneration with corrections
|
|
55
|
-
* - User modifications trigger new versions
|
|
56
|
-
* - Previous schemas serve as reference for incremental DTO changes
|
|
57
|
-
*
|
|
58
|
-
* @author Samchon
|
|
6
|
+
* Loads OpenAPI schema definitions (DTOs) from the last successfully generated
|
|
7
|
+
* version, used as reference context during regeneration or modification
|
|
8
|
+
* cycles.
|
|
59
9
|
*/
|
|
60
10
|
export interface IAutoBePreliminaryGetPreviousInterfaceSchemas {
|
|
61
|
-
/**
|
|
62
|
-
* Type discriminator for the request.
|
|
63
|
-
*
|
|
64
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
65
|
-
* task execution. Value "getPreviousInterfaceSchemas" indicates this is a
|
|
66
|
-
* preliminary data request for interface schemas from a previous version.
|
|
67
|
-
*/
|
|
11
|
+
/** Type discriminator. */
|
|
68
12
|
type: "getPreviousInterfaceSchemas";
|
|
69
13
|
|
|
70
14
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* These are type names from the OpenAPI components.schemas section that were
|
|
74
|
-
* generated in a previous version and are needed as reference context for the
|
|
75
|
-
* current regeneration.
|
|
76
|
-
*
|
|
77
|
-
* **Important Notes:**
|
|
78
|
-
*
|
|
79
|
-
* - These type names MUST exist in the previous version
|
|
80
|
-
* - This function is only available when a previous version exists
|
|
81
|
-
* - Used for reference/comparison, not for re-requesting within same execution
|
|
82
|
-
* - Type names follow TypeScript interface naming (e.g., "IUser",
|
|
83
|
-
* "IUser.ICreate")
|
|
84
|
-
*
|
|
85
|
-
* **When This Function is Available:**
|
|
86
|
-
*
|
|
87
|
-
* - When a previous version exists
|
|
88
|
-
* - When user requests modifications to existing API schemas
|
|
89
|
-
* - During correction/regeneration cycles that need previous schema context
|
|
90
|
-
*
|
|
91
|
-
* **When This Function is NOT Available:**
|
|
92
|
-
*
|
|
93
|
-
* - During initial generation (no previous version exists)
|
|
94
|
-
* - No previous interface schemas available for this orchestration task
|
|
95
|
-
*
|
|
96
|
-
* **Type Name Examples:**
|
|
97
|
-
*
|
|
98
|
-
* - Base entity: "IShoppingSale", "IBbsArticle", "IUser"
|
|
99
|
-
* - Create DTO: "IShoppingSale.ICreate", "IBbsArticle.ICreate"
|
|
100
|
-
* - Update DTO: "IShoppingSale.IUpdate", "IUser.IUpdate"
|
|
101
|
-
* - Paginated: "IPageIShoppingSale", "IPageIBbsArticle"
|
|
102
|
-
* - Summary: "IShoppingSale.ISummary", "IBbsArticle.ISummary"
|
|
15
|
+
* Schema type names to retrieve from previous iteration. DO NOT request same
|
|
16
|
+
* names already requested in previous calls.
|
|
103
17
|
*/
|
|
104
18
|
typeNames: string[] & tags.MinItems<1>;
|
|
105
19
|
}
|
|
@@ -1,31 +1,12 @@
|
|
|
1
1
|
import { tags } from "typia";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Request to retrieve Realize Collector function definitions for context.
|
|
5
|
-
*
|
|
6
|
-
* This type is used in the preliminary phase to request specific collector
|
|
7
|
-
* functions generated during the REALIZE_COLLECTOR_WRITE phase. Collectors
|
|
8
|
-
* transform API request DTOs into database CreateInput structures.
|
|
9
|
-
*
|
|
10
|
-
* @author Samchon
|
|
11
|
-
*/
|
|
3
|
+
/** Request to retrieve Realize Collector function definitions for context. */
|
|
12
4
|
export interface IAutoBePreliminaryGetRealizeCollectors {
|
|
13
|
-
/**
|
|
14
|
-
* Type discriminator for the request.
|
|
15
|
-
*
|
|
16
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
17
|
-
* task execution. Value "getRealizeCollectors" indicates this is a
|
|
18
|
-
* preliminary data request for collector functions.
|
|
19
|
-
*/
|
|
5
|
+
/** Type discriminator. */
|
|
20
6
|
type: "getRealizeCollectors";
|
|
21
7
|
|
|
22
8
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* DTO type names for Create DTOs that have collector functions (e.g.,
|
|
26
|
-
* "IShoppingSale.ICreate", "IBbsArticle.ICreate").
|
|
27
|
-
*
|
|
28
|
-
* CRITICAL: DO NOT request the same type names that you have already
|
|
9
|
+
* Collector DTO type names to retrieve. DO NOT request same names already
|
|
29
10
|
* requested in previous calls.
|
|
30
11
|
*/
|
|
31
12
|
dtoTypeNames: string[] & tags.MinItems<1>;
|