@autobe/agent 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeMockAgent.d.ts +5 -5
- package/lib/agent/src/AutoBeAgent.d.ts +52 -0
- package/lib/{AutoBeAgent.js → agent/src/AutoBeAgent.js} +29 -1
- package/lib/agent/src/AutoBeAgent.js.map +1 -0
- package/lib/agent/src/AutoBeAgentBase.d.ts +18 -0
- package/lib/agent/src/AutoBeAgentBase.js.map +1 -0
- package/lib/agent/src/AutoBeMockAgent.d.ts +15 -0
- package/lib/{AutoBeMockAgent.js → agent/src/AutoBeMockAgent.js} +34 -4
- package/lib/agent/src/AutoBeMockAgent.js.map +1 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +34 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +1 -0
- package/lib/agent/src/context/AutoBeContext.d.ts +41 -0
- package/lib/agent/src/context/AutoBeContext.js.map +1 -0
- package/lib/agent/src/context/AutoBeState.d.ts +8 -0
- package/lib/agent/src/context/AutoBeState.js.map +1 -0
- package/lib/agent/src/context/AutoBeTokenUsage.d.ts +173 -0
- package/lib/{context → agent/src/context}/AutoBeTokenUsage.js +7 -0
- package/lib/agent/src/context/AutoBeTokenUsage.js.map +1 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +116 -0
- package/lib/{context → agent/src/context}/AutoBeTokenUsageComponent.js +19 -2
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -0
- package/lib/agent/src/context/IAutoBeApplication.d.ts +107 -0
- package/lib/agent/src/context/IAutoBeApplication.js.map +1 -0
- package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +4 -0
- package/lib/agent/src/context/IAutoBeApplicationProps.js.map +1 -0
- package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +4 -0
- package/lib/agent/src/context/IAutoBeApplicationResult.js.map +1 -0
- package/lib/agent/src/context/assertSchemaModel.d.ts +2 -0
- package/lib/agent/src/context/assertSchemaModel.js.map +1 -0
- package/lib/agent/src/factory/createAgenticaHistory.d.ts +7 -0
- package/lib/agent/src/factory/createAgenticaHistory.js.map +1 -0
- package/lib/agent/src/factory/createAutoBeApplication.d.ts +7 -0
- package/lib/agent/src/factory/createAutoBeApplication.js.map +1 -0
- package/lib/agent/src/factory/createAutoBeContext.d.ts +19 -0
- package/lib/{factory → agent/src/factory}/createAutoBeContext.js +90 -17
- package/lib/agent/src/factory/createAutoBeContext.js.map +1 -0
- package/lib/agent/src/factory/createAutoBeState.d.ts +3 -0
- package/lib/agent/src/factory/createAutoBeState.js.map +1 -0
- package/lib/agent/src/factory/getAutoBeGenerated.d.ts +4 -0
- package/lib/{factory → agent/src/factory}/getAutoBeGenerated.js +3 -3
- package/lib/agent/src/factory/getAutoBeGenerated.js.map +1 -0
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +7 -0
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +1 -0
- package/lib/agent/src/factory/index.d.ts +1 -0
- package/lib/agent/src/factory/index.js.map +1 -0
- package/lib/agent/src/index.d.ts +6 -0
- package/lib/agent/src/index.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js +46 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +30 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +49 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +5 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js +64 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +6 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +265 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +727 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +8 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +242 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +3 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js +3 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +2 -0
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
- package/lib/agent/src/orchestrate/index.d.ts +5 -0
- package/lib/agent/src/orchestrate/index.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +34 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +62 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +49 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +28 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +51 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +35 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +28 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +53 -0
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterface.js +7 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
- package/lib/{orchestrate/interface/orchestrateInterfaceOperations.js → agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js} +227 -562
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceComplement.js +20 -32
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceEndpoints.js +40 -41
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceGroups.js +15 -25
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +1768 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1317 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/interface/orchestrateInterfaceSchemas.js +59 -71
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +467 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +3 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +55 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +24 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +108 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +126 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +96 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +75 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +91 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +6 -0
- package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
- package/lib/agent/src/orchestrate/internal/IProgress.d.ts +4 -0
- package/lib/agent/src/orchestrate/internal/IProgress.js +3 -0
- package/lib/agent/src/orchestrate/internal/IProgress.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +3 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/histories/transformPrismaCorrectHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +59 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +48 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrisma.js +30 -13
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaComponent.js +43 -44
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaCorrect.js +121 -83
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
- package/lib/{orchestrate/prisma/orchestratePrismaSchemas.js → agent/src/orchestrate/prisma/orchestratePrismaReview.js} +139 -248
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +5 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js +1625 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +121 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +142 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +99 -0
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +40 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +80 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +7 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCoderHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +13 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +32 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +11 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +160 -0
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/internal/compile.d.ts +7 -0
- package/lib/agent/src/orchestrate/realize/internal/compile.js +61 -0
- package/lib/agent/src/orchestrate/realize/internal/compile.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +113 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +10 -0
- package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorization.js +84 -70
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +66 -52
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +351 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
- package/lib/{orchestrate/realize/orchestrateRealizePlanner.d.ts → agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts} +5 -3
- package/lib/{orchestrate/realize/orchestrateRealizePlanner.js → agent/src/orchestrate/realize/orchestrateRealizeScenario.js} +14 -24
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +9 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +340 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +92 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +27 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts +345 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +56 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +2 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.d.ts +79 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +276 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +4 -0
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +8 -0
- package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +3 -0
- package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/replaceImportStatements.js +1 -0
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +2 -0
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +1 -0
- package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +3 -0
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +5 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
- package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
- package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +3 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +56 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
- package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestWriteHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +179 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
- package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTest.js +4 -4
- package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestCorrect.js +27 -43
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +4 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +858 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -0
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +5 -0
- package/lib/{orchestrate → agent/src/orchestrate}/test/orchestrateTestWrite.js +53 -54
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +121 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +8 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +134 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +7 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +113 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +7 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeConfig.d.ts +73 -0
- package/lib/agent/src/structures/IAutoBeConfig.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeProps.d.ts +109 -0
- package/lib/agent/src/structures/IAutoBeProps.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeVendor.d.ts +87 -0
- package/lib/agent/src/structures/IAutoBeVendor.js.map +1 -0
- package/lib/agent/src/utils/arrayToRecord.d.ts +17 -0
- package/lib/agent/src/utils/arrayToRecord.js.map +1 -0
- package/lib/agent/src/utils/backoffRetry.d.ts +22 -0
- package/lib/agent/src/utils/backoffRetry.js.map +1 -0
- package/lib/agent/src/utils/divideArray.d.ts +4 -0
- package/lib/agent/src/utils/divideArray.js.map +1 -0
- package/lib/agent/src/utils/emplaceMap.d.ts +1 -0
- package/lib/agent/src/utils/emplaceMap.js.map +1 -0
- package/lib/{orchestrate/realize/RealizePipe.d.ts → agent/src/utils/pipe.d.ts} +1 -1
- package/lib/agent/src/utils/pipe.js.map +1 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +18 -16
- package/lib/context/AutoBeContext.d.ts +16 -5
- package/lib/index.mjs +8876 -4277
- package/lib/index.mjs.map +1 -1
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +153 -0
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +3 -0
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +1 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.d.ts +4 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +4 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +6 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +4 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +6 -12
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +105 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +78 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +70 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +4 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +2 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +5 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +4 -0
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +5 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +7 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +47 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +2 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +6 -2
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +96 -0
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +91 -0
- package/lib/orchestrate/internal/IProgress.d.ts +4 -0
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +8 -0
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +5 -0
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +1 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +2 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +105 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +43 -153
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +5 -0
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +5 -0
- package/lib/orchestrate/realize/histories/transformRealizeCoderHistories.d.ts +7 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +13 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +11 -0
- package/lib/orchestrate/realize/internal/compile.d.ts +7 -0
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +9 -0
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +91 -0
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +9 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +10 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.d.ts +79 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +276 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +4 -0
- package/lib/orchestrate/test/histories/transformTestHistories.d.ts +3 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +3 -0
- package/lib/orchestrate/test/histories/transformTestWriteHistories.d.ts +8 -0
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +2 -2
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +25 -24
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -1
- package/package.json +9 -9
- package/src/AutoBeAgent.ts +37 -3
- package/src/AutoBeMockAgent.ts +41 -11
- package/src/constants/AutoBeSystemPromptConstant.ts +18 -16
- package/src/context/AutoBeContext.ts +30 -4
- package/src/context/AutoBeTokenUsage.ts +8 -0
- package/src/context/AutoBeTokenUsageComponent.ts +20 -2
- package/src/factory/createAutoBeApplication.ts +3 -11
- package/src/factory/createAutoBeContext.ts +64 -1
- package/src/factory/getAutoBeGenerated.ts +3 -3
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +53 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +34 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +56 -0
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +61 -80
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +89 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +123 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +51 -52
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +108 -0
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +85 -0
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +71 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +40 -0
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +27 -0
- package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +45 -22
- package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +43 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +63 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +10 -2
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +106 -0
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +27 -44
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +28 -34
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +15 -32
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +207 -103
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +84 -0
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +72 -82
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +143 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +49 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +2 -1
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +6 -2
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +102 -0
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +98 -0
- package/src/orchestrate/internal/IProgress.ts +4 -0
- package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +66 -0
- package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +2 -2
- package/src/orchestrate/prisma/orchestratePrisma.ts +44 -15
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +16 -33
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +96 -58
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +118 -0
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +133 -139
- package/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.ts +2 -1
- package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +108 -0
- package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +43 -156
- package/src/orchestrate/realize/{transformRealizeAuthorization.ts → histories/transformRealizeAuthorization.ts} +14 -10
- package/src/orchestrate/realize/{transformRealizeAuthorizationCorrectHistories.ts → histories/transformRealizeAuthorizationCorrectHistories.ts} +9 -7
- package/src/orchestrate/realize/{transformRealizeCoderHistories.ts → histories/transformRealizeCoderHistories.ts} +6 -6
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +47 -0
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +184 -0
- package/src/orchestrate/realize/internal/compile.ts +84 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +100 -9
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +45 -57
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +19 -41
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +118 -0
- package/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts} +15 -15
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +120 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +11 -3
- package/src/orchestrate/realize/structures/IAutoBeRealizeReviewApplication.ts +81 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +43 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +282 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +3 -1
- package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +5 -9
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +23 -22
- package/src/orchestrate/test/{transformTestCorrectHistories.ts → histories/transformTestCorrectHistories.ts} +2 -2
- package/src/orchestrate/test/{transformTestHistories.ts → histories/transformTestHistories.ts} +1 -1
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +70 -0
- package/src/orchestrate/test/{transformTestWriteHistories.ts → histories/transformTestWriteHistories.ts} +3 -3
- package/src/orchestrate/test/orchestrateTest.ts +5 -6
- package/src/orchestrate/test/orchestrateTestCorrect.ts +32 -62
- package/src/orchestrate/test/orchestrateTestScenario.ts +95 -158
- package/src/orchestrate/test/orchestrateTestWrite.ts +48 -71
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +25 -24
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +3 -1
- package/lib/AutoBeAgent.js.map +0 -1
- package/lib/AutoBeAgentBase.js.map +0 -1
- package/lib/AutoBeMockAgent.js.map +0 -1
- package/lib/constants/AutoBeSystemPromptConstant.js.map +0 -1
- package/lib/context/AutoBeContext.js.map +0 -1
- package/lib/context/AutoBeState.js.map +0 -1
- package/lib/context/AutoBeTokenUsage.js.map +0 -1
- package/lib/context/AutoBeTokenUsageComponent.js.map +0 -1
- package/lib/context/IAutoBeApplication.js.map +0 -1
- package/lib/context/IAutoBeApplicationProps.js.map +0 -1
- package/lib/context/IAutoBeApplicationResult.js.map +0 -1
- package/lib/context/assertSchemaModel.js.map +0 -1
- package/lib/factory/createAgenticaHistory.js.map +0 -1
- package/lib/factory/createAutoBeApplication.js.map +0 -1
- package/lib/factory/createAutoBeContext.js.map +0 -1
- package/lib/factory/createAutoBeState.js.map +0 -1
- package/lib/factory/getAutoBeGenerated.js.map +0 -1
- package/lib/factory/getAutoBeRealizeGenerated.js.map +0 -1
- package/lib/factory/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.d.ts +0 -45
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js +0 -27
- package/lib/orchestrate/analyze/AutoBeAnalyzeFileSystem.js.map +0 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzePointer.d.ts +0 -9
- package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js +0 -3
- package/lib/orchestrate/analyze/AutoBeAnalyzePointer.js.map +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +0 -98
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.d.ts +0 -5
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js +0 -561
- package/lib/orchestrate/analyze/orchestrateAnalyzeComposer.js.map +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.d.ts +0 -12
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js +0 -395
- package/lib/orchestrate/analyze/orchestrateAnalyzeReviewer.js.map +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +0 -347
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.d.ts +0 -68
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js +0 -3
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.js.map +0 -1
- package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.d.ts +0 -5
- package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js +0 -27
- package/lib/orchestrate/analyze/transformAnalyzeReviewerHistories.js.map +0 -1
- package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.d.ts +0 -12
- package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js +0 -78
- package/lib/orchestrate/analyze/transformAnalyzeWriteHistories.js.map +0 -1
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.d.ts +0 -16
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js +0 -79
- package/lib/orchestrate/analyze/writeDocumentUntilReviewPassed.js.map +0 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/lib/orchestrate/index.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -62
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -28
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -28
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -28
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -28
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterface.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaHistories.d.ts +0 -3
- package/lib/orchestrate/prisma/histories/transformPrismaHistories.js +0 -55
- package/lib/orchestrate/prisma/histories/transformPrismaHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +0 -48
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
- package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
- package/lib/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
- package/lib/orchestrate/realize/RealizePipe.js +0 -14
- package/lib/orchestrate/realize/RealizePipe.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +0 -63
- package/lib/orchestrate/realize/orchestrateRealize.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeCoder.d.ts +0 -26
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js +0 -420
- package/lib/orchestrate/realize/orchestrateRealizeCoder.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizePlanner.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js.map +0 -1
- package/lib/orchestrate/realize/transformRealizeAuthorization.d.ts +0 -4
- package/lib/orchestrate/realize/transformRealizeAuthorization.js +0 -39
- package/lib/orchestrate/realize/transformRealizeAuthorization.js.map +0 -1
- package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
- package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js +0 -80
- package/lib/orchestrate/realize/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
- package/lib/orchestrate/realize/transformRealizeCoderHistories.d.ts +0 -7
- package/lib/orchestrate/realize/transformRealizeCoderHistories.js.map +0 -1
- package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
- package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
- package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.d.ts +0 -11
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js +0 -221
- package/lib/orchestrate/realize/writeCodeUntilCompilePassed.js.map +0 -1
- package/lib/orchestrate/test/compile/completeTestCode.js.map +0 -1
- package/lib/orchestrate/test/compile/filterTestFileName.js.map +0 -1
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
- package/lib/orchestrate/test/orchestrateTest.js.map +0 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +0 -866
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +0 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
- package/lib/orchestrate/test/transformTestCorrectHistories.js.map +0 -1
- package/lib/orchestrate/test/transformTestHistories.js.map +0 -1
- package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +0 -3
- package/lib/orchestrate/test/transformTestScenarioHistories.js +0 -100
- package/lib/orchestrate/test/transformTestScenarioHistories.js.map +0 -1
- package/lib/orchestrate/test/transformTestWriteHistories.js +0 -178
- package/lib/orchestrate/test/transformTestWriteHistories.js.map +0 -1
- package/lib/structures/IAutoBeConfig.js.map +0 -1
- package/lib/structures/IAutoBeProps.js.map +0 -1
- package/lib/structures/IAutoBeVendor.js.map +0 -1
- package/lib/utils/arrayToRecord.js.map +0 -1
- package/lib/utils/backoffRetry.js.map +0 -1
- package/lib/utils/divideArray.js.map +0 -1
- package/lib/utils/emplaceMap.js.map +0 -1
- package/lib/utils/enforceToolCall.d.ts +0 -3
- package/lib/utils/enforceToolCall.js +0 -13
- package/lib/utils/enforceToolCall.js.map +0 -1
- package/lib/utils/forceRetry.d.ts +0 -1
- package/lib/utils/forceRetry.js +0 -26
- package/lib/utils/forceRetry.js.map +0 -1
- package/lib/utils/pipe.js.map +0 -1
- package/src/orchestrate/analyze/AutoBeAnalyzeFileSystem.ts +0 -58
- package/src/orchestrate/analyze/AutoBeAnalyzePointer.ts +0 -10
- package/src/orchestrate/analyze/orchestrateAnalyzeComposer.ts +0 -112
- package/src/orchestrate/analyze/orchestrateAnalyzeReviewer.ts +0 -131
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeComposerApplication.ts +0 -75
- package/src/orchestrate/analyze/transformAnalyzeReviewerHistories.ts +0 -31
- package/src/orchestrate/analyze/transformAnalyzeWriteHistories.ts +0 -94
- package/src/orchestrate/analyze/writeDocumentUntilReviewPassed.ts +0 -96
- package/src/orchestrate/prisma/histories/transformPrismaHistories.ts +0 -59
- package/src/orchestrate/realize/RealizePipe.ts +0 -39
- package/src/orchestrate/realize/orchestrateRealizeCoder.ts +0 -182
- package/src/orchestrate/realize/writeCodeUntilCompilePassed.ts +0 -308
- package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -105
- package/src/utils/enforceToolCall.ts +0 -13
- package/src/utils/forceRetry.ts +0 -13
- /package/lib/{AutoBeAgentBase.js → agent/src/AutoBeAgentBase.js} +0 -0
- /package/lib/{constants → agent/src/constants}/AutoBeSystemPromptConstant.js +0 -0
- /package/lib/{context → agent/src/context}/AutoBeContext.js +0 -0
- /package/lib/{context → agent/src/context}/AutoBeState.js +0 -0
- /package/lib/{context → agent/src/context}/IAutoBeApplication.js +0 -0
- /package/lib/{context → agent/src/context}/IAutoBeApplicationProps.js +0 -0
- /package/lib/{context → agent/src/context}/IAutoBeApplicationResult.js +0 -0
- /package/lib/{context → agent/src/context}/assertSchemaModel.js +0 -0
- /package/lib/{factory → agent/src/factory}/createAgenticaHistory.js +0 -0
- /package/lib/{factory → agent/src/factory}/createAutoBeApplication.js +0 -0
- /package/lib/{factory → agent/src/factory}/createAutoBeState.js +0 -0
- /package/lib/{factory → agent/src/factory}/getAutoBeRealizeGenerated.js +0 -0
- /package/lib/{factory → agent/src/factory}/index.js +0 -0
- /package/lib/{index.js → agent/src/index.js} +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/facade/transformFacadeStateMessage.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/index.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/prisma/histories/transformPrismaComponentsHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/ProviderCodeComparator.js +0 -0
- /package/lib/{orchestrate/realize → agent/src/orchestrate/realize/histories}/transformRealizeCoderHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeCoderApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeCompile.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/InternalFileSystem.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/completeTestCode.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/filterTestFileName.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestExternalDeclarations.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
- /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestCorrectHistories.js +0 -0
- /package/lib/{orchestrate/test → agent/src/orchestrate/test/histories}/transformTestHistories.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
- /package/lib/{orchestrate → agent/src/orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
- /package/lib/{structures → agent/src/structures}/IAutoBeConfig.js +0 -0
- /package/lib/{structures → agent/src/structures}/IAutoBeProps.js +0 -0
- /package/lib/{structures → agent/src/structures}/IAutoBeVendor.js +0 -0
- /package/lib/{utils → agent/src/utils}/arrayToRecord.js +0 -0
- /package/lib/{utils → agent/src/utils}/backoffRetry.js +0 -0
- /package/lib/{utils → agent/src/utils}/divideArray.js +0 -0
- /package/lib/{utils → agent/src/utils}/emplaceMap.js +0 -0
- /package/lib/{utils → agent/src/utils}/pipe.js +0 -0
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { tags } from "typia";
|
|
2
|
-
|
|
3
|
-
export interface IFile {
|
|
4
|
-
/**
|
|
5
|
-
* Describe briefly why you made this document, and if you have any plans for
|
|
6
|
-
* the next one.
|
|
7
|
-
*/
|
|
8
|
-
reason: string;
|
|
9
|
-
|
|
10
|
-
/** Filename to generate or overwrite. */
|
|
11
|
-
filename: `${string}.md`;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Markdown file content. Only write the content of the file. Do not include
|
|
15
|
-
* any questions. This should contain only the contents of the file. Do not
|
|
16
|
-
* write down any questions or appreciation. For example, remove a sentence
|
|
17
|
-
* such as "Is it okay if we proceed with the table of contents? Please let me
|
|
18
|
-
* know if there is anything to add or exclude from the table of contents!"
|
|
19
|
-
*/
|
|
20
|
-
markdown: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface ICreateOrUpdateInput {
|
|
24
|
-
/**
|
|
25
|
-
* Fill in the elements of the array as many files as you want to create.
|
|
26
|
-
* Overwrite if you point to the name of the file that already exists.
|
|
27
|
-
*
|
|
28
|
-
* @title files to create or update
|
|
29
|
-
*/
|
|
30
|
-
files: Array<IFile> & tags.MinItems<1>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type Filename = string;
|
|
34
|
-
type FileContent = string;
|
|
35
|
-
|
|
36
|
-
export interface IAutoBeAnalyzeFileSystem {
|
|
37
|
-
/**
|
|
38
|
-
* Generate multiple markdown files. if there is already created files,
|
|
39
|
-
* overwrite it. Generate several markdown files at once. It is recommended
|
|
40
|
-
* that you create multiple files at a time.
|
|
41
|
-
*/
|
|
42
|
-
createOrUpdateFiles(
|
|
43
|
-
input: ICreateOrUpdateInput,
|
|
44
|
-
): Promise<Record<string, string>>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export class AutoBeAnalyzeFileSystem implements IAutoBeAnalyzeFileSystem {
|
|
48
|
-
constructor(private readonly fileMap: Record<Filename, FileContent> = {}) {}
|
|
49
|
-
async createOrUpdateFiles(input: {
|
|
50
|
-
files: Array<IFile> & tags.MinItems<1>;
|
|
51
|
-
}): Promise<Record<string, string>> {
|
|
52
|
-
input.files.forEach((file) => {
|
|
53
|
-
this.fileMap[file.filename] = file.markdown;
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
return this.fileMap;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IPointer } from "tstl";
|
|
2
|
-
|
|
3
|
-
type Filename = string;
|
|
4
|
-
type FileContent = string;
|
|
5
|
-
|
|
6
|
-
export interface AutoBEAnalyzeFileMap extends Record<Filename, FileContent> {}
|
|
7
|
-
|
|
8
|
-
export type AutoBeAnalyzePointer = IPointer<{
|
|
9
|
-
files: AutoBEAnalyzeFileMap;
|
|
10
|
-
} | null>;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { IAgenticaController, MicroAgentica } from "@agentica/core";
|
|
2
|
-
import { ILlmApplication, ILlmSchema } from "@samchon/openapi";
|
|
3
|
-
import typia from "typia";
|
|
4
|
-
import { v4 } from "uuid";
|
|
5
|
-
|
|
6
|
-
import { AutoBeSystemPromptConstant } from "../../constants/AutoBeSystemPromptConstant";
|
|
7
|
-
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
8
|
-
import { assertSchemaModel } from "../../context/assertSchemaModel";
|
|
9
|
-
import { enforceToolCall } from "../../utils/enforceToolCall";
|
|
10
|
-
import {
|
|
11
|
-
IAutoBeAnalyzeComposerApplication,
|
|
12
|
-
IComposeInput,
|
|
13
|
-
} from "./structures/IAutoBeAnalyzeComposerApplication";
|
|
14
|
-
|
|
15
|
-
export const orchestrateAnalyzeComposer = <Model extends ILlmSchema.Model>(
|
|
16
|
-
ctx: AutoBeContext<Model>,
|
|
17
|
-
setComposeInput: (value: IComposeInput) => void,
|
|
18
|
-
) => {
|
|
19
|
-
const controller = createController<Model>({
|
|
20
|
-
model: ctx.model,
|
|
21
|
-
execute: new AutoBeAnalyzeComposerApplication(),
|
|
22
|
-
preExecute: setComposeInput,
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
const agent = new MicroAgentica({
|
|
26
|
-
model: ctx.model,
|
|
27
|
-
vendor: ctx.vendor,
|
|
28
|
-
controllers: [controller],
|
|
29
|
-
config: {
|
|
30
|
-
locale: ctx.config?.locale,
|
|
31
|
-
executor: {
|
|
32
|
-
describe: null,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
histories: [
|
|
36
|
-
...ctx
|
|
37
|
-
.histories()
|
|
38
|
-
.filter(
|
|
39
|
-
(h) => h.type === "userMessage" || h.type === "assistantMessage",
|
|
40
|
-
),
|
|
41
|
-
{
|
|
42
|
-
id: v4(),
|
|
43
|
-
type: "systemMessage",
|
|
44
|
-
text: AutoBeSystemPromptConstant.ANALYZE_PLANNER,
|
|
45
|
-
created_at: new Date().toISOString(),
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
});
|
|
49
|
-
enforceToolCall(agent);
|
|
50
|
-
return agent;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
class AutoBeAnalyzeComposerApplication
|
|
54
|
-
implements IAutoBeAnalyzeComposerApplication
|
|
55
|
-
{
|
|
56
|
-
/**
|
|
57
|
-
* Compose project structure with roles and files.
|
|
58
|
-
*
|
|
59
|
-
* Design a list of roles and initial documents that you need to create for
|
|
60
|
-
* that requirement. Roles define team member responsibilities, while files
|
|
61
|
-
* define the documentation structure. These are managed separately. If you
|
|
62
|
-
* determine from the conversation that the user's requirements have not been
|
|
63
|
-
* fully gathered, you must stop the analysis and continue collecting the
|
|
64
|
-
* remaining requirements. In this case, you do not need to generate any files
|
|
65
|
-
* or roles. Simply pass an empty array to `input.files` and `input.roles`.
|
|
66
|
-
*
|
|
67
|
-
* @param input Prefix, roles, and files
|
|
68
|
-
* @returns
|
|
69
|
-
*/
|
|
70
|
-
compose(input: IComposeInput): IComposeInput {
|
|
71
|
-
return input;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function createController<Model extends ILlmSchema.Model>(props: {
|
|
76
|
-
model: Model;
|
|
77
|
-
execute: AutoBeAnalyzeComposerApplication;
|
|
78
|
-
preExecute: (input: IComposeInput) => void;
|
|
79
|
-
}): IAgenticaController.IClass<Model> {
|
|
80
|
-
assertSchemaModel(props.model);
|
|
81
|
-
const application: ILlmApplication<Model> = collection[
|
|
82
|
-
props.model
|
|
83
|
-
] as unknown as ILlmApplication<Model>;
|
|
84
|
-
return {
|
|
85
|
-
protocol: "class",
|
|
86
|
-
name: "Compose",
|
|
87
|
-
application,
|
|
88
|
-
execute: {
|
|
89
|
-
compose: (input) => {
|
|
90
|
-
props.preExecute(input);
|
|
91
|
-
return props.execute.compose(input);
|
|
92
|
-
},
|
|
93
|
-
} satisfies IAutoBeAnalyzeComposerApplication,
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
const claude = typia.llm.application<
|
|
98
|
-
AutoBeAnalyzeComposerApplication,
|
|
99
|
-
"claude",
|
|
100
|
-
{ reference: true }
|
|
101
|
-
>();
|
|
102
|
-
const collection = {
|
|
103
|
-
chatgpt: typia.llm.application<
|
|
104
|
-
AutoBeAnalyzeComposerApplication,
|
|
105
|
-
"chatgpt",
|
|
106
|
-
{ reference: true }
|
|
107
|
-
>(),
|
|
108
|
-
claude,
|
|
109
|
-
llama: claude,
|
|
110
|
-
deepseek: claude,
|
|
111
|
-
"3.1": claude,
|
|
112
|
-
};
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { IAgenticaController, MicroAgentica } from "@agentica/core";
|
|
2
|
-
import { ILlmApplication, ILlmSchema } from "@samchon/openapi";
|
|
3
|
-
import { IPointer } from "tstl";
|
|
4
|
-
import typia from "typia";
|
|
5
|
-
|
|
6
|
-
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
7
|
-
import { assertSchemaModel } from "../../context/assertSchemaModel";
|
|
8
|
-
import { enforceToolCall } from "../../utils/enforceToolCall";
|
|
9
|
-
import { transformAnalyzeReviewerHistories } from "./transformAnalyzeReviewerHistories";
|
|
10
|
-
|
|
11
|
-
export type IOrchestrateAnalyzeReviewerResult =
|
|
12
|
-
| {
|
|
13
|
-
type: "reject";
|
|
14
|
-
value: string;
|
|
15
|
-
}
|
|
16
|
-
| {
|
|
17
|
-
type: "accept";
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const orchestrateAnalyzeReviewer = async <
|
|
21
|
-
Model extends ILlmSchema.Model,
|
|
22
|
-
>(
|
|
23
|
-
ctx: AutoBeContext<Model>,
|
|
24
|
-
input: {
|
|
25
|
-
/** Total file names */
|
|
26
|
-
files: Record<string, string>;
|
|
27
|
-
},
|
|
28
|
-
): Promise<IOrchestrateAnalyzeReviewerResult> => {
|
|
29
|
-
const fnCalled: IPointer<IOrchestrateAnalyzeReviewerResult> = {
|
|
30
|
-
value: {
|
|
31
|
-
type: "reject",
|
|
32
|
-
value: "reviewer is not working because of unknown reason.",
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const controller = createController({
|
|
37
|
-
model: ctx.model,
|
|
38
|
-
setResult: (result: IOrchestrateAnalyzeReviewerResult) => {
|
|
39
|
-
fnCalled.value = result;
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
const agent = new MicroAgentica({
|
|
43
|
-
model: ctx.model,
|
|
44
|
-
vendor: ctx.vendor,
|
|
45
|
-
controllers: [controller],
|
|
46
|
-
config: {
|
|
47
|
-
...ctx.config,
|
|
48
|
-
executor: {
|
|
49
|
-
describe: null,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
histories: [...transformAnalyzeReviewerHistories(input)],
|
|
53
|
-
});
|
|
54
|
-
enforceToolCall(agent);
|
|
55
|
-
|
|
56
|
-
const command = `proceed with the review of these files only.` as const;
|
|
57
|
-
await agent.conversate(command).finally(() => {
|
|
58
|
-
const tokenUsage = agent.getTokenUsage().aggregate;
|
|
59
|
-
ctx.usage().record(tokenUsage, ["analyze"]);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
return fnCalled.value;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
interface IAutoBeAnalyzerReviewerSystem {
|
|
66
|
-
/**
|
|
67
|
-
* If there is anything that needs to be modified, you can call it, This
|
|
68
|
-
* function is to reject the document for to try rewriting document with your
|
|
69
|
-
* advice or suggestion.
|
|
70
|
-
*/
|
|
71
|
-
reject(input: {
|
|
72
|
-
/**
|
|
73
|
-
* The reason why you reject the document and the suggestion for the
|
|
74
|
-
* modification. You can write the reason in detail.
|
|
75
|
-
*/
|
|
76
|
-
reason: string;
|
|
77
|
-
}): "OK" | Promise<"OK">;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* If you decide that you no longer need any reviews, call accept. This is a
|
|
81
|
-
* function to end document creation and review, and to respond to users.
|
|
82
|
-
*/
|
|
83
|
-
accept(): "OK" | Promise<"OK">;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function createController<Model extends ILlmSchema.Model>(props: {
|
|
87
|
-
model: Model;
|
|
88
|
-
setResult: (result: IOrchestrateAnalyzeReviewerResult) => void;
|
|
89
|
-
}): IAgenticaController.IClass<Model> {
|
|
90
|
-
assertSchemaModel(props.model);
|
|
91
|
-
const application: ILlmApplication<Model> = collection[
|
|
92
|
-
props.model
|
|
93
|
-
] as unknown as ILlmApplication<Model>;
|
|
94
|
-
return {
|
|
95
|
-
protocol: "class",
|
|
96
|
-
name: "Reviewer",
|
|
97
|
-
application,
|
|
98
|
-
execute: {
|
|
99
|
-
accept: async () => {
|
|
100
|
-
props.setResult({
|
|
101
|
-
type: "accept",
|
|
102
|
-
});
|
|
103
|
-
return "OK" as const;
|
|
104
|
-
},
|
|
105
|
-
reject: async (input) => {
|
|
106
|
-
props.setResult({
|
|
107
|
-
type: "reject",
|
|
108
|
-
value: input.reason,
|
|
109
|
-
});
|
|
110
|
-
return "OK" as const;
|
|
111
|
-
},
|
|
112
|
-
} satisfies IAutoBeAnalyzerReviewerSystem,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
const claude = typia.llm.application<
|
|
117
|
-
IAutoBeAnalyzerReviewerSystem,
|
|
118
|
-
"claude",
|
|
119
|
-
{ reference: true }
|
|
120
|
-
>();
|
|
121
|
-
const collection = {
|
|
122
|
-
chatgpt: typia.llm.application<
|
|
123
|
-
IAutoBeAnalyzerReviewerSystem,
|
|
124
|
-
"chatgpt",
|
|
125
|
-
{ reference: true }
|
|
126
|
-
>(),
|
|
127
|
-
claude,
|
|
128
|
-
llama: claude,
|
|
129
|
-
deepseek: claude,
|
|
130
|
-
"3.1": claude,
|
|
131
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { AutoBeAnalyzeRole } from "@autobe/interface";
|
|
2
|
-
|
|
3
|
-
import { IFile } from "../AutoBeAnalyzeFileSystem";
|
|
4
|
-
|
|
5
|
-
export interface IComposeInput {
|
|
6
|
-
/** Reason for the analysis and composition of the project structure. */
|
|
7
|
-
reason: string;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Prefix for file names and all prisma schema files, table, interface, and
|
|
11
|
-
* variable names.
|
|
12
|
-
*/
|
|
13
|
-
prefix: string;
|
|
14
|
-
|
|
15
|
-
/** Roles to be assigned for the project */
|
|
16
|
-
roles: AutoBeAnalyzeRole[];
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* If the user has requested a specific number of pages, enter that number.
|
|
20
|
-
* Otherwise, provide an appropriate number of documents needed to meet the
|
|
21
|
-
* user's requirements. This number must always match the length of the files
|
|
22
|
-
* property, must be greater than 1, and must include the table of contents.
|
|
23
|
-
* For example, if the user requests 3 pages, the total should be 4, including
|
|
24
|
-
* the table of contents.
|
|
25
|
-
*/
|
|
26
|
-
page: number;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* # Document files to be generated
|
|
30
|
-
*
|
|
31
|
-
* File name must be English and it must contain the numbering and prefix.
|
|
32
|
-
*
|
|
33
|
-
* These files represent business documentation that may include:
|
|
34
|
-
*
|
|
35
|
-
* - Business requirements and functional specifications
|
|
36
|
-
* - User journey mapping and use case scenarios
|
|
37
|
-
* - Business rules and workflow definitions
|
|
38
|
-
* - Service architecture and system design overview
|
|
39
|
-
* - Data flow and integration requirements
|
|
40
|
-
* - User roles and permission matrix
|
|
41
|
-
* - API endpoint specifications and contracts
|
|
42
|
-
* - Business logic and validation rules
|
|
43
|
-
*
|
|
44
|
-
* Generate files based on actual requirements gathered from conversation. Do
|
|
45
|
-
* not create unnecessary documentation - only generate what is needed to
|
|
46
|
-
* properly define the business requirements and system specifications.
|
|
47
|
-
*
|
|
48
|
-
* # Page Length Rules
|
|
49
|
-
*
|
|
50
|
-
* The number of documents must match the user's request, excluding the table
|
|
51
|
-
* of contents. For example, if the user requests 3 pages, a total of 4
|
|
52
|
-
* documents should be generated, including the table of contents. If the user
|
|
53
|
-
* does not specify a number, generate a sufficient number of documents to
|
|
54
|
-
* adequately support the service.
|
|
55
|
-
*/
|
|
56
|
-
files: Array<Pick<IFile, "filename" | "reason">>;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface IAutoBeAnalyzeComposerApplication {
|
|
60
|
-
/**
|
|
61
|
-
* Compose project structure with roles and files.
|
|
62
|
-
*
|
|
63
|
-
* Design a list of roles and initial documents that you need to create for
|
|
64
|
-
* that requirement. Roles define team member responsibilities, while files
|
|
65
|
-
* define the documentation structure. These are managed separately. If you
|
|
66
|
-
* determine from the conversation that the user's requirements have not been
|
|
67
|
-
* fully gathered, you must stop the analysis and continue collecting the
|
|
68
|
-
* remaining requirements. In this case, you do not need to generate any files
|
|
69
|
-
* or roles. Simply pass an empty array to `input.files` and `input.roles`.
|
|
70
|
-
*
|
|
71
|
-
* @param input Prefix, roles, and files
|
|
72
|
-
* @returns
|
|
73
|
-
*/
|
|
74
|
-
compose(input: IComposeInput): IComposeInput;
|
|
75
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
-
import { v4 } from "uuid";
|
|
3
|
-
|
|
4
|
-
import { AutoBeSystemPromptConstant } from "../../constants/AutoBeSystemPromptConstant";
|
|
5
|
-
|
|
6
|
-
export const transformAnalyzeReviewerHistories = (input: {
|
|
7
|
-
/** Total file names */
|
|
8
|
-
files: Record<string, string>;
|
|
9
|
-
}): Array<
|
|
10
|
-
IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage
|
|
11
|
-
> => {
|
|
12
|
-
return [
|
|
13
|
-
{
|
|
14
|
-
id: v4(),
|
|
15
|
-
created_at: new Date().toISOString(),
|
|
16
|
-
type: "assistantMessage",
|
|
17
|
-
text: [
|
|
18
|
-
"Below are all of the files.",
|
|
19
|
-
"```json",
|
|
20
|
-
JSON.stringify(input.files),
|
|
21
|
-
"```",
|
|
22
|
-
].join("\n"),
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
id: v4(),
|
|
26
|
-
created_at: new Date().toISOString(),
|
|
27
|
-
type: "systemMessage",
|
|
28
|
-
text: AutoBeSystemPromptConstant.ANALYZE_REVIEWER,
|
|
29
|
-
},
|
|
30
|
-
];
|
|
31
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
-
import { AutoBeAnalyzeRole } from "@autobe/interface";
|
|
3
|
-
import { ILlmSchema } from "@samchon/openapi";
|
|
4
|
-
import { v4 } from "uuid";
|
|
5
|
-
|
|
6
|
-
import { AutoBeSystemPromptConstant } from "../../constants/AutoBeSystemPromptConstant";
|
|
7
|
-
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
8
|
-
import { IFile } from "./AutoBeAnalyzeFileSystem";
|
|
9
|
-
|
|
10
|
-
export const transformAnalyzeWriteHistories = <Model extends ILlmSchema.Model>(
|
|
11
|
-
ctx: AutoBeContext<Model>,
|
|
12
|
-
input: {
|
|
13
|
-
/** Total file names */
|
|
14
|
-
totalFiles: Pick<IFile, "filename" | "reason">[];
|
|
15
|
-
targetFile: string;
|
|
16
|
-
roles: AutoBeAnalyzeRole[];
|
|
17
|
-
review: string | null;
|
|
18
|
-
},
|
|
19
|
-
): Array<
|
|
20
|
-
IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage
|
|
21
|
-
> => {
|
|
22
|
-
return [
|
|
23
|
-
...(input.review !== null
|
|
24
|
-
? ([
|
|
25
|
-
{
|
|
26
|
-
id: v4(),
|
|
27
|
-
created_at: new Date().toISOString(),
|
|
28
|
-
type: "assistantMessage",
|
|
29
|
-
text: [
|
|
30
|
-
input.totalFiles.find((el) => el.filename === input.targetFile),
|
|
31
|
-
].join("\n"),
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: v4(),
|
|
35
|
-
created_at: new Date().toISOString(),
|
|
36
|
-
type: "assistantMessage",
|
|
37
|
-
text: [
|
|
38
|
-
`You previously wrote a piece of content.`,
|
|
39
|
-
`The following review has been received regarding your writing:`,
|
|
40
|
-
input.review,
|
|
41
|
-
`You must revise your content to reflect the feedback in this review.`,
|
|
42
|
-
].join(),
|
|
43
|
-
},
|
|
44
|
-
] as const)
|
|
45
|
-
: []),
|
|
46
|
-
{
|
|
47
|
-
id: v4(),
|
|
48
|
-
created_at: new Date().toISOString(),
|
|
49
|
-
type: "systemMessage",
|
|
50
|
-
text: AutoBeSystemPromptConstant.ANALYZE.replace(
|
|
51
|
-
"{% User Locale %}",
|
|
52
|
-
ctx.config?.locale ?? "en-US",
|
|
53
|
-
),
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: v4(),
|
|
57
|
-
created_at: new Date().toISOString(),
|
|
58
|
-
type: "systemMessage",
|
|
59
|
-
text: [
|
|
60
|
-
"# Guidelines",
|
|
61
|
-
"If the user specifies the exact number of pages, please follow it precisely.",
|
|
62
|
-
AutoBeSystemPromptConstant.ANALYZE_GUIDELINE,
|
|
63
|
-
].join("\n"),
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: v4(),
|
|
67
|
-
created_at: new Date().toISOString(),
|
|
68
|
-
type: "systemMessage",
|
|
69
|
-
text: [
|
|
70
|
-
`# Instruction`,
|
|
71
|
-
`The names of all the files are as follows: ${input.totalFiles
|
|
72
|
-
.map((f) => f.filename)
|
|
73
|
-
.join(",")}`,
|
|
74
|
-
"Assume that all files are in the same folder. Also, when pointing to the location of a file, go to the relative path.",
|
|
75
|
-
"",
|
|
76
|
-
`The following user roles have been defined for this system:`,
|
|
77
|
-
...input.roles.map((role) => `- ${role.name}: ${role.description}`),
|
|
78
|
-
"These roles will be used for API authentication and should be considered when creating documentation.",
|
|
79
|
-
"",
|
|
80
|
-
`Document Length Specification:`,
|
|
81
|
-
`- You are responsible for writing ONLY ONE document: ${input.targetFile}`,
|
|
82
|
-
`- Each page should contain approximately 2,000 characters`,
|
|
83
|
-
`- DO NOT write content for other documents - focus only on ${input.targetFile}`,
|
|
84
|
-
"",
|
|
85
|
-
`Among the various documents, the part you decided to take care of is as follows.: ${input.targetFile}`,
|
|
86
|
-
`Only write this document named '${input.targetFile}'.`,
|
|
87
|
-
"Never write other documents.",
|
|
88
|
-
"",
|
|
89
|
-
"# Reason to write this document",
|
|
90
|
-
`- ${input.totalFiles.find((el) => el.filename === input.targetFile)?.reason}`,
|
|
91
|
-
].join("\n"),
|
|
92
|
-
},
|
|
93
|
-
];
|
|
94
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { AutoBeAnalyzeRole } from "@autobe/interface";
|
|
2
|
-
import { ILlmSchema } from "@samchon/openapi";
|
|
3
|
-
|
|
4
|
-
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
5
|
-
import { IFile } from "./AutoBeAnalyzeFileSystem";
|
|
6
|
-
import {
|
|
7
|
-
AutoBEAnalyzeFileMap,
|
|
8
|
-
AutoBeAnalyzePointer,
|
|
9
|
-
} from "./AutoBeAnalyzePointer";
|
|
10
|
-
import { orchestrateAnalyzeReviewer } from "./orchestrateAnalyzeReviewer";
|
|
11
|
-
import { orchestrateAnalyzeWrite } from "./orchestrateAnalyzeWrite";
|
|
12
|
-
|
|
13
|
-
export async function writeDocumentUntilReviewPassed<
|
|
14
|
-
Model extends ILlmSchema.Model,
|
|
15
|
-
>(
|
|
16
|
-
ctx: AutoBeContext<Model>,
|
|
17
|
-
props: {
|
|
18
|
-
totalFiles: Pick<IFile, "filename" | "reason">[];
|
|
19
|
-
filename: string;
|
|
20
|
-
roles: AutoBeAnalyzeRole[];
|
|
21
|
-
progress: { total: number; completed: number };
|
|
22
|
-
retry?: number;
|
|
23
|
-
prevReview?: string;
|
|
24
|
-
},
|
|
25
|
-
): Promise<AutoBeAnalyzePointer> {
|
|
26
|
-
const retry = props.retry ?? 3;
|
|
27
|
-
const pointer: { value: { files: AutoBEAnalyzeFileMap } } = {
|
|
28
|
-
value: { files: {} },
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* `retry` means the number of times to retry the review. so if `retry` is -1,
|
|
33
|
-
* it means not execute this logic.
|
|
34
|
-
*/
|
|
35
|
-
if (retry === -1) {
|
|
36
|
-
return pointer;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
let isToolCalled = false;
|
|
40
|
-
const writer = orchestrateAnalyzeWrite(ctx, {
|
|
41
|
-
totalFiles: props.totalFiles,
|
|
42
|
-
roles: props.roles,
|
|
43
|
-
targetFile: props.filename,
|
|
44
|
-
review: props.prevReview ?? "",
|
|
45
|
-
setDocument: (v) => {
|
|
46
|
-
isToolCalled = true;
|
|
47
|
-
pointer.value = { files: { ...pointer.value?.files, ...v } };
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
await writer.conversate("Write Document.").finally(() => {
|
|
51
|
-
const tokenUsage = writer.getTokenUsage().aggregate;
|
|
52
|
-
ctx.usage().record(tokenUsage, ["analyze"]);
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
if (isToolCalled === false) {
|
|
56
|
-
throw new Error("Failed to write document by unknown reason.");
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
ctx.dispatch({
|
|
60
|
-
type: "analyzeWrite",
|
|
61
|
-
files: {
|
|
62
|
-
...pointer.value?.files,
|
|
63
|
-
},
|
|
64
|
-
total: props.progress.total,
|
|
65
|
-
completed: ++props.progress.completed,
|
|
66
|
-
step: ctx.state().analyze?.step ?? 0,
|
|
67
|
-
created_at: new Date().toISOString(),
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
const reviewResult = await orchestrateAnalyzeReviewer(ctx, pointer.value);
|
|
71
|
-
|
|
72
|
-
if (reviewResult.type === "accept") {
|
|
73
|
-
return pointer;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
ctx.dispatch({
|
|
77
|
-
type: "analyzeReview",
|
|
78
|
-
files: {
|
|
79
|
-
...pointer.value.files,
|
|
80
|
-
},
|
|
81
|
-
review: reviewResult.value,
|
|
82
|
-
total: props.progress.total,
|
|
83
|
-
completed: props.progress.completed,
|
|
84
|
-
step: ctx.state().analyze?.step ?? 0,
|
|
85
|
-
created_at: new Date().toISOString(),
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
return await writeDocumentUntilReviewPassed(ctx, {
|
|
89
|
-
totalFiles: props.totalFiles,
|
|
90
|
-
filename: props.filename,
|
|
91
|
-
roles: props.roles,
|
|
92
|
-
progress: props.progress,
|
|
93
|
-
retry: retry - 1,
|
|
94
|
-
prevReview: reviewResult.value,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IAgenticaHistoryJson } from "@agentica/core";
|
|
2
|
-
import { v4 } from "uuid";
|
|
3
|
-
|
|
4
|
-
import { AutoBeSystemPromptConstant } from "../../../constants/AutoBeSystemPromptConstant";
|
|
5
|
-
import { AutoBeState } from "../../../context/AutoBeState";
|
|
6
|
-
|
|
7
|
-
export const transformPrismaHistories = (
|
|
8
|
-
state: AutoBeState,
|
|
9
|
-
): Array<
|
|
10
|
-
IAgenticaHistoryJson.IAssistantMessage | IAgenticaHistoryJson.ISystemMessage
|
|
11
|
-
> => {
|
|
12
|
-
if (state.analyze === null)
|
|
13
|
-
return [
|
|
14
|
-
{
|
|
15
|
-
id: v4(),
|
|
16
|
-
created_at: new Date().toISOString(),
|
|
17
|
-
type: "systemMessage",
|
|
18
|
-
text: [
|
|
19
|
-
"Requirement analysis is not yet completed.",
|
|
20
|
-
"Don't call any tool function,",
|
|
21
|
-
"but say to process the requirement analysis.",
|
|
22
|
-
].join(" "),
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
|
-
return [
|
|
26
|
-
{
|
|
27
|
-
id: v4(),
|
|
28
|
-
created_at: new Date().toISOString(),
|
|
29
|
-
type: "systemMessage",
|
|
30
|
-
text: AutoBeSystemPromptConstant.PRISMA,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: v4(),
|
|
34
|
-
created_at: new Date().toISOString(),
|
|
35
|
-
type: "assistantMessage",
|
|
36
|
-
text: AutoBeSystemPromptConstant.PRISMA_EXAMPLE,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: v4(),
|
|
40
|
-
created_at: new Date().toISOString(),
|
|
41
|
-
type: "assistantMessage",
|
|
42
|
-
text: [
|
|
43
|
-
"Here is the requirement analysis report.",
|
|
44
|
-
"",
|
|
45
|
-
"Call the provided tool function to generate Prisma DB schema",
|
|
46
|
-
"referencing below requirement analysis report.",
|
|
47
|
-
"",
|
|
48
|
-
"## User Request",
|
|
49
|
-
state.analyze.reason,
|
|
50
|
-
"",
|
|
51
|
-
`## Requirement Analysis Report`,
|
|
52
|
-
"",
|
|
53
|
-
"```json",
|
|
54
|
-
JSON.stringify(state.analyze.files),
|
|
55
|
-
"```",
|
|
56
|
-
].join("\n"),
|
|
57
|
-
},
|
|
58
|
-
];
|
|
59
|
-
};
|