@autobe/agent 0.17.1 → 0.19.1
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 +2 -10
- package/lib/agent/src/AutoBeAgent.d.ts +52 -0
- package/lib/{AutoBeAgent.js → agent/src/AutoBeAgent.js} +34 -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 +7 -0
- package/lib/{AutoBeMockAgent.js → agent/src/AutoBeMockAgent.js} +40 -5
- package/lib/agent/src/AutoBeMockAgent.js.map +1 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +28 -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 +117 -0
- package/lib/{context → agent/src/context}/AutoBeTokenUsageComponent.js +33 -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/consentFunctionCall.d.ts +10 -0
- package/lib/agent/src/factory/consentFunctionCall.js +212 -0
- package/lib/agent/src/factory/consentFunctionCall.js.map +1 -0
- package/lib/agent/src/factory/createAgenticaHistory.d.ts +7 -0
- package/lib/{factory → agent/src/factory}/createAgenticaHistory.js +1 -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/agent/src/factory/createAutoBeContext.js +271 -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 +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 +6 -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 +6 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +61 -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 +69 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +5 -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 +714 -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 +244 -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/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfaceAssetHistories.js +1 -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 +41 -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 +59 -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 +34 -9
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +1731 -0
- 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 +42 -36
- 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 +24 -38
- 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 +1774 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1328 -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/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +561 -0
- 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 +473 -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 +93 -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 +171 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +132 -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 +107 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +85 -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/interface/utils/validateAuthorizationSchema.d.ts +7 -0
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +35 -0
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.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 +79 -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/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +52 -0
- 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 +40 -14
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaComponent.js +43 -48
- 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 +154 -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} +180 -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 +1662 -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/transformRealizeCorrectHistories.d.ts +14 -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/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +278 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +14 -0
- package/lib/{orchestrate/realize/transformRealizeCoderHistories.js → agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js} +31 -92
- 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 +44 -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 +130 -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 +16 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +352 -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 +14 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +345 -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/IAutoBeRealizeCorrectApplication.d.ts +79 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.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/{orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts → agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts} +22 -88
- 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 +6 -1
- 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 +34 -0
- 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 +4 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +101 -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 +16 -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 +31 -47
- 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 +961 -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 +122 -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/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js +3 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.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/agent/src/utils/predicateStateMessage.d.ts +4 -0
- package/lib/agent/src/utils/predicateStateMessage.js +87 -0
- package/lib/agent/src/utils/predicateStateMessage.js.map +1 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +24 -28
- package/lib/context/AutoBeContext.d.ts +16 -5
- package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
- package/lib/factory/consentFunctionCall.d.ts +10 -0
- package/lib/index.mjs +11323 -5336
- 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 +6 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +6 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +5 -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 +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +4 -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/IAutoBeInterfaceComplementApplication.d.ts +38 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +2 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +16 -16
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +64 -15
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +132 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +46 -14
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +85 -0
- package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -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 -2
- 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/transformRealizeCorrectHistories.d.ts +14 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +14 -0
- package/lib/orchestrate/realize/internal/compile.d.ts +7 -0
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +16 -0
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +91 -0
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +14 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +10 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +79 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +279 -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 +4 -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/IAutoBeTestCorrectApplication.d.ts +6 -5
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +25 -24
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -1
- package/lib/utils/predicateStateMessage.d.ts +4 -0
- package/package.json +9 -9
- package/src/AutoBeAgent.ts +51 -3
- package/src/AutoBeMockAgent.ts +44 -16
- package/src/constants/AutoBeSystemPromptConstant.ts +24 -28
- package/src/context/AutoBeContext.ts +30 -4
- package/src/context/AutoBeTokenUsage.ts +8 -0
- package/src/context/AutoBeTokenUsageComponent.ts +40 -2
- package/src/factory/consentFunctionCall.ts +128 -0
- package/src/factory/createAgenticaHistory.ts +1 -0
- package/src/factory/createAutoBeApplication.ts +3 -11
- package/src/factory/createAutoBeContext.ts +149 -1
- package/src/factory/getAutoBeGenerated.ts +3 -3
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +60 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +34 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +78 -0
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +66 -80
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +89 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +99 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +53 -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/transformInterfaceAssetHistories.ts +1 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +40 -0
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +17 -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 +69 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +57 -10
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +209 -0
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +27 -44
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +28 -34
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +18 -48
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +216 -107
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +101 -0
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +180 -96
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +145 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +49 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +39 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +2 -1
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +16 -16
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +67 -15
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +139 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +47 -14
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +92 -0
- package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +41 -0
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +9 -16
- package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +66 -0
- package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +2 -2
- package/src/orchestrate/prisma/orchestratePrisma.ts +55 -17
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +19 -49
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +96 -58
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +124 -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/histories/transformRealizeAuthorization.ts +48 -0
- package/src/orchestrate/realize/{transformRealizeAuthorizationCorrectHistories.ts → histories/transformRealizeAuthorizationCorrectHistories.ts} +28 -30
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +49 -0
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +285 -0
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +184 -0
- package/src/orchestrate/realize/internal/compile.ts +67 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +125 -30
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +45 -57
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +19 -41
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +122 -0
- package/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts} +15 -15
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +128 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +11 -3
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +81 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +43 -0
- package/src/orchestrate/realize/structures/{IAutoBeRealizeCoderApplication.ts → IAutoBeRealizeWriteApplication.ts} +22 -95
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +10 -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 +121 -0
- package/src/orchestrate/test/{transformTestWriteHistories.ts → histories/transformTestWriteHistories.ts} +3 -3
- package/src/orchestrate/test/orchestrateTest.ts +17 -6
- package/src/orchestrate/test/orchestrateTestCorrect.ts +32 -62
- package/src/orchestrate/test/orchestrateTestScenario.ts +241 -168
- package/src/orchestrate/test/orchestrateTestWrite.ts +48 -71
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +6 -5
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +25 -24
- package/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.ts +7 -0
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +3 -1
- package/src/utils/predicateStateMessage.ts +107 -0
- 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 +0 -141
- 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 +0 -1643
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +0 -411
- 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 +0 -85
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +0 -52
- 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.d.ts +0 -5
- 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 +0 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +0 -56
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js +0 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +0 -2
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -5
- 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 +0 -34
- 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.d.ts +0 -5
- package/lib/utils/pipe.js +0 -14
- 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/structures/IAutoBeRealizeCompile.ts +0 -70
- package/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.ts +0 -2
- package/src/orchestrate/realize/transformRealizeAuthorization.ts +0 -44
- package/src/orchestrate/realize/transformRealizeCoderHistories.ts +0 -248
- 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/src/utils/pipe.ts +0 -39
- /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}/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/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/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 → 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/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}/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
|
@@ -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
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AutoBePrisma } from "@autobe/interface";
|
|
2
|
+
import { tags } from "typia";
|
|
2
3
|
export interface IAutoBePrismaSchemaApplication {
|
|
3
4
|
/**
|
|
4
5
|
* Generates comprehensive Prisma schema files based on detailed requirements
|
|
@@ -17,7 +18,7 @@ export interface IAutoBePrismaSchemaApplication {
|
|
|
17
18
|
export declare namespace IAutoBePrismaSchemaApplication {
|
|
18
19
|
interface IProps {
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Strategic database design analysis and planning.
|
|
21
22
|
*
|
|
22
23
|
* AI analyzes the target component and business requirements to formulate a
|
|
23
24
|
* comprehensive database design strategy. This planning phase is crucial
|
|
@@ -43,167 +44,56 @@ export declare namespace IAutoBePrismaSchemaApplication {
|
|
|
43
44
|
*
|
|
44
45
|
* Workflow: Component analysis → Strategic planning → Design rationale
|
|
45
46
|
*/
|
|
46
|
-
|
|
47
|
+
plan: string;
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Production-ready Prisma schema models generated based on the strategic
|
|
50
|
+
* plan.
|
|
49
51
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
52
|
+
* Contains a structured Abstract Syntax Tree (AST) representation of all
|
|
53
|
+
* database tables for the target component. Each model implements the
|
|
54
|
+
* planned table structure, relationships, indexes, and constraints using
|
|
55
|
+
* the AutoBePrisma.IModel interface. These models are designed to be
|
|
56
|
+
* production-ready from the initial generation, following all best
|
|
57
|
+
* practices and normalization principles.
|
|
56
58
|
*
|
|
57
59
|
* **Implementation Requirements:**
|
|
58
60
|
*
|
|
59
|
-
* - **
|
|
60
|
-
*
|
|
61
|
-
* - **
|
|
62
|
-
*
|
|
63
|
-
* - **Primary Keys**: Always UUID type with
|
|
64
|
-
* - **Foreign Keys**:
|
|
65
|
-
* - **
|
|
66
|
-
*
|
|
67
|
-
* - **
|
|
68
|
-
*
|
|
69
|
-
* - **
|
|
70
|
-
* purpose
|
|
71
|
-
* - **NO Prohibited Fields**: No totals, cached values, aggregates in regular
|
|
72
|
-
* tables
|
|
73
|
-
*
|
|
74
|
-
* Workflow: Strategic plan → PSL implementation → Functional schema code
|
|
75
|
-
*/
|
|
76
|
-
draft: string;
|
|
77
|
-
/**
|
|
78
|
-
* Step 3: Schema code review and quality assessment.
|
|
79
|
-
*
|
|
80
|
-
* AI performs a thorough review of the draft schema implementation,
|
|
81
|
-
* examining multiple quality dimensions to ensure production readiness.
|
|
82
|
-
* This review process identifies issues, suggests improvements, and
|
|
83
|
-
* validates compliance with best practices.
|
|
84
|
-
*
|
|
85
|
-
* **Review Dimensions:**
|
|
86
|
-
*
|
|
87
|
-
* **Syntax & Compilation:**
|
|
88
|
-
*
|
|
89
|
-
* - Prisma schema syntax errors and invalid directives
|
|
90
|
-
* - Model naming matches targetComponent.tables EXACTLY
|
|
91
|
-
* - Field type appropriateness (uuid for keys, no calculated fields)
|
|
92
|
-
* - Relationship definition correctness (`@relation` syntax)
|
|
93
|
-
*
|
|
94
|
-
* **Database Design Quality:**
|
|
95
|
-
*
|
|
96
|
-
* - **Normalization Compliance**:
|
|
97
|
-
*
|
|
98
|
-
* - 1NF: Atomic values, no repeating groups
|
|
99
|
-
* - 2NF: No partial dependencies on composite keys
|
|
100
|
-
* - 3NF: No transitive dependencies
|
|
101
|
-
* - **Prohibited Fields Check**: No pre-calculated totals, cached values, or
|
|
102
|
-
* aggregates in regular tables
|
|
103
|
-
* - **Snapshot Pattern**: Proper implementation for audit trails
|
|
104
|
-
* - **Junction Tables**: Correct naming ({table1}_{table2}) and structure
|
|
105
|
-
*
|
|
106
|
-
* **Index Strategy Validation:**
|
|
107
|
-
*
|
|
108
|
-
* - NO single foreign key indexes (Prisma auto-creates these)
|
|
109
|
-
* - Composite indexes for query patterns
|
|
110
|
-
* - Unique indexes for business constraints
|
|
111
|
-
* - GIN indexes for full-text search fields
|
|
112
|
-
*
|
|
113
|
-
* **Description Quality:**
|
|
114
|
-
*
|
|
115
|
-
* - Models include: requirement mapping, business purpose, relationships,
|
|
116
|
-
* behaviors
|
|
117
|
-
* - Fields include: requirement aspect, business meaning, normalization
|
|
118
|
-
* rationale
|
|
119
|
-
*
|
|
120
|
-
* Workflow: Draft schema → Systematic analysis → Specific improvements
|
|
121
|
-
*/
|
|
122
|
-
review: string;
|
|
123
|
-
/**
|
|
124
|
-
* Step 4: Final production-ready Prisma schema code.
|
|
125
|
-
*
|
|
126
|
-
* AI produces the final, polished version of the Prisma schema
|
|
127
|
-
* incorporating all review feedback. This code represents the completed
|
|
128
|
-
* schema implementation, ready for database migration and production
|
|
129
|
-
* deployment. All identified issues must be resolved, and the schema must
|
|
130
|
-
* meet enterprise-grade quality standards.
|
|
131
|
-
*
|
|
132
|
-
* **Final Schema Characteristics:**
|
|
133
|
-
*
|
|
134
|
-
* - **Complete Coverage**: All targetComponent.tables implemented with exact
|
|
135
|
-
* names
|
|
136
|
-
* - **Zero Errors**: Valid PSL syntax, no compilation warnings
|
|
137
|
-
* - **Proper Relationships**: All foreign keys reference existing tables
|
|
138
|
-
* correctly
|
|
139
|
-
* - **Optimized Indexes**: Strategic indexes without redundant foreign key
|
|
140
|
-
* indexes
|
|
141
|
-
* - **Full Normalization**: Strict 3NF compliance, denormalization only in
|
|
142
|
-
* mv_ tables
|
|
143
|
-
* - **Enterprise Documentation**: Complete descriptions with business context
|
|
144
|
-
* - **Audit Support**: Proper snapshot patterns and temporal fields
|
|
145
|
-
* (created_at, updated_at, deleted_at)
|
|
146
|
-
* - **Type Safety**: Consistent use of UUID for all keys, appropriate field
|
|
147
|
-
* types
|
|
148
|
-
*
|
|
149
|
-
* Workflow: Review feedback → Schema refinement → Production-ready PSL code
|
|
150
|
-
*/
|
|
151
|
-
final: string;
|
|
152
|
-
/**
|
|
153
|
-
* Step 5: Structured AST representation of the Prisma schema models.
|
|
154
|
-
*
|
|
155
|
-
* AI transforms the final Prisma schema code into a structured Abstract
|
|
156
|
-
* Syntax Tree (AST) representation using the AutoBePrisma.IModel interface.
|
|
157
|
-
* This involves critical reinterpretation and reclassification of the final
|
|
158
|
-
* code to conform to AST constraints.
|
|
159
|
-
*
|
|
160
|
-
* **CRITICAL: Reinterpretation & Post-Processing Required**
|
|
161
|
-
*
|
|
162
|
-
* The AI-generated final code may not directly map to valid AST structures
|
|
163
|
-
* due to:
|
|
164
|
-
*
|
|
165
|
-
* - Complex Prisma directives that need decomposition
|
|
166
|
-
* - Field attributes that require reclassification
|
|
167
|
-
* - Implicit relationships that need explicit AST representation
|
|
168
|
-
* - Schema-level constructs that must be distributed to models
|
|
169
|
-
*
|
|
170
|
-
* **Required Post-Processing Steps:**
|
|
171
|
-
*
|
|
172
|
-
* 1. **Field Reclassification**: Separate fields into primary, foreign, and
|
|
173
|
-
* plain categories
|
|
174
|
-
* 2. **Relationship Extraction**: Convert `@relation` directives to IRelation
|
|
175
|
-
* structures
|
|
176
|
-
* 3. **Index Decomposition**: Parse `@@index`, `@@unique` into appropriate
|
|
177
|
-
* index arrays
|
|
178
|
-
* 4. **Type Normalization**: Map Prisma types to AST type enum values
|
|
179
|
-
* 5. **Constraint Resolution**: Convert schema constraints to AST properties
|
|
180
|
-
*
|
|
181
|
-
* **AST Structure Requirements:**
|
|
182
|
-
*
|
|
183
|
-
* - **Model Array**: Each table from targetComponent.tables as IModel
|
|
184
|
-
* - **Primary Field**: Always UUID type with name "id"
|
|
185
|
-
* - **Foreign Fields**: Proper IRelation configurations for all relationships
|
|
186
|
-
* - **Plain Fields**: Business fields with correct types (no calculated
|
|
187
|
-
* fields)
|
|
61
|
+
* - **Model Count**: Exactly matches targetComponent.tables.length (plus any
|
|
62
|
+
* junction tables)
|
|
63
|
+
* - **Table Names**: EXACT names from targetComponent.tables - no
|
|
64
|
+
* modifications allowed
|
|
65
|
+
* - **Primary Keys**: Always UUID type with field name "id"
|
|
66
|
+
* - **Foreign Keys**: Proper IRelation configurations for all relationships
|
|
67
|
+
* - **Business Fields**: Only raw data fields - no calculated or derived
|
|
68
|
+
* values
|
|
69
|
+
* - **Data Types**: Limited to: uuid, string, int, double, datetime, boolean,
|
|
70
|
+
* uri
|
|
71
|
+
* - **Relationships**: Correct patterns for 1:1, 1:N, and M:N relationships
|
|
188
72
|
* - **Indexes**:
|
|
189
73
|
*
|
|
190
74
|
* - UniqueIndexes: Business constraints and composite unique keys
|
|
191
|
-
* - PlainIndexes:
|
|
192
|
-
* - GinIndexes: Full-text search on string fields
|
|
193
|
-
* - **
|
|
194
|
-
*
|
|
195
|
-
* **
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
75
|
+
* - PlainIndexes: Multi-column query optimization (never single FK indexes)
|
|
76
|
+
* - GinIndexes: Full-text search on appropriate string fields
|
|
77
|
+
* - **Materialized Views**: Tables prefixed with "mv_" have material flag set
|
|
78
|
+
* to true
|
|
79
|
+
* - **Documentation**: Comprehensive English descriptions with business
|
|
80
|
+
* context
|
|
81
|
+
*
|
|
82
|
+
* **Quality Standards:**
|
|
83
|
+
*
|
|
84
|
+
* - **Normalization**: Strict adherence to 3NF (Third Normal Form)
|
|
85
|
+
* - **No Denormalization**: Except in materialized views (mv_ tables)
|
|
86
|
+
* - **Referential Integrity**: All foreign keys reference valid existing
|
|
87
|
+
* tables
|
|
88
|
+
* - **Temporal Fields**: Consistent created_at, updated_at, deleted_at
|
|
89
|
+
* patterns
|
|
90
|
+
* - **Snapshot Support**: Proper historical data preservation where needed
|
|
91
|
+
* - **Performance Ready**: Optimized index strategy for expected query
|
|
92
|
+
* patterns
|
|
203
93
|
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
94
|
+
* The generated models will undergo review by a separate specialized agent
|
|
95
|
+
* to ensure compliance with all requirements and best practices.
|
|
206
96
|
*/
|
|
207
|
-
models: AutoBePrisma.IModel[]
|
|
97
|
+
models: AutoBePrisma.IModel[] & tags.MinItems<1>;
|
|
208
98
|
}
|
|
209
99
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBeAnalyzeRole } from "@autobe/interface";
|
|
3
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
4
|
+
import { AutoBeContext } from "../../../context/AutoBeContext";
|
|
5
|
+
export declare const transformRealizeAuthorizationHistories: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, role: AutoBeAnalyzeRole) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBeRealizeAuthorization, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
|
|
3
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
4
|
+
import { AutoBeContext } from "../../../context/AutoBeContext";
|
|
5
|
+
export declare const transformRealizeAuthorizationCorrectHistories: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, auth: AutoBeRealizeAuthorization, templateFiles: Record<string, string>, diagnostics: IAutoBeTypeScriptCompileResult.IDiagnostic[]) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBeRealizeAuthorization, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
|
|
3
|
+
import { AutoBeState } from "../../../context/AutoBeState";
|
|
4
|
+
import { IAutoBeTestScenarioArtifacts } from "../../test/structures/IAutoBeTestScenarioArtifacts";
|
|
5
|
+
import { IAutoBeRealizeScenarioApplication } from "../structures/IAutoBeRealizeScenarioApplication";
|
|
6
|
+
export declare function transformRealizeCorrectHistories(props: {
|
|
7
|
+
state: AutoBeState;
|
|
8
|
+
scenario: IAutoBeRealizeScenarioApplication.IProps;
|
|
9
|
+
artifacts: IAutoBeTestScenarioArtifacts;
|
|
10
|
+
authorization: AutoBeRealizeAuthorization | null;
|
|
11
|
+
totalAuthorizations: AutoBeRealizeAuthorization[];
|
|
12
|
+
code: string;
|
|
13
|
+
diagnostic: IAutoBeTypeScriptCompileResult.IDiagnostic;
|
|
14
|
+
}): Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
3
|
+
export declare const transformRealizeWriteAuthorizationsHistories: (operation: AutoBeOpenApi.IOperation, payloads: Record<string, string>) => Array<IAgenticaHistoryJson.ISystemMessage>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
+
import { AutoBeRealizeAuthorization } from "@autobe/interface";
|
|
3
|
+
import { AutoBeState } from "../../../context/AutoBeState";
|
|
4
|
+
import { IAutoBeTestScenarioArtifacts } from "../../test/structures/IAutoBeTestScenarioArtifacts";
|
|
5
|
+
import { IAutoBeRealizeScenarioApplication } from "../structures/IAutoBeRealizeScenarioApplication";
|
|
6
|
+
export declare const transformRealizeWriteHistories: (props: IProps) => Array<IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage>;
|
|
7
|
+
interface IProps {
|
|
8
|
+
state: AutoBeState;
|
|
9
|
+
scenario: IAutoBeRealizeScenarioApplication.IProps;
|
|
10
|
+
artifacts: IAutoBeTestScenarioArtifacts;
|
|
11
|
+
authorization: AutoBeRealizeAuthorization | null;
|
|
12
|
+
totalAuthorizations: AutoBeRealizeAuthorization[];
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AutoBeRealizeAuthorization, AutoBeRealizeFunction, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
3
|
+
import { AutoBeContext } from "../../../context/AutoBeContext";
|
|
4
|
+
export declare function compile<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: {
|
|
5
|
+
authorizations: AutoBeRealizeAuthorization[];
|
|
6
|
+
functions: AutoBeRealizeFunction[];
|
|
7
|
+
}): Promise<IAutoBeTypeScriptCompileResult>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AutoBeRealizeAuthorization, AutoBeRealizeCorrectEvent, IAutoBeTypeScriptCompileResult } from "@autobe/interface";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
3
|
+
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
|
+
import { IAutoBeRealizeScenarioApplication } from "./structures/IAutoBeRealizeScenarioApplication";
|
|
5
|
+
export declare function orchestrateRealizeCorrect<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: {
|
|
6
|
+
authorization: AutoBeRealizeAuthorization | null;
|
|
7
|
+
totalAuthorizations: AutoBeRealizeAuthorization[];
|
|
8
|
+
scenario: IAutoBeRealizeScenarioApplication.IProps;
|
|
9
|
+
code: string;
|
|
10
|
+
diagnostic: IAutoBeTypeScriptCompileResult.IDiagnostic;
|
|
11
|
+
progress: IProgress;
|
|
12
|
+
}): Promise<AutoBeRealizeCorrectEvent>;
|
|
13
|
+
export interface IProgress {
|
|
14
|
+
total: number;
|
|
15
|
+
completed: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { AutoBeOpenApi, AutoBeRealizeAuthorization } from "@autobe/interface";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
3
|
+
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
|
+
import { IAutoBeRealizeScenarioApplication } from "./structures/IAutoBeRealizeScenarioApplication";
|
|
5
|
+
export interface IAutoBeRealizeScenario {
|
|
6
|
+
/**
|
|
7
|
+
* The name of the function to be generated.
|
|
8
|
+
*
|
|
9
|
+
* Derived from the Swagger path and method. The function name must be written
|
|
10
|
+
* in snake_case. It serves as the entry point in both code generation and
|
|
11
|
+
* test code.
|
|
12
|
+
*
|
|
13
|
+
* Once the function is generated, the function name and file name will be the
|
|
14
|
+
* same. The generated file will be located at
|
|
15
|
+
* `src/providers/${function_name}.ts`.
|
|
16
|
+
*/
|
|
17
|
+
functionName: string;
|
|
18
|
+
/**
|
|
19
|
+
* Definition of path and query parameters extracted from the OpenAPI spec.
|
|
20
|
+
*
|
|
21
|
+
* Includes input values passed via URL path or query string. Used for type
|
|
22
|
+
* definitions, validation, and function signature construction.
|
|
23
|
+
*/
|
|
24
|
+
parameters: AutoBeOpenApi.IParameter[];
|
|
25
|
+
/**
|
|
26
|
+
* Schema definition for the request body input.
|
|
27
|
+
*
|
|
28
|
+
* Extracted from the requestBody section of Swagger. Represents the input
|
|
29
|
+
* data passed in the body (e.g., JSON). Used for generating function
|
|
30
|
+
* arguments or DTOs.
|
|
31
|
+
*/
|
|
32
|
+
inputSchema: AutoBeOpenApi.IRequestBody | null;
|
|
33
|
+
/**
|
|
34
|
+
* Schema definition for the response body.
|
|
35
|
+
*
|
|
36
|
+
* Extracted from the responses section of Swagger. Used to define the return
|
|
37
|
+
* type and expected output in test code.
|
|
38
|
+
*/
|
|
39
|
+
outputSchema: AutoBeOpenApi.IResponseBody | null;
|
|
40
|
+
/**
|
|
41
|
+
* Natural language description of the function’s purpose.
|
|
42
|
+
*
|
|
43
|
+
* Extracted from the summary or description field of Swagger. Used for code
|
|
44
|
+
* documentation, test scenario generation, and conveying function intent.
|
|
45
|
+
*/
|
|
46
|
+
description: string;
|
|
47
|
+
/**
|
|
48
|
+
* HTTP method information.
|
|
49
|
+
*
|
|
50
|
+
* Extracted from the Swagger operation method. Used to define the request
|
|
51
|
+
* type during code and test generation.
|
|
52
|
+
*/
|
|
53
|
+
method: "get" | "post" | "put" | "delete" | "patch";
|
|
54
|
+
/**
|
|
55
|
+
* List of scenario descriptions for test code generation.
|
|
56
|
+
*
|
|
57
|
+
* Each scenario describes the expected behavior of the function under certain
|
|
58
|
+
* conditions. Used as a basis for TDD-style automated test generation.
|
|
59
|
+
*/
|
|
60
|
+
testScenarios: string[];
|
|
61
|
+
/**
|
|
62
|
+
* Optional decorator event for customizing code generation behavior.
|
|
63
|
+
*
|
|
64
|
+
* Provides additional metadata or instructions that can modify how the
|
|
65
|
+
* function implementation is generated. Can include custom annotations,
|
|
66
|
+
* middleware configurations, or special handling directives that affect the
|
|
67
|
+
* final code output.
|
|
68
|
+
*/
|
|
69
|
+
decoratorEvent?: AutoBeRealizeAuthorization;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Generates a planning result that defines what kind of function should be
|
|
73
|
+
* created, based solely on the provided Swagger (OpenAPI) operation — without
|
|
74
|
+
* using an LLM.
|
|
75
|
+
*
|
|
76
|
+
* This function analyzes the structure of the OpenAPI operation (such as the
|
|
77
|
+
* path, method, parameters, request/response schema, and descriptions) to
|
|
78
|
+
* determine the appropriate function name, input/output types, and purpose of
|
|
79
|
+
* the function.
|
|
80
|
+
*
|
|
81
|
+
* The result of this function (`RealizePlannerOutput`) will be passed to the
|
|
82
|
+
* next step in the AutoBE pipeline, which is responsible for generating the
|
|
83
|
+
* actual implementation code.
|
|
84
|
+
*
|
|
85
|
+
* @author Kakasoo
|
|
86
|
+
* @param ctx - AutoBE context including model and configuration
|
|
87
|
+
* @param operation - A single OpenAPI operation object to analyze and plan
|
|
88
|
+
* @returns A planning object containing all structural information needed to
|
|
89
|
+
* generate the function
|
|
90
|
+
*/
|
|
91
|
+
export declare const orchestrateRealizeScenario: <Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, operation: AutoBeOpenApi.IOperation, authorization?: AutoBeRealizeAuthorization) => IAutoBeRealizeScenarioApplication.IProps;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AutoBeRealizeAuthorization, AutoBeRealizeWriteEvent } from "@autobe/interface";
|
|
2
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
3
|
+
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
|
+
import { IAutoBeRealizeScenarioApplication } from "./structures/IAutoBeRealizeScenarioApplication";
|
|
5
|
+
export declare function orchestrateRealizeWrite<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: {
|
|
6
|
+
totalAuthorizations: AutoBeRealizeAuthorization[];
|
|
7
|
+
authorization: AutoBeRealizeAuthorization | null;
|
|
8
|
+
scenario: IAutoBeRealizeScenarioApplication.IProps;
|
|
9
|
+
progress: IProgress;
|
|
10
|
+
}): Promise<AutoBeRealizeWriteEvent>;
|
|
11
|
+
export interface IProgress {
|
|
12
|
+
total: number;
|
|
13
|
+
completed: number;
|
|
14
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CamelPattern, PascalPattern } from "@autobe/interface";
|
|
1
2
|
export interface IAutoBeRealizeAuthorizationApplication {
|
|
2
3
|
createDecorator: (next: IAutoBeRealizeAuthorizationApplication.IProps) => void;
|
|
3
4
|
}
|
|
@@ -32,8 +33,10 @@ export declare namespace IAutoBeRealizeAuthorizationApplication {
|
|
|
32
33
|
* format (e.g., adminAuthorize, userAuthorize). This function will be
|
|
33
34
|
* called by the decorator to verify JWT tokens and return authenticated
|
|
34
35
|
* user information for the specified role.
|
|
36
|
+
*
|
|
37
|
+
* DO: Use camelCase naming convention.
|
|
35
38
|
*/
|
|
36
|
-
name: string;
|
|
39
|
+
name: string & CamelPattern;
|
|
37
40
|
/**
|
|
38
41
|
* Complete TypeScript code for the authentication Provider function. Must
|
|
39
42
|
* include: JWT token verification using jwtAuthorize function, role type
|
|
@@ -51,8 +54,10 @@ export declare namespace IAutoBeRealizeAuthorizationApplication {
|
|
|
51
54
|
* decorator in Controller methods to automatically authenticate and
|
|
52
55
|
* authorize users for the specific role, injecting the authenticated user
|
|
53
56
|
* payload as a method parameter.
|
|
57
|
+
*
|
|
58
|
+
* DO: Use PascalCase naming convention.
|
|
54
59
|
*/
|
|
55
|
-
name: string;
|
|
60
|
+
name: string & PascalPattern;
|
|
56
61
|
/**
|
|
57
62
|
* Complete TypeScript code for the authentication Decorator implementation.
|
|
58
63
|
* Must include: SwaggerCustomizer integration to add bearer token security
|
|
@@ -69,8 +74,10 @@ export declare namespace IAutoBeRealizeAuthorizationApplication {
|
|
|
69
74
|
* (e.g., AdminPayload, UserPayload). This type defines the structure of the
|
|
70
75
|
* authenticated user data that will be injected into Controller methods
|
|
71
76
|
* when using the decorator.
|
|
77
|
+
*
|
|
78
|
+
* DO: Use PascalCase naming convention.
|
|
72
79
|
*/
|
|
73
|
-
name: string;
|
|
80
|
+
name: string & PascalPattern;
|
|
74
81
|
/**
|
|
75
82
|
* Complete TypeScript code for the Payload type interface in {Role}Payload
|
|
76
83
|
* format (e.g., AdminPayload, UserPayload). Must include: id field with
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { IAutoBeRealizeWriteApplication } from "./IAutoBeRealizeWriteApplication";
|
|
2
|
+
export interface IAutoBeRealizeCorrectApplication {
|
|
3
|
+
review: (props: IAutoBeRealizeCorrectApplication.IProps) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace IAutoBeRealizeCorrectApplication {
|
|
6
|
+
interface IProps extends IAutoBeRealizeWriteApplication.IProps {
|
|
7
|
+
/**
|
|
8
|
+
* Compilation Error Analysis and Resolution Strategy
|
|
9
|
+
*
|
|
10
|
+
* This field contains a detailed analysis of TypeScript compilation errors
|
|
11
|
+
* that occurred during the previous compilation attempt, along with
|
|
12
|
+
* specific strategies to resolve each error.
|
|
13
|
+
*
|
|
14
|
+
* The analysis MUST include:
|
|
15
|
+
*
|
|
16
|
+
* 📊 ERROR BREAKDOWN:
|
|
17
|
+
*
|
|
18
|
+
* - List of all TypeScript error codes encountered (e.g., TS2339, TS2345)
|
|
19
|
+
* - Exact error messages and the lines/files where they occurred
|
|
20
|
+
* - Categorization of errors by type (type mismatch, missing property, etc.)
|
|
21
|
+
*
|
|
22
|
+
* 🔍 ROOT CAUSE ANALYSIS:
|
|
23
|
+
*
|
|
24
|
+
* - Why each error occurred (e.g., incorrect type assumptions, missing
|
|
25
|
+
* fields)
|
|
26
|
+
* - Relationship between errors (e.g., cascading errors from a single issue)
|
|
27
|
+
* - Common patterns identified across multiple errors
|
|
28
|
+
*
|
|
29
|
+
* 🛠 RESOLUTION STRATEGY:
|
|
30
|
+
*
|
|
31
|
+
* - Specific fixes for each error type
|
|
32
|
+
* - Priority order for addressing errors (fix critical errors first)
|
|
33
|
+
* - Alternative approaches if the direct fix is not possible
|
|
34
|
+
*
|
|
35
|
+
* 📝 SCHEMA VERIFICATION:
|
|
36
|
+
*
|
|
37
|
+
* - Re-verification of Prisma schema fields actually available
|
|
38
|
+
* - Identification of assumed fields that don't exist
|
|
39
|
+
* - Correct field types and relationships
|
|
40
|
+
*
|
|
41
|
+
* ⚠️ COMMON ERROR PATTERNS TO CHECK:
|
|
42
|
+
*
|
|
43
|
+
* - Using non-existent fields (e.g., deleted_at, created_by)
|
|
44
|
+
* - Type mismatches in Prisma operations
|
|
45
|
+
* - Incorrect date handling (using Date instead of string)
|
|
46
|
+
* - Missing required fields in create/update operations
|
|
47
|
+
* - Incorrect relation handling in nested operations
|
|
48
|
+
*
|
|
49
|
+
* 🎯 CORRECTION APPROACH:
|
|
50
|
+
*
|
|
51
|
+
* - Remove references to non-existent fields
|
|
52
|
+
* - Fix type conversions (especially dates with toISOStringSafe())
|
|
53
|
+
* - Simplify complex nested operations into separate queries
|
|
54
|
+
* - Add missing required fields
|
|
55
|
+
* - Use correct Prisma input types
|
|
56
|
+
*
|
|
57
|
+
* Example structure:
|
|
58
|
+
*
|
|
59
|
+
* Errors Found:
|
|
60
|
+
* 1. TS2339: Property 'deleted_at' does not exist on type 'User'
|
|
61
|
+
* - Cause: Field assumed but not in schema
|
|
62
|
+
* - Fix: Remove all deleted_at references
|
|
63
|
+
*
|
|
64
|
+
* 2. TS2345: Type 'Date' is not assignable to type 'string'
|
|
65
|
+
* - Cause: Direct Date assignment without conversion
|
|
66
|
+
* - Fix: Use toISOStringSafe() for all date values
|
|
67
|
+
*
|
|
68
|
+
* Resolution Plan:
|
|
69
|
+
* 1. First, remove all non-existent field references
|
|
70
|
+
* 2. Then, fix all date type conversions
|
|
71
|
+
* 3. Finally, adjust Prisma query structures
|
|
72
|
+
*
|
|
73
|
+
* This analysis ensures the review process addresses all compilation errors
|
|
74
|
+
* systematically and produces error-free code in the corrected
|
|
75
|
+
* implementation.
|
|
76
|
+
*/
|
|
77
|
+
errorAnalysis: string;
|
|
78
|
+
}
|
|
79
|
+
}
|