@autobe/agent 0.24.2 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.js +11 -1
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +1 -0
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +21 -21
- package/lib/context/IAutoBeApplication.d.ts +101 -6
- package/lib/context/IAutoBeApplicationProps.d.ts +6 -2
- package/lib/factory/createAgenticaHistory.js +1 -1
- package/lib/factory/createAgenticaHistory.js.map +1 -1
- package/lib/factory/createAutoBeApplication.js +80 -90
- package/lib/factory/createAutoBeApplication.js.map +1 -1
- package/lib/factory/createAutoBeContext.js +6 -5
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +3914 -2594
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +5 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +18 -3
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +5 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +19 -7
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +3 -2
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +2 -2
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +2 -2
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +36 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +22 -42
- package/lib/orchestrate/facade/transformFacadeStateMessage.js +1 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js +2 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +5 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +20 -7
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.d.ts +3 -0
- package/lib/orchestrate/interface/histories/{transformInterfacePrerequisiteHistories.js → transformInterfaceCommonPrerequisiteHistories.js} +4 -4
- package/lib/orchestrate/interface/histories/transformInterfaceCommonPrerequisiteHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +6 -1
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +31 -23
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +6 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +22 -6
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +4 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +27 -6
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +5 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +21 -5
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.d.ts +3 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js +102 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +5 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +20 -4
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +45 -11
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +277 -37
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +69 -70
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +6 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +28 -13
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +4 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +11 -8
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.d.ts +5 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +36 -21
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +260 -29
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.d.ts +5 -0
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +713 -0
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +5 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +83 -53
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js +41 -7
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +0 -38
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +6 -10
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.d.ts +52 -0
- package/lib/orchestrate/{common/structures/IAutoBeCommonCorrectDateApplication.js → interface/structures/IAutoBeInterfacePrerequisitesApplication.js} +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +0 -33
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.d.ts +6 -2
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +105 -5
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +20 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.d.ts +3 -4
- package/lib/orchestrate/interface/utils/OperationValidator.js +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +4 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +19 -8
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +6 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +20 -6
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +3 -3
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +6 -3
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +12 -6
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/{common/histories/transformCommonCorrectDateHistories.d.ts → realize/histories/transformRealizeCorrectCastingHistories.d.ts} +1 -2
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js +32 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +14 -22
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +6 -6
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +8 -2
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js +1 -2
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.d.ts +2 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +119 -42
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +82 -52
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +128 -88
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +117 -54
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +52 -26
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +44 -34
- package/lib/orchestrate/realize/utils/InternalFileSystem.js +1 -1
- package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +1 -1
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -5
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +8 -3
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +44 -17
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +4 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js +24 -9
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.d.ts +8 -0
- package/lib/orchestrate/realize/utils/printErrorHints.js +48 -0
- package/lib/orchestrate/realize/utils/printErrorHints.js.map +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.d.ts +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +93 -53
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +5 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +11 -7
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +7 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +35 -96
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.d.ts +6 -3
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +33 -77
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +5 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js +111 -94
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +20 -14
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +4 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +81 -50
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +31 -13
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +18 -7
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.d.ts +5 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +20 -12
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.d.ts +4 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +46 -25
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +9 -5
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.d.ts +8 -2
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +11 -7
- package/lib/orchestrate/test/utils/getPrerequisites.d.ts +5 -0
- package/lib/orchestrate/test/utils/getPrerequisites.js +36 -0
- package/lib/orchestrate/test/utils/getPrerequisites.js.map +1 -0
- package/lib/orchestrate/test/utils/getReferenceIds.js +1 -1
- package/lib/orchestrate/test/utils/getReferenceIds.js.map +1 -1
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +17 -1
- package/src/AutoBeMockAgent.ts +1 -0
- package/src/constants/AutoBeSystemPromptConstant.ts +21 -21
- package/src/context/IAutoBeApplication.ts +101 -6
- package/src/context/IAutoBeApplicationProps.ts +6 -2
- package/src/factory/createAgenticaHistory.ts +11 -5
- package/src/factory/createAutoBeContext.ts +6 -5
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.ts +5 -1
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +16 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +22 -7
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +3 -2
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +2 -1
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +3 -2
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +2 -2
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +25 -45
- package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +2 -1
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +23 -9
- package/src/orchestrate/interface/histories/{transformInterfacePrerequisiteHistories.ts → transformInterfaceCommonPrerequisiteHistories.ts} +1 -1
- package/src/orchestrate/interface/histories/transformInterfaceComplementHistories.ts +33 -24
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +26 -9
- package/src/orchestrate/interface/histories/transformInterfaceGroupHistories.ts +30 -6
- package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +24 -7
- package/src/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.ts +118 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +23 -6
- package/src/orchestrate/interface/orchestrateInterface.ts +65 -20
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +22 -12
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +34 -47
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +40 -28
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +9 -3
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +51 -35
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +274 -0
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +52 -33
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +1 -1
- package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +0 -39
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +6 -10
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.ts +58 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +0 -34
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +92 -4
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +19 -1
- package/src/orchestrate/interface/utils/OperationValidator.ts +9 -7
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +20 -6
- package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +24 -9
- package/src/orchestrate/prisma/orchestratePrisma.ts +7 -3
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +5 -1
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +15 -10
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +44 -0
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +13 -24
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +6 -6
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +6 -4
- package/src/orchestrate/realize/internal/compileRealizeFiles.ts +1 -5
- package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +102 -16
- package/src/orchestrate/realize/orchestrateRealize.ts +121 -81
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +50 -7
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +14 -4
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +54 -29
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +46 -35
- package/src/orchestrate/realize/utils/InternalFileSystem.ts +1 -1
- package/src/orchestrate/realize/utils/generateRealizeScenario.ts +1 -5
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +54 -22
- package/src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts +28 -16
- package/src/orchestrate/realize/utils/printErrorHints.ts +55 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +99 -97
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +14 -7
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +50 -115
- package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +41 -111
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +35 -12
- package/src/orchestrate/test/orchestrateTest.ts +19 -13
- package/src/orchestrate/test/orchestrateTestCorrect.ts +71 -51
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +13 -1
- package/src/orchestrate/test/orchestrateTestScenario.ts +27 -17
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +32 -19
- package/src/orchestrate/test/orchestrateTestWrite.ts +20 -10
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +9 -228
- package/src/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.ts +8 -2
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +11 -78
- package/src/orchestrate/test/utils/getPrerequisites.ts +51 -0
- package/src/orchestrate/test/utils/getReferenceIds.ts +2 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectDateHistories.js +0 -48
- package/lib/orchestrate/common/histories/transformCommonCorrectDateHistories.js.map +0 -1
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectDateApplication.d.ts +0 -35
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectDateApplication.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +0 -3
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +0 -6
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js +0 -22
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectDate.d.ts +0 -4
- package/lib/orchestrate/realize/orchestrateRealizeCorrectDate.js +0 -540
- package/lib/orchestrate/realize/orchestrateRealizeCorrectDate.js.map +0 -1
- package/src/orchestrate/common/histories/transformCommonCorrectDateHistories.ts +0 -60
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectDateApplication.ts +0 -40
- package/src/orchestrate/interface/utils/OpenApiEndpointComparator.ts +0 -23
- package/src/orchestrate/realize/orchestrateRealizeCorrectDate.ts +0 -372
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestScenario.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestScenario.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,0DA+FC;;;AA/GD,yCAA8E;AAE9E,+BAA+C;AAC/C,kDAA0B;AAC1B,uEAAoE;AACpE,+BAA0B;AAG1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,+FAA4F;AAC5F,mFAAgF;AAIhF,SAAsB,uBAAuB,CAC3C,GAAyB;;;QAEzB,MAAM,QAAQ,GACZ,MAAA,GAAG,CAAC,KAAK,EAAE,CAAC,SAAS,0CAAE,QAAQ,CAAC;QAClC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GACR,IAAI,cAAO,CACT,QAAQ,CAAC,UAAU,CAAC,GAAG,CACrB,CAAC,EAAE,EAAE,EAAE,CACL,IAAI,WAAI,CACN;YACE,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,EACD,EAAE,CACH,CACJ,EACD,gCAAwB,CAAC,QAAQ,EACjC,gCAAwB,CAAC,MAAM,CAChC,CAAC;QAEJ,MAAM,gBAAgB,GAAW;YAC/B,+CAA+C;YAC/C,EAAE;YACF,iBAAiB;YACjB,iBAAiB;YACjB,GAAG,QAAQ,CAAC,UAA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EAAE,CAAC,IAAI,WAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAC1C,uCAA+B,CAAC,QAAQ,EACxC,uCAA+B,CAAC,MAAM,CACvC;KACE,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;AAE5B,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACkC;YAC/D,QAAQ,EAAE;gBACR,YAAY,EAAE,QAAQ;aACvB;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACkC;YAC9D,QAAQ,EAAE;gBACR,YAAY,EAAE,QAAQ;aACvB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -2,4 +2,8 @@ import { AutoBeProgressEventBase } from "@autobe/interface";
|
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
4
|
import { IAutoBeTestScenarioApplication } from "./structures/IAutoBeTestScenarioApplication";
|
|
5
|
-
export declare function orchestrateTestScenarioReview<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>,
|
|
5
|
+
export declare function orchestrateTestScenarioReview<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: {
|
|
6
|
+
instruction: string;
|
|
7
|
+
groups: IAutoBeTestScenarioApplication.IScenarioGroup[];
|
|
8
|
+
progress: AutoBeProgressEventBase;
|
|
9
|
+
}): Promise<IAutoBeTestScenarioApplication.IScenarioGroup[]>;
|
|
@@ -54,13 +54,13 @@ const typia_1 = __importDefault(require("typia"));
|
|
|
54
54
|
const uuid_1 = require("uuid");
|
|
55
55
|
const assertSchemaModel_1 = require("../../context/assertSchemaModel");
|
|
56
56
|
const transformTestScenarioReviewHistories_1 = require("./histories/transformTestScenarioReviewHistories");
|
|
57
|
-
function orchestrateTestScenarioReview(ctx,
|
|
57
|
+
function orchestrateTestScenarioReview(ctx, props) {
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
const res = yield review(ctx,
|
|
59
|
+
const res = yield review(ctx, props);
|
|
60
60
|
return res;
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function review(ctx,
|
|
63
|
+
function review(ctx, props) {
|
|
64
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
var _a, _b;
|
|
66
66
|
try {
|
|
@@ -72,9 +72,13 @@ function review(ctx, groups, progress) {
|
|
|
72
72
|
controller: createController({
|
|
73
73
|
model: ctx.model,
|
|
74
74
|
pointer,
|
|
75
|
-
originalGroups: groups,
|
|
75
|
+
originalGroups: props.groups,
|
|
76
|
+
}),
|
|
77
|
+
histories: (0, transformTestScenarioReviewHistories_1.transformTestScenarioReviewHistories)({
|
|
78
|
+
state: ctx.state(),
|
|
79
|
+
groups: props.groups,
|
|
80
|
+
instruction: props.instruction,
|
|
76
81
|
}),
|
|
77
|
-
histories: (0, transformTestScenarioReviewHistories_1.transformTestScenarioReviewHistories)(ctx, groups),
|
|
78
82
|
enforceFunctionCall: true,
|
|
79
83
|
message: "Review the Test Scenario.",
|
|
80
84
|
});
|
|
@@ -82,13 +86,13 @@ function review(ctx, groups, progress) {
|
|
|
82
86
|
// unreachable
|
|
83
87
|
throw new Error("Failed to get review result.");
|
|
84
88
|
}
|
|
85
|
-
progress.total = Math.max(progress.total, (progress.completed += pointer.value.scenarioGroups.length));
|
|
89
|
+
props.progress.total = Math.max(props.progress.total, (props.progress.completed += pointer.value.scenarioGroups.length));
|
|
86
90
|
ctx.dispatch({
|
|
87
91
|
type: "testScenariosReview",
|
|
88
92
|
id: (0, uuid_1.v7)(),
|
|
89
93
|
tokenUsage,
|
|
90
|
-
total: progress.total,
|
|
91
|
-
completed: progress.completed,
|
|
94
|
+
total: props.progress.total,
|
|
95
|
+
completed: props.progress.completed,
|
|
92
96
|
scenarios: pointer.value.scenarioGroups
|
|
93
97
|
.map((group) => {
|
|
94
98
|
return group.scenarios.map((s) => {
|
|
@@ -99,11 +103,15 @@ function review(ctx, groups, progress) {
|
|
|
99
103
|
step: (_b = (_a = ctx.state().interface) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
|
|
100
104
|
created_at: new Date().toISOString(),
|
|
101
105
|
});
|
|
102
|
-
|
|
106
|
+
// @todo michael: need to investigate scenario removal more gracefully
|
|
107
|
+
return pointer.value.pass
|
|
108
|
+
? // || pointer.value.scenarioGroups.length < props.groups.length
|
|
109
|
+
props.groups
|
|
110
|
+
: pointer.value.scenarioGroups;
|
|
103
111
|
}
|
|
104
112
|
catch (_c) {
|
|
105
|
-
progress.completed += groups.length;
|
|
106
|
-
return groups;
|
|
113
|
+
props.progress.completed += props.groups.length;
|
|
114
|
+
return props.groups;
|
|
107
115
|
}
|
|
108
116
|
});
|
|
109
117
|
}
|
|
@@ -279,7 +287,7 @@ function createController(props) {
|
|
|
279
287
|
},
|
|
280
288
|
};
|
|
281
289
|
}
|
|
282
|
-
const uniqueScenarioGroups = (groups) => new tstl_1.HashMap(groups.map((g) => new tstl_1.Pair(g.endpoint, g)), utils_1.
|
|
290
|
+
const uniqueScenarioGroups = (groups) => new tstl_1.HashMap(groups.map((g) => new tstl_1.Pair(g.endpoint, g)), utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals)
|
|
283
291
|
.toJSON()
|
|
284
292
|
.map((it) => it.second);
|
|
285
293
|
const collection = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestScenarioReview.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestScenarioReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,
|
|
1
|
+
{"version":3,"file":"orchestrateTestScenarioReview.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestScenarioReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,sEAeC;;;AA3BD,yCAAgE;AAEhE,+BAA+C;AAC/C,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,2GAAwG;AAIxG,SAAsB,6BAA6B,CAGjD,GAAyB,EACzB,KAIC;;QAED,MAAM,GAAG,GAAoD,MAAM,MAAM,CACvE,GAAG,EACH,KAAK,CACN,CAAC;QACF,OAAO,GAAG,CAAC;IACb,CAAC;CAAA;AAED,SAAe,MAAM,CACnB,GAAyB,EACzB,KAIC;;;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GACX;gBACE,KAAK,EAAE,IAAI;aACZ,CAAC;YACJ,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC;gBAC1C,MAAM,EAAE,qBAAqB;gBAC7B,UAAU,EAAE,gBAAgB,CAAC;oBAC3B,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,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AAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;AAE5B,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACwC;YACrE,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;aACjB;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACwC;YACpE,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;aACjB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -2,4 +2,7 @@ import { AutoBeTestScenario } from "@autobe/interface";
|
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
4
|
import { IAutoBeTestWriteResult } from "./structures/IAutoBeTestWriteResult";
|
|
5
|
-
export declare function orchestrateTestWrite<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>,
|
|
5
|
+
export declare function orchestrateTestWrite<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, props: {
|
|
6
|
+
instruction: string;
|
|
7
|
+
scenarios: AutoBeTestScenario[];
|
|
8
|
+
}): Promise<IAutoBeTestWriteResult[]>;
|
|
@@ -55,10 +55,10 @@ const executeCachedBatch_1 = require("../../utils/executeCachedBatch");
|
|
|
55
55
|
const completeTestCode_1 = require("./compile/completeTestCode");
|
|
56
56
|
const getTestScenarioArtifacts_1 = require("./compile/getTestScenarioArtifacts");
|
|
57
57
|
const transformTestWriteHistories_1 = require("./histories/transformTestWriteHistories");
|
|
58
|
-
function orchestrateTestWrite(ctx,
|
|
58
|
+
function orchestrateTestWrite(ctx, props) {
|
|
59
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
60
|
const progress = {
|
|
61
|
-
total: scenarios.length,
|
|
61
|
+
total: props.scenarios.length,
|
|
62
62
|
completed: 0,
|
|
63
63
|
};
|
|
64
64
|
const result = yield (0, executeCachedBatch_1.executeCachedBatch)(
|
|
@@ -67,7 +67,7 @@ function orchestrateTestWrite(ctx, scenarios) {
|
|
|
67
67
|
* individual test code implementations. Each scenario is processed to
|
|
68
68
|
* generate corresponding test code and progress events.
|
|
69
69
|
*/
|
|
70
|
-
scenarios.map((scenario) => (promptCacheKey) => __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
props.scenarios.map((scenario) => (promptCacheKey) => __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
try {
|
|
72
72
|
const artifacts = yield (0, getTestScenarioArtifacts_1.getTestScenarioArtifacts)(ctx, scenario);
|
|
73
73
|
const event = yield process(ctx, {
|
|
@@ -75,6 +75,7 @@ function orchestrateTestWrite(ctx, scenarios) {
|
|
|
75
75
|
artifacts,
|
|
76
76
|
progress,
|
|
77
77
|
promptCacheKey,
|
|
78
|
+
instruction: props.instruction,
|
|
78
79
|
});
|
|
79
80
|
ctx.dispatch(event);
|
|
80
81
|
return {
|
|
@@ -92,14 +93,18 @@ function orchestrateTestWrite(ctx, scenarios) {
|
|
|
92
93
|
}
|
|
93
94
|
function process(ctx, props) {
|
|
94
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
var _a, _b, _c, _d;
|
|
96
|
+
var _a, _b, _c, _d, _e;
|
|
96
97
|
const { scenario, artifacts, progress, promptCacheKey } = props;
|
|
97
98
|
const pointer = {
|
|
98
99
|
value: null,
|
|
99
100
|
};
|
|
100
101
|
const { tokenUsage } = yield ctx.conversate({
|
|
101
102
|
source: "testWrite",
|
|
102
|
-
histories: yield (0, transformTestWriteHistories_1.transformTestWriteHistories)(ctx,
|
|
103
|
+
histories: yield (0, transformTestWriteHistories_1.transformTestWriteHistories)(ctx, {
|
|
104
|
+
scenario,
|
|
105
|
+
artifacts,
|
|
106
|
+
instruction: props.instruction,
|
|
107
|
+
}),
|
|
103
108
|
controller: createController({
|
|
104
109
|
model: ctx.model,
|
|
105
110
|
build: (next) => {
|
|
@@ -115,7 +120,8 @@ function process(ctx, props) {
|
|
|
115
120
|
++progress.completed;
|
|
116
121
|
throw new Error("Failed to create test code.");
|
|
117
122
|
}
|
|
118
|
-
|
|
123
|
+
if (pointer.value.revise.final)
|
|
124
|
+
pointer.value.revise.final = yield (0, completeTestCode_1.completeTestCode)(ctx, artifacts, pointer.value.revise.final);
|
|
119
125
|
pointer.value.draft = yield (0, completeTestCode_1.completeTestCode)(ctx, artifacts, pointer.value.draft);
|
|
120
126
|
return {
|
|
121
127
|
type: "testWrite",
|
|
@@ -126,11 +132,11 @@ function process(ctx, props) {
|
|
|
126
132
|
domain: pointer.value.domain,
|
|
127
133
|
draft: pointer.value.draft,
|
|
128
134
|
review: (_a = pointer.value.revise) === null || _a === void 0 ? void 0 : _a.review,
|
|
129
|
-
final: (_b = pointer.value.revise) === null || _b === void 0 ? void 0 : _b.final,
|
|
135
|
+
final: (_c = (_b = pointer.value.revise) === null || _b === void 0 ? void 0 : _b.final) !== null && _c !== void 0 ? _c : undefined,
|
|
130
136
|
tokenUsage,
|
|
131
137
|
completed: ++progress.completed,
|
|
132
138
|
total: progress.total,
|
|
133
|
-
step: (
|
|
139
|
+
step: (_e = (_d = ctx.state().interface) === null || _d === void 0 ? void 0 : _d.step) !== null && _e !== void 0 ? _e : 0,
|
|
134
140
|
};
|
|
135
141
|
});
|
|
136
142
|
}
|
|
@@ -174,7 +180,7 @@ const claude = {
|
|
|
174
180
|
type: "string"
|
|
175
181
|
},
|
|
176
182
|
revise: {
|
|
177
|
-
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. The review phase identifies issues\nto fix or code to delete, followed by the final phase that produces\
|
|
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. The review phase identifies issues\nto fix or code to delete, followed by the final phase that produces the\npolished, production-ready test implementation.\n\nWorkflow: Draft \u2192 Review analysis \u2192 Final implementation",
|
|
178
184
|
$ref: "#/$defs/IAutoBeTestWriteApplication.IReviseProps"
|
|
179
185
|
}
|
|
180
186
|
},
|
|
@@ -194,8 +200,15 @@ const claude = {
|
|
|
194
200
|
type: "string"
|
|
195
201
|
},
|
|
196
202
|
final: {
|
|
197
|
-
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.\n\n**\uD83D\uDEA8 CRITICAL: APPLY ALL FIXES AND DELETIONS FROM REVIEW \uD83D\uDEA8**\n\n- FIX all correctable issues identified in review\n- DELETE all prohibited code identified in review\n- If review found type error tests, they MUST be deleted in final\n- If review found code to DELETE, final MUST be different from draft\n\nAll identified issues must be resolved, and the code must meet the\nhighest quality standards.\n\nWorkflow: Review feedback \u2192 Apply FIXES \u2192 Apply DELETIONS \u2192\nProduction-ready implementation\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite.",
|
|
198
|
-
|
|
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. When the draft code is\nalready perfect with no issues found during review, this value can be\nnull, indicating no revisions were necessary.\n\n**\uD83D\uDEA8 CRITICAL: APPLY ALL FIXES AND DELETIONS FROM REVIEW \uD83D\uDEA8**\n\n- FIX all correctable issues identified in review\n- DELETE all prohibited code identified in review\n- If review found type error tests, they MUST be deleted in final\n- If review found code to DELETE, final MUST be different from draft\n- If review finds NO issues requiring changes, set to null\n\nAll identified issues must be resolved, and the code must meet the\nhighest quality standards. A null value indicates the draft code already\nmeets all requirements without modification.\n\nWorkflow: Review feedback \u2192 Apply FIXES \u2192 Apply DELETIONS \u2192\nProduction-ready implementation (or null if no changes needed)\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite when provided, otherwise the draft is used as-is.",
|
|
204
|
+
oneOf: [
|
|
205
|
+
{
|
|
206
|
+
type: "null"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: "string"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
199
212
|
}
|
|
200
213
|
},
|
|
201
214
|
required: [
|
|
@@ -206,7 +219,7 @@ const claude = {
|
|
|
206
219
|
}
|
|
207
220
|
},
|
|
208
221
|
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.",
|
|
209
|
-
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof 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, {
|
|
222
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof input.domain && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
210
223
|
path: _path + ".scenario",
|
|
211
224
|
expected: "string",
|
|
212
225
|
value: input.scenario
|
|
@@ -230,9 +243,9 @@ const claude = {
|
|
|
230
243
|
path: _path + ".review",
|
|
231
244
|
expected: "string",
|
|
232
245
|
value: input.review
|
|
233
|
-
}), "string" === typeof input.final || _report(_exceptionable, {
|
|
246
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
234
247
|
path: _path + ".final",
|
|
235
|
-
expected: "string",
|
|
248
|
+
expected: "(null | string)",
|
|
236
249
|
value: input.final
|
|
237
250
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
238
251
|
if (false === __is(input)) {
|
|
@@ -277,7 +290,7 @@ const collection = {
|
|
|
277
290
|
{
|
|
278
291
|
name: "write",
|
|
279
292
|
parameters: {
|
|
280
|
-
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. The review phase identifies issues\n> to fix or code to delete, followed by the final phase that produces\n>
|
|
293
|
+
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. The review phase identifies issues\n> to fix or code to delete, followed by the final phase that produces the\n> polished, production-ready test implementation.\n> \n> Workflow: Draft \u2192 Review analysis \u2192 Final implementation",
|
|
281
294
|
type: "object",
|
|
282
295
|
properties: {
|
|
283
296
|
scenario: {
|
|
@@ -312,8 +325,15 @@ const collection = {
|
|
|
312
325
|
type: "string"
|
|
313
326
|
},
|
|
314
327
|
final: {
|
|
315
|
-
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.\n\n**\uD83D\uDEA8 CRITICAL: APPLY ALL FIXES AND DELETIONS FROM REVIEW \uD83D\uDEA8**\n\n- FIX all correctable issues identified in review\n- DELETE all prohibited code identified in review\n- If review found type error tests, they MUST be deleted in final\n- If review found code to DELETE, final MUST be different from draft\n\nAll identified issues must be resolved, and the code must meet the\nhighest quality standards.\n\nWorkflow: Review feedback \u2192 Apply FIXES \u2192 Apply DELETIONS \u2192\nProduction-ready implementation\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite.",
|
|
316
|
-
|
|
328
|
+
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. When the draft code is\nalready perfect with no issues found during review, this value can be\nnull, indicating no revisions were necessary.\n\n**\uD83D\uDEA8 CRITICAL: APPLY ALL FIXES AND DELETIONS FROM REVIEW \uD83D\uDEA8**\n\n- FIX all correctable issues identified in review\n- DELETE all prohibited code identified in review\n- If review found type error tests, they MUST be deleted in final\n- If review found code to DELETE, final MUST be different from draft\n- If review finds NO issues requiring changes, set to null\n\nAll identified issues must be resolved, and the code must meet the\nhighest quality standards. A null value indicates the draft code already\nmeets all requirements without modification.\n\nWorkflow: Review feedback \u2192 Apply FIXES \u2192 Apply DELETIONS \u2192\nProduction-ready implementation (or null if no changes needed)\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite when provided, otherwise the draft is used as-is.",
|
|
329
|
+
anyOf: [
|
|
330
|
+
{
|
|
331
|
+
type: "null"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
type: "string"
|
|
335
|
+
}
|
|
336
|
+
]
|
|
317
337
|
}
|
|
318
338
|
},
|
|
319
339
|
required: [
|
|
@@ -324,7 +344,7 @@ const collection = {
|
|
|
324
344
|
}
|
|
325
345
|
},
|
|
326
346
|
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.",
|
|
327
|
-
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof 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, {
|
|
347
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof input.domain && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
328
348
|
path: _path + ".scenario",
|
|
329
349
|
expected: "string",
|
|
330
350
|
value: input.scenario
|
|
@@ -348,9 +368,9 @@ const collection = {
|
|
|
348
368
|
path: _path + ".review",
|
|
349
369
|
expected: "string",
|
|
350
370
|
value: input.review
|
|
351
|
-
}), "string" === typeof input.final || _report(_exceptionable, {
|
|
371
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
352
372
|
path: _path + ".final",
|
|
353
|
-
expected: "string",
|
|
373
|
+
expected: "(null | string)",
|
|
354
374
|
value: input.final
|
|
355
375
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
356
376
|
if (false === __is(input)) {
|
|
@@ -421,14 +441,15 @@ const collection = {
|
|
|
421
441
|
},
|
|
422
442
|
final: {
|
|
423
443
|
type: "string",
|
|
424
|
-
|
|
444
|
+
nullable: true,
|
|
445
|
+
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. When the draft code is\nalready perfect with no issues found during review, this value can be\nnull, indicating no revisions were necessary.\n\n**\uD83D\uDEA8 CRITICAL: APPLY ALL FIXES AND DELETIONS FROM REVIEW \uD83D\uDEA8**\n\n- FIX all correctable issues identified in review\n- DELETE all prohibited code identified in review\n- If review found type error tests, they MUST be deleted in final\n- If review found code to DELETE, final MUST be different from draft\n- If review finds NO issues requiring changes, set to null\n\nAll identified issues must be resolved, and the code must meet the\nhighest quality standards. A null value indicates the draft code already\nmeets all requirements without modification.\n\nWorkflow: Review feedback \u2192 Apply FIXES \u2192 Apply DELETIONS \u2192\nProduction-ready implementation (or null if no changes needed)\n\nThis is the ultimate deliverable that will be used in the actual test\nsuite when provided, otherwise the draft is used as-is."
|
|
425
446
|
}
|
|
426
447
|
},
|
|
427
448
|
required: [
|
|
428
449
|
"review",
|
|
429
450
|
"final"
|
|
430
451
|
],
|
|
431
|
-
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. The review phase identifies issues\nto fix or code to delete, followed by the final phase that produces\
|
|
452
|
+
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. The review phase identifies issues\nto fix or code to delete, followed by the final phase that produces the\npolished, production-ready test implementation.\n\nWorkflow: Draft \u2192 Review analysis \u2192 Final implementation\n\n------------------------------\n\nCurrent Type: {@link IAutoBeTestWriteApplication.IReviseProps}",
|
|
432
453
|
additionalProperties: false
|
|
433
454
|
}
|
|
434
455
|
},
|
|
@@ -442,7 +463,7 @@ const collection = {
|
|
|
442
463
|
additionalProperties: false
|
|
443
464
|
},
|
|
444
465
|
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.",
|
|
445
|
-
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof 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, {
|
|
466
|
+
validate: (() => { const _io0 = input => "string" === typeof input.scenario && "string" === typeof input.domain && "string" === typeof input.draft && ("object" === typeof input.revise && null !== input.revise && _io1(input.revise)); const _io1 = input => "string" === typeof input.review && (null === input.final || "string" === typeof input.final); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.scenario || _report(_exceptionable, {
|
|
446
467
|
path: _path + ".scenario",
|
|
447
468
|
expected: "string",
|
|
448
469
|
value: input.scenario
|
|
@@ -466,9 +487,9 @@ const collection = {
|
|
|
466
487
|
path: _path + ".review",
|
|
467
488
|
expected: "string",
|
|
468
489
|
value: input.review
|
|
469
|
-
}), "string" === typeof input.final || _report(_exceptionable, {
|
|
490
|
+
}), null === input.final || "string" === typeof input.final || _report(_exceptionable, {
|
|
470
491
|
path: _path + ".final",
|
|
471
|
-
expected: "string",
|
|
492
|
+
expected: "(null | string)",
|
|
472
493
|
value: input.final
|
|
473
494
|
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
474
495
|
if (false === __is(input)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,
|
|
1
|
+
{"version":3,"file":"orchestrateTestWrite.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,oDAwCC;;AAtDD,kDAA0B;AAC1B,uEAAoE;AACpE,+BAA0B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;;;;;;;;;;;;;;;KAAiE;IACxE,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;IACb,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA6D;CACnE,CAAC"}
|
|
@@ -109,17 +109,21 @@ export declare namespace IAutoBeTestCorrectApplication {
|
|
|
109
109
|
* incorporating all review feedback and validation results. This code
|
|
110
110
|
* represents the completed error correction, guaranteed to compile
|
|
111
111
|
* successfully while preserving all original test functionality and
|
|
112
|
-
* business logic.
|
|
112
|
+
* business logic. When the draft correction already perfectly resolves all
|
|
113
|
+
* issues with no problems found during review, this value can be null,
|
|
114
|
+
* indicating no further refinement was necessary.
|
|
113
115
|
*
|
|
114
116
|
* The final implementation resolves all compilation issues, maintains
|
|
115
117
|
* strict type safety, follows all established conventions, and delivers a
|
|
116
118
|
* production-ready test that accurately validates the intended API
|
|
117
|
-
* behaviors and user workflows.
|
|
119
|
+
* behaviors and user workflows. A null value signifies the draft correction
|
|
120
|
+
* was already optimal and requires no modifications.
|
|
118
121
|
*
|
|
119
122
|
* Workflow: Review integration → Final refinement → Production-ready
|
|
120
|
-
* implementation
|
|
121
|
-
* compilation-failed code
|
|
123
|
+
* implementation (or null if draft needs no changes). This is the ultimate
|
|
124
|
+
* deliverable that will replace the compilation-failed code when provided,
|
|
125
|
+
* otherwise the draft correction is used as-is.
|
|
122
126
|
*/
|
|
123
|
-
final: string;
|
|
127
|
+
final: string | null;
|
|
124
128
|
}
|
|
125
129
|
}
|
|
@@ -125,7 +125,10 @@ export declare namespace IAutoBeTestCorrectInvalidRequestApplication {
|
|
|
125
125
|
* Final corrected code.
|
|
126
126
|
*
|
|
127
127
|
* The complete, cleaned test code with all invalid API request sections
|
|
128
|
-
* removed, ready for compilation.
|
|
128
|
+
* removed, ready for compilation. When the draft already successfully
|
|
129
|
+
* removes all problematic code with no additional issues found during
|
|
130
|
+
* review, this value can be null, indicating the draft deletion was
|
|
131
|
+
* sufficient and requires no further changes.
|
|
129
132
|
*
|
|
130
133
|
* This code must:
|
|
131
134
|
*
|
|
@@ -134,7 +137,10 @@ export declare namespace IAutoBeTestCorrectInvalidRequestApplication {
|
|
|
134
137
|
* - Have no `as any` or similar type violations
|
|
135
138
|
* - Maintain the original file structure
|
|
136
139
|
* - Be production-ready E2E test code
|
|
140
|
+
*
|
|
141
|
+
* A null value indicates the draft successfully removed all invalid code
|
|
142
|
+
* and needs no additional modifications.
|
|
137
143
|
*/
|
|
138
|
-
final: string;
|
|
144
|
+
final: string | null;
|
|
139
145
|
}
|
|
140
146
|
}
|
|
@@ -59,8 +59,8 @@ export declare namespace IAutoBeTestWriteApplication {
|
|
|
59
59
|
*
|
|
60
60
|
* Contains the iterative improvement workflow that transforms the initial
|
|
61
61
|
* draft into production-ready test code. The review phase identifies issues
|
|
62
|
-
* to fix or code to delete, followed by the final phase that produces
|
|
63
|
-
*
|
|
62
|
+
* to fix or code to delete, followed by the final phase that produces the
|
|
63
|
+
* polished, production-ready test implementation.
|
|
64
64
|
*
|
|
65
65
|
* Workflow: Draft → Review analysis → Final implementation
|
|
66
66
|
*/
|
|
@@ -126,7 +126,9 @@ export declare namespace IAutoBeTestWriteApplication {
|
|
|
126
126
|
*
|
|
127
127
|
* AI produces the final, polished version of the test code incorporating
|
|
128
128
|
* all review feedback. This code represents the completed test
|
|
129
|
-
* implementation, ready for production deployment.
|
|
129
|
+
* implementation, ready for production deployment. When the draft code is
|
|
130
|
+
* already perfect with no issues found during review, this value can be
|
|
131
|
+
* null, indicating no revisions were necessary.
|
|
130
132
|
*
|
|
131
133
|
* **🚨 CRITICAL: APPLY ALL FIXES AND DELETIONS FROM REVIEW 🚨**
|
|
132
134
|
*
|
|
@@ -134,16 +136,18 @@ export declare namespace IAutoBeTestWriteApplication {
|
|
|
134
136
|
* - DELETE all prohibited code identified in review
|
|
135
137
|
* - If review found type error tests, they MUST be deleted in final
|
|
136
138
|
* - If review found code to DELETE, final MUST be different from draft
|
|
139
|
+
* - If review finds NO issues requiring changes, set to null
|
|
137
140
|
*
|
|
138
141
|
* All identified issues must be resolved, and the code must meet the
|
|
139
|
-
* highest quality standards.
|
|
142
|
+
* highest quality standards. A null value indicates the draft code already
|
|
143
|
+
* meets all requirements without modification.
|
|
140
144
|
*
|
|
141
145
|
* Workflow: Review feedback → Apply FIXES → Apply DELETIONS →
|
|
142
|
-
* Production-ready implementation
|
|
146
|
+
* Production-ready implementation (or null if no changes needed)
|
|
143
147
|
*
|
|
144
148
|
* This is the ultimate deliverable that will be used in the actual test
|
|
145
|
-
* suite.
|
|
149
|
+
* suite when provided, otherwise the draft is used as-is.
|
|
146
150
|
*/
|
|
147
|
-
final: string;
|
|
151
|
+
final: string | null;
|
|
148
152
|
}
|
|
149
153
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPrerequisites = void 0;
|
|
4
|
+
const utils_1 = require("@autobe/utils");
|
|
5
|
+
const tstl_1 = require("tstl");
|
|
6
|
+
const getPrerequisites = (props) => {
|
|
7
|
+
const visited = new Set();
|
|
8
|
+
const result = new tstl_1.HashMap(utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals);
|
|
9
|
+
const traverse = (endpoint) => {
|
|
10
|
+
const key = `${endpoint.method}:${endpoint.path}`;
|
|
11
|
+
// prevent circular structure: skip visited endpoint
|
|
12
|
+
if (visited.has(key))
|
|
13
|
+
return;
|
|
14
|
+
visited.add(key);
|
|
15
|
+
const operation = props.document.operations.find((op) => op.method === endpoint.method && op.path === endpoint.path);
|
|
16
|
+
if (operation === undefined)
|
|
17
|
+
return;
|
|
18
|
+
// add current operation's prerequisites
|
|
19
|
+
for (const prerequisite of operation.prerequisites) {
|
|
20
|
+
// check if already in result to avoid duplicates
|
|
21
|
+
const exists = result.has(prerequisite.endpoint);
|
|
22
|
+
if (!exists) {
|
|
23
|
+
result.set(prerequisite.endpoint, [prerequisite]);
|
|
24
|
+
}
|
|
25
|
+
// recursively traverse prerequisite's prerequisites
|
|
26
|
+
traverse(prerequisite.endpoint);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
traverse(props.endpoint);
|
|
30
|
+
return result
|
|
31
|
+
.toJSON()
|
|
32
|
+
.map((it) => it.second)
|
|
33
|
+
.flat();
|
|
34
|
+
};
|
|
35
|
+
exports.getPrerequisites = getPrerequisites;
|
|
36
|
+
//# sourceMappingURL=getPrerequisites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPrerequisites.js","sourceRoot":"","sources":["../../../../src/orchestrate/test/utils/getPrerequisites.ts"],"names":[],"mappings":";;;AACA,yCAAgE;AAChE,+BAA+B;AAExB,MAAM,gBAAgB,GAAG,CAAC,KAGhC,EAAiC,EAAE;IAClC,MAAM,OAAO,GAAgB,IAAI,GAAG,EAAU,CAAC;IAC/C,MAAM,MAAM,GAGR,IAAI,cAAO,CACb,uCAA+B,CAAC,QAAQ,EACxC,uCAA+B,CAAC,MAAM,CACvC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,QAAiC,EAAQ,EAAE;QAC3D,MAAM,GAAG,GAAG,GAAG,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;QAElD,oDAAoD;QACpD,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO;QAC7B,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAEjB,MAAM,SAAS,GACb,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAC5B,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,IAAI,EAAE,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CACnE,CAAC;QAEJ,IAAI,SAAS,KAAK,SAAS;YAAE,OAAO;QAEpC,wCAAwC;QACxC,KAAK,MAAM,YAAY,IAAI,SAAS,CAAC,aAAa,EAAE,CAAC;YACnD,iDAAiD;YACjD,MAAM,MAAM,GAAY,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YAE1D,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;YACpD,CAAC;YAED,oDAAoD;YACpD,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,CAAC;IAEF,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzB,OAAO,MAAM;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC;SACtB,IAAI,EAAE,CAAC;AACZ,CAAC,CAAC;AA9CW,QAAA,gBAAgB,oBA8C3B"}
|
|
@@ -5,7 +5,7 @@ const openapi_1 = require("@samchon/openapi");
|
|
|
5
5
|
const getReferenceIds = (props) => {
|
|
6
6
|
const result = new Set();
|
|
7
7
|
const emplace = (key) => {
|
|
8
|
-
if (key.endsWith("_id") || key.endsWith("Id"))
|
|
8
|
+
if (key.endsWith("_id") || key.endsWith("Id") || key === "id")
|
|
9
9
|
result.add(key);
|
|
10
10
|
};
|
|
11
11
|
props.operation.parameters.forEach((p) => emplace(p.name));
|
|
@@ -1 +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,IAA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AAC;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC,CAAC;AAtBW,QAAA,eAAe,mBAsB1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobe/agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "AI backend server code generator",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Wrtn Technologies",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"tstl": "^3.0.0",
|
|
28
28
|
"typia": "^9.7.2",
|
|
29
29
|
"uuid": "^11.1.0",
|
|
30
|
-
"@autobe/
|
|
31
|
-
"@autobe/
|
|
30
|
+
"@autobe/utils": "^0.25.1",
|
|
31
|
+
"@autobe/interface": "^0.25.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"ts-node": "^10.9.2",
|
|
41
41
|
"ts-patch": "^3.3.0",
|
|
42
42
|
"typescript": "~5.9.2",
|
|
43
|
-
"@autobe/filesystem": "^0.
|
|
44
|
-
"@autobe/compiler": "^0.
|
|
43
|
+
"@autobe/filesystem": "^0.25.1",
|
|
44
|
+
"@autobe/compiler": "^0.25.1"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"ai",
|