@autobe/agent 0.21.0 → 0.22.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/agent/src/AutoBeAgent.js +2 -2
- package/lib/agent/src/AutoBeAgent.js.map +1 -1
- package/lib/agent/src/constants/AutoBeConfigConstant.d.ts +3 -0
- package/lib/agent/src/{orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js → constants/AutoBeConfigConstant.js} +1 -1
- package/lib/agent/src/constants/AutoBeConfigConstant.js.map +1 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +27 -27
- package/lib/agent/src/context/AutoBeContext.d.ts +1 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js +4 -3
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -1
- package/lib/agent/src/factory/consentFunctionCall.js +4 -4
- package/lib/agent/src/factory/consentFunctionCall.js.map +1 -1
- package/lib/agent/src/factory/createAutoBeContext.js +13 -10
- package/lib/agent/src/factory/createAutoBeContext.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +2 -2
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +6 -6
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +50 -8
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +4 -4
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +6 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +4 -0
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js +1 -1
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +19 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js +5 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +16 -10
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js +3731 -228
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js +2 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +2 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +43 -63
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1261 -1628
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +3468 -105
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +6 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +3674 -360
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -38
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +48 -141
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +29 -23
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.d.ts +9 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js +1385 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js +78 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.d.ts +10 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js +59 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +2 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js +81 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js +2 -2
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +2 -2
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +6 -6
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +22 -7
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -8
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +13 -29
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js +2 -8
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +6 -49
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js +4 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +5 -3
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +13 -6
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +206 -118
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +24 -39
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +17 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +20 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +33 -73
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +1 -0
- package/{src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts → lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts} +2 -13
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +33 -22
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +31 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +86 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.d.ts +4 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js +55 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +2 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js +20 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +30 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js +73 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +6 -2
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +63 -69
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +3 -1
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js +25 -18
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js +5 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.d.ts +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js +19 -0
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.d.ts +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js +21 -0
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js.map +1 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +2 -2
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +16 -17
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +5 -4
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +21 -2
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTest.js +6 -0
- package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +123 -75
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +46 -40
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js +117 -45
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +48 -45
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +6 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js +3 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +13 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.d.ts +5 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js +28 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeConfig.d.ts +2 -0
- package/lib/constants/AutoBeConfigConstant.d.ts +3 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +27 -27
- package/lib/context/AutoBeContext.d.ts +1 -0
- package/lib/index.mjs +13871 -3912
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +6 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +4 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +6 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -38
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +48 -141
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +29 -23
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.d.ts +9 -0
- package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +5 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +10 -0
- package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +2 -0
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.d.ts +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +6 -6
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -8
- package/lib/orchestrate/realize/internal/compileRealizeFiles.d.ts +2 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +13 -6
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +2 -2
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -2
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +17 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +20 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +33 -73
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +5 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +36 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +33 -22
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +31 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.d.ts +4 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +2 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +30 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.d.ts +6 -2
- package/lib/orchestrate/test/compile/completeTestCode.d.ts +3 -1
- package/lib/orchestrate/test/compile/getTestImportStatements.d.ts +2 -0
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +1 -1
- package/lib/orchestrate/test/compile/getTestTemplateCode.d.ts +2 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +48 -45
- package/lib/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +6 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +13 -0
- package/lib/orchestrate/test/utils/getReferenceIds.d.ts +5 -0
- package/lib/structures/IAutoBeConfig.d.ts +2 -0
- package/package.json +6 -6
- package/src/AutoBeAgent.ts +2 -0
- package/src/constants/AutoBeConfigConstant.ts +3 -0
- package/src/constants/AutoBeSystemPromptConstant.ts +27 -27
- package/src/context/AutoBeContext.ts +1 -0
- package/src/context/AutoBeTokenUsageComponent.ts +3 -3
- package/src/factory/consentFunctionCall.ts +2 -0
- package/src/factory/createAutoBeContext.ts +145 -136
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +6 -0
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +4 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +19 -1
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +1 -4
- package/src/orchestrate/interface/orchestrateInterface.ts +15 -4
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +13 -5
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +58 -19
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +11 -11
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +13 -117
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +35 -93
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +74 -97
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +0 -39
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +50 -146
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +31 -27
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +171 -0
- package/src/orchestrate/interface/utils/JsonSchemaNamingConvention.ts +83 -0
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +66 -0
- package/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.ts +90 -0
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +1 -2
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +30 -15
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +27 -49
- package/src/orchestrate/realize/internal/compileRealizeFiles.ts +4 -11
- package/src/orchestrate/realize/orchestrateRealize.ts +19 -75
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +114 -25
- package/src/orchestrate/realize/orchestrateRealizeScenario.ts +2 -2
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +11 -15
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +17 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +20 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +40 -74
- package/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.ts +9 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.ts +45 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +33 -22
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +97 -0
- package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +64 -0
- package/src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts +29 -0
- package/src/orchestrate/realize/utils/getRealizeWriteInputType.ts +82 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +101 -111
- package/src/orchestrate/test/compile/completeTestCode.ts +18 -31
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +12 -0
- package/src/orchestrate/test/compile/getTestImportStatements.ts +25 -0
- package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +6 -1
- package/src/orchestrate/test/compile/getTestTemplateCode.ts +25 -0
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +26 -26
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +6 -5
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +19 -0
- package/src/orchestrate/test/orchestrateTest.ts +6 -0
- package/src/orchestrate/test/orchestrateTestCorrect.ts +44 -20
- package/src/orchestrate/test/orchestrateTestScenario.ts +52 -48
- package/src/orchestrate/test/orchestrateTestWrite.ts +20 -10
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +49 -46
- package/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.ts +8 -0
- package/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.ts +1 -0
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +14 -0
- package/src/orchestrate/test/utils/getReferenceIds.ts +25 -0
- package/src/structures/IAutoBeConfig.ts +3 -0
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +0 -35
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +0 -38
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +0 -1
- package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +0 -38
- package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +0 -41
|
@@ -82,7 +82,7 @@ function orchestrateTestWrite(ctx, scenarios) {
|
|
|
82
82
|
event,
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
catch (
|
|
85
|
+
catch (error) {
|
|
86
86
|
return null;
|
|
87
87
|
}
|
|
88
88
|
})));
|
|
@@ -91,7 +91,7 @@ function orchestrateTestWrite(ctx, scenarios) {
|
|
|
91
91
|
}
|
|
92
92
|
function process(ctx, props) {
|
|
93
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
var _a, _b;
|
|
94
|
+
var _a, _b, _c, _d;
|
|
95
95
|
const { scenario, artifacts, progress, promptCacheKey } = props;
|
|
96
96
|
const pointer = {
|
|
97
97
|
value: null,
|
|
@@ -101,7 +101,6 @@ function process(ctx, props) {
|
|
|
101
101
|
histories: yield (0, transformTestWriteHistories_1.transformTestWriteHistories)(ctx, scenario, artifacts),
|
|
102
102
|
controller: createController({
|
|
103
103
|
model: ctx.model,
|
|
104
|
-
artifacts,
|
|
105
104
|
build: (next) => {
|
|
106
105
|
pointer.value = next;
|
|
107
106
|
},
|
|
@@ -110,11 +109,27 @@ function process(ctx, props) {
|
|
|
110
109
|
promptCacheKey,
|
|
111
110
|
message: "Create e2e test functions.",
|
|
112
111
|
});
|
|
113
|
-
if (pointer.value === null)
|
|
112
|
+
if (pointer.value === null) {
|
|
113
|
+
++progress.completed;
|
|
114
114
|
throw new Error("Failed to create test code.");
|
|
115
|
-
|
|
116
|
-
pointer.value.final = yield
|
|
117
|
-
|
|
115
|
+
}
|
|
116
|
+
pointer.value.revise.final = yield (0, completeTestCode_1.completeTestCode)(ctx, artifacts, pointer.value.revise.final);
|
|
117
|
+
pointer.value.draft = yield (0, completeTestCode_1.completeTestCode)(ctx, artifacts, pointer.value.draft);
|
|
118
|
+
return {
|
|
119
|
+
type: "testWrite",
|
|
120
|
+
id: (0, uuid_1.v7)(),
|
|
121
|
+
created_at: new Date().toISOString(),
|
|
122
|
+
location: `test/features/api/${pointer.value.domain}/${scenario.functionName}.ts`,
|
|
123
|
+
scenario: pointer.value.scenario,
|
|
124
|
+
domain: pointer.value.domain,
|
|
125
|
+
draft: pointer.value.draft,
|
|
126
|
+
review: (_a = pointer.value.revise) === null || _a === void 0 ? void 0 : _a.review,
|
|
127
|
+
final: (_b = pointer.value.revise) === null || _b === void 0 ? void 0 : _b.final,
|
|
128
|
+
tokenUsage,
|
|
129
|
+
completed: ++progress.completed,
|
|
130
|
+
total: progress.total,
|
|
131
|
+
step: (_d = (_c = ctx.state().interface) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 0,
|
|
132
|
+
};
|
|
118
133
|
});
|
|
119
134
|
}
|
|
120
135
|
function createController(props) {
|
|
@@ -126,8 +141,6 @@ function createController(props) {
|
|
|
126
141
|
application,
|
|
127
142
|
execute: {
|
|
128
143
|
write: (next) => {
|
|
129
|
-
next.draft = (0, completeTestCode_1.completeTestCode)(props.artifacts, next.draft);
|
|
130
|
-
next.final = (0, completeTestCode_1.completeTestCode)(props.artifacts, next.final);
|
|
131
144
|
props.build(next);
|
|
132
145
|
},
|
|
133
146
|
},
|
|
@@ -159,27 +172,40 @@ const claude = {
|
|
|
159
172
|
description: "Step 3: Initial TypeScript E2E test code implementation.\n\nAI generates the first working version of the test code based on the\nstrategic plan. This draft must be compilation-error-free and follow",
|
|
160
173
|
type: "string"
|
|
161
174
|
},
|
|
162
|
-
|
|
163
|
-
description: "
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
final: {
|
|
167
|
-
description: "Step 5: Final production-ready test code.\n\nAI produces the final, polished version of the test code incorporating\nall review feedback. This code represents the completed test\nimplementation, ready for production deployment. All identified issues\nmust be resolved, and the code must meet the highest quality standards.\n\nWorkflow: Review feedback \u2192 Code refinement \u2192 Production-ready\nimplementation\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite.",
|
|
168
|
-
type: "string"
|
|
175
|
+
revise: {
|
|
176
|
+
description: "Steps 4-5: Code review and final refinement process.\n\nContains the iterative improvement workflow that transforms the initial\ndraft into production-ready test code. This two-phase process ensures\nsystematic quality enhancement through comprehensive review followed by\ntargeted refinement based on identified issues.\n\nWorkflow: Draft \u2192 Review analysis \u2192 Final implementation",
|
|
177
|
+
$ref: "#/$defs/IAutoBeTestWriteApplication.IReviseProps"
|
|
169
178
|
}
|
|
170
179
|
},
|
|
171
180
|
required: [
|
|
172
181
|
"scenario",
|
|
173
182
|
"domain",
|
|
174
183
|
"draft",
|
|
175
|
-
"
|
|
176
|
-
"final"
|
|
184
|
+
"revise"
|
|
177
185
|
],
|
|
178
186
|
additionalProperties: false,
|
|
179
|
-
$defs: {
|
|
187
|
+
$defs: {
|
|
188
|
+
"IAutoBeTestWriteApplication.IReviseProps": {
|
|
189
|
+
type: "object",
|
|
190
|
+
properties: {
|
|
191
|
+
review: {
|
|
192
|
+
description: "Step 4: Code review and quality assessment.\n\nAI performs a thorough review of the draft implementation, examining:\n\n**Compilation & Syntax:**\n\n- TypeScript compilation errors and type mismatches\n- Syntax errors and missing semicolons/brackets\n- Correct function signatures and parameter types\n\n**Framework Compliance:**\n\n-",
|
|
193
|
+
type: "string"
|
|
194
|
+
},
|
|
195
|
+
final: {
|
|
196
|
+
description: "Step 5: Final production-ready test code.\n\nAI produces the final, polished version of the test code incorporating\nall review feedback. This code represents the completed test\nimplementation, ready for production deployment. All identified issues\nmust be resolved, and the code must meet the highest quality standards.\n\nWorkflow: Review feedback \u2192 Code refinement \u2192 Production-ready\nimplementation\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite.",
|
|
197
|
+
type: "string"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
required: [
|
|
201
|
+
"review",
|
|
202
|
+
"final"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
}
|
|
180
206
|
},
|
|
181
207
|
description: "Main entry point for AI Function Call - generates complete E2E test code.\n\nThe AI executes this function to perform the entire test generation\nworkflow: scenario analysis \u2192 draft implementation \u2192 code review \u2192 final\ncode production. This structured approach ensures high-quality,\ncompilation-error-free test code.",
|
|
182
|
-
validate: (() => { const _io0 = input => "string" === typeof input.scenario && ("string" === typeof input.domain && RegExp("^[a-z][a-z0-9_]*$").test(input.domain)) && "string" === typeof input.draft && "string" === typeof input.review && "string" === typeof input.final; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
208
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && ("string" === typeof input.domain && RegExp("^[a-z][a-z0-9_]*$").test(input.domain)) && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.final; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
183
209
|
path: _path + ".scenario",
|
|
184
210
|
expected: "string",
|
|
185
211
|
value: input.scenario
|
|
@@ -195,7 +221,15 @@ const claude = {
|
|
|
195
221
|
path: _path + ".draft",
|
|
196
222
|
expected: "string",
|
|
197
223
|
value: input.draft
|
|
198
|
-
}), "
|
|
224
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
225
|
+
path: _path + ".revise",
|
|
226
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
227
|
+
value: input.revise
|
|
228
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
229
|
+
path: _path + ".revise",
|
|
230
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
231
|
+
value: input.revise
|
|
232
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
199
233
|
path: _path + ".review",
|
|
200
234
|
expected: "string",
|
|
201
235
|
value: input.review
|
|
@@ -246,7 +280,7 @@ const collection = {
|
|
|
246
280
|
{
|
|
247
281
|
name: "write",
|
|
248
282
|
parameters: {
|
|
249
|
-
description: " Complete specification for test generation including scenario,\ndomain, and implementation steps\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IProps}",
|
|
283
|
+
description: " Complete specification for test generation including scenario,\ndomain, and implementation steps\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IProps}\n\n### Description of {@link revise} property:\n\n> Steps 4-5: Code review and final refinement process.\n> \n> Contains the iterative improvement workflow that transforms the initial\n> draft into production-ready test code. This two-phase process ensures\n> systematic quality enhancement through comprehensive review followed by\n> targeted refinement based on identified issues.\n> \n> Workflow: Draft \u2192 Review analysis \u2192 Final implementation",
|
|
250
284
|
type: "object",
|
|
251
285
|
properties: {
|
|
252
286
|
scenario: {
|
|
@@ -261,27 +295,39 @@ const collection = {
|
|
|
261
295
|
description: "Step 3: Initial TypeScript E2E test code implementation.\n\nAI generates the first working version of the test code based on the\nstrategic plan. This draft must be compilation-error-free and follow",
|
|
262
296
|
type: "string"
|
|
263
297
|
},
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
type: "string"
|
|
267
|
-
},
|
|
268
|
-
final: {
|
|
269
|
-
description: "Step 5: Final production-ready test code.\n\nAI produces the final, polished version of the test code incorporating\nall review feedback. This code represents the completed test\nimplementation, ready for production deployment. All identified issues\nmust be resolved, and the code must meet the highest quality standards.\n\nWorkflow: Review feedback \u2192 Code refinement \u2192 Production-ready\nimplementation\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite.",
|
|
270
|
-
type: "string"
|
|
298
|
+
revise: {
|
|
299
|
+
$ref: "#/$defs/IAutoBeTestWriteApplication.IReviseProps"
|
|
271
300
|
}
|
|
272
301
|
},
|
|
273
302
|
required: [
|
|
274
303
|
"scenario",
|
|
275
304
|
"domain",
|
|
276
305
|
"draft",
|
|
277
|
-
"
|
|
278
|
-
"final"
|
|
306
|
+
"revise"
|
|
279
307
|
],
|
|
280
308
|
additionalProperties: false,
|
|
281
|
-
$defs: {
|
|
309
|
+
$defs: {
|
|
310
|
+
"IAutoBeTestWriteApplication.IReviseProps": {
|
|
311
|
+
type: "object",
|
|
312
|
+
properties: {
|
|
313
|
+
review: {
|
|
314
|
+
description: "Step 4: Code review and quality assessment.\n\nAI performs a thorough review of the draft implementation, examining:\n\n**Compilation & Syntax:**\n\n- TypeScript compilation errors and type mismatches\n- Syntax errors and missing semicolons/brackets\n- Correct function signatures and parameter types\n\n**Framework Compliance:**\n\n-",
|
|
315
|
+
type: "string"
|
|
316
|
+
},
|
|
317
|
+
final: {
|
|
318
|
+
description: "Step 5: Final production-ready test code.\n\nAI produces the final, polished version of the test code incorporating\nall review feedback. This code represents the completed test\nimplementation, ready for production deployment. All identified issues\nmust be resolved, and the code must meet the highest quality standards.\n\nWorkflow: Review feedback \u2192 Code refinement \u2192 Production-ready\nimplementation\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite.",
|
|
319
|
+
type: "string"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
required: [
|
|
323
|
+
"review",
|
|
324
|
+
"final"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
}
|
|
282
328
|
},
|
|
283
329
|
description: "Main entry point for AI Function Call - generates complete E2E test code.\n\nThe AI executes this function to perform the entire test generation\nworkflow: scenario analysis \u2192 draft implementation \u2192 code review \u2192 final\ncode production. This structured approach ensures high-quality,\ncompilation-error-free test code.",
|
|
284
|
-
validate: (() => { const _io0 = input => "string" === typeof input.scenario && ("string" === typeof input.domain && RegExp("^[a-z][a-z0-9_]*$").test(input.domain)) && "string" === typeof input.draft && "string" === typeof input.review && "string" === typeof input.final; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
330
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && ("string" === typeof input.domain && RegExp("^[a-z][a-z0-9_]*$").test(input.domain)) && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.final; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
285
331
|
path: _path + ".scenario",
|
|
286
332
|
expected: "string",
|
|
287
333
|
value: input.scenario
|
|
@@ -297,7 +343,15 @@ const collection = {
|
|
|
297
343
|
path: _path + ".draft",
|
|
298
344
|
expected: "string",
|
|
299
345
|
value: input.draft
|
|
300
|
-
}), "
|
|
346
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
347
|
+
path: _path + ".revise",
|
|
348
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
349
|
+
value: input.revise
|
|
350
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
351
|
+
path: _path + ".revise",
|
|
352
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
353
|
+
value: input.revise
|
|
354
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
301
355
|
path: _path + ".review",
|
|
302
356
|
expected: "string",
|
|
303
357
|
value: input.review
|
|
@@ -366,27 +420,37 @@ const collection = {
|
|
|
366
420
|
type: "string",
|
|
367
421
|
description: "Step 3: Initial TypeScript E2E test code implementation.\n\nAI generates the first working version of the test code based on the\nstrategic plan. This draft must be compilation-error-free and follow"
|
|
368
422
|
},
|
|
369
|
-
|
|
370
|
-
type: "
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
423
|
+
revise: {
|
|
424
|
+
type: "object",
|
|
425
|
+
properties: {
|
|
426
|
+
review: {
|
|
427
|
+
type: "string",
|
|
428
|
+
description: "Step 4: Code review and quality assessment.\n\nAI performs a thorough review of the draft implementation, examining:\n\n**Compilation & Syntax:**\n\n- TypeScript compilation errors and type mismatches\n- Syntax errors and missing semicolons/brackets\n- Correct function signatures and parameter types\n\n**Framework Compliance:**\n\n-"
|
|
429
|
+
},
|
|
430
|
+
final: {
|
|
431
|
+
type: "string",
|
|
432
|
+
description: "Step 5: Final production-ready test code.\n\nAI produces the final, polished version of the test code incorporating\nall review feedback. This code represents the completed test\nimplementation, ready for production deployment. All identified issues\nmust be resolved, and the code must meet the highest quality standards.\n\nWorkflow: Review feedback \u2192 Code refinement \u2192 Production-ready\nimplementation\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite."
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
required: [
|
|
436
|
+
"review",
|
|
437
|
+
"final"
|
|
438
|
+
],
|
|
439
|
+
description: "Steps 4-5: Code review and final refinement process.\n\nContains the iterative improvement workflow that transforms the initial\ndraft into production-ready test code. This two-phase process ensures\nsystematic quality enhancement through comprehensive review followed by\ntargeted refinement based on identified issues.\n\nWorkflow: Draft \u2192 Review analysis \u2192 Final implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IReviseProps}",
|
|
440
|
+
additionalProperties: false
|
|
376
441
|
}
|
|
377
442
|
},
|
|
378
443
|
required: [
|
|
379
444
|
"scenario",
|
|
380
445
|
"domain",
|
|
381
446
|
"draft",
|
|
382
|
-
"
|
|
383
|
-
"final"
|
|
447
|
+
"revise"
|
|
384
448
|
],
|
|
385
449
|
description: " Complete specification for test generation including scenario,\ndomain, and implementation steps\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IProps}",
|
|
386
450
|
additionalProperties: false
|
|
387
451
|
},
|
|
388
452
|
description: "Main entry point for AI Function Call - generates complete E2E test code.\n\nThe AI executes this function to perform the entire test generation\nworkflow: scenario analysis \u2192 draft implementation \u2192 code review \u2192 final\ncode production. This structured approach ensures high-quality,\ncompilation-error-free test code.",
|
|
389
|
-
validate: (() => { const _io0 = input => "string" === typeof input.scenario && ("string" === typeof input.domain && RegExp("^[a-z][a-z0-9_]*$").test(input.domain)) && "string" === typeof input.draft && "string" === typeof input.review && "string" === typeof input.final; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
453
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && ("string" === typeof input.domain && RegExp("^[a-z][a-z0-9_]*$").test(input.domain)) && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.final; const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
390
454
|
path: _path + ".scenario",
|
|
391
455
|
expected: "string",
|
|
392
456
|
value: input.scenario
|
|
@@ -402,7 +466,15 @@ const collection = {
|
|
|
402
466
|
path: _path + ".draft",
|
|
403
467
|
expected: "string",
|
|
404
468
|
value: input.draft
|
|
405
|
-
}), "
|
|
469
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
470
|
+
path: _path + ".revise",
|
|
471
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
472
|
+
value: input.revise
|
|
473
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
474
|
+
path: _path + ".revise",
|
|
475
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
476
|
+
value: input.revise
|
|
477
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
406
478
|
path: _path + ".review",
|
|
407
479
|
expected: "string",
|
|
408
480
|
value: input.review
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestWrite.js","sourceRoot":"","sources":["../../../../../src/orchestrate/test/orchestrateTestWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateTestWrite.js","sourceRoot":"","sources":["../../../../../src/orchestrate/test/orchestrateTestWrite.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,16 +4,14 @@ export interface IAutoBeTestCorrectApplication {
|
|
|
4
4
|
* generates corrected E2E test code.
|
|
5
5
|
*
|
|
6
6
|
* The AI executes this function to perform the complete error correction
|
|
7
|
-
* workflow: error
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* workflow: compilation error analysis → draft correction → code review →
|
|
8
|
+
* final corrected implementation. This multi-step process ensures systematic
|
|
9
|
+
* error resolution while preserving original test functionality and
|
|
10
|
+
* maintaining code quality.
|
|
11
11
|
*
|
|
12
|
-
* The corrector
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* corrected code through iterative refinement with comprehensive review and
|
|
16
|
-
* validation.
|
|
12
|
+
* The corrector analyzes compilation diagnostics to identify specific issues,
|
|
13
|
+
* develops correction strategies, and produces corrected code through
|
|
14
|
+
* iterative refinement with comprehensive review and validation.
|
|
17
15
|
*
|
|
18
16
|
* @param props Complete specification for error correction workflow including
|
|
19
17
|
* analysis steps, draft implementation, review process, and final code
|
|
@@ -24,45 +22,29 @@ export interface IAutoBeTestCorrectApplication {
|
|
|
24
22
|
export declare namespace IAutoBeTestCorrectApplication {
|
|
25
23
|
interface IProps {
|
|
26
24
|
/**
|
|
27
|
-
* Step 1:
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* accomplishes, the expected business workflow, and the correct API
|
|
34
|
-
* integration patterns.
|
|
35
|
-
*
|
|
36
|
-
* This step ensures that error correction doesn't lose sight of the
|
|
37
|
-
* original test purpose and helps maintain the intended business logic
|
|
38
|
-
* while addressing technical compilation issues. The AI develops a
|
|
39
|
-
* comprehensive understanding of the test requirements before diving into
|
|
40
|
-
* error-specific details.
|
|
41
|
-
*
|
|
42
|
-
* Workflow: Scenario understanding → Business logic analysis → Intended
|
|
43
|
-
* functionality mapping
|
|
44
|
-
*/
|
|
45
|
-
think_without_compile_error: string;
|
|
46
|
-
/**
|
|
47
|
-
* Step 2: Compilation error analysis and root cause identification.
|
|
25
|
+
* Step 1: Deep compilation error analysis and correction strategy.
|
|
26
|
+
*
|
|
27
|
+
* AI performs comprehensive analysis of compilation errors to develop
|
|
28
|
+
* targeted correction strategies. This step involves deep examination of
|
|
29
|
+
* error messages, identification of error patterns, understanding root
|
|
30
|
+
* causes, and planning systematic corrections.
|
|
48
31
|
*
|
|
49
|
-
* AI
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
32
|
+
* The AI examines each compilation diagnostic to understand where the
|
|
33
|
+
* implementation diverged from correct TypeScript usage, identifies the
|
|
34
|
+
* business logic intent behind the failed code, and formulates strategies
|
|
35
|
+
* to fix errors while preserving the original test purpose. This analysis
|
|
36
|
+
* correlates error patterns with code structure to ensure corrections
|
|
37
|
+
* address root causes rather than symptoms.
|
|
54
38
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* usage while maintaining the business logic intent. This analysis forms
|
|
58
|
-
* the foundation for targeted error correction strategies.
|
|
39
|
+
* This deep analysis forms the foundation for all subsequent correction
|
|
40
|
+
* efforts, ensuring a methodical approach to resolving compilation issues.
|
|
59
41
|
*
|
|
60
42
|
* Workflow: Error diagnostic analysis → Root cause identification →
|
|
61
|
-
* Correction strategy planning
|
|
43
|
+
* Correction strategy planning → Business logic preservation strategy
|
|
62
44
|
*/
|
|
63
|
-
|
|
45
|
+
think: string;
|
|
64
46
|
/**
|
|
65
|
-
* Step
|
|
47
|
+
* Step 2: Draft corrected TypeScript E2E test code implementation.
|
|
66
48
|
*
|
|
67
49
|
* AI generates the first corrected version of the test code based on error
|
|
68
50
|
* analysis and correction strategies. This draft addresses all identified
|
|
@@ -82,7 +64,28 @@ export declare namespace IAutoBeTestCorrectApplication {
|
|
|
82
64
|
*/
|
|
83
65
|
draft: string;
|
|
84
66
|
/**
|
|
85
|
-
* Step 4:
|
|
67
|
+
* Step 3-4: Review and finalization process.
|
|
68
|
+
*
|
|
69
|
+
* Encapsulates the review and final implementation phases into a single
|
|
70
|
+
* revision process. This structured approach ensures systematic validation
|
|
71
|
+
* and refinement of the corrected code through comprehensive review
|
|
72
|
+
* followed by production-ready implementation.
|
|
73
|
+
*
|
|
74
|
+
* The revision process maintains clear separation between review feedback
|
|
75
|
+
* and final deliverable while ensuring all corrections are properly
|
|
76
|
+
* validated and integrated.
|
|
77
|
+
*/
|
|
78
|
+
revise: IReviseProps;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Revision properties for the final review and implementation phases.
|
|
82
|
+
*
|
|
83
|
+
* This interface encapsulates the final two steps of the error correction
|
|
84
|
+
* workflow, ensuring systematic review and production-ready code delivery.
|
|
85
|
+
*/
|
|
86
|
+
interface IReviseProps {
|
|
87
|
+
/**
|
|
88
|
+
* Step 3: Code review and correction validation.
|
|
86
89
|
*
|
|
87
90
|
* AI performs a comprehensive review of the corrected draft implementation,
|
|
88
91
|
* validating that all compilation errors have been resolved and that the
|
|
@@ -100,7 +103,7 @@ export declare namespace IAutoBeTestCorrectApplication {
|
|
|
100
103
|
*/
|
|
101
104
|
review: string;
|
|
102
105
|
/**
|
|
103
|
-
* Step
|
|
106
|
+
* Step 4: Final production-ready corrected test code.
|
|
104
107
|
*
|
|
105
108
|
* AI produces the final, polished version of the corrected test code
|
|
106
109
|
* incorporating all review feedback and validation results. This code
|
|
@@ -114,7 +117,7 @@ export declare namespace IAutoBeTestCorrectApplication {
|
|
|
114
117
|
* behaviors and user workflows.
|
|
115
118
|
*
|
|
116
119
|
* Workflow: Review integration → Final refinement → Production-ready
|
|
117
|
-
* implementation This is the ultimate deliverable that will replace the
|
|
120
|
+
* implementation. This is the ultimate deliverable that will replace the
|
|
118
121
|
* compilation-failed code.
|
|
119
122
|
*/
|
|
120
123
|
final: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoBeTestFunctionFailure.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/structures/IAutoBeTestFunctionFailure.ts"],"names":[],"mappings":""}
|
|
@@ -55,6 +55,19 @@ export declare namespace IAutoBeTestWriteApplication {
|
|
|
55
55
|
* Critical: NO import statements, start directly with 'export async function'
|
|
56
56
|
*/
|
|
57
57
|
draft: string;
|
|
58
|
+
/**
|
|
59
|
+
* Steps 4-5: Code review and final refinement process.
|
|
60
|
+
*
|
|
61
|
+
* Contains the iterative improvement workflow that transforms the initial
|
|
62
|
+
* draft into production-ready test code. This two-phase process ensures
|
|
63
|
+
* systematic quality enhancement through comprehensive review followed by
|
|
64
|
+
* targeted refinement based on identified issues.
|
|
65
|
+
*
|
|
66
|
+
* Workflow: Draft → Review analysis → Final implementation
|
|
67
|
+
*/
|
|
68
|
+
revise: IReviseProps;
|
|
69
|
+
}
|
|
70
|
+
interface IReviseProps {
|
|
58
71
|
/**
|
|
59
72
|
* Step 4: Code review and quality assessment.
|
|
60
73
|
*
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getReferenceIds = void 0;
|
|
4
|
+
const openapi_1 = require("@samchon/openapi");
|
|
5
|
+
const getReferenceIds = (props) => {
|
|
6
|
+
const result = new Set();
|
|
7
|
+
const emplace = (key) => {
|
|
8
|
+
if (key.endsWith("_id"))
|
|
9
|
+
result.add(key);
|
|
10
|
+
};
|
|
11
|
+
props.operation.parameters.forEach((p) => emplace(p.name));
|
|
12
|
+
if (props.operation.requestBody) {
|
|
13
|
+
openapi_1.OpenApiTypeChecker.visit({
|
|
14
|
+
components: props.document.components,
|
|
15
|
+
schema: { $ref: props.operation.requestBody.typeName },
|
|
16
|
+
closure: (schema) => {
|
|
17
|
+
var _a;
|
|
18
|
+
if (openapi_1.OpenApiTypeChecker.isObject(schema) === false)
|
|
19
|
+
return;
|
|
20
|
+
for (const key of Object.keys((_a = schema.properties) !== null && _a !== void 0 ? _a : {}))
|
|
21
|
+
emplace(key);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return Array.from(result);
|
|
26
|
+
};
|
|
27
|
+
exports.getReferenceIds = getReferenceIds;
|
|
28
|
+
//# sourceMappingURL=getReferenceIds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReferenceIds.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/utils/getReferenceIds.ts"],"names":[],"mappings":";;;AACA,8CAAsD;AAE/C,MAAM,eAAe,GAAG,CAAC,KAG/B,EAAY,EAAE;IACb,MAAM,MAAM,GAAgB,IAAI,GAAG,EAAE,CAAC;IACtC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,EAAE;QAC9B,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC,CAAC;IAEF,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,IAAI,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAChC,4BAAkB,CAAC,KAAK,CAAC;YACvB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,UAAU;YACrC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE;YACtD,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE;;gBAClB,IAAI,4BAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,KAAK;oBAAE,OAAO;gBAC1D,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAA,MAAM,CAAC,UAAU,mCAAI,EAAE,CAAC;oBAAE,OAAO,CAAC,GAAG,CAAC,CAAC;YACvE,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC,CAAC;AArBW,QAAA,eAAe,mBAqB1B"}
|