@autobe/agent 0.16.1 → 0.18.0
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/AutoBeMockAgent.d.ts +5 -5
- package/lib/agent/src/AutoBeAgent.d.ts +52 -0
- package/lib/{AutoBeAgent.js → agent/src/AutoBeAgent.js} +37 -9
- package/lib/agent/src/AutoBeAgent.js.map +1 -0
- package/lib/agent/src/AutoBeAgentBase.d.ts +18 -0
- package/lib/agent/src/AutoBeAgentBase.js.map +1 -0
- package/lib/agent/src/AutoBeMockAgent.d.ts +15 -0
- package/lib/{AutoBeMockAgent.js → agent/src/AutoBeMockAgent.js} +34 -4
- package/lib/agent/src/AutoBeMockAgent.js.map +1 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +34 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -0
- package/lib/agent/src/context/AutoBeContext.d.ts +41 -0
- package/lib/agent/src/context/AutoBeContext.js.map +1 -0
- package/lib/agent/src/context/AutoBeState.d.ts +8 -0
- package/lib/agent/src/context/AutoBeState.js.map +1 -0
- package/lib/agent/src/context/AutoBeTokenUsage.d.ts +173 -0
- package/lib/agent/src/context/AutoBeTokenUsage.js +188 -0
- package/lib/agent/src/context/AutoBeTokenUsage.js.map +1 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +116 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js +137 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -0
- package/lib/agent/src/context/IAutoBeApplication.d.ts +107 -0
- package/lib/agent/src/context/IAutoBeApplication.js.map +1 -0
- package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +4 -0
- package/lib/agent/src/context/IAutoBeApplicationProps.js.map +1 -0
- package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +4 -0
- package/lib/agent/src/context/IAutoBeApplicationResult.js.map +1 -0
- package/lib/agent/src/context/assertSchemaModel.d.ts +2 -0
- package/lib/agent/src/context/assertSchemaModel.js.map +1 -0
- package/lib/agent/src/factory/createAgenticaHistory.d.ts +7 -0
- package/lib/agent/src/factory/createAgenticaHistory.js.map +1 -0
- package/lib/agent/src/factory/createAutoBeApplication.d.ts +7 -0
- package/lib/{factory → agent/src/factory}/createAutoBeApplication.js +1 -1
- package/lib/agent/src/factory/createAutoBeApplication.js.map +1 -0
- package/lib/agent/src/factory/createAutoBeContext.d.ts +19 -0
- package/lib/agent/src/factory/createAutoBeContext.js +214 -0
- package/lib/agent/src/factory/createAutoBeContext.js.map +1 -0
- package/lib/agent/src/factory/createAutoBeState.d.ts +3 -0
- package/lib/agent/src/factory/createAutoBeState.js.map +1 -0
- package/lib/agent/src/factory/getAutoBeGenerated.d.ts +4 -0
- package/lib/{factory → agent/src/factory}/getAutoBeGenerated.js +17 -14
- package/lib/agent/src/factory/getAutoBeGenerated.js.map +1 -0
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +7 -0
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.js +27 -0
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +1 -0
- package/lib/agent/src/factory/index.d.ts +1 -0
- package/lib/agent/src/factory/index.js.map +1 -0
- package/lib/agent/src/index.d.ts +6 -0
- package/lib/{index.js → agent/src/index.js} +1 -0
- package/lib/agent/src/index.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js +46 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +30 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +49 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +5 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js +64 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +6 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +265 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +727 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +8 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +242 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +3 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js +3 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +2 -0
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
- package/lib/agent/src/orchestrate/index.d.ts +5 -0
- package/lib/agent/src/orchestrate/index.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +34 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +62 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +49 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +28 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +51 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +35 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +28 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +53 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterface.js +12 -24
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
- package/lib/{orchestrate/interface/orchestrateInterfaceOperations.js → agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js} +227 -562
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceComplement.js +20 -32
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceEndpoints.js +40 -41
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceGroups.js +15 -25
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +1768 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1317 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceSchemas.js +59 -71
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +467 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +3 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +55 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +24 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +108 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +126 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +96 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +75 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +91 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +6 -0
- package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
- package/lib/agent/src/orchestrate/internal/IProgress.d.ts +4 -0
- package/lib/agent/src/orchestrate/internal/IProgress.js +3 -0
- package/lib/agent/src/orchestrate/internal/IProgress.js.map +1 -0
- package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaComponentsHistories.d.ts +1 -1
- package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaComponentsHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
- package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaCorrectHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +59 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
- package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaSchemaHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +48 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrisma.js +37 -40
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaComponent.js +164 -58
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaCorrect.js +130 -92
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
- package/lib/{orchestrate/prisma/orchestratePrismaSchemas.js → agent/src/orchestrate/prisma/orchestratePrismaReview.js} +197 -328
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +5 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js +1625 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +121 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js +3 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js +3 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +99 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js +3 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +40 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +80 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +7 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +13 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +32 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +11 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +160 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/internal/compile.d.ts +7 -0
- package/lib/agent/src/orchestrate/realize/internal/compile.js +61 -0
- package/lib/agent/src/orchestrate/realize/internal/compile.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +113 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +10 -0
- package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorization.js +84 -70
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +66 -52
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +351 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
- package/lib/{orchestrate/realize/orchestrateRealizePlanner.d.ts → agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts} +5 -3
- package/lib/{orchestrate/realize/orchestrateRealizePlanner.js → agent/src/orchestrate/realize/orchestrateRealizeScenario.js} +14 -24
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +9 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +340 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +92 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +27 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +345 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +56 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +2 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.d.ts +79 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +276 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +4 -0
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +8 -0
- package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +3 -0
- package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/replaceImportStatements.js +1 -0
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +2 -0
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +1 -0
- package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
- package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
- package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +56 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
- package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestWriteHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +179 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTest.js +12 -30
- package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestCorrect.js +27 -43
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +4 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +858 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestWrite.js +53 -54
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +134 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +7 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +113 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeConfig.d.ts +73 -0
- package/lib/agent/src/structures/IAutoBeConfig.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeProps.d.ts +109 -0
- package/lib/agent/src/structures/IAutoBeProps.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeVendor.d.ts +87 -0
- package/lib/agent/src/structures/IAutoBeVendor.js.map +1 -0
- package/lib/agent/src/utils/arrayToRecord.d.ts +17 -0
- package/lib/agent/src/utils/arrayToRecord.js.map +1 -0
- package/lib/agent/src/utils/backoffRetry.d.ts +22 -0
- package/lib/agent/src/utils/backoffRetry.js.map +1 -0
- package/lib/agent/src/utils/divideArray.d.ts +4 -0
- package/lib/agent/src/utils/divideArray.js.map +1 -0
- package/lib/agent/src/utils/emplaceMap.d.ts +1 -0
- package/lib/agent/src/utils/emplaceMap.js.map +1 -0
- package/lib/{orchestrate/realize/RealizePipe.d.ts → agent/src/utils/pipe.d.ts} +1 -1
- package/lib/agent/src/utils/pipe.js.map +1 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +19 -17
- package/lib/context/AutoBeContext.d.ts +31 -8
- package/lib/context/AutoBeTokenUsage.d.ts +168 -11
- package/lib/context/AutoBeTokenUsageComponent.d.ts +116 -0
- package/lib/factory/createAutoBeContext.d.ts +19 -0
- package/lib/factory/getAutoBeGenerated.d.ts +1 -1
- package/lib/factory/getAutoBeRealizeGenerated.d.ts +7 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.mjs +10629 -5867
- package/lib/index.mjs.map +1 -1
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +153 -0
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +3 -0
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +1 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +4 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +4 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +6 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +6 -12
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +2 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +5 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +2 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +6 -2
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +96 -0
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +91 -0
- package/lib/orchestrate/internal/IProgress.d.ts +4 -0
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +3 -0
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +3 -0
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +3 -0
- package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +1 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +121 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +99 -0
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
- package/lib/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +7 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +13 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +11 -0
- package/lib/orchestrate/realize/internal/compile.d.ts +7 -0
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -0
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +91 -0
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +9 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +10 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.d.ts +79 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +276 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +4 -0
- package/lib/orchestrate/test/histories/transformTestHistories.d.ts +3 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +3 -0
- package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +8 -0
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +2 -2
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +25 -24
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -1
- package/package.json +10 -10
- package/src/AutoBeAgent.ts +45 -10
- package/src/AutoBeMockAgent.ts +41 -11
- package/src/constants/AutoBeSystemPromptConstant.ts +19 -17
- package/src/context/AutoBeContext.ts +60 -7
- package/src/context/AutoBeTokenUsage.ts +260 -54
- package/src/context/AutoBeTokenUsageComponent.ts +198 -0
- package/src/factory/createAutoBeApplication.ts +4 -12
- package/src/factory/createAutoBeContext.ts +256 -0
- package/src/factory/getAutoBeGenerated.ts +17 -24
- package/src/factory/getAutoBeRealizeGenerated.ts +30 -0
- package/src/index.ts +1 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +53 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +34 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +56 -0
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +61 -109
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +89 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +123 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +51 -52
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +108 -0
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +85 -0
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +71 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +40 -0
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +27 -0
- package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +45 -22
- package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +43 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +63 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +14 -23
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +106 -0
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +27 -44
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +28 -34
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +15 -32
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +207 -103
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +84 -0
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +72 -82
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +143 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +49 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +2 -1
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +6 -2
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +102 -0
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +98 -0
- package/src/orchestrate/internal/IProgress.ts +4 -0
- package/src/orchestrate/prisma/{transformPrismaComponentsHistories.ts → histories/transformPrismaComponentsHistories.ts} +2 -2
- package/src/orchestrate/prisma/{transformPrismaCorrectHistories.ts → histories/transformPrismaCorrectHistories.ts} +1 -1
- package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +66 -0
- package/src/orchestrate/prisma/{transformPrismaSchemaHistories.ts → histories/transformPrismaSchemaHistories.ts} +3 -3
- package/src/orchestrate/prisma/orchestratePrisma.ts +73 -67
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +27 -112
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +100 -202
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +118 -0
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +137 -210
- package/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.ts +125 -0
- package/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.ts +144 -0
- package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +108 -0
- package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +101 -0
- package/src/orchestrate/realize/{transformRealizeAuthorization.ts → histories/transformRealizeAuthorization.ts} +14 -10
- package/src/orchestrate/realize/{transformRealizeAuthorizationCorrectHistories.ts → histories/transformRealizeAuthorizationCorrectHistories.ts} +9 -7
- package/src/orchestrate/realize/{transformRealizeCoderHistories.ts → histories/transformRealizeCoderHistories.ts} +6 -6
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +47 -0
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +184 -0
- package/src/orchestrate/realize/internal/compile.ts +84 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +118 -40
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +45 -57
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +19 -41
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +118 -0
- package/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts} +15 -15
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +120 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +11 -3
- package/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.ts +81 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +43 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +282 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +3 -1
- package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +5 -9
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +23 -22
- package/src/orchestrate/test/{transformTestCorrectHistories.ts → histories/transformTestCorrectHistories.ts} +2 -2
- package/src/orchestrate/test/{transformTestHistories.ts → histories/transformTestHistories.ts} +1 -1
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +70 -0
- package/src/orchestrate/test/{transformTestWriteHistories.ts → histories/transformTestWriteHistories.ts} +3 -3
- package/src/orchestrate/test/orchestrateTest.ts +11 -32
- package/src/orchestrate/test/orchestrateTestCorrect.ts +32 -62
- package/src/orchestrate/test/orchestrateTestScenario.ts +95 -158
- package/src/orchestrate/test/orchestrateTestWrite.ts +48 -71
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +25 -24
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +3 -1
- package/lib/AutoBeAgent.js.map +0 -1
- package/lib/AutoBeAgentBase.js.map +0 -1
- package/lib/AutoBeMockAgent.js.map +0 -1
- package/lib/constants/AutoBeSystemPromptConstant.js.map +0 -1
- package/lib/context/AutoBeContext.js.map +0 -1
- package/lib/context/AutoBeState.js.map +0 -1
- package/lib/context/AutoBeTokenUsage.js +0 -61
- package/lib/context/AutoBeTokenUsage.js.map +0 -1
- package/lib/context/IAutoBeApplication.js.map +0 -1
- package/lib/context/IAutoBeApplicationProps.js.map +0 -1
- package/lib/context/IAutoBeApplicationResult.js.map +0 -1
- package/lib/context/assertSchemaModel.js.map +0 -1
- package/lib/factory/createAgenticaHistory.js.map +0 -1
- package/lib/factory/createAutoBeApplication.js.map +0 -1
- package/lib/factory/createAutoBeState.js.map +0 -1
- package/lib/factory/getAutoBeGenerated.js.map +0 -1
- package/lib/factory/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.d.ts +0 -45
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js +0 -27
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js.map +0 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzePointer.d.ts +0 -9
- package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js +0 -3
- package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js.map +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +0 -125
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.d.ts +0 -5
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +0 -561
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.d.ts +0 -12
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +0 -395
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +0 -347
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.d.ts +0 -68
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js +0 -3
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js.map +0 -1
- package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.d.ts +0 -5
- package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js +0 -27
- package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js.map +0 -1
- package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.d.ts +0 -12
- package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js +0 -78
- package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js.map +0 -1
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +0 -16
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +0 -79
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +0 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/lib/orchestrate/index.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -62
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -28
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -28
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -28
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -28
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterface.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
- package/lib/orchestrate/prisma/transformPrismaComponentsHistories.js.map +0 -1
- package/lib/orchestrate/prisma/transformPrismaCorrectHistories.js.map +0 -1
- package/lib/orchestrate/prisma/transformPrismaHistories.d.ts +0 -3
- package/lib/orchestrate/prisma/transformPrismaHistories.js +0 -55
- package/lib/orchestrate/prisma/transformPrismaHistories.js.map +0 -1
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js +0 -48
- package/lib/orchestrate/prisma/transformPrismaSchemaHistories.js.map +0 -1
- package/lib/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
- package/lib/orchestrate/realize/RealizePipe.js +0 -14
- package/lib/orchestrate/realize/RealizePipe.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +0 -74
- package/lib/orchestrate/realize/orchestrateRealize.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +0 -26
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js +0 -420
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +0 -1
- package/lib/orchestrate/realize/transformRealizeAuthorization.d.ts +0 -4
- package/lib/orchestrate/realize/transformRealizeAuthorization.js +0 -39
- package/lib/orchestrate/realize/transformRealizeAuthorization.js.map +0 -1
- package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
- package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js +0 -80
- package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
- package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +0 -7
- package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +0 -1
- package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
- package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
- package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +0 -11
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +0 -221
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +0 -1
- package/lib/orchestrate/test/compile/completeTestCode.js.map +0 -1
- package/lib/orchestrate/test/compile/filterTestFileName.js.map +0 -1
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
- package/lib/orchestrate/test/orchestrateTest.js.map +0 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +0 -866
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +0 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
- package/lib/orchestrate/test/transformTestCorrectHistories.js.map +0 -1
- package/lib/orchestrate/test/transformTestHistories.js.map +0 -1
- package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +0 -3
- package/lib/orchestrate/test/transformTestScenarioHistories.js +0 -100
- package/lib/orchestrate/test/transformTestScenarioHistories.js.map +0 -1
- package/lib/orchestrate/test/transformTestWriteHistories.js +0 -178
- package/lib/orchestrate/test/transformTestWriteHistories.js.map +0 -1
- package/lib/structures/IAutoBeConfig.js.map +0 -1
- package/lib/structures/IAutoBeProps.js.map +0 -1
- package/lib/structures/IAutoBeVendor.js.map +0 -1
- package/lib/utils/arrayToRecord.js.map +0 -1
- package/lib/utils/backoffRetry.js.map +0 -1
- package/lib/utils/divideArray.js.map +0 -1
- package/lib/utils/emplaceMap.js.map +0 -1
- package/lib/utils/enforceToolCall.d.ts +0 -3
- package/lib/utils/enforceToolCall.js +0 -13
- package/lib/utils/enforceToolCall.js.map +0 -1
- package/lib/utils/forceRetry.d.ts +0 -1
- package/lib/utils/forceRetry.js +0 -26
- package/lib/utils/forceRetry.js.map +0 -1
- package/lib/utils/pipe.js.map +0 -1
- package/src/orchestrate/analyze/AutoBeAnalyzeFileSystem.ts +0 -58
- package/src/orchestrate/analyze/AutoBeAnalyzePointer.ts +0 -10
- package/src/orchestrate/analyze/orchestrateAnalyzeComposer.ts +0 -112
- package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +0 -131
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.ts +0 -75
- package/src/orchestrate/analyze/transformAnalyzeReviewerHistories.ts +0 -31
- package/src/orchestrate/analyze/transformAnalyzeWriteHistories.ts +0 -94
- package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +0 -96
- package/src/orchestrate/prisma/transformPrismaHistories.ts +0 -59
- package/src/orchestrate/realize/RealizePipe.ts +0 -39
- package/src/orchestrate/realize/orchestrateRealizeCoder.ts +0 -182
- package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +0 -308
- package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -105
- package/src/utils/enforceToolCall.ts +0 -13
- package/src/utils/forceRetry.ts +0 -13
- /package/lib/{AutoBeAgentBase.js → agent/src/AutoBeAgentBase.js} +0 -0
- /package/lib/{constants → agent/src/constants}/AutoBeSystemPromptConstant.js +0 -0
- /package/lib/{context → agent/src/context}/AutoBeContext.js +0 -0
- /package/lib/{context → agent/src/context}/AutoBeState.js +0 -0
- /package/lib/{context → agent/src/context}/IAutoBeApplication.js +0 -0
- /package/lib/{context → agent/src/context}/IAutoBeApplicationProps.js +0 -0
- /package/lib/{context → agent/src/context}/IAutoBeApplicationResult.js +0 -0
- /package/lib/{context → agent/src/context}/assertSchemaModel.js +0 -0
- /package/lib/{factory → agent/src/factory}/createAgenticaHistory.js +0 -0
- /package/lib/{factory → agent/src/factory}/createAutoBeState.js +0 -0
- /package/lib/{factory → agent/src/factory}/index.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/facade/transformFacadeStateMessage.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/index.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
- /package/lib/{orchestrate/prisma → agent/src/orchestrate/prisma/histories}/transformPrismaCorrectHistories.d.ts +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/ProviderCodeComparator.js +0 -0
- /package/lib/{orchestrate/realize → agent/src/orchestrate/realize/histories}/transformRealizeCoderHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeCoderApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeCompile.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/InternalFileSystem.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/completeTestCode.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/filterTestFileName.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
- /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.js +0 -0
- /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
- /package/lib/{structures → agent/src/structures}/IAutoBeConfig.js +0 -0
- /package/lib/{structures → agent/src/structures}/IAutoBeProps.js +0 -0
- /package/lib/{structures → agent/src/structures}/IAutoBeVendor.js +0 -0
- /package/lib/{utils → agent/src/utils}/arrayToRecord.js +0 -0
- /package/lib/{utils → agent/src/utils}/backoffRetry.js +0 -0
- /package/lib/{utils → agent/src/utils}/divideArray.js +0 -0
- /package/lib/{utils → agent/src/utils}/emplaceMap.js +0 -0
- /package/lib/{utils → agent/src/utils}/pipe.js +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Application interface for reviewing and validating API operations.
|
|
4
|
+
*
|
|
5
|
+
* Provides functionality to systematically review generated API operations
|
|
6
|
+
* against business requirements, technical specifications, and OpenAPI
|
|
7
|
+
* standards. The review process ensures each operation meets quality criteria
|
|
8
|
+
* before proceeding to implementation.
|
|
9
|
+
*/
|
|
10
|
+
export interface IAutoBeInterfaceOperationsReviewApplication {
|
|
11
|
+
/**
|
|
12
|
+
* Reviews a batch of API operations for quality and correctness.
|
|
13
|
+
*
|
|
14
|
+
* Validates each operation's request/response schemas, authentication
|
|
15
|
+
* handling, error responses, and documentation completeness. Operations are
|
|
16
|
+
* marked as passed or failed based on compliance with enterprise standards.
|
|
17
|
+
*
|
|
18
|
+
* @param input Collection of operations to review with their validation
|
|
19
|
+
* results
|
|
20
|
+
*/
|
|
21
|
+
reviewOperations(input: IAutoBeInterfaceOperationsReviewApplication.IProps): void;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
24
|
+
/**
|
|
25
|
+
* Properties for API operation review and improvement process.
|
|
26
|
+
*
|
|
27
|
+
* Contains both the input operations to be reviewed and the outputs generated
|
|
28
|
+
* by the Interface Operations Review Agent, which will be published as part
|
|
29
|
+
* of the AutoBeInterfaceOperationsReviewEvent.
|
|
30
|
+
*/
|
|
31
|
+
interface IProps {
|
|
32
|
+
/**
|
|
33
|
+
* Comprehensive review analysis with prioritized findings.
|
|
34
|
+
*
|
|
35
|
+
* Systematic assessment organized by severity levels (CRITICAL, HIGH,
|
|
36
|
+
* MEDIUM, LOW):
|
|
37
|
+
*
|
|
38
|
+
* - **Security Analysis**: Authentication boundary violations, exposed
|
|
39
|
+
* passwords/tokens, unauthorized data access patterns, SQL injection
|
|
40
|
+
* risks
|
|
41
|
+
* - **Logic Validation**: Return type consistency (list operations returning
|
|
42
|
+
* arrays, single retrieval returning single items), HTTP method semantics
|
|
43
|
+
* alignment, parameter usage verification
|
|
44
|
+
* - **Schema Compliance**: Field existence in Prisma schema, type accuracy,
|
|
45
|
+
* relationship validity, required field handling
|
|
46
|
+
* - **Quality Assessment**: Documentation completeness, naming conventions,
|
|
47
|
+
* error handling patterns, pagination standards
|
|
48
|
+
*
|
|
49
|
+
* Each finding includes specific examples, current vs expected behavior,
|
|
50
|
+
* and concrete fix recommendations. Critical security issues and logical
|
|
51
|
+
* contradictions are highlighted for immediate attention.
|
|
52
|
+
*/
|
|
53
|
+
review: string;
|
|
54
|
+
/**
|
|
55
|
+
* Prioritized action plan for identified issues.
|
|
56
|
+
*
|
|
57
|
+
* Structured improvement strategy categorized by severity:
|
|
58
|
+
*
|
|
59
|
+
* - **Immediate Actions (CRITICAL)**: Security vulnerabilities that must be
|
|
60
|
+
* fixed before production (password exposure, missing authorization,
|
|
61
|
+
* authentication bypass risks)
|
|
62
|
+
* - **Required Fixes (HIGH)**: Functional issues affecting API correctness
|
|
63
|
+
* (wrong return types, missing required fields, schema mismatches)
|
|
64
|
+
* - **Recommended Improvements (MEDIUM)**: Quality enhancements for better
|
|
65
|
+
* API design (validation rules, format specifications, consistency)
|
|
66
|
+
* - **Optional Enhancements (LOW)**: Documentation and usability improvements
|
|
67
|
+
*
|
|
68
|
+
* If all operations pass review without issues, contains: "No improvements
|
|
69
|
+
* required. All operations meet AutoBE standards."
|
|
70
|
+
*
|
|
71
|
+
* Each action item includes the specific operation path, the exact change
|
|
72
|
+
* needed, and the rationale for the modification.
|
|
73
|
+
*/
|
|
74
|
+
plan: string;
|
|
75
|
+
/**
|
|
76
|
+
* Production-ready operations with all critical issues resolved.
|
|
77
|
+
*
|
|
78
|
+
* Final API operations after systematic enhancement:
|
|
79
|
+
*
|
|
80
|
+
* - **Security Fixes Applied**: All authentication boundaries enforced,
|
|
81
|
+
* sensitive data removed from responses, proper authorization
|
|
82
|
+
* implemented
|
|
83
|
+
* - **Logic Corrections Made**: Return types match operation intent, HTTP
|
|
84
|
+
* methods align with semantics, parameters properly utilized
|
|
85
|
+
* - **Schema Alignment Verified**: All fields exist in Prisma schema, types
|
|
86
|
+
* correctly mapped, relationships properly defined
|
|
87
|
+
* - **Quality Improvements Added**: Enhanced documentation, format
|
|
88
|
+
* specifications, validation rules, consistent naming patterns
|
|
89
|
+
*
|
|
90
|
+
* If no issues were found during review, this contains the exact original
|
|
91
|
+
* operations unchanged. These operations are validated and ready for schema
|
|
92
|
+
* generation and subsequent implementation phases.
|
|
93
|
+
*/
|
|
94
|
+
content: AutoBeOpenApi.IOperation[];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
export interface IAutoBeInterfaceSchemasReviewApplication {
|
|
3
|
+
/**
|
|
4
|
+
* Analyzes and improves OpenAPI schema definitions.
|
|
5
|
+
*
|
|
6
|
+
* This function receives schema definitions and performs comprehensive review
|
|
7
|
+
* and enhancement. It identifies issues, creates an improvement plan, and
|
|
8
|
+
* produces refined schemas that meet quality standards.
|
|
9
|
+
*
|
|
10
|
+
* The function populates three key outputs:
|
|
11
|
+
*
|
|
12
|
+
* - A detailed review of findings organized by severity
|
|
13
|
+
* - An actionable plan for improvements
|
|
14
|
+
* - Enhanced schemas with all issues resolved
|
|
15
|
+
*
|
|
16
|
+
* @param props Contains review findings, improvement plan, and enhanced
|
|
17
|
+
* schemas
|
|
18
|
+
*/
|
|
19
|
+
review: (props: IAutoBeInterfaceSchemasReviewApplication.IProps) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace IAutoBeInterfaceSchemasReviewApplication {
|
|
22
|
+
/**
|
|
23
|
+
* Schema review and enhancement parameters for the review function.
|
|
24
|
+
*
|
|
25
|
+
* When the review function is called, these properties must be populated to
|
|
26
|
+
* complete the schema validation and improvement process. The LLM uses this
|
|
27
|
+
* interface to understand what outputs are required.
|
|
28
|
+
*/
|
|
29
|
+
interface IProps {
|
|
30
|
+
/**
|
|
31
|
+
* Issues and problems found during schema analysis.
|
|
32
|
+
*
|
|
33
|
+
* IMPORTANT: Only document problems that need fixing. Do NOT include:
|
|
34
|
+
*
|
|
35
|
+
* - Positive feedback about what's already correct
|
|
36
|
+
* - Compliments about well-structured schemas
|
|
37
|
+
* - Confirmation that certain aspects meet standards
|
|
38
|
+
*
|
|
39
|
+
* Focus exclusively on issues organized by severity:
|
|
40
|
+
*
|
|
41
|
+
* - CRITICAL: Security vulnerabilities (exposed passwords, missing auth
|
|
42
|
+
* boundaries)
|
|
43
|
+
* - HIGH: Missing required variants, incorrect type mappings
|
|
44
|
+
* - MEDIUM: Missing format specifications, incomplete relationships
|
|
45
|
+
* - LOW: Documentation improvements, style consistency
|
|
46
|
+
*
|
|
47
|
+
* Each issue must include the specific schema name and what needs to be
|
|
48
|
+
* fixed. If there are no issues at all, simply state: "No issues found."
|
|
49
|
+
*/
|
|
50
|
+
review: string;
|
|
51
|
+
/**
|
|
52
|
+
* Action plan for addressing identified issues.
|
|
53
|
+
*
|
|
54
|
+
* Must specify concrete fixes categorized by priority:
|
|
55
|
+
*
|
|
56
|
+
* - For perfect schemas: "No improvements required. All schemas meet AutoBE
|
|
57
|
+
* standards."
|
|
58
|
+
* - For fixable issues: List each fix with operation path and exact change
|
|
59
|
+
* - For critical problems: Describe how schemas were recreated or corrected
|
|
60
|
+
*
|
|
61
|
+
* Never leave this empty. Always provide a clear plan even if no changes
|
|
62
|
+
* are needed. The plan documents what was done to produce the content
|
|
63
|
+
* field.
|
|
64
|
+
*/
|
|
65
|
+
plan: string;
|
|
66
|
+
/**
|
|
67
|
+
* Final validated and enhanced schemas ready for production use.
|
|
68
|
+
*
|
|
69
|
+
* CRITICAL REQUIREMENTS:
|
|
70
|
+
*
|
|
71
|
+
* - MUST NEVER be an empty object {}
|
|
72
|
+
* - MUST contain valid OpenAPI schema definitions
|
|
73
|
+
* - MUST include all entities that were in the original input
|
|
74
|
+
* - If original schemas have critical issues, MUST contain fixed versions
|
|
75
|
+
* - If entity names are wrong, MUST contain renamed correct versions
|
|
76
|
+
* - If schemas are missing variants, MUST include the created variants
|
|
77
|
+
*
|
|
78
|
+
* FORBIDDEN:
|
|
79
|
+
*
|
|
80
|
+
* - Empty object {} will cause all schemas to be deleted
|
|
81
|
+
* - Returning undefined or null
|
|
82
|
+
* - Including explanations or excuses in schema descriptions
|
|
83
|
+
* - Leaving broken schemas unfixed
|
|
84
|
+
*
|
|
85
|
+
* When original schemas are beyond repair, recreate them properly based on
|
|
86
|
+
* entity names and context. This field becomes the final schemas used by
|
|
87
|
+
* the system, so it must always contain complete, valid schemas.
|
|
88
|
+
*/
|
|
89
|
+
content: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive<AutoBeOpenApi.IJsonSchema>>;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBeState } from "../../../context/AutoBeState";
|
|
3
|
+
export declare const transformPrismaComponentsHistories: (state: AutoBeState, prefix?: string | null) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { IAutoBePrismaValidation } from "@autobe/interface";
|
|
3
|
+
export declare const transformPrismaCorrectHistories: (result: IAutoBePrismaValidation.IFailure) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBePrisma } from "@autobe/interface";
|
|
3
|
+
export declare const transformPrismaReviewHistories: (props: {
|
|
4
|
+
analysis: Record<string, string>;
|
|
5
|
+
application: AutoBePrisma.IApplication;
|
|
6
|
+
schemas: Record<string, string>;
|
|
7
|
+
component: AutoBePrisma.IComponent;
|
|
8
|
+
}) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBePrisma } from "@autobe/interface";
|
|
3
|
+
export declare const transformPrismaSchemaHistories: (requirementAnalysisReport: Record<string, string>, targetComponent: AutoBePrisma.IComponent, otherTables: string[]) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -2,4 +2,4 @@ import { AutoBeAssistantMessageHistory, AutoBePrismaHistory } from "@autobe/inte
|
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
4
|
import { IAutoBeApplicationProps } from "../../context/IAutoBeApplicationProps";
|
|
5
|
-
export declare const orchestratePrisma: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model
|
|
5
|
+
export declare const orchestratePrisma: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: IAutoBeApplicationProps) => Promise<AutoBePrismaHistory | AutoBeAssistantMessageHistory>;
|
|
@@ -2,4 +2,4 @@ import { AutoBeAssistantMessageHistory } from "@autobe/interface";
|
|
|
2
2
|
import { AutoBePrismaComponentsEvent } from "@autobe/interface/src/events/AutoBePrismaComponentsEvent";
|
|
3
3
|
import { ILlmSchema } from "@samchon/openapi";
|
|
4
4
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
5
|
-
export declare function orchestratePrismaComponents<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>,
|
|
5
|
+
export declare function orchestratePrismaComponents<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, message?: string): Promise<AutoBeAssistantMessageHistory | AutoBePrismaComponentsEvent>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AutoBePrisma } from "@autobe/interface";
|
|
2
|
+
import { AutoBePrismaReviewEvent } from "@autobe/interface/src/events/AutoBePrismaReviewEvent";
|
|
3
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
4
|
+
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
5
|
+
export declare function orchestratePrismaReview<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, application: AutoBePrisma.IApplication, schemas: Record<string, string>, componentList: AutoBePrisma.IComponent[]): Promise<AutoBePrismaReviewEvent[]>;
|
|
@@ -2,4 +2,4 @@ import { AutoBePrisma } from "@autobe/interface";
|
|
|
2
2
|
import { AutoBePrismaSchemasEvent } from "@autobe/interface/src/events/AutoBePrismaSchemasEvent";
|
|
3
3
|
import { ILlmSchema } from "@samchon/openapi";
|
|
4
4
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
5
|
-
export declare function orchestratePrismaSchemas<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>,
|
|
5
|
+
export declare function orchestratePrismaSchemas<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, componentList: AutoBePrisma.IComponent[]): Promise<AutoBePrismaSchemasEvent[]>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { AutoBePrisma } from "@autobe/interface";
|
|
2
|
+
import { tags } from "typia";
|
|
3
|
+
export interface IAutoBePrismaComponentApplication {
|
|
4
|
+
/**
|
|
5
|
+
* Organizes database tables into domain-based components for Prisma schema
|
|
6
|
+
* generation.
|
|
7
|
+
*
|
|
8
|
+
* Takes business requirements and groups related tables into logical domains,
|
|
9
|
+
* with each component becoming a separate .prisma file.
|
|
10
|
+
*/
|
|
11
|
+
extractComponents(props: IAutoBePrismaComponentApplication.IProps): void;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace IAutoBePrismaComponentApplication {
|
|
14
|
+
interface IProps {
|
|
15
|
+
/**
|
|
16
|
+
* Initial thoughts on namespace classification criteria.
|
|
17
|
+
*
|
|
18
|
+
* Contains the AI agent's initial analysis and reasoning about how to
|
|
19
|
+
* organize tables into different business domains/namespaces.
|
|
20
|
+
*
|
|
21
|
+
* **Example:**
|
|
22
|
+
*
|
|
23
|
+
* "Based on the business requirements, I identify several key domains:
|
|
24
|
+
* - User-related entities should be grouped under 'Actors' namespace
|
|
25
|
+
* - Product and sales information under 'Sales' namespace
|
|
26
|
+
* - System configuration under 'Systematic' namespace"
|
|
27
|
+
*/
|
|
28
|
+
thinking: string;
|
|
29
|
+
/**
|
|
30
|
+
* Review and refinement of the namespace classification.
|
|
31
|
+
*
|
|
32
|
+
* Contains the AI agent's review process, considering relationships between
|
|
33
|
+
* tables and potential improvements to the initial classification.
|
|
34
|
+
*
|
|
35
|
+
* **Example:**
|
|
36
|
+
*
|
|
37
|
+
* "Upon review, I noticed that 'shopping_channel_categories' has strong
|
|
38
|
+
* relationships with both channels and sales. However, since it primarily
|
|
39
|
+
* defines the channel structure, it should remain in 'Systematic' namespace."
|
|
40
|
+
*/
|
|
41
|
+
review: string;
|
|
42
|
+
/**
|
|
43
|
+
* Final decision on namespace classification.
|
|
44
|
+
*
|
|
45
|
+
* Contains the AI agent's final reasoning and rationale for the chosen
|
|
46
|
+
* namespace organization, explaining why this structure best serves the
|
|
47
|
+
* business requirements.
|
|
48
|
+
*
|
|
49
|
+
* **Example:**
|
|
50
|
+
*
|
|
51
|
+
* "Final decision: Organize tables into 3 main namespaces:
|
|
52
|
+
* 1. Systematic - for channel and system configuration
|
|
53
|
+
* 2. Actors - for all user types (customers, citizens, administrators)
|
|
54
|
+
* 3. Sales - for product sales and related transactional data
|
|
55
|
+
* This structure provides clear separation of concerns and follows DDD principles."
|
|
56
|
+
*/
|
|
57
|
+
decision: string;
|
|
58
|
+
/**
|
|
59
|
+
* Array of domain components that group related database tables.
|
|
60
|
+
*
|
|
61
|
+
* Each component represents a business domain and becomes one Prisma schema
|
|
62
|
+
* file. Common domains include: Actors (users), Sales (products), Orders,
|
|
63
|
+
* Carts, etc.
|
|
64
|
+
*
|
|
65
|
+
* **Example:**
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* {
|
|
69
|
+
* "components": [
|
|
70
|
+
* {
|
|
71
|
+
* "filename": "schema-02-systematic.prisma",
|
|
72
|
+
* "namespace": "Systematic",
|
|
73
|
+
* "thinking": "These tables all relate to system configuration and channel management. They form the foundation of the platform.",
|
|
74
|
+
* "review": "Considering the relationships, shopping_channel_categories connects channels and sales, but it fundamentally defines channel structure.",
|
|
75
|
+
* "rationale": "Grouping all system configuration tables together provides a clear foundation layer that other domains can reference.",
|
|
76
|
+
* "tables": [
|
|
77
|
+
* "shopping_channels",
|
|
78
|
+
* "shopping_sections",
|
|
79
|
+
* "shopping_channel_categories"
|
|
80
|
+
* ]
|
|
81
|
+
* },
|
|
82
|
+
* {
|
|
83
|
+
* "filename": "schema-03-actors.prisma",
|
|
84
|
+
* "namespace": "Actors",
|
|
85
|
+
* "thinking": "All user-related entities should be grouped together as they share authentication and identity patterns.",
|
|
86
|
+
* "review": "While customers interact with sales, the customer entity itself is about identity, not transactions.",
|
|
87
|
+
* "rationale": "This component groups all actor-related tables to maintain separation between identity management and business transactions.",
|
|
88
|
+
* "tables": [
|
|
89
|
+
* "shopping_customers",
|
|
90
|
+
* "shopping_citizens",
|
|
91
|
+
* "shopping_administrators"
|
|
92
|
+
* ]
|
|
93
|
+
* },
|
|
94
|
+
* {
|
|
95
|
+
* "filename": "schema-04-sales.prisma",
|
|
96
|
+
* "namespace": "Sales",
|
|
97
|
+
* "thinking": "Product catalog and sales-related tables belong together as they form the core commerce functionality.",
|
|
98
|
+
* "review": "Sales snapshots are integral to the sales domain for tracking product history and price changes.",
|
|
99
|
+
* "rationale": "Consolidating all sales-related tables enables coherent management of the entire product lifecycle.",
|
|
100
|
+
* "tables": [
|
|
101
|
+
* "shopping_sales",
|
|
102
|
+
* "shopping_sale_snapshots",
|
|
103
|
+
* "shopping_sale_units",
|
|
104
|
+
* "shopping_sale_unit_options"
|
|
105
|
+
* ]
|
|
106
|
+
* }
|
|
107
|
+
* ]
|
|
108
|
+
* }
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* **Notes:**
|
|
112
|
+
*
|
|
113
|
+
* - Table names must follow snake_case convention with domain prefix (e.g.,
|
|
114
|
+
* `shopping_customers`)
|
|
115
|
+
* - Each component becomes one `.prisma` file containing related models
|
|
116
|
+
* - Filename numbering indicates dependency order for schema generation
|
|
117
|
+
* - Namespace is used for documentation organization and domain grouping
|
|
118
|
+
*/
|
|
119
|
+
components: AutoBePrisma.IComponent[] & tags.MinItems<1>;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { AutoBePrisma } from "@autobe/interface";
|
|
2
|
+
export interface IAutoBePrismaCorrectApplication {
|
|
3
|
+
/**
|
|
4
|
+
* Fixes validation errors in specific AutoBePrisma models while preserving
|
|
5
|
+
* ALL existing business logic and model descriptions.
|
|
6
|
+
*
|
|
7
|
+
* ## Core Rules
|
|
8
|
+
*
|
|
9
|
+
* 1. Fix ONLY validation errors in provided models - never remove business
|
|
10
|
+
* descriptions
|
|
11
|
+
* 2. Apply minimal changes to error models only - preserve original design
|
|
12
|
+
* intent
|
|
13
|
+
* 3. Return ONLY corrected models - unchanged models remain in original schema
|
|
14
|
+
* 4. Maintain referential integrity with unchanged models
|
|
15
|
+
*
|
|
16
|
+
* ## Targeted Scope
|
|
17
|
+
*
|
|
18
|
+
* - Process ONLY models with validation errors from IError[] array
|
|
19
|
+
* - Exclude models without errors from processing and output
|
|
20
|
+
* - Minimize context usage by returning corrected models only
|
|
21
|
+
* - Preserve unchanged models in their original state
|
|
22
|
+
*
|
|
23
|
+
* ## Fix Strategy
|
|
24
|
+
*
|
|
25
|
+
* - Resolve validation errors within specific models only
|
|
26
|
+
* - Fix field duplications, invalid references, and type mismatches
|
|
27
|
+
* - Update cross-model references without modifying target models
|
|
28
|
+
* - Ensure naming conventions and index rules compliance in corrected models
|
|
29
|
+
*/
|
|
30
|
+
correctPrismaSchemaFiles(props: IAutoBePrismaCorrectApplication.IProps): void;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace IAutoBePrismaCorrectApplication {
|
|
33
|
+
interface IProps {
|
|
34
|
+
/**
|
|
35
|
+
* Detailed execution plan for fixing `AutoBePrisma` validation errors in
|
|
36
|
+
* specific models.
|
|
37
|
+
*
|
|
38
|
+
* 🎯 Purpose: Enable systematic reasoning and step-by-step error resolution
|
|
39
|
+
* approach for targeted model validation issues
|
|
40
|
+
*
|
|
41
|
+
* 📋 Required Planning Content:
|
|
42
|
+
*
|
|
43
|
+
* 1. **Error Scope Analysis**
|
|
44
|
+
*
|
|
45
|
+
* - List all validation errors from IAutoBePrismaValidation.IError[] array
|
|
46
|
+
* - Extract unique table names from errors to identify affected models
|
|
47
|
+
* - Categorize errors by type (field duplications, references, types,
|
|
48
|
+
* indexes)
|
|
49
|
+
* - Identify which models need correction vs. which remain unchanged
|
|
50
|
+
* 2. **Targeted Fix Strategy**
|
|
51
|
+
*
|
|
52
|
+
* - Focus ONLY on models mentioned in validation errors
|
|
53
|
+
* - Outline minimal changes needed for each affected model
|
|
54
|
+
* - Plan cross-model reference updates (if any) without modifying non-error
|
|
55
|
+
* models
|
|
56
|
+
* - Ensure unchanged models maintain valid references to corrected models
|
|
57
|
+
* 3. **Model-Specific Fix Plan**
|
|
58
|
+
*
|
|
59
|
+
* - Model-by-model modification plan for ONLY affected models
|
|
60
|
+
* - Exact field additions, renames, or type corrections required
|
|
61
|
+
* - Reference updates within corrected models only
|
|
62
|
+
* - Index corrections limited to affected models
|
|
63
|
+
* 4. **Minimal Scope Validation**
|
|
64
|
+
*
|
|
65
|
+
* - Confirm which models will be included in output (error models only)
|
|
66
|
+
* - List models that will remain unchanged in original schema
|
|
67
|
+
* - Identify cross-model dependencies without including unchanged models
|
|
68
|
+
* - Preserve all business logic within corrected models
|
|
69
|
+
* 5. **Targeted Impact Assessment**
|
|
70
|
+
*
|
|
71
|
+
* - Potential effects of fixes on unchanged models (reference validation)
|
|
72
|
+
* - Verification points for corrected models only
|
|
73
|
+
* - Ensure no new validation errors in targeted models
|
|
74
|
+
* - Confirm minimal output scope compliance
|
|
75
|
+
*
|
|
76
|
+
* 💡 Example Planning Structure:
|
|
77
|
+
*
|
|
78
|
+
* ## Error Scope
|
|
79
|
+
* - Target Models: shopping_customers, shopping_orders (2 models only)
|
|
80
|
+
* - Unchanged Models: All others remain in original schema
|
|
81
|
+
*
|
|
82
|
+
* ## Targeted Fixes
|
|
83
|
+
* - shopping_customers: Remove duplicate 'email' field
|
|
84
|
+
* - shopping_orders: Update targetModel reference to 'shopping_customers'
|
|
85
|
+
*
|
|
86
|
+
* ## Output Scope
|
|
87
|
+
* - Return: Only shopping_customers and shopping_orders models
|
|
88
|
+
* - Preserve: All other models unchanged in original schema
|
|
89
|
+
*
|
|
90
|
+
* ## Cross-Model Impact
|
|
91
|
+
* - Verify: shopping_orders still references shopping_customers correctly
|
|
92
|
+
* - No changes needed in other models referencing these
|
|
93
|
+
*/
|
|
94
|
+
planning: string;
|
|
95
|
+
/**
|
|
96
|
+
* ONLY the specific models that contain validation errors and need
|
|
97
|
+
* correction.
|
|
98
|
+
*
|
|
99
|
+
* 📥 Input Structure:
|
|
100
|
+
*
|
|
101
|
+
* - Contains ONLY models mentioned in IAutoBePrismaValidation.IError[] array
|
|
102
|
+
* - Each model has specific validation errors that need targeted correction
|
|
103
|
+
* - Models not mentioned in errors are excluded from this input
|
|
104
|
+
* - Represents minimal scope for error correction
|
|
105
|
+
*
|
|
106
|
+
* 🔍 Expected Validation Issues (Model-Specific):
|
|
107
|
+
*
|
|
108
|
+
* - Duplicate field/relation names within these specific models
|
|
109
|
+
* - Invalid foreign key references from these models to other models
|
|
110
|
+
* - Single foreign key fields in index arrays within these models
|
|
111
|
+
* - Invalid naming conventions within these specific models
|
|
112
|
+
* - Type validation errors in fields of these models
|
|
113
|
+
*
|
|
114
|
+
* 📝 Model Content Analysis (Targeted Scope):
|
|
115
|
+
*
|
|
116
|
+
* - Complete field definitions for each error model only
|
|
117
|
+
* - Relationships from these models (may reference unchanged models)
|
|
118
|
+
* - Indexes within these models that need correction
|
|
119
|
+
* - Business descriptions specific to these models
|
|
120
|
+
* - Cross-model references that need validation (read-only for targets)
|
|
121
|
+
*
|
|
122
|
+
* ⚠️ Processing Notes (Focused Approach):
|
|
123
|
+
*
|
|
124
|
+
* - Input contains ONLY models with validation errors
|
|
125
|
+
* - May reference other models not included in this input
|
|
126
|
+
* - Cross-model references must be validated but target models won't be
|
|
127
|
+
* modified
|
|
128
|
+
* - Output should return corrected versions of ONLY these input models
|
|
129
|
+
* - All business logic and descriptions within these models must be preserved
|
|
130
|
+
* - Corrections must not break references from unchanged models
|
|
131
|
+
*
|
|
132
|
+
* 🎯 Correction Scope:
|
|
133
|
+
*
|
|
134
|
+
* - Fix validation errors within these specific models
|
|
135
|
+
* - Update internal model structure (fields, relations, indexes)
|
|
136
|
+
* - Correct references to external models (without modifying targets)
|
|
137
|
+
* - Maintain compatibility with unchanged models in the full schema
|
|
138
|
+
* - Return corrected versions of ONLY these models
|
|
139
|
+
*/
|
|
140
|
+
models: AutoBePrisma.IModel[];
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { AutoBePrisma } from "@autobe/interface";
|
|
2
|
+
export interface IAutoBePrismaReviewApplication {
|
|
3
|
+
/**
|
|
4
|
+
* Reviews and validates Prisma schema modifications to ensure compliance with
|
|
5
|
+
* database design best practices and business requirements.
|
|
6
|
+
*
|
|
7
|
+
* Performs comprehensive validation of proposed schema changes including
|
|
8
|
+
* normalization compliance, relationship integrity, performance optimization,
|
|
9
|
+
* and business logic alignment. The review process ensures all modifications
|
|
10
|
+
* maintain data consistency and follow enterprise-level database standards.
|
|
11
|
+
*/
|
|
12
|
+
reviewSchemaFile(props: IAutoBePrismaReviewApplication.IProps): void;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace IAutoBePrismaReviewApplication {
|
|
15
|
+
interface IProps {
|
|
16
|
+
/**
|
|
17
|
+
* Comprehensive review analysis of the proposed schema modifications.
|
|
18
|
+
*
|
|
19
|
+
* Contains the AI agent's detailed evaluation of the schema changes,
|
|
20
|
+
* including validation of normalization compliance, relationship integrity,
|
|
21
|
+
* index optimization, and business requirement alignment. The review
|
|
22
|
+
* identifies potential issues and confirms adherence to best practices.
|
|
23
|
+
*
|
|
24
|
+
* **Review Dimensions:**
|
|
25
|
+
*
|
|
26
|
+
* - **Normalization Validation**: Confirms 3NF compliance and proper data
|
|
27
|
+
* structure
|
|
28
|
+
* - **Relationship Integrity**: Validates foreign key references and
|
|
29
|
+
* cardinality
|
|
30
|
+
* - **Performance Optimization**: Reviews indexing strategy and query
|
|
31
|
+
* patterns
|
|
32
|
+
* - **Business Logic Alignment**: Ensures schema supports all use cases
|
|
33
|
+
* - **Naming Conventions**: Verifies consistent naming patterns
|
|
34
|
+
* - **Data Type Consistency**: Confirms appropriate field types
|
|
35
|
+
* - **Temporal Field Handling**: Validates audit trail implementation
|
|
36
|
+
*
|
|
37
|
+
* **Example:**
|
|
38
|
+
*
|
|
39
|
+
* "After reviewing the schema modifications:
|
|
40
|
+
* 1. All tables properly implement UUID primary keys
|
|
41
|
+
* 2. Foreign key relationships correctly reference existing models
|
|
42
|
+
* 3. Composite indexes optimize for common query patterns
|
|
43
|
+
* 4. Snapshot tables include proper temporal fields
|
|
44
|
+
* 5. Materialized views (mv_) contain appropriate denormalization
|
|
45
|
+
* The schema follows all best practices and is ready for implementation."
|
|
46
|
+
*/
|
|
47
|
+
review: string;
|
|
48
|
+
/**
|
|
49
|
+
* Strategic database design plan that guided the schema creation.
|
|
50
|
+
*
|
|
51
|
+
* Contains the original planning document that outlines the database
|
|
52
|
+
* architecture strategy, including table structures, relationships,
|
|
53
|
+
* normalization approach, and business requirement mapping. This plan
|
|
54
|
+
* serves as the blueprint for validating the implemented schema.
|
|
55
|
+
*
|
|
56
|
+
* **Planning Components:**
|
|
57
|
+
*
|
|
58
|
+
* - **Business Requirements**: Mapping of business needs to database
|
|
59
|
+
* structures
|
|
60
|
+
* - **Table Design**: Entity definitions and attribute specifications
|
|
61
|
+
* - **Relationship Strategy**: Cardinality and referential integrity planning
|
|
62
|
+
* - **Normalization Approach**: Application of 1NF, 2NF, 3NF principles
|
|
63
|
+
* - **Performance Considerations**: Index strategy and query optimization
|
|
64
|
+
* - **Snapshot Architecture**: Temporal data handling and audit requirements
|
|
65
|
+
* - **Materialized Views**: Denormalization strategy for performance
|
|
66
|
+
*
|
|
67
|
+
* **Example:**
|
|
68
|
+
*
|
|
69
|
+
* "Database Design Strategy:
|
|
70
|
+
* Component: Sales Domain
|
|
71
|
+
* Tables: shopping_sales, shopping_sale_snapshots, shopping_sale_units
|
|
72
|
+
*
|
|
73
|
+
* Design Approach:
|
|
74
|
+
* - Normalize product catalog to 3NF for data integrity
|
|
75
|
+
* - Implement snapshot pattern for price history tracking
|
|
76
|
+
* - Create composite indexes for product search queries
|
|
77
|
+
* - Use materialized views for sales analytics dashboards"
|
|
78
|
+
*/
|
|
79
|
+
plan: string;
|
|
80
|
+
/**
|
|
81
|
+
* Array of Prisma models that have been modified based on review feedback.
|
|
82
|
+
*
|
|
83
|
+
* Contains ONLY the models that required changes, not the entire schema.
|
|
84
|
+
* Each model represents a complete table definition with all fields,
|
|
85
|
+
* relationships, indexes, and documentation. These modifications will be
|
|
86
|
+
* applied to the models to produce the final implementation.
|
|
87
|
+
*
|
|
88
|
+
* **Model Requirements:**
|
|
89
|
+
*
|
|
90
|
+
* - **Complete Models**: Each entry must be a complete model definition
|
|
91
|
+
* - **Targeted Changes**: Only includes models that need modifications
|
|
92
|
+
* - **AST Compliance**: Follows AutoBePrisma.IModel interface structure
|
|
93
|
+
* - **Relationship Integrity**: All foreign keys reference valid models
|
|
94
|
+
* - **Index Optimization**: Strategic indexes without redundancy
|
|
95
|
+
* - **Documentation**: Comprehensive English descriptions
|
|
96
|
+
*
|
|
97
|
+
* **Notes:**
|
|
98
|
+
*
|
|
99
|
+
* - Models not included in this array remain unchanged from the models
|
|
100
|
+
* - The final schema merges these modifications with the original models
|
|
101
|
+
* - All modifications must resolve issues identified in the review
|
|
102
|
+
*/
|
|
103
|
+
modifications: AutoBePrisma.IModel[];
|
|
104
|
+
}
|
|
105
|
+
}
|