@autobe/agent 0.22.1 → 0.23.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/AutoBeAgent.d.ts +2 -1
- package/lib/{agent/src/AutoBeAgent.js → AutoBeAgent.js} +17 -3
- package/lib/AutoBeAgent.js.map +1 -0
- package/lib/AutoBeAgentBase.js.map +1 -0
- package/lib/{agent/src/AutoBeMockAgent.js → AutoBeMockAgent.js} +16 -0
- package/lib/AutoBeMockAgent.js.map +1 -0
- package/lib/constants/AutoBeConfigConstant.d.ts +3 -1
- package/lib/constants/AutoBeConfigConstant.js.map +1 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +17 -15
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -0
- package/lib/context/AutoBeContext.js.map +1 -0
- package/lib/context/AutoBeState.js.map +1 -0
- package/lib/context/AutoBeTokenUsage.d.ts +1 -0
- package/lib/{agent/src/context → context}/AutoBeTokenUsage.js +8 -0
- package/lib/context/AutoBeTokenUsage.js.map +1 -0
- package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
- package/lib/{agent/src/context → context}/AutoBeTokenUsageComponent.js +8 -0
- package/lib/context/AutoBeTokenUsageComponent.js.map +1 -0
- package/lib/context/IAutoBeApplication.js.map +1 -0
- package/lib/context/IAutoBeApplicationProps.js.map +1 -0
- package/lib/context/IAutoBeApplicationResult.js.map +1 -0
- package/lib/context/assertSchemaModel.js.map +1 -0
- package/lib/{agent/src/factory → factory}/consentFunctionCall.js +1 -1
- package/lib/factory/consentFunctionCall.js.map +1 -0
- package/lib/factory/createAgenticaHistory.js.map +1 -0
- package/lib/factory/createAutoBeApplication.js.map +1 -0
- package/lib/{agent/src/factory → factory}/createAutoBeContext.js +66 -20
- package/lib/factory/createAutoBeContext.js.map +1 -0
- package/lib/factory/createAutoBeState.js.map +1 -0
- package/lib/factory/getAutoBeGenerated.js.map +1 -0
- package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -0
- package/lib/factory/getCriticalCompiler.d.ts +3 -0
- package/lib/factory/getCriticalCompiler.js +55 -0
- package/lib/factory/getCriticalCompiler.js.map +1 -0
- package/lib/factory/index.js.map +1 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +4827 -3025
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeWrite.js +2 -4
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.d.ts +8 -0
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +31 -0
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +18 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +411 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -0
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +122 -0
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js +3 -0
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js.map +1 -0
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
- package/lib/orchestrate/index.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAuthorizationsHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +63 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointsReviewHistories.js +4 -4
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +52 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +36 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +29 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +60 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceComplement.js +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceOperations.js +193 -274
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1747 -0
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemas.js +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +1 -1
- package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemasReview.js +5 -7
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +247 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +6 -1
- package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaValidator.js +26 -24
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -0
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
- package/lib/{agent/src/orchestrate/interface/utils/JsonSchemaValidator.d.ts → orchestrate/interface/utils/OperationValidator.d.ts} +2 -2
- package/lib/orchestrate/interface/utils/OperationValidator.js +114 -0
- package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -0
- package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaCorrect.js +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
- package/lib/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorization.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorizationCorrectHistories.js +2 -2
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +57 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +141 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -0
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.d.ts +4 -0
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +505 -0
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealize.js +18 -8
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +2 -15
- package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeCorrect.js +48 -43
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
- package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
- package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/generateRealizeScenario.d.ts +25 -0
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js +85 -0
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +98 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
- package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
- package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestImportStatements.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestTemplateCode.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +51 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.d.ts +4 -0
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +33 -0
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +159 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestValidateEvent.d.ts +4 -0
- package/lib/orchestrate/test/histories/transformTestValidateEvent.js +11 -0
- package/lib/orchestrate/test/histories/transformTestValidateEvent.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js +220 -0
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTest.js +13 -7
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -0
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js +513 -0
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.d.ts +7 -0
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +425 -0
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestScenario.js +32 -36
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestWrite.js +23 -35
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.d.ts +140 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +2 -2
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +38 -15
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/utils/getReferenceIds.js +1 -1
- package/lib/orchestrate/test/utils/getReferenceIds.js.map +1 -0
- package/lib/structures/IAutoBeConfig.d.ts +1 -0
- package/lib/structures/IAutoBeConfig.js.map +1 -0
- package/lib/structures/IAutoBeProps.js.map +1 -0
- package/lib/structures/IAutoBeVendor.js.map +1 -0
- package/lib/utils/AutoBeTimeoutError.d.ts +4 -0
- package/lib/utils/AutoBeTimeoutError.js +18 -0
- package/lib/utils/AutoBeTimeoutError.js.map +1 -0
- package/lib/utils/TimeoutConversation.d.ts +24 -0
- package/lib/utils/TimeoutConversation.js +65 -0
- package/lib/utils/TimeoutConversation.js.map +1 -0
- package/lib/utils/arrayToRecord.js.map +1 -0
- package/lib/utils/backoffRetry.js.map +1 -0
- package/lib/utils/divideArray.js.map +1 -0
- package/lib/utils/emplaceMap.js.map +1 -0
- package/lib/utils/executeCachedBatch.js.map +1 -0
- package/lib/utils/predicateStateMessage.js.map +1 -0
- package/package.json +6 -6
- package/src/AutoBeAgent.ts +16 -1
- package/src/AutoBeMockAgent.ts +13 -3
- package/src/constants/AutoBeConfigConstant.ts +3 -1
- package/src/constants/AutoBeSystemPromptConstant.ts +17 -15
- package/src/context/AutoBeTokenUsage.ts +9 -0
- package/src/context/AutoBeTokenUsageComponent.ts +9 -0
- package/src/factory/consentFunctionCall.ts +1 -1
- package/src/factory/createAutoBeContext.ts +68 -20
- package/src/factory/getCriticalCompiler.ts +47 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +2 -4
- package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +43 -0
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +170 -0
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +127 -0
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +4 -4
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +2 -2
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +10 -94
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +49 -13
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +3 -2
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +5 -5
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +254 -4
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +31 -26
- package/src/orchestrate/interface/utils/OperationValidator.ts +127 -0
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +2 -2
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +6 -0
- package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +317 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +29 -14
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +79 -67
- package/src/orchestrate/realize/utils/generateRealizeScenario.ts +104 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +60 -32
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +4 -3
- package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +39 -0
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +75 -17
- package/src/orchestrate/test/histories/transformTestValidateEvent.ts +14 -0
- package/src/orchestrate/test/orchestrateTest.ts +11 -7
- package/src/orchestrate/test/orchestrateTestCorrect.ts +111 -33
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +145 -0
- package/src/orchestrate/test/orchestrateTestScenario.ts +29 -13
- package/src/orchestrate/test/orchestrateTestWrite.ts +3 -1
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +233 -0
- package/src/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.ts +146 -0
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +2 -2
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +110 -15
- package/src/orchestrate/test/utils/getReferenceIds.ts +1 -1
- package/src/structures/IAutoBeConfig.ts +2 -0
- package/src/utils/AutoBeTimeoutError.ts +13 -0
- package/src/utils/TimeoutConversation.ts +82 -0
- package/lib/agent/src/AutoBeAgent.d.ts +0 -52
- package/lib/agent/src/AutoBeAgent.js.map +0 -1
- package/lib/agent/src/AutoBeAgentBase.d.ts +0 -18
- package/lib/agent/src/AutoBeAgentBase.js.map +0 -1
- package/lib/agent/src/AutoBeMockAgent.d.ts +0 -7
- package/lib/agent/src/AutoBeMockAgent.js.map +0 -1
- package/lib/agent/src/constants/AutoBeConfigConstant.d.ts +0 -3
- package/lib/agent/src/constants/AutoBeConfigConstant.js.map +0 -1
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +0 -29
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +0 -1
- package/lib/agent/src/context/AutoBeContext.d.ts +0 -43
- package/lib/agent/src/context/AutoBeContext.js.map +0 -1
- package/lib/agent/src/context/AutoBeState.d.ts +0 -8
- package/lib/agent/src/context/AutoBeState.js.map +0 -1
- package/lib/agent/src/context/AutoBeTokenUsage.d.ts +0 -173
- package/lib/agent/src/context/AutoBeTokenUsage.js.map +0 -1
- package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +0 -117
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +0 -1
- package/lib/agent/src/context/IAutoBeApplication.d.ts +0 -107
- package/lib/agent/src/context/IAutoBeApplication.js.map +0 -1
- package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +0 -4
- package/lib/agent/src/context/IAutoBeApplicationProps.js.map +0 -1
- package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +0 -4
- package/lib/agent/src/context/IAutoBeApplicationResult.js.map +0 -1
- package/lib/agent/src/context/assertSchemaModel.d.ts +0 -2
- package/lib/agent/src/context/assertSchemaModel.js.map +0 -1
- package/lib/agent/src/factory/consentFunctionCall.d.ts +0 -10
- package/lib/agent/src/factory/consentFunctionCall.js.map +0 -1
- package/lib/agent/src/factory/createAgenticaHistory.d.ts +0 -7
- package/lib/agent/src/factory/createAgenticaHistory.js.map +0 -1
- package/lib/agent/src/factory/createAutoBeApplication.d.ts +0 -7
- package/lib/agent/src/factory/createAutoBeApplication.js.map +0 -1
- package/lib/agent/src/factory/createAutoBeContext.d.ts +0 -19
- package/lib/agent/src/factory/createAutoBeContext.js.map +0 -1
- package/lib/agent/src/factory/createAutoBeState.d.ts +0 -3
- package/lib/agent/src/factory/createAutoBeState.js.map +0 -1
- package/lib/agent/src/factory/getAutoBeGenerated.d.ts +0 -4
- package/lib/agent/src/factory/getAutoBeGenerated.js.map +0 -1
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +0 -7
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +0 -1
- package/lib/agent/src/factory/index.d.ts +0 -1
- package/lib/agent/src/factory/index.js.map +0 -1
- package/lib/agent/src/index.d.ts +0 -6
- package/lib/agent/src/index.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +0 -6
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +0 -6
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -5
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +0 -11
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +0 -4
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +0 -10
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +0 -111
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +0 -78
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +0 -74
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +0 -2
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/lib/agent/src/orchestrate/index.d.ts +0 -5
- package/lib/agent/src/orchestrate/index.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -63
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -52
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +0 -36
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -29
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -10
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +0 -1416
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +0 -47
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +0 -93
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +0 -24
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +0 -60
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +0 -108
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -171
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +0 -117
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +0 -107
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.d.ts +0 -9
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +0 -6
- package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +0 -2
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +0 -8
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +0 -5
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +0 -4
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +0 -4
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +0 -5
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +0 -5
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +0 -121
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +0 -142
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +0 -105
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +0 -99
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -14
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +0 -51
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +0 -11
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +0 -141
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +0 -7
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +0 -10
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +0 -4
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +0 -19
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js +0 -44
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +0 -11
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +0 -109
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +0 -47
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +0 -39
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +0 -36
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +0 -295
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +0 -4
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +0 -8
- package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +0 -3
- package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +0 -31
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.d.ts +0 -4
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +0 -2
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +0 -30
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +0 -8
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +0 -77
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +0 -4
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +0 -1
- package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +0 -3
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.d.ts +0 -2
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.d.ts +0 -2
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js.map +0 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +0 -6
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +0 -50
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +0 -105
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.d.ts +0 -10
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +0 -220
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +0 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +0 -405
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +0 -4
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +0 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +0 -125
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +0 -8
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +0 -6
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +0 -161
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +0 -8
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +0 -6
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +0 -126
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +0 -7
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js.map +0 -1
- package/lib/agent/src/structures/IAutoBeConfig.d.ts +0 -75
- package/lib/agent/src/structures/IAutoBeConfig.js.map +0 -1
- package/lib/agent/src/structures/IAutoBeProps.d.ts +0 -109
- package/lib/agent/src/structures/IAutoBeProps.js.map +0 -1
- package/lib/agent/src/structures/IAutoBeVendor.d.ts +0 -87
- package/lib/agent/src/structures/IAutoBeVendor.js.map +0 -1
- package/lib/agent/src/utils/arrayToRecord.d.ts +0 -17
- package/lib/agent/src/utils/arrayToRecord.js.map +0 -1
- package/lib/agent/src/utils/backoffRetry.d.ts +0 -22
- package/lib/agent/src/utils/backoffRetry.js.map +0 -1
- package/lib/agent/src/utils/divideArray.d.ts +0 -4
- package/lib/agent/src/utils/divideArray.js.map +0 -1
- package/lib/agent/src/utils/emplaceMap.d.ts +0 -1
- package/lib/agent/src/utils/emplaceMap.js.map +0 -1
- package/lib/agent/src/utils/executeCachedBatch.d.ts +0 -1
- package/lib/agent/src/utils/executeCachedBatch.js.map +0 -1
- package/lib/agent/src/utils/predicateStateMessage.d.ts +0 -4
- package/lib/agent/src/utils/predicateStateMessage.js.map +0 -1
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +0 -153
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +0 -3
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
- package/src/orchestrate/realize/orchestrateRealizeScenario.ts +0 -57
- /package/lib/{agent/src/AutoBeAgentBase.js → AutoBeAgentBase.js} +0 -0
- /package/lib/{agent/src/constants → constants}/AutoBeConfigConstant.js +0 -0
- /package/lib/{agent/src/constants → constants}/AutoBeSystemPromptConstant.js +0 -0
- /package/lib/{agent/src/context → context}/AutoBeContext.js +0 -0
- /package/lib/{agent/src/context → context}/AutoBeState.js +0 -0
- /package/lib/{agent/src/context → context}/IAutoBeApplication.js +0 -0
- /package/lib/{agent/src/context → context}/IAutoBeApplicationProps.js +0 -0
- /package/lib/{agent/src/context → context}/IAutoBeApplicationResult.js +0 -0
- /package/lib/{agent/src/context → context}/assertSchemaModel.js +0 -0
- /package/lib/{agent/src/factory → factory}/createAgenticaHistory.js +0 -0
- /package/lib/{agent/src/factory → factory}/createAutoBeApplication.js +0 -0
- /package/lib/{agent/src/factory → factory}/createAutoBeState.js +0 -0
- /package/lib/{agent/src/factory → factory}/getAutoBeGenerated.js +0 -0
- /package/lib/{agent/src/factory → factory}/getAutoBeRealizeGenerated.js +0 -0
- /package/lib/{agent/src/factory → factory}/index.js +0 -0
- /package/lib/{agent/src/index.js → index.js} +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeReviewHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeScenarioHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeWriteHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyze.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeReview.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeScenario.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeWriteApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/facade/transformFacadeStateMessage.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/index.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceGroupHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterface.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceAuthorizations.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpoints.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpointsReview.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceGroups.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaFactory.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaNamingConvention.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/fulfillJsonSchemaErrorMessages.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaComponentsHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaCorrectHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaReviewHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaSchemaHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrisma.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaComponent.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaReview.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaSchemas.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/ProviderCodeComparator.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeWriteAuthorizationsHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/internal/compileRealizeFiles.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorization.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeWrite.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeCorrectApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeFunctionFailure.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeScenarioResult.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeWriteApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/InternalFileSystem.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteCodeTemplate.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteDto.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteImportStatements.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteInputType.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/completeTestCode.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/filterTestFileName.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestImportStatements.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestTemplateCode.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunctionFailure.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioAuthorizationRole.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
- /package/lib/{agent/src/structures → structures}/IAutoBeConfig.js +0 -0
- /package/lib/{agent/src/structures → structures}/IAutoBeProps.js +0 -0
- /package/lib/{agent/src/structures → structures}/IAutoBeVendor.js +0 -0
- /package/lib/{agent/src/utils → utils}/arrayToRecord.js +0 -0
- /package/lib/{agent/src/utils → utils}/backoffRetry.js +0 -0
- /package/lib/{agent/src/utils → utils}/divideArray.js +0 -0
- /package/lib/{agent/src/utils → utils}/emplaceMap.js +0 -0
- /package/lib/{agent/src/utils → utils}/executeCachedBatch.js +0 -0
- /package/lib/{agent/src/utils → utils}/predicateStateMessage.js +0 -0
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
// import { tags } from "typia";
|
|
2
|
+
|
|
3
|
+
// export interface ICheck {
|
|
4
|
+
// /** The title or description of the validation rule/check item */
|
|
5
|
+
// title: string;
|
|
6
|
+
|
|
7
|
+
// /** The validation state (true: passed/satisfied, false: failed/violated) */
|
|
8
|
+
// state: boolean;
|
|
9
|
+
// }
|
|
10
|
+
|
|
1
11
|
export interface IAutoBeTestCorrectApplication {
|
|
2
12
|
/**
|
|
3
13
|
* Main entry point for AI Function Call - analyzes compilation errors and
|
|
@@ -81,6 +91,161 @@ export namespace IAutoBeTestCorrectApplication {
|
|
|
81
91
|
revise: IReviseProps;
|
|
82
92
|
}
|
|
83
93
|
|
|
94
|
+
// /**
|
|
95
|
+
// * Comprehensive compilation error analysis and correction planning
|
|
96
|
+
// * properties.
|
|
97
|
+
// *
|
|
98
|
+
// * This interface structures the AI's deep thinking process during error
|
|
99
|
+
// * correction, requiring individual analysis of each compilation error along
|
|
100
|
+
// * with an overall strategy assessment. The AI must meticulously examine every
|
|
101
|
+
// * error message, understand its root cause, and propose targeted solutions
|
|
102
|
+
// * while maintaining a holistic view of the correction process.
|
|
103
|
+
// *
|
|
104
|
+
// * The structure enforces granular error analysis while ensuring the AI
|
|
105
|
+
// * maintains awareness of overarching patterns and systemic issues that may
|
|
106
|
+
// * require broader strategic changes like scenario rewrites or architectural
|
|
107
|
+
// * adjustments.
|
|
108
|
+
// */
|
|
109
|
+
// export interface IThinkProps {
|
|
110
|
+
// /**
|
|
111
|
+
// * Individual analyses for each compilation diagnostic.
|
|
112
|
+
// *
|
|
113
|
+
// * Contains detailed examination of every compilation error encountered,
|
|
114
|
+
// * with specific analysis and targeted solutions. Each entry represents a
|
|
115
|
+
// * single compilation diagnostic that must be resolved. The AI must read the
|
|
116
|
+
// * IAutoBeTypeScriptCompileResult.IDiagnostic objects, interpret their
|
|
117
|
+
// * content, and provide human-readable summaries along with precise fixes.
|
|
118
|
+
// *
|
|
119
|
+
// * This granular approach ensures no error is overlooked and each issue
|
|
120
|
+
// * receives appropriate attention and resolution strategy.
|
|
121
|
+
// */
|
|
122
|
+
// analyses: IDiagnosticAnalysis[] & tags.MinItems<1>;
|
|
123
|
+
|
|
124
|
+
// /**
|
|
125
|
+
// * Overall assessment of compilation issues and correction strategies.
|
|
126
|
+
// *
|
|
127
|
+
// * Synthesizes patterns across all individual errors to identify systemic
|
|
128
|
+
// * issues and overarching correction strategies. This includes verification
|
|
129
|
+
// * of TEST_WRITE.md and TEST_CORRECT.md compliance, assessment of whether
|
|
130
|
+
// * scenario rewrites are needed, identification of common error patterns,
|
|
131
|
+
// * and documentation of broad strategic decisions.
|
|
132
|
+
// *
|
|
133
|
+
// * Must address: type safety compliance, async/await patterns, scenario
|
|
134
|
+
// * adaptation requirements, and overall code quality considerations that
|
|
135
|
+
// * span multiple errors.
|
|
136
|
+
// */
|
|
137
|
+
// overall: string;
|
|
138
|
+
// }
|
|
139
|
+
|
|
140
|
+
// /**
|
|
141
|
+
// * Detailed analysis structure for individual compilation diagnostics.
|
|
142
|
+
// *
|
|
143
|
+
// * Represents the AI's systematic approach to understanding and resolving each
|
|
144
|
+
// * compilation diagnostic. Each diagnostic must be thoroughly analyzed to
|
|
145
|
+
// * understand its root cause, with a specific solution that addresses the
|
|
146
|
+
// * exact issue while maintaining type safety and code quality.
|
|
147
|
+
// */
|
|
148
|
+
// export interface IDiagnosticAnalysis {
|
|
149
|
+
// /**
|
|
150
|
+
// * AI-generated summary of the compilation diagnostic.
|
|
151
|
+
// *
|
|
152
|
+
// * The AI must analyze the `IAutoBeTypeScriptCompileResult.IDiagnostic`
|
|
153
|
+
// * object and provide a clear, concise summary of the error. This should
|
|
154
|
+
// * include the error message, file location, line/column position, and error
|
|
155
|
+
// * code in a human-readable format. The AI interprets and restructures the
|
|
156
|
+
// * raw diagnostic data to present it in a more understandable way.
|
|
157
|
+
// *
|
|
158
|
+
// * **IMPORTANT**: The AI should not copy the raw diagnostic object. Instead,
|
|
159
|
+
// * it must read and understand the diagnostic details, then compose a clear
|
|
160
|
+
// * string description that captures all essential information about the
|
|
161
|
+
// * error.
|
|
162
|
+
// */
|
|
163
|
+
// diagnostic: string;
|
|
164
|
+
|
|
165
|
+
// /**
|
|
166
|
+
// * Root cause analysis of why this compilation error occurred.
|
|
167
|
+
// *
|
|
168
|
+
// * **🚨 CRITICAL FIRST CHECK: Is this caused by INTENTIONAL TYPE ERROR TESTING? 🚨**
|
|
169
|
+
// * - Look for `as any` usage in the error location
|
|
170
|
+
// * - Check if code is intentionally sending wrong types to test type validation
|
|
171
|
+
// * - Check if code is testing missing required fields
|
|
172
|
+
// * - **IF YES → Root cause: "Prohibited type error testing code that must be DELETED"**
|
|
173
|
+
// *
|
|
174
|
+
// * **⚠️ THINK BEYOND THE DIAGNOSTIC LINE - EXPAND YOUR INVESTIGATION ⚠️**
|
|
175
|
+
// * - Do NOT focus only on the error line - it might be just a symptom
|
|
176
|
+
// * - The real cause might be ABOVE the error location in earlier code
|
|
177
|
+
// * - The test scenario itself might be fundamentally flawed or impossible
|
|
178
|
+
// * - Consider if the scenario is requesting non-existent APIs or prohibited actions
|
|
179
|
+
// * - Example: Error on line 50 might be caused by wrong type assignment on line 20
|
|
180
|
+
// * - Example: API call fails because the scenario describes unimplemented functionality
|
|
181
|
+
// *
|
|
182
|
+
// * AI must examine the error message carefully and identify the specific
|
|
183
|
+
// * reason for failure. This includes understanding whether it's a missing
|
|
184
|
+
// * property, type mismatch, nullable/undefined issue, incorrect API usage,
|
|
185
|
+
// * intentional type error testing, flawed scenario, or other TypeScript
|
|
186
|
+
// * violations. The analysis should be precise and fact-based, but also
|
|
187
|
+
// * consider the broader context and causal relationships.
|
|
188
|
+
// *
|
|
189
|
+
// * **MANDATORY**: The AI must thoroughly review ALL sections of
|
|
190
|
+
// * TEST_CORRECT.md and apply relevant error patterns and analysis guidelines
|
|
191
|
+
// * from sections 4.1-4.16 to ensure accurate diagnosis.
|
|
192
|
+
// *
|
|
193
|
+
// * Example: "Property 'code' is missing because the object literal lacks
|
|
194
|
+
// * this required field from ICommunityPlatformCommunity.ICreate interface"
|
|
195
|
+
// *
|
|
196
|
+
// * Example: "Type error caused by intentional wrong type test using 'as any'
|
|
197
|
+
// * - prohibited pattern that must be deleted"
|
|
198
|
+
// *
|
|
199
|
+
// * Example: "API endpoint doesn't exist - scenario requests unimplemented
|
|
200
|
+
// * functionality that cannot be tested"
|
|
201
|
+
// */
|
|
202
|
+
// analysis: string;
|
|
203
|
+
|
|
204
|
+
// /**
|
|
205
|
+
// * Specific solution to resolve this compilation error.
|
|
206
|
+
// *
|
|
207
|
+
// * **🚨 IF ROOT CAUSE IS TYPE ERROR TESTING → Solution: "DELETE entire test block" 🚨**
|
|
208
|
+
// * **🚨 IF PROBLEM IS UNRECOVERABLE → Solution: "DELETE the problematic section" 🚨**
|
|
209
|
+
// * - NEVER try to "fix" intentional type error tests - DELETE them
|
|
210
|
+
// * - NEVER violate type safety to force a fix - DELETE instead
|
|
211
|
+
// * - Tests using `as any` to send wrong types must be DELETED
|
|
212
|
+
// * - Tests checking type validation must be DELETED
|
|
213
|
+
// * - Unrecoverable compilation errors should result in DELETION
|
|
214
|
+
// *
|
|
215
|
+
// * **THREE SOLUTION TYPES:**
|
|
216
|
+
// * 1. **FIX**: Correct the error while maintaining functionality
|
|
217
|
+
// * 2. **DELETE**: Remove prohibited or unrecoverable code entirely
|
|
218
|
+
// * 3. **REWRITE**: Restructure if the scenario itself is fundamentally flawed
|
|
219
|
+
// *
|
|
220
|
+
// * Detailed correction strategy that addresses the exact issue identified in
|
|
221
|
+
// * the analysis. Solutions must be actionable, type-safe, and compliant with
|
|
222
|
+
// * all project guidelines. For nullable/undefined errors with typia tags,
|
|
223
|
+
// * immediately apply typia.assert(value!) pattern. For missing properties,
|
|
224
|
+
// * specify what will be added and how.
|
|
225
|
+
// *
|
|
226
|
+
// * **CRITICAL**: The AI must thoroughly review BOTH TEST_WRITE.md and
|
|
227
|
+
// * TEST_CORRECT.md before proposing solutions. All prohibitions from
|
|
228
|
+
// * TEST_WRITE.md must be strictly respected (no type bypasses, proper
|
|
229
|
+
// * async/await usage, etc.), and correction patterns from TEST_CORRECT.md
|
|
230
|
+
// * sections 4.1-4.16 must be properly applied.
|
|
231
|
+
// *
|
|
232
|
+
// * **DELETION IS A VALID SOLUTION** when:
|
|
233
|
+
// * - Code violates absolute prohibitions
|
|
234
|
+
// * - Fixing would require type safety violations
|
|
235
|
+
// * - The scenario describes impossible functionality
|
|
236
|
+
// * - Multiple fix attempts have failed
|
|
237
|
+
// *
|
|
238
|
+
// * Example: "Add missing 'code' property using typia.random<string>() to
|
|
239
|
+
// * generate a valid string value that satisfies the interface requirement"
|
|
240
|
+
// *
|
|
241
|
+
// * Example: "DELETE this entire test - it's testing type errors with 'as any'"
|
|
242
|
+
// *
|
|
243
|
+
// * Example: "DELETE this section - API endpoint doesn't exist and cannot be
|
|
244
|
+
// * tested without violating type safety"
|
|
245
|
+
// */
|
|
246
|
+
// solution: string;
|
|
247
|
+
// }
|
|
248
|
+
|
|
84
249
|
/**
|
|
85
250
|
* Revision properties for the final review and implementation phases.
|
|
86
251
|
*
|
|
@@ -88,6 +253,74 @@ export namespace IAutoBeTestCorrectApplication {
|
|
|
88
253
|
* workflow, ensuring systematic review and production-ready code delivery.
|
|
89
254
|
*/
|
|
90
255
|
export interface IReviseProps {
|
|
256
|
+
// /**
|
|
257
|
+
// * Dual-document compliance validation for TEST_WRITE.md and
|
|
258
|
+
// * TEST_CORRECT.md.
|
|
259
|
+
// *
|
|
260
|
+
// * This property tracks whether each section from BOTH TEST_WRITE.md and
|
|
261
|
+
// * TEST_CORRECT.md guidelines has been properly followed. Since the correct
|
|
262
|
+
// * agent must ensure compliance with both documents, keys should include
|
|
263
|
+
// * sections from both prompt files.
|
|
264
|
+
// *
|
|
265
|
+
// * Each ICheck item should have:
|
|
266
|
+
// *
|
|
267
|
+
// * - Title: Prefixed with source document for clarity ("TEST_WRITE: " or
|
|
268
|
+
// * "TEST_CORRECT: ")
|
|
269
|
+
// * - State: Compliance status (true if followed, false if violated)
|
|
270
|
+
// *
|
|
271
|
+
// * Note: Section identifiers may evolve as documentation updates, so
|
|
272
|
+
// * implementations should be flexible in handling different key formats.
|
|
273
|
+
// *
|
|
274
|
+
// * Example:
|
|
275
|
+
// *
|
|
276
|
+
// * ```typescript
|
|
277
|
+
// * rules: [
|
|
278
|
+
// * { title: "TEST_WRITE: 1. Role and Responsibility", state: true },
|
|
279
|
+
// * { title: "TEST_WRITE: 3.1. Import Management", state: true },
|
|
280
|
+
// * {
|
|
281
|
+
// * title: "TEST_CORRECT: 4.1. Missing Properties Pattern",
|
|
282
|
+
// * state: true,
|
|
283
|
+
// * },
|
|
284
|
+
// * {
|
|
285
|
+
// * title: "TEST_CORRECT: 4.2. Type Mismatch Pattern",
|
|
286
|
+
// * state: false,
|
|
287
|
+
// * },
|
|
288
|
+
// * // ... other sections from both documents
|
|
289
|
+
// * ];
|
|
290
|
+
// * ```
|
|
291
|
+
// */
|
|
292
|
+
// rules: ICheck[] & tags.MinItems<1>;
|
|
293
|
+
|
|
294
|
+
// /**
|
|
295
|
+
// * Combined quality checklist validation from both prompt documents.
|
|
296
|
+
// *
|
|
297
|
+
// * This property captures the compliance status for checklist items from
|
|
298
|
+
// * BOTH TEST_WRITE.md (Section 5: Final Checklist) and TEST_CORRECT.md
|
|
299
|
+
// * (Section 5: Final Review Checklist). The correct agent must validate
|
|
300
|
+
// * against both checklists to ensure comprehensive quality control.
|
|
301
|
+
// *
|
|
302
|
+
// * Each ICheck item should have:
|
|
303
|
+
// *
|
|
304
|
+
// * - Title: Checklist item as described in the documents
|
|
305
|
+
// * - State: Whether the criterion has been satisfied
|
|
306
|
+
// *
|
|
307
|
+
// * Note: Checklist items may be updated over time, so implementations should
|
|
308
|
+
// * adapt to documentation changes while maintaining the validation purpose.
|
|
309
|
+
// *
|
|
310
|
+
// * Example:
|
|
311
|
+
// *
|
|
312
|
+
// * ```typescript
|
|
313
|
+
// * checkList: [
|
|
314
|
+
// * { title: "No compilation errors", state: true },
|
|
315
|
+
// * { title: "Proper async/await usage", state: true },
|
|
316
|
+
// * { title: "All typia tags preserved", state: true },
|
|
317
|
+
// * { title: "No type bypasses or workarounds", state: false },
|
|
318
|
+
// * // ... other checklist items from both documents
|
|
319
|
+
// * ];
|
|
320
|
+
// * ```
|
|
321
|
+
// */
|
|
322
|
+
// checkList: ICheck[] & tags.MinItems<1>;
|
|
323
|
+
|
|
91
324
|
/**
|
|
92
325
|
* Step 3: Code review and correction validation.
|
|
93
326
|
*
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export interface IAutoBeTestCorrectInvalidRequestApplication {
|
|
2
|
+
/**
|
|
3
|
+
* Rewrite function to remove code containing invalid type API requests.
|
|
4
|
+
*
|
|
5
|
+
* This function is called when the agent detects code that attempts to send
|
|
6
|
+
* API requests with deliberately wrong types, causing TypeScript compilation
|
|
7
|
+
* errors. The agent will remove the problematic code sections while
|
|
8
|
+
* preserving valid test code.
|
|
9
|
+
*
|
|
10
|
+
* Common patterns that trigger this function:
|
|
11
|
+
*
|
|
12
|
+
* - TestValidator.error calls testing type violations
|
|
13
|
+
* - Missing required fields with type assertions
|
|
14
|
+
* - Wrong type assignments with satisfies operator
|
|
15
|
+
* - Nested type violations in complex objects
|
|
16
|
+
* - Partial type testing with invalid structures
|
|
17
|
+
*
|
|
18
|
+
* The rationale for deletion:
|
|
19
|
+
*
|
|
20
|
+
* - Type validation is the server's responsibility, not E2E tests
|
|
21
|
+
* - TypeScript compiler should enforce type safety at compile time
|
|
22
|
+
* - Invalid type testing breaks the entire test suite compilation
|
|
23
|
+
* - E2E tests should focus on business logic, not type system violations
|
|
24
|
+
*
|
|
25
|
+
* @param props - The analysis and correction properties
|
|
26
|
+
* @param props.think - Analysis of what specific invalid request pattern is
|
|
27
|
+
* causing the error
|
|
28
|
+
* @param props.draft - Initial corrected code with problematic sections
|
|
29
|
+
* completely removed
|
|
30
|
+
* @param props.revise - Review process and final cleaned code
|
|
31
|
+
*/
|
|
32
|
+
rewrite(props: IAutoBeTestCorrectInvalidRequestApplication.IProps): void;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Reject function when no invalid type API requests are detected.
|
|
36
|
+
*
|
|
37
|
+
* This function is called when the compilation error is not related to
|
|
38
|
+
* invalid API request types, indicating the agent should not intervene.
|
|
39
|
+
*
|
|
40
|
+
* Common scenarios for rejection:
|
|
41
|
+
*
|
|
42
|
+
* - Syntax errors unrelated to type violations
|
|
43
|
+
* - Legitimate type mismatches that need fixing (not deletion)
|
|
44
|
+
* - Framework-specific compilation issues
|
|
45
|
+
* - Configuration or environment problems
|
|
46
|
+
*
|
|
47
|
+
* When called, this indicates that another specialized agent should handle
|
|
48
|
+
* the compilation error, as it's outside this agent's domain.
|
|
49
|
+
*/
|
|
50
|
+
reject(): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace IAutoBeTestCorrectInvalidRequestApplication {
|
|
54
|
+
/**
|
|
55
|
+
* Properties for the rewrite function containing the analysis and correction
|
|
56
|
+
* workflow.
|
|
57
|
+
*
|
|
58
|
+
* This follows a three-phase approach: think → draft → revise, ensuring
|
|
59
|
+
* systematic removal of invalid type testing code while maintaining the
|
|
60
|
+
* integrity of valid E2E tests.
|
|
61
|
+
*/
|
|
62
|
+
export interface IProps {
|
|
63
|
+
/**
|
|
64
|
+
* Initial analysis phase.
|
|
65
|
+
*
|
|
66
|
+
* Contains the agent's analysis of what specific invalid request pattern
|
|
67
|
+
* was found in the code and how it's causing the compilation error. This
|
|
68
|
+
* should identify:
|
|
69
|
+
*
|
|
70
|
+
* - The exact pattern (as any, satisfies, TestValidator.error, etc.)
|
|
71
|
+
* - Line numbers and locations of violations
|
|
72
|
+
* - The TypeScript error codes being triggered
|
|
73
|
+
* - Why this constitutes invalid type testing
|
|
74
|
+
*
|
|
75
|
+
* Example: "Detected TestValidator.error() call at line 45 with 'as any'
|
|
76
|
+
* casting on request body containing deliberately wrong types (number for
|
|
77
|
+
* email field). This is causing TS2345 compilation error."
|
|
78
|
+
*/
|
|
79
|
+
think: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Draft correction phase.
|
|
83
|
+
*
|
|
84
|
+
* The initial corrected code with the problematic API request sections
|
|
85
|
+
* completely removed while preserving all valid test code.
|
|
86
|
+
*
|
|
87
|
+
* Rules for drafting:
|
|
88
|
+
*
|
|
89
|
+
* - Remove entire test functions containing type violations
|
|
90
|
+
* - Do not comment out code - delete it completely
|
|
91
|
+
* - Preserve test suite structure and valid tests
|
|
92
|
+
* - Maintain proper indentation and formatting
|
|
93
|
+
* - Keep imports that are still needed by remaining code
|
|
94
|
+
*/
|
|
95
|
+
draft: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Review and finalization phase.
|
|
99
|
+
*
|
|
100
|
+
* Contains the review of changes made and the final cleaned code that
|
|
101
|
+
* should compile without the invalid API request errors. This ensures the
|
|
102
|
+
* correction is complete and accurate.
|
|
103
|
+
*/
|
|
104
|
+
revise: IReviseProps;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Properties for the revision phase of the correction process.
|
|
109
|
+
*
|
|
110
|
+
* This phase ensures that the removal was complete and the remaining code is
|
|
111
|
+
* valid and compilable.
|
|
112
|
+
*/
|
|
113
|
+
export interface IReviseProps {
|
|
114
|
+
/**
|
|
115
|
+
* Review of the changes made.
|
|
116
|
+
*
|
|
117
|
+
* Brief explanation of what invalid API request code was removed and
|
|
118
|
+
* verification that valid test code was preserved. Should confirm:
|
|
119
|
+
*
|
|
120
|
+
* - Which patterns were found and removed
|
|
121
|
+
* - Line ranges that were deleted
|
|
122
|
+
* - Verification that valid tests remain intact
|
|
123
|
+
* - Confirmation that no partial fixes were applied
|
|
124
|
+
*
|
|
125
|
+
* Example: "Removed lines 43-52 containing TestValidator.error with invalid
|
|
126
|
+
* type casting. Verified remaining tests are valid and unaffected."
|
|
127
|
+
*/
|
|
128
|
+
review: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Final corrected code.
|
|
132
|
+
*
|
|
133
|
+
* The complete, cleaned test code with all invalid API request sections
|
|
134
|
+
* removed, ready for compilation.
|
|
135
|
+
*
|
|
136
|
+
* This code must:
|
|
137
|
+
*
|
|
138
|
+
* - Compile without TypeScript errors
|
|
139
|
+
* - Contain only valid business logic tests
|
|
140
|
+
* - Have no `as any` or similar type violations
|
|
141
|
+
* - Maintain the original file structure
|
|
142
|
+
* - Be production-ready E2E test code
|
|
143
|
+
*/
|
|
144
|
+
final: string;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutoBeOpenApi
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
2
|
import { tags } from "typia";
|
|
3
3
|
|
|
4
4
|
export interface IAutoBeTestScenarioApplication {
|
|
@@ -128,7 +128,7 @@ export namespace IAutoBeTestScenarioApplication {
|
|
|
128
128
|
* - Don't imply dependency on other API operations
|
|
129
129
|
* - Represent complete user interactions
|
|
130
130
|
*/
|
|
131
|
-
functionName: string
|
|
131
|
+
functionName: string;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* A list of other API endpoints that this scenario logically depends on.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
// import { tags } from "typia";
|
|
2
2
|
|
|
3
3
|
export interface IAutoBeTestWriteApplication {
|
|
4
4
|
/**
|
|
@@ -41,7 +41,7 @@ export namespace IAutoBeTestWriteApplication {
|
|
|
41
41
|
* Workflow: Scenario analysis → Domain identification → Test organization
|
|
42
42
|
* structure
|
|
43
43
|
*/
|
|
44
|
-
domain: string
|
|
44
|
+
domain: string;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* Step 3: Initial TypeScript E2E test code implementation.
|
|
@@ -64,9 +64,9 @@ export namespace IAutoBeTestWriteApplication {
|
|
|
64
64
|
* Steps 4-5: Code review and final refinement process.
|
|
65
65
|
*
|
|
66
66
|
* Contains the iterative improvement workflow that transforms the initial
|
|
67
|
-
* draft into production-ready test code.
|
|
68
|
-
*
|
|
69
|
-
*
|
|
67
|
+
* draft into production-ready test code. The review phase identifies issues
|
|
68
|
+
* to fix or code to delete, followed by the final phase that produces
|
|
69
|
+
* the polished, production-ready test implementation.
|
|
70
70
|
*
|
|
71
71
|
* Workflow: Draft → Review analysis → Final implementation
|
|
72
72
|
*/
|
|
@@ -74,10 +74,60 @@ export namespace IAutoBeTestWriteApplication {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export interface IReviseProps {
|
|
77
|
+
// /**
|
|
78
|
+
// * Test implementation rules compliance validation.
|
|
79
|
+
// *
|
|
80
|
+
// * This property tracks whether each section of the TEST_WRITE.md guidelines
|
|
81
|
+
// * has been properly followed. Each array element represents a section from
|
|
82
|
+
// * the documentation with its title and compliance status.
|
|
83
|
+
// *
|
|
84
|
+
// * Note: The specific section titles may evolve as documentation updates, so
|
|
85
|
+
// * implementations should be flexible in handling different titles.
|
|
86
|
+
// *
|
|
87
|
+
// * Example:
|
|
88
|
+
// *
|
|
89
|
+
// * ```typescript
|
|
90
|
+
// * rules: [
|
|
91
|
+
// * { title: "1. Role and Responsibility", state: true },
|
|
92
|
+
// * { title: "2. Input Materials Provided", state: true },
|
|
93
|
+
// * { title: "3. Code Generation Requirements", state: false },
|
|
94
|
+
// * // ... other sections
|
|
95
|
+
// * ];
|
|
96
|
+
// * ```
|
|
97
|
+
// */
|
|
98
|
+
// rules: ICheck[] & tags.MinItems<1>;
|
|
99
|
+
|
|
100
|
+
// /**
|
|
101
|
+
// * Final quality checklist validation results.
|
|
102
|
+
// *
|
|
103
|
+
// * This property captures the compliance status for each item in the Final
|
|
104
|
+
// * Checklist (Section 5) from TEST_WRITE.md. Each array element represents a
|
|
105
|
+
// * checklist item with its description and validation result.
|
|
106
|
+
// *
|
|
107
|
+
// * Note: Checklist items may be updated over time, so implementations should
|
|
108
|
+
// * adapt to documentation changes while maintaining the validation purpose.
|
|
109
|
+
// *
|
|
110
|
+
// * Example:
|
|
111
|
+
// *
|
|
112
|
+
// * ```typescript
|
|
113
|
+
// * checkList: [
|
|
114
|
+
// * { title: "NO additional import statements", state: true },
|
|
115
|
+
// * { title: "NO wrong type data in requests", state: true },
|
|
116
|
+
// * { title: "EVERY api.functional.* call has await", state: false },
|
|
117
|
+
// * // ... other checklist items
|
|
118
|
+
// * ];
|
|
119
|
+
// * ```
|
|
120
|
+
// */
|
|
121
|
+
// checkList: ICheck[] & tags.MinItems<1>;
|
|
122
|
+
|
|
77
123
|
/**
|
|
78
124
|
* Step 4: Code review and quality assessment.
|
|
79
125
|
*
|
|
80
|
-
*
|
|
126
|
+
* **🚨 TWO TYPES OF REVISIONS: FIX AND DELETE 🚨**
|
|
127
|
+
*
|
|
128
|
+
* AI performs a thorough review of the draft implementation for:
|
|
129
|
+
*
|
|
130
|
+
* **1. FIX - Improve existing code:**
|
|
81
131
|
*
|
|
82
132
|
* **Compilation & Syntax:**
|
|
83
133
|
*
|
|
@@ -99,18 +149,29 @@ export namespace IAutoBeTestWriteApplication {
|
|
|
99
149
|
* - Edge case handling and error condition testing
|
|
100
150
|
* - Proper data dependencies and cleanup procedures
|
|
101
151
|
*
|
|
152
|
+
* **2. DELETE - Remove prohibited code entirely:**
|
|
153
|
+
*
|
|
154
|
+
* **🚨 TYPE ERROR TESTING - DELETE IMMEDIATELY 🚨**
|
|
155
|
+
*
|
|
156
|
+
* - DELETE any code using `as any` to send wrong types
|
|
157
|
+
* - DELETE any intentional type mismatches for "testing"
|
|
158
|
+
* - DELETE any missing required fields testing
|
|
159
|
+
* - DELETE tests that contradict compilation requirements
|
|
160
|
+
*
|
|
102
161
|
* **Code Quality & Security:**
|
|
103
162
|
*
|
|
104
|
-
* - Type safety violations (any, @ts-ignore, etc.)
|
|
105
|
-
* - Variable naming and code organization
|
|
163
|
+
* - Type safety violations (any, @ts-ignore, etc.) - DELETE if found
|
|
164
|
+
* - Variable naming and code organization - FIX if needed
|
|
106
165
|
* - Performance considerations and resource management
|
|
107
166
|
* - Security best practices in test data generation
|
|
108
167
|
*
|
|
109
|
-
* Workflow: Draft code → Systematic analysis →
|
|
110
|
-
* recommendations
|
|
168
|
+
* Workflow: Draft code → Systematic analysis → FIX or DELETE decisions
|
|
111
169
|
*
|
|
112
170
|
* The review must identify concrete issues with line-by-line feedback and
|
|
113
|
-
* provide actionable solutions
|
|
171
|
+
* provide actionable solutions (FIX) or deletion instructions (DELETE) for
|
|
172
|
+
* each problem discovered.
|
|
173
|
+
*
|
|
174
|
+
* **DO NOT FIX TYPE ERROR TESTS - DELETE THEM COMPLETELY**
|
|
114
175
|
*/
|
|
115
176
|
review: string;
|
|
116
177
|
|
|
@@ -119,15 +180,49 @@ export namespace IAutoBeTestWriteApplication {
|
|
|
119
180
|
*
|
|
120
181
|
* AI produces the final, polished version of the test code incorporating
|
|
121
182
|
* all review feedback. This code represents the completed test
|
|
122
|
-
* implementation, ready for production deployment.
|
|
123
|
-
*
|
|
183
|
+
* implementation, ready for production deployment.
|
|
184
|
+
*
|
|
185
|
+
* **🚨 CRITICAL: APPLY ALL FIXES AND DELETIONS FROM REVIEW 🚨**
|
|
186
|
+
*
|
|
187
|
+
* - FIX all correctable issues identified in review
|
|
188
|
+
* - DELETE all prohibited code identified in review
|
|
189
|
+
* - If review found type error tests, they MUST be deleted in final
|
|
190
|
+
* - If review found code to DELETE, final MUST be different from draft
|
|
124
191
|
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
192
|
+
* All identified issues must be resolved, and the code must meet the
|
|
193
|
+
* highest quality standards.
|
|
194
|
+
*
|
|
195
|
+
* Workflow: Review feedback → Apply FIXES → Apply DELETIONS →
|
|
196
|
+
* Production-ready implementation
|
|
127
197
|
*
|
|
128
198
|
* This is the ultimate deliverable that will be used in the actual test
|
|
129
199
|
* suite.
|
|
130
200
|
*/
|
|
131
201
|
final: string;
|
|
132
202
|
}
|
|
203
|
+
|
|
204
|
+
// /**
|
|
205
|
+
// * Check validation item structure.
|
|
206
|
+
// *
|
|
207
|
+
// * Represents a validation check with its title and compliance state. Used for
|
|
208
|
+
// * both rules validation and final checklist validation.
|
|
209
|
+
// */
|
|
210
|
+
// export interface ICheck {
|
|
211
|
+
// /**
|
|
212
|
+
// * The title or description of the check.
|
|
213
|
+
// *
|
|
214
|
+
// * For rules: Section identifiers from TEST_WRITE.md (e.g., "1. Role and
|
|
215
|
+
// * Responsibility") For checklist: Checklist item descriptions (e.g., "No
|
|
216
|
+
// * compilation errors")
|
|
217
|
+
// */
|
|
218
|
+
// title: string;
|
|
219
|
+
|
|
220
|
+
// /**
|
|
221
|
+
// * The validation state of this check.
|
|
222
|
+
// *
|
|
223
|
+
// * - True: The requirement has been satisfied
|
|
224
|
+
// * - False: The requirement has been violated or not met
|
|
225
|
+
// */
|
|
226
|
+
// state: boolean;
|
|
227
|
+
// }
|
|
133
228
|
}
|
|
@@ -7,7 +7,7 @@ export const getReferenceIds = (props: {
|
|
|
7
7
|
}): string[] => {
|
|
8
8
|
const result: Set<string> = new Set();
|
|
9
9
|
const emplace = (key: string) => {
|
|
10
|
-
if (key.endsWith("_id")) result.add(key);
|
|
10
|
+
if (key.endsWith("_id") || key.endsWith("Id")) result.add(key);
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
props.operation.parameters.forEach((p) => emplace(p.name));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class AutoBeTimeoutError extends Error {
|
|
2
|
+
public constructor(message: string) {
|
|
3
|
+
super(message);
|
|
4
|
+
|
|
5
|
+
const proto = new.target.prototype;
|
|
6
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(this, proto);
|
|
7
|
+
else (this as any).__proto__ = proto;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public get name(): string {
|
|
11
|
+
return this.constructor.name;
|
|
12
|
+
}
|
|
13
|
+
}
|