@autobe/agent 0.17.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} +29 -1
- 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/{context → agent/src/context}/AutoBeTokenUsage.js +7 -0
- package/lib/agent/src/context/AutoBeTokenUsage.js.map +1 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +116 -0
- package/lib/{context → agent/src/context}/AutoBeTokenUsageComponent.js +19 -2
- 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/agent/src/factory/createAutoBeApplication.js.map +1 -0
- package/lib/agent/src/factory/createAutoBeContext.d.ts +19 -0
- package/lib/{factory → agent/src/factory}/createAutoBeContext.js +90 -17
- 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 +3 -3
- 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.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/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 +7 -2
- 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/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +3 -0
- package/lib/{orchestrate → 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/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +3 -0
- 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 +30 -13
- 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 +43 -44
- 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 +121 -83
- 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} +139 -248
- 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.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -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.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 +4 -4
- 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 +18 -16
- package/lib/context/AutoBeContext.d.ts +16 -5
- package/lib/index.mjs +8876 -4277
- 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/transformPrismaReviewHistories.d.ts +8 -0
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.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 +2 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +43 -153
- 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 +9 -9
- package/src/AutoBeAgent.ts +37 -3
- package/src/AutoBeMockAgent.ts +41 -11
- package/src/constants/AutoBeSystemPromptConstant.ts +18 -16
- package/src/context/AutoBeContext.ts +30 -4
- package/src/context/AutoBeTokenUsage.ts +8 -0
- package/src/context/AutoBeTokenUsageComponent.ts +20 -2
- package/src/factory/createAutoBeApplication.ts +3 -11
- package/src/factory/createAutoBeContext.ts +64 -1
- package/src/factory/getAutoBeGenerated.ts +3 -3
- 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 -80
- 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 +10 -2
- 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/histories/transformPrismaReviewHistories.ts +66 -0
- package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +2 -2
- package/src/orchestrate/prisma/orchestratePrisma.ts +44 -15
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +16 -33
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +96 -58
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +118 -0
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +133 -139
- package/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.ts +2 -1
- package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +108 -0
- package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +43 -156
- 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 +100 -9
- 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 +5 -6
- 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.map +0 -1
- package/lib/context/AutoBeTokenUsageComponent.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/createAutoBeContext.js.map +0 -1
- package/lib/factory/createAutoBeState.js.map +0 -1
- package/lib/factory/getAutoBeGenerated.js.map +0 -1
- package/lib/factory/getAutoBeRealizeGenerated.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 -98
- 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/histories/transformPrismaComponentsHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaHistories.d.ts +0 -3
- package/lib/orchestrate/prisma/histories/transformPrismaHistories.js +0 -55
- package/lib/orchestrate/prisma/histories/transformPrismaHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +0 -48
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.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/structures/IAutoBePrismaComponentApplication.js.map +0 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.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 -63
- 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/histories/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}/createAutoBeApplication.js +0 -0
- /package/lib/{factory → agent/src/factory}/createAutoBeState.js +0 -0
- /package/lib/{factory → agent/src/factory}/getAutoBeRealizeGenerated.js +0 -0
- /package/lib/{factory → agent/src/factory}/index.js +0 -0
- /package/lib/{index.js → agent/src/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 → agent/src/orchestrate}/prisma/histories/transformPrismaComponentsHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAgenticaController
|
|
2
|
-
import { AutoBeOpenApi } from "@autobe/interface";
|
|
1
|
+
import { IAgenticaController } from "@agentica/core";
|
|
2
|
+
import { AutoBeInterfaceSchemasEvent, AutoBeOpenApi } from "@autobe/interface";
|
|
3
3
|
import { ILlmApplication, ILlmSchema } from "@samchon/openapi";
|
|
4
4
|
import { OpenApiV3_1Emender } from "@samchon/openapi/lib/converters/OpenApiV3_1Emender";
|
|
5
5
|
import { IPointer } from "tstl";
|
|
@@ -8,9 +8,9 @@ import typia from "typia";
|
|
|
8
8
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
9
9
|
import { assertSchemaModel } from "../../context/assertSchemaModel";
|
|
10
10
|
import { divideArray } from "../../utils/divideArray";
|
|
11
|
-
import {
|
|
12
|
-
import { forceRetry } from "../../utils/forceRetry";
|
|
11
|
+
import { IProgress } from "../internal/IProgress";
|
|
13
12
|
import { transformInterfaceSchemaHistories } from "./histories/transformInterfaceSchemaHistories";
|
|
13
|
+
import { orchestrateInterfaceSchemasReview } from "./orchestrateInterfaceSchemasReview";
|
|
14
14
|
import { IAutoBeInterfaceSchemaApplication } from "./structures/IAutoBeInterfaceSchemaApplication";
|
|
15
15
|
|
|
16
16
|
export async function orchestrateInterfaceSchemas<
|
|
@@ -29,24 +29,25 @@ export async function orchestrateInterfaceSchemas<
|
|
|
29
29
|
array: Array.from(typeNames),
|
|
30
30
|
capacity,
|
|
31
31
|
});
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
const progress: IProgress = {
|
|
33
|
+
total: typeNames.size,
|
|
34
|
+
completed: 0,
|
|
35
|
+
};
|
|
36
|
+
const reviewProgress: IProgress = {
|
|
37
|
+
total: matrix.length,
|
|
38
|
+
completed: 0,
|
|
39
|
+
};
|
|
34
40
|
const x: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive> = {};
|
|
35
41
|
for (const y of await Promise.all(
|
|
36
42
|
matrix.map(async (it) => {
|
|
37
43
|
const row: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive> =
|
|
38
|
-
await divideAndConquer(ctx, operations, it, 3,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
total: typeNames.size,
|
|
46
|
-
step: ctx.state().analyze?.step ?? 0,
|
|
47
|
-
created_at: new Date().toISOString(),
|
|
48
|
-
});
|
|
49
|
-
return row;
|
|
44
|
+
await divideAndConquer(ctx, operations, it, 3, progress);
|
|
45
|
+
return orchestrateInterfaceSchemasReview(
|
|
46
|
+
ctx,
|
|
47
|
+
operations,
|
|
48
|
+
row,
|
|
49
|
+
reviewProgress,
|
|
50
|
+
);
|
|
50
51
|
}),
|
|
51
52
|
)) {
|
|
52
53
|
Object.assign(x, y);
|
|
@@ -59,20 +60,18 @@ async function divideAndConquer<Model extends ILlmSchema.Model>(
|
|
|
59
60
|
operations: AutoBeOpenApi.IOperation[],
|
|
60
61
|
typeNames: string[],
|
|
61
62
|
retry: number,
|
|
62
|
-
progress:
|
|
63
|
+
progress: IProgress,
|
|
63
64
|
): Promise<Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>> {
|
|
64
65
|
const remained: Set<string> = new Set(typeNames);
|
|
65
66
|
const schemas: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive> = {};
|
|
66
67
|
for (let i: number = 0; i < retry; ++i) {
|
|
67
68
|
if (remained.size === 0) break;
|
|
68
|
-
const before: number = remained.size;
|
|
69
69
|
const newbie: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive> =
|
|
70
|
-
await
|
|
70
|
+
await process(ctx, operations, schemas, remained, progress);
|
|
71
71
|
for (const key of Object.keys(newbie)) {
|
|
72
72
|
schemas[key] = newbie[key];
|
|
73
73
|
remained.delete(key);
|
|
74
74
|
}
|
|
75
|
-
if (before - remained.size !== 0) progress(before - remained.size);
|
|
76
75
|
}
|
|
77
76
|
return schemas;
|
|
78
77
|
}
|
|
@@ -82,77 +81,70 @@ async function process<Model extends ILlmSchema.Model>(
|
|
|
82
81
|
operations: AutoBeOpenApi.IOperation[],
|
|
83
82
|
oldbie: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>,
|
|
84
83
|
remained: Set<string>,
|
|
84
|
+
progress: IProgress,
|
|
85
85
|
): Promise<Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>> {
|
|
86
|
+
const already: string[] = Object.keys(oldbie);
|
|
86
87
|
const pointer: IPointer<Record<
|
|
87
88
|
string,
|
|
88
89
|
AutoBeOpenApi.IJsonSchemaDescriptive
|
|
89
90
|
> | null> = {
|
|
90
91
|
value: null,
|
|
91
92
|
};
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
vendor: ctx.vendor,
|
|
95
|
-
config: {
|
|
96
|
-
...(ctx.config ?? {}),
|
|
97
|
-
executor: {
|
|
98
|
-
describe: null,
|
|
99
|
-
},
|
|
100
|
-
},
|
|
93
|
+
const { tokenUsage } = await ctx.conversate({
|
|
94
|
+
source: "interfaceSchemas",
|
|
101
95
|
histories: transformInterfaceSchemaHistories(ctx.state(), operations),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
96
|
+
controller: createController({
|
|
97
|
+
model: ctx.model,
|
|
98
|
+
build: async (next) => {
|
|
99
|
+
pointer.value ??= {};
|
|
100
|
+
Object.assign(pointer.value, next);
|
|
101
|
+
},
|
|
102
|
+
pointer,
|
|
103
|
+
}),
|
|
104
|
+
enforceFunctionCall: true,
|
|
105
|
+
message: [
|
|
106
|
+
"Make type components please.",
|
|
107
|
+
"",
|
|
108
|
+
"Here is the list of request/response bodies' type names from",
|
|
109
|
+
"OpenAPI operations. Make type components of them. If more object",
|
|
110
|
+
"types are required during making the components, please make them",
|
|
111
|
+
"too.",
|
|
112
|
+
"",
|
|
113
|
+
...Array.from(remained).map((k) => `- \`${k}\``),
|
|
114
|
+
...(already.length !== 0
|
|
115
|
+
? [
|
|
116
|
+
"",
|
|
117
|
+
"> By the way, here is the list of components schemas what you've",
|
|
118
|
+
"> already made. So, you don't need to make them again.",
|
|
119
|
+
">",
|
|
120
|
+
...already.map((k) => `> - \`${k}\``),
|
|
121
|
+
]
|
|
122
|
+
: []),
|
|
123
|
+
].join("\n"),
|
|
112
124
|
});
|
|
113
|
-
|
|
125
|
+
if (pointer.value === null) throw new Error("Failed to create components.");
|
|
114
126
|
|
|
115
|
-
const
|
|
116
|
-
await agentica
|
|
117
|
-
.conversate(
|
|
118
|
-
[
|
|
119
|
-
"Make type components please.",
|
|
120
|
-
"",
|
|
121
|
-
"Here is the list of request/response bodies' type names from",
|
|
122
|
-
"OpenAPI operations. Make type components of them. If more object",
|
|
123
|
-
"types are required during making the components, please make them",
|
|
124
|
-
"too.",
|
|
125
|
-
"",
|
|
126
|
-
...Array.from(remained).map((k) => `- \`${k}\``),
|
|
127
|
-
...(already.length !== 0
|
|
128
|
-
? [
|
|
129
|
-
"",
|
|
130
|
-
"> By the way, here is the list of components schemas what you've",
|
|
131
|
-
"> already made. So, you don't need to make them again.",
|
|
132
|
-
">",
|
|
133
|
-
...already.map((k) => `> - \`${k}\``),
|
|
134
|
-
]
|
|
135
|
-
: []),
|
|
136
|
-
].join("\n"),
|
|
137
|
-
)
|
|
138
|
-
.finally(() => {
|
|
139
|
-
const tokenUsage = agentica.getTokenUsage().aggregate;
|
|
140
|
-
ctx.usage().record(tokenUsage, ["interface"]);
|
|
141
|
-
});
|
|
142
|
-
if (pointer.value === null) {
|
|
143
|
-
// never be happened
|
|
144
|
-
throw new Error("Failed to create components.");
|
|
145
|
-
}
|
|
146
|
-
return (
|
|
127
|
+
const schemas: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive> =
|
|
147
128
|
(
|
|
148
129
|
OpenApiV3_1Emender.convertComponents({
|
|
149
130
|
schemas: pointer.value,
|
|
150
131
|
}) as AutoBeOpenApi.IComponents
|
|
151
|
-
).schemas ?? {}
|
|
152
|
-
|
|
132
|
+
).schemas ?? {};
|
|
133
|
+
ctx.dispatch({
|
|
134
|
+
type: "interfaceSchemas",
|
|
135
|
+
schemas,
|
|
136
|
+
tokenUsage,
|
|
137
|
+
completed: (progress.completed += Object.keys(schemas).filter(
|
|
138
|
+
(k) => oldbie[k] === undefined,
|
|
139
|
+
).length),
|
|
140
|
+
total: progress.total,
|
|
141
|
+
step: ctx.state().prisma?.step ?? 0,
|
|
142
|
+
created_at: new Date().toISOString(),
|
|
143
|
+
} satisfies AutoBeInterfaceSchemasEvent);
|
|
144
|
+
return schemas;
|
|
153
145
|
}
|
|
154
146
|
|
|
155
|
-
function
|
|
147
|
+
function createController<Model extends ILlmSchema.Model>(props: {
|
|
156
148
|
model: Model;
|
|
157
149
|
build: (
|
|
158
150
|
next: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>,
|
|
@@ -166,7 +158,7 @@ function createApplication<Model extends ILlmSchema.Model>(props: {
|
|
|
166
158
|
|
|
167
159
|
const application: ILlmApplication<Model> = collection[
|
|
168
160
|
props.model
|
|
169
|
-
] as unknown as ILlmApplication<Model>;
|
|
161
|
+
] satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
170
162
|
return {
|
|
171
163
|
protocol: "class",
|
|
172
164
|
name: "interface",
|
|
@@ -181,14 +173,12 @@ function createApplication<Model extends ILlmSchema.Model>(props: {
|
|
|
181
173
|
|
|
182
174
|
const claude = typia.llm.application<
|
|
183
175
|
IAutoBeInterfaceSchemaApplication,
|
|
184
|
-
"claude"
|
|
185
|
-
{ reference: true }
|
|
176
|
+
"claude"
|
|
186
177
|
>();
|
|
187
178
|
const collection = {
|
|
188
179
|
chatgpt: typia.llm.application<
|
|
189
180
|
IAutoBeInterfaceSchemaApplication,
|
|
190
|
-
"chatgpt"
|
|
191
|
-
{ reference: true }
|
|
181
|
+
"chatgpt"
|
|
192
182
|
>(),
|
|
193
183
|
claude,
|
|
194
184
|
llama: claude,
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { IAgenticaController } from "@agentica/core";
|
|
2
|
+
import {
|
|
3
|
+
AutoBeInterfaceSchemasReviewEvent,
|
|
4
|
+
AutoBeOpenApi,
|
|
5
|
+
} from "@autobe/interface";
|
|
6
|
+
import { ILlmApplication, ILlmSchema, IValidation } from "@samchon/openapi";
|
|
7
|
+
import { IPointer } from "tstl";
|
|
8
|
+
import typia from "typia";
|
|
9
|
+
|
|
10
|
+
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
11
|
+
import { transformInterfaceSchemasReviewHistories } from "./histories/transformInterfaceSchemasReviewHistories";
|
|
12
|
+
import { IAutoBeInterfaceSchemasReviewApplication } from "./structures/IAutobeInterfaceSchemasReviewApplication";
|
|
13
|
+
|
|
14
|
+
export async function orchestrateInterfaceSchemasReview<
|
|
15
|
+
Model extends ILlmSchema.Model,
|
|
16
|
+
>(
|
|
17
|
+
ctx: AutoBeContext<Model>,
|
|
18
|
+
operations: AutoBeOpenApi.IOperation[],
|
|
19
|
+
schemas: Record<
|
|
20
|
+
string,
|
|
21
|
+
AutoBeOpenApi.IJsonSchemaDescriptive<AutoBeOpenApi.IJsonSchema>
|
|
22
|
+
>,
|
|
23
|
+
progress: { total: number; completed: number },
|
|
24
|
+
): Promise<Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>> {
|
|
25
|
+
const pointer: IPointer<IAutoBeInterfaceSchemasReviewApplication.IProps | null> =
|
|
26
|
+
{
|
|
27
|
+
value: null,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const { tokenUsage } = await ctx.conversate({
|
|
31
|
+
source: "interfaceSchemasReview",
|
|
32
|
+
controller: createController({
|
|
33
|
+
model: ctx.model,
|
|
34
|
+
pointer,
|
|
35
|
+
schemas,
|
|
36
|
+
}),
|
|
37
|
+
histories: transformInterfaceSchemasReviewHistories(
|
|
38
|
+
ctx.state(),
|
|
39
|
+
operations,
|
|
40
|
+
schemas,
|
|
41
|
+
),
|
|
42
|
+
enforceFunctionCall: true,
|
|
43
|
+
message: "Review type schemas.",
|
|
44
|
+
});
|
|
45
|
+
if (pointer.value === null)
|
|
46
|
+
throw new Error("Failed to extract review information.");
|
|
47
|
+
|
|
48
|
+
ctx.dispatch({
|
|
49
|
+
type: "interfaceSchemasReview",
|
|
50
|
+
schemas: schemas,
|
|
51
|
+
review: pointer.value.review,
|
|
52
|
+
plan: pointer.value.plan,
|
|
53
|
+
content: pointer.value.content,
|
|
54
|
+
tokenUsage,
|
|
55
|
+
step: ctx.state().analyze?.step ?? 0,
|
|
56
|
+
total: progress.total,
|
|
57
|
+
completed: ++progress.completed,
|
|
58
|
+
created_at: new Date().toISOString(),
|
|
59
|
+
} satisfies AutoBeInterfaceSchemasReviewEvent);
|
|
60
|
+
return pointer.value.content;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function createController<Model extends ILlmSchema.Model>(props: {
|
|
64
|
+
model: Model;
|
|
65
|
+
pointer: IPointer<IAutoBeInterfaceSchemasReviewApplication.IProps | null>;
|
|
66
|
+
schemas: Record<
|
|
67
|
+
string,
|
|
68
|
+
AutoBeOpenApi.IJsonSchemaDescriptive<AutoBeOpenApi.IJsonSchema>
|
|
69
|
+
>;
|
|
70
|
+
}): IAgenticaController.IClass<Model> {
|
|
71
|
+
const validate = (
|
|
72
|
+
next: unknown,
|
|
73
|
+
): IValidation<IAutoBeInterfaceSchemasReviewApplication.IProps> => {
|
|
74
|
+
const result: IValidation<IAutoBeInterfaceSchemasReviewApplication.IProps> =
|
|
75
|
+
typia.validate<IAutoBeInterfaceSchemasReviewApplication.IProps>(next);
|
|
76
|
+
if (result.success === false) return result;
|
|
77
|
+
|
|
78
|
+
const errors: IValidation.IError[] = [];
|
|
79
|
+
if (Object.keys(result.data.content).length === 0) {
|
|
80
|
+
console.log();
|
|
81
|
+
console.log();
|
|
82
|
+
console.log();
|
|
83
|
+
console.log(
|
|
84
|
+
JSON.stringify({ schemas: props.schemas, ...result.data }, null, 2),
|
|
85
|
+
);
|
|
86
|
+
errors.push({
|
|
87
|
+
path: `$input.content`,
|
|
88
|
+
expected: `Content must not be empty. If it's at a level that can't be fixed, please create a schema instead to meet the requirements.`,
|
|
89
|
+
value: result.data.content,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (errors.length > 0) {
|
|
94
|
+
return {
|
|
95
|
+
success: false,
|
|
96
|
+
errors,
|
|
97
|
+
data: result.data,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return result;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const application: ILlmApplication<Model> = collection[
|
|
105
|
+
props.model === "chatgpt" ? "chatgpt" : "claude"
|
|
106
|
+
](
|
|
107
|
+
validate,
|
|
108
|
+
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
protocol: "class",
|
|
112
|
+
name: "Reviewer",
|
|
113
|
+
application,
|
|
114
|
+
execute: {
|
|
115
|
+
review: (input) => {
|
|
116
|
+
props.pointer.value = input;
|
|
117
|
+
},
|
|
118
|
+
} satisfies IAutoBeInterfaceSchemasReviewApplication,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
const claude = (validate: Validator) =>
|
|
122
|
+
typia.llm.application<IAutoBeInterfaceSchemasReviewApplication, "claude">({
|
|
123
|
+
validate: {
|
|
124
|
+
review: validate,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
const collection = {
|
|
129
|
+
chatgpt: (validate: Validator) =>
|
|
130
|
+
typia.llm.application<IAutoBeInterfaceSchemasReviewApplication, "chatgpt">({
|
|
131
|
+
validate: {
|
|
132
|
+
review: validate,
|
|
133
|
+
},
|
|
134
|
+
}),
|
|
135
|
+
claude,
|
|
136
|
+
llama: claude,
|
|
137
|
+
deepseek: claude,
|
|
138
|
+
"3.1": claude,
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
type Validator = (
|
|
142
|
+
input: unknown,
|
|
143
|
+
) => IValidation<IAutoBeInterfaceSchemasReviewApplication.IProps>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
import { tags } from "typia";
|
|
3
|
+
|
|
4
|
+
export interface IAutoBeInterfaceAuthorizationsApplication {
|
|
5
|
+
/**
|
|
6
|
+
* Creates an authorization Operations for the given roles
|
|
7
|
+
*
|
|
8
|
+
* This method generates an OpenAPI interface that defines the authorization
|
|
9
|
+
* requirements for the given roles. It ensures that the interface reflects
|
|
10
|
+
* the correct permissions and access levels for each role.
|
|
11
|
+
*/
|
|
12
|
+
makeOperations(props: IAutoBeInterfaceAuthorizationsApplication.IProps): void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export namespace IAutoBeInterfaceAuthorizationsApplication {
|
|
16
|
+
export interface IProps {
|
|
17
|
+
/**
|
|
18
|
+
* Array of API operations to generate authorization operation for.
|
|
19
|
+
*
|
|
20
|
+
* Each operation in this array must include:
|
|
21
|
+
*
|
|
22
|
+
* - Specification: Detailed API specification with clear purpose and
|
|
23
|
+
* functionality
|
|
24
|
+
* - Path: Resource-centric URL path (e.g., "/resources/{resourceId}")
|
|
25
|
+
* - Method: HTTP method (get, post, put, delete, patch)
|
|
26
|
+
* - Description: Extremely detailed multi-paragraph description referencing
|
|
27
|
+
* Prisma schema comments
|
|
28
|
+
* - Summary: Concise one-sentence summary of the endpoint
|
|
29
|
+
* - Parameters: Array of all necessary parameters with descriptions and
|
|
30
|
+
* schema definitions
|
|
31
|
+
* - RequestBody: For POST/PUT/PATCH methods, with typeName referencing
|
|
32
|
+
* components.schemas
|
|
33
|
+
* - ResponseBody: With typeName referencing appropriate response type
|
|
34
|
+
*
|
|
35
|
+
* All operations must follow strict quality standards:
|
|
36
|
+
*
|
|
37
|
+
* 1. Detailed descriptions referencing Prisma schema comments
|
|
38
|
+
* 2. Accurate parameter definitions matching path parameters
|
|
39
|
+
* 3. Appropriate request/response body type references
|
|
40
|
+
* 4. Consistent patterns for CRUD operations
|
|
41
|
+
*
|
|
42
|
+
* For list retrievals (typically PATCH), include pagination, search, and
|
|
43
|
+
* sorting. For detail retrieval (GET), return a single resource. For
|
|
44
|
+
* creation (POST), use .ICreate request body. For modification (PUT), use
|
|
45
|
+
* .IUpdate request body.
|
|
46
|
+
*/
|
|
47
|
+
operations: AutoBeOpenApi.IOperation[] & tags.MinItems<1>;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
import { tags } from "typia";
|
|
2
3
|
|
|
3
4
|
export interface IAutoBeInterfaceEndpointApplication {
|
|
4
5
|
/**
|
|
@@ -19,6 +20,6 @@ export interface IAutoBeInterfaceEndpointApplication {
|
|
|
19
20
|
export namespace IAutoBeInterfaceEndpointApplication {
|
|
20
21
|
export interface IProps {
|
|
21
22
|
/** The endpoints to generate. */
|
|
22
|
-
endpoints: AutoBeOpenApi.IEndpoint[]
|
|
23
|
+
endpoints: AutoBeOpenApi.IEndpoint[] & tags.MinItems<1>;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutoBeOpenApi } from "@autobe/interface";
|
|
1
|
+
import { AutoBeOpenApi, CamelPattern } from "@autobe/interface";
|
|
2
2
|
import { tags } from "typia";
|
|
3
3
|
|
|
4
4
|
export interface IAutoBeInterfaceOperationApplication {
|
|
@@ -96,6 +96,10 @@ export namespace IAutoBeInterfaceOperationApplication {
|
|
|
96
96
|
* endpoint. Multiple roles can be specified to allow different types of
|
|
97
97
|
* users to access the same endpoint.
|
|
98
98
|
*
|
|
99
|
+
* ## Naming Convention
|
|
100
|
+
*
|
|
101
|
+
* All role names MUST use camelCase.
|
|
102
|
+
*
|
|
99
103
|
* ## Important Guidelines
|
|
100
104
|
*
|
|
101
105
|
* - Set to empty array `[]` for public endpoints that require no
|
|
@@ -120,6 +124,6 @@ export namespace IAutoBeInterfaceOperationApplication {
|
|
|
120
124
|
* handled by decorators at the controller level, and the provider function
|
|
121
125
|
* will receive the authenticated user object with the appropriate type.
|
|
122
126
|
*/
|
|
123
|
-
authorizationRoles: Array<string & tags.MinLength<1>>;
|
|
127
|
+
authorizationRoles: Array<string & CamelPattern & tags.MinLength<1>>;
|
|
124
128
|
}
|
|
125
129
|
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Application interface for reviewing and validating API operations.
|
|
5
|
+
*
|
|
6
|
+
* Provides functionality to systematically review generated API operations
|
|
7
|
+
* against business requirements, technical specifications, and OpenAPI
|
|
8
|
+
* standards. The review process ensures each operation meets quality criteria
|
|
9
|
+
* before proceeding to implementation.
|
|
10
|
+
*/
|
|
11
|
+
export interface IAutoBeInterfaceOperationsReviewApplication {
|
|
12
|
+
/**
|
|
13
|
+
* Reviews a batch of API operations for quality and correctness.
|
|
14
|
+
*
|
|
15
|
+
* Validates each operation's request/response schemas, authentication
|
|
16
|
+
* handling, error responses, and documentation completeness. Operations are
|
|
17
|
+
* marked as passed or failed based on compliance with enterprise standards.
|
|
18
|
+
*
|
|
19
|
+
* @param input Collection of operations to review with their validation
|
|
20
|
+
* results
|
|
21
|
+
*/
|
|
22
|
+
reviewOperations(
|
|
23
|
+
input: IAutoBeInterfaceOperationsReviewApplication.IProps,
|
|
24
|
+
): void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
28
|
+
/**
|
|
29
|
+
* Properties for API operation review and improvement process.
|
|
30
|
+
*
|
|
31
|
+
* Contains both the input operations to be reviewed and the outputs generated
|
|
32
|
+
* by the Interface Operations Review Agent, which will be published as part
|
|
33
|
+
* of the AutoBeInterfaceOperationsReviewEvent.
|
|
34
|
+
*/
|
|
35
|
+
export interface IProps {
|
|
36
|
+
/**
|
|
37
|
+
* Comprehensive review analysis with prioritized findings.
|
|
38
|
+
*
|
|
39
|
+
* Systematic assessment organized by severity levels (CRITICAL, HIGH,
|
|
40
|
+
* MEDIUM, LOW):
|
|
41
|
+
*
|
|
42
|
+
* - **Security Analysis**: Authentication boundary violations, exposed
|
|
43
|
+
* passwords/tokens, unauthorized data access patterns, SQL injection
|
|
44
|
+
* risks
|
|
45
|
+
* - **Logic Validation**: Return type consistency (list operations returning
|
|
46
|
+
* arrays, single retrieval returning single items), HTTP method semantics
|
|
47
|
+
* alignment, parameter usage verification
|
|
48
|
+
* - **Schema Compliance**: Field existence in Prisma schema, type accuracy,
|
|
49
|
+
* relationship validity, required field handling
|
|
50
|
+
* - **Quality Assessment**: Documentation completeness, naming conventions,
|
|
51
|
+
* error handling patterns, pagination standards
|
|
52
|
+
*
|
|
53
|
+
* Each finding includes specific examples, current vs expected behavior,
|
|
54
|
+
* and concrete fix recommendations. Critical security issues and logical
|
|
55
|
+
* contradictions are highlighted for immediate attention.
|
|
56
|
+
*/
|
|
57
|
+
review: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Prioritized action plan for identified issues.
|
|
61
|
+
*
|
|
62
|
+
* Structured improvement strategy categorized by severity:
|
|
63
|
+
*
|
|
64
|
+
* - **Immediate Actions (CRITICAL)**: Security vulnerabilities that must be
|
|
65
|
+
* fixed before production (password exposure, missing authorization,
|
|
66
|
+
* authentication bypass risks)
|
|
67
|
+
* - **Required Fixes (HIGH)**: Functional issues affecting API correctness
|
|
68
|
+
* (wrong return types, missing required fields, schema mismatches)
|
|
69
|
+
* - **Recommended Improvements (MEDIUM)**: Quality enhancements for better
|
|
70
|
+
* API design (validation rules, format specifications, consistency)
|
|
71
|
+
* - **Optional Enhancements (LOW)**: Documentation and usability improvements
|
|
72
|
+
*
|
|
73
|
+
* If all operations pass review without issues, contains: "No improvements
|
|
74
|
+
* required. All operations meet AutoBE standards."
|
|
75
|
+
*
|
|
76
|
+
* Each action item includes the specific operation path, the exact change
|
|
77
|
+
* needed, and the rationale for the modification.
|
|
78
|
+
*/
|
|
79
|
+
plan: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Production-ready operations with all critical issues resolved.
|
|
83
|
+
*
|
|
84
|
+
* Final API operations after systematic enhancement:
|
|
85
|
+
*
|
|
86
|
+
* - **Security Fixes Applied**: All authentication boundaries enforced,
|
|
87
|
+
* sensitive data removed from responses, proper authorization
|
|
88
|
+
* implemented
|
|
89
|
+
* - **Logic Corrections Made**: Return types match operation intent, HTTP
|
|
90
|
+
* methods align with semantics, parameters properly utilized
|
|
91
|
+
* - **Schema Alignment Verified**: All fields exist in Prisma schema, types
|
|
92
|
+
* correctly mapped, relationships properly defined
|
|
93
|
+
* - **Quality Improvements Added**: Enhanced documentation, format
|
|
94
|
+
* specifications, validation rules, consistent naming patterns
|
|
95
|
+
*
|
|
96
|
+
* If no issues were found during review, this contains the exact original
|
|
97
|
+
* operations unchanged. These operations are validated and ready for schema
|
|
98
|
+
* generation and subsequent implementation phases.
|
|
99
|
+
*/
|
|
100
|
+
content: AutoBeOpenApi.IOperation[];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
|
|
3
|
+
export interface IAutoBeInterfaceSchemasReviewApplication {
|
|
4
|
+
/**
|
|
5
|
+
* Analyzes and improves OpenAPI schema definitions.
|
|
6
|
+
*
|
|
7
|
+
* This function receives schema definitions and performs comprehensive review
|
|
8
|
+
* and enhancement. It identifies issues, creates an improvement plan, and
|
|
9
|
+
* produces refined schemas that meet quality standards.
|
|
10
|
+
*
|
|
11
|
+
* The function populates three key outputs:
|
|
12
|
+
*
|
|
13
|
+
* - A detailed review of findings organized by severity
|
|
14
|
+
* - An actionable plan for improvements
|
|
15
|
+
* - Enhanced schemas with all issues resolved
|
|
16
|
+
*
|
|
17
|
+
* @param props Contains review findings, improvement plan, and enhanced
|
|
18
|
+
* schemas
|
|
19
|
+
*/
|
|
20
|
+
review: (props: IAutoBeInterfaceSchemasReviewApplication.IProps) => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export namespace IAutoBeInterfaceSchemasReviewApplication {
|
|
24
|
+
/**
|
|
25
|
+
* Schema review and enhancement parameters for the review function.
|
|
26
|
+
*
|
|
27
|
+
* When the review function is called, these properties must be populated to
|
|
28
|
+
* complete the schema validation and improvement process. The LLM uses this
|
|
29
|
+
* interface to understand what outputs are required.
|
|
30
|
+
*/
|
|
31
|
+
export interface IProps {
|
|
32
|
+
/**
|
|
33
|
+
* Issues and problems found during schema analysis.
|
|
34
|
+
*
|
|
35
|
+
* IMPORTANT: Only document problems that need fixing. Do NOT include:
|
|
36
|
+
*
|
|
37
|
+
* - Positive feedback about what's already correct
|
|
38
|
+
* - Compliments about well-structured schemas
|
|
39
|
+
* - Confirmation that certain aspects meet standards
|
|
40
|
+
*
|
|
41
|
+
* Focus exclusively on issues organized by severity:
|
|
42
|
+
*
|
|
43
|
+
* - CRITICAL: Security vulnerabilities (exposed passwords, missing auth
|
|
44
|
+
* boundaries)
|
|
45
|
+
* - HIGH: Missing required variants, incorrect type mappings
|
|
46
|
+
* - MEDIUM: Missing format specifications, incomplete relationships
|
|
47
|
+
* - LOW: Documentation improvements, style consistency
|
|
48
|
+
*
|
|
49
|
+
* Each issue must include the specific schema name and what needs to be
|
|
50
|
+
* fixed. If there are no issues at all, simply state: "No issues found."
|
|
51
|
+
*/
|
|
52
|
+
review: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Action plan for addressing identified issues.
|
|
56
|
+
*
|
|
57
|
+
* Must specify concrete fixes categorized by priority:
|
|
58
|
+
*
|
|
59
|
+
* - For perfect schemas: "No improvements required. All schemas meet AutoBE
|
|
60
|
+
* standards."
|
|
61
|
+
* - For fixable issues: List each fix with operation path and exact change
|
|
62
|
+
* - For critical problems: Describe how schemas were recreated or corrected
|
|
63
|
+
*
|
|
64
|
+
* Never leave this empty. Always provide a clear plan even if no changes
|
|
65
|
+
* are needed. The plan documents what was done to produce the content
|
|
66
|
+
* field.
|
|
67
|
+
*/
|
|
68
|
+
plan: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Final validated and enhanced schemas ready for production use.
|
|
72
|
+
*
|
|
73
|
+
* CRITICAL REQUIREMENTS:
|
|
74
|
+
*
|
|
75
|
+
* - MUST NEVER be an empty object {}
|
|
76
|
+
* - MUST contain valid OpenAPI schema definitions
|
|
77
|
+
* - MUST include all entities that were in the original input
|
|
78
|
+
* - If original schemas have critical issues, MUST contain fixed versions
|
|
79
|
+
* - If entity names are wrong, MUST contain renamed correct versions
|
|
80
|
+
* - If schemas are missing variants, MUST include the created variants
|
|
81
|
+
*
|
|
82
|
+
* FORBIDDEN:
|
|
83
|
+
*
|
|
84
|
+
* - Empty object {} will cause all schemas to be deleted
|
|
85
|
+
* - Returning undefined or null
|
|
86
|
+
* - Including explanations or excuses in schema descriptions
|
|
87
|
+
* - Leaving broken schemas unfixed
|
|
88
|
+
*
|
|
89
|
+
* When original schemas are beyond repair, recreate them properly based on
|
|
90
|
+
* entity names and context. This field becomes the final schemas used by
|
|
91
|
+
* the system, so it must always contain complete, valid schemas.
|
|
92
|
+
*/
|
|
93
|
+
content: Record<
|
|
94
|
+
string,
|
|
95
|
+
AutoBeOpenApi.IJsonSchemaDescriptive<AutoBeOpenApi.IJsonSchema>
|
|
96
|
+
>;
|
|
97
|
+
}
|
|
98
|
+
}
|