@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
|
@@ -111,7 +111,7 @@ function process(ctx, props) {
|
|
|
111
111
|
properties: {
|
|
112
112
|
thinking: {
|
|
113
113
|
type: "string",
|
|
114
|
-
description: "Think before you act.\n\
|
|
114
|
+
description: "Think before you act.\n\nFor preliminary requests: what database schemas are missing and why?\n\nFor completion: what schemas did you acquire, what authentication\npatterns did you implement, why is it sufficient?"
|
|
115
115
|
},
|
|
116
116
|
request: {
|
|
117
117
|
oneOf: [
|
|
@@ -129,7 +129,7 @@ function process(ctx, props) {
|
|
|
129
129
|
complete: "#/components/schemas/IAutoBeRealizeAuthorizationWriteApplication.IComplete"
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
|
-
description: "
|
|
132
|
+
description: "Action to perform. Exhausted preliminary types are removed from the\nunion, physically preventing repeated calls."
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
required: [
|
|
@@ -142,7 +142,7 @@ function process(ctx, props) {
|
|
|
142
142
|
properties: {
|
|
143
143
|
type: {
|
|
144
144
|
"const": "getDatabaseSchemas",
|
|
145
|
-
description: "Type discriminator
|
|
145
|
+
description: "Type discriminator."
|
|
146
146
|
},
|
|
147
147
|
schemaNames: {
|
|
148
148
|
type: "array",
|
|
@@ -150,33 +150,33 @@ function process(ctx, props) {
|
|
|
150
150
|
type: "string"
|
|
151
151
|
},
|
|
152
152
|
minItems: 1,
|
|
153
|
-
description: "
|
|
153
|
+
description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls."
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
required: [
|
|
157
157
|
"type",
|
|
158
158
|
"schemaNames"
|
|
159
159
|
],
|
|
160
|
-
description: "Request to retrieve database schema definitions for context
|
|
160
|
+
description: "Request to retrieve database schema definitions for context."
|
|
161
161
|
},
|
|
162
162
|
"IAutoBeRealizeAuthorizationWriteApplication.IComplete": {
|
|
163
163
|
type: "object",
|
|
164
164
|
properties: {
|
|
165
165
|
type: {
|
|
166
166
|
"const": "complete",
|
|
167
|
-
description: "Type discriminator for
|
|
167
|
+
description: "Type discriminator for completion request."
|
|
168
168
|
},
|
|
169
169
|
provider: {
|
|
170
170
|
$ref: "#/components/schemas/IAutoBeRealizeAuthorizationWriteApplication.IProvider",
|
|
171
|
-
description: "Authentication Provider function
|
|
171
|
+
description: "Authentication Provider function (JWT verification, role validation, DB\nqueries)."
|
|
172
172
|
},
|
|
173
173
|
decorator: {
|
|
174
174
|
$ref: "#/components/schemas/IAutoBeRealizeAuthorizationWriteApplication.IDecorator",
|
|
175
|
-
description: "Authentication Decorator
|
|
175
|
+
description: "Authentication Decorator (NestJS parameter decorator injecting\nauthenticated user data)."
|
|
176
176
|
},
|
|
177
177
|
payload: {
|
|
178
178
|
$ref: "#/components/schemas/IAutoBeRealizeAuthorizationWriteApplication.IPayloadType",
|
|
179
|
-
description: "Authentication Payload Type
|
|
179
|
+
description: "Authentication Payload Type (TypeScript type for authenticated user data\nin Controller methods)."
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
required: [
|
|
@@ -185,7 +185,7 @@ function process(ctx, props) {
|
|
|
185
185
|
"decorator",
|
|
186
186
|
"payload"
|
|
187
187
|
],
|
|
188
|
-
description: "Request to generate authentication components
|
|
188
|
+
description: "Request to generate authentication components (provider, decorator,\npayload)."
|
|
189
189
|
},
|
|
190
190
|
"IAutoBeRealizeAuthorizationWriteApplication.IProvider": {
|
|
191
191
|
type: "object",
|
|
@@ -193,11 +193,11 @@ function process(ctx, props) {
|
|
|
193
193
|
name: {
|
|
194
194
|
type: "string",
|
|
195
195
|
pattern: "^[a-z][a-zA-Z0-9]*$",
|
|
196
|
-
description: "
|
|
196
|
+
description: "Provider function name in {role}Authorize format (e.g., adminAuthorize).\nMUST use camelCase."
|
|
197
197
|
},
|
|
198
198
|
content: {
|
|
199
199
|
type: "string",
|
|
200
|
-
description: "Complete TypeScript code
|
|
200
|
+
description: "Complete TypeScript code. MUST include: jwtAuthorize call, role type\ncheck, MyGlobal.prisma.{tableName} query,\nForbiddenException/UnauthorizedException handling."
|
|
201
201
|
}
|
|
202
202
|
},
|
|
203
203
|
required: [
|
|
@@ -211,11 +211,11 @@ function process(ctx, props) {
|
|
|
211
211
|
name: {
|
|
212
212
|
type: "string",
|
|
213
213
|
pattern: "^[A-Z][a-zA-Z0-9]*$",
|
|
214
|
-
description: "
|
|
214
|
+
description: "Decorator name in {Actor}Auth format (e.g., AdminAuth, UserAuth). MUST\nuse PascalCase."
|
|
215
215
|
},
|
|
216
216
|
content: {
|
|
217
217
|
type: "string",
|
|
218
|
-
description: "Complete TypeScript code
|
|
218
|
+
description: "Complete TypeScript code. MUST include: SwaggerCustomizer integration,\ncreateParamDecorator calling Provider, Singleton pattern via tstl."
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
221
|
required: [
|
|
@@ -229,11 +229,11 @@ function process(ctx, props) {
|
|
|
229
229
|
name: {
|
|
230
230
|
type: "string",
|
|
231
231
|
pattern: "^[A-Z][a-zA-Z0-9]*$",
|
|
232
|
-
description: "
|
|
232
|
+
description: "Payload type name in {Actor}Payload format (e.g., AdminPayload,\nUserPayload). MUST use PascalCase."
|
|
233
233
|
},
|
|
234
234
|
content: {
|
|
235
235
|
type: "string",
|
|
236
|
-
description: "Complete TypeScript code
|
|
236
|
+
description: "Complete TypeScript code. MUST include: id field with UUID validation,\ntype field as role discriminator, typia tags."
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
239
|
required: [
|
|
@@ -257,7 +257,7 @@ function process(ctx, props) {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
],
|
|
260
|
-
description: "Process authentication
|
|
260
|
+
description: "Process authentication generation task or preliminary data requests."
|
|
261
261
|
}
|
|
262
262
|
]
|
|
263
263
|
},
|
|
@@ -481,11 +481,11 @@ function createController(props) {
|
|
|
481
481
|
type: "object",
|
|
482
482
|
properties: {
|
|
483
483
|
thinking: {
|
|
484
|
-
description: "Think before you act.\n\
|
|
484
|
+
description: "Think before you act.\n\nFor preliminary requests: what database schemas are missing and why?\n\nFor completion: what schemas did you acquire, what authentication\npatterns did you implement, why is it sufficient?",
|
|
485
485
|
type: "string"
|
|
486
486
|
},
|
|
487
487
|
request: {
|
|
488
|
-
description: "
|
|
488
|
+
description: "Action to perform. Exhausted preliminary types are removed from the\nunion, physically preventing repeated calls.",
|
|
489
489
|
anyOf: [
|
|
490
490
|
{
|
|
491
491
|
$ref: "#/$defs/IAutoBePreliminaryGetDatabaseSchemas"
|
|
@@ -510,18 +510,18 @@ function createController(props) {
|
|
|
510
510
|
additionalProperties: false,
|
|
511
511
|
$defs: {
|
|
512
512
|
IAutoBePreliminaryGetDatabaseSchemas: {
|
|
513
|
-
description: "Request to retrieve database schema definitions for context
|
|
513
|
+
description: "Request to retrieve database schema definitions for context.",
|
|
514
514
|
type: "object",
|
|
515
515
|
properties: {
|
|
516
516
|
type: {
|
|
517
|
-
description: "Type discriminator
|
|
517
|
+
description: "Type discriminator.",
|
|
518
518
|
type: "string",
|
|
519
519
|
"enum": [
|
|
520
520
|
"getDatabaseSchemas"
|
|
521
521
|
]
|
|
522
522
|
},
|
|
523
523
|
schemaNames: {
|
|
524
|
-
description: "
|
|
524
|
+
description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls.",
|
|
525
525
|
type: "array",
|
|
526
526
|
items: {
|
|
527
527
|
type: "string"
|
|
@@ -535,26 +535,26 @@ function createController(props) {
|
|
|
535
535
|
]
|
|
536
536
|
},
|
|
537
537
|
"IAutoBeRealizeAuthorizationWriteApplication.IComplete": {
|
|
538
|
-
description: "Request to generate authentication components
|
|
538
|
+
description: "Request to generate authentication components (provider, decorator,\npayload).",
|
|
539
539
|
type: "object",
|
|
540
540
|
properties: {
|
|
541
541
|
type: {
|
|
542
|
-
description: "Type discriminator for
|
|
542
|
+
description: "Type discriminator for completion request.",
|
|
543
543
|
type: "string",
|
|
544
544
|
"enum": [
|
|
545
545
|
"complete"
|
|
546
546
|
]
|
|
547
547
|
},
|
|
548
548
|
provider: {
|
|
549
|
-
description: "Authentication Provider function
|
|
549
|
+
description: "Authentication Provider function (JWT verification, role validation, DB\nqueries).",
|
|
550
550
|
$ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IProvider"
|
|
551
551
|
},
|
|
552
552
|
decorator: {
|
|
553
|
-
description: "Authentication Decorator
|
|
553
|
+
description: "Authentication Decorator (NestJS parameter decorator injecting\nauthenticated user data).",
|
|
554
554
|
$ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IDecorator"
|
|
555
555
|
},
|
|
556
556
|
payload: {
|
|
557
|
-
description: "Authentication Payload Type
|
|
557
|
+
description: "Authentication Payload Type (TypeScript type for authenticated user data\nin Controller methods).",
|
|
558
558
|
$ref: "#/$defs/IAutoBeRealizeAuthorizationWriteApplication.IPayloadType"
|
|
559
559
|
}
|
|
560
560
|
},
|
|
@@ -569,12 +569,12 @@ function createController(props) {
|
|
|
569
569
|
type: "object",
|
|
570
570
|
properties: {
|
|
571
571
|
name: {
|
|
572
|
-
description: "
|
|
572
|
+
description: "Provider function name in {role}Authorize format (e.g., adminAuthorize).\nMUST use camelCase.",
|
|
573
573
|
type: "string",
|
|
574
574
|
pattern: "^[a-z][a-zA-Z0-9]*$"
|
|
575
575
|
},
|
|
576
576
|
content: {
|
|
577
|
-
description: "Complete TypeScript code
|
|
577
|
+
description: "Complete TypeScript code. MUST include: jwtAuthorize call, role type\ncheck, MyGlobal.prisma.{tableName} query,\nForbiddenException/UnauthorizedException handling.",
|
|
578
578
|
type: "string"
|
|
579
579
|
}
|
|
580
580
|
},
|
|
@@ -587,12 +587,12 @@ function createController(props) {
|
|
|
587
587
|
type: "object",
|
|
588
588
|
properties: {
|
|
589
589
|
name: {
|
|
590
|
-
description: "
|
|
590
|
+
description: "Decorator name in {Actor}Auth format (e.g., AdminAuth, UserAuth). MUST\nuse PascalCase.",
|
|
591
591
|
type: "string",
|
|
592
592
|
pattern: "^[A-Z][a-zA-Z0-9]*$"
|
|
593
593
|
},
|
|
594
594
|
content: {
|
|
595
|
-
description: "Complete TypeScript code
|
|
595
|
+
description: "Complete TypeScript code. MUST include: SwaggerCustomizer integration,\ncreateParamDecorator calling Provider, Singleton pattern via tstl.",
|
|
596
596
|
type: "string"
|
|
597
597
|
}
|
|
598
598
|
},
|
|
@@ -605,12 +605,12 @@ function createController(props) {
|
|
|
605
605
|
type: "object",
|
|
606
606
|
properties: {
|
|
607
607
|
name: {
|
|
608
|
-
description: "
|
|
608
|
+
description: "Payload type name in {Actor}Payload format (e.g., AdminPayload,\nUserPayload). MUST use PascalCase.",
|
|
609
609
|
type: "string",
|
|
610
610
|
pattern: "^[A-Z][a-zA-Z0-9]*$"
|
|
611
611
|
},
|
|
612
612
|
content: {
|
|
613
|
-
description: "Complete TypeScript code
|
|
613
|
+
description: "Complete TypeScript code. MUST include: id field with UUID validation,\ntype field as role discriminator, typia tags.",
|
|
614
614
|
type: "string"
|
|
615
615
|
}
|
|
616
616
|
},
|
|
@@ -621,7 +621,7 @@ function createController(props) {
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
},
|
|
624
|
-
description: "Process authentication
|
|
624
|
+
description: "Process authentication generation task or preliminary data requests.",
|
|
625
625
|
validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getDatabaseSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io2 = input => "complete" === input.type && ("object" === typeof input.provider && null !== input.provider && _io3(input.provider)) && ("object" === typeof input.decorator && null !== input.decorator && _io4(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io5(input.payload)); const _io3 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io4 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _io5 = input => "string" === typeof input.name && RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content; const _iu0 = input => (() => {
|
|
626
626
|
if ("getDatabaseSchemas" === input.type)
|
|
627
627
|
return _io1(input);
|