@autobe/agent 0.21.0 → 0.22.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/agent/src/AutoBeAgent.js +2 -2
- package/lib/agent/src/AutoBeAgent.js.map +1 -1
- package/lib/agent/src/constants/AutoBeConfigConstant.d.ts +3 -0
- package/lib/agent/src/{orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js → constants/AutoBeConfigConstant.js} +1 -1
- package/lib/agent/src/constants/AutoBeConfigConstant.js.map +1 -0
- package/lib/agent/src/constants/AutoBeSystemPromptConstant.d.ts +27 -27
- package/lib/agent/src/context/AutoBeContext.d.ts +1 -0
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js +4 -3
- package/lib/agent/src/context/AutoBeTokenUsageComponent.js.map +1 -1
- package/lib/agent/src/factory/consentFunctionCall.js +4 -4
- package/lib/agent/src/factory/consentFunctionCall.js.map +1 -1
- package/lib/agent/src/factory/createAutoBeContext.js +13 -10
- package/lib/agent/src/factory/createAutoBeContext.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +2 -2
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +1 -1
- package/lib/agent/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeReview.js +6 -6
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js +50 -8
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/analyze/orchestrateAnalyzeWrite.js +4 -4
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +6 -0
- package/lib/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +4 -0
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js +1 -1
- package/lib/agent/src/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +19 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +1 -1
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js +5 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js +16 -10
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.d.ts +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js +3731 -228
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpoints.js +2 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +2 -2
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js +43 -63
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js +1261 -1628
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js +3468 -105
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +6 -1
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js +3674 -360
- package/lib/agent/src/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -38
- package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +48 -141
- package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +29 -23
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.d.ts +9 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js +1385 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +5 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js +78 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.d.ts +10 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js +59 -0
- package/lib/agent/src/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +2 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js +81 -0
- package/lib/agent/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js.map +1 -0
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js +2 -2
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +1 -1
- package/lib/agent/src/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.d.ts +1 -1
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js +2 -2
- package/lib/agent/src/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +2 -2
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +6 -6
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js +22 -7
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -8
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js +13 -29
- package/lib/agent/src/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js +2 -8
- package/lib/agent/src/orchestrate/realize/internal/compileRealizeFiles.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js +6 -49
- package/lib/agent/src/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js +4 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +5 -3
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.d.ts +13 -6
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js +206 -118
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -2
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js +24 -39
- package/lib/agent/src/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +17 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +20 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +33 -73
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +5 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.js.map +1 -0
- package/{src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.ts → lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts} +2 -13
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js +3 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +33 -22
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +31 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +86 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.d.ts +4 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js +55 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +2 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js +20 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteImportStatements.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +30 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js +73 -0
- package/lib/agent/src/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -0
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.d.ts +6 -2
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js +63 -69
- package/lib/agent/src/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.d.ts +3 -1
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js +25 -18
- package/lib/agent/src/orchestrate/test/compile/completeTestCode.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js +5 -1
- package/lib/agent/src/orchestrate/test/compile/getTestExternalDeclarations.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.d.ts +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js +19 -0
- package/lib/agent/src/orchestrate/test/compile/getTestImportStatements.js.map +1 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.d.ts +2 -0
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js +21 -0
- package/lib/agent/src/orchestrate/test/compile/getTestTemplateCode.js.map +1 -0
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.d.ts +2 -2
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js +16 -17
- package/lib/agent/src/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js +5 -4
- package/lib/agent/src/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js +21 -2
- package/lib/agent/src/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTest.js +6 -0
- package/lib/agent/src/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.d.ts +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js +123 -75
- package/lib/agent/src/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js +46 -40
- package/lib/agent/src/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js +117 -45
- package/lib/agent/src/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +48 -45
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +6 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js +3 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.js.map +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +1 -0
- package/lib/agent/src/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +13 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.d.ts +5 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js +28 -0
- package/lib/agent/src/orchestrate/test/utils/getReferenceIds.js.map +1 -0
- package/lib/agent/src/structures/IAutoBeConfig.d.ts +2 -0
- package/lib/constants/AutoBeConfigConstant.d.ts +3 -0
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +27 -27
- package/lib/context/AutoBeContext.d.ts +1 -0
- package/lib/index.mjs +13871 -3912
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +6 -0
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +4 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +6 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +0 -38
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +48 -141
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +29 -23
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.d.ts +9 -0
- package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.d.ts +5 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +10 -0
- package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.d.ts +2 -0
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.d.ts +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +6 -6
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +5 -8
- package/lib/orchestrate/realize/internal/compileRealizeFiles.d.ts +2 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +13 -6
- package/lib/orchestrate/realize/orchestrateRealizeScenario.d.ts +2 -2
- package/lib/orchestrate/realize/orchestrateRealizeWrite.d.ts +2 -2
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +17 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +20 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +33 -73
- package/lib/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.d.ts +5 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +36 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +33 -22
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.d.ts +31 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.d.ts +4 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteImportStatements.d.ts +2 -0
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.d.ts +30 -0
- package/lib/orchestrate/realize/utils/replaceImportStatements.d.ts +6 -2
- package/lib/orchestrate/test/compile/completeTestCode.d.ts +3 -1
- package/lib/orchestrate/test/compile/getTestImportStatements.d.ts +2 -0
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.d.ts +1 -1
- package/lib/orchestrate/test/compile/getTestTemplateCode.d.ts +2 -0
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestCorrectApplication.d.ts +48 -45
- package/lib/orchestrate/test/structures/IAutoBeTestFunctionFailure.d.ts +6 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestWriteApplication.d.ts +13 -0
- package/lib/orchestrate/test/utils/getReferenceIds.d.ts +5 -0
- package/lib/structures/IAutoBeConfig.d.ts +2 -0
- package/package.json +6 -6
- package/src/AutoBeAgent.ts +2 -0
- package/src/constants/AutoBeConfigConstant.ts +3 -0
- package/src/constants/AutoBeSystemPromptConstant.ts +27 -27
- package/src/context/AutoBeContext.ts +1 -0
- package/src/context/AutoBeTokenUsageComponent.ts +3 -3
- package/src/factory/consentFunctionCall.ts +2 -0
- package/src/factory/createAutoBeContext.ts +145 -136
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +6 -0
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +4 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +19 -1
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +1 -4
- package/src/orchestrate/interface/orchestrateInterface.ts +15 -4
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +13 -5
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +58 -19
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +11 -11
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +13 -117
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +35 -93
- package/src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts +74 -97
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +0 -39
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +50 -146
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +31 -27
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +171 -0
- package/src/orchestrate/interface/utils/JsonSchemaNamingConvention.ts +83 -0
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +66 -0
- package/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.ts +90 -0
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +1 -2
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +30 -15
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +27 -49
- package/src/orchestrate/realize/internal/compileRealizeFiles.ts +4 -11
- package/src/orchestrate/realize/orchestrateRealize.ts +19 -75
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +1 -1
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +114 -25
- package/src/orchestrate/realize/orchestrateRealizeScenario.ts +2 -2
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +11 -15
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +17 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +20 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +40 -74
- package/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.ts +9 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.ts +45 -0
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +33 -22
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +97 -0
- package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +64 -0
- package/src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts +29 -0
- package/src/orchestrate/realize/utils/getRealizeWriteInputType.ts +82 -0
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +101 -111
- package/src/orchestrate/test/compile/completeTestCode.ts +18 -31
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +12 -0
- package/src/orchestrate/test/compile/getTestImportStatements.ts +25 -0
- package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +6 -1
- package/src/orchestrate/test/compile/getTestTemplateCode.ts +25 -0
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +26 -26
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +6 -5
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +19 -0
- package/src/orchestrate/test/orchestrateTest.ts +6 -0
- package/src/orchestrate/test/orchestrateTestCorrect.ts +44 -20
- package/src/orchestrate/test/orchestrateTestScenario.ts +52 -48
- package/src/orchestrate/test/orchestrateTestWrite.ts +20 -10
- package/src/orchestrate/test/structures/IAutoBeTestCorrectApplication.ts +49 -46
- package/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.ts +8 -0
- package/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.ts +1 -0
- package/src/orchestrate/test/structures/IAutoBeTestWriteApplication.ts +14 -0
- package/src/orchestrate/test/utils/getReferenceIds.ts +25 -0
- package/src/structures/IAutoBeConfig.ts +3 -0
- 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/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +0 -38
- package/lib/agent/src/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.js.map +0 -1
- package/lib/orchestrate/interface/utils/validateAuthorizationSchema.d.ts +0 -7
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioApplication.d.ts +0 -38
- package/src/orchestrate/interface/utils/validateAuthorizationSchema.ts +0 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateInterfaceSchemasReview.js","sourceRoot":"","sources":["../../../../../src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateInterfaceSchemasReview.js","sourceRoot":"","sources":["../../../../../src/orchestrate/interface/orchestrateInterfaceSchemasReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,8EAiCC;AAaD,oBA4DC;;;;AA1HD,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,mHAAgH;AAEhH,iEAA8D;AAC9D,mFAAgF;AAChF,qEAAkE;AAClE,2FAAwF;AAExF,SAAsB,iCAAiC,CAGrD,GAAyB,EACzB,UAAsC,EACtC,OAA6D;;QAE7D,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;YACtD,OAAO,EAAE,CAAC,GAAG,CAAC,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xE,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;aACjB;SACF;;QAAC;CACL,CAAC"}
|
package/lib/agent/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts
CHANGED
|
@@ -85,44 +85,6 @@ export declare namespace IAutoBeInterfaceOperationApplication {
|
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
87
|
interface IOperation extends Omit<AutoBeOpenApi.IOperation, "authorizationRole" | "authorizationType"> {
|
|
88
|
-
/**
|
|
89
|
-
* Prisma schema models relevant to this operation.
|
|
90
|
-
*
|
|
91
|
-
* Contains the complete Prisma schema definitions for all entities involved
|
|
92
|
-
* in this operation, including their fields, relations, and database
|
|
93
|
-
* constraints. This enables comprehensive validation and schema-aware
|
|
94
|
-
* operation design.
|
|
95
|
-
*
|
|
96
|
-
* The schema information serves multiple critical purposes:
|
|
97
|
-
*
|
|
98
|
-
* - **Field Verification**: Ensures all referenced fields actually exist in
|
|
99
|
-
* the database schema and have the correct types
|
|
100
|
-
* - **Relationship Validation**: Confirms that entity relationships are
|
|
101
|
-
* properly defined and can support the operation's data access patterns
|
|
102
|
-
* - **Soft-Delete Detection**: For DELETE operations, identifies whether
|
|
103
|
-
* entities have soft-delete fields (deleted_at, is_deleted, etc.) to
|
|
104
|
-
* determine if the operation should perform logical deletion instead of
|
|
105
|
-
* physical removal
|
|
106
|
-
* - **Constraint Awareness**: Understands unique constraints, required
|
|
107
|
-
* fields, and default values to generate accurate request/response
|
|
108
|
-
* schemas
|
|
109
|
-
*
|
|
110
|
-
* Example content might include:
|
|
111
|
-
*
|
|
112
|
-
* ```prisma
|
|
113
|
-
* model User {
|
|
114
|
-
* id String @id @default(uuid())
|
|
115
|
-
* email String @unique
|
|
116
|
-
* name String
|
|
117
|
-
* deleted_at DateTime? // Indicates soft-delete capability
|
|
118
|
-
* posts Post[]
|
|
119
|
-
* }
|
|
120
|
-
* ```
|
|
121
|
-
*
|
|
122
|
-
* This schema context ensures operations are fully aligned with the actual
|
|
123
|
-
* database structure and business logic requirements.
|
|
124
|
-
*/
|
|
125
|
-
prisma_schemas: string;
|
|
126
88
|
/**
|
|
127
89
|
* Authorization roles required to access this API operation.
|
|
128
90
|
*
|
|
@@ -4,19 +4,21 @@ import { AutoBeOpenApi } from "@autobe/interface";
|
|
|
4
4
|
*
|
|
5
5
|
* Provides functionality to systematically review generated API operations
|
|
6
6
|
* against business requirements, technical specifications, and OpenAPI
|
|
7
|
-
* standards. The review process
|
|
8
|
-
*
|
|
7
|
+
* standards. The review process outputs a structured thinking process with
|
|
8
|
+
* analytical findings and actionable improvements, along with the final
|
|
9
|
+
* enhanced operations ready for implementation.
|
|
9
10
|
*/
|
|
10
11
|
export interface IAutoBeInterfaceOperationsReviewApplication {
|
|
11
12
|
/**
|
|
12
13
|
* Reviews a batch of API operations for quality and correctness.
|
|
13
14
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Analyzes operations for security vulnerabilities, schema compliance,
|
|
16
|
+
* logical consistency, and standard adherence. Outputs a structured thinking
|
|
17
|
+
* process containing review findings and improvement plans, plus the final
|
|
18
|
+
* production-ready operations with all critical issues resolved.
|
|
17
19
|
*
|
|
18
|
-
* @param input
|
|
19
|
-
*
|
|
20
|
+
* @param input Properties containing the thinking process (review & plan)
|
|
21
|
+
* and the enhanced operations content
|
|
20
22
|
*/
|
|
21
23
|
reviewOperations(input: IAutoBeInterfaceOperationsReviewApplication.IProps): void;
|
|
22
24
|
}
|
|
@@ -29,6 +31,45 @@ export declare namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
|
29
31
|
* of the AutoBeInterfaceOperationsReviewEvent.
|
|
30
32
|
*/
|
|
31
33
|
interface IProps {
|
|
34
|
+
/**
|
|
35
|
+
* Comprehensive thinking process for API operation review.
|
|
36
|
+
*
|
|
37
|
+
* Encapsulates the agent's analytical review findings and actionable
|
|
38
|
+
* improvement plan. This structured thinking process ensures systematic
|
|
39
|
+
* evaluation of API operations against AutoBE's quality standards before
|
|
40
|
+
* generating the final enhanced operations.
|
|
41
|
+
*/
|
|
42
|
+
think: IThink;
|
|
43
|
+
/**
|
|
44
|
+
* Production-ready operations with all critical issues resolved.
|
|
45
|
+
*
|
|
46
|
+
* Final API operations after systematic enhancement:
|
|
47
|
+
*
|
|
48
|
+
* - **Security Fixes Applied**: All authentication boundaries enforced,
|
|
49
|
+
* sensitive data removed from responses, proper authorization
|
|
50
|
+
* implemented
|
|
51
|
+
* - **Logic Corrections Made**: Return types match operation intent, HTTP
|
|
52
|
+
* methods align with semantics, parameters properly utilized
|
|
53
|
+
* - **Schema Alignment Verified**: All fields exist in Prisma schema, types
|
|
54
|
+
* correctly mapped, relationships properly defined
|
|
55
|
+
* - **Quality Improvements Added**: Enhanced documentation, format
|
|
56
|
+
* specifications, validation rules, consistent naming patterns
|
|
57
|
+
*
|
|
58
|
+
* If no issues were found during review, this contains the exact original
|
|
59
|
+
* operations unchanged. These operations are validated and ready for schema
|
|
60
|
+
* generation and subsequent implementation phases.
|
|
61
|
+
*/
|
|
62
|
+
content: AutoBeOpenApi.IOperation[];
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Structured thinking process for comprehensive API operation review.
|
|
66
|
+
*
|
|
67
|
+
* Combines analytical review findings with actionable improvement planning
|
|
68
|
+
* to guide the systematic enhancement of API operations. This thinking
|
|
69
|
+
* structure ensures all aspects of API quality are evaluated and addressed
|
|
70
|
+
* before producing the final operations.
|
|
71
|
+
*/
|
|
72
|
+
interface IThink {
|
|
32
73
|
/**
|
|
33
74
|
* Comprehensive review analysis with prioritized findings.
|
|
34
75
|
*
|
|
@@ -72,139 +113,5 @@ export declare namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
|
72
113
|
* needed, and the rationale for the modification.
|
|
73
114
|
*/
|
|
74
115
|
plan: string;
|
|
75
|
-
/**
|
|
76
|
-
* Production-ready operations with all critical issues resolved.
|
|
77
|
-
*
|
|
78
|
-
* Final API operations after systematic enhancement:
|
|
79
|
-
*
|
|
80
|
-
* - **Security Fixes Applied**: All authentication boundaries enforced,
|
|
81
|
-
* sensitive data removed from responses, proper authorization
|
|
82
|
-
* implemented
|
|
83
|
-
* - **Logic Corrections Made**: Return types match operation intent, HTTP
|
|
84
|
-
* methods align with semantics, parameters properly utilized
|
|
85
|
-
* - **Schema Alignment Verified**: All fields exist in Prisma schema, types
|
|
86
|
-
* correctly mapped, relationships properly defined
|
|
87
|
-
* - **Quality Improvements Added**: Enhanced documentation, format
|
|
88
|
-
* specifications, validation rules, consistent naming patterns
|
|
89
|
-
*
|
|
90
|
-
* If no issues were found during review, this contains the exact original
|
|
91
|
-
* operations unchanged. These operations are validated and ready for schema
|
|
92
|
-
* generation and subsequent implementation phases.
|
|
93
|
-
*/
|
|
94
|
-
content: IOperation[];
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Operation of the Restful API.
|
|
98
|
-
*
|
|
99
|
-
* This interface defines a single API endpoint with its HTTP {@link method},
|
|
100
|
-
* {@link path}, {@link parameters path parameters},
|
|
101
|
-
* {@link requestBody request body}, and {@link responseBody} structure. It
|
|
102
|
-
* corresponds to an individual operation in the paths section of an OpenAPI
|
|
103
|
-
* document.
|
|
104
|
-
*
|
|
105
|
-
* Each operation requires a detailed explanation of its purpose through the
|
|
106
|
-
* reason and description fields, making it clear why the API was designed and
|
|
107
|
-
* how it should be used.
|
|
108
|
-
*
|
|
109
|
-
* All request bodies and responses for this operation must be object types
|
|
110
|
-
* and must reference named types defined in the components section. The
|
|
111
|
-
* content-type is always `application/json`. For file upload/download
|
|
112
|
-
* operations, use `string & tags.Format<"uri">` in the appropriate schema
|
|
113
|
-
* instead of binary data formats.
|
|
114
|
-
*
|
|
115
|
-
* In OpenAPI, this might represent:
|
|
116
|
-
*
|
|
117
|
-
* ```json
|
|
118
|
-
* {
|
|
119
|
-
* "/shoppings/customers/orders": {
|
|
120
|
-
* "post": {
|
|
121
|
-
* "description": "Create a new order application from shopping cart...",
|
|
122
|
-
* "parameters": [...],
|
|
123
|
-
* "requestBody": {...},
|
|
124
|
-
* "responses": {...}
|
|
125
|
-
* }
|
|
126
|
-
* }
|
|
127
|
-
* }
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
interface IOperation extends Omit<AutoBeOpenApi.IOperation, "authorizationType"> {
|
|
131
|
-
/**
|
|
132
|
-
* Prisma schema models relevant to this operation.
|
|
133
|
-
*
|
|
134
|
-
* Contains the complete Prisma schema definitions for all entities involved
|
|
135
|
-
* in this operation, including their fields, relations, and database
|
|
136
|
-
* constraints. This enables comprehensive validation and schema-aware
|
|
137
|
-
* operation design.
|
|
138
|
-
*
|
|
139
|
-
* The schema information serves multiple critical purposes:
|
|
140
|
-
*
|
|
141
|
-
* - **Field Verification**: Ensures all referenced fields actually exist in
|
|
142
|
-
* the database schema and have the correct types
|
|
143
|
-
* - **Relationship Validation**: Confirms that entity relationships are
|
|
144
|
-
* properly defined and can support the operation's data access patterns
|
|
145
|
-
* - **Soft-Delete Detection**: For DELETE operations, identifies whether
|
|
146
|
-
* entities have soft-delete fields (deleted_at, is_deleted, etc.) to
|
|
147
|
-
* determine if the operation should perform logical deletion instead of
|
|
148
|
-
* physical removal
|
|
149
|
-
* - **Constraint Awareness**: Understands unique constraints, required
|
|
150
|
-
* fields, and default values to generate accurate request/response
|
|
151
|
-
* schemas
|
|
152
|
-
*
|
|
153
|
-
* Example content might include:
|
|
154
|
-
*
|
|
155
|
-
* ```prisma
|
|
156
|
-
* model User {
|
|
157
|
-
* id String @id @default(uuid())
|
|
158
|
-
* email String @unique
|
|
159
|
-
* name String
|
|
160
|
-
* deleted_at DateTime? // Indicates soft-delete capability
|
|
161
|
-
* posts Post[]
|
|
162
|
-
* }
|
|
163
|
-
* ```
|
|
164
|
-
*
|
|
165
|
-
* This schema context ensures operations are fully aligned with the actual
|
|
166
|
-
* database structure and business logic requirements.
|
|
167
|
-
*/
|
|
168
|
-
prisma_schemas: string;
|
|
169
|
-
/**
|
|
170
|
-
* Primary Prisma model name for this operation.
|
|
171
|
-
*
|
|
172
|
-
* Identifies the main database table/model that this operation targets.
|
|
173
|
-
* This must match exactly with the Prisma model name defined in the schema.
|
|
174
|
-
* When soft deletion is specified, this model name indicates which table
|
|
175
|
-
* should be soft-deleted.
|
|
176
|
-
*
|
|
177
|
-
* For example:
|
|
178
|
-
* - In a "GET /users/:id" operation, this would be "User"
|
|
179
|
-
* - In a "POST /articles" operation, this would be "Article"
|
|
180
|
-
* - In a "DELETE /comments/:id" with soft delete, this specifies the "Comment" model to soft-delete
|
|
181
|
-
*
|
|
182
|
-
* This property is essential for:
|
|
183
|
-
* - Determining the primary entity for CRUD operations
|
|
184
|
-
* - Identifying which table to apply soft deletion to
|
|
185
|
-
* - Validating operations against the correct Prisma model
|
|
186
|
-
* - Generating appropriate database queries and validations
|
|
187
|
-
*/
|
|
188
|
-
model_name: string;
|
|
189
|
-
/**
|
|
190
|
-
* Soft delete column name for the Prisma models.
|
|
191
|
-
*
|
|
192
|
-
* Specifies the column name used for soft deletion in the database tables
|
|
193
|
-
* associated with this operation. When set to a non-null value, it indicates
|
|
194
|
-
* that the related entities support soft deletion through this column
|
|
195
|
-
* (typically a timestamp field like `deleted_at` or `deletedAt`).
|
|
196
|
-
*
|
|
197
|
-
* When null, it means the entities involved in this operation use hard
|
|
198
|
-
* deletion or don't support deletion at all. This information is crucial
|
|
199
|
-
* for generating appropriate CRUD operations and ensuring data integrity
|
|
200
|
-
* policies are correctly implemented.
|
|
201
|
-
*
|
|
202
|
-
* Common soft delete patterns:
|
|
203
|
-
* - `"deleted_at"`: Records deletion timestamp
|
|
204
|
-
* - `"deletedAt"`: Camel-cased deletion timestamp
|
|
205
|
-
* - `"is_deleted"`: Boolean flag for deletion status
|
|
206
|
-
* - `null`: No soft deletion (hard delete only)
|
|
207
|
-
*/
|
|
208
|
-
soft_delete_column: string | null;
|
|
209
116
|
}
|
|
210
117
|
}
|
package/lib/agent/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts
CHANGED
|
@@ -27,15 +27,42 @@ export declare namespace IAutoBeInterfaceSchemasReviewApplication {
|
|
|
27
27
|
* interface to understand what outputs are required.
|
|
28
28
|
*/
|
|
29
29
|
interface IProps {
|
|
30
|
+
think: IThink;
|
|
31
|
+
/**
|
|
32
|
+
* Final validated and enhanced schemas ready for production use.
|
|
33
|
+
*
|
|
34
|
+
* DO:
|
|
35
|
+
*
|
|
36
|
+
* - Include valid OpenAPI schema definitions
|
|
37
|
+
* - Include all entities that were in the original input
|
|
38
|
+
* - Provide fixed versions if original schemas have issues
|
|
39
|
+
* - Rename entities correctly if names are wrong
|
|
40
|
+
* - Include created variants if schemas are missing them
|
|
41
|
+
*
|
|
42
|
+
* DO NOT:
|
|
43
|
+
*
|
|
44
|
+
* - Return an empty object {} (this will delete all schemas)
|
|
45
|
+
* - Return undefined or null
|
|
46
|
+
* - Include explanations or excuses in schema descriptions
|
|
47
|
+
* - Leave broken schemas unfixed
|
|
48
|
+
*
|
|
49
|
+
* When original schemas are beyond repair, recreate them properly based on
|
|
50
|
+
* entity names and context. This field becomes the final schemas used by
|
|
51
|
+
* the system, so it must always contain complete, valid schemas.
|
|
52
|
+
*/
|
|
53
|
+
content: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>;
|
|
54
|
+
}
|
|
55
|
+
interface IThink {
|
|
30
56
|
/**
|
|
31
57
|
* Issues and problems found during schema analysis.
|
|
32
58
|
*
|
|
33
|
-
* DO: Document only problems that need fixing.
|
|
34
|
-
*
|
|
59
|
+
* DO: Document only problems that need fixing. DO NOT: Include positive
|
|
60
|
+
* feedback, compliments, or confirmations
|
|
35
61
|
*
|
|
36
62
|
* Focus exclusively on issues organized by severity:
|
|
37
63
|
*
|
|
38
64
|
* Severity levels:
|
|
65
|
+
*
|
|
39
66
|
* - Security vulnerabilities (exposed passwords, missing auth boundaries)
|
|
40
67
|
* - Missing required variants, incorrect type mappings
|
|
41
68
|
* - Missing format specifications, incomplete relationships
|
|
@@ -60,26 +87,5 @@ export declare namespace IAutoBeInterfaceSchemasReviewApplication {
|
|
|
60
87
|
* field.
|
|
61
88
|
*/
|
|
62
89
|
plan: string;
|
|
63
|
-
/**
|
|
64
|
-
* Final validated and enhanced schemas ready for production use.
|
|
65
|
-
*
|
|
66
|
-
* DO:
|
|
67
|
-
* - Include valid OpenAPI schema definitions
|
|
68
|
-
* - Include all entities that were in the original input
|
|
69
|
-
* - Provide fixed versions if original schemas have issues
|
|
70
|
-
* - Rename entities correctly if names are wrong
|
|
71
|
-
* - Include created variants if schemas are missing them
|
|
72
|
-
*
|
|
73
|
-
* DO NOT:
|
|
74
|
-
* - Return an empty object {} (this will delete all schemas)
|
|
75
|
-
* - Return undefined or null
|
|
76
|
-
* - Include explanations or excuses in schema descriptions
|
|
77
|
-
* - Leave broken schemas unfixed
|
|
78
|
-
*
|
|
79
|
-
* When original schemas are beyond repair, recreate them properly based on
|
|
80
|
-
* entity names and context. This field becomes the final schemas used by
|
|
81
|
-
* the system, so it must always contain complete, valid schemas.
|
|
82
|
-
*/
|
|
83
|
-
content: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive<AutoBeOpenApi.IJsonSchema>>;
|
|
84
90
|
}
|
|
85
91
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
export declare namespace JsonSchemaFactory {
|
|
3
|
+
const presets: (typeNames: Set<string>) => Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>;
|
|
4
|
+
const authorize: (schemas: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>) => void;
|
|
5
|
+
const page: (key: string) => AutoBeOpenApi.IJsonSchemaDescriptive.IObject;
|
|
6
|
+
const fix: (path: string, input: unknown) => void;
|
|
7
|
+
const isPage: (key: string) => boolean;
|
|
8
|
+
const getPageName: (key: string) => string;
|
|
9
|
+
}
|