@autobe/agent 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.d.ts +2 -1
- package/lib/{agent/src/AutoBeAgent.js → AutoBeAgent.js} +17 -3
- package/lib/AutoBeAgent.js.map +1 -0
- package/lib/AutoBeAgentBase.js.map +1 -0
- package/lib/{agent/src/AutoBeMockAgent.js → AutoBeMockAgent.js} +16 -0
- package/lib/AutoBeMockAgent.js.map +1 -0
- package/lib/constants/AutoBeConfigConstant.d.ts +3 -1
- package/lib/constants/AutoBeConfigConstant.js.map +1 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +17 -15
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -0
- package/lib/context/AutoBeContext.js.map +1 -0
- package/lib/context/AutoBeState.js.map +1 -0
- package/lib/context/AutoBeTokenUsage.d.ts +1 -0
- package/lib/{agent/src/context → context}/AutoBeTokenUsage.js +8 -0
- package/lib/context/AutoBeTokenUsage.js.map +1 -0
- package/lib/context/AutoBeTokenUsageComponent.d.ts +1 -0
- package/lib/{agent/src/context → context}/AutoBeTokenUsageComponent.js +8 -0
- package/lib/context/AutoBeTokenUsageComponent.js.map +1 -0
- package/lib/context/IAutoBeApplication.js.map +1 -0
- package/lib/context/IAutoBeApplicationProps.js.map +1 -0
- package/lib/context/IAutoBeApplicationResult.js.map +1 -0
- package/lib/context/assertSchemaModel.js.map +1 -0
- package/lib/{agent/src/factory → factory}/consentFunctionCall.js +1 -1
- package/lib/factory/consentFunctionCall.js.map +1 -0
- package/lib/factory/createAgenticaHistory.js.map +1 -0
- package/lib/factory/createAutoBeApplication.js.map +1 -0
- package/lib/{agent/src/factory → factory}/createAutoBeContext.js +66 -20
- package/lib/factory/createAutoBeContext.js.map +1 -0
- package/lib/factory/createAutoBeState.js.map +1 -0
- package/lib/factory/getAutoBeGenerated.js.map +1 -0
- package/lib/factory/getAutoBeRealizeGenerated.js.map +1 -0
- package/lib/factory/getCriticalCompiler.d.ts +3 -0
- package/lib/factory/getCriticalCompiler.js +55 -0
- package/lib/factory/getCriticalCompiler.js.map +1 -0
- package/lib/factory/index.js.map +1 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +4869 -3042
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -0
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeWrite.js +2 -4
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +1 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +1 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +1 -0
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.d.ts +8 -0
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +31 -0
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +18 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +411 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -0
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +122 -0
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js +3 -0
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.js.map +1 -0
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -0
- package/lib/orchestrate/index.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAuthorizationsHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +63 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointsReviewHistories.js +4 -4
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +52 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +36 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +29 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +60 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceComplement.js +3 -3
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceOperations.js +193 -274
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1747 -0
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemas.js +3 -3
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +1 -1
- package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceSchemasReview.js +6 -8
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +247 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +15 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +61 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -0
- package/lib/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +1 -0
- package/lib/orchestrate/interface/utils/OperationValidator.d.ts +10 -0
- package/lib/orchestrate/interface/utils/OperationValidator.js +114 -0
- package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -0
- package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaCorrect.js +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +1 -0
- package/lib/orchestrate/realize/ProviderCodeComparator.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorization.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeAuthorizationCorrectHistories.js +2 -2
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +57 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +141 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -0
- package/lib/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -0
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.d.ts +4 -0
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js +505 -0
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealize.js +18 -8
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorizationCorrect.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +2 -15
- package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeCorrect.js +48 -43
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +1 -0
- package/lib/orchestrate/realize/utils/AuthorizationFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -0
- package/lib/orchestrate/realize/utils/InternalFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/ProviderFileSystem.js.map +1 -0
- package/lib/orchestrate/realize/utils/generateRealizeScenario.d.ts +25 -0
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js +85 -0
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +98 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -0
- package/lib/orchestrate/test/compile/completeTestCode.d.ts +3 -1
- package/lib/orchestrate/test/compile/completeTestCode.js +31 -0
- package/lib/orchestrate/test/compile/completeTestCode.js.map +1 -0
- package/lib/orchestrate/test/compile/filterTestFileName.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestExternalDeclarations.js +5 -1
- package/lib/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestImportStatements.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -0
- package/lib/orchestrate/test/compile/getTestTemplateCode.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +51 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.d.ts +4 -0
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +33 -0
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +159 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestValidateEvent.d.ts +4 -0
- package/lib/orchestrate/test/histories/transformTestValidateEvent.js +11 -0
- package/lib/orchestrate/test/histories/transformTestValidateEvent.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js +220 -0
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTest.js +13 -7
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -0
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js +513 -0
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -0
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.d.ts +7 -0
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +425 -0
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestScenario.js +32 -36
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/orchestrateTestWrite.js +25 -44
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.d.ts +140 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestFunction.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +2 -2
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +38 -15
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +1 -0
- package/lib/{agent/src/orchestrate → orchestrate}/test/utils/getReferenceIds.js +1 -1
- package/lib/orchestrate/test/utils/getReferenceIds.js.map +1 -0
- package/lib/structures/IAutoBeConfig.d.ts +1 -0
- package/lib/structures/IAutoBeConfig.js.map +1 -0
- package/lib/structures/IAutoBeProps.js.map +1 -0
- package/lib/structures/IAutoBeVendor.js.map +1 -0
- package/lib/utils/AutoBeTimeoutError.d.ts +4 -0
- package/lib/utils/AutoBeTimeoutError.js +18 -0
- package/lib/utils/AutoBeTimeoutError.js.map +1 -0
- package/lib/utils/TimeoutConversation.d.ts +24 -0
- package/lib/utils/TimeoutConversation.js +65 -0
- package/lib/utils/TimeoutConversation.js.map +1 -0
- package/lib/utils/arrayToRecord.js.map +1 -0
- package/lib/utils/backoffRetry.js.map +1 -0
- package/lib/utils/divideArray.js.map +1 -0
- package/lib/utils/emplaceMap.js.map +1 -0
- package/lib/utils/executeCachedBatch.js.map +1 -0
- package/lib/utils/predicateStateMessage.js.map +1 -0
- package/package.json +7 -7
- package/src/AutoBeAgent.ts +16 -1
- package/src/AutoBeMockAgent.ts +13 -3
- package/src/constants/AutoBeConfigConstant.ts +3 -1
- package/src/constants/AutoBeSystemPromptConstant.ts +17 -15
- package/src/context/AutoBeTokenUsage.ts +9 -0
- package/src/context/AutoBeTokenUsageComponent.ts +9 -0
- package/src/factory/consentFunctionCall.ts +1 -1
- package/src/factory/createAutoBeContext.ts +68 -20
- package/src/factory/getCriticalCompiler.ts +47 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +2 -4
- package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +43 -0
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +170 -0
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +127 -0
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +4 -4
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +3 -3
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +10 -94
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +49 -13
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +4 -3
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +6 -6
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +254 -4
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +71 -0
- package/src/orchestrate/interface/utils/OperationValidator.ts +127 -0
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +2 -2
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +6 -0
- package/src/orchestrate/realize/orchestRateRealizeCorrectCasting.ts +317 -0
- package/src/orchestrate/realize/orchestrateRealize.ts +29 -14
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +79 -67
- package/src/orchestrate/realize/utils/generateRealizeScenario.ts +104 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +60 -32
- package/src/orchestrate/test/compile/completeTestCode.ts +10 -12
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +11 -0
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +4 -3
- package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +39 -0
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +75 -17
- package/src/orchestrate/test/histories/transformTestValidateEvent.ts +14 -0
- package/src/orchestrate/test/orchestrateTest.ts +11 -7
- package/src/orchestrate/test/orchestrateTestCorrect.ts +121 -50
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +145 -0
- package/src/orchestrate/test/orchestrateTestScenario.ts +29 -13
- package/src/orchestrate/test/orchestrateTestWrite.ts +13 -19
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +233 -0
- package/src/orchestrate/test/structures/IAutoBeTestCorrectInvalidRequestApplication.ts +146 -0
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +2 -2
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +110 -15
- package/src/orchestrate/test/utils/getReferenceIds.ts +1 -1
- package/src/structures/IAutoBeConfig.ts +2 -0
- package/src/utils/AutoBeTimeoutError.ts +13 -0
- package/src/utils/TimeoutConversation.ts +82 -0
- package/lib/agent/src/AutoBeAgent.d.ts +0 -52
- package/lib/agent/src/AutoBeAgent.js.map +0 -1
- package/lib/agent/src/AutoBeAgentBase.d.ts +0 -18
- package/lib/agent/src/AutoBeAgentBase.js.map +0 -1
- package/lib/agent/src/AutoBeMockAgent.d.ts +0 -7
- package/lib/agent/src/AutoBeMockAgent.js.map +0 -1
- package/lib/agent/src/constants/AutoBeConfigConstant.d.ts +0 -3
- package/lib/agent/src/constants/AutoBeConfigConstant.js.map +0 -1
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +0 -29
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.js.map +0 -1
- package/lib/agent/src/context/AutoBeContext.d.ts +0 -43
- package/lib/agent/src/context/AutoBeContext.js.map +0 -1
- package/lib/agent/src/context/AutoBeState.d.ts +0 -8
- package/lib/agent/src/context/AutoBeState.js.map +0 -1
- package/lib/agent/src/context/AutoBeTokenUsage.d.ts +0 -173
- package/lib/agent/src/context/AutoBeTokenUsage.js.map +0 -1
- package/lib/agent/src/context/AutoBeTokenUsageComponent.d.ts +0 -117
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +0 -1
- package/lib/agent/src/context/IAutoBeApplication.d.ts +0 -107
- package/lib/agent/src/context/IAutoBeApplication.js.map +0 -1
- package/lib/agent/src/context/IAutoBeApplicationProps.d.ts +0 -4
- package/lib/agent/src/context/IAutoBeApplicationProps.js.map +0 -1
- package/lib/agent/src/context/IAutoBeApplicationResult.d.ts +0 -4
- package/lib/agent/src/context/IAutoBeApplicationResult.js.map +0 -1
- package/lib/agent/src/context/assertSchemaModel.d.ts +0 -2
- package/lib/agent/src/context/assertSchemaModel.js.map +0 -1
- package/lib/agent/src/factory/consentFunctionCall.d.ts +0 -10
- package/lib/agent/src/factory/consentFunctionCall.js.map +0 -1
- package/lib/agent/src/factory/createAgenticaHistory.d.ts +0 -7
- package/lib/agent/src/factory/createAgenticaHistory.js.map +0 -1
- package/lib/agent/src/factory/createAutoBeApplication.d.ts +0 -7
- package/lib/agent/src/factory/createAutoBeApplication.js.map +0 -1
- package/lib/agent/src/factory/createAutoBeContext.d.ts +0 -19
- package/lib/agent/src/factory/createAutoBeContext.js.map +0 -1
- package/lib/agent/src/factory/createAutoBeState.d.ts +0 -3
- package/lib/agent/src/factory/createAutoBeState.js.map +0 -1
- package/lib/agent/src/factory/getAutoBeGenerated.d.ts +0 -4
- package/lib/agent/src/factory/getAutoBeGenerated.js.map +0 -1
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.d.ts +0 -7
- package/lib/agent/src/factory/getAutoBeRealizeGenerated.js.map +0 -1
- package/lib/agent/src/factory/index.d.ts +0 -1
- package/lib/agent/src/factory/index.js.map +0 -1
- package/lib/agent/src/index.d.ts +0 -6
- package/lib/agent/src/index.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +0 -6
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +0 -6
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.d.ts +0 -5
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyze.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.d.ts +0 -11
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.d.ts +0 -4
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.d.ts +0 -10
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +0 -111
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +0 -78
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +0 -74
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.d.ts +0 -2
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/lib/agent/src/orchestrate/index.d.ts +0 -5
- package/lib/agent/src/orchestrate/index.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -63
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -52
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +0 -36
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -29
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -10
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +0 -1416
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.d.ts +0 -4
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +0 -47
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +0 -93
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +0 -24
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +0 -60
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +0 -108
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -171
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +0 -117
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +0 -107
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.d.ts +0 -9
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +0 -5
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.d.ts +0 -6
- package/lib/agent/src/orchestrate/interface/utils/OpenApiEndpointComparator.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +0 -2
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +0 -1
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js +0 -35
- package/lib/agent/src/orchestrate/interface/utils/validateAuthorizationSchema.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +0 -8
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.d.ts +0 -5
- package/lib/agent/src/orchestrate/prisma/orchestratePrisma.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.d.ts +0 -4
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaComponent.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +0 -4
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.d.ts +0 -5
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaReview.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.d.ts +0 -5
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.d.ts +0 -121
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaComponentApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +0 -142
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +0 -105
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +0 -99
- package/lib/agent/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/ProviderCodeComparator.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -14
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +0 -51
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +0 -3
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +0 -11
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +0 -141
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +0 -7
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.d.ts +0 -10
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +0 -4
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +0 -19
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js +0 -44
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +0 -11
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +0 -109
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +0 -47
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +0 -39
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +0 -36
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +0 -295
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/utils/AuthorizationFileSystem.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.d.ts +0 -5
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +0 -4
- package/lib/agent/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.d.ts +0 -8
- package/lib/agent/src/orchestrate/realize/utils/InternalFileSystem.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.d.ts +0 -3
- package/lib/agent/src/orchestrate/realize/utils/ProviderFileSystem.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +0 -31
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.d.ts +0 -4
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +0 -2
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +0 -30
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js.map +0 -1
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +0 -8
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +0 -77
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +0 -2
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js +0 -25
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/filterTestFileName.d.ts +0 -1
- package/lib/agent/src/orchestrate/test/compile/filterTestFileName.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.d.ts +0 -3
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.d.ts +0 -2
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +0 -1
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.d.ts +0 -2
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js.map +0 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +0 -6
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +0 -50
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.d.ts +0 -4
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +0 -105
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.d.ts +0 -10
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +0 -220
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +0 -1
- package/lib/agent/src/orchestrate/test/orchestrateTest.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +0 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +0 -411
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +0 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.d.ts +0 -4
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +0 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +0 -125
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.d.ts +0 -8
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunction.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +0 -6
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +0 -161
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +0 -8
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.d.ts +0 -6
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +0 -126
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.js.map +0 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.d.ts +0 -7
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteResult.js.map +0 -1
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.d.ts +0 -5
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js.map +0 -1
- package/lib/agent/src/structures/IAutoBeConfig.d.ts +0 -75
- package/lib/agent/src/structures/IAutoBeConfig.js.map +0 -1
- package/lib/agent/src/structures/IAutoBeProps.d.ts +0 -109
- package/lib/agent/src/structures/IAutoBeProps.js.map +0 -1
- package/lib/agent/src/structures/IAutoBeVendor.d.ts +0 -87
- package/lib/agent/src/structures/IAutoBeVendor.js.map +0 -1
- package/lib/agent/src/utils/arrayToRecord.d.ts +0 -17
- package/lib/agent/src/utils/arrayToRecord.js.map +0 -1
- package/lib/agent/src/utils/backoffRetry.d.ts +0 -22
- package/lib/agent/src/utils/backoffRetry.js.map +0 -1
- package/lib/agent/src/utils/divideArray.d.ts +0 -4
- package/lib/agent/src/utils/divideArray.js.map +0 -1
- package/lib/agent/src/utils/emplaceMap.d.ts +0 -1
- package/lib/agent/src/utils/emplaceMap.js.map +0 -1
- package/lib/agent/src/utils/executeCachedBatch.d.ts +0 -1
- package/lib/agent/src/utils/executeCachedBatch.js.map +0 -1
- package/lib/agent/src/utils/predicateStateMessage.d.ts +0 -4
- package/lib/agent/src/utils/predicateStateMessage.js.map +0 -1
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.d.ts +0 -153
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js +0 -3
- package/lib/interface/src/histories/contents/AutoBeAnalyzeFile.js.map +0 -1
- package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +0 -25
- package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +0 -41
- package/src/orchestrate/realize/orchestrateRealizeScenario.ts +0 -57
- /package/lib/{agent/src/AutoBeAgentBase.js → AutoBeAgentBase.js} +0 -0
- /package/lib/{agent/src/constants → constants}/AutoBeConfigConstant.js +0 -0
- /package/lib/{agent/src/constants → constants}/AutoBeSystemPromptConstant.js +0 -0
- /package/lib/{agent/src/context → context}/AutoBeContext.js +0 -0
- /package/lib/{agent/src/context → context}/AutoBeState.js +0 -0
- /package/lib/{agent/src/context → context}/IAutoBeApplication.js +0 -0
- /package/lib/{agent/src/context → context}/IAutoBeApplicationProps.js +0 -0
- /package/lib/{agent/src/context → context}/IAutoBeApplicationResult.js +0 -0
- /package/lib/{agent/src/context → context}/assertSchemaModel.js +0 -0
- /package/lib/{agent/src/factory → factory}/createAgenticaHistory.js +0 -0
- /package/lib/{agent/src/factory → factory}/createAutoBeApplication.js +0 -0
- /package/lib/{agent/src/factory → factory}/createAutoBeState.js +0 -0
- /package/lib/{agent/src/factory → factory}/getAutoBeGenerated.js +0 -0
- /package/lib/{agent/src/factory → factory}/getAutoBeRealizeGenerated.js +0 -0
- /package/lib/{agent/src/factory → factory}/index.js +0 -0
- /package/lib/{agent/src/index.js → index.js} +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeReviewHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeScenarioHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/histories/transformAnalyzeWriteHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyze.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeReview.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/orchestrateAnalyzeScenario.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeScenarioApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/analyze/structures/IAutoBeAnalyzeWriteApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/facade/transformFacadeStateMessage.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/index.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceAssetHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceEndpointHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfaceGroupHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/histories/transformInterfacePrerequisiteHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterface.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceAuthorizations.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpoints.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceEndpointsReview.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/orchestrateInterfaceGroups.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceAuthorizationsApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceComplementApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceGroupApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutoBeInterfaceSchemaApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/structures/IAutobeInterfaceSchemasReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaFactory.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/JsonSchemaNamingConvention.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/OpenApiEndpointComparator.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/interface/utils/fulfillJsonSchemaErrorMessages.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaComponentsHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaCorrectHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaReviewHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/histories/transformPrismaSchemaHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrisma.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaComponent.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaReview.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/orchestratePrismaSchemas.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaComponentApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaCorrectApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaReviewApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/prisma/structures/IAutoBePrismaSchemaApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/ProviderCodeComparator.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/histories/transformRealizeWriteAuthorizationsHistories.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/internal/compileRealizeFiles.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeAuthorization.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/orchestrateRealizeWrite.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeCorrectApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeFunctionFailure.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeScenarioResult.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/structures/IAutoBeRealizeWriteApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AuthorizationFileSystem.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationFileSystem.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/InternalFileSystem.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/ProviderFileSystem.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteCodeTemplate.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteDto.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteImportStatements.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/realize/utils/getRealizeWriteInputType.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/filterTestFileName.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestImportStatements.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestScenarioArtifacts.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/compile/getTestTemplateCode.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestCorrectApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunction.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestFunctionFailure.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioArtifacts.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestScenarioAuthorizationRole.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteApplication.js +0 -0
- /package/lib/{agent/src/orchestrate → orchestrate}/test/structures/IAutoBeTestWriteResult.js +0 -0
- /package/lib/{agent/src/structures → structures}/IAutoBeConfig.js +0 -0
- /package/lib/{agent/src/structures → structures}/IAutoBeProps.js +0 -0
- /package/lib/{agent/src/structures → structures}/IAutoBeVendor.js +0 -0
- /package/lib/{agent/src/utils → utils}/arrayToRecord.js +0 -0
- /package/lib/{agent/src/utils → utils}/backoffRetry.js +0 -0
- /package/lib/{agent/src/utils → utils}/divideArray.js +0 -0
- /package/lib/{agent/src/utils → utils}/emplaceMap.js +0 -0
- /package/lib/{agent/src/utils → utils}/executeCachedBatch.js +0 -0
- /package/lib/{agent/src/utils → utils}/predicateStateMessage.js +0 -0
|
@@ -17,8 +17,8 @@ import { transformInterfaceComplementHistories } from "./histories/transformInte
|
|
|
17
17
|
import { IAutoBeInterfaceComplementApplication } from "./structures/IAutoBeInterfaceComplementApplication";
|
|
18
18
|
import { JsonSchemaFactory } from "./utils/JsonSchemaFactory";
|
|
19
19
|
import { JsonSchemaNamingConvention } from "./utils/JsonSchemaNamingConvention";
|
|
20
|
+
import { JsonSchemaValidator } from "./utils/JsonSchemaValidator";
|
|
20
21
|
import { fulfillJsonSchemaErrorMessages } from "./utils/fulfillJsonSchemaErrorMessages";
|
|
21
|
-
import { validateAuthorizationSchema } from "./utils/validateAuthorizationSchema";
|
|
22
22
|
|
|
23
23
|
export function orchestrateInterfaceComplement<Model extends ILlmSchema.Model>(
|
|
24
24
|
ctx: AutoBeContext<Model>,
|
|
@@ -33,7 +33,7 @@ async function step<Model extends ILlmSchema.Model>(
|
|
|
33
33
|
life: number,
|
|
34
34
|
): Promise<Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>> {
|
|
35
35
|
const missed: string[] = getMissed(document);
|
|
36
|
-
if (missed.length === 0 || life
|
|
36
|
+
if (missed.length === 0 || life < 0) {
|
|
37
37
|
return document.components.schemas;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -143,7 +143,7 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
const errors: IValidation.IError[] = [];
|
|
146
|
-
|
|
146
|
+
JsonSchemaValidator.validateSchemas({
|
|
147
147
|
errors,
|
|
148
148
|
schemas: result.data.schemas,
|
|
149
149
|
path: "$input.schemas",
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
AutoBeOpenApi,
|
|
5
5
|
AutoBeProgressEventBase,
|
|
6
6
|
} from "@autobe/interface";
|
|
7
|
-
import {
|
|
7
|
+
import { StringUtil } from "@autobe/utils";
|
|
8
8
|
import { ILlmApplication, ILlmSchema, IValidation } from "@samchon/openapi";
|
|
9
9
|
import { HashMap, HashSet, IPointer } from "tstl";
|
|
10
10
|
import typia from "typia";
|
|
11
|
-
import { Escaper } from "typia/lib/utils/Escaper";
|
|
12
11
|
import { NamingConvention } from "typia/lib/utils/NamingConvention";
|
|
13
12
|
import { v7 } from "uuid";
|
|
14
13
|
|
|
14
|
+
import { AutoBeConfigConstant } from "../../constants/AutoBeConfigConstant";
|
|
15
15
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
16
16
|
import { assertSchemaModel } from "../../context/assertSchemaModel";
|
|
17
17
|
import { divideArray } from "../../utils/divideArray";
|
|
18
|
-
import { emplaceMap } from "../../utils/emplaceMap";
|
|
19
18
|
import { executeCachedBatch } from "../../utils/executeCachedBatch";
|
|
20
19
|
import { transformInterfaceOperationHistories } from "./histories/transformInterfaceOperationHistories";
|
|
21
20
|
import { orchestrateInterfaceOperationsReview } from "./orchestrateInterfaceOperationsReview";
|
|
22
21
|
import { IAutoBeInterfaceOperationApplication } from "./structures/IAutoBeInterfaceOperationApplication";
|
|
23
22
|
import { OpenApiEndpointComparator } from "./utils/OpenApiEndpointComparator";
|
|
23
|
+
import { OperationValidator } from "./utils/OperationValidator";
|
|
24
24
|
|
|
25
25
|
export async function orchestrateInterfaceOperations<
|
|
26
26
|
Model extends ILlmSchema.Model,
|
|
27
27
|
>(
|
|
28
28
|
ctx: AutoBeContext<Model>,
|
|
29
29
|
endpoints: AutoBeOpenApi.IEndpoint[],
|
|
30
|
-
capacity: number =
|
|
30
|
+
capacity: number = AutoBeConfigConstant.INTERFACE_CAPACITY,
|
|
31
31
|
): Promise<AutoBeOpenApi.IOperation[]> {
|
|
32
32
|
const matrix: AutoBeOpenApi.IEndpoint[][] = divideArray({
|
|
33
33
|
array: endpoints,
|
|
@@ -192,31 +192,13 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
192
192
|
const operations: IAutoBeInterfaceOperationApplication.IOperation[] =
|
|
193
193
|
result.data.operations;
|
|
194
194
|
const errors: IValidation.IError[] = [];
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
expected:
|
|
201
|
-
"GET method should not have request body. Change method, or re-design the operation.",
|
|
202
|
-
value: op.requestBody,
|
|
203
|
-
});
|
|
204
|
-
// operation name
|
|
205
|
-
if (Escaper.variable(op.name) === false)
|
|
206
|
-
errors.push({
|
|
207
|
-
path: `$input.operations[${i}].name`,
|
|
208
|
-
expected: "<valid_variable_name>",
|
|
209
|
-
value: op.name,
|
|
210
|
-
description: StringUtil.trim`
|
|
211
|
-
The operation name will be converted to the API controller method
|
|
212
|
-
(function) name, so the operation.name must be a valid JavaScript
|
|
213
|
-
variable/function name.
|
|
195
|
+
OperationValidator.validate({
|
|
196
|
+
path: "$input.operations",
|
|
197
|
+
errors,
|
|
198
|
+
operations,
|
|
199
|
+
});
|
|
214
200
|
|
|
215
|
-
|
|
216
|
-
is not a valid JavaScript variable/function name. Please change
|
|
217
|
-
it to a valid variable/function name.
|
|
218
|
-
`,
|
|
219
|
-
});
|
|
201
|
+
operations.forEach((op, i) => {
|
|
220
202
|
// validate roles
|
|
221
203
|
if (props.roles.length === 0) op.authorizationRoles = [];
|
|
222
204
|
else if (op.authorizationRoles.length !== 0 && props.roles.length !== 0)
|
|
@@ -236,72 +218,6 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
236
218
|
});
|
|
237
219
|
});
|
|
238
220
|
});
|
|
239
|
-
|
|
240
|
-
// validate duplicated endpoints
|
|
241
|
-
const endpoints: HashMap<AutoBeOpenApi.IEndpoint, number[]> = new HashMap(
|
|
242
|
-
AutoBeEndpointComparator.hashCode,
|
|
243
|
-
AutoBeEndpointComparator.equals,
|
|
244
|
-
);
|
|
245
|
-
operations.forEach((op, i) => {
|
|
246
|
-
const key: AutoBeOpenApi.IEndpoint = {
|
|
247
|
-
path: op.path,
|
|
248
|
-
method: op.method,
|
|
249
|
-
};
|
|
250
|
-
const it = endpoints.find(key);
|
|
251
|
-
if (it.equals(endpoints.end()) === false) {
|
|
252
|
-
const indexes: number[] = it.second;
|
|
253
|
-
errors.push({
|
|
254
|
-
path: `$input.operations[${i}].{"path"|"method"}`,
|
|
255
|
-
expected: "Unique endpoint (path and method)",
|
|
256
|
-
value: key,
|
|
257
|
-
description: StringUtil.trim`
|
|
258
|
-
Duplicated endpoint detected (method: ${op.method}, path: ${op.path}).
|
|
259
|
-
|
|
260
|
-
The duplicated endpoints of others are located in below accessors.
|
|
261
|
-
Check them, and consider which operation endpoint would be proper to modify.
|
|
262
|
-
|
|
263
|
-
${indexes
|
|
264
|
-
.map((idx) => `- $input.operations.[${idx}].{"path"|"method"}`)
|
|
265
|
-
.join("\n")}
|
|
266
|
-
`,
|
|
267
|
-
});
|
|
268
|
-
indexes.push(i);
|
|
269
|
-
} else endpoints.emplace(key, [i]);
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
// validate duplicated method names
|
|
273
|
-
const accessors: Map<string, number[]> = new Map();
|
|
274
|
-
operations.forEach((op, i) => {
|
|
275
|
-
const key: string =
|
|
276
|
-
op.path
|
|
277
|
-
.split("/")
|
|
278
|
-
.filter((e) => e[0] !== "{" && e.at(-1) !== "}")
|
|
279
|
-
.filter((e) => e.length !== 0)
|
|
280
|
-
.join(".") + `.${op.name}`;
|
|
281
|
-
const indexes: number[] = emplaceMap(accessors, key, () => []);
|
|
282
|
-
if (indexes.length !== 0) {
|
|
283
|
-
errors.push({
|
|
284
|
-
path: `$input.operations[${i}].name`,
|
|
285
|
-
expected: "Unique name in the same accessor scope.",
|
|
286
|
-
value: op.name,
|
|
287
|
-
description: StringUtil.trim`
|
|
288
|
-
Duplicated operation accessor detected (name: ${op.name}, accessor: ${key}).
|
|
289
|
-
|
|
290
|
-
The operation name must be unique within the parent accessor.
|
|
291
|
-
In other worlds, the operation accessor determined by the name
|
|
292
|
-
must be unique in the OpenAPI document.
|
|
293
|
-
|
|
294
|
-
Here is the list of elements of duplicated operation names.
|
|
295
|
-
Check them, and consider which operation name would be proper to modify.
|
|
296
|
-
|
|
297
|
-
${indexes
|
|
298
|
-
.map((idx) => `- ${operations[idx].name} (accessor: ${key})`)
|
|
299
|
-
.join("\n")}
|
|
300
|
-
`,
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
indexes.push(i);
|
|
304
|
-
});
|
|
305
221
|
if (errors.length !== 0)
|
|
306
222
|
return {
|
|
307
223
|
success: false,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
AutoBePrisma,
|
|
6
6
|
AutoBeProgressEventBase,
|
|
7
7
|
} from "@autobe/interface";
|
|
8
|
-
import { ILlmApplication, ILlmSchema } from "@samchon/openapi";
|
|
8
|
+
import { ILlmApplication, ILlmSchema, IValidation } from "@samchon/openapi";
|
|
9
9
|
import { IPointer } from "tstl";
|
|
10
10
|
import typia from "typia";
|
|
11
11
|
import { v7 } from "uuid";
|
|
@@ -13,6 +13,7 @@ import { v7 } from "uuid";
|
|
|
13
13
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
14
14
|
import { transformInterfaceOperationsReviewHistories } from "./histories/transformInterfaceOperationsReviewHistories";
|
|
15
15
|
import { IAutoBeInterfaceOperationsReviewApplication } from "./structures/IAutoBeInterfaceOperationsReviewApplication";
|
|
16
|
+
import { OperationValidator } from "./utils/OperationValidator";
|
|
16
17
|
|
|
17
18
|
export async function orchestrateInterfaceOperationsReview<
|
|
18
19
|
Model extends ILlmSchema.Model,
|
|
@@ -41,7 +42,6 @@ export async function orchestrateInterfaceOperationsReview<
|
|
|
41
42
|
message: "Review the operations",
|
|
42
43
|
});
|
|
43
44
|
if (pointer.value === null) {
|
|
44
|
-
console.error("Failed to review operations.");
|
|
45
45
|
++progress.completed;
|
|
46
46
|
return [];
|
|
47
47
|
}
|
|
@@ -67,8 +67,7 @@ export async function orchestrateInterfaceOperationsReview<
|
|
|
67
67
|
completed: ++progress.completed,
|
|
68
68
|
} satisfies AutoBeInterfaceOperationsReviewEvent);
|
|
69
69
|
return content;
|
|
70
|
-
} catch
|
|
71
|
-
console.error("Error occurred during interface operations review:", error);
|
|
70
|
+
} catch {
|
|
72
71
|
++progress.completed;
|
|
73
72
|
return [];
|
|
74
73
|
}
|
|
@@ -79,9 +78,32 @@ function createReviewController<Model extends ILlmSchema.Model>(props: {
|
|
|
79
78
|
prismaSchemas: AutoBePrisma.IFile[];
|
|
80
79
|
build: (reviews: IAutoBeInterfaceOperationsReviewApplication.IProps) => void;
|
|
81
80
|
}): IAgenticaController.IClass<Model> {
|
|
81
|
+
const validate = (
|
|
82
|
+
next: unknown,
|
|
83
|
+
): IValidation<IAutoBeInterfaceOperationsReviewApplication.IProps> => {
|
|
84
|
+
const result: IValidation<IAutoBeInterfaceOperationsReviewApplication.IProps> =
|
|
85
|
+
typia.validate<IAutoBeInterfaceOperationsReviewApplication.IProps>(next);
|
|
86
|
+
if (result.success === false) return result;
|
|
87
|
+
|
|
88
|
+
const errors: IValidation.IError[] = [];
|
|
89
|
+
OperationValidator.validate({
|
|
90
|
+
path: "$input.content",
|
|
91
|
+
operations: result.data.content,
|
|
92
|
+
errors,
|
|
93
|
+
});
|
|
94
|
+
if (errors.length !== 0)
|
|
95
|
+
return {
|
|
96
|
+
success: false,
|
|
97
|
+
errors,
|
|
98
|
+
data: next,
|
|
99
|
+
};
|
|
100
|
+
return result;
|
|
101
|
+
};
|
|
82
102
|
const application: ILlmApplication<Model> = collection[
|
|
83
103
|
props.model === "chatgpt" ? "chatgpt" : "claude"
|
|
84
|
-
]
|
|
104
|
+
](
|
|
105
|
+
validate,
|
|
106
|
+
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
85
107
|
|
|
86
108
|
return {
|
|
87
109
|
protocol: "class",
|
|
@@ -96,12 +118,26 @@ function createReviewController<Model extends ILlmSchema.Model>(props: {
|
|
|
96
118
|
}
|
|
97
119
|
|
|
98
120
|
const collection = {
|
|
99
|
-
chatgpt:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
121
|
+
chatgpt: (validate: Validator) =>
|
|
122
|
+
typia.llm.application<
|
|
123
|
+
IAutoBeInterfaceOperationsReviewApplication,
|
|
124
|
+
"chatgpt"
|
|
125
|
+
>({
|
|
126
|
+
validate: {
|
|
127
|
+
reviewOperations: validate,
|
|
128
|
+
},
|
|
129
|
+
}),
|
|
130
|
+
claude: (validate: Validator) =>
|
|
131
|
+
typia.llm.application<
|
|
132
|
+
IAutoBeInterfaceOperationsReviewApplication,
|
|
133
|
+
"claude"
|
|
134
|
+
>({
|
|
135
|
+
validate: {
|
|
136
|
+
reviewOperations: validate,
|
|
137
|
+
},
|
|
138
|
+
}),
|
|
107
139
|
};
|
|
140
|
+
|
|
141
|
+
type Validator = (
|
|
142
|
+
input: unknown,
|
|
143
|
+
) => IValidation<IAutoBeInterfaceOperationsReviewApplication.IProps>;
|
|
@@ -11,6 +11,7 @@ import { IPointer } from "tstl";
|
|
|
11
11
|
import typia from "typia";
|
|
12
12
|
import { v7 } from "uuid";
|
|
13
13
|
|
|
14
|
+
import { AutoBeConfigConstant } from "../../constants/AutoBeConfigConstant";
|
|
14
15
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
15
16
|
import { assertSchemaModel } from "../../context/assertSchemaModel";
|
|
16
17
|
import { divideArray } from "../../utils/divideArray";
|
|
@@ -19,15 +20,15 @@ import { transformInterfaceSchemaHistories } from "./histories/transformInterfac
|
|
|
19
20
|
import { IAutoBeInterfaceSchemaApplication } from "./structures/IAutoBeInterfaceSchemaApplication";
|
|
20
21
|
import { JsonSchemaFactory } from "./utils/JsonSchemaFactory";
|
|
21
22
|
import { JsonSchemaNamingConvention } from "./utils/JsonSchemaNamingConvention";
|
|
23
|
+
import { JsonSchemaValidator } from "./utils/JsonSchemaValidator";
|
|
22
24
|
import { fulfillJsonSchemaErrorMessages } from "./utils/fulfillJsonSchemaErrorMessages";
|
|
23
|
-
import { validateAuthorizationSchema } from "./utils/validateAuthorizationSchema";
|
|
24
25
|
|
|
25
26
|
export async function orchestrateInterfaceSchemas<
|
|
26
27
|
Model extends ILlmSchema.Model,
|
|
27
28
|
>(
|
|
28
29
|
ctx: AutoBeContext<Model>,
|
|
29
30
|
operations: AutoBeOpenApi.IOperation[],
|
|
30
|
-
capacity: number =
|
|
31
|
+
capacity: number = AutoBeConfigConstant.INTERFACE_CAPACITY,
|
|
31
32
|
): Promise<Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>> {
|
|
32
33
|
// fix operation type names
|
|
33
34
|
JsonSchemaNamingConvention.operations(operations);
|
|
@@ -196,7 +197,7 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
196
197
|
|
|
197
198
|
// Check all IAuthorized types
|
|
198
199
|
const errors: IValidation.IError[] = [];
|
|
199
|
-
|
|
200
|
+
JsonSchemaValidator.validateSchemas({
|
|
200
201
|
errors,
|
|
201
202
|
schemas: result.data.schemas,
|
|
202
203
|
path: "$input.schemas",
|
|
@@ -10,6 +10,7 @@ import { IPointer } from "tstl";
|
|
|
10
10
|
import typia from "typia";
|
|
11
11
|
import { v7 } from "uuid";
|
|
12
12
|
|
|
13
|
+
import { AutoBeConfigConstant } from "../../constants/AutoBeConfigConstant";
|
|
13
14
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
14
15
|
import { assertSchemaModel } from "../../context/assertSchemaModel";
|
|
15
16
|
import { divideArray } from "../../utils/divideArray";
|
|
@@ -18,8 +19,8 @@ import { transformInterfaceSchemasReviewHistories } from "./histories/transformI
|
|
|
18
19
|
import { IAutoBeInterfaceSchemasReviewApplication } from "./structures/IAutobeInterfaceSchemasReviewApplication";
|
|
19
20
|
import { JsonSchemaFactory } from "./utils/JsonSchemaFactory";
|
|
20
21
|
import { JsonSchemaNamingConvention } from "./utils/JsonSchemaNamingConvention";
|
|
22
|
+
import { JsonSchemaValidator } from "./utils/JsonSchemaValidator";
|
|
21
23
|
import { fulfillJsonSchemaErrorMessages } from "./utils/fulfillJsonSchemaErrorMessages";
|
|
22
|
-
import { validateAuthorizationSchema } from "./utils/validateAuthorizationSchema";
|
|
23
24
|
|
|
24
25
|
export async function orchestrateInterfaceSchemasReview<
|
|
25
26
|
Model extends ILlmSchema.Model,
|
|
@@ -27,6 +28,7 @@ export async function orchestrateInterfaceSchemasReview<
|
|
|
27
28
|
ctx: AutoBeContext<Model>,
|
|
28
29
|
operations: AutoBeOpenApi.IOperation[],
|
|
29
30
|
schemas: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>,
|
|
31
|
+
capacity: number = AutoBeConfigConstant.INTERFACE_CAPACITY,
|
|
30
32
|
): Promise<Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>> {
|
|
31
33
|
const a = Object.entries(schemas).map(([key, schema]) => {
|
|
32
34
|
return { [key]: schema };
|
|
@@ -35,7 +37,7 @@ export async function orchestrateInterfaceSchemasReview<
|
|
|
35
37
|
const matrix: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>[][] =
|
|
36
38
|
divideArray({
|
|
37
39
|
array: a,
|
|
38
|
-
capacity
|
|
40
|
+
capacity,
|
|
39
41
|
});
|
|
40
42
|
const progress: IProgress = {
|
|
41
43
|
total: matrix.length,
|
|
@@ -97,7 +99,6 @@ export async function step<Model extends ILlmSchema.Model>(
|
|
|
97
99
|
message: "Review type schemas.",
|
|
98
100
|
});
|
|
99
101
|
if (pointer.value === null) {
|
|
100
|
-
console.error("Failed to extract review information.");
|
|
101
102
|
++progress.completed;
|
|
102
103
|
return {};
|
|
103
104
|
}
|
|
@@ -122,8 +123,7 @@ export async function step<Model extends ILlmSchema.Model>(
|
|
|
122
123
|
created_at: new Date().toISOString(),
|
|
123
124
|
} satisfies AutoBeInterfaceSchemasReviewEvent);
|
|
124
125
|
return content;
|
|
125
|
-
} catch
|
|
126
|
-
console.error("Error occurred during interface schemas review:", error);
|
|
126
|
+
} catch {
|
|
127
127
|
++progress.completed;
|
|
128
128
|
return {};
|
|
129
129
|
}
|
|
@@ -150,7 +150,7 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
const errors: IValidation.IError[] = [];
|
|
153
|
-
|
|
153
|
+
JsonSchemaValidator.validateSchemas({
|
|
154
154
|
errors,
|
|
155
155
|
schemas: result.data.content,
|
|
156
156
|
path: "$input.content",
|
|
@@ -87,10 +87,260 @@ export namespace IAutoBeInterfaceOperationApplication {
|
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
89
|
export interface IOperation
|
|
90
|
-
extends
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
extends AutoBeOpenApi.IEndpoint {
|
|
91
|
+
/**
|
|
92
|
+
* Specification of the API operation.
|
|
93
|
+
*
|
|
94
|
+
* Before defining the API operation interface, please describe what you're
|
|
95
|
+
* planning to write in this `specification` field.
|
|
96
|
+
*
|
|
97
|
+
* The specification must be fully detailed and clear, so that anyone can
|
|
98
|
+
* understand the purpose and functionality of the API operation and its
|
|
99
|
+
* related components (e.g., {@link path}, {@link parameters},
|
|
100
|
+
* {@link requestBody}).
|
|
101
|
+
*
|
|
102
|
+
* IMPORTANT: The specification MUST identify which Prisma DB table this
|
|
103
|
+
* operation is associated with, helping ensure complete coverage of all
|
|
104
|
+
* database entities.
|
|
105
|
+
*/
|
|
106
|
+
specification: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Detailed description about the API operation.
|
|
110
|
+
*
|
|
111
|
+
* IMPORTANT: This field MUST be extensively detailed and MUST reference the
|
|
112
|
+
* description comments from the related Prisma DB schema tables and
|
|
113
|
+
* columns. The description should be organized into MULTIPLE PARAGRAPHS
|
|
114
|
+
* separated by line breaks to improve readability and comprehension.
|
|
115
|
+
*
|
|
116
|
+
* For example, include separate paragraphs for:
|
|
117
|
+
*
|
|
118
|
+
* - The purpose and overview of the API operation
|
|
119
|
+
* - Security considerations and user permissions
|
|
120
|
+
* - Relationship to underlying database entities
|
|
121
|
+
* - Validation rules and business logic
|
|
122
|
+
* - Related API operations that might be used together with this one
|
|
123
|
+
* - Expected behavior and error handling
|
|
124
|
+
*
|
|
125
|
+
* When writing the description, be sure to incorporate the corresponding DB
|
|
126
|
+
* schema's description comments, matching the level of detail and style of
|
|
127
|
+
* those comments. This ensures consistency between the API documentation
|
|
128
|
+
* and database structure.
|
|
129
|
+
*
|
|
130
|
+
* If there's a dependency to other APIs, please describe the dependency API
|
|
131
|
+
* operation in this field with detailed reason. For example, if this API
|
|
132
|
+
* operation needs a pre-execution of other API operation, it must be
|
|
133
|
+
* explicitly described.
|
|
134
|
+
*
|
|
135
|
+
* - `GET /shoppings/customers/sales` must be pre-executed to get entire list
|
|
136
|
+
* of summarized sales. Detailed sale information would be obtained by
|
|
137
|
+
* specifying the sale ID in the path parameter.
|
|
138
|
+
*
|
|
139
|
+
* **CRITICAL WARNING about soft delete keywords**: DO NOT use terms like
|
|
140
|
+
* "soft delete", "soft-delete", or similar variations in this description
|
|
141
|
+
* UNLESS the operation actually implements soft deletion. These keywords
|
|
142
|
+
* trigger validation logic that expects a corresponding soft_delete_column
|
|
143
|
+
* to be specified. Only use these terms when you intend to implement soft
|
|
144
|
+
* deletion (marking records as deleted without removing them from the
|
|
145
|
+
* database).
|
|
146
|
+
*
|
|
147
|
+
* Example of problematic description: ❌ "This would normally be a
|
|
148
|
+
* soft-delete, but we intentionally perform permanent deletion here" - This
|
|
149
|
+
* triggers soft delete validation despite being a hard delete operation.
|
|
150
|
+
*
|
|
151
|
+
* > MUST be written in English. Never use other languages.
|
|
152
|
+
*/
|
|
153
|
+
description: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Short summary of the API operation.
|
|
157
|
+
*
|
|
158
|
+
* This should be a concise description of the API operation, typically one
|
|
159
|
+
* sentence long. It should provide a quick overview of what the API does
|
|
160
|
+
* without going into too much detail.
|
|
161
|
+
*
|
|
162
|
+
* This summary will be used in the OpenAPI documentation to give users a
|
|
163
|
+
* quick understanding of the API operation's purpose.
|
|
164
|
+
*
|
|
165
|
+
* IMPORTANT: The summary should clearly indicate which Prisma DB table this
|
|
166
|
+
* operation relates to, helping to ensure all tables have API coverage.
|
|
167
|
+
*
|
|
168
|
+
* **CRITICAL WARNING about soft delete keywords**: DO NOT use terms like
|
|
169
|
+
* "soft delete", "soft-delete", or similar variations in this summary
|
|
170
|
+
* UNLESS the operation actually implements soft deletion. These keywords
|
|
171
|
+
* trigger validation logic that expects a corresponding soft_delete_column
|
|
172
|
+
* to be specified. Only use these terms when you intend to implement soft
|
|
173
|
+
* deletion (marking records as deleted without removing them from the
|
|
174
|
+
* database).
|
|
175
|
+
*
|
|
176
|
+
* > MUST be written in English. Never use other languages
|
|
177
|
+
*/
|
|
178
|
+
summary: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* List of path parameters.
|
|
182
|
+
*
|
|
183
|
+
* Note that, the {@link AutoBeOpenApi.IParameter.name identifier name} of
|
|
184
|
+
* path parameter must be corresponded to the
|
|
185
|
+
* {@link path API operation path}.
|
|
186
|
+
*
|
|
187
|
+
* For example, if there's an API operation which has {@link path} of
|
|
188
|
+
* `/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}`,
|
|
189
|
+
* its list of {@link AutoBeOpenApi.IParameter.name path parameters} must be
|
|
190
|
+
* like:
|
|
191
|
+
*
|
|
192
|
+
* - `saleId`
|
|
193
|
+
* - `questionId`
|
|
194
|
+
* - `commentId`
|
|
195
|
+
*/
|
|
196
|
+
parameters: AutoBeOpenApi.IParameter[];
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Request body of the API operation.
|
|
200
|
+
*
|
|
201
|
+
* Defines the payload structure for the request. Contains a description and
|
|
202
|
+
* schema reference to define the expected input data.
|
|
203
|
+
*
|
|
204
|
+
* Should be `null` for operations that don't require a request body, such
|
|
205
|
+
* as most "get" operations.
|
|
206
|
+
*/
|
|
207
|
+
requestBody: AutoBeOpenApi.IRequestBody | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Response body of the API operation.
|
|
211
|
+
*
|
|
212
|
+
* Defines the structure of the successful response data. Contains a
|
|
213
|
+
* description and schema reference for the returned data.
|
|
214
|
+
*
|
|
215
|
+
* Should be null for operations that don't return any data.
|
|
216
|
+
*/
|
|
217
|
+
responseBody: AutoBeOpenApi.IResponseBody | null;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Functional name of the API endpoint.
|
|
221
|
+
*
|
|
222
|
+
* This is a semantic identifier that represents the primary function or
|
|
223
|
+
* purpose of the API endpoint. It serves as a canonical name that can be
|
|
224
|
+
* used for code generation, SDK method names, and internal references.
|
|
225
|
+
*
|
|
226
|
+
* ## Reserved Word Restrictions
|
|
227
|
+
*
|
|
228
|
+
* CRITICAL: The name MUST NOT be a TypeScript/JavaScript reserved word, as
|
|
229
|
+
* it will be used as a class method name in generated code. Avoid names
|
|
230
|
+
* like:
|
|
231
|
+
*
|
|
232
|
+
* - `delete`, `for`, `if`, `else`, `while`, `do`, `switch`, `case`, `break`
|
|
233
|
+
* - `continue`, `function`, `return`, `with`, `in`, `of`, `instanceof`
|
|
234
|
+
* - `typeof`, `void`, `var`, `let`, `const`, `class`, `extends`, `import`
|
|
235
|
+
* - `export`, `default`, `try`, `catch`, `finally`, `throw`, `new`
|
|
236
|
+
* - `super`, `this`, `null`, `true`, `false`, `async`, `await`
|
|
237
|
+
* - `yield`, `static`, `private`, `protected`, `public`, `implements`
|
|
238
|
+
* - `interface`, `package`, `enum`, `debugger`
|
|
239
|
+
*
|
|
240
|
+
* Instead, use alternative names for these operations:
|
|
241
|
+
*
|
|
242
|
+
* - Use `erase` instead of `delete`
|
|
243
|
+
* - Use `iterate` instead of `for`
|
|
244
|
+
* - Use `when` instead of `if`
|
|
245
|
+
* - Use `cls` instead of `class`
|
|
246
|
+
*
|
|
247
|
+
* ## Standard Endpoint Names
|
|
248
|
+
*
|
|
249
|
+
* Use these conventional names based on the endpoint's primary function:
|
|
250
|
+
*
|
|
251
|
+
* - **`index`**: List/search operations that return multiple entities
|
|
252
|
+
*
|
|
253
|
+
* - Typically used with PATCH method for complex queries
|
|
254
|
+
* - Example: `PATCH /users` → `name: "index"`
|
|
255
|
+
* - **`at`**: Retrieve a specific entity by identifier
|
|
256
|
+
*
|
|
257
|
+
* - Typically used with GET method on single resource
|
|
258
|
+
* - Example: `GET /users/{userId}` → `name: "at"`
|
|
259
|
+
* - **`create`**: Create a new entity
|
|
260
|
+
*
|
|
261
|
+
* - Typically used with POST method
|
|
262
|
+
* - Example: `POST /users` → `name: "create"`
|
|
263
|
+
* - **`update`**: Update an existing entity
|
|
264
|
+
*
|
|
265
|
+
* - Typically used with PUT method
|
|
266
|
+
* - Example: `PUT /users/{userId}` → `name: "update"`
|
|
267
|
+
* - **`erase`**: Delete/remove an entity (NOT `delete` - reserved word!)
|
|
268
|
+
*
|
|
269
|
+
* - Typically used with DELETE method
|
|
270
|
+
* - Example: `DELETE /users/{userId}` → `name: "erase"`
|
|
271
|
+
*
|
|
272
|
+
* ## Custom Endpoint Names
|
|
273
|
+
*
|
|
274
|
+
* For specialized operations beyond basic CRUD, use descriptive verbs:
|
|
275
|
+
*
|
|
276
|
+
* - **`activate`**: Enable or turn on a feature/entity
|
|
277
|
+
* - **`deactivate`**: Disable or turn off a feature/entity
|
|
278
|
+
* - **`approve`**: Approve a request or entity
|
|
279
|
+
* - **`reject`**: Reject a request or entity
|
|
280
|
+
* - **`publish`**: Make content publicly available
|
|
281
|
+
* - **`archive`**: Move to archived state
|
|
282
|
+
* - **`restore`**: Restore from archived/deleted state
|
|
283
|
+
* - **`duplicate`**: Create a copy of an entity
|
|
284
|
+
* - **`transfer`**: Move ownership or change assignment
|
|
285
|
+
* - **`validate`**: Validate data or state
|
|
286
|
+
* - **`process`**: Execute a business process or workflow
|
|
287
|
+
* - **`export`**: Generate downloadable data
|
|
288
|
+
* - **`import`**: Process uploaded data
|
|
289
|
+
*
|
|
290
|
+
* ## Naming Guidelines
|
|
291
|
+
*
|
|
292
|
+
* - MUST use camelCase naming convention
|
|
293
|
+
* - Use singular verb forms
|
|
294
|
+
* - Be concise but descriptive
|
|
295
|
+
* - Avoid abbreviations unless widely understood
|
|
296
|
+
* - Ensure the name clearly represents the endpoint's primary action
|
|
297
|
+
* - For nested resources, focus on the action rather than hierarchy
|
|
298
|
+
* - NEVER use JavaScript/TypeScript reserved words
|
|
299
|
+
*
|
|
300
|
+
* Valid Examples:
|
|
301
|
+
*
|
|
302
|
+
* - `index`, `create`, `update`, `erase` (single word)
|
|
303
|
+
* - `updatePassword`, `cancelOrder`, `publishArticle` (camelCase)
|
|
304
|
+
* - `validateEmail`, `generateReport`, `exportData` (camelCase)
|
|
305
|
+
*
|
|
306
|
+
* Invalid Examples:
|
|
307
|
+
*
|
|
308
|
+
* - `update_password` (snake_case not allowed)
|
|
309
|
+
* - `UpdatePassword` (PascalCase not allowed)
|
|
310
|
+
* - `update-password` (kebab-case not allowed)
|
|
311
|
+
*
|
|
312
|
+
* Path to Name Examples:
|
|
313
|
+
*
|
|
314
|
+
* - `GET /shopping/orders/{orderId}/items` → `name: "index"` (lists items)
|
|
315
|
+
* - `POST /shopping/orders/{orderId}/cancel` → `name: "cancel"`
|
|
316
|
+
* - `PUT /users/{userId}/password` → `name: "updatePassword"`
|
|
317
|
+
*
|
|
318
|
+
* ## Uniqueness Rule
|
|
319
|
+
*
|
|
320
|
+
* The `name` must be unique within the API's accessor namespace. The
|
|
321
|
+
* accessor is formed by combining the path segments (excluding parameters)
|
|
322
|
+
* with the operation name.
|
|
323
|
+
*
|
|
324
|
+
* Accessor formation:
|
|
325
|
+
*
|
|
326
|
+
* 1. Extract non-parameter segments from the path (remove `{...}` parts)
|
|
327
|
+
* 2. Join segments with dots
|
|
328
|
+
* 3. Append the operation name
|
|
329
|
+
*
|
|
330
|
+
* Examples:
|
|
331
|
+
*
|
|
332
|
+
* - Path: `/shopping/sale/{saleId}/review/{reviewId}`, Name: `at` → Accessor:
|
|
333
|
+
* `shopping.sale.review.at`
|
|
334
|
+
* - Path: `/users/{userId}/posts`, Name: `index` → Accessor:
|
|
335
|
+
* `users.posts.index`
|
|
336
|
+
* - Path: `/auth/login`, Name: `signIn` → Accessor: `auth.login.signIn`
|
|
337
|
+
*
|
|
338
|
+
* Each accessor must be globally unique across the entire API. This ensures
|
|
339
|
+
* operations can be uniquely identified in generated SDKs and prevents
|
|
340
|
+
* naming conflicts.
|
|
341
|
+
*/
|
|
342
|
+
name: string & CamelPattern;
|
|
343
|
+
|
|
94
344
|
/**
|
|
95
345
|
* Authorization roles required to access this API operation.
|
|
96
346
|
*
|