@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
|
@@ -106,7 +106,7 @@ function process(ctx, props) {
|
|
|
106
106
|
properties: {
|
|
107
107
|
thinking: {
|
|
108
108
|
type: "string",
|
|
109
|
-
description: "Think before you act.\n\
|
|
109
|
+
description: "Think before you act.\n\nFor preliminary requests: what schemas (database, DTO, operations) are\nmissing?\n\nFor completion: is this DTO collectable or non-collectable? What database\ntable does it map to (if collectable)?"
|
|
110
110
|
},
|
|
111
111
|
request: {
|
|
112
112
|
oneOf: [
|
|
@@ -136,7 +136,7 @@ function process(ctx, props) {
|
|
|
136
136
|
complete: "#/components/schemas/IAutoBeRealizeCollectorPlanApplication.IComplete"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
|
-
description: "
|
|
139
|
+
description: "Action to perform. Exhausted preliminary types are removed from the\nunion, physically preventing repeated calls."
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
required: [
|
|
@@ -149,7 +149,7 @@ function process(ctx, props) {
|
|
|
149
149
|
properties: {
|
|
150
150
|
type: {
|
|
151
151
|
"const": "getAnalysisSections",
|
|
152
|
-
description: "Type discriminator
|
|
152
|
+
description: "Type discriminator."
|
|
153
153
|
},
|
|
154
154
|
sectionIds: {
|
|
155
155
|
type: "array",
|
|
@@ -159,21 +159,21 @@ function process(ctx, props) {
|
|
|
159
159
|
},
|
|
160
160
|
minItems: 1,
|
|
161
161
|
maxItems: 100,
|
|
162
|
-
description: "
|
|
162
|
+
description: "Section IDs to retrieve. DO NOT request same IDs already requested in\nprevious calls."
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
required: [
|
|
166
166
|
"type",
|
|
167
167
|
"sectionIds"
|
|
168
168
|
],
|
|
169
|
-
description: "Request to retrieve individual analysis sections by numeric ID
|
|
169
|
+
description: "Request to retrieve individual analysis sections by numeric ID."
|
|
170
170
|
},
|
|
171
171
|
IAutoBePreliminaryGetDatabaseSchemas: {
|
|
172
172
|
type: "object",
|
|
173
173
|
properties: {
|
|
174
174
|
type: {
|
|
175
175
|
"const": "getDatabaseSchemas",
|
|
176
|
-
description: "Type discriminator
|
|
176
|
+
description: "Type discriminator."
|
|
177
177
|
},
|
|
178
178
|
schemaNames: {
|
|
179
179
|
type: "array",
|
|
@@ -181,21 +181,21 @@ function process(ctx, props) {
|
|
|
181
181
|
type: "string"
|
|
182
182
|
},
|
|
183
183
|
minItems: 1,
|
|
184
|
-
description: "
|
|
184
|
+
description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls."
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
required: [
|
|
188
188
|
"type",
|
|
189
189
|
"schemaNames"
|
|
190
190
|
],
|
|
191
|
-
description: "Request to retrieve database schema definitions for context
|
|
191
|
+
description: "Request to retrieve database schema definitions for context."
|
|
192
192
|
},
|
|
193
193
|
IAutoBePreliminaryGetInterfaceOperations: {
|
|
194
194
|
type: "object",
|
|
195
195
|
properties: {
|
|
196
196
|
type: {
|
|
197
197
|
"const": "getInterfaceOperations",
|
|
198
|
-
description: "Type discriminator
|
|
198
|
+
description: "Type discriminator."
|
|
199
199
|
},
|
|
200
200
|
endpoints: {
|
|
201
201
|
type: "array",
|
|
@@ -203,14 +203,14 @@ function process(ctx, props) {
|
|
|
203
203
|
$ref: "#/components/schemas/AutoBeOpenApi.IEndpoint"
|
|
204
204
|
},
|
|
205
205
|
minItems: 1,
|
|
206
|
-
description: "
|
|
206
|
+
description: "API operation endpoints to retrieve. DO NOT request same endpoints already\nrequested in previous calls."
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
required: [
|
|
210
210
|
"type",
|
|
211
211
|
"endpoints"
|
|
212
212
|
],
|
|
213
|
-
description: "Request to retrieve existing interface operations for context
|
|
213
|
+
description: "Request to retrieve existing interface operations for context."
|
|
214
214
|
},
|
|
215
215
|
"AutoBeOpenApi.IEndpoint": {
|
|
216
216
|
type: "object",
|
|
@@ -218,7 +218,7 @@ function process(ctx, props) {
|
|
|
218
218
|
path: {
|
|
219
219
|
type: "string",
|
|
220
220
|
pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$",
|
|
221
|
-
description: "HTTP path of the API operation.\n\
|
|
221
|
+
description: "HTTP path of the API operation.\n\nMust start with `/`. Parameters use curly braces: `{paramName}`. Resource\nnames in camelCase. No quotes, spaces, role prefixes (`/admin/`), or API\nversion prefixes (`/api/v1/`).\n\nAllowed characters: letters, digits, `/`, `{`, `}`, `-`, `_`, `.`"
|
|
222
222
|
},
|
|
223
223
|
method: {
|
|
224
224
|
oneOf: [
|
|
@@ -238,7 +238,7 @@ function process(ctx, props) {
|
|
|
238
238
|
"const": "patch"
|
|
239
239
|
}
|
|
240
240
|
],
|
|
241
|
-
description: "HTTP method
|
|
241
|
+
description: "HTTP method (lowercase only).\n\nUse `patch` (not `get`) when a read operation needs a complex\n{@link requestBody}. `get` cannot have a request body."
|
|
242
242
|
}
|
|
243
243
|
},
|
|
244
244
|
required: [
|
|
@@ -252,7 +252,7 @@ function process(ctx, props) {
|
|
|
252
252
|
properties: {
|
|
253
253
|
type: {
|
|
254
254
|
"const": "getInterfaceSchemas",
|
|
255
|
-
description: "Type discriminator
|
|
255
|
+
description: "Type discriminator."
|
|
256
256
|
},
|
|
257
257
|
typeNames: {
|
|
258
258
|
type: "array",
|
|
@@ -260,14 +260,14 @@ function process(ctx, props) {
|
|
|
260
260
|
type: "string"
|
|
261
261
|
},
|
|
262
262
|
minItems: 1,
|
|
263
|
-
description: "
|
|
263
|
+
description: "Schema type names to retrieve. DO NOT request same names already requested\nin previous calls."
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
266
|
required: [
|
|
267
267
|
"type",
|
|
268
268
|
"typeNames"
|
|
269
269
|
],
|
|
270
|
-
description: "Request to retrieve OpenAPI schema type definitions for context
|
|
270
|
+
description: "Request to retrieve OpenAPI schema type definitions for context."
|
|
271
271
|
},
|
|
272
272
|
"IAutoBeRealizeCollectorPlanApplication.IComplete": {
|
|
273
273
|
type: "object",
|
|
@@ -281,25 +281,25 @@ function process(ctx, props) {
|
|
|
281
281
|
items: {
|
|
282
282
|
$ref: "#/components/schemas/IAutoBeRealizeCollectorPlanApplication.IPlan"
|
|
283
283
|
},
|
|
284
|
-
description: "
|
|
284
|
+
description: "Exactly ONE entry. databaseSchemaName non-null = collectable, null = no\ncollector needed."
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
required: [
|
|
288
288
|
"type",
|
|
289
289
|
"plans"
|
|
290
290
|
],
|
|
291
|
-
description: "
|
|
291
|
+
description: "Generates exactly ONE plan entry indicating collectable (has DB schema\nname) or not (null)."
|
|
292
292
|
},
|
|
293
293
|
"IAutoBeRealizeCollectorPlanApplication.IPlan": {
|
|
294
294
|
type: "object",
|
|
295
295
|
properties: {
|
|
296
296
|
dtoTypeName: {
|
|
297
297
|
type: "string",
|
|
298
|
-
description: "
|
|
298
|
+
description: "TypeScript interface type from the operation request body (e.g.,\n\"IShoppingSale.ICreate\")."
|
|
299
299
|
},
|
|
300
300
|
thinking: {
|
|
301
301
|
type: "string",
|
|
302
|
-
description: "
|
|
302
|
+
description: "Reasoning for this DTO's planning decision.\n\nCollectable: \"Collects IShoppingSale.ICreate to shopping_sales with\nnested category\".\n\nNon-collectable: \"IShoppingSale is read-only response DTO, not for\ncreation\"."
|
|
303
303
|
},
|
|
304
304
|
databaseSchemaName: {
|
|
305
305
|
oneOf: [
|
|
@@ -310,14 +310,14 @@ function process(ctx, props) {
|
|
|
310
310
|
type: "string"
|
|
311
311
|
}
|
|
312
312
|
],
|
|
313
|
-
description: "Database
|
|
313
|
+
description: "Database table name if collectable (e.g., \"shopping_sales\"), null if\nnon-collectable (read-only DTO, computed type)."
|
|
314
314
|
},
|
|
315
315
|
references: {
|
|
316
316
|
type: "array",
|
|
317
317
|
items: {
|
|
318
318
|
$ref: "#/components/schemas/AutoBeRealizeCollectorReference"
|
|
319
319
|
},
|
|
320
|
-
description: "Referenced entities from path parameters or auth context.\n\nEach reference contains
|
|
320
|
+
description: "Referenced entities from path parameters or auth context.\n\nEach reference contains `databaseSchemaName` and `source` (e.g., \"from\npath parameter {id}\", \"from authorized actor\"). Empty array means the\nCreate DTO contains all necessary references."
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
required: [
|
|
@@ -326,25 +326,25 @@ function process(ctx, props) {
|
|
|
326
326
|
"databaseSchemaName",
|
|
327
327
|
"references"
|
|
328
328
|
],
|
|
329
|
-
description: "
|
|
329
|
+
description: "Planning decision for one DTO."
|
|
330
330
|
},
|
|
331
331
|
AutoBeRealizeCollectorReference: {
|
|
332
332
|
type: "object",
|
|
333
333
|
properties: {
|
|
334
334
|
databaseSchemaName: {
|
|
335
335
|
type: "string",
|
|
336
|
-
description: "Prisma
|
|
336
|
+
description: "Prisma table name (e.g., \"shopping_sales\", \"shopping_customers\")."
|
|
337
337
|
},
|
|
338
338
|
source: {
|
|
339
339
|
type: "string",
|
|
340
|
-
description: "Source of this reference
|
|
340
|
+
description: "Source of this reference:\n\n- \"from path parameter {paramName}\" \u2014 URL path parameter\n- \"from authorized actor\" \u2014 logged-in user entity\n- \"from authorized session\" \u2014 current session entity"
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
required: [
|
|
344
344
|
"databaseSchemaName",
|
|
345
345
|
"source"
|
|
346
346
|
],
|
|
347
|
-
description: "
|
|
347
|
+
description: "External entity reference needed by a collector function.\n\nFK references not in the Create DTO come from path parameters or auth\ncontext. Each becomes an `IEntity` parameter in the collector's `collect()`\nsignature."
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
},
|
|
@@ -362,7 +362,7 @@ function process(ctx, props) {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
],
|
|
365
|
-
description: "
|
|
365
|
+
description: "Analyzes the given DTO type and generates a plan entry determining whether\na collector is needed. Returns exactly ONE plan entry."
|
|
366
366
|
}
|
|
367
367
|
]
|
|
368
368
|
},
|
|
@@ -711,11 +711,11 @@ function createController(props) {
|
|
|
711
711
|
type: "object",
|
|
712
712
|
properties: {
|
|
713
713
|
thinking: {
|
|
714
|
-
description: "Think before you act.\n\
|
|
714
|
+
description: "Think before you act.\n\nFor preliminary requests: what schemas (database, DTO, operations) are\nmissing?\n\nFor completion: is this DTO collectable or non-collectable? What database\ntable does it map to (if collectable)?",
|
|
715
715
|
type: "string"
|
|
716
716
|
},
|
|
717
717
|
request: {
|
|
718
|
-
description: "
|
|
718
|
+
description: "Action to perform. Exhausted preliminary types are removed from the\nunion, physically preventing repeated calls.",
|
|
719
719
|
anyOf: [
|
|
720
720
|
{
|
|
721
721
|
$ref: "#/$defs/IAutoBePreliminaryGetAnalysisSections"
|
|
@@ -752,18 +752,18 @@ function createController(props) {
|
|
|
752
752
|
additionalProperties: false,
|
|
753
753
|
$defs: {
|
|
754
754
|
IAutoBePreliminaryGetAnalysisSections: {
|
|
755
|
-
description: "Request to retrieve individual analysis sections by numeric ID
|
|
755
|
+
description: "Request to retrieve individual analysis sections by numeric ID.",
|
|
756
756
|
type: "object",
|
|
757
757
|
properties: {
|
|
758
758
|
type: {
|
|
759
|
-
description: "Type discriminator
|
|
759
|
+
description: "Type discriminator.",
|
|
760
760
|
type: "string",
|
|
761
761
|
"enum": [
|
|
762
762
|
"getAnalysisSections"
|
|
763
763
|
]
|
|
764
764
|
},
|
|
765
765
|
sectionIds: {
|
|
766
|
-
description: "
|
|
766
|
+
description: "Section IDs to retrieve. DO NOT request same IDs already requested in\nprevious calls.",
|
|
767
767
|
type: "array",
|
|
768
768
|
items: {
|
|
769
769
|
type: "integer",
|
|
@@ -779,18 +779,18 @@ function createController(props) {
|
|
|
779
779
|
]
|
|
780
780
|
},
|
|
781
781
|
IAutoBePreliminaryGetDatabaseSchemas: {
|
|
782
|
-
description: "Request to retrieve database schema definitions for context
|
|
782
|
+
description: "Request to retrieve database schema definitions for context.",
|
|
783
783
|
type: "object",
|
|
784
784
|
properties: {
|
|
785
785
|
type: {
|
|
786
|
-
description: "Type discriminator
|
|
786
|
+
description: "Type discriminator.",
|
|
787
787
|
type: "string",
|
|
788
788
|
"enum": [
|
|
789
789
|
"getDatabaseSchemas"
|
|
790
790
|
]
|
|
791
791
|
},
|
|
792
792
|
schemaNames: {
|
|
793
|
-
description: "
|
|
793
|
+
description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls.",
|
|
794
794
|
type: "array",
|
|
795
795
|
items: {
|
|
796
796
|
type: "string"
|
|
@@ -804,18 +804,18 @@ function createController(props) {
|
|
|
804
804
|
]
|
|
805
805
|
},
|
|
806
806
|
IAutoBePreliminaryGetInterfaceOperations: {
|
|
807
|
-
description: "Request to retrieve existing interface operations for context
|
|
807
|
+
description: "Request to retrieve existing interface operations for context.",
|
|
808
808
|
type: "object",
|
|
809
809
|
properties: {
|
|
810
810
|
type: {
|
|
811
|
-
description: "Type discriminator
|
|
811
|
+
description: "Type discriminator.",
|
|
812
812
|
type: "string",
|
|
813
813
|
"enum": [
|
|
814
814
|
"getInterfaceOperations"
|
|
815
815
|
]
|
|
816
816
|
},
|
|
817
817
|
endpoints: {
|
|
818
|
-
description: "
|
|
818
|
+
description: "API operation endpoints to retrieve. DO NOT request same endpoints already\nrequested in previous calls.",
|
|
819
819
|
type: "array",
|
|
820
820
|
items: {
|
|
821
821
|
$ref: "#/$defs/AutoBeOpenApi.IEndpoint"
|
|
@@ -833,12 +833,12 @@ function createController(props) {
|
|
|
833
833
|
type: "object",
|
|
834
834
|
properties: {
|
|
835
835
|
path: {
|
|
836
|
-
description: "HTTP path of the API operation.\n\
|
|
836
|
+
description: "HTTP path of the API operation.\n\nMust start with `/`. Parameters use curly braces: `{paramName}`. Resource\nnames in camelCase. No quotes, spaces, role prefixes (`/admin/`), or API\nversion prefixes (`/api/v1/`).\n\nAllowed characters: letters, digits, `/`, `{`, `}`, `-`, `_`, `.`",
|
|
837
837
|
type: "string",
|
|
838
838
|
pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
|
|
839
839
|
},
|
|
840
840
|
method: {
|
|
841
|
-
description: "HTTP method
|
|
841
|
+
description: "HTTP method (lowercase only).\n\nUse `patch` (not `get`) when a read operation needs a complex\n{@link requestBody}. `get` cannot have a request body.",
|
|
842
842
|
type: "string",
|
|
843
843
|
"enum": [
|
|
844
844
|
"get",
|
|
@@ -855,18 +855,18 @@ function createController(props) {
|
|
|
855
855
|
]
|
|
856
856
|
},
|
|
857
857
|
IAutoBePreliminaryGetInterfaceSchemas: {
|
|
858
|
-
description: "Request to retrieve OpenAPI schema type definitions for context
|
|
858
|
+
description: "Request to retrieve OpenAPI schema type definitions for context.",
|
|
859
859
|
type: "object",
|
|
860
860
|
properties: {
|
|
861
861
|
type: {
|
|
862
|
-
description: "Type discriminator
|
|
862
|
+
description: "Type discriminator.",
|
|
863
863
|
type: "string",
|
|
864
864
|
"enum": [
|
|
865
865
|
"getInterfaceSchemas"
|
|
866
866
|
]
|
|
867
867
|
},
|
|
868
868
|
typeNames: {
|
|
869
|
-
description: "
|
|
869
|
+
description: "Schema type names to retrieve. DO NOT request same names already requested\nin previous calls.",
|
|
870
870
|
type: "array",
|
|
871
871
|
items: {
|
|
872
872
|
type: "string"
|
|
@@ -880,7 +880,7 @@ function createController(props) {
|
|
|
880
880
|
]
|
|
881
881
|
},
|
|
882
882
|
"IAutoBeRealizeCollectorPlanApplication.IComplete": {
|
|
883
|
-
description: "
|
|
883
|
+
description: "Generates exactly ONE plan entry indicating collectable (has DB schema\nname) or not (null).",
|
|
884
884
|
type: "object",
|
|
885
885
|
properties: {
|
|
886
886
|
type: {
|
|
@@ -891,7 +891,7 @@ function createController(props) {
|
|
|
891
891
|
]
|
|
892
892
|
},
|
|
893
893
|
plans: {
|
|
894
|
-
description: "
|
|
894
|
+
description: "Exactly ONE entry. databaseSchemaName non-null = collectable, null = no\ncollector needed.",
|
|
895
895
|
type: "array",
|
|
896
896
|
items: {
|
|
897
897
|
$ref: "#/$defs/IAutoBeRealizeCollectorPlanApplication.IPlan"
|
|
@@ -904,19 +904,19 @@ function createController(props) {
|
|
|
904
904
|
]
|
|
905
905
|
},
|
|
906
906
|
"IAutoBeRealizeCollectorPlanApplication.IPlan": {
|
|
907
|
-
description: "
|
|
907
|
+
description: "Planning decision for one DTO.",
|
|
908
908
|
type: "object",
|
|
909
909
|
properties: {
|
|
910
910
|
dtoTypeName: {
|
|
911
|
-
description: "
|
|
911
|
+
description: "TypeScript interface type from the operation request body (e.g.,\n\"IShoppingSale.ICreate\").",
|
|
912
912
|
type: "string"
|
|
913
913
|
},
|
|
914
914
|
thinking: {
|
|
915
|
-
description: "
|
|
915
|
+
description: "Reasoning for this DTO's planning decision.\n\nCollectable: \"Collects IShoppingSale.ICreate to shopping_sales with\nnested category\".\n\nNon-collectable: \"IShoppingSale is read-only response DTO, not for\ncreation\".",
|
|
916
916
|
type: "string"
|
|
917
917
|
},
|
|
918
918
|
databaseSchemaName: {
|
|
919
|
-
description: "Database
|
|
919
|
+
description: "Database table name if collectable (e.g., \"shopping_sales\"), null if\nnon-collectable (read-only DTO, computed type).",
|
|
920
920
|
anyOf: [
|
|
921
921
|
{
|
|
922
922
|
type: "null"
|
|
@@ -927,7 +927,7 @@ function createController(props) {
|
|
|
927
927
|
]
|
|
928
928
|
},
|
|
929
929
|
references: {
|
|
930
|
-
description: "Referenced entities from path parameters or auth context.\n\nEach reference contains
|
|
930
|
+
description: "Referenced entities from path parameters or auth context.\n\nEach reference contains `databaseSchemaName` and `source` (e.g., \"from\npath parameter {id}\", \"from authorized actor\"). Empty array means the\nCreate DTO contains all necessary references.",
|
|
931
931
|
type: "array",
|
|
932
932
|
items: {
|
|
933
933
|
$ref: "#/$defs/AutoBeRealizeCollectorReference"
|
|
@@ -942,15 +942,15 @@ function createController(props) {
|
|
|
942
942
|
]
|
|
943
943
|
},
|
|
944
944
|
AutoBeRealizeCollectorReference: {
|
|
945
|
-
description: "
|
|
945
|
+
description: "External entity reference needed by a collector function.\n\nFK references not in the Create DTO come from path parameters or auth\ncontext. Each becomes an `IEntity` parameter in the collector's `collect()`\nsignature.",
|
|
946
946
|
type: "object",
|
|
947
947
|
properties: {
|
|
948
948
|
databaseSchemaName: {
|
|
949
|
-
description: "Prisma
|
|
949
|
+
description: "Prisma table name (e.g., \"shopping_sales\", \"shopping_customers\").",
|
|
950
950
|
type: "string"
|
|
951
951
|
},
|
|
952
952
|
source: {
|
|
953
|
-
description: "Source of this reference
|
|
953
|
+
description: "Source of this reference:\n\n- \"from path parameter {paramName}\" \u2014 URL path parameter\n- \"from authorized actor\" \u2014 logged-in user entity\n- \"from authorized session\" \u2014 current session entity",
|
|
954
954
|
type: "string"
|
|
955
955
|
}
|
|
956
956
|
},
|
|
@@ -961,7 +961,7 @@ function createController(props) {
|
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
},
|
|
964
|
-
description: "
|
|
964
|
+
description: "Analyzes the given DTO type and generates a plan entry determining whether\na collector is needed. Returns exactly ONE plan entry.",
|
|
965
965
|
validate: (() => { const _io0 = input => "string" === typeof input.thinking && ("object" === typeof input.request && null !== input.request && _iu0(input.request)); const _io1 = input => "getAnalysisSections" === input.type && (Array.isArray(input.sectionIds) && (1 <= input.sectionIds.length && input.sectionIds.length <= 100 && input.sectionIds.every(elem => "number" === typeof elem && __typia_transform__isTypeUint32._isTypeUint32(elem)))); const _io2 = input => "getDatabaseSchemas" === input.type && (Array.isArray(input.schemaNames) && (1 <= input.schemaNames.length && input.schemaNames.every(elem => "string" === typeof elem))); const _io3 = input => "getInterfaceOperations" === input.type && (Array.isArray(input.endpoints) && (1 <= input.endpoints.length && input.endpoints.every(elem => "object" === typeof elem && null !== elem && _io4(elem)))); const _io4 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io5 = input => "getInterfaceSchemas" === input.type && (Array.isArray(input.typeNames) && (1 <= input.typeNames.length && input.typeNames.every(elem => "string" === typeof elem))); const _io6 = input => "complete" === input.type && (Array.isArray(input.plans) && input.plans.every(elem => "object" === typeof elem && null !== elem && _io7(elem))); const _io7 = input => "string" === typeof input.dtoTypeName && "string" === typeof input.thinking && (null === input.databaseSchemaName || "string" === typeof input.databaseSchemaName) && (Array.isArray(input.references) && input.references.every(elem => "object" === typeof elem && null !== elem && _io8(elem))); const _io8 = input => "string" === typeof input.databaseSchemaName && "string" === typeof input.source; const _iu0 = input => (() => {
|
|
966
966
|
if ("getAnalysisSections" === input.type)
|
|
967
967
|
return _io1(input);
|