@autobe/agent 0.17.1 → 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.d.ts +52 -0
- package/lib/{AutoBeAgent.js → agent/src/AutoBeAgent.js} +34 -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 +7 -0
- package/lib/{AutoBeMockAgent.js → agent/src/AutoBeMockAgent.js} +40 -5
- package/lib/agent/src/AutoBeMockAgent.js.map +1 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +28 -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 +117 -0
- package/lib/{context → agent/src/context}/AutoBeTokenUsageComponent.js +33 -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/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.d.ts +7 -0
- package/lib/{factory → agent/src/factory}/createAgenticaHistory.js +1 -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/agent/src/factory/createAutoBeContext.js +271 -0
- 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 +6 -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 +6 -0
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +61 -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 +69 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +5 -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 +714 -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 +244 -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/{orchestrate → agent/src/orchestrate}/interface/histories/transformInterfaceAssetHistories.js +1 -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 +41 -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 +59 -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 +34 -9
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +1731 -0
- 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 +42 -36
- 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 +24 -38
- 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 +1774 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +4 -0
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1328 -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/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +561 -0
- 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 +473 -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 +93 -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 +171 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +132 -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 +107 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +85 -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/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.d.ts +3 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +79 -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/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +52 -0
- 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 +40 -14
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +4 -0
- package/lib/{orchestrate → agent/src/orchestrate}/prisma/orchestratePrismaComponent.js +43 -48
- 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 +154 -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} +180 -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 +1662 -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/transformRealizeCorrectHistories.d.ts +14 -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/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 +14 -0
- package/lib/{orchestrate/realize/transformRealizeCoderHistories.js → agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js} +31 -92
- 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 +44 -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 +130 -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 +16 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +352 -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 +14 -0
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +345 -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/IAutoBeRealizeCorrectApplication.d.ts +79 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.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/{orchestrate/realize/structures/IAutoBeRealizeCoderApplication.d.ts → agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts} +22 -88
- 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 +6 -1
- 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 +34 -0
- 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 +4 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +101 -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 +16 -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 +31 -47
- 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 +961 -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 +122 -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/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js +3 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.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/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 +24 -28
- package/lib/context/AutoBeContext.d.ts +16 -5
- package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
- package/lib/factory/consentFunctionCall.d.ts +10 -0
- package/lib/index.mjs +11323 -5336
- 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 +6 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +4 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +6 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +5 -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 +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +4 -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/IAutoBeInterfaceComplementApplication.d.ts +38 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +2 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +16 -16
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +64 -15
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +132 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +46 -14
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +85 -0
- package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +7 -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 -2
- 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/transformRealizeCorrectHistories.d.ts +14 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +3 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +14 -0
- package/lib/orchestrate/realize/internal/compile.d.ts +7 -0
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +16 -0
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +91 -0
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +14 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +10 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +79 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +38 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +279 -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 +4 -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/IAutoBeTestCorrectApplication.d.ts +6 -5
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +25 -24
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +6 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +2 -1
- package/lib/utils/predicateStateMessage.d.ts +4 -0
- package/package.json +9 -9
- package/src/AutoBeAgent.ts +51 -3
- package/src/AutoBeMockAgent.ts +44 -16
- package/src/constants/AutoBeSystemPromptConstant.ts +24 -28
- package/src/context/AutoBeContext.ts +30 -4
- package/src/context/AutoBeTokenUsage.ts +8 -0
- package/src/context/AutoBeTokenUsageComponent.ts +40 -2
- package/src/factory/consentFunctionCall.ts +128 -0
- package/src/factory/createAgenticaHistory.ts +1 -0
- package/src/factory/createAutoBeApplication.ts +3 -11
- package/src/factory/createAutoBeContext.ts +149 -1
- package/src/factory/getAutoBeGenerated.ts +3 -3
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewerHistories.ts +60 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +34 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +78 -0
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +66 -80
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +89 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +99 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +53 -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/transformInterfaceAssetHistories.ts +1 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +40 -0
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +17 -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 +69 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +57 -10
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +209 -0
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +27 -44
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +28 -34
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +18 -48
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +216 -107
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +101 -0
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +180 -96
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +145 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +49 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +39 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +2 -1
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +16 -16
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +67 -15
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +139 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +47 -14
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +92 -0
- package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +41 -0
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +9 -16
- package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +66 -0
- package/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.ts +2 -2
- package/src/orchestrate/prisma/orchestratePrisma.ts +55 -17
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +19 -49
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +96 -58
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +124 -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/histories/transformRealizeAuthorization.ts +48 -0
- package/src/orchestrate/realize/{transformRealizeAuthorizationCorrectHistories.ts → histories/transformRealizeAuthorizationCorrectHistories.ts} +28 -30
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +49 -0
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +285 -0
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +184 -0
- package/src/orchestrate/realize/internal/compile.ts +67 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +125 -30
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +45 -57
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +19 -41
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +122 -0
- package/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts} +15 -15
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +128 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +11 -3
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +81 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts +43 -0
- package/src/orchestrate/realize/structures/{IAutoBeRealizeCoderApplication.ts → IAutoBeRealizeWriteApplication.ts} +22 -95
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +10 -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 +121 -0
- package/src/orchestrate/test/{transformTestWriteHistories.ts → histories/transformTestWriteHistories.ts} +3 -3
- package/src/orchestrate/test/orchestrateTest.ts +17 -6
- package/src/orchestrate/test/orchestrateTestCorrect.ts +32 -62
- package/src/orchestrate/test/orchestrateTestScenario.ts +241 -168
- package/src/orchestrate/test/orchestrateTestWrite.ts +48 -71
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +6 -5
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +25 -24
- package/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.ts +7 -0
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +3 -1
- package/src/utils/predicateStateMessage.ts +107 -0
- 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 +0 -141
- 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 +0 -1643
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +0 -411
- 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 +0 -85
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +0 -52
- 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.d.ts +0 -5
- 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 +0 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCoderApplication.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.d.ts +0 -56
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js +0 -3
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCompile.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.d.ts +0 -2
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.js +0 -5
- 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 +0 -34
- 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.d.ts +0 -5
- package/lib/utils/pipe.js +0 -14
- 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/structures/IAutoBeRealizeCompile.ts +0 -70
- package/src/orchestrate/realize/structures/IAutoBeRealizeFailedSymbol.ts +0 -2
- package/src/orchestrate/realize/transformRealizeAuthorization.ts +0 -44
- package/src/orchestrate/realize/transformRealizeCoderHistories.ts +0 -248
- 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/src/utils/pipe.ts +0 -39
- /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}/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/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/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 → 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/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}/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/src/orchestrate/realize/{orchestrateRealizePlanner.ts → orchestrateRealizeScenario.ts}
RENAMED
|
@@ -2,8 +2,9 @@ import { AutoBeOpenApi, AutoBeRealizeAuthorization } from "@autobe/interface";
|
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
|
|
4
4
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
5
|
+
import { IAutoBeRealizeScenarioApplication } from "./structures/IAutoBeRealizeScenarioApplication";
|
|
5
6
|
|
|
6
|
-
export interface
|
|
7
|
+
export interface IAutoBeRealizeScenario {
|
|
7
8
|
/**
|
|
8
9
|
* The name of the function to be generated.
|
|
9
10
|
*
|
|
@@ -56,7 +57,7 @@ export interface RealizePlannerOutput {
|
|
|
56
57
|
* Extracted from the Swagger operation method. Used to define the request
|
|
57
58
|
* type during code and test generation.
|
|
58
59
|
*/
|
|
59
|
-
|
|
60
|
+
method: "get" | "post" | "put" | "delete" | "patch";
|
|
60
61
|
|
|
61
62
|
/**
|
|
62
63
|
* List of scenario descriptions for test code generation.
|
|
@@ -91,16 +92,17 @@ export interface RealizePlannerOutput {
|
|
|
91
92
|
* next step in the AutoBE pipeline, which is responsible for generating the
|
|
92
93
|
* actual implementation code.
|
|
93
94
|
*
|
|
95
|
+
* @author Kakasoo
|
|
94
96
|
* @param ctx - AutoBE context including model and configuration
|
|
95
97
|
* @param operation - A single OpenAPI operation object to analyze and plan
|
|
96
98
|
* @returns A planning object containing all structural information needed to
|
|
97
99
|
* generate the function
|
|
98
100
|
*/
|
|
99
|
-
export const
|
|
101
|
+
export const orchestrateRealizeScenario = <Model extends ILlmSchema.Model>(
|
|
100
102
|
ctx: AutoBeContext<Model>,
|
|
101
103
|
operation: AutoBeOpenApi.IOperation,
|
|
102
104
|
authorization?: AutoBeRealizeAuthorization,
|
|
103
|
-
):
|
|
105
|
+
): IAutoBeRealizeScenarioApplication.IProps => {
|
|
104
106
|
const testScenarios =
|
|
105
107
|
ctx
|
|
106
108
|
.state()
|
|
@@ -110,18 +112,16 @@ export const orchestrateRealizePlanner = async <Model extends ILlmSchema.Model>(
|
|
|
110
112
|
el.scenario.endpoint.path === operation.path,
|
|
111
113
|
) ?? [];
|
|
112
114
|
|
|
115
|
+
const functionName = `${operation.method}_${operation.path
|
|
116
|
+
.replaceAll("/", "_")
|
|
117
|
+
.replaceAll("-", "_")
|
|
118
|
+
.replaceAll("{", "$")
|
|
119
|
+
.replaceAll("}", "")}`;
|
|
113
120
|
return {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
outputSchema: operation.responseBody,
|
|
118
|
-
operationType: operation.method,
|
|
121
|
+
operation: operation,
|
|
122
|
+
functionName: functionName,
|
|
123
|
+
location: `src/providers/${functionName}.ts`,
|
|
119
124
|
testScenarios: testScenarios.map((el) => el.scenario.draft),
|
|
120
|
-
functionName: `${operation.method}_${operation.path
|
|
121
|
-
.replaceAll("/", "_")
|
|
122
|
-
.replaceAll("-", "_")
|
|
123
|
-
.replaceAll("{", "$")
|
|
124
|
-
.replaceAll("}", "")}`,
|
|
125
125
|
decoratorEvent: authorization,
|
|
126
|
-
}
|
|
126
|
+
};
|
|
127
127
|
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AutoBeRealizeAuthorization,
|
|
3
|
+
AutoBeRealizeWriteEvent,
|
|
4
|
+
} from "@autobe/interface";
|
|
5
|
+
import { ILlmApplication, ILlmController, ILlmSchema } from "@samchon/openapi";
|
|
6
|
+
import { IPointer } from "tstl";
|
|
7
|
+
import typia from "typia";
|
|
8
|
+
|
|
9
|
+
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
10
|
+
import { assertSchemaModel } from "../../context/assertSchemaModel";
|
|
11
|
+
import { getTestScenarioArtifacts } from "../test/compile/getTestScenarioArtifacts";
|
|
12
|
+
import { IAutoBeTestScenarioArtifacts } from "../test/structures/IAutoBeTestScenarioArtifacts";
|
|
13
|
+
import { transformRealizeWriteHistories } from "./histories/transformRealizeWriteHistories";
|
|
14
|
+
import { IAutoBeRealizeScenarioApplication } from "./structures/IAutoBeRealizeScenarioApplication";
|
|
15
|
+
import { IAutoBeRealizeWriteApplication } from "./structures/IAutoBeRealizeWriteApplication";
|
|
16
|
+
import { replaceImportStatements } from "./utils/replaceImportStatements";
|
|
17
|
+
|
|
18
|
+
export async function orchestrateRealizeWrite<Model extends ILlmSchema.Model>(
|
|
19
|
+
ctx: AutoBeContext<Model>,
|
|
20
|
+
props: {
|
|
21
|
+
totalAuthorizations: AutoBeRealizeAuthorization[];
|
|
22
|
+
authorization: AutoBeRealizeAuthorization | null;
|
|
23
|
+
scenario: IAutoBeRealizeScenarioApplication.IProps;
|
|
24
|
+
progress: IProgress;
|
|
25
|
+
},
|
|
26
|
+
): Promise<AutoBeRealizeWriteEvent> {
|
|
27
|
+
const artifacts: IAutoBeTestScenarioArtifacts =
|
|
28
|
+
await getTestScenarioArtifacts(ctx, {
|
|
29
|
+
endpoint: props.scenario.operation,
|
|
30
|
+
dependencies: [],
|
|
31
|
+
});
|
|
32
|
+
const pointer: IPointer<IAutoBeRealizeWriteApplication.IProps | null> = {
|
|
33
|
+
value: null,
|
|
34
|
+
};
|
|
35
|
+
const { tokenUsage } = await ctx.conversate({
|
|
36
|
+
source: "realizeWrite",
|
|
37
|
+
histories: transformRealizeWriteHistories({
|
|
38
|
+
state: ctx.state(),
|
|
39
|
+
scenario: props.scenario,
|
|
40
|
+
artifacts,
|
|
41
|
+
authorization: props.authorization,
|
|
42
|
+
totalAuthorizations: props.totalAuthorizations,
|
|
43
|
+
}),
|
|
44
|
+
controller: createController({
|
|
45
|
+
model: ctx.model,
|
|
46
|
+
build: (next) => {
|
|
47
|
+
pointer.value = next;
|
|
48
|
+
},
|
|
49
|
+
}),
|
|
50
|
+
enforceFunctionCall: true,
|
|
51
|
+
message: [
|
|
52
|
+
`Write complete, production-ready TypeScript code that strictly follows these rules:`,
|
|
53
|
+
"",
|
|
54
|
+
`DO NOT:`,
|
|
55
|
+
`- Use the native \`Date\` type anywhere`,
|
|
56
|
+
`- Use \`as\` for type assertions`,
|
|
57
|
+
``,
|
|
58
|
+
`DO:`,
|
|
59
|
+
`- Write all date/datetime values as \`string & tags.Format<'date-time'>\``,
|
|
60
|
+
`- Generate UUIDs using \`v4()\` and type as \`string & tags.Format<'uuid'>\``,
|
|
61
|
+
`- Resolve types properly without assertions`,
|
|
62
|
+
`- Type all functions with clear parameter and return types`,
|
|
63
|
+
`6. Do not skip validations or default values where necessary.`,
|
|
64
|
+
`7. Follow functional, immutable, and consistent code structure.`,
|
|
65
|
+
"",
|
|
66
|
+
`Use \`@nestia/e2e\` test structure if relevant.`,
|
|
67
|
+
].join("\n"),
|
|
68
|
+
});
|
|
69
|
+
if (pointer.value === null) throw new Error("Failed to write code.");
|
|
70
|
+
|
|
71
|
+
pointer.value.implementationCode = await replaceImportStatements(ctx)(
|
|
72
|
+
artifacts,
|
|
73
|
+
pointer.value.implementationCode,
|
|
74
|
+
props.authorization?.payload.name,
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
const event: AutoBeRealizeWriteEvent = {
|
|
78
|
+
type: "realizeWrite",
|
|
79
|
+
location: props.scenario.location,
|
|
80
|
+
content: pointer.value.implementationCode,
|
|
81
|
+
tokenUsage,
|
|
82
|
+
completed: ++props.progress.completed,
|
|
83
|
+
total: props.progress.total,
|
|
84
|
+
step: ctx.state().analyze?.step ?? 0,
|
|
85
|
+
created_at: new Date().toISOString(),
|
|
86
|
+
};
|
|
87
|
+
ctx.dispatch(event);
|
|
88
|
+
return event;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function createController<Model extends ILlmSchema.Model>(props: {
|
|
92
|
+
model: Model;
|
|
93
|
+
build: (next: IAutoBeRealizeWriteApplication.IProps) => void;
|
|
94
|
+
}): ILlmController<Model> {
|
|
95
|
+
assertSchemaModel(props.model);
|
|
96
|
+
|
|
97
|
+
const application: ILlmApplication<Model> = collection[
|
|
98
|
+
props.model
|
|
99
|
+
] satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
protocol: "class",
|
|
103
|
+
name: "Write code",
|
|
104
|
+
application,
|
|
105
|
+
execute: {
|
|
106
|
+
coding: (next) => {
|
|
107
|
+
props.build(next);
|
|
108
|
+
},
|
|
109
|
+
} satisfies IAutoBeRealizeWriteApplication,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const claude = typia.llm.application<
|
|
114
|
+
IAutoBeRealizeWriteApplication,
|
|
115
|
+
"claude"
|
|
116
|
+
>();
|
|
117
|
+
const collection = {
|
|
118
|
+
chatgpt: typia.llm.application<IAutoBeRealizeWriteApplication, "chatgpt">(),
|
|
119
|
+
claude,
|
|
120
|
+
llama: claude,
|
|
121
|
+
deepseek: claude,
|
|
122
|
+
"3.1": claude,
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export interface IProgress {
|
|
126
|
+
total: number;
|
|
127
|
+
completed: number;
|
|
128
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CamelPattern, PascalPattern } from "@autobe/interface";
|
|
2
|
+
|
|
1
3
|
export interface IAutoBeRealizeAuthorizationApplication {
|
|
2
4
|
createDecorator: (
|
|
3
5
|
next: IAutoBeRealizeAuthorizationApplication.IProps,
|
|
@@ -38,8 +40,10 @@ export namespace IAutoBeRealizeAuthorizationApplication {
|
|
|
38
40
|
* format (e.g., adminAuthorize, userAuthorize). This function will be
|
|
39
41
|
* called by the decorator to verify JWT tokens and return authenticated
|
|
40
42
|
* user information for the specified role.
|
|
43
|
+
*
|
|
44
|
+
* DO: Use camelCase naming convention.
|
|
41
45
|
*/
|
|
42
|
-
name: string;
|
|
46
|
+
name: string & CamelPattern;
|
|
43
47
|
|
|
44
48
|
/**
|
|
45
49
|
* Complete TypeScript code for the authentication Provider function. Must
|
|
@@ -59,8 +63,10 @@ export namespace IAutoBeRealizeAuthorizationApplication {
|
|
|
59
63
|
* decorator in Controller methods to automatically authenticate and
|
|
60
64
|
* authorize users for the specific role, injecting the authenticated user
|
|
61
65
|
* payload as a method parameter.
|
|
66
|
+
*
|
|
67
|
+
* DO: Use PascalCase naming convention.
|
|
62
68
|
*/
|
|
63
|
-
name: string;
|
|
69
|
+
name: string & PascalPattern;
|
|
64
70
|
|
|
65
71
|
/**
|
|
66
72
|
* Complete TypeScript code for the authentication Decorator implementation.
|
|
@@ -79,8 +85,10 @@ export namespace IAutoBeRealizeAuthorizationApplication {
|
|
|
79
85
|
* (e.g., AdminPayload, UserPayload). This type defines the structure of the
|
|
80
86
|
* authenticated user data that will be injected into Controller methods
|
|
81
87
|
* when using the decorator.
|
|
88
|
+
*
|
|
89
|
+
* DO: Use PascalCase naming convention.
|
|
82
90
|
*/
|
|
83
|
-
name: string;
|
|
91
|
+
name: string & PascalPattern;
|
|
84
92
|
|
|
85
93
|
/**
|
|
86
94
|
* Complete TypeScript code for the Payload type interface in {Role}Payload
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IAutoBeRealizeWriteApplication } from "./IAutoBeRealizeWriteApplication";
|
|
2
|
+
|
|
3
|
+
export interface IAutoBeRealizeCorrectApplication {
|
|
4
|
+
review: (props: IAutoBeRealizeCorrectApplication.IProps) => void;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export namespace IAutoBeRealizeCorrectApplication {
|
|
8
|
+
export interface IProps extends IAutoBeRealizeWriteApplication.IProps {
|
|
9
|
+
/**
|
|
10
|
+
* Compilation Error Analysis and Resolution Strategy
|
|
11
|
+
*
|
|
12
|
+
* This field contains a detailed analysis of TypeScript compilation errors
|
|
13
|
+
* that occurred during the previous compilation attempt, along with
|
|
14
|
+
* specific strategies to resolve each error.
|
|
15
|
+
*
|
|
16
|
+
* The analysis MUST include:
|
|
17
|
+
*
|
|
18
|
+
* 📊 ERROR BREAKDOWN:
|
|
19
|
+
*
|
|
20
|
+
* - List of all TypeScript error codes encountered (e.g., TS2339, TS2345)
|
|
21
|
+
* - Exact error messages and the lines/files where they occurred
|
|
22
|
+
* - Categorization of errors by type (type mismatch, missing property, etc.)
|
|
23
|
+
*
|
|
24
|
+
* 🔍 ROOT CAUSE ANALYSIS:
|
|
25
|
+
*
|
|
26
|
+
* - Why each error occurred (e.g., incorrect type assumptions, missing
|
|
27
|
+
* fields)
|
|
28
|
+
* - Relationship between errors (e.g., cascading errors from a single issue)
|
|
29
|
+
* - Common patterns identified across multiple errors
|
|
30
|
+
*
|
|
31
|
+
* 🛠 RESOLUTION STRATEGY:
|
|
32
|
+
*
|
|
33
|
+
* - Specific fixes for each error type
|
|
34
|
+
* - Priority order for addressing errors (fix critical errors first)
|
|
35
|
+
* - Alternative approaches if the direct fix is not possible
|
|
36
|
+
*
|
|
37
|
+
* 📝 SCHEMA VERIFICATION:
|
|
38
|
+
*
|
|
39
|
+
* - Re-verification of Prisma schema fields actually available
|
|
40
|
+
* - Identification of assumed fields that don't exist
|
|
41
|
+
* - Correct field types and relationships
|
|
42
|
+
*
|
|
43
|
+
* ⚠️ COMMON ERROR PATTERNS TO CHECK:
|
|
44
|
+
*
|
|
45
|
+
* - Using non-existent fields (e.g., deleted_at, created_by)
|
|
46
|
+
* - Type mismatches in Prisma operations
|
|
47
|
+
* - Incorrect date handling (using Date instead of string)
|
|
48
|
+
* - Missing required fields in create/update operations
|
|
49
|
+
* - Incorrect relation handling in nested operations
|
|
50
|
+
*
|
|
51
|
+
* 🎯 CORRECTION APPROACH:
|
|
52
|
+
*
|
|
53
|
+
* - Remove references to non-existent fields
|
|
54
|
+
* - Fix type conversions (especially dates with toISOStringSafe())
|
|
55
|
+
* - Simplify complex nested operations into separate queries
|
|
56
|
+
* - Add missing required fields
|
|
57
|
+
* - Use correct Prisma input types
|
|
58
|
+
*
|
|
59
|
+
* Example structure:
|
|
60
|
+
*
|
|
61
|
+
* Errors Found:
|
|
62
|
+
* 1. TS2339: Property 'deleted_at' does not exist on type 'User'
|
|
63
|
+
* - Cause: Field assumed but not in schema
|
|
64
|
+
* - Fix: Remove all deleted_at references
|
|
65
|
+
*
|
|
66
|
+
* 2. TS2345: Type 'Date' is not assignable to type 'string'
|
|
67
|
+
* - Cause: Direct Date assignment without conversion
|
|
68
|
+
* - Fix: Use toISOStringSafe() for all date values
|
|
69
|
+
*
|
|
70
|
+
* Resolution Plan:
|
|
71
|
+
* 1. First, remove all non-existent field references
|
|
72
|
+
* 2. Then, fix all date type conversions
|
|
73
|
+
* 3. Finally, adjust Prisma query structures
|
|
74
|
+
*
|
|
75
|
+
* This analysis ensures the review process addresses all compilation errors
|
|
76
|
+
* systematically and produces error-free code in the corrected
|
|
77
|
+
* implementation.
|
|
78
|
+
*/
|
|
79
|
+
errorAnalysis: string;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AutoBeOpenApi, AutoBeRealizeAuthorization } from "@autobe/interface";
|
|
2
|
+
|
|
3
|
+
export namespace IAutoBeRealizeScenarioApplication {
|
|
4
|
+
export interface IProps {
|
|
5
|
+
/** The OpenAPI operation to be realized. */
|
|
6
|
+
operation: AutoBeOpenApi.IOperation;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The name of the function to be generated.
|
|
10
|
+
*
|
|
11
|
+
* Derived from the Swagger path and method. The function name must be
|
|
12
|
+
* written in snake_case. It serves as the entry point in both code
|
|
13
|
+
* generation and test code.
|
|
14
|
+
*
|
|
15
|
+
* Once the function is generated, the function name and file name will be
|
|
16
|
+
* the same. The generated file will be located at
|
|
17
|
+
* `src/providers/${function_name}.ts`.
|
|
18
|
+
*/
|
|
19
|
+
functionName: string;
|
|
20
|
+
|
|
21
|
+
/** For example, `src/providers/${function_name}.ts`. */
|
|
22
|
+
location: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* List of scenario descriptions for test code generation.
|
|
26
|
+
*
|
|
27
|
+
* Each scenario describes the expected behavior of the function under
|
|
28
|
+
* certain conditions. Used as a basis for TDD-style automated test
|
|
29
|
+
* generation.
|
|
30
|
+
*/
|
|
31
|
+
testScenarios: string[];
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Optional decorator event for customizing code generation behavior.
|
|
35
|
+
*
|
|
36
|
+
* Provides additional metadata or instructions that can modify how the
|
|
37
|
+
* function implementation is generated. Can include custom annotations,
|
|
38
|
+
* middleware configurations, or special handling directives that affect the
|
|
39
|
+
* final code output.
|
|
40
|
+
*/
|
|
41
|
+
decoratorEvent?: AutoBeRealizeAuthorization;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,79 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { FAILED } from "./IAutoBeRealizeFailedSymbol";
|
|
4
|
-
|
|
5
|
-
export interface IAutoBeRealizeCoderApplication {
|
|
6
|
-
programming: (input: IAutoBeRealizeCoderApplication.IProps) => void;
|
|
1
|
+
export interface IAutoBeRealizeWriteApplication {
|
|
2
|
+
coding: (next: IAutoBeRealizeWriteApplication.IProps) => void;
|
|
7
3
|
}
|
|
8
4
|
|
|
9
|
-
export namespace
|
|
10
|
-
/**
|
|
11
|
-
* Properties for the component or function that consumes the output of the
|
|
12
|
-
* code generation pipeline.
|
|
13
|
-
*/
|
|
5
|
+
export namespace IAutoBeRealizeWriteApplication {
|
|
14
6
|
export interface IProps {
|
|
15
|
-
/**
|
|
16
|
-
* The detailed output of the code generation process, containing all phases
|
|
17
|
-
* from planning to final implementation of a TypeScript provider function.
|
|
18
|
-
*/
|
|
19
|
-
output: Omit<IAutoBeRealizeCoderApplication.RealizeCoderOutput, "filename">;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Represents the complete output of a code generation pipeline. Each field
|
|
24
|
-
* corresponds to a stage in the Chain of Thought (CoT) process for generating
|
|
25
|
-
* a production-quality TypeScript function.
|
|
26
|
-
*
|
|
27
|
-
* All fields contain TypeScript code strings and follow these rules:
|
|
28
|
-
*
|
|
29
|
-
* - All code must be valid TypeScript or structurally valid even if incomplete.
|
|
30
|
-
* - Each phase builds upon the previous one and must resolve specific concerns.
|
|
31
|
-
* - All phases must follow system conventions around structure, typing, and
|
|
32
|
-
* logic.
|
|
33
|
-
*/
|
|
34
|
-
export interface RealizeCoderOutput {
|
|
35
|
-
/** @ignore */
|
|
36
|
-
filename: string;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Error Analysis Phase (Optional)
|
|
40
|
-
*
|
|
41
|
-
* 🔍 Analyzes TypeScript compilation errors from previous attempts.
|
|
42
|
-
*
|
|
43
|
-
* This field should contain a detailed analysis of any TypeScript errors
|
|
44
|
-
* encountered, with root cause identification and resolution strategies:
|
|
45
|
-
*
|
|
46
|
-
* Common Error Patterns to Analyze:
|
|
47
|
-
*
|
|
48
|
-
* 1. **"Property does not exist" (TS2353)**:
|
|
49
|
-
*
|
|
50
|
-
* - Root Cause: Using fields that don't exist in Prisma schema
|
|
51
|
-
* - Example: Using `deleted_at` when the field doesn't exist in the model
|
|
52
|
-
* - Resolution: Remove the non-existent field or use hard delete instead
|
|
53
|
-
* 2. **"Type 'void' is not assignable" (TS2322)**:
|
|
54
|
-
*
|
|
55
|
-
* - Root Cause: Using `typia.assertGuard` instead of `typia.assert`
|
|
56
|
-
* - `assertGuard` returns void, `assert` returns the validated value
|
|
57
|
-
* - Resolution: Change `typia.assertGuard<T>()` to `typia.assert<T>()`
|
|
58
|
-
* 3. **"Type 'Date' is not assignable to type 'string &
|
|
59
|
-
* Format<'date-time'>'"**:
|
|
60
|
-
*
|
|
61
|
-
* - Root Cause: Assigning native Date objects to string fields
|
|
62
|
-
* - Resolution: Use `toISOStringSafe(dateValue)` for all date conversions
|
|
63
|
-
* 4. **Complex Prisma Type Errors**:
|
|
64
|
-
*
|
|
65
|
-
* - Root Cause: Nested operations with incompatible types
|
|
66
|
-
* - Resolution: Use separate queries and application-level joins
|
|
67
|
-
*
|
|
68
|
-
* Analysis Format:
|
|
69
|
-
*
|
|
70
|
-
* - List each error with its TypeScript error code
|
|
71
|
-
* - Identify the root cause (schema mismatch, wrong function usage, etc.)
|
|
72
|
-
* - Provide specific resolution steps
|
|
73
|
-
* - Note any schema limitations discovered
|
|
74
|
-
*/
|
|
75
|
-
errorAnalysis?: string;
|
|
76
|
-
|
|
77
7
|
/**
|
|
78
8
|
* Step 1.
|
|
79
9
|
*
|
|
@@ -83,16 +13,18 @@ export namespace IAutoBeRealizeCoderApplication {
|
|
|
83
13
|
* function according to the Realize Coder Agent specification. Before
|
|
84
14
|
* writing the actual code, think through the logic and structure.
|
|
85
15
|
*
|
|
86
|
-
* The plan
|
|
16
|
+
* The plan follows a SCHEMA-FIRST APPROACH:
|
|
87
17
|
*
|
|
88
|
-
* 📋 STEP 1 - PRISMA SCHEMA VERIFICATION
|
|
18
|
+
* 📋 STEP 1 - PRISMA SCHEMA VERIFICATION:
|
|
89
19
|
*
|
|
90
|
-
*
|
|
91
|
-
* -
|
|
92
|
-
* -
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
20
|
+
* DO:
|
|
21
|
+
* - Examine the actual Prisma schema model definition
|
|
22
|
+
* - List EVERY field that exists in the model with exact types
|
|
23
|
+
* - Explicitly note fields that DO NOT exist
|
|
24
|
+
*
|
|
25
|
+
* DO NOT:
|
|
26
|
+
* - Assume common fields exist without verification
|
|
27
|
+
* - Use fields like deleted_at, created_by, updated_by, is_deleted, is_active without checking
|
|
96
28
|
*
|
|
97
29
|
* 📋 STEP 2 - FIELD INVENTORY:
|
|
98
30
|
*
|
|
@@ -228,8 +160,9 @@ export namespace IAutoBeRealizeCoderApplication {
|
|
|
228
160
|
* Draft WITHOUT using native Date type.
|
|
229
161
|
*
|
|
230
162
|
* This is the initial drafting phase where you outline the basic skeleton
|
|
231
|
-
* of the function.
|
|
232
|
-
*
|
|
163
|
+
* of the function.
|
|
164
|
+
*
|
|
165
|
+
* DO NOT: Use the native Date type.
|
|
233
166
|
*
|
|
234
167
|
* - The function signature must correctly include `user`, `parameters`, and
|
|
235
168
|
* `body` arguments.
|
|
@@ -238,13 +171,13 @@ export namespace IAutoBeRealizeCoderApplication {
|
|
|
238
171
|
* - Mark any incomplete or missing parts clearly with placeholders (e.g.,
|
|
239
172
|
* comments or temporary values).
|
|
240
173
|
*
|
|
241
|
-
*
|
|
174
|
+
* Import rules:
|
|
242
175
|
*
|
|
243
|
-
*
|
|
244
|
-
* -
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
176
|
+
* DO NOT:
|
|
177
|
+
* - Add any new import statements manually
|
|
178
|
+
* - Write import statements directly (this causes compile errors)
|
|
179
|
+
*
|
|
180
|
+
* Note: All necessary imports are provided globally or by the system automatically.
|
|
248
181
|
*
|
|
249
182
|
* ✅ Requirements:
|
|
250
183
|
*
|
|
@@ -349,10 +282,4 @@ export namespace IAutoBeRealizeCoderApplication {
|
|
|
349
282
|
*/
|
|
350
283
|
implementationCode: string;
|
|
351
284
|
}
|
|
352
|
-
|
|
353
|
-
export interface IPipeOutput {
|
|
354
|
-
result: RealizeCoderOutput | FAILED;
|
|
355
|
-
|
|
356
|
-
operation: AutoBeOpenApi.IOperation;
|
|
357
|
-
}
|
|
358
285
|
}
|
|
@@ -46,6 +46,12 @@ export function replaceImportStatements<Model extends ILlmSchema.Model>(
|
|
|
46
46
|
.replace(
|
|
47
47
|
/import\s*{\s*toISOStringSafe\s*}\s*from\s*["']\.\.\/util\/toISOStringSafe["']\s*;?\s*/gm,
|
|
48
48
|
"",
|
|
49
|
+
)
|
|
50
|
+
// Remove JWT import if it exists (to prevent duplication)
|
|
51
|
+
.replace(/import\s+jwt\s+from\s*["']jsonwebtoken["']\s*;?\s*/gm, "")
|
|
52
|
+
.replace(
|
|
53
|
+
/import\s*\*\s*as\s+jwt\s+from\s*["']jsonwebtoken["']\s*;?\s*/gm,
|
|
54
|
+
"",
|
|
49
55
|
);
|
|
50
56
|
|
|
51
57
|
// Remove any existing API structure imports
|
|
@@ -59,7 +65,7 @@ export function replaceImportStatements<Model extends ILlmSchema.Model>(
|
|
|
59
65
|
/import\s*(?:type\s*)?{\s*[^}]+\s*}\s*from\s*["']@ORGANIZATION\/PROJECT-api\/lib\/structures\/[^"']+["']\s*;?\s*/gm,
|
|
60
66
|
"",
|
|
61
67
|
);
|
|
62
|
-
|
|
68
|
+
|
|
63
69
|
// Remove specific type imports that match our typeReferences
|
|
64
70
|
for (const ref of typeReferences) {
|
|
65
71
|
// Remove any import of this specific type from any path
|
|
@@ -81,6 +87,7 @@ export function replaceImportStatements<Model extends ILlmSchema.Model>(
|
|
|
81
87
|
|
|
82
88
|
// Build the standard imports
|
|
83
89
|
const imports = [
|
|
90
|
+
'import jwt from "jsonwebtoken";',
|
|
84
91
|
'import { MyGlobal } from "../MyGlobal";',
|
|
85
92
|
'import typia, { tags } from "typia";',
|
|
86
93
|
'import { Prisma } from "@prisma/client";',
|
|
@@ -119,6 +126,8 @@ export function replaceImportStatements<Model extends ILlmSchema.Model>(
|
|
|
119
126
|
// Apply final beautification
|
|
120
127
|
code = await compiler.typescript.beautify(code);
|
|
121
128
|
|
|
129
|
+
code = code.replaceAll("typia.tags.assert", "typia.assert");
|
|
130
|
+
|
|
122
131
|
return code;
|
|
123
132
|
};
|
|
124
133
|
}
|
|
@@ -89,7 +89,7 @@ async function correct<Model extends ILlmSchema.Model>(
|
|
|
89
89
|
},
|
|
90
90
|
histories: transformTestCorrectHistories(written, event.result),
|
|
91
91
|
controllers: [
|
|
92
|
-
|
|
92
|
+
createController({
|
|
93
93
|
model: ctx.model,
|
|
94
94
|
build: (next) => {
|
|
95
95
|
pointer.value = next;
|
|
@@ -153,7 +153,7 @@ function getUnionTypeName(unit: IJsonSchemaUnit): string {
|
|
|
153
153
|
.join(" | ");
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
function
|
|
156
|
+
function createController<Model extends ILlmSchema.Model>(props: {
|
|
157
157
|
model: Model;
|
|
158
158
|
build: (next: ICorrectTestFunctionProps) => void;
|
|
159
159
|
}): IAgenticaController.IClass<Model> {
|
|
@@ -161,7 +161,7 @@ function createApplication<Model extends ILlmSchema.Model>(props: {
|
|
|
161
161
|
|
|
162
162
|
const application: ILlmApplication<Model> = collection[
|
|
163
163
|
props.model
|
|
164
|
-
] as unknown as ILlmApplication<Model>;
|
|
164
|
+
] satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
165
165
|
return {
|
|
166
166
|
protocol: "class",
|
|
167
167
|
name: "Modify Test Code",
|
|
@@ -176,16 +176,12 @@ function createApplication<Model extends ILlmSchema.Model>(props: {
|
|
|
176
176
|
|
|
177
177
|
const claude = typia.llm.application<
|
|
178
178
|
IApplication,
|
|
179
|
-
"claude"
|
|
180
|
-
{
|
|
181
|
-
reference: true;
|
|
182
|
-
}
|
|
179
|
+
"claude"
|
|
183
180
|
>();
|
|
184
181
|
const collection = {
|
|
185
182
|
chatgpt: typia.llm.application<
|
|
186
183
|
IApplication,
|
|
187
|
-
"chatgpt"
|
|
188
|
-
{ reference: true }
|
|
184
|
+
"chatgpt"
|
|
189
185
|
>(),
|
|
190
186
|
claude,
|
|
191
187
|
llama: claude,
|
|
@@ -145,7 +145,7 @@ async function process<Model extends ILlmSchema.Model>(
|
|
|
145
145
|
failure,
|
|
146
146
|
}),
|
|
147
147
|
controllers: [
|
|
148
|
-
|
|
148
|
+
createController({
|
|
149
149
|
model: ctx.model,
|
|
150
150
|
document: ctx.state().interface!.document,
|
|
151
151
|
build: (next) => {
|
|
@@ -203,7 +203,7 @@ function getUnionTypeName(unit: IJsonSchemaUnit): string {
|
|
|
203
203
|
.join(" | ");
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
function
|
|
206
|
+
function createController<Model extends ILlmSchema.Model>(props: {
|
|
207
207
|
model: Model;
|
|
208
208
|
document: AutoBeOpenApi.IDocument;
|
|
209
209
|
build: (next: ICreateTestCodeProps) => void;
|
|
@@ -225,12 +225,8 @@ function createApplication<Model extends ILlmSchema.Model>(props: {
|
|
|
225
225
|
AutoBeEndpointComparator.hashCode,
|
|
226
226
|
AutoBeEndpointComparator.equals,
|
|
227
227
|
);
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
] as unknown as ILlmApplication<Model>;
|
|
231
|
-
application.functions[0].validate = (
|
|
232
|
-
input: unknown,
|
|
233
|
-
): IValidation<unknown> => {
|
|
228
|
+
|
|
229
|
+
const validate = (input: unknown): IValidation<ICreateTestCodeProps> => {
|
|
234
230
|
const result: IValidation<ICreateTestCodeProps> =
|
|
235
231
|
typia.validate<ICreateTestCodeProps>(input);
|
|
236
232
|
if (result.success === false) return result;
|
|
@@ -250,6 +246,11 @@ function createApplication<Model extends ILlmSchema.Model>(props: {
|
|
|
250
246
|
errors: context.errors,
|
|
251
247
|
};
|
|
252
248
|
};
|
|
249
|
+
const application: ILlmApplication<Model> = collection[
|
|
250
|
+
props.model === "chatgpt" ? "chatgpt" : "claude"
|
|
251
|
+
](
|
|
252
|
+
validate,
|
|
253
|
+
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
253
254
|
|
|
254
255
|
return {
|
|
255
256
|
protocol: "class",
|
|
@@ -263,23 +264,23 @@ function createApplication<Model extends ILlmSchema.Model>(props: {
|
|
|
263
264
|
};
|
|
264
265
|
}
|
|
265
266
|
|
|
266
|
-
const claude = typia.llm.application<
|
|
267
|
-
IApplication,
|
|
268
|
-
"claude",
|
|
269
|
-
{ reference: true }
|
|
270
|
-
>();
|
|
271
267
|
const collection = {
|
|
272
|
-
chatgpt:
|
|
273
|
-
IApplication,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
268
|
+
chatgpt: (validate: Validator) =>
|
|
269
|
+
typia.llm.application<IApplication, "chatgpt">({
|
|
270
|
+
validate: {
|
|
271
|
+
createTestCode: validate,
|
|
272
|
+
},
|
|
273
|
+
}),
|
|
274
|
+
claude: (validate: Validator) =>
|
|
275
|
+
typia.llm.application<IApplication, "claude">({
|
|
276
|
+
validate: {
|
|
277
|
+
createTestCode: validate,
|
|
278
|
+
},
|
|
279
|
+
}),
|
|
281
280
|
};
|
|
282
281
|
|
|
282
|
+
type Validator = (input: unknown) => IValidation<ICreateTestCodeProps>;
|
|
283
|
+
|
|
283
284
|
interface IApplication {
|
|
284
285
|
createTestCode(props: ICreateTestCodeProps): void;
|
|
285
286
|
}
|