@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
|
@@ -107,7 +107,7 @@ function process(ctx, props) {
|
|
|
107
107
|
properties: {
|
|
108
108
|
thinking: {
|
|
109
109
|
type: "string",
|
|
110
|
-
description: "Think before you act.\n\
|
|
110
|
+
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 patterns did you\nimplement, and why is it sufficient? Summarize \u2014 don't enumerate every\nfield.\n\nNote: All DTO type information is available transitively from the plan's\nDTO type names. You only need to request database schemas."
|
|
111
111
|
},
|
|
112
112
|
request: {
|
|
113
113
|
oneOf: [
|
|
@@ -125,7 +125,7 @@ function process(ctx, props) {
|
|
|
125
125
|
complete: "#/components/schemas/IAutoBeRealizeCollectorWriteApplication.IComplete"
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
|
-
description: "
|
|
128
|
+
description: "Action to perform. Exhausted preliminary types are removed from the\nunion, physically preventing repeated calls."
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
required: [
|
|
@@ -138,7 +138,7 @@ function process(ctx, props) {
|
|
|
138
138
|
properties: {
|
|
139
139
|
type: {
|
|
140
140
|
"const": "getDatabaseSchemas",
|
|
141
|
-
description: "Type discriminator
|
|
141
|
+
description: "Type discriminator."
|
|
142
142
|
},
|
|
143
143
|
schemaNames: {
|
|
144
144
|
type: "array",
|
|
@@ -146,14 +146,14 @@ function process(ctx, props) {
|
|
|
146
146
|
type: "string"
|
|
147
147
|
},
|
|
148
148
|
minItems: 1,
|
|
149
|
-
description: "
|
|
149
|
+
description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls."
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
required: [
|
|
153
153
|
"type",
|
|
154
154
|
"schemaNames"
|
|
155
155
|
],
|
|
156
|
-
description: "Request to retrieve database schema definitions for context
|
|
156
|
+
description: "Request to retrieve database schema definitions for context."
|
|
157
157
|
},
|
|
158
158
|
"IAutoBeRealizeCollectorWriteApplication.IComplete": {
|
|
159
159
|
type: "object",
|
|
@@ -164,22 +164,22 @@ function process(ctx, props) {
|
|
|
164
164
|
},
|
|
165
165
|
plan: {
|
|
166
166
|
type: "string",
|
|
167
|
-
description: "Collector implementation plan
|
|
167
|
+
description: "Collector implementation plan. MUST contain four sections:\n\n1. Database Schema Field Inventory \u2014 ALL fields with exact names from schema\n2. DTO Property Inventory \u2014 ALL properties with types\n3. Field-by-Field Mapping Strategy \u2014 explicit mapping for every field\n4. Edge Cases and Special Handling \u2014 nullable, arrays, conditionals\n\nThis forces you to READ the actual schema (not imagine it) and creates an\nexplicit specification that the draft must implement."
|
|
168
168
|
},
|
|
169
169
|
mappings: {
|
|
170
170
|
type: "array",
|
|
171
171
|
items: {
|
|
172
172
|
$ref: "#/components/schemas/AutoBeRealizeCollectorMapping"
|
|
173
173
|
},
|
|
174
|
-
description: "Field-by-field mapping
|
|
174
|
+
description: "Field-by-field mapping for complete database coverage.\n\nMUST include EVERY field and relation from the database schema \u2014 no\nexceptions. Each mapping specifies:\n\n- `member`: Exact Prisma field/relation name \u2014 read from schema, NOT from\n DTO property names or FK column names\n- `kind`: scalar, belongsTo, hasOne, or hasMany\n- `nullable`: true/false for scalar/belongsTo, null for hasMany/hasOne\n- `how`: How to obtain/generate the value for that field\n\nThe `kind` property forces explicit classification BEFORE deciding how to\nhandle it, preventing errors like treating belongsTo as scalar.\n\nMissing even a single field will cause validation failure."
|
|
175
175
|
},
|
|
176
176
|
draft: {
|
|
177
177
|
type: "string",
|
|
178
|
-
description: "
|
|
178
|
+
description: "Complete implementation following plan's mapping table. EVERY field from\nplan Section 3 MUST appear. Implement:\n\n- Namespace with collect() function\n- All field mappings (direct, connect, nested create)\n- Neighbor collector reuse (NEVER inline when collector exists)\n- UUID generation with v4(), proper Prisma CreateInput types"
|
|
179
179
|
},
|
|
180
180
|
revise: {
|
|
181
181
|
$ref: "#/components/schemas/IAutoBeRealizeCollectorWriteApplication.IReviseProps",
|
|
182
|
-
description: "
|
|
182
|
+
description: "Reviews draft and produces final code."
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
required: [
|
|
@@ -189,14 +189,14 @@ function process(ctx, props) {
|
|
|
189
189
|
"draft",
|
|
190
190
|
"revise"
|
|
191
191
|
],
|
|
192
|
-
description: "
|
|
192
|
+
description: "Generate collector module via plan/draft/revise."
|
|
193
193
|
},
|
|
194
194
|
AutoBeRealizeCollectorMapping: {
|
|
195
195
|
type: "object",
|
|
196
196
|
properties: {
|
|
197
197
|
member: {
|
|
198
198
|
type: "string",
|
|
199
|
-
description: "Exact field or relation name from Prisma schema
|
|
199
|
+
description: "Exact field or relation name from Prisma schema (case-sensitive).\n\n**Examples**:\n\n```typescript\n// Scalar fields\n{ member: \"id\", kind: \"scalar\", nullable: false, how: \"Generate with v4()\" }\n{ member: \"email\", kind: \"scalar\", nullable: false, how: \"From props.body.email\" }\n{ member: \"created_at\", kind: \"scalar\", nullable: false, how: \"Default to new Date()\" }\n{ member: \"description\", kind: \"scalar\", nullable: true, how: \"From props.body.description ?? null\" }\n\n// BelongsTo relations \u2014 use Prisma RELATION name, NOT FK column name\n{ member: \"customer\", kind: \"belongsTo\", nullable: false, how: \"Connect using props.customer.id\" }\n{ member: \"parent\", kind: \"belongsTo\", nullable: true, how: \"Undefined (nullable FK)\" }\n\n// HasMany relations\n{ member: \"tags\", kind: \"hasMany\", nullable: null, how: \"Nested create with TagCollector\" }\n{ member: \"comments\", kind: \"hasMany\", nullable: null, how: \"Not needed (optional has-many)\" }\n```\n\nDO NOT use FK column names (e.g., \"customer_id\" is WRONG \u2014 use \"customer\").\nInclude ALL members even if unused in this collector."
|
|
200
200
|
},
|
|
201
201
|
kind: {
|
|
202
202
|
oneOf: [
|
|
@@ -213,7 +213,7 @@ function process(ctx, props) {
|
|
|
213
213
|
"const": "hasMany"
|
|
214
214
|
}
|
|
215
215
|
],
|
|
216
|
-
description: "
|
|
216
|
+
description: "Kind of Prisma schema member.\n\n- `\"scalar\"`: Regular column \u2192 direct value assignment\n- `\"belongsTo\"`: FK relation \u2192 `{ connect: { id } }`\n- `\"hasOne\"`: 1:1 relation this side owns\n- `\"hasMany\"`: 1:N or M:N \u2192 `{ create: [...] }` or omit\n\nThe kind forces explicit classification BEFORE deciding how to handle it,\npreventing confusion like treating belongsTo relations as scalar fields."
|
|
217
217
|
},
|
|
218
218
|
nullable: {
|
|
219
219
|
oneOf: [
|
|
@@ -224,11 +224,11 @@ function process(ctx, props) {
|
|
|
224
224
|
type: "boolean"
|
|
225
225
|
}
|
|
226
226
|
],
|
|
227
|
-
description: "Whether
|
|
227
|
+
description: "Whether nullable in Prisma schema.\n\n- `false`: Non-nullable \u2014 must provide value\n- `true`: Nullable \u2014 use `?? null` for scalar, `undefined` for belongsTo\n- `null`: Not applicable (hasMany/hasOne)"
|
|
228
228
|
},
|
|
229
229
|
how: {
|
|
230
230
|
type: "string",
|
|
231
|
-
description: "Brief
|
|
231
|
+
description: "Brief strategy for obtaining this field's value (NOT code).\n\nWrite phase: \"Generate with v4()\", \"From props.body.email\", \"Connect using\nprops.customer.id\", \"Nested create with TagCollector\".\n\nCorrect phase: \"No change needed\", \"Fix: Wrong name 'x' \u2192 'y'\".\n\nEven if correct or unused, you MUST include it. This ensures complete\nschema coverage."
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
required: [
|
|
@@ -237,14 +237,14 @@ function process(ctx, props) {
|
|
|
237
237
|
"nullable",
|
|
238
238
|
"how"
|
|
239
239
|
],
|
|
240
|
-
description: "
|
|
240
|
+
description: "Field/relation mapping for Prisma CreateInput generation.\n\nDocuments handling strategy for ONE Prisma schema member. EVERY field and\nrelation must be listed \u2014 the validator rejects incomplete mappings."
|
|
241
241
|
},
|
|
242
242
|
"IAutoBeRealizeCollectorWriteApplication.IReviseProps": {
|
|
243
243
|
type: "object",
|
|
244
244
|
properties: {
|
|
245
245
|
review: {
|
|
246
246
|
type: "string",
|
|
247
|
-
description: "
|
|
247
|
+
description: "MUST systematically verify four checklists:\n\n1. Schema Fidelity \u2014 cross-check EVERY field name against plan Section 1\n2. Plan Adherence \u2014 verify EVERY mapping from Section 3 is implemented\n3. System Rules \u2014 neighbor reuse, props structure, satisfies type\n4. Type Safety \u2014 compilation check, nullable handling, async/await\n\nIdentify issues with line numbers. This catches hallucinated fields,\nmissing mappings, and rule violations."
|
|
248
248
|
},
|
|
249
249
|
final: {
|
|
250
250
|
oneOf: [
|
|
@@ -255,7 +255,7 @@ function process(ctx, props) {
|
|
|
255
255
|
type: "string"
|
|
256
256
|
}
|
|
257
257
|
],
|
|
258
|
-
description: "Final collector code with all review improvements applied
|
|
258
|
+
description: "Final collector code with all review improvements applied, or null if\ndraft needs no changes."
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
required: [
|
|
@@ -279,7 +279,7 @@ function process(ctx, props) {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
],
|
|
282
|
-
description: "Process collector generation task or preliminary data requests
|
|
282
|
+
description: "Process collector generation task or preliminary data requests."
|
|
283
283
|
}
|
|
284
284
|
]
|
|
285
285
|
},
|
|
@@ -507,11 +507,11 @@ function createController(ctx, props) {
|
|
|
507
507
|
type: "object",
|
|
508
508
|
properties: {
|
|
509
509
|
thinking: {
|
|
510
|
-
description: "Think before you act.\n\
|
|
510
|
+
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 patterns did you\nimplement, and why is it sufficient? Summarize \u2014 don't enumerate every\nfield.\n\nNote: All DTO type information is available transitively from the plan's\nDTO type names. You only need to request database schemas.",
|
|
511
511
|
type: "string"
|
|
512
512
|
},
|
|
513
513
|
request: {
|
|
514
|
-
description: "
|
|
514
|
+
description: "Action to perform. Exhausted preliminary types are removed from the\nunion, physically preventing repeated calls.",
|
|
515
515
|
anyOf: [
|
|
516
516
|
{
|
|
517
517
|
$ref: "#/$defs/IAutoBePreliminaryGetDatabaseSchemas"
|
|
@@ -536,18 +536,18 @@ function createController(ctx, props) {
|
|
|
536
536
|
additionalProperties: false,
|
|
537
537
|
$defs: {
|
|
538
538
|
IAutoBePreliminaryGetDatabaseSchemas: {
|
|
539
|
-
description: "Request to retrieve database schema definitions for context
|
|
539
|
+
description: "Request to retrieve database schema definitions for context.",
|
|
540
540
|
type: "object",
|
|
541
541
|
properties: {
|
|
542
542
|
type: {
|
|
543
|
-
description: "Type discriminator
|
|
543
|
+
description: "Type discriminator.",
|
|
544
544
|
type: "string",
|
|
545
545
|
"enum": [
|
|
546
546
|
"getDatabaseSchemas"
|
|
547
547
|
]
|
|
548
548
|
},
|
|
549
549
|
schemaNames: {
|
|
550
|
-
description: "
|
|
550
|
+
description: "Database table names to retrieve. DO NOT request same names already\nrequested in previous calls.",
|
|
551
551
|
type: "array",
|
|
552
552
|
items: {
|
|
553
553
|
type: "string"
|
|
@@ -561,7 +561,7 @@ function createController(ctx, props) {
|
|
|
561
561
|
]
|
|
562
562
|
},
|
|
563
563
|
"IAutoBeRealizeCollectorWriteApplication.IComplete": {
|
|
564
|
-
description: "
|
|
564
|
+
description: "Generate collector module via plan/draft/revise.",
|
|
565
565
|
type: "object",
|
|
566
566
|
properties: {
|
|
567
567
|
type: {
|
|
@@ -572,22 +572,22 @@ function createController(ctx, props) {
|
|
|
572
572
|
]
|
|
573
573
|
},
|
|
574
574
|
plan: {
|
|
575
|
-
description: "Collector implementation plan
|
|
575
|
+
description: "Collector implementation plan. MUST contain four sections:\n\n1. Database Schema Field Inventory \u2014 ALL fields with exact names from schema\n2. DTO Property Inventory \u2014 ALL properties with types\n3. Field-by-Field Mapping Strategy \u2014 explicit mapping for every field\n4. Edge Cases and Special Handling \u2014 nullable, arrays, conditionals\n\nThis forces you to READ the actual schema (not imagine it) and creates an\nexplicit specification that the draft must implement.",
|
|
576
576
|
type: "string"
|
|
577
577
|
},
|
|
578
578
|
mappings: {
|
|
579
|
-
description: "Field-by-field mapping
|
|
579
|
+
description: "Field-by-field mapping for complete database coverage.\n\nMUST include EVERY field and relation from the database schema \u2014 no\nexceptions. Each mapping specifies:\n\n- `member`: Exact Prisma field/relation name \u2014 read from schema, NOT from\n DTO property names or FK column names\n- `kind`: scalar, belongsTo, hasOne, or hasMany\n- `nullable`: true/false for scalar/belongsTo, null for hasMany/hasOne\n- `how`: How to obtain/generate the value for that field\n\nThe `kind` property forces explicit classification BEFORE deciding how to\nhandle it, preventing errors like treating belongsTo as scalar.\n\nMissing even a single field will cause validation failure.",
|
|
580
580
|
type: "array",
|
|
581
581
|
items: {
|
|
582
582
|
$ref: "#/$defs/AutoBeRealizeCollectorMapping"
|
|
583
583
|
}
|
|
584
584
|
},
|
|
585
585
|
draft: {
|
|
586
|
-
description: "
|
|
586
|
+
description: "Complete implementation following plan's mapping table. EVERY field from\nplan Section 3 MUST appear. Implement:\n\n- Namespace with collect() function\n- All field mappings (direct, connect, nested create)\n- Neighbor collector reuse (NEVER inline when collector exists)\n- UUID generation with v4(), proper Prisma CreateInput types",
|
|
587
587
|
type: "string"
|
|
588
588
|
},
|
|
589
589
|
revise: {
|
|
590
|
-
description: "
|
|
590
|
+
description: "Reviews draft and produces final code.",
|
|
591
591
|
$ref: "#/$defs/IAutoBeRealizeCollectorWriteApplication.IReviseProps"
|
|
592
592
|
}
|
|
593
593
|
},
|
|
@@ -600,15 +600,15 @@ function createController(ctx, props) {
|
|
|
600
600
|
]
|
|
601
601
|
},
|
|
602
602
|
AutoBeRealizeCollectorMapping: {
|
|
603
|
-
description: "
|
|
603
|
+
description: "Field/relation mapping for Prisma CreateInput generation.\n\nDocuments handling strategy for ONE Prisma schema member. EVERY field and\nrelation must be listed \u2014 the validator rejects incomplete mappings.",
|
|
604
604
|
type: "object",
|
|
605
605
|
properties: {
|
|
606
606
|
member: {
|
|
607
|
-
description: "Exact field or relation name from Prisma schema
|
|
607
|
+
description: "Exact field or relation name from Prisma schema (case-sensitive).\n\n**Examples**:\n\n```typescript\n// Scalar fields\n{ member: \"id\", kind: \"scalar\", nullable: false, how: \"Generate with v4()\" }\n{ member: \"email\", kind: \"scalar\", nullable: false, how: \"From props.body.email\" }\n{ member: \"created_at\", kind: \"scalar\", nullable: false, how: \"Default to new Date()\" }\n{ member: \"description\", kind: \"scalar\", nullable: true, how: \"From props.body.description ?? null\" }\n\n// BelongsTo relations \u2014 use Prisma RELATION name, NOT FK column name\n{ member: \"customer\", kind: \"belongsTo\", nullable: false, how: \"Connect using props.customer.id\" }\n{ member: \"parent\", kind: \"belongsTo\", nullable: true, how: \"Undefined (nullable FK)\" }\n\n// HasMany relations\n{ member: \"tags\", kind: \"hasMany\", nullable: null, how: \"Nested create with TagCollector\" }\n{ member: \"comments\", kind: \"hasMany\", nullable: null, how: \"Not needed (optional has-many)\" }\n```\n\nDO NOT use FK column names (e.g., \"customer_id\" is WRONG \u2014 use \"customer\").\nInclude ALL members even if unused in this collector.",
|
|
608
608
|
type: "string"
|
|
609
609
|
},
|
|
610
610
|
kind: {
|
|
611
|
-
description: "
|
|
611
|
+
description: "Kind of Prisma schema member.\n\n- `\"scalar\"`: Regular column \u2192 direct value assignment\n- `\"belongsTo\"`: FK relation \u2192 `{ connect: { id } }`\n- `\"hasOne\"`: 1:1 relation this side owns\n- `\"hasMany\"`: 1:N or M:N \u2192 `{ create: [...] }` or omit\n\nThe kind forces explicit classification BEFORE deciding how to handle it,\npreventing confusion like treating belongsTo relations as scalar fields.",
|
|
612
612
|
type: "string",
|
|
613
613
|
"enum": [
|
|
614
614
|
"scalar",
|
|
@@ -618,7 +618,7 @@ function createController(ctx, props) {
|
|
|
618
618
|
]
|
|
619
619
|
},
|
|
620
620
|
nullable: {
|
|
621
|
-
description: "Whether
|
|
621
|
+
description: "Whether nullable in Prisma schema.\n\n- `false`: Non-nullable \u2014 must provide value\n- `true`: Nullable \u2014 use `?? null` for scalar, `undefined` for belongsTo\n- `null`: Not applicable (hasMany/hasOne)",
|
|
622
622
|
anyOf: [
|
|
623
623
|
{
|
|
624
624
|
type: "null"
|
|
@@ -629,7 +629,7 @@ function createController(ctx, props) {
|
|
|
629
629
|
]
|
|
630
630
|
},
|
|
631
631
|
how: {
|
|
632
|
-
description: "Brief
|
|
632
|
+
description: "Brief strategy for obtaining this field's value (NOT code).\n\nWrite phase: \"Generate with v4()\", \"From props.body.email\", \"Connect using\nprops.customer.id\", \"Nested create with TagCollector\".\n\nCorrect phase: \"No change needed\", \"Fix: Wrong name 'x' \u2192 'y'\".\n\nEven if correct or unused, you MUST include it. This ensures complete\nschema coverage.",
|
|
633
633
|
type: "string"
|
|
634
634
|
}
|
|
635
635
|
},
|
|
@@ -644,11 +644,11 @@ function createController(ctx, props) {
|
|
|
644
644
|
type: "object",
|
|
645
645
|
properties: {
|
|
646
646
|
review: {
|
|
647
|
-
description: "
|
|
647
|
+
description: "MUST systematically verify four checklists:\n\n1. Schema Fidelity \u2014 cross-check EVERY field name against plan Section 1\n2. Plan Adherence \u2014 verify EVERY mapping from Section 3 is implemented\n3. System Rules \u2014 neighbor reuse, props structure, satisfies type\n4. Type Safety \u2014 compilation check, nullable handling, async/await\n\nIdentify issues with line numbers. This catches hallucinated fields,\nmissing mappings, and rule violations.",
|
|
648
648
|
type: "string"
|
|
649
649
|
},
|
|
650
650
|
final: {
|
|
651
|
-
description: "Final collector code with all review improvements applied
|
|
651
|
+
description: "Final collector code with all review improvements applied, or null if\ndraft needs no changes.",
|
|
652
652
|
anyOf: [
|
|
653
653
|
{
|
|
654
654
|
type: "null"
|
|
@@ -666,7 +666,7 @@ function createController(ctx, props) {
|
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
},
|
|
669
|
-
description: "Process collector generation task or preliminary data requests
|
|
669
|
+
description: "Process collector generation task or preliminary data requests.",
|
|
670
670
|
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 && "string" === typeof input.plan && (Array.isArray(input.mappings) && input.mappings.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io4(input.revise)); const _io3 = input => "string" === typeof input.member && ("scalar" === input.kind || "belongsTo" === input.kind || "hasOne" === input.kind || "hasMany" === input.kind) && (null === input.nullable || "boolean" === typeof input.nullable) && "string" === typeof input.how; const _io4 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _iu0 = input => (() => {
|
|
671
671
|
if ("getDatabaseSchemas" === input.type)
|
|
672
672
|
return _io1(input);
|