@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
|
@@ -8,127 +8,49 @@ import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/struc
|
|
|
8
8
|
import { IAutoBePreliminaryGetPreviousInterfaceOperations } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations";
|
|
9
9
|
import { IAutoBePreliminaryGetPreviousInterfaceSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* The Schema Refine agent detects and corrects degenerate type aliases where
|
|
14
|
-
* complex data structures have been incorrectly simplified to primitive types
|
|
15
|
-
* (`string`, `number`, `boolean`, `integer`).
|
|
16
|
-
*
|
|
17
|
-
* This agent analyzes JSDoc descriptions, database schema hints, and naming
|
|
18
|
-
* conventions to identify mismatches between documented semantics and actual
|
|
19
|
-
* type definitions, then provides corrected object schema definitions.
|
|
11
|
+
* Detects and corrects degenerate type aliases (primitives that should be
|
|
12
|
+
* objects).
|
|
20
13
|
*/
|
|
21
14
|
export interface IAutoBeInterfaceSchemaCastingApplication {
|
|
22
|
-
/**
|
|
23
|
-
* Process schema refinement task or preliminary data requests.
|
|
24
|
-
*
|
|
25
|
-
* Analyzes a potentially degenerate primitive type alias and determines
|
|
26
|
-
* whether it should be refined into a proper object schema structure. Uses
|
|
27
|
-
* Chain-of-Thought reasoning to systematically evaluate the type.
|
|
28
|
-
*
|
|
29
|
-
* @param props Request containing either preliminary data request or
|
|
30
|
-
* refinement completion
|
|
31
|
-
*/
|
|
15
|
+
/** Process task or retrieve preliminary data. */
|
|
32
16
|
process(props: IAutoBeInterfaceSchemaCastingApplication.IProps): void;
|
|
33
17
|
}
|
|
34
18
|
export declare namespace IAutoBeInterfaceSchemaCastingApplication {
|
|
35
|
-
/** Properties for schema
|
|
19
|
+
/** Properties for schema casting processing. */
|
|
36
20
|
interface IProps {
|
|
37
21
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* Before requesting preliminary data or completing your task, reflect on
|
|
41
|
-
* your current state and explain your reasoning:
|
|
42
|
-
*
|
|
43
|
-
* For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
|
|
44
|
-
*
|
|
45
|
-
* - What critical information is missing that you don't already have?
|
|
46
|
-
* - Why do you need it specifically right now?
|
|
47
|
-
* - Be brief - state the gap, don't list everything you have.
|
|
48
|
-
*
|
|
49
|
-
* For completion (complete):
|
|
50
|
-
*
|
|
51
|
-
* - What key assets did you acquire?
|
|
52
|
-
* - What did you accomplish?
|
|
53
|
-
* - Why is it sufficient to complete?
|
|
54
|
-
* - Summarize - don't enumerate every single item.
|
|
55
|
-
*
|
|
56
|
-
* This reflection helps you avoid duplicate requests and premature
|
|
57
|
-
* completion.
|
|
22
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
23
|
+
* you accomplished (completion).
|
|
58
24
|
*/
|
|
59
25
|
thinking: string;
|
|
60
26
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* Determines which action to perform: preliminary data retrieval
|
|
64
|
-
* (getAnalysisSections, getDatabaseSchemas, getInterfaceOperations,
|
|
65
|
-
* getInterfaceSchemas, etc.) or final refinement decision (complete). When
|
|
66
|
-
* preliminary returns empty array, that type is removed from the union,
|
|
67
|
-
* physically preventing repeated calls.
|
|
27
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
28
|
+
* union.
|
|
68
29
|
*/
|
|
69
30
|
request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetDatabaseSchemas | IAutoBePreliminaryGetInterfaceOperations | IAutoBePreliminaryGetInterfaceSchemas | IAutoBePreliminaryGetPreviousAnalysisSections | IAutoBePreliminaryGetPreviousDatabaseSchemas | IAutoBePreliminaryGetPreviousInterfaceOperations | IAutoBePreliminaryGetPreviousInterfaceSchemas;
|
|
70
31
|
}
|
|
71
32
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* Executes the final refinement decision after analyzing a potentially
|
|
75
|
-
* degenerate primitive type. Uses structured Chain-of-Thought reasoning
|
|
76
|
-
* through observation, reasoning, and verdict properties to ensure systematic
|
|
77
|
-
* evaluation before making a decision.
|
|
33
|
+
* Complete schema casting analysis via Chain-of-Thought (observation,
|
|
34
|
+
* reasoning, verdict).
|
|
78
35
|
*/
|
|
79
36
|
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 refinement
|
|
85
|
-
* decision request.
|
|
86
|
-
*/
|
|
37
|
+
/** Type discriminator for completion request. */
|
|
87
38
|
type: "complete";
|
|
88
39
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* Describe what you observe about the type being analyzed:
|
|
92
|
-
*
|
|
93
|
-
* - What is the current type definition? (e.g., `type IFoo = number`)
|
|
94
|
-
* - What does the JSDoc/description say about the type?
|
|
95
|
-
* - Are there any database schema hints (JSON field, etc.)?
|
|
96
|
-
* - What does the naming suggest? (e.g., "Distribution", "Preferences")
|
|
97
|
-
*
|
|
98
|
-
* This is purely descriptive - state facts without judgment.
|
|
40
|
+
* Factual observation of the current type definition, JSDoc, schema hints,
|
|
41
|
+
* and naming.
|
|
99
42
|
*/
|
|
100
43
|
observation: string;
|
|
101
|
-
/**
|
|
102
|
-
* Reasoning about whether the type is degenerate.
|
|
103
|
-
*
|
|
104
|
-
* Analyze the observations and explain your reasoning:
|
|
105
|
-
*
|
|
106
|
-
* - Does the documentation describe a structure that contradicts the
|
|
107
|
-
* primitive type?
|
|
108
|
-
* - Are there keywords suggesting complex structure? (key/value, array, list,
|
|
109
|
-
* contains, mapping)
|
|
110
|
-
* - Is this a legitimate semantic alias? (e.g., `IUserId = string`)
|
|
111
|
-
* - What type SHOULD this be based on the evidence?
|
|
112
|
-
*/
|
|
44
|
+
/** Reasoning about whether documentation contradicts the primitive type. */
|
|
113
45
|
reasoning: string;
|
|
114
46
|
/**
|
|
115
|
-
* Final verdict
|
|
116
|
-
*
|
|
117
|
-
* State your conclusion clearly:
|
|
118
|
-
*
|
|
119
|
-
* - Is this a degenerate type that needs refinement, or a valid primitive?
|
|
120
|
-
* - Summarize the key evidence that led to this decision.
|
|
121
|
-
* - If refining, briefly describe what the correct type should be.
|
|
47
|
+
* Final verdict: "degenerate" (needs casting to object) or "valid
|
|
48
|
+
* primitive".
|
|
122
49
|
*/
|
|
123
50
|
verdict: string;
|
|
124
51
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* When the type is degenerate: provide the casting design with corrected
|
|
128
|
-
* object schema containing `databaseSchema`, `specification`,
|
|
129
|
-
* `description`, and `schema` fields.
|
|
130
|
-
*
|
|
131
|
-
* When the type is intentional (valid primitive alias): set to `null`.
|
|
52
|
+
* Corrected object schema casting design, or `null` if the primitive is
|
|
53
|
+
* intentional.
|
|
132
54
|
*/
|
|
133
55
|
casting: AutoBeInterfaceSchemaCasting | null;
|
|
134
56
|
}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.d.ts
CHANGED
|
@@ -8,98 +8,33 @@ import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/struc
|
|
|
8
8
|
import { IAutoBePreliminaryGetPreviousInterfaceOperations } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations";
|
|
9
9
|
import { IAutoBePreliminaryGetPreviousInterfaceSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas";
|
|
10
10
|
export interface IAutoBeInterfaceSchemaComplementApplication {
|
|
11
|
-
/**
|
|
12
|
-
* Process schema complement task or preliminary data requests.
|
|
13
|
-
*
|
|
14
|
-
* Adds missing schema definitions to ensure OpenAPI document is complete and
|
|
15
|
-
* all referenced schemas are properly defined.
|
|
16
|
-
*
|
|
17
|
-
* @param props Request containing either preliminary data request or complete
|
|
18
|
-
* task
|
|
19
|
-
*/
|
|
11
|
+
/** Process task or retrieve preliminary data. */
|
|
20
12
|
process(props: IAutoBeInterfaceSchemaComplementApplication.IProps): void;
|
|
21
13
|
}
|
|
22
14
|
export declare namespace IAutoBeInterfaceSchemaComplementApplication {
|
|
23
15
|
interface IProps {
|
|
24
16
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* Before requesting preliminary data or completing your task, reflect on
|
|
28
|
-
* your current state and explain your reasoning:
|
|
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):
|
|
37
|
-
*
|
|
38
|
-
* - What key assets did you acquire?
|
|
39
|
-
* - What did you accomplish?
|
|
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.
|
|
17
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
18
|
+
* you accomplished (completion).
|
|
45
19
|
*/
|
|
46
20
|
thinking: string;
|
|
47
21
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* Determines which action to perform: preliminary data retrieval
|
|
51
|
-
* (getAnalysisSections, getDatabaseSchemas, getInterfaceOperations,
|
|
52
|
-
* getInterfaceSchemas, getPreviousAnalysisSections,
|
|
53
|
-
* getPreviousDatabaseSchemas, getPreviousInterfaceOperations,
|
|
54
|
-
* getPreviousInterfaceSchemas) or final schema complementation (complete).
|
|
55
|
-
* When preliminary returns empty array, that type is removed from the
|
|
56
|
-
* union, physically preventing repeated calls.
|
|
22
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
23
|
+
* union.
|
|
57
24
|
*/
|
|
58
25
|
request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetDatabaseSchemas | IAutoBePreliminaryGetInterfaceOperations | IAutoBePreliminaryGetInterfaceSchemas | IAutoBePreliminaryGetPreviousAnalysisSections | IAutoBePreliminaryGetPreviousDatabaseSchemas | IAutoBePreliminaryGetPreviousInterfaceOperations | IAutoBePreliminaryGetPreviousInterfaceSchemas;
|
|
59
26
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Request to add a missing schema definition.
|
|
62
|
-
*
|
|
63
|
-
* Executes schema complementation to fill in a referenced but undefined
|
|
64
|
-
* schema type in the OpenAPI document's components.schemas section. Ensures
|
|
65
|
-
* the $ref reference resolves to a valid schema definition.
|
|
66
|
-
*/
|
|
27
|
+
/** Add a missing schema definition referenced by $ref in components.schemas. */
|
|
67
28
|
interface IComplete {
|
|
68
|
-
/**
|
|
69
|
-
* Type discriminator for the request.
|
|
70
|
-
*
|
|
71
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
72
|
-
* task execution. Value "complete" indicates this is the final task
|
|
73
|
-
* execution request.
|
|
74
|
-
*/
|
|
29
|
+
/** Type discriminator for completion request. */
|
|
75
30
|
type: "complete";
|
|
76
|
-
/**
|
|
77
|
-
* Analysis of the missing type's purpose and context.
|
|
78
|
-
*
|
|
79
|
-
* Before designing the schema, analyze what you know:
|
|
80
|
-
*
|
|
81
|
-
* - What is this missing type for? Why is it referenced?
|
|
82
|
-
* - Where is it referenced from? ($ref in which schemas/operations?)
|
|
83
|
-
* - What does the reference context tell us about its expected structure?
|
|
84
|
-
* - Are there similar types that provide structural hints?
|
|
85
|
-
*/
|
|
31
|
+
/** Analysis of the missing type's purpose and reference context. */
|
|
86
32
|
analysis: string;
|
|
87
|
-
/**
|
|
88
|
-
* Rationale for the schema design decisions.
|
|
89
|
-
*
|
|
90
|
-
* Explain why you designed the schema this way:
|
|
91
|
-
*
|
|
92
|
-
* - Which properties did you include and why?
|
|
93
|
-
* - What is required vs optional, and why?
|
|
94
|
-
* - Which types use $ref and why?
|
|
95
|
-
* - What was excluded and why? (e.g., auto-generated fields for ICreate)
|
|
96
|
-
*/
|
|
33
|
+
/** Rationale for the schema design decisions. */
|
|
97
34
|
rationale: string;
|
|
98
35
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* Contains `databaseSchema`, `specification`, `description`, and `schema`
|
|
102
|
-
* fields that together define a complete DTO type component.
|
|
36
|
+
* Schema design: database mapping, specification, description, and JSON
|
|
37
|
+
* Schema.
|
|
103
38
|
*/
|
|
104
39
|
design: AutoBeInterfaceSchemaDesign;
|
|
105
40
|
}
|
|
@@ -8,29 +8,13 @@ import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/struc
|
|
|
8
8
|
import { IAutoBePreliminaryGetPreviousInterfaceOperations } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations";
|
|
9
9
|
import { IAutoBePreliminaryGetPreviousInterfaceSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* and
|
|
13
|
-
*
|
|
14
|
-
* Guides the AI agent through adding `databaseSchemaProperty`, `specification`,
|
|
15
|
-
* and `description` to each property in a schema that was initially generated
|
|
16
|
-
* with only type structure. The refinement process ensures complete and
|
|
17
|
-
* accurate schema definitions that properly map to database entities.
|
|
18
|
-
*
|
|
19
|
-
* The refinement follows a structured RAG workflow: preliminary context
|
|
20
|
-
* gathering (analysis sections, database schemas, interface operations)
|
|
21
|
-
* followed by property-level enrichment operations.
|
|
22
|
-
*
|
|
23
|
-
* @author Samchon
|
|
11
|
+
* Enriches JSON Schema properties with databaseSchemaProperty, specification,
|
|
12
|
+
* and description.
|
|
24
13
|
*/
|
|
25
14
|
export interface IAutoBeInterfaceSchemaRefineApplication {
|
|
26
15
|
/**
|
|
27
16
|
* Process schema refinement task or preliminary data requests.
|
|
28
17
|
*
|
|
29
|
-
* Enriches OpenAPI schema definitions with documentation and metadata that
|
|
30
|
-
* were omitted during initial generation. Processes property-level additions
|
|
31
|
-
* including database field mappings, implementation specifications, and API
|
|
32
|
-
* consumer descriptions.
|
|
33
|
-
*
|
|
34
18
|
* @param props Request containing either preliminary data request or complete
|
|
35
19
|
* task
|
|
36
20
|
*/
|
|
@@ -41,118 +25,52 @@ export declare namespace IAutoBeInterfaceSchemaRefineApplication {
|
|
|
41
25
|
/**
|
|
42
26
|
* Think before you act.
|
|
43
27
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* For preliminary requests (getAnalysisSections, getDatabaseSchemas, etc.):
|
|
48
|
-
*
|
|
49
|
-
* - What critical information is missing that you don't already have?
|
|
50
|
-
* - Why do you need it specifically right now?
|
|
51
|
-
* - Be brief - state the gap, don't list everything you have.
|
|
52
|
-
*
|
|
53
|
-
* For completion (complete):
|
|
28
|
+
* For preliminary requests: what critical information is missing and why?
|
|
29
|
+
* Be brief — state the gap, don't list everything you have.
|
|
54
30
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* - Why is it sufficient to complete?
|
|
58
|
-
* - Summarize - don't enumerate every single item.
|
|
59
|
-
*
|
|
60
|
-
* This reflection helps you avoid duplicate requests and premature
|
|
61
|
-
* completion.
|
|
31
|
+
* For completion: what key assets did you acquire, what did you accomplish,
|
|
32
|
+
* why is it sufficient? Summarize — don't enumerate every single item.
|
|
62
33
|
*/
|
|
63
34
|
thinking: string;
|
|
64
35
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* Determines which action to perform: preliminary data retrieval
|
|
68
|
-
* (getAnalysisSections, getDatabaseSchemas, getInterfaceOperations,
|
|
69
|
-
* getInterfaceSchemas) or final schema refinement (complete). When
|
|
70
|
-
* preliminary returns empty array, that type is removed from the union,
|
|
71
|
-
* physically preventing repeated calls.
|
|
36
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
37
|
+
* union, physically preventing repeated calls.
|
|
72
38
|
*/
|
|
73
39
|
request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetDatabaseSchemas | IAutoBePreliminaryGetInterfaceOperations | IAutoBePreliminaryGetInterfaceSchemas | IAutoBePreliminaryGetPreviousAnalysisSections | IAutoBePreliminaryGetPreviousDatabaseSchemas | IAutoBePreliminaryGetPreviousInterfaceOperations | IAutoBePreliminaryGetPreviousInterfaceSchemas;
|
|
74
40
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Complete schema refinement with object-level and property-level enrichment.
|
|
77
|
-
*
|
|
78
|
-
* Executes the refinement to add documentation and metadata to a schema.
|
|
79
|
-
* Includes both object-level context (databaseSchema, specification,
|
|
80
|
-
* description) and property-level operations (depict, create, update,
|
|
81
|
-
* erase).
|
|
82
|
-
*/
|
|
41
|
+
/** Complete schema refinement with object-level and property-level enrichment. */
|
|
83
42
|
interface IComplete {
|
|
84
|
-
/**
|
|
85
|
-
* Type discriminator for the request.
|
|
86
|
-
*
|
|
87
|
-
* Value "complete" indicates this is the final task execution request after
|
|
88
|
-
* all preliminary data has been gathered.
|
|
89
|
-
*/
|
|
43
|
+
/** Type discriminator for completion request. */
|
|
90
44
|
type: "complete";
|
|
91
|
-
/**
|
|
92
|
-
* Summary of refinement analysis and actions taken.
|
|
93
|
-
*
|
|
94
|
-
* Documents the agent's analysis of the schema's current state, including
|
|
95
|
-
* which properties need documentation, any structural issues discovered,
|
|
96
|
-
* and the overall assessment of what enrichment was performed.
|
|
97
|
-
*/
|
|
45
|
+
/** Summary of refinement analysis and actions taken. */
|
|
98
46
|
review: string;
|
|
99
47
|
/**
|
|
100
|
-
* Database schema
|
|
101
|
-
*
|
|
102
|
-
* Specifies which database table or entity this schema maps to, providing
|
|
103
|
-
* context for property-level database field mappings. This establishes the
|
|
104
|
-
* source of truth for data validation and transformation logic.
|
|
105
|
-
*
|
|
106
|
-
* Set to `null` for schemas that don't directly map to a single database
|
|
107
|
-
* table (e.g., computed aggregations, cross-table joins, utility types).
|
|
48
|
+
* Database table this schema maps to, or `null` for non-table types
|
|
49
|
+
* (aggregations, joins, utility).
|
|
108
50
|
*/
|
|
109
51
|
databaseSchema: string | null;
|
|
110
52
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* **MANDATORY**: You must always provide this value, even if the existing
|
|
117
|
-
* specification is correct. This forces explicit review and strengthens
|
|
118
|
-
* reasoning about the implementation details.
|
|
53
|
+
* HOW the schema should be implemented (data source mappings,
|
|
54
|
+
* transformation rules). **MANDATORY**: Always provide, even if existing
|
|
55
|
+
* value is correct — this forces explicit review of implementation
|
|
56
|
+
* details.
|
|
119
57
|
*/
|
|
120
58
|
specification: string;
|
|
121
59
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* purpose and usage of this data type in the API context.
|
|
126
|
-
*
|
|
127
|
-
* **MANDATORY**: You must always provide this value, even if the existing
|
|
128
|
-
* description is correct. This forces explicit review and strengthens
|
|
129
|
-
* reasoning about the API documentation.
|
|
60
|
+
* WHAT the schema represents for API consumers. **MANDATORY**: Always
|
|
61
|
+
* provide, even if existing value is correct — this forces explicit review
|
|
62
|
+
* of consumer-facing documentation.
|
|
130
63
|
*/
|
|
131
64
|
description: string;
|
|
132
65
|
/**
|
|
133
|
-
* Database properties explicitly excluded from this DTO.
|
|
134
|
-
*
|
|
135
|
-
* Declare every database property that intentionally does not appear in
|
|
136
|
-
* this DTO. Together with `revises`, this must cover every database
|
|
137
|
-
* property — each one must appear in exactly one of the two arrays.
|
|
66
|
+
* Database properties explicitly excluded from this DTO. Together with
|
|
67
|
+
* `revises`, must cover every database property exactly once.
|
|
138
68
|
*/
|
|
139
69
|
excludes: AutoBeInterfaceSchemaPropertyExclude[];
|
|
140
70
|
/**
|
|
141
|
-
* Property-level refinement operations
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* - `depict`: Add documentation to existing property
|
|
146
|
-
* - `create`: Add missing property with documentation
|
|
147
|
-
* - `update`: Fix incorrect type and add documentation
|
|
148
|
-
* - `erase`: Remove invalid property
|
|
149
|
-
*
|
|
150
|
-
* Each operation includes the property key, reason for the action, and
|
|
151
|
-
* complete metadata including `databaseSchemaProperty`, `specification`,
|
|
152
|
-
* and `description`.
|
|
153
|
-
*
|
|
154
|
-
* Database properties are addressed either here (via
|
|
155
|
-
* `databaseSchemaProperty`) or in `excludes`. No property can be omitted.
|
|
71
|
+
* Property-level refinement operations (depict/create/update/erase). Every
|
|
72
|
+
* DTO property must appear exactly once. Database properties go here (via
|
|
73
|
+
* `databaseSchemaProperty`) or in `excludes`. No omissions allowed.
|
|
156
74
|
*/
|
|
157
75
|
revises: AutoBeInterfaceSchemaPropertyRefine[];
|
|
158
76
|
}
|
|
@@ -1,43 +1,17 @@
|
|
|
1
1
|
import { AutoBeInterfaceSchemaRefactor } from "@autobe/interface";
|
|
2
2
|
export interface IAutoBeInterfaceSchemaRenameApplication {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* This method examines existing DTO type names to detect violations of the
|
|
7
|
-
* CRITICAL naming rule: ALL words from the database table name MUST be
|
|
8
|
-
* preserved in the DTO type name. Omitting intermediate words breaks
|
|
9
|
-
* type-to-table traceability and causes system failures.
|
|
10
|
-
*
|
|
11
|
-
* The method receives a list of database table names and current DTO type
|
|
12
|
-
* names, then identifies which type names incorrectly omit service prefixes
|
|
13
|
-
* or intermediate components from their corresponding table names.
|
|
14
|
-
*
|
|
15
|
-
* @param props Properties containing refactoring operations to fix naming
|
|
16
|
-
* violations.
|
|
4
|
+
* Identify DTO type names that violate the naming rule: ALL words from the
|
|
5
|
+
* database table name MUST be preserved in the DTO type name.
|
|
17
6
|
*/
|
|
18
7
|
rename(props: IAutoBeInterfaceSchemaRenameApplication.IProps): void;
|
|
19
8
|
}
|
|
20
9
|
export declare namespace IAutoBeInterfaceSchemaRenameApplication {
|
|
21
10
|
interface IProps {
|
|
22
11
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* - `from`: The current INCORRECT type name (e.g., "ISale", "IBbsComment")
|
|
28
|
-
* - `to`: The CORRECT type name with all components preserved (e.g.,
|
|
29
|
-
* "IShoppingSale", "IBbsArticleComment")
|
|
30
|
-
*
|
|
31
|
-
* IMPORTANT: Only include type names that violate the naming rules. If a
|
|
32
|
-
* type name correctly preserves all components from the table name, do NOT
|
|
33
|
-
* include it in the refactors list.
|
|
34
|
-
*
|
|
35
|
-
* The orchestrator will automatically handle:
|
|
36
|
-
*
|
|
37
|
-
* - Renaming the base type (e.g., ISale → IShoppingSale)
|
|
38
|
-
* - Renaming all variants (e.g., ISale.ICreate → IShoppingSale.ICreate)
|
|
39
|
-
* - Renaming page types (e.g., IPageISale → IPageIShoppingSale)
|
|
40
|
-
* - Updating all $ref references throughout the OpenAPI document
|
|
12
|
+
* Refactoring operations for incorrectly named DTO types. Only include
|
|
13
|
+
* violations. Orchestrator auto-handles variants, page types, and $ref
|
|
14
|
+
* updates.
|
|
41
15
|
*/
|
|
42
16
|
refactors: AutoBeInterfaceSchemaRefactor[];
|
|
43
17
|
}
|
|
@@ -8,61 +8,25 @@ import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/struc
|
|
|
8
8
|
import { IAutoBePreliminaryGetPreviousInterfaceOperations } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations";
|
|
9
9
|
import { IAutoBePreliminaryGetPreviousInterfaceSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas";
|
|
10
10
|
export interface IAutoBeInterfaceSchemaReviewApplication {
|
|
11
|
-
/**
|
|
12
|
-
* Process schema review task or preliminary data requests.
|
|
13
|
-
*
|
|
14
|
-
* Reviews and validates OpenAPI schema definitions to ensure quality,
|
|
15
|
-
* correctness, and compliance with domain requirements and system policies.
|
|
16
|
-
*
|
|
17
|
-
* @param props Request containing either preliminary data request or complete
|
|
18
|
-
* task
|
|
19
|
-
*/
|
|
11
|
+
/** Process task or retrieve preliminary data. */
|
|
20
12
|
process(props: IAutoBeInterfaceSchemaReviewApplication.IProps): void;
|
|
21
13
|
}
|
|
22
14
|
export declare namespace IAutoBeInterfaceSchemaReviewApplication {
|
|
23
15
|
interface IProps {
|
|
24
16
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* Before requesting preliminary data or completing your task, reflect on
|
|
28
|
-
* your current state and explain your reasoning:
|
|
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):
|
|
37
|
-
*
|
|
38
|
-
* - What key assets did you acquire?
|
|
39
|
-
* - What did you accomplish?
|
|
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.
|
|
17
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
18
|
+
* you accomplished (completion).
|
|
45
19
|
*/
|
|
46
20
|
thinking: string;
|
|
47
21
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* Determines which action to perform: preliminary data retrieval
|
|
51
|
-
* (getAnalysisSections, getDatabaseSchemas, getInterfaceOperations,
|
|
52
|
-
* getInterfaceSchemas) or final schema review (complete). When preliminary
|
|
53
|
-
* returns empty array, that type is removed from the union, physically
|
|
54
|
-
* preventing repeated calls.
|
|
22
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
23
|
+
* union.
|
|
55
24
|
*/
|
|
56
25
|
request: IComplete | IAutoBePreliminaryGetAnalysisSections | IAutoBePreliminaryGetDatabaseSchemas | IAutoBePreliminaryGetInterfaceOperations | IAutoBePreliminaryGetInterfaceSchemas | IAutoBePreliminaryGetPreviousAnalysisSections | IAutoBePreliminaryGetPreviousDatabaseSchemas | IAutoBePreliminaryGetPreviousInterfaceOperations | IAutoBePreliminaryGetPreviousInterfaceSchemas;
|
|
57
26
|
}
|
|
58
27
|
/** Complete schema review with property-level revisions. */
|
|
59
28
|
interface IComplete {
|
|
60
|
-
/**
|
|
61
|
-
* Type discriminator for the request.
|
|
62
|
-
*
|
|
63
|
-
* Value "complete" indicates this is the final review submission after all
|
|
64
|
-
* preliminary data has been gathered.
|
|
65
|
-
*/
|
|
29
|
+
/** Type discriminator for completion request. */
|
|
66
30
|
type: "complete";
|
|
67
31
|
/** Summary of issues found and fixes applied. */
|
|
68
32
|
review: string;
|