@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
|
@@ -5,25 +5,17 @@ import { IAutoBePreliminaryGetAnalysisSections } from "../../common/structures/I
|
|
|
5
5
|
import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/structures/IAutoBePreliminaryGetPreviousAnalysisSections";
|
|
6
6
|
import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Designs ALL actor-related authentication tables. The Database Component agent
|
|
10
|
+
* will NOT create any actor or authentication tables — this agent owns that
|
|
11
|
+
* scope entirely.
|
|
12
|
+
*/
|
|
8
13
|
export interface IAutoBeDatabaseAuthorizationApplication {
|
|
9
14
|
/**
|
|
10
|
-
* Process authorization table design task
|
|
11
|
-
* requests.
|
|
12
|
-
*
|
|
13
|
-
* Receives all actor definitions (name, kind, description for each) and
|
|
14
|
-
* generates all authentication and authorization related tables for every
|
|
15
|
-
* actor type (guest/member/admin) in a single call. This includes for each
|
|
16
|
-
* actor:
|
|
17
|
-
*
|
|
18
|
-
* - The main actor table (e.g., users, administrators, guests)
|
|
19
|
-
* - Session tables for JWT token management
|
|
20
|
-
* - Authentication support tables (password reset, email verification, etc.)
|
|
21
|
-
*
|
|
22
|
-
* This agent is responsible for ALL actor-related tables. The Database
|
|
23
|
-
* Component agent will NOT create any actor or authentication tables.
|
|
15
|
+
* Process authorization table design task or preliminary data requests.
|
|
24
16
|
*
|
|
25
17
|
* @param props Request containing either preliminary data request or complete
|
|
26
|
-
*
|
|
18
|
+
* task
|
|
27
19
|
*/
|
|
28
20
|
process(props: IAutoBeDatabaseAuthorizationApplication.IProps): void;
|
|
29
21
|
}
|
|
@@ -33,35 +25,17 @@ export namespace IAutoBeDatabaseAuthorizationApplication {
|
|
|
33
25
|
/**
|
|
34
26
|
* Think before you act.
|
|
35
27
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* For preliminary requests (getAnalysisSections,
|
|
40
|
-
* getPreviousAnalysisSections, getPreviousDatabaseSchemas):
|
|
41
|
-
*
|
|
42
|
-
* - What critical information is missing for designing auth tables?
|
|
43
|
-
* - Why do you need it specifically right now?
|
|
44
|
-
* - Be brief - state the gap, don't list everything you have.
|
|
45
|
-
*
|
|
46
|
-
* For completion (complete):
|
|
47
|
-
*
|
|
48
|
-
* - What tables did you design for this actor?
|
|
49
|
-
* - How does the design support authentication workflows?
|
|
50
|
-
* - Summarize - don't enumerate every single item.
|
|
28
|
+
* For preliminary requests: what critical information is missing and why?
|
|
29
|
+
* Be brief — state the gap, don't list everything you have.
|
|
51
30
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
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.
|
|
54
33
|
*/
|
|
55
34
|
thinking: string;
|
|
56
35
|
|
|
57
36
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* Determines which action to perform: preliminary data retrieval
|
|
61
|
-
* (getAnalysisSections, getPreviousAnalysisSections,
|
|
62
|
-
* getPreviousDatabaseSchemas) or final table design (complete). When
|
|
63
|
-
* preliminary returns empty array, that type is removed from the union,
|
|
64
|
-
* physically preventing repeated calls.
|
|
37
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
38
|
+
* union, physically preventing repeated calls.
|
|
65
39
|
*/
|
|
66
40
|
request:
|
|
67
41
|
| IComplete
|
|
@@ -71,76 +45,25 @@ export namespace IAutoBeDatabaseAuthorizationApplication {
|
|
|
71
45
|
}
|
|
72
46
|
|
|
73
47
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* Takes all actor definitions (name, kind, description for each) and
|
|
77
|
-
* generates all database tables required for every actor's authentication and
|
|
78
|
-
* authorization needs, including main actor tables, session tables, and any
|
|
79
|
-
* authentication support tables for each actor.
|
|
80
|
-
*
|
|
81
|
-
* This is about creating tables for ALL actors in a single call. Each actor
|
|
82
|
-
* must have at minimum a main actor table and a session table.
|
|
48
|
+
* Complete authorization table design for all actors. Each actor must have a
|
|
49
|
+
* main actor table and a session table.
|
|
83
50
|
*/
|
|
84
51
|
export interface IComplete {
|
|
85
|
-
/**
|
|
86
|
-
* Type discriminator for the request.
|
|
87
|
-
*
|
|
88
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
89
|
-
* task execution. Value "complete" indicates this is the final task
|
|
90
|
-
* execution request.
|
|
91
|
-
*/
|
|
52
|
+
/** Type discriminator for completion request. */
|
|
92
53
|
type: "complete";
|
|
93
54
|
|
|
94
|
-
/**
|
|
95
|
-
* Analysis of all actors' authentication requirements.
|
|
96
|
-
*
|
|
97
|
-
* Documents the agent's understanding of each actor's authentication needs:
|
|
98
|
-
*
|
|
99
|
-
* - What actors exist and their kinds (guest/member/admin)?
|
|
100
|
-
* - What authentication patterns apply to each actor kind?
|
|
101
|
-
* - What authentication features are required (login, registration, etc.)?
|
|
102
|
-
* - What are the session management requirements for each actor?
|
|
103
|
-
* - Are there any special authentication mechanisms (2FA, OAuth, etc.)?
|
|
104
|
-
*/
|
|
55
|
+
/** Analysis of all actors' authentication requirements and patterns. */
|
|
105
56
|
analysis: string;
|
|
106
57
|
|
|
107
|
-
/**
|
|
108
|
-
* Rationale for the authorization table design decisions.
|
|
109
|
-
*
|
|
110
|
-
* Explains why tables were designed this way:
|
|
111
|
-
*
|
|
112
|
-
* - Why was each table created for each actor?
|
|
113
|
-
* - What is the relationship between actor and session tables?
|
|
114
|
-
* - How do tables support the authentication workflow for all actors?
|
|
115
|
-
* - What normalization decisions were made for auth-related data?
|
|
116
|
-
*/
|
|
58
|
+
/** Rationale for the authorization table design decisions. */
|
|
117
59
|
rationale: string;
|
|
118
60
|
|
|
119
61
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* Contains all database tables required for every actor's authentication
|
|
123
|
-
* and authorization needs. Each table design includes table name
|
|
124
|
-
* (snake_case, plural) and description explaining the table's purpose.
|
|
125
|
-
*
|
|
126
|
-
* The AI agent must design tables based on:
|
|
127
|
-
*
|
|
128
|
-
* - Each actor's kind (guest/member/admin) and its authentication patterns
|
|
129
|
-
* - Authentication requirements from analysis sections
|
|
130
|
-
* - Session management requirements (JWT, refresh tokens)
|
|
131
|
-
* - Security requirements (password policies, 2FA)
|
|
132
|
-
*
|
|
133
|
-
* MUST include for EACH actor:
|
|
134
|
-
*
|
|
135
|
-
* - Main actor table (e.g., `users`, `administrators`, `guests`)
|
|
136
|
-
* - Session table (e.g., `user_sessions`, `administrator_sessions`)
|
|
137
|
-
*
|
|
138
|
-
* MAY include (based on requirements):
|
|
62
|
+
* Table designs for all actors' authentication domains (snake_case, plural
|
|
63
|
+
* names).
|
|
139
64
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* - OAuth connections table
|
|
143
|
-
* - Two-factor authentication tokens table
|
|
65
|
+
* MUST include for each actor: main actor table + session table. MAY
|
|
66
|
+
* include: password reset, email verification, OAuth, 2FA tables.
|
|
144
67
|
*/
|
|
145
68
|
tables: AutoBeDatabaseComponentTableDesign[] & tags.MinItems<1>;
|
|
146
69
|
}
|
|
@@ -5,52 +5,21 @@ import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/stru
|
|
|
5
5
|
import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas";
|
|
6
6
|
|
|
7
7
|
export interface IAutoBeDatabaseAuthorizationReviewApplication {
|
|
8
|
-
/**
|
|
9
|
-
* Analyze requirements and review the single authorization component
|
|
10
|
-
* containing tables for ALL actors.
|
|
11
|
-
*
|
|
12
|
-
* Your PRIMARY task is to deeply analyze authentication requirements and
|
|
13
|
-
* ensure complete table coverage for EVERY actor type in the authorization
|
|
14
|
-
* component. The component contains tables for all actors
|
|
15
|
-
* (guest/member/admin), and you must verify that each actor has its required
|
|
16
|
-
* tables.
|
|
17
|
-
*
|
|
18
|
-
* ALWAYS fetch analysis sections first using `getAnalysisSections` to
|
|
19
|
-
* understand what authentication features are required, then systematically
|
|
20
|
-
* verify that EVERY actor has main actor table + session table, and apply
|
|
21
|
-
* corrections.
|
|
22
|
-
*
|
|
23
|
-
* @param props Request containing either preliminary data request or complete
|
|
24
|
-
* task with table revisions for all actors
|
|
25
|
-
*/
|
|
8
|
+
/** Process authorization review task or retrieve preliminary data. */
|
|
26
9
|
process(props: IAutoBeDatabaseAuthorizationReviewApplication.IProps): void;
|
|
27
10
|
}
|
|
28
11
|
|
|
29
12
|
export namespace IAutoBeDatabaseAuthorizationReviewApplication {
|
|
30
13
|
export interface IProps {
|
|
31
14
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* For preliminary requests (getAnalysisSections,
|
|
35
|
-
* getPreviousAnalysisSections, getPreviousDatabaseSchemas):
|
|
36
|
-
*
|
|
37
|
-
* - What authentication requirements do you need to analyze?
|
|
38
|
-
* - Which actor types need to be verified?
|
|
39
|
-
*
|
|
40
|
-
* For completion (complete):
|
|
41
|
-
*
|
|
42
|
-
* - What authentication requirements did you analyze?
|
|
43
|
-
* - How many revisions are you making and why?
|
|
44
|
-
* - Summarize the requirements-to-revisions mapping.
|
|
15
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
16
|
+
* you accomplished (completion).
|
|
45
17
|
*/
|
|
46
18
|
thinking: string;
|
|
47
19
|
|
|
48
20
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* Use preliminary requests (getAnalysisSections, etc.) to fetch
|
|
52
|
-
* requirements documents. Use complete to submit table revisions after
|
|
53
|
-
* thorough authentication requirements analysis.
|
|
21
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
22
|
+
* union.
|
|
54
23
|
*/
|
|
55
24
|
request:
|
|
56
25
|
| IComplete
|
|
@@ -59,94 +28,28 @@ export namespace IAutoBeDatabaseAuthorizationReviewApplication {
|
|
|
59
28
|
| IAutoBePreliminaryGetPreviousDatabaseSchemas;
|
|
60
29
|
}
|
|
61
30
|
|
|
62
|
-
/**
|
|
63
|
-
* Submit table revisions after authentication requirements analysis.
|
|
64
|
-
*
|
|
65
|
-
* The authorization component contains tables for ALL actors, so ensure no
|
|
66
|
-
* actor is missing its required tables.
|
|
67
|
-
*/
|
|
31
|
+
/** Submit table revisions after authentication requirements analysis. */
|
|
68
32
|
export interface IComplete {
|
|
69
33
|
/** Type discriminator. Value "complete" indicates final submission. */
|
|
70
34
|
type: "complete";
|
|
71
35
|
|
|
72
36
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* Document how you analyzed authentication requirements and mapped them to
|
|
76
|
-
* table modifications:
|
|
77
|
-
*
|
|
78
|
-
* - What actor types are defined?
|
|
79
|
-
* - Does each actor have a main table and session table?
|
|
80
|
-
* - What authentication support tables are needed?
|
|
81
|
-
* - What existing tables need renaming or removal?
|
|
82
|
-
*
|
|
83
|
-
* Be specific - reference actual requirements and explain the
|
|
84
|
-
* requirements-to-revisions mapping.
|
|
37
|
+
* How authentication requirements map to proposed table modifications,
|
|
38
|
+
* identifying coverage gaps.
|
|
85
39
|
*/
|
|
86
40
|
review: string;
|
|
87
41
|
|
|
88
42
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* Include all create, update, and erase operations identified during
|
|
92
|
-
* review. Each operation must include a reason explaining why the change is
|
|
93
|
-
* necessary.
|
|
94
|
-
*
|
|
95
|
-
* ## Operation Types:
|
|
43
|
+
* Table revision operations (create/update/erase). Each must include a
|
|
44
|
+
* reason.
|
|
96
45
|
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* Use when a table is needed to fulfill authentication requirements but
|
|
100
|
-
* doesn't exist.
|
|
101
|
-
*
|
|
102
|
-
* ```typescript
|
|
103
|
-
* {
|
|
104
|
-
* "type": "create",
|
|
105
|
-
* "reason": "Actor 'customer' requires password reset token storage",
|
|
106
|
-
* "table": "shopping_customer_password_resets",
|
|
107
|
-
* "description": "Stores password reset tokens with expiration for customers"
|
|
108
|
-
* }
|
|
109
|
-
* ```
|
|
110
|
-
*
|
|
111
|
-
* ### Update - Rename tables
|
|
112
|
-
*
|
|
113
|
-
* Use when a table has naming convention issues.
|
|
114
|
-
*
|
|
115
|
-
* ```typescript
|
|
116
|
-
* {
|
|
117
|
-
* "type": "update",
|
|
118
|
-
* "reason": "Table name violates actor naming convention",
|
|
119
|
-
* "original": "customerSessions",
|
|
120
|
-
* "updated": "shopping_customer_sessions",
|
|
121
|
-
* "description": "Authentication sessions for shopping customers"
|
|
122
|
-
* }
|
|
123
|
-
* ```
|
|
124
|
-
*
|
|
125
|
-
* ### Erase - Remove tables
|
|
126
|
-
*
|
|
127
|
-
* Use when a table doesn't belong to authorization.
|
|
128
|
-
*
|
|
129
|
-
* ```typescript
|
|
130
|
-
* {
|
|
131
|
-
* "type": "erase",
|
|
132
|
-
* "reason": "Table is a business domain entity, not authentication",
|
|
133
|
-
* "table": "shopping_orders"
|
|
134
|
-
* }
|
|
135
|
-
* ```
|
|
136
|
-
*
|
|
137
|
-
* ## Constraints:
|
|
46
|
+
* Constraints:
|
|
138
47
|
*
|
|
139
48
|
* - Only CREATE tables related to authentication and authorization
|
|
140
49
|
* - Each actor MUST have a main actor table and session table
|
|
141
|
-
* - Each operation must have a clear, requirement-based reason
|
|
142
50
|
* - Empty array is valid if no modifications are needed
|
|
143
51
|
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* - Snake case: `user_sessions` not `userSessions`
|
|
147
|
-
* - Plural form: `users` not `user`
|
|
148
|
-
* - Domain prefix: `shopping_customer_sessions`
|
|
149
|
-
* - Actor name in table: all tables must contain the actor name
|
|
52
|
+
* Naming: snake_case, plural, domain-prefixed, actor name in table.
|
|
150
53
|
*/
|
|
151
54
|
revises: AutoBeDatabaseComponentTableRevise[];
|
|
152
55
|
}
|
|
@@ -5,59 +5,21 @@ import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/stru
|
|
|
5
5
|
import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas";
|
|
6
6
|
|
|
7
7
|
export interface IAutoBeDatabaseComponentApplication {
|
|
8
|
-
/**
|
|
9
|
-
* Process table design task for a single component skeleton or preliminary
|
|
10
|
-
* data requests.
|
|
11
|
-
*
|
|
12
|
-
* Receives a component skeleton (namespace, filename, thinking, review,
|
|
13
|
-
* rationale already determined by DATABASE_GROUP phase) and fills in the
|
|
14
|
-
* tables field with complete table designs for that single component.
|
|
15
|
-
*
|
|
16
|
-
* This is NOT about creating or organizing multiple components. The component
|
|
17
|
-
* identity is fixed. This agent ONLY designs the tables that belong to the
|
|
18
|
-
* provided component skeleton.
|
|
19
|
-
*
|
|
20
|
-
* @param props Request containing either preliminary data request or complete
|
|
21
|
-
* table design
|
|
22
|
-
*/
|
|
8
|
+
/** Process table design task or retrieve preliminary data. */
|
|
23
9
|
process(props: IAutoBeDatabaseComponentApplication.IProps): void;
|
|
24
10
|
}
|
|
25
11
|
|
|
26
12
|
export namespace IAutoBeDatabaseComponentApplication {
|
|
27
13
|
export interface IProps {
|
|
28
14
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* Before requesting preliminary data or completing your task, reflect on
|
|
32
|
-
* your current state and explain your reasoning:
|
|
33
|
-
*
|
|
34
|
-
* For preliminary requests (getAnalysisSections,
|
|
35
|
-
* getPreviousAnalysisSections):
|
|
36
|
-
*
|
|
37
|
-
* - What critical information is missing that you don't already have?
|
|
38
|
-
* - Why do you need it specifically right now?
|
|
39
|
-
* - Be brief - state the gap, don't list everything you have.
|
|
40
|
-
*
|
|
41
|
-
* For completion (complete):
|
|
42
|
-
*
|
|
43
|
-
* - What key assets did you acquire?
|
|
44
|
-
* - What did you accomplish?
|
|
45
|
-
* - Why is it sufficient to complete?
|
|
46
|
-
* - Summarize - don't enumerate every single item.
|
|
47
|
-
*
|
|
48
|
-
* This reflection helps you avoid duplicate requests and premature
|
|
49
|
-
* completion.
|
|
15
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
16
|
+
* you accomplished (completion).
|
|
50
17
|
*/
|
|
51
18
|
thinking: string;
|
|
52
19
|
|
|
53
20
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* Determines which action to perform: preliminary data retrieval
|
|
57
|
-
* (getAnalysisSections, getPreviousAnalysisSections,
|
|
58
|
-
* getPreviousDatabaseSchemas) or final table design (complete). When
|
|
59
|
-
* preliminary returns empty array, that type is removed from the union,
|
|
60
|
-
* physically preventing repeated calls.
|
|
21
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
22
|
+
* union.
|
|
61
23
|
*/
|
|
62
24
|
request:
|
|
63
25
|
| IComplete
|
|
@@ -67,75 +29,27 @@ export namespace IAutoBeDatabaseComponentApplication {
|
|
|
67
29
|
}
|
|
68
30
|
|
|
69
31
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Takes a component skeleton (namespace, filename already determined by
|
|
73
|
-
* DATABASE_GROUP phase) and fills in the tables field by designing all
|
|
74
|
-
* necessary database tables for this single component.
|
|
75
|
-
*
|
|
76
|
-
* This is NOT about creating multiple components - the component identity is
|
|
77
|
-
* already fixed. This is ONLY about designing the tables that belong to this
|
|
78
|
-
* single component.
|
|
32
|
+
* Complete the database component by filling in table designs for the given
|
|
33
|
+
* skeleton.
|
|
79
34
|
*/
|
|
80
35
|
export interface IComplete {
|
|
81
|
-
/**
|
|
82
|
-
* Type discriminator for the request.
|
|
83
|
-
*
|
|
84
|
-
* Determines which action to perform: preliminary data retrieval or actual
|
|
85
|
-
* task execution. Value "complete" indicates this is the final task
|
|
86
|
-
* execution request.
|
|
87
|
-
*/
|
|
36
|
+
/** Type discriminator for completion request. */
|
|
88
37
|
type: "complete";
|
|
89
38
|
|
|
90
39
|
/**
|
|
91
|
-
* Analysis of the component's scope and table
|
|
92
|
-
*
|
|
93
|
-
* Documents the agent's understanding of this component's domain:
|
|
94
|
-
*
|
|
95
|
-
* - What is the component's business purpose (from the skeleton)?
|
|
96
|
-
* - What entities from the requirements belong to this component?
|
|
97
|
-
* - What relationships exist between these entities?
|
|
98
|
-
* - What normalization patterns were identified?
|
|
40
|
+
* Analysis of the component's scope, entities, relationships, and table
|
|
41
|
+
* requirements.
|
|
99
42
|
*/
|
|
100
43
|
analysis: string;
|
|
101
44
|
|
|
102
|
-
/**
|
|
103
|
-
* Rationale for the table design decisions.
|
|
104
|
-
*
|
|
105
|
-
* Explains why tables were designed this way:
|
|
106
|
-
*
|
|
107
|
-
* - Why was each table created?
|
|
108
|
-
* - Why were certain entities kept separate vs combined?
|
|
109
|
-
* - What normalization principles were applied?
|
|
110
|
-
* - How do the tables fulfill the component's rationale?
|
|
111
|
-
*/
|
|
45
|
+
/** Rationale for table design decisions and normalization choices. */
|
|
112
46
|
rationale: string;
|
|
113
47
|
|
|
114
48
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* Contains all database tables that belong to the component skeleton
|
|
118
|
-
* received as input. Each table design includes table name (snake_case,
|
|
119
|
-
* plural) and description explaining the table's purpose and contents.
|
|
120
|
-
*
|
|
121
|
-
* The AI agent must design tables based on:
|
|
122
|
-
*
|
|
123
|
-
* - The component's namespace and intended domain (from skeleton)
|
|
124
|
-
* - Business requirements from analysis sections
|
|
125
|
-
* - Previous database schemas for consistency
|
|
126
|
-
* - Normalization principles (3NF)
|
|
127
|
-
* - Relationship integrity
|
|
128
|
-
*
|
|
129
|
-
* CRITICAL CONSTRAINTS:
|
|
49
|
+
* Table designs for this single component (snake_case, plural names).
|
|
130
50
|
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* - Do NOT create multiple components or reorganize component boundaries
|
|
134
|
-
* - Do NOT include thinking, review, decision, or rationale - those are
|
|
135
|
-
* already in the skeleton
|
|
136
|
-
* - ALL tables generated here belong to THE SINGLE component skeleton
|
|
137
|
-
* provided
|
|
138
|
-
* - ONLY provide the tables array - nothing else
|
|
51
|
+
* Namespace and filename are already determined by the skeleton. All tables
|
|
52
|
+
* must belong to this component only.
|
|
139
53
|
*/
|
|
140
54
|
tables: AutoBeDatabaseComponentTableDesign[];
|
|
141
55
|
}
|
|
@@ -5,49 +5,21 @@ import { IAutoBePreliminaryGetPreviousAnalysisSections } from "../../common/stru
|
|
|
5
5
|
import { IAutoBePreliminaryGetPreviousDatabaseSchemas } from "../../common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas";
|
|
6
6
|
|
|
7
7
|
export interface IAutoBeDatabaseComponentReviewApplication {
|
|
8
|
-
/**
|
|
9
|
-
* Analyze requirements and review the component's table list.
|
|
10
|
-
*
|
|
11
|
-
* Your PRIMARY task is to deeply analyze user requirements and ensure
|
|
12
|
-
* complete table coverage for all features in this component's domain. Review
|
|
13
|
-
* existing tables and identify necessary modifications using create, update,
|
|
14
|
-
* or erase operations.
|
|
15
|
-
*
|
|
16
|
-
* ALWAYS fetch analysis sections first using `getAnalysisSections` to
|
|
17
|
-
* understand what features this component's domain needs to support, then
|
|
18
|
-
* systematically verify table coverage and apply corrections.
|
|
19
|
-
*
|
|
20
|
-
* @param props Request containing either preliminary data request or complete
|
|
21
|
-
* task with table revisions
|
|
22
|
-
*/
|
|
8
|
+
/** Process component review task or retrieve preliminary data. */
|
|
23
9
|
process(props: IAutoBeDatabaseComponentReviewApplication.IProps): void;
|
|
24
10
|
}
|
|
25
11
|
|
|
26
12
|
export namespace IAutoBeDatabaseComponentReviewApplication {
|
|
27
13
|
export interface IProps {
|
|
28
14
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* For preliminary requests (getAnalysisSections,
|
|
32
|
-
* getPreviousAnalysisSections, getPreviousDatabaseSchemas):
|
|
33
|
-
*
|
|
34
|
-
* - What requirements documents do you need to analyze this component?
|
|
35
|
-
* - Which features in this domain need to be understood?
|
|
36
|
-
*
|
|
37
|
-
* For completion (complete):
|
|
38
|
-
*
|
|
39
|
-
* - What requirements did you analyze?
|
|
40
|
-
* - How many revisions are you making and why?
|
|
41
|
-
* - Summarize the requirements-to-revisions mapping.
|
|
15
|
+
* Reasoning about your current state: what's missing (preliminary) or what
|
|
16
|
+
* you accomplished (completion).
|
|
42
17
|
*/
|
|
43
18
|
thinking: string;
|
|
44
19
|
|
|
45
20
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* Use preliminary requests (getAnalysisSections, etc.) to fetch
|
|
49
|
-
* requirements documents. Use complete to submit table revisions after
|
|
50
|
-
* thorough requirements analysis.
|
|
21
|
+
* Action to perform. Exhausted preliminary types are removed from the
|
|
22
|
+
* union.
|
|
51
23
|
*/
|
|
52
24
|
request:
|
|
53
25
|
| IComplete
|
|
@@ -62,89 +34,24 @@ export namespace IAutoBeDatabaseComponentReviewApplication {
|
|
|
62
34
|
type: "complete";
|
|
63
35
|
|
|
64
36
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* Document how you analyzed requirements and mapped them to table
|
|
68
|
-
* modifications:
|
|
69
|
-
*
|
|
70
|
-
* - What features does this domain support?
|
|
71
|
-
* - What data storage needs does each feature have?
|
|
72
|
-
* - What tables are missing to fulfill these requirements?
|
|
73
|
-
* - What existing tables need renaming or removal?
|
|
74
|
-
*
|
|
75
|
-
* Be specific - reference actual requirements and explain the
|
|
76
|
-
* requirements-to-revisions mapping.
|
|
37
|
+
* How requirements map to proposed table modifications, identifying
|
|
38
|
+
* coverage gaps.
|
|
77
39
|
*/
|
|
78
40
|
review: string;
|
|
79
41
|
|
|
80
42
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* Include all create, update, and erase operations identified during
|
|
84
|
-
* review. Each operation must include a reason explaining why the change is
|
|
85
|
-
* necessary.
|
|
86
|
-
*
|
|
87
|
-
* ## Operation Types:
|
|
88
|
-
*
|
|
89
|
-
* ### Create - Add missing tables
|
|
43
|
+
* Table revision operations (create/update/erase). Each must include a
|
|
44
|
+
* reason.
|
|
90
45
|
*
|
|
91
|
-
*
|
|
46
|
+
* Constraints:
|
|
92
47
|
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* "table": "order_cancellations",
|
|
98
|
-
* "description": "Stores cancellation records with reasons and timestamps"
|
|
99
|
-
* }
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
* ### Update - Rename tables
|
|
103
|
-
*
|
|
104
|
-
* Use when a table has naming convention issues.
|
|
105
|
-
*
|
|
106
|
-
* ```typescript
|
|
107
|
-
* {
|
|
108
|
-
* "type": "update",
|
|
109
|
-
* "reason": "Table name violates snake_case convention",
|
|
110
|
-
* "original": "orderCancel",
|
|
111
|
-
* "updated": "order_cancellations",
|
|
112
|
-
* "description": "Stores cancellation records with reasons and timestamps"
|
|
113
|
-
* }
|
|
114
|
-
* ```
|
|
115
|
-
*
|
|
116
|
-
* ### Erase - Remove tables
|
|
117
|
-
*
|
|
118
|
-
* Use when a table belongs to another domain or is unnecessary.
|
|
119
|
-
*
|
|
120
|
-
* ```typescript
|
|
121
|
-
* {
|
|
122
|
-
* "type": "erase",
|
|
123
|
-
* "reason": "Table belongs to Actors component, not Orders",
|
|
124
|
-
* "table": "shopping_customers"
|
|
125
|
-
* }
|
|
126
|
-
* ```
|
|
127
|
-
*
|
|
128
|
-
* ## Constraints:
|
|
129
|
-
*
|
|
130
|
-
* - Only CREATE tables that CLEARLY belong to THIS component's domain
|
|
131
|
-
* - If uncertain about domain ownership → DO NOT CREATE
|
|
132
|
-
* - Each operation must have a clear, requirement-based reason
|
|
48
|
+
* - Only CREATE tables that clearly belong to THIS component's domain
|
|
49
|
+
* - CREATE/UPDATE names are validated against other components (duplicates
|
|
50
|
+
* fail)
|
|
51
|
+
* - Revises only affect the target component
|
|
133
52
|
* - Empty array is valid if no modifications are needed
|
|
134
53
|
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
* - CREATE/UPDATE table names are checked against "Tables in Other
|
|
138
|
-
* Components"
|
|
139
|
-
* - If the table name already exists in another component → validation FAILS
|
|
140
|
-
* - Always check "Tables in Other Components" before CREATE/UPDATE operations
|
|
141
|
-
* - Your revises only affect Target Component, never other components' tables
|
|
142
|
-
*
|
|
143
|
-
* ## Naming Conventions:
|
|
144
|
-
*
|
|
145
|
-
* - Snake case: `user_profiles` not `userProfiles`
|
|
146
|
-
* - Plural form: `users` not `user`
|
|
147
|
-
* - Domain prefix: `shopping_customers`
|
|
54
|
+
* Naming: snake_case, plural, domain-prefixed.
|
|
148
55
|
*/
|
|
149
56
|
revises: AutoBeDatabaseComponentTableRevise[];
|
|
150
57
|
}
|