@autobe/agent 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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 +3466 -103
- 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 +3672 -358
- 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/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/interface/utils/validateAuthorizationSchema.js.map +1 -1
- 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.js +15 -14
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js +1 -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 +126 -72
- 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 +121 -42
- 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 +13805 -3871
- 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/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/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 +5 -5
- 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 +33 -91
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +72 -95
- 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/fulfillJsonSchemaErrorMessages.ts +90 -0
- package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +2 -2
- 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 +15 -26
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +1 -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 +46 -15
- package/src/orchestrate/test/orchestrateTestScenario.ts +52 -48
- package/src/orchestrate/test/orchestrateTestWrite.ts +23 -5
- 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/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +0 -38
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +0 -38
|
@@ -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,
|
|
@@ -110,11 +110,30 @@ function process(ctx, props) {
|
|
|
110
110
|
promptCacheKey,
|
|
111
111
|
message: "Create e2e test functions.",
|
|
112
112
|
});
|
|
113
|
-
if (pointer.value === null)
|
|
113
|
+
if (pointer.value === null) {
|
|
114
|
+
++progress.completed;
|
|
114
115
|
throw new Error("Failed to create test code.");
|
|
116
|
+
}
|
|
115
117
|
const compiler = yield ctx.compiler();
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
if (pointer.value.revise)
|
|
119
|
+
pointer.value.revise.final = yield compiler.typescript.beautify(pointer.value.revise.final);
|
|
120
|
+
else
|
|
121
|
+
pointer.value.draft = yield compiler.typescript.beautify(pointer.value.draft);
|
|
122
|
+
return {
|
|
123
|
+
type: "testWrite",
|
|
124
|
+
id: (0, uuid_1.v7)(),
|
|
125
|
+
created_at: new Date().toISOString(),
|
|
126
|
+
location: `test/features/api/${pointer.value.domain}/${scenario.functionName}.ts`,
|
|
127
|
+
scenario: pointer.value.scenario,
|
|
128
|
+
domain: pointer.value.domain,
|
|
129
|
+
draft: pointer.value.draft,
|
|
130
|
+
review: (_a = pointer.value.revise) === null || _a === void 0 ? void 0 : _a.review,
|
|
131
|
+
final: (_b = pointer.value.revise) === null || _b === void 0 ? void 0 : _b.final,
|
|
132
|
+
tokenUsage,
|
|
133
|
+
completed: ++progress.completed,
|
|
134
|
+
total: progress.total,
|
|
135
|
+
step: (_d = (_c = ctx.state().interface) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 0,
|
|
136
|
+
};
|
|
118
137
|
});
|
|
119
138
|
}
|
|
120
139
|
function createController(props) {
|
|
@@ -127,7 +146,8 @@ function createController(props) {
|
|
|
127
146
|
execute: {
|
|
128
147
|
write: (next) => {
|
|
129
148
|
next.draft = (0, completeTestCode_1.completeTestCode)(props.artifacts, next.draft);
|
|
130
|
-
|
|
149
|
+
if (next.revise)
|
|
150
|
+
next.revise.final = (0, completeTestCode_1.completeTestCode)(props.artifacts, next.revise.final);
|
|
131
151
|
props.build(next);
|
|
132
152
|
},
|
|
133
153
|
},
|
|
@@ -159,27 +179,40 @@ const claude = {
|
|
|
159
179
|
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
180
|
type: "string"
|
|
161
181
|
},
|
|
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"
|
|
182
|
+
revise: {
|
|
183
|
+
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",
|
|
184
|
+
$ref: "#/$defs/IAutoBeTestWriteApplication.IReviseProps"
|
|
169
185
|
}
|
|
170
186
|
},
|
|
171
187
|
required: [
|
|
172
188
|
"scenario",
|
|
173
189
|
"domain",
|
|
174
190
|
"draft",
|
|
175
|
-
"
|
|
176
|
-
"final"
|
|
191
|
+
"revise"
|
|
177
192
|
],
|
|
178
193
|
additionalProperties: false,
|
|
179
|
-
$defs: {
|
|
194
|
+
$defs: {
|
|
195
|
+
"IAutoBeTestWriteApplication.IReviseProps": {
|
|
196
|
+
type: "object",
|
|
197
|
+
properties: {
|
|
198
|
+
review: {
|
|
199
|
+
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-",
|
|
200
|
+
type: "string"
|
|
201
|
+
},
|
|
202
|
+
final: {
|
|
203
|
+
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.",
|
|
204
|
+
type: "string"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
required: [
|
|
208
|
+
"review",
|
|
209
|
+
"final"
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
180
213
|
},
|
|
181
214
|
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, {
|
|
215
|
+
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
216
|
path: _path + ".scenario",
|
|
184
217
|
expected: "string",
|
|
185
218
|
value: input.scenario
|
|
@@ -195,7 +228,15 @@ const claude = {
|
|
|
195
228
|
path: _path + ".draft",
|
|
196
229
|
expected: "string",
|
|
197
230
|
value: input.draft
|
|
198
|
-
}), "
|
|
231
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
232
|
+
path: _path + ".revise",
|
|
233
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
234
|
+
value: input.revise
|
|
235
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
236
|
+
path: _path + ".revise",
|
|
237
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
238
|
+
value: input.revise
|
|
239
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
199
240
|
path: _path + ".review",
|
|
200
241
|
expected: "string",
|
|
201
242
|
value: input.review
|
|
@@ -246,7 +287,7 @@ const collection = {
|
|
|
246
287
|
{
|
|
247
288
|
name: "write",
|
|
248
289
|
parameters: {
|
|
249
|
-
description: " Complete specification for test generation including scenario,\ndomain, and implementation steps\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IProps}",
|
|
290
|
+
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
291
|
type: "object",
|
|
251
292
|
properties: {
|
|
252
293
|
scenario: {
|
|
@@ -261,27 +302,39 @@ const collection = {
|
|
|
261
302
|
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
303
|
type: "string"
|
|
263
304
|
},
|
|
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"
|
|
305
|
+
revise: {
|
|
306
|
+
$ref: "#/$defs/IAutoBeTestWriteApplication.IReviseProps"
|
|
271
307
|
}
|
|
272
308
|
},
|
|
273
309
|
required: [
|
|
274
310
|
"scenario",
|
|
275
311
|
"domain",
|
|
276
312
|
"draft",
|
|
277
|
-
"
|
|
278
|
-
"final"
|
|
313
|
+
"revise"
|
|
279
314
|
],
|
|
280
315
|
additionalProperties: false,
|
|
281
|
-
$defs: {
|
|
316
|
+
$defs: {
|
|
317
|
+
"IAutoBeTestWriteApplication.IReviseProps": {
|
|
318
|
+
type: "object",
|
|
319
|
+
properties: {
|
|
320
|
+
review: {
|
|
321
|
+
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-",
|
|
322
|
+
type: "string"
|
|
323
|
+
},
|
|
324
|
+
final: {
|
|
325
|
+
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.",
|
|
326
|
+
type: "string"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
required: [
|
|
330
|
+
"review",
|
|
331
|
+
"final"
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
}
|
|
282
335
|
},
|
|
283
336
|
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, {
|
|
337
|
+
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
338
|
path: _path + ".scenario",
|
|
286
339
|
expected: "string",
|
|
287
340
|
value: input.scenario
|
|
@@ -297,7 +350,15 @@ const collection = {
|
|
|
297
350
|
path: _path + ".draft",
|
|
298
351
|
expected: "string",
|
|
299
352
|
value: input.draft
|
|
300
|
-
}), "
|
|
353
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
354
|
+
path: _path + ".revise",
|
|
355
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
356
|
+
value: input.revise
|
|
357
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
358
|
+
path: _path + ".revise",
|
|
359
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
360
|
+
value: input.revise
|
|
361
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
301
362
|
path: _path + ".review",
|
|
302
363
|
expected: "string",
|
|
303
364
|
value: input.review
|
|
@@ -366,27 +427,37 @@ const collection = {
|
|
|
366
427
|
type: "string",
|
|
367
428
|
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
429
|
},
|
|
369
|
-
|
|
370
|
-
type: "
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
430
|
+
revise: {
|
|
431
|
+
type: "object",
|
|
432
|
+
properties: {
|
|
433
|
+
review: {
|
|
434
|
+
type: "string",
|
|
435
|
+
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-"
|
|
436
|
+
},
|
|
437
|
+
final: {
|
|
438
|
+
type: "string",
|
|
439
|
+
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."
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
required: [
|
|
443
|
+
"review",
|
|
444
|
+
"final"
|
|
445
|
+
],
|
|
446
|
+
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}",
|
|
447
|
+
additionalProperties: false
|
|
376
448
|
}
|
|
377
449
|
},
|
|
378
450
|
required: [
|
|
379
451
|
"scenario",
|
|
380
452
|
"domain",
|
|
381
453
|
"draft",
|
|
382
|
-
"
|
|
383
|
-
"final"
|
|
454
|
+
"revise"
|
|
384
455
|
],
|
|
385
456
|
description: " Complete specification for test generation including scenario,\ndomain, and implementation steps\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IProps}",
|
|
386
457
|
additionalProperties: false
|
|
387
458
|
},
|
|
388
459
|
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, {
|
|
460
|
+
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
461
|
path: _path + ".scenario",
|
|
391
462
|
expected: "string",
|
|
392
463
|
value: input.scenario
|
|
@@ -402,7 +473,15 @@ const collection = {
|
|
|
402
473
|
path: _path + ".draft",
|
|
403
474
|
expected: "string",
|
|
404
475
|
value: input.draft
|
|
405
|
-
}), "
|
|
476
|
+
}), ("object" === typeof input.revise && null !== input.revise || _report(_exceptionable, {
|
|
477
|
+
path: _path + ".revise",
|
|
478
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
479
|
+
value: input.revise
|
|
480
|
+
})) && _vo1(input.revise, _path + ".revise", true && _exceptionable) || _report(_exceptionable, {
|
|
481
|
+
path: _path + ".revise",
|
|
482
|
+
expected: "IAutoBeTestWriteApplication.IReviseProps",
|
|
483
|
+
value: input.revise
|
|
484
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || _report(_exceptionable, {
|
|
406
485
|
path: _path + ".review",
|
|
407
486
|
expected: "string",
|
|
408
487
|
value: input.review
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestWrite.js","sourceRoot":"","sources":["../../../../../src/orchestrate/test/orchestrateTestWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,oDAoCC;;AAjDD,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,uEAAoE;AACpE,iEAA8D;AAC9D,iFAA8E;AAC9E,yFAAsF;AAKtF,SAAsB,oBAAoB,CACxC,GAAyB,EACzB,SAA+B;;QAE/B,MAAM,QAAQ,GAA4B;YACxC,KAAK,EAAE,SAAS,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC;SACb,CAAC;QACF,MAAM,MAAM,GAAyC,MAAM,IAAA,uCAAkB;QAC3E;;;;WAIG;QACH,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAO,cAAc,EAAE,EAAE;YACnD,IAAI,CAAC;gBACH,MAAM,SAAS,GACb,MAAM,IAAA,mDAAwB,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;gBAChD,MAAM,KAAK,GAAyB,MAAM,OAAO,CAAC,GAAG,EAAE;oBACrD,QAAQ;oBACR,SAAS;oBACT,QAAQ;oBACR,cAAc;iBACf,CAAC,CAAC;gBACH,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBACpB,OAAO;oBACL,QAAQ;oBACR,SAAS;oBACT,KAAK;iBACN,CAAC;YACJ,CAAC;YAAC,
|
|
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"}
|