@autobe/agent 0.25.7 → 0.27.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/AutoBeAgent.js +30 -7
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +13 -12
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +27 -20
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeContext.d.ts +4 -1
- package/lib/context/AutoBeTokenUsage.d.ts +1 -1
- package/lib/context/AutoBeTokenUsage.js.map +1 -1
- package/lib/factory/AutoBeFunctionCallingMetricFactory.d.ts +7 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js +35 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js.map +1 -0
- package/lib/factory/AutoBeProcessAggregateFactory.d.ts +13 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js +100 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js.map +1 -0
- package/lib/factory/consentFunctionCall.js +3 -0
- package/lib/factory/consentFunctionCall.js.map +1 -1
- package/lib/factory/createAutoBeContext.d.ts +2 -1
- package/lib/factory/createAutoBeContext.js +82 -28
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/factory/getCommonPrompt.d.ts +2 -0
- package/lib/factory/getCommonPrompt.js +20 -0
- package/lib/factory/getCommonPrompt.js.map +1 -0
- package/lib/index.mjs +20929 -19874
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +2 -2
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +6 -6
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +2 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +75 -74
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +5 -4
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +9 -9
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +2 -17
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.d.ts +6 -0
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js +58 -0
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js.map +1 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +2 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +3 -2
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/{factory/createAutoBeApplication.d.ts → orchestrate/facade/createAutoBeFacadeController.d.ts} +2 -2
- package/lib/{factory/createAutoBeApplication.js → orchestrate/facade/createAutoBeFacadeController.js} +53 -57
- package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplication.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationProps.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationResult.js.map +1 -0
- package/lib/orchestrate/facade/{transformFacadeStateMessage.d.ts → structures/transformFacadeStateMessage.d.ts} +1 -1
- package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js +46 -0
- package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +8 -8
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +3 -2
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +46 -20
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.d.ts +5 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js +51 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.d.ts +11 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js +81 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterface.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +33 -6
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +185 -97
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +234 -59
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +5 -4
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -6
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +4 -4
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +4 -3
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +178 -90
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +176 -88
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +6 -5
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.d.ts +7 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +445 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +14 -0
- package/lib/orchestrate/interface/{orchestrateInterfaceSchemasReview.js → orchestrateInterfaceSchemaReview.js} +302 -121
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +243 -65
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +22 -22
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +7 -7
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.d.ts +101 -0
- package/lib/orchestrate/interface/structures/{IAutobeInterfaceSchemasReviewApplication.js → IAutoBeInterfaceSchemaContentReviewApplication.js} +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.d.ts +97 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +44 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.d.ts +92 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +65 -24
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +94 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.d.ts +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +13 -13
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +1 -0
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +4 -3
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +2 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +2 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +4 -3
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +2 -2
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js +8 -7
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +4 -4
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.d.ts +4 -7
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js +8 -18
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +8 -28
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +16 -280
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.d.ts +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +4 -3
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +14 -13
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +12 -11
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +46 -24
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/{orchestRateRealizeCorrectCasting.js → orchestrateRealizeCorrectCasting.js} +64 -51
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +2 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +3 -3
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +2 -2
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +6 -6
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -1
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -1
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +2 -2
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js +2 -2
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.js +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.js.map +1 -1
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +0 -85
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js +1 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +5 -22
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +10 -10
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +5 -5
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +2 -2
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +2 -1
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +5 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +4 -2
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +28 -27
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +4 -3
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +2 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.d.ts → IAutoBeTestScenarioAuthorizationActor.d.ts} +1 -1
- package/lib/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.js → IAutoBeTestScenarioAuthorizationActor.js} +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationActor.js.map +1 -0
- package/lib/utils/TokenUsageComputer.d.ts +5 -0
- package/lib/utils/TokenUsageComputer.js +29 -0
- package/lib/utils/TokenUsageComputer.js.map +1 -0
- package/package.json +7 -7
- package/src/AutoBeAgent.ts +43 -6
- package/src/AutoBeMockAgent.ts +13 -12
- package/src/constants/AutoBeSystemPromptConstant.ts +27 -20
- package/src/context/AutoBeContext.ts +8 -0
- package/src/context/AutoBeTokenUsage.ts +1 -1
- package/src/factory/AutoBeFunctionCallingMetricFactory.ts +44 -0
- package/src/factory/AutoBeProcessAggregateFactory.ts +141 -0
- package/src/factory/consentFunctionCall.ts +4 -0
- package/src/factory/createAutoBeContext.ts +101 -37
- package/src/factory/getCommonPrompt.ts +25 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +5 -5
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +2 -1
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +2 -1
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +5 -4
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +3 -2
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +9 -9
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +1 -1
- package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +2 -20
- package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.ts +65 -0
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +5 -2
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +135 -0
- package/src/orchestrate/facade/{transformFacadeStateMessage.ts → structures/transformFacadeStateMessage.ts} +2 -2
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +9 -9
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +1 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +45 -20
- package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.ts +55 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.ts +90 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +47 -16
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +20 -19
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +2 -1
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +5 -6
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +25 -24
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +6 -5
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +4 -3
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +270 -0
- package/src/orchestrate/interface/{orchestrateInterfaceSchemasReview.ts → orchestrateInterfaceSchemaReview.ts} +89 -76
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +18 -9
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +26 -22
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +7 -7
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.ts +108 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.ts +104 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +45 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.ts +99 -0
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +45 -3
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +110 -0
- package/src/orchestrate/interface/utils/OperationValidator.ts +1 -1
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +12 -12
- package/src/orchestrate/prisma/orchestratePrisma.ts +6 -5
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +6 -5
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +2 -1
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +2 -1
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +9 -8
- package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +8 -7
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +4 -4
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +14 -28
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +13 -30
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +20 -285
- package/src/orchestrate/realize/orchestrateRealize.ts +4 -3
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +11 -10
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +5 -4
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +77 -62
- package/src/orchestrate/realize/{orchestRateRealizeCorrectCasting.ts → orchestrateRealizeCorrectCasting.ts} +92 -90
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +2 -1
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +3 -3
- package/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.ts +10 -7
- package/src/orchestrate/realize/utils/generateRealizeScenario.ts +1 -1
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +2 -2
- package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +1 -1
- package/src/orchestrate/realize/utils/getRealizeWriteInputType.ts +2 -2
- package/src/orchestrate/realize/utils/printErrorHints.ts +1 -1
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +0 -90
- package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +1 -1
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +6 -24
- package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +10 -10
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +12 -10
- package/src/orchestrate/test/orchestrateTest.ts +3 -2
- package/src/orchestrate/test/orchestrateTestCorrect.ts +5 -1
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +4 -2
- package/src/orchestrate/test/orchestrateTestScenario.ts +32 -31
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +4 -3
- package/src/orchestrate/test/orchestrateTestWrite.ts +2 -1
- package/src/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.ts → IAutoBeTestScenarioAuthorizationActor.ts} +1 -1
- package/src/utils/TokenUsageComputer.ts +35 -0
- package/lib/context/IAutoBeFacadeApplication.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationProps.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationResult.js.map +0 -1
- package/lib/factory/createAutoBeApplication.js.map +0 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js +0 -46
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
- package/src/factory/createAutoBeApplication.ts +0 -123
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +0 -67
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +0 -96
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.js +0 -0
- /package/lib/orchestrate/realize/{orchestRateRealizeCorrectCasting.d.ts → orchestrateRealizeCorrectCasting.d.ts} +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateInterfaceSchemas.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,
|
|
1
|
+
{"version":3,"file":"orchestrateInterfaceSchemas.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,kEA2DC;;;;AA9ED,yCAA2C;AAE3C,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,qGAAkG;AAElG,iEAA8D;AAC9D,mFAAgF;AAChF,qEAAkE;AAClE,2FAAwF;AAExF,SAAsB,2BAA2B,CAG/C,GAAyB,EACzB,KAIC;;;QAED,2BAA2B;QAC3B,uDAA0B,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAExD,oBAAoB;QACpB,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAE,CAAC;QACzC,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YAClC,IAAI,EAAE,CAAC,WAAW,KAAK,IAAI;gBAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YACpE,IAAI,EAAE,CAAC,YAAY,KAAK,IAAI;gBAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACxE,CAAC;Q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACqC;YACjE,QAAQ,EAAE;gBACR,cAAc,EAAE,QAAQ;aACzB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -84,7 +84,7 @@ export declare namespace IAutoBeInterfaceOperationApplication {
|
|
|
84
84
|
* }
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
|
-
interface IOperation extends AutoBeOpenApi.IEndpoint {
|
|
87
|
+
interface IOperation extends Omit<AutoBeOpenApi.IEndpoint, "authorizationActor" | "prerequisites"> {
|
|
88
88
|
/**
|
|
89
89
|
* Specification of the API operation.
|
|
90
90
|
*
|
|
@@ -332,58 +332,58 @@ export declare namespace IAutoBeInterfaceOperationApplication {
|
|
|
332
332
|
*/
|
|
333
333
|
name: string & CamelCasePattern;
|
|
334
334
|
/**
|
|
335
|
-
* Authorization
|
|
335
|
+
* Authorization actors required to access this API operation.
|
|
336
336
|
*
|
|
337
|
-
* This field specifies which user
|
|
338
|
-
* endpoint. Multiple
|
|
337
|
+
* This field specifies which user actors are allowed to access this
|
|
338
|
+
* endpoint. Multiple actors can be specified to allow different types of
|
|
339
339
|
* users to access the same endpoint.
|
|
340
340
|
*
|
|
341
|
-
* ## ⚠️ CRITICAL:
|
|
341
|
+
* ## ⚠️ CRITICAL: Actor Multiplication Effect
|
|
342
342
|
*
|
|
343
|
-
* **EACH
|
|
343
|
+
* **EACH ACTOR IN THIS ARRAY GENERATES A SEPARATE ENDPOINT**
|
|
344
344
|
*
|
|
345
345
|
* - If you specify `["admin", "moderator", "member"]`, this creates 3
|
|
346
346
|
* separate endpoints
|
|
347
|
-
* - Total generated endpoints = operations × average
|
|
348
|
-
* - Example: 100 operations with 3
|
|
347
|
+
* - Total generated endpoints = operations × average actors.length
|
|
348
|
+
* - Example: 100 operations with 3 actors each = 300 actual endpoints
|
|
349
349
|
*
|
|
350
350
|
* ## 🔴 AVOID OVER-GENERATION
|
|
351
351
|
*
|
|
352
|
-
* **DO NOT create
|
|
352
|
+
* **DO NOT create actor-specific endpoints when a public endpoint would
|
|
353
353
|
* suffice:**
|
|
354
354
|
*
|
|
355
355
|
* - ❌ BAD: Separate GET endpoints for admin, member, moderator to view the
|
|
356
356
|
* same public data
|
|
357
|
-
* - ✅ GOOD: Single public endpoint `[]` with
|
|
357
|
+
* - ✅ GOOD: Single public endpoint `[]` with actor-based filtering in business
|
|
358
358
|
* logic
|
|
359
359
|
*
|
|
360
|
-
* **DO NOT enumerate all possible
|
|
360
|
+
* **DO NOT enumerate all possible actors when the Prisma schema uses a
|
|
361
361
|
* single User table:**
|
|
362
362
|
*
|
|
363
363
|
* - If Prisma has a User table with role/permission fields, you likely only
|
|
364
364
|
* need `["user"]`
|
|
365
365
|
* - Avoid listing `["admin", "seller", "buyer", "moderator", ...]`
|
|
366
366
|
* unnecessarily
|
|
367
|
-
* - The actual
|
|
367
|
+
* - The actual actor checking happens in business logic, not at the endpoint
|
|
368
368
|
* level
|
|
369
369
|
*
|
|
370
370
|
* ## Naming Convention
|
|
371
371
|
*
|
|
372
|
-
* DO: Use camelCase for all
|
|
372
|
+
* DO: Use camelCase for all actor names.
|
|
373
373
|
*
|
|
374
374
|
* ## Important Guidelines
|
|
375
375
|
*
|
|
376
376
|
* - Set to empty array `[]` for public endpoints that require no
|
|
377
377
|
* authentication
|
|
378
|
-
* - Set to array with
|
|
379
|
-
* - **MINIMIZE the number of
|
|
380
|
-
* - Consider if the endpoint can be public with
|
|
381
|
-
* - The
|
|
378
|
+
* - Set to array with actor strings for actor-restricted endpoints
|
|
379
|
+
* - **MINIMIZE the number of actors per endpoint to prevent explosion**
|
|
380
|
+
* - Consider if the endpoint can be public with actor-based filtering instead
|
|
381
|
+
* - The actor names match exactly with the user type/actor defined in the
|
|
382
382
|
* database
|
|
383
383
|
* - This will be used by the Realize Agent to generate appropriate decorator
|
|
384
384
|
* and authorization logic in the provider functions
|
|
385
385
|
* - The controller will apply the corresponding authentication decorator
|
|
386
|
-
* based on these
|
|
386
|
+
* based on these actors
|
|
387
387
|
*
|
|
388
388
|
* ## Examples
|
|
389
389
|
*
|
|
@@ -401,17 +401,17 @@ export declare namespace IAutoBeInterfaceOperationApplication {
|
|
|
401
401
|
*
|
|
402
402
|
* 1. **Start with public `[]` for all read operations** unless sensitive data
|
|
403
403
|
* is involved
|
|
404
|
-
* 2. **Use single
|
|
404
|
+
* 2. **Use single actor `["user"]` for authenticated operations** and handle
|
|
405
405
|
* permissions in business logic
|
|
406
|
-
* 3. **Only use multiple
|
|
406
|
+
* 3. **Only use multiple actors when absolutely necessary** for different
|
|
407
407
|
* business logic paths
|
|
408
|
-
* 4. **Remember: Fewer
|
|
408
|
+
* 4. **Remember: Fewer actors = Fewer endpoints = Better performance and
|
|
409
409
|
* maintainability**
|
|
410
410
|
*
|
|
411
411
|
* Note: The actual authentication/authorization implementation will be
|
|
412
412
|
* handled by decorators at the controller level, and the provider function
|
|
413
413
|
* will receive the authenticated user object with the appropriate type.
|
|
414
414
|
*/
|
|
415
|
-
|
|
415
|
+
authorizationActors: Array<string & CamelCasePattern & tags.MinLength<1>>;
|
|
416
416
|
}
|
|
417
417
|
}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export interface IAutoBeInterfaceOperationsReviewApplication {
|
|
|
17
17
|
* process containing review findings and improvement plans, plus the final
|
|
18
18
|
* production-ready operations with all critical issues resolved.
|
|
19
19
|
*
|
|
20
|
-
* @param input Properties containing the thinking process (review & plan)
|
|
21
|
-
*
|
|
20
|
+
* @param input Properties containing the thinking process (review & plan) and
|
|
21
|
+
* the enhanced operations content
|
|
22
22
|
*/
|
|
23
23
|
reviewOperations(input: IAutoBeInterfaceOperationsReviewApplication.IProps): void;
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ export declare namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
|
28
28
|
*
|
|
29
29
|
* Contains both the input operations to be reviewed and the outputs generated
|
|
30
30
|
* by the Interface Operations Review Agent, which will be published as part
|
|
31
|
-
* of the
|
|
31
|
+
* of the AutoBeInterfaceOperationReviewEvent.
|
|
32
32
|
*/
|
|
33
33
|
interface IProps {
|
|
34
34
|
/**
|
|
@@ -64,10 +64,10 @@ export declare namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
|
64
64
|
/**
|
|
65
65
|
* Structured thinking process for comprehensive API operation review.
|
|
66
66
|
*
|
|
67
|
-
* Combines analytical review findings with actionable improvement planning
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
67
|
+
* Combines analytical review findings with actionable improvement planning to
|
|
68
|
+
* guide the systematic enhancement of API operations. This thinking structure
|
|
69
|
+
* ensures all aspects of API quality are evaluated and addressed before
|
|
70
|
+
* producing the final operations.
|
|
71
71
|
*/
|
|
72
72
|
interface IThink {
|
|
73
73
|
/**
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.d.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
export interface IAutoBeInterfaceSchemaContentReviewApplication {
|
|
3
|
+
/**
|
|
4
|
+
* Reviews and validates DTO content completeness and consistency in OpenAPI
|
|
5
|
+
* schemas.
|
|
6
|
+
*
|
|
7
|
+
* This specialized content review function focuses exclusively on ensuring
|
|
8
|
+
* DTOs accurately and completely represent their business entities. It
|
|
9
|
+
* validates field completeness, type accuracy, required field settings, and
|
|
10
|
+
* documentation quality.
|
|
11
|
+
*
|
|
12
|
+
* The review process validates and corrects:
|
|
13
|
+
*
|
|
14
|
+
* - Field completeness against Prisma schema
|
|
15
|
+
* - Data type accuracy (Prisma to OpenAPI type mappings)
|
|
16
|
+
* - Required field arrays matching Prisma nullability
|
|
17
|
+
* - Description quality and comprehensiveness
|
|
18
|
+
* - Consistency across DTO variants (IEntity, ICreate, IUpdate, ISummary)
|
|
19
|
+
* - Missing variant detection and creation
|
|
20
|
+
*
|
|
21
|
+
* @param props Content review results including completeness issues found,
|
|
22
|
+
* fixes applied, and modified schemas
|
|
23
|
+
*/
|
|
24
|
+
review: (props: IAutoBeInterfaceSchemaContentReviewApplication.IProps) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace IAutoBeInterfaceSchemaContentReviewApplication {
|
|
27
|
+
/**
|
|
28
|
+
* Output structure for the content review function.
|
|
29
|
+
*
|
|
30
|
+
* Contains the content analysis, completeness fixes, and schemas modified for
|
|
31
|
+
* content quality during the validation process.
|
|
32
|
+
*/
|
|
33
|
+
interface IProps {
|
|
34
|
+
/** Content analysis and completeness planning information. */
|
|
35
|
+
think: IThink;
|
|
36
|
+
/**
|
|
37
|
+
* Modified schemas resulting from content and completeness fixes.
|
|
38
|
+
*
|
|
39
|
+
* Contains ONLY the schemas that were modified for content reasons during
|
|
40
|
+
* review. This includes both modified existing schemas and newly created
|
|
41
|
+
* variant schemas.
|
|
42
|
+
*
|
|
43
|
+
* Content modifications include:
|
|
44
|
+
*
|
|
45
|
+
* - Adding missing fields from Prisma schema
|
|
46
|
+
* - Correcting data type mappings
|
|
47
|
+
* - Fixing required field arrays
|
|
48
|
+
* - Enhancing or adding descriptions
|
|
49
|
+
* - Creating missing variant types (ISummary, IUpdate, etc.)
|
|
50
|
+
* - Ensuring cross-variant consistency
|
|
51
|
+
*
|
|
52
|
+
* Return empty object {} when all content is already complete and accurate,
|
|
53
|
+
* requiring no modifications.
|
|
54
|
+
*/
|
|
55
|
+
content: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>;
|
|
56
|
+
}
|
|
57
|
+
interface IThink {
|
|
58
|
+
/**
|
|
59
|
+
* Content completeness and quality findings from the review process.
|
|
60
|
+
*
|
|
61
|
+
* Documents all content issues discovered during validation, categorized by
|
|
62
|
+
* type: field completeness, type accuracy, required fields, descriptions,
|
|
63
|
+
* variant consistency, and missing variants. Each issue includes the
|
|
64
|
+
* affected schema and specific problem identified.
|
|
65
|
+
*
|
|
66
|
+
* Common issues documented:
|
|
67
|
+
*
|
|
68
|
+
* - Field Completeness: Missing fields that exist in Prisma schema
|
|
69
|
+
* - Type Accuracy: Incorrect type mappings (e.g., Decimal as string)
|
|
70
|
+
* - Required Fields: Misaligned with Prisma nullable settings
|
|
71
|
+
* - Description Quality: Missing or inadequate descriptions
|
|
72
|
+
* - Variant Consistency: Same field with different types across variants
|
|
73
|
+
* - Missing Variants: Required DTO variants not present
|
|
74
|
+
*
|
|
75
|
+
* Should state "No content or completeness issues found." when all schemas
|
|
76
|
+
* have complete and accurate content.
|
|
77
|
+
*/
|
|
78
|
+
review: string;
|
|
79
|
+
/**
|
|
80
|
+
* Content corrections and completeness fixes applied during review.
|
|
81
|
+
*
|
|
82
|
+
* Lists all content modifications implemented, organized by fix type:
|
|
83
|
+
* fields added, types corrected, required arrays fixed, descriptions
|
|
84
|
+
* enhanced, consistency fixes, and variants created. Documents both field-
|
|
85
|
+
* level changes and schema-level additions.
|
|
86
|
+
*
|
|
87
|
+
* Typical fixes documented:
|
|
88
|
+
*
|
|
89
|
+
* - Fields added to match Prisma schema
|
|
90
|
+
* - Type mappings corrected (Int→integer, Decimal→number)
|
|
91
|
+
* - Required arrays aligned with nullability
|
|
92
|
+
* - Descriptions added or enhanced for clarity
|
|
93
|
+
* - Variant consistency issues resolved
|
|
94
|
+
* - Missing variants created with appropriate fields
|
|
95
|
+
*
|
|
96
|
+
* Should state "No content issues require fixes. All DTOs are complete and
|
|
97
|
+
* consistent." when no content modifications were necessary.
|
|
98
|
+
*/
|
|
99
|
+
plan: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoBeInterfaceSchemaContentReviewApplication.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.ts"],"names":[],"mappings":""}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
export interface IAutoBeInterfaceSchemaRelationReviewApplication {
|
|
3
|
+
/**
|
|
4
|
+
* Reviews and validates DTO relations and structural patterns in OpenAPI
|
|
5
|
+
* schemas.
|
|
6
|
+
*
|
|
7
|
+
* This specialized relation review function focuses exclusively on data
|
|
8
|
+
* relations, foreign key transformations, and structural integrity. It
|
|
9
|
+
* ensures proper modeling of business domains while preventing circular
|
|
10
|
+
* references and enabling efficient code generation.
|
|
11
|
+
*
|
|
12
|
+
* The review process validates and corrects:
|
|
13
|
+
*
|
|
14
|
+
* - Relation classifications (Composition vs Association vs Aggregation)
|
|
15
|
+
* - Foreign key to object transformations in response DTOs
|
|
16
|
+
* - Actor reversal violations (e.g., User containing articles array)
|
|
17
|
+
* - Inline object extractions to named types with $ref
|
|
18
|
+
* - IInvert pattern applications for alternative perspectives
|
|
19
|
+
*
|
|
20
|
+
* @param props Relation review results including violations found, fixes
|
|
21
|
+
* applied, and modified schemas
|
|
22
|
+
*/
|
|
23
|
+
review: (props: IAutoBeInterfaceSchemaRelationReviewApplication.IProps) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace IAutoBeInterfaceSchemaRelationReviewApplication {
|
|
26
|
+
/**
|
|
27
|
+
* Output structure for the relation review function.
|
|
28
|
+
*
|
|
29
|
+
* Contains the relation analysis, structural fixes, and schemas modified for
|
|
30
|
+
* proper relations during the validation process.
|
|
31
|
+
*/
|
|
32
|
+
interface IProps {
|
|
33
|
+
/** Relation analysis and structural planning information. */
|
|
34
|
+
think: IThink;
|
|
35
|
+
/**
|
|
36
|
+
* Modified schemas resulting from relation and structural fixes.
|
|
37
|
+
*
|
|
38
|
+
* Contains ONLY the schemas that were modified for relation or structural
|
|
39
|
+
* reasons during review. This includes both modified existing schemas and
|
|
40
|
+
* newly created schemas (extracted types, IInvert types).
|
|
41
|
+
*
|
|
42
|
+
* Relation modifications include:
|
|
43
|
+
*
|
|
44
|
+
* - Extracting inline objects to named types with $ref
|
|
45
|
+
* - Transforming foreign keys to object references
|
|
46
|
+
* - Removing incorrect reverse relations
|
|
47
|
+
* - Creating new IInvert types for alternative views
|
|
48
|
+
* - Correcting relation types (composition/association/aggregation)
|
|
49
|
+
*
|
|
50
|
+
* Return empty object {} when all relations are already correct and no
|
|
51
|
+
* structural fixes were needed.
|
|
52
|
+
*/
|
|
53
|
+
content: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>;
|
|
54
|
+
}
|
|
55
|
+
interface IThink {
|
|
56
|
+
/**
|
|
57
|
+
* Relation and structural violation findings from the review process.
|
|
58
|
+
*
|
|
59
|
+
* Documents all relation issues discovered during validation, categorized
|
|
60
|
+
* by severity and type. Each violation includes the affected schema,
|
|
61
|
+
* specific relation problem, and theoretical justification.
|
|
62
|
+
*
|
|
63
|
+
* Common violations documented:
|
|
64
|
+
*
|
|
65
|
+
* - CRITICAL: Inline object types instead of named types with $ref
|
|
66
|
+
* - CRITICAL: Actor reversal violations (User.articles[], Seller.sales[])
|
|
67
|
+
* - HIGH: Raw foreign keys instead of object references
|
|
68
|
+
* - HIGH: Wrong relation types (event-driven data as composition)
|
|
69
|
+
* - MEDIUM: Missing IInvert types for independent child views
|
|
70
|
+
* - LOW: Naming convention violations (plural instead of singular)
|
|
71
|
+
*
|
|
72
|
+
* Should state "No relation or structure issues found." when all schemas
|
|
73
|
+
* have correct relations.
|
|
74
|
+
*/
|
|
75
|
+
review: string;
|
|
76
|
+
/**
|
|
77
|
+
* Relation corrections and structural fixes applied during review.
|
|
78
|
+
*
|
|
79
|
+
* Lists all relation modifications implemented, organized by fix type and
|
|
80
|
+
* impact. Documents both schemas modified and new schemas created during
|
|
81
|
+
* the fix process.
|
|
82
|
+
*
|
|
83
|
+
* Typical fixes documented:
|
|
84
|
+
*
|
|
85
|
+
* - Inline objects extracted to named types
|
|
86
|
+
* - Foreign keys transformed to object references
|
|
87
|
+
* - Actor reversal arrays removed with API endpoint suggestions
|
|
88
|
+
* - IInvert types created with parent context
|
|
89
|
+
* - Relation types corrected based on lifecycle analysis
|
|
90
|
+
* - Naming conventions standardized
|
|
91
|
+
*
|
|
92
|
+
* Should state "No relation issues require fixes. All relations are
|
|
93
|
+
* properly structured." when no modifications were necessary.
|
|
94
|
+
*/
|
|
95
|
+
plan: string;
|
|
96
|
+
}
|
|
97
|
+
}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoBeInterfaceSchemaRelationReviewApplication.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AutoBeInterfaceSchemaRefactor } from "@autobe/interface";
|
|
2
|
+
export interface IAutoBeInterfaceSchemaRenameApplication {
|
|
3
|
+
/**
|
|
4
|
+
* Analyze DTO type names and identify naming violations.
|
|
5
|
+
*
|
|
6
|
+
* This method examines existing DTO type names to detect violations of the
|
|
7
|
+
* CRITICAL naming rule: ALL words from the Prisma table name MUST be
|
|
8
|
+
* preserved in the DTO type name. Omitting intermediate words breaks
|
|
9
|
+
* type-to-table traceability and causes system failures.
|
|
10
|
+
*
|
|
11
|
+
* The method receives a list of Prisma table names and current DTO type
|
|
12
|
+
* names, then identifies which type names incorrectly omit service prefixes
|
|
13
|
+
* or intermediate components from their corresponding table names.
|
|
14
|
+
*
|
|
15
|
+
* @param props Properties containing refactoring operations to fix naming
|
|
16
|
+
* violations.
|
|
17
|
+
*/
|
|
18
|
+
rename(props: IAutoBeInterfaceSchemaRenameApplication.IProps): void;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace IAutoBeInterfaceSchemaRenameApplication {
|
|
21
|
+
interface IProps {
|
|
22
|
+
/**
|
|
23
|
+
* List of refactoring operations to rename incorrectly named DTO types.
|
|
24
|
+
*
|
|
25
|
+
* Each refactor specifies:
|
|
26
|
+
*
|
|
27
|
+
* - `from`: The current INCORRECT type name (e.g., "ISale", "IBbsComment")
|
|
28
|
+
* - `to`: The CORRECT type name with all components preserved (e.g.,
|
|
29
|
+
* "IShoppingSale", "IBbsArticleComment")
|
|
30
|
+
*
|
|
31
|
+
* IMPORTANT: Only include type names that violate the naming rules. If a
|
|
32
|
+
* type name correctly preserves all components from the table name, do NOT
|
|
33
|
+
* include it in the refactors list.
|
|
34
|
+
*
|
|
35
|
+
* The orchestrator will automatically handle:
|
|
36
|
+
*
|
|
37
|
+
* - Renaming the base type (e.g., ISale → IShoppingSale)
|
|
38
|
+
* - Renaming all variants (e.g., ISale.ICreate → IShoppingSale.ICreate)
|
|
39
|
+
* - Renaming page types (e.g., IPageISale → IPageIShoppingSale)
|
|
40
|
+
* - Updating all $ref references throughout the OpenAPI document
|
|
41
|
+
*/
|
|
42
|
+
refactors: AutoBeInterfaceSchemaRefactor[];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoBeInterfaceSchemaRenameApplication.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts"],"names":[],"mappings":""}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.d.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { AutoBeOpenApi } from "@autobe/interface";
|
|
2
|
+
export interface IAutoBeInterfaceSchemaSecurityReviewApplication {
|
|
3
|
+
/**
|
|
4
|
+
* Reviews and validates OpenAPI schema definitions for security compliance.
|
|
5
|
+
*
|
|
6
|
+
* This specialized security review function focuses exclusively on
|
|
7
|
+
* authentication boundaries, data protection, and system integrity. It
|
|
8
|
+
* enforces strict security policies to prevent authentication bypass, data
|
|
9
|
+
* exposure, and unauthorized access.
|
|
10
|
+
*
|
|
11
|
+
* The review process identifies and removes:
|
|
12
|
+
*
|
|
13
|
+
* - Authentication context fields in request DTOs (e.g., bbs_member_id)
|
|
14
|
+
* - Password and token fields in response DTOs
|
|
15
|
+
* - System-managed fields in request DTOs
|
|
16
|
+
* - Phantom fields that don't exist in Prisma schema
|
|
17
|
+
*
|
|
18
|
+
* @param props Security review results including violations found, fixes
|
|
19
|
+
* applied, and modified schemas
|
|
20
|
+
*/
|
|
21
|
+
review: (props: IAutoBeInterfaceSchemaSecurityReviewApplication.IProps) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace IAutoBeInterfaceSchemaSecurityReviewApplication {
|
|
24
|
+
/**
|
|
25
|
+
* Output structure for the security review function.
|
|
26
|
+
*
|
|
27
|
+
* Contains the security analysis, remediation actions, and schemas modified
|
|
28
|
+
* for security compliance during the validation process.
|
|
29
|
+
*/
|
|
30
|
+
interface IProps {
|
|
31
|
+
/** Security analysis and remediation planning information. */
|
|
32
|
+
think: IThink;
|
|
33
|
+
/**
|
|
34
|
+
* Modified schemas resulting from security fixes.
|
|
35
|
+
*
|
|
36
|
+
* Contains ONLY the schemas that were modified for security reasons during
|
|
37
|
+
* review. This focused output enables precise tracking of security-related
|
|
38
|
+
* changes.
|
|
39
|
+
*
|
|
40
|
+
* Security modifications include:
|
|
41
|
+
*
|
|
42
|
+
* - Removing authentication context fields (user_id, session_id, etc.)
|
|
43
|
+
* - Removing password/token fields from responses
|
|
44
|
+
* - Removing system-managed fields from requests
|
|
45
|
+
* - Removing phantom fields not in Prisma schema
|
|
46
|
+
*
|
|
47
|
+
* Return empty object {} when all schemas are already secure and no
|
|
48
|
+
* security fixes were needed.
|
|
49
|
+
*/
|
|
50
|
+
content: Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>;
|
|
51
|
+
}
|
|
52
|
+
interface IThink {
|
|
53
|
+
/**
|
|
54
|
+
* Security violation findings from the review process.
|
|
55
|
+
*
|
|
56
|
+
* Documents all security issues discovered during validation, categorized
|
|
57
|
+
* by severity level (CRITICAL, HIGH, MEDIUM, LOW). Each violation includes
|
|
58
|
+
* the affected schema name, field name, and specific security rule
|
|
59
|
+
* violated.
|
|
60
|
+
*
|
|
61
|
+
* Common violations documented:
|
|
62
|
+
*
|
|
63
|
+
* - CRITICAL: Authentication context in requests (bbs_member_id, session_id)
|
|
64
|
+
* - CRITICAL: Password/token exposure in responses
|
|
65
|
+
* - CRITICAL: Phantom fields not existing in Prisma schema
|
|
66
|
+
* - HIGH: System-managed fields in requests
|
|
67
|
+
* - HIGH: Immutable ownership fields in updates
|
|
68
|
+
*
|
|
69
|
+
* Should state "No security violations found." when all schemas pass
|
|
70
|
+
* security validation.
|
|
71
|
+
*/
|
|
72
|
+
review: string;
|
|
73
|
+
/**
|
|
74
|
+
* Security remediation actions applied to fix identified violations.
|
|
75
|
+
*
|
|
76
|
+
* Lists all security fixes implemented during the review process, organized
|
|
77
|
+
* by fix type and priority. Each fix documents which field was removed or
|
|
78
|
+
* modified and from which schema.
|
|
79
|
+
*
|
|
80
|
+
* Typical fixes documented:
|
|
81
|
+
*
|
|
82
|
+
* - Authentication context fields removed from request DTOs
|
|
83
|
+
* - Sensitive data removed from response DTOs
|
|
84
|
+
* - Phantom fields deleted to match Prisma schema
|
|
85
|
+
* - System fields removed from client-controllable DTOs
|
|
86
|
+
*
|
|
87
|
+
* Should state "No security issues require fixes. All schemas are secure."
|
|
88
|
+
* when no security modifications were necessary.
|
|
89
|
+
*/
|
|
90
|
+
plan: string;
|
|
91
|
+
}
|
|
92
|
+
}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoBeInterfaceSchemaSecurityReviewApplication.js","sourceRoot":"","sources":["../../../../src/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.ts"],"names":[],"mappings":""}
|