@autobe/agent 0.18.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeMockAgent.d.ts +2 -10
- package/lib/agent/src/AutoBeAgent.js +5 -0
- package/lib/agent/src/AutoBeAgent.js.map +1 -1
- package/lib/agent/src/AutoBeMockAgent.d.ts +2 -10
- package/lib/agent/src/AutoBeMockAgent.js +7 -2
- package/lib/agent/src/AutoBeMockAgent.js.map +1 -1
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +23 -29
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +1 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js +14 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -1
- package/lib/agent/src/factory/consentFunctionCall.d.ts +10 -0
- package/lib/agent/src/factory/consentFunctionCall.js +212 -0
- package/lib/agent/src/factory/consentFunctionCall.js.map +1 -0
- package/lib/agent/src/factory/createAgenticaHistory.js +1 -0
- package/lib/agent/src/factory/createAgenticaHistory.js.map +1 -1
- package/lib/agent/src/factory/createAutoBeContext.js +71 -14
- package/lib/agent/src/factory/createAutoBeContext.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +3 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js +4 -4
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +3 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +16 -4
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js +8 -3
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +2 -3
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +7 -7
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +24 -37
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +5 -3
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +16 -16
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +5 -5
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +2 -10
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +3 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +9 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js +29 -9
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +2 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +1565 -1142
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js +22 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js +11 -15
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +32 -26
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +2 -3
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +135 -124
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +371 -209
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +185 -179
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +38 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +16 -16
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +59 -14
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +37 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +46 -14
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +18 -24
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -0
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +35 -0
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +11 -17
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js +13 -4
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -2
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js +6 -10
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js +35 -2
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js +44 -3
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js +40 -3
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +2 -2
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +5 -5
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +2 -2
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +278 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -2
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +12 -20
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/internal/compile.d.ts +3 -3
- package/lib/agent/src/orchestrate/realize/internal/compile.js +9 -26
- package/lib/agent/src/orchestrate/realize/internal/compile.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +59 -42
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js +6 -6
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +6 -6
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +8 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +17 -16
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +6 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +24 -19
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +3 -3
- package/lib/agent/src/orchestrate/realize/structures/{IAutoBeRealizeCoderApplication.js → IAutoBeRealizeCorrectApplication.js} +1 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +19 -16
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +5 -1
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +2 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +95 -50
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTest.js +12 -0
- package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +4 -4
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +119 -16
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +6 -5
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
- package/lib/agent/src/orchestrate/{internal/IProgress.js → test/structures/IAutoBeTestScenarioAuthorizationRole.js} +1 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
- package/lib/agent/src/utils/predicateStateMessage.d.ts +4 -0
- package/lib/agent/src/utils/predicateStateMessage.js +87 -0
- package/lib/agent/src/utils/predicateStateMessage.js.map +1 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +23 -29
- package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
- package/lib/factory/consentFunctionCall.d.ts +10 -0
- package/lib/index.mjs +3036 -1648
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +3 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +3 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +2 -3
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +16 -16
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +5 -5
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +2 -3
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +38 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +16 -16
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +59 -14
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +37 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +46 -14
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +18 -24
- package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -0
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -2
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -2
- package/lib/orchestrate/realize/internal/compile.d.ts +3 -3
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +8 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +6 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +3 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +19 -16
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +2 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +6 -5
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
- package/lib/utils/predicateStateMessage.d.ts +4 -0
- package/package.json +6 -6
- package/src/AutoBeAgent.ts +14 -0
- package/src/AutoBeMockAgent.ts +9 -11
- package/src/constants/AutoBeSystemPromptConstant.ts +23 -29
- package/src/context/AutoBeTokenUsageComponent.ts +20 -0
- package/src/factory/consentFunctionCall.ts +128 -0
- package/src/factory/createAgenticaHistory.ts +1 -0
- package/src/factory/createAutoBeContext.ts +99 -14
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +11 -4
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +26 -4
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +19 -14
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +3 -3
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +8 -32
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +5 -3
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +16 -16
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +5 -5
- package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +1 -0
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +0 -10
- package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +1 -1
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +9 -3
- package/src/orchestrate/interface/orchestrateInterface.ts +51 -12
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +126 -23
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +6 -19
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +32 -27
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +49 -32
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +127 -33
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +67 -65
- package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +39 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +16 -16
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +62 -14
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +38 -1
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +47 -14
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +18 -24
- package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +41 -0
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +9 -16
- package/src/orchestrate/prisma/orchestratePrisma.ts +15 -6
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +6 -19
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +15 -9
- package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +1 -1
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +19 -23
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +4 -2
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +285 -0
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +27 -27
- package/src/orchestrate/realize/internal/compile.ts +28 -45
- package/src/orchestrate/realize/orchestrateRealize.ts +71 -67
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +3 -3
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +19 -15
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +23 -15
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +3 -3
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +19 -16
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +7 -0
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +110 -59
- package/src/orchestrate/test/orchestrateTest.ts +12 -0
- package/src/orchestrate/test/orchestrateTestScenario.ts +155 -19
- package/src/orchestrate/test/orchestrateTestWrite.ts +3 -3
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +6 -5
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +1 -1
- package/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.ts +7 -0
- package/src/utils/predicateStateMessage.ts +107 -0
- package/lib/agent/src/orchestrate/internal/IProgress.d.ts +0 -4
- package/lib/agent/src/orchestrate/internal/IProgress.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +0 -7
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.js +0 -213
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +0 -345
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +0 -56
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.js +0 -3
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +0 -2
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -5
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js +0 -3
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js.map +0 -1
- package/lib/agent/src/utils/pipe.d.ts +0 -5
- package/lib/agent/src/utils/pipe.js +0 -14
- package/lib/agent/src/utils/pipe.js.map +0 -1
- package/lib/orchestrate/internal/IProgress.d.ts +0 -4
- package/lib/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +0 -7
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +0 -345
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +0 -56
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +0 -2
- package/lib/utils/pipe.d.ts +0 -5
- package/src/orchestrate/internal/IProgress.ts +0 -4
- package/src/orchestrate/realize/histories/transformRealizeCoderHistories.ts +0 -248
- package/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.ts +0 -358
- package/src/orchestrate/realize/structures/IAutoBeRealizeCompile.ts +0 -70
- package/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.ts +0 -2
- package/src/utils/pipe.ts +0 -39
- /package/lib/agent/src/orchestrate/realize/structures/{IAutoBeRealizeReviewApplication.d.ts → IAutoBeRealizeCorrectApplication.d.ts} +0 -0
- /package/lib/orchestrate/realize/structures/{IAutoBeRealizeReviewApplication.d.ts → IAutoBeRealizeCorrectApplication.d.ts} +0 -0
- /package/src/orchestrate/realize/structures/{IAutoBeRealizeReviewApplication.ts → IAutoBeRealizeCorrectApplication.ts} +0 -0
|
@@ -160,7 +160,7 @@ const claude = {
|
|
|
160
160
|
type: "object",
|
|
161
161
|
properties: {
|
|
162
162
|
think_without_compile_error: {
|
|
163
|
-
description: "Step 1: Initial analysis and understanding without compilation error\ncontext.\n\nAI analyzes the original test scenario, business requirements, and\nintended functionality without being influenced by compilation errors.\nThis clean analysis establishes a clear understanding of what the test\
|
|
163
|
+
description: "Step 1: Initial analysis and understanding without compilation error\ncontext.\n\nAI analyzes the original test scenario, business requirements, and\nintended functionality without being influenced by compilation errors.\nThis clean analysis establishes a clear understanding of what the test\naccomplishes, the expected business workflow, and the correct API\nintegration patterns.\n\nThis step ensures that error correction doesn't lose sight of the\noriginal test purpose and helps maintain the intended business logic\nwhile addressing technical compilation issues. The AI develops a\ncomprehensive understanding of the test requirements before diving into\nerror-specific details.\n\nWorkflow: Scenario understanding \u2192 Business logic analysis \u2192 Intended\nfunctionality mapping",
|
|
164
164
|
type: "string"
|
|
165
165
|
},
|
|
166
166
|
think_again_with_compile_error: {
|
|
@@ -168,7 +168,7 @@ const claude = {
|
|
|
168
168
|
type: "string"
|
|
169
169
|
},
|
|
170
170
|
draft: {
|
|
171
|
-
description: "Step 3: Draft corrected TypeScript E2E test code implementation.\n\nAI generates the first corrected version of the test code based on error\nanalysis and correction strategies. This draft addresses all identified\ncompilation errors while preserving the original business logic and test\nworkflow. The code
|
|
171
|
+
description: "Step 3: Draft corrected TypeScript E2E test code implementation.\n\nAI generates the first corrected version of the test code based on error\nanalysis and correction strategies. This draft addresses all identified\ncompilation errors while preserving the original business logic and test\nworkflow. The code is compilation-error-free and follows all\nestablished conventions.\n\nThe implementation incorporates lessons learned from error analysis to\nproduce properly typed, syntactically correct code that maintains the\nintended test functionality. All type safety requirements and framework\nconventions are followed in this corrected implementation.\n\nWorkflow: Error correction \u2192 TypeScript implementation \u2192 Functional\npreservation\n\nDO: Resolve all compilation errors while maintaining original test intent",
|
|
172
172
|
type: "string"
|
|
173
173
|
},
|
|
174
174
|
review: {
|
|
@@ -258,7 +258,7 @@ const collection = {
|
|
|
258
258
|
type: "object",
|
|
259
259
|
properties: {
|
|
260
260
|
think_without_compile_error: {
|
|
261
|
-
description: "Step 1: Initial analysis and understanding without compilation error\ncontext.\n\nAI analyzes the original test scenario, business requirements, and\nintended functionality without being influenced by compilation errors.\nThis clean analysis establishes a clear understanding of what the test\
|
|
261
|
+
description: "Step 1: Initial analysis and understanding without compilation error\ncontext.\n\nAI analyzes the original test scenario, business requirements, and\nintended functionality without being influenced by compilation errors.\nThis clean analysis establishes a clear understanding of what the test\naccomplishes, the expected business workflow, and the correct API\nintegration patterns.\n\nThis step ensures that error correction doesn't lose sight of the\noriginal test purpose and helps maintain the intended business logic\nwhile addressing technical compilation issues. The AI develops a\ncomprehensive understanding of the test requirements before diving into\nerror-specific details.\n\nWorkflow: Scenario understanding \u2192 Business logic analysis \u2192 Intended\nfunctionality mapping",
|
|
262
262
|
type: "string"
|
|
263
263
|
},
|
|
264
264
|
think_again_with_compile_error: {
|
|
@@ -266,7 +266,7 @@ const collection = {
|
|
|
266
266
|
type: "string"
|
|
267
267
|
},
|
|
268
268
|
draft: {
|
|
269
|
-
description: "Step 3: Draft corrected TypeScript E2E test code implementation.\n\nAI generates the first corrected version of the test code based on error\nanalysis and correction strategies. This draft addresses all identified\ncompilation errors while preserving the original business logic and test\nworkflow. The code
|
|
269
|
+
description: "Step 3: Draft corrected TypeScript E2E test code implementation.\n\nAI generates the first corrected version of the test code based on error\nanalysis and correction strategies. This draft addresses all identified\ncompilation errors while preserving the original business logic and test\nworkflow. The code is compilation-error-free and follows all\nestablished conventions.\n\nThe implementation incorporates lessons learned from error analysis to\nproduce properly typed, syntactically correct code that maintains the\nintended test functionality. All type safety requirements and framework\nconventions are followed in this corrected implementation.\n\nWorkflow: Error correction \u2192 TypeScript implementation \u2192 Functional\npreservation\n\nDO: Resolve all compilation errors while maintaining original test intent",
|
|
270
270
|
type: "string"
|
|
271
271
|
},
|
|
272
272
|
review: {
|
|
@@ -106,17 +106,19 @@ function orchestrateTestScenario(ctx) {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
const divideAndConquer = (ctx, dict, endpointNotFound, entire, include, exclude, progress) => __awaiter(void 0, void 0, void 0, function* () {
|
|
109
|
-
var _a, _b;
|
|
109
|
+
var _a, _b, _c, _d;
|
|
110
110
|
const pointer = {
|
|
111
111
|
value: [],
|
|
112
112
|
};
|
|
113
|
+
const authorizations = (_b = (_a = ctx.state().interface) === null || _a === void 0 ? void 0 : _a.authorizations) !== null && _b !== void 0 ? _b : [];
|
|
113
114
|
const { tokenUsage } = yield ctx.conversate({
|
|
114
115
|
source: "testScenarios",
|
|
115
|
-
histories: (0, transformTestScenarioHistories_1.transformTestScenarioHistories)(entire, include, exclude),
|
|
116
|
+
histories: (0, transformTestScenarioHistories_1.transformTestScenarioHistories)(ctx.state(), entire, include, exclude),
|
|
116
117
|
controller: createController({
|
|
117
118
|
model: ctx.model,
|
|
118
119
|
endpointNotFound,
|
|
119
120
|
dict,
|
|
121
|
+
authorizations,
|
|
120
122
|
build: (next) => {
|
|
121
123
|
var _a;
|
|
122
124
|
(_a = pointer.value) !== null && _a !== void 0 ? _a : (pointer.value = []);
|
|
@@ -141,7 +143,7 @@ const divideAndConquer = (ctx, dict, endpointNotFound, entire, include, exclude,
|
|
|
141
143
|
.flat(),
|
|
142
144
|
completed: ++progress.completed,
|
|
143
145
|
total: progress.total,
|
|
144
|
-
step: (
|
|
146
|
+
step: (_d = (_c = ctx.state().interface) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 0,
|
|
145
147
|
created_at: new Date().toISOString(),
|
|
146
148
|
});
|
|
147
149
|
return pointer.value;
|
|
@@ -276,17 +278,7 @@ function createController(props) {
|
|
|
276
278
|
if (result.success === false)
|
|
277
279
|
return result;
|
|
278
280
|
// merge to unique scenario groups
|
|
279
|
-
const scenarioGroups =
|
|
280
|
-
result.data.scenarioGroups.forEach((sg) => {
|
|
281
|
-
const created = scenarioGroups.find((el) => el.endpoint.method === sg.endpoint.method &&
|
|
282
|
-
el.endpoint.path === sg.endpoint.path);
|
|
283
|
-
if (created) {
|
|
284
|
-
created.scenarios.push(...sg.scenarios);
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
scenarioGroups.push(sg);
|
|
288
|
-
}
|
|
289
|
-
});
|
|
281
|
+
const scenarioGroups = uniqueScenarioGroups(result.data.scenarioGroups);
|
|
290
282
|
// validate endpoints
|
|
291
283
|
const errors = [];
|
|
292
284
|
scenarioGroups.forEach((group, i) => {
|
|
@@ -309,6 +301,114 @@ function createController(props) {
|
|
|
309
301
|
});
|
|
310
302
|
});
|
|
311
303
|
});
|
|
304
|
+
// Authentication Correction
|
|
305
|
+
const entireRoles = new Map();
|
|
306
|
+
for (const authorization of props.authorizations) {
|
|
307
|
+
for (const op of authorization.operations) {
|
|
308
|
+
if (op.authorizationType === null)
|
|
309
|
+
continue;
|
|
310
|
+
const value = utils_1.MapUtil.take(entireRoles, authorization.role, () => ({
|
|
311
|
+
name: authorization.role,
|
|
312
|
+
join: null,
|
|
313
|
+
login: null,
|
|
314
|
+
}));
|
|
315
|
+
if (op.authorizationType === "join")
|
|
316
|
+
value.join = op;
|
|
317
|
+
else if (op.authorizationType === "login")
|
|
318
|
+
value.login = op;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
scenarioGroups.forEach((group) => {
|
|
322
|
+
if (props.dict.has(group.endpoint) === false)
|
|
323
|
+
return;
|
|
324
|
+
const operation = props.dict.get(group.endpoint);
|
|
325
|
+
group.scenarios.forEach((scenario) => {
|
|
326
|
+
var _a, _b, _c, _d, _e, _f;
|
|
327
|
+
// gathere authorization roles
|
|
328
|
+
const localRoles = new Map();
|
|
329
|
+
const add = (operation) => {
|
|
330
|
+
const role = operation.authorizationRole;
|
|
331
|
+
if (role === null)
|
|
332
|
+
return;
|
|
333
|
+
utils_1.MapUtil.take(localRoles, role, () => ({
|
|
334
|
+
name: role,
|
|
335
|
+
join: null,
|
|
336
|
+
login: null,
|
|
337
|
+
}));
|
|
338
|
+
};
|
|
339
|
+
add(operation);
|
|
340
|
+
scenario.dependencies.forEach((d) => {
|
|
341
|
+
if (props.dict.has(d.endpoint) === false)
|
|
342
|
+
return;
|
|
343
|
+
const depOperation = props.dict.get(d.endpoint);
|
|
344
|
+
add(depOperation);
|
|
345
|
+
});
|
|
346
|
+
// Single role case - add join operation
|
|
347
|
+
if (localRoles.size === 1) {
|
|
348
|
+
const role = localRoles
|
|
349
|
+
.values()
|
|
350
|
+
.next().value;
|
|
351
|
+
if (role.join === null) {
|
|
352
|
+
const joinOperation = (_b = (_a = entireRoles.get(role.name)) === null || _a === void 0 ? void 0 : _a.join) !== null && _b !== void 0 ? _b : null;
|
|
353
|
+
if (joinOperation === null)
|
|
354
|
+
throw new Error("Unreachable code");
|
|
355
|
+
scenario.dependencies.push({
|
|
356
|
+
endpoint: {
|
|
357
|
+
method: joinOperation.method,
|
|
358
|
+
path: joinOperation.path,
|
|
359
|
+
},
|
|
360
|
+
purpose: utils_1.StringUtil.trim `
|
|
361
|
+
Essential authentication prerequisite:
|
|
362
|
+
This join operation (${joinOperation.method} ${joinOperation.path}) must be executed before any operations requiring '${role.name}' role authorization.
|
|
363
|
+
It establishes the necessary user account and authentication context for the '${role.name}' role, enabling subsequent API calls that depend on this specific authorization level.
|
|
364
|
+
Without this join operation, the main scenario endpoint and its dependencies will fail due to insufficient authentication credentials.
|
|
365
|
+
`,
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
// Multiple roles case - add both join and login operations
|
|
370
|
+
if (localRoles.size > 1) {
|
|
371
|
+
for (const role of localRoles.values()) {
|
|
372
|
+
if (role.join === null) {
|
|
373
|
+
const joinOperation = (_d = (_c = entireRoles.get(role.name)) === null || _c === void 0 ? void 0 : _c.join) !== null && _d !== void 0 ? _d : null;
|
|
374
|
+
if (joinOperation === null)
|
|
375
|
+
throw new Error("Unreachable code");
|
|
376
|
+
scenario.dependencies.push({
|
|
377
|
+
endpoint: {
|
|
378
|
+
path: joinOperation.path,
|
|
379
|
+
method: joinOperation.method,
|
|
380
|
+
},
|
|
381
|
+
purpose: utils_1.StringUtil.trim `
|
|
382
|
+
Multi-actor authentication setup:
|
|
383
|
+
This join operation (${joinOperation.method} ${joinOperation.path}) is required to establish a '${role.name}' role user account in the system.
|
|
384
|
+
This scenario involves multiple authorization roles, requiring separate user accounts for each role to properly test cross-role interactions and authorization boundaries.
|
|
385
|
+
The join operation creates the foundational user identity that will be used throughout the test scenario for '${role.name}' specific operations.
|
|
386
|
+
This join operation is required for the '${role.name}' role authentication.
|
|
387
|
+
`,
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
if (role.login === null) {
|
|
391
|
+
const loginOperation = (_f = (_e = entireRoles.get(role.name)) === null || _e === void 0 ? void 0 : _e.login) !== null && _f !== void 0 ? _f : null;
|
|
392
|
+
if (loginOperation === null)
|
|
393
|
+
throw new Error("Unreachable code");
|
|
394
|
+
scenario.dependencies.push({
|
|
395
|
+
endpoint: {
|
|
396
|
+
path: loginOperation.path,
|
|
397
|
+
method: loginOperation.method,
|
|
398
|
+
},
|
|
399
|
+
purpose: utils_1.StringUtil.trim `
|
|
400
|
+
Role switching authentication:
|
|
401
|
+
This login operation (${loginOperation.method} ${loginOperation.path}) enables dynamic user role switching during test execution for the '${role.name}' role.
|
|
402
|
+
In scenarios with multiple actors, the test agent needs to authenticate as different users to simulate real-world multi-user interactions.
|
|
403
|
+
This login operation ensures proper session management and authorization context switching, allowing the test to validate permissions, access controls, and business logic that span across different user roles within a single test scenario.
|
|
404
|
+
This login operation may be required for user role swapping between multiple actors.
|
|
405
|
+
`,
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
});
|
|
312
412
|
return errors.length === 0
|
|
313
413
|
? {
|
|
314
414
|
success: true,
|
|
@@ -336,6 +436,9 @@ function createController(props) {
|
|
|
336
436
|
},
|
|
337
437
|
};
|
|
338
438
|
}
|
|
439
|
+
const uniqueScenarioGroups = (groups) => new tstl_1.HashMap(groups.map((g) => new tstl_1.Pair(g.endpoint, g)), utils_1.AutoBeEndpointComparator.hashCode, utils_1.AutoBeEndpointComparator.equals)
|
|
440
|
+
.toJSON()
|
|
441
|
+
.map((it) => it.second);
|
|
339
442
|
const collection = {
|
|
340
443
|
chatgpt: (validate) => (() => {
|
|
341
444
|
const application = {
|
|
@@ -419,7 +522,7 @@ const collection = {
|
|
|
419
522
|
type: "string"
|
|
420
523
|
},
|
|
421
524
|
functionName: {
|
|
422
|
-
description: "Descriptive function name derived from the user scenario.\n\nThe function name serves as a concise, technical identifier that clearly\nrepresents the specific user scenario being described. It should be\nimmediately understandable and directly correspond to the user situation\nwithout requiring additional context.\n\n## Naming Convention\n\
|
|
525
|
+
description: "Descriptive function name derived from the user scenario.\n\nThe function name serves as a concise, technical identifier that clearly\nrepresents the specific user scenario being described. It should be\nimmediately understandable and directly correspond to the user situation\nwithout requiring additional context.\n\n## Naming Convention\n\nDO: Use snake_case naming convention.\n\n- Must start with `test_api_` prefix (mandatory requirement)\n- ALWAYS start with business feature, NOT action verbs\n- Business feature comes first, followed by scenario context\n- Embed action verbs within the scenario description, not at the beginning\n\n## Content Structure\n\nFunction names should follow this pattern:\n`test_api_[core_feature]_[specific_scenario]`\n\nWhere:\n\n- `core_feature`: The main business feature or entity being tested\n (customer, seller, cart, push_message, etc.)\n- `specific_scenario`: The specific operation or scenario context\n (join_verification_not_found, login_success,\n moderator_assignment_update, discountable_ticket_duplicated,\n csv_export, etc.)\n\n## Business Feature-Based Examples\n\n- `test_api_customer_join_verification_not_found` - Customer join\n verification when verification code not found\n- `test_api_seller_login` - Seller login operation\n- `test_api_cart_discountable_ticket_duplicated` - Cart discountable ticket\n with duplication scenario\n- `test_api_push_message_csv` - Push message functionality with CSV format\n- `test_api_product_review_update` - Product review update operation\n\n## Clarity Guidelines\n\n- Prioritize clarity over brevity\n- Avoid technical jargon or implementation terms\n- Use terminology that reflects user perspective\n- Ensure the name alone conveys the user's intent\n- Make it understandable to non-technical stakeholders\n- Keep consistent with user scenario description\n\n## Single Endpoint Alignment\n\nFunction names must reflect scenarios that:\n\n- Accomplish user goals through this single endpoint only\n- Don't imply dependency on other API operations\n- Represent complete user interactions\n\n\n@pattern ^[a-z][a-z0-9_]*$",
|
|
423
526
|
type: "string"
|
|
424
527
|
},
|
|
425
528
|
dependencies: {
|
|
@@ -682,7 +785,7 @@ const collection = {
|
|
|
682
785
|
type: "string"
|
|
683
786
|
},
|
|
684
787
|
functionName: {
|
|
685
|
-
description: "Descriptive function name derived from the user scenario.\n\nThe function name serves as a concise, technical identifier that clearly\nrepresents the specific user scenario being described. It should be\nimmediately understandable and directly correspond to the user situation\nwithout requiring additional context.\n\n## Naming Convention\n\
|
|
788
|
+
description: "Descriptive function name derived from the user scenario.\n\nThe function name serves as a concise, technical identifier that clearly\nrepresents the specific user scenario being described. It should be\nimmediately understandable and directly correspond to the user situation\nwithout requiring additional context.\n\n## Naming Convention\n\nDO: Use snake_case naming convention.\n\n- Must start with `test_api_` prefix (mandatory requirement)\n- ALWAYS start with business feature, NOT action verbs\n- Business feature comes first, followed by scenario context\n- Embed action verbs within the scenario description, not at the beginning\n\n## Content Structure\n\nFunction names should follow this pattern:\n`test_api_[core_feature]_[specific_scenario]`\n\nWhere:\n\n- `core_feature`: The main business feature or entity being tested\n (customer, seller, cart, push_message, etc.)\n- `specific_scenario`: The specific operation or scenario context\n (join_verification_not_found, login_success,\n moderator_assignment_update, discountable_ticket_duplicated,\n csv_export, etc.)\n\n## Business Feature-Based Examples\n\n- `test_api_customer_join_verification_not_found` - Customer join\n verification when verification code not found\n- `test_api_seller_login` - Seller login operation\n- `test_api_cart_discountable_ticket_duplicated` - Cart discountable ticket\n with duplication scenario\n- `test_api_push_message_csv` - Push message functionality with CSV format\n- `test_api_product_review_update` - Product review update operation\n\n## Clarity Guidelines\n\n- Prioritize clarity over brevity\n- Avoid technical jargon or implementation terms\n- Use terminology that reflects user perspective\n- Ensure the name alone conveys the user's intent\n- Make it understandable to non-technical stakeholders\n- Keep consistent with user scenario description\n\n## Single Endpoint Alignment\n\nFunction names must reflect scenarios that:\n\n- Accomplish user goals through this single endpoint only\n- Don't imply dependency on other API operations\n- Represent complete user interactions",
|
|
686
789
|
type: "string",
|
|
687
790
|
pattern: "^[a-z][a-z0-9_]*$"
|
|
688
791
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestScenario.js","sourceRoot":"","sources":["../../../../../src/orchestrate/test/orchestrateTestScenario.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateTestScenario.js","sourceRoot":"","sources":["../../../../../src/orchestrate/test/orchestrateTestScenario.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,0DAqFC;;;AAjGD,yCAA8E;AAE9E,+BAA+C;AAC/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;;;;;;;;;;;;uHACkC;YAC9D,QAAQ,EAAE;gBACR,YAAY,EAAE,QAAQ;aACvB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestWrite.js","sourceRoot":"","sources":["../../../../../src/orchestrate/test/orchestrateTestWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,oDAoCC;;
|
|
1
|
+
{"version":3,"file":"orchestrateTestWrite.js","sourceRoot":"","sources":["../../../../../src/orchestrate/test/orchestrateTestWrite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,oDAoCC;;AA/CD,kDAA0B;AAG1B,uEAAoE;AACpE,iEAA8D;AAC9D,iFAA8E;AAC9E,yFAAsF;AAKtF,SAAsB,oBAAoB,CACxC,GAAyB,EACzB,SAA+B;;QAE/B,MAAM,QAAQ,GAA4B;YACxC,KAAK,EAAE,SAAS,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC;SACb,CAAC;QACF,MAAM,MAAM,GAAyC,MAAM,OAAO,CAAC,GAAG;QACpE;;;;WAIG;QACH,SAAS,CAAC,GAAG,CAAC,CAAO,QAAQ,EAAE,EAAE;YAC/B,IAAI,CAAC;gBACH,MAAM,SAAS,GACb,MAAM,IAAA,mDAAwB,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;gBAChD,MAAM,KAAK,GAAyB,MAAM,OAAO,CAC/C,GAAG,EACH,QAAQ,EACR,SAAS,EACT,QAAQ,CACT,CAAC;gBACF,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBACpB,OAAO;oBACL,QAAQ;oBACR,SAAS;oBACT,KAAK;iBACN,CAAC;YACJ,CAAC;YAAC,WAAM,CAAC;gBACP,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC,CAAA,CAAC,CACH,CAAC;QACF,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA6D;CACnE,CAAC"}
|
|
@@ -30,7 +30,7 @@ export declare namespace IAutoBeTestCorrectApplication {
|
|
|
30
30
|
* AI analyzes the original test scenario, business requirements, and
|
|
31
31
|
* intended functionality without being influenced by compilation errors.
|
|
32
32
|
* This clean analysis establishes a clear understanding of what the test
|
|
33
|
-
*
|
|
33
|
+
* accomplishes, the expected business workflow, and the correct API
|
|
34
34
|
* integration patterns.
|
|
35
35
|
*
|
|
36
36
|
* This step ensures that error correction doesn't lose sight of the
|
|
@@ -67,17 +67,18 @@ export declare namespace IAutoBeTestCorrectApplication {
|
|
|
67
67
|
* AI generates the first corrected version of the test code based on error
|
|
68
68
|
* analysis and correction strategies. This draft addresses all identified
|
|
69
69
|
* compilation errors while preserving the original business logic and test
|
|
70
|
-
* workflow. The code
|
|
70
|
+
* workflow. The code is compilation-error-free and follows all
|
|
71
71
|
* established conventions.
|
|
72
72
|
*
|
|
73
73
|
* The implementation incorporates lessons learned from error analysis to
|
|
74
74
|
* produce properly typed, syntactically correct code that maintains the
|
|
75
75
|
* intended test functionality. All type safety requirements and framework
|
|
76
|
-
* conventions
|
|
76
|
+
* conventions are followed in this corrected implementation.
|
|
77
77
|
*
|
|
78
78
|
* Workflow: Error correction → TypeScript implementation → Functional
|
|
79
|
-
* preservation
|
|
80
|
-
*
|
|
79
|
+
* preservation
|
|
80
|
+
*
|
|
81
|
+
* DO: Resolve all compilation errors while maintaining original test intent
|
|
81
82
|
*/
|
|
82
83
|
draft: string;
|
|
83
84
|
/**
|
|
@@ -57,7 +57,7 @@ export declare namespace IAutoBeTestScenarioApplication {
|
|
|
57
57
|
*
|
|
58
58
|
* ## Naming Convention
|
|
59
59
|
*
|
|
60
|
-
*
|
|
60
|
+
* DO: Use snake_case naming convention.
|
|
61
61
|
*
|
|
62
62
|
* - Must start with `test_api_` prefix (mandatory requirement)
|
|
63
63
|
* - ALWAYS start with business feature, NOT action verbs
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoBeTestScenarioAuthorizationRole.js","sourceRoot":"","sources":["../../../../../../src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.predicateStateMessage = void 0;
|
|
4
|
+
const utils_1 = require("@autobe/utils");
|
|
5
|
+
const predicateStateMessage = (state, future) => {
|
|
6
|
+
if (future === "analyze")
|
|
7
|
+
return null;
|
|
8
|
+
if (future === "prisma")
|
|
9
|
+
return predicatePrisma(state);
|
|
10
|
+
const futureIndex = STEP_ORDER.indexOf(future);
|
|
11
|
+
for (const key of STEP_ORDER.slice(0, futureIndex))
|
|
12
|
+
if (state[key] === null)
|
|
13
|
+
return buildMissingStepsMessage(future, key);
|
|
14
|
+
const prevStepName = STEP_ORDER[futureIndex - 1];
|
|
15
|
+
if (state.analyze.step !== state[prevStepName].step)
|
|
16
|
+
return buildOutdatedMessage(prevStepName, "analyze", state);
|
|
17
|
+
return null;
|
|
18
|
+
};
|
|
19
|
+
exports.predicateStateMessage = predicateStateMessage;
|
|
20
|
+
const buildMissingStepsMessage = (current, missing) => {
|
|
21
|
+
const currentIndex = STEP_ORDER.indexOf(current);
|
|
22
|
+
const missingIndex = STEP_ORDER.indexOf(missing);
|
|
23
|
+
const remainingSteps = STEP_ORDER.slice(missingIndex, currentIndex + 1)
|
|
24
|
+
.map((step, index) => `${index + 1}. ${STEP_DESCRIPTIONS[step]}`)
|
|
25
|
+
.join("\n ");
|
|
26
|
+
const currentAction = ACTION_NAMES[current];
|
|
27
|
+
return utils_1.StringUtil.trim `
|
|
28
|
+
${STEP_DESCRIPTIONS[missing]} not completed yet.
|
|
29
|
+
|
|
30
|
+
To ${currentAction}, complete these steps:
|
|
31
|
+
|
|
32
|
+
${remainingSteps}
|
|
33
|
+
|
|
34
|
+
Start with step ${missingIndex + 1}.
|
|
35
|
+
`;
|
|
36
|
+
};
|
|
37
|
+
const buildOutdatedMessage = (outdatedStep, currentStep, state) => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
const outdatedVersion = (_a = state[outdatedStep]) === null || _a === void 0 ? void 0 : _a.step;
|
|
40
|
+
const currentVersion = (_b = state[currentStep]) === null || _b === void 0 ? void 0 : _b.step;
|
|
41
|
+
return utils_1.StringUtil.trim `
|
|
42
|
+
${STEP_NAMES[outdatedStep]} is outdated (step ${outdatedVersion}).
|
|
43
|
+
|
|
44
|
+
Requirements are now at step ${currentVersion}.
|
|
45
|
+
|
|
46
|
+
Please update ${outdatedStep} to match current requirements.
|
|
47
|
+
`;
|
|
48
|
+
};
|
|
49
|
+
const predicatePrisma = (state) => {
|
|
50
|
+
if (state.analyze !== null)
|
|
51
|
+
return null;
|
|
52
|
+
return utils_1.StringUtil.trim `
|
|
53
|
+
Requirements analysis not started.
|
|
54
|
+
|
|
55
|
+
Discuss your project with AI to generate requirements analysis.
|
|
56
|
+
Database design will follow after requirements are ready.
|
|
57
|
+
`;
|
|
58
|
+
};
|
|
59
|
+
const STEP_DESCRIPTIONS = {
|
|
60
|
+
analyze: "Requirements analysis",
|
|
61
|
+
prisma: "Database design",
|
|
62
|
+
interface: "API interface design",
|
|
63
|
+
test: "E2E test creation",
|
|
64
|
+
realize: "Implementation",
|
|
65
|
+
};
|
|
66
|
+
const STEP_NAMES = {
|
|
67
|
+
analyze: "Requirements analysis",
|
|
68
|
+
prisma: "Database schema",
|
|
69
|
+
interface: "API interface",
|
|
70
|
+
test: "Test functions",
|
|
71
|
+
realize: "Implementation",
|
|
72
|
+
};
|
|
73
|
+
const ACTION_NAMES = {
|
|
74
|
+
analyze: "analyze requirements",
|
|
75
|
+
prisma: "design database",
|
|
76
|
+
interface: "design API interface",
|
|
77
|
+
test: "create tests",
|
|
78
|
+
realize: "implement the program",
|
|
79
|
+
};
|
|
80
|
+
const STEP_ORDER = [
|
|
81
|
+
"analyze",
|
|
82
|
+
"prisma",
|
|
83
|
+
"interface",
|
|
84
|
+
"test",
|
|
85
|
+
"realize",
|
|
86
|
+
];
|
|
87
|
+
//# sourceMappingURL=predicateStateMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predicateStateMessage.js","sourceRoot":"","sources":["../../../../src/utils/predicateStateMessage.ts"],"names":[],"mappings":";;;AAAA,yCAA2C;AAMpC,MAAM,qBAAqB,GAAG,CACnC,KAAkB,EAClB,MAAgB,EACD,EAAE;IACjB,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACtC,IAAI,MAAM,KAAK,QAAQ;QAAE,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;IAEvD,MAAM,WAAW,GAAW,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACvD,KAAK,MAAM,GAAG,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC;QAChD,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI;YAAE,OAAO,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAExE,MAAM,YAAY,GAAa,UAAU,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;IAC3D,IAAI,KAAK,CAAC,OAAQ,CAAC,IAAI,KAAK,KAAK,CAAC,YAAY,CAAE,CAAC,IAAI;QACnD,OAAO,oBAAoB,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAC9D,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAfW,QAAA,qBAAqB,yBAehC;AAEF,MAAM,wBAAwB,GAAG,CAC/B,OAAiB,EACjB,OAAiB,EACT,EAAE;IACV,MAAM,YAAY,GAAW,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACzD,MAAM,YAAY,GAAW,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACzD,MAAM,cAAc,G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