@autobe/agent 0.28.0 → 0.29.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.js +1 -0
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +1 -0
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeConfigConstant.d.ts +3 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +39 -26
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeContext.d.ts +1 -1
- package/lib/factory/createAutoBeContext.js +5 -3
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +37005 -17000
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.d.ts +7 -2
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +11 -21
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.d.ts +2 -2
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +12 -5
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.d.ts +2 -2
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +53 -50
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +2 -2
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +855 -258
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +15 -22
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +2 -9
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +110 -36
- package/lib/orchestrate/common/AutoBePreliminaryController.d.ts +40 -0
- package/lib/orchestrate/common/AutoBePreliminaryController.js +97 -0
- package/lib/orchestrate/common/AutoBePreliminaryController.js.map +1 -0
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistory.d.ts +8 -0
- package/lib/orchestrate/{realize/histories/transformRealizeCorrectCastingHistories.js → common/histories/transformCommonCorrectCastingHistory.js} +16 -13
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistory.js.map +1 -0
- package/lib/orchestrate/common/histories/transformPreliminaryHistory.d.ts +4 -0
- package/lib/orchestrate/common/histories/transformPreliminaryHistory.js +285 -0
- package/lib/orchestrate/common/histories/transformPreliminaryHistory.js.map +1 -0
- package/lib/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.d.ts → transformPreviousAndLatestCorrectHistory.d.ts} +1 -1
- package/lib/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.js → transformPreviousAndLatestCorrectHistory.js} +4 -4
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js.map +1 -0
- package/lib/orchestrate/common/internal/complementPreliminaryCollection.d.ts +7 -0
- package/lib/orchestrate/common/internal/complementPreliminaryCollection.js +99 -0
- package/lib/orchestrate/common/internal/complementPreliminaryCollection.js.map +1 -0
- package/lib/orchestrate/common/internal/createPreliminaryCollection.d.ts +3 -0
- package/lib/orchestrate/common/internal/createPreliminaryCollection.js +20 -0
- package/lib/orchestrate/common/internal/createPreliminaryCollection.js.map +1 -0
- package/lib/orchestrate/common/internal/validatePreliminary.d.ts +5 -0
- package/lib/orchestrate/common/internal/validatePreliminary.js +217 -0
- package/lib/orchestrate/common/internal/validatePreliminary.js.map +1 -0
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +10 -22
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/orchestrate/common/orchestratePreliminary.d.ts +12 -0
- package/lib/orchestrate/common/orchestratePreliminary.js +231 -0
- package/lib/orchestrate/common/orchestratePreliminary.js.map +1 -0
- package/lib/orchestrate/common/structures/AutoBePreliminaryRequest.d.ts +16 -0
- package/lib/orchestrate/{realize/structures/IAutoBeRealizeAuthorizationApplication.js → common/structures/AutoBePreliminaryRequest.js} +1 -1
- package/lib/orchestrate/common/structures/AutoBePreliminaryRequest.js.map +1 -0
- package/lib/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.d.ts +1 -4
- package/lib/orchestrate/common/structures/IAutoBeOrchestrateResult.d.ts +9 -0
- package/lib/orchestrate/{interface/structures/IAutoBeInterfacePrerequisitesApplication.js → common/structures/IAutoBeOrchestrateResult.js} +1 -1
- package/lib/orchestrate/common/structures/IAutoBeOrchestrateResult.js.map +1 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.d.ts +8 -0
- package/lib/orchestrate/{interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js → common/structures/IAutoBePreliminaryCollection.js} +1 -1
- package/lib/orchestrate/common/structures/IAutoBePreliminaryCollection.js.map +1 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.d.ts +27 -0
- package/lib/orchestrate/{interface/structures/IAutoBeInterfaceOperationsReviewApplication.js → common/structures/IAutoBePreliminaryGetAnalysisFiles.js} +1 -1
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.js.map +1 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.d.ts +28 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.js +3 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.js.map +1 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.d.ts +27 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.js +3 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.js.map +1 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.d.ts +27 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.js +3 -0
- package/lib/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.d.ts +10 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.js +70 -0
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceCommonHistory.d.ts +3 -0
- package/lib/orchestrate/interface/histories/{transformInterfaceCommonHistories.js → transformInterfaceCommonHistory.js} +4 -4
- package/lib/orchestrate/interface/histories/transformInterfaceCommonHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.d.ts +9 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.js +60 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.d.ts +12 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.js +63 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.d.ts +7 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.js +36 -0
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.d.ts +6 -0
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.js +68 -0
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.d.ts +9 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.js +72 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.d.ts +7 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.js +38 -0
- package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.d.ts +8 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.js +73 -0
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.d.ts +11 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.js +95 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.d.ts +5 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.js +54 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.d.ts +12 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.js +75 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterface.js +90 -46
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.d.ts +6 -0
- package/lib/orchestrate/interface/{orchestrateInterfaceAuthorizations.js → orchestrateInterfaceAuthorization.js} +1395 -241
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.d.ts +4 -3
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +2843 -556
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/{orchestrateInterfaceEndpoints.d.ts → orchestrateInterfaceEndpoint.d.ts} +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoint.js +1356 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoint.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.d.ts +4 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +1337 -0
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js.map +1 -0
- package/lib/orchestrate/interface/{orchestrateInterfaceGroups.d.ts → orchestrateInterfaceGroup.d.ts} +1 -2
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +621 -0
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js.map +1 -0
- package/lib/orchestrate/interface/{orchestrateInterfaceOperations.d.ts → orchestrateInterfaceOperation.d.ts} +1 -2
- package/lib/orchestrate/interface/{orchestrateInterfaceOperations.js → orchestrateInterfaceOperation.js} +1299 -232
- package/lib/orchestrate/interface/orchestrateInterfaceOperation.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.d.ts +4 -0
- package/lib/orchestrate/interface/{orchestrateInterfaceOperationsReview.js → orchestrateInterfaceOperationReview.js} +1447 -264
- package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js.map +1 -0
- package/lib/orchestrate/interface/{orchestrateInterfacePrerequisites.d.ts → orchestrateInterfacePrerequisite.d.ts} +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +2159 -0
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js.map +1 -0
- package/lib/orchestrate/interface/{orchestrateInterfaceSchemas.d.ts → orchestrateInterfaceSchema.d.ts} +1 -2
- package/lib/orchestrate/interface/{orchestrateInterfaceSchemas.js → orchestrateInterfaceSchema.js} +2586 -570
- package/lib/orchestrate/interface/orchestrateInterfaceSchema.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +7 -17
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +2875 -588
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.d.ts +56 -5
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.d.ts +57 -10
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.d.ts +55 -10
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.d.ts +96 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.d.ts +6 -82
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +58 -13
- package/lib/orchestrate/interface/structures/{IAutoBeInterfaceOperationsReviewApplication.d.ts → IAutoBeInterfaceOperationReviewApplication.d.ts} +58 -28
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.d.ts +98 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.d.ts +56 -15
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.d.ts +62 -22
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.d.ts +60 -21
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.d.ts +61 -19
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +29 -23
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js +67 -61
- package/lib/orchestrate/interface/utils/JsonSchemaNamingConvention.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.d.ts +2 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +52 -25
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.js +59 -1
- package/lib/orchestrate/interface/utils/OperationValidator.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.d.ts +6 -0
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js +98 -0
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.d.ts +7 -0
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.js +31 -0
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.d.ts +7 -0
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.js +38 -0
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistory.js.map +1 -0
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.d.ts +8 -0
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js +79 -0
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js.map +1 -0
- package/lib/orchestrate/prisma/orchestratePrisma.js +9 -6
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +19 -22
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +2864 -1535
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +2886 -1557
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/{orchestratePrismaSchemas.d.ts → orchestratePrismaSchema.d.ts} +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +3068 -0
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js.map +1 -0
- package/lib/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.d.ts +74 -76
- package/lib/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.d.ts +90 -72
- package/lib/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.d.ts +89 -66
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.d.ts +9 -0
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.js +79 -0
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.d.ts +7 -0
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.js +41 -0
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.d.ts +12 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.js +67 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.d.ts +18 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.js +54 -0
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistory.js.map +1 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.d.ts +4 -2
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +140 -106
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.d.ts +3 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.js +23 -0
- package/lib/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealize.js +4 -4
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.d.ts +5 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +1288 -569
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/{orchestrateRealizeAuthorization.d.ts → orchestrateRealizeAuthorizationWrite.d.ts} +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +1410 -0
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js.map +1 -0
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +664 -140
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +20 -65
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +660 -135
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.d.ts +79 -19
- package/lib/orchestrate/realize/structures/{IAutoBeRealizeAuthorizationApplication.d.ts → IAutoBeRealizeAuthorizationWriteApplication.d.ts} +60 -27
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.js +3 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.d.ts +54 -5
- package/lib/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.d.ts +6 -14
- package/lib/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.d.ts +54 -6
- package/lib/orchestrate/realize/utils/generateRealizeScenario.d.ts +1 -3
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -7
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.d.ts +3 -3
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +23 -20
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.d.ts +4 -0
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.js +36 -0
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistory.d.ts +11 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistory.js +95 -0
- package/lib/orchestrate/test/histories/transformTestScenarioHistory.js.map +1 -0
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.d.ts +10 -0
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.js +67 -0
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.js.map +1 -0
- package/lib/orchestrate/test/histories/{transformTestWriteHistories.d.ts → transformTestWriteHistory.d.ts} +4 -4
- package/lib/orchestrate/test/histories/{transformTestWriteHistories.js → transformTestWriteHistory.js} +79 -76
- package/lib/orchestrate/test/histories/transformTestWriteHistory.js.map +1 -0
- package/lib/orchestrate/test/orchestrateTestCorrect.js +13 -26
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +3 -15
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +1381 -325
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.d.ts +5 -3
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +1072 -291
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +8 -15
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +66 -4
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.d.ts +82 -14
- package/lib/structures/IAutoBeOrchestrateHistory.d.ts +5 -0
- package/lib/structures/IAutoBeOrchestrateHistory.js +3 -0
- package/lib/structures/IAutoBeOrchestrateHistory.js.map +1 -0
- package/lib/utils/executeCachedBatch.d.ts +5 -1
- package/lib/utils/executeCachedBatch.js +23 -5
- package/lib/utils/executeCachedBatch.js.map +1 -1
- package/lib/utils/validateEmptyCode.js +2 -2
- package/lib/utils/validateEmptyCode.js.map +1 -1
- package/package.json +10 -8
- package/src/AutoBeAgent.ts +1 -0
- package/src/AutoBeMockAgent.ts +1 -0
- package/src/constants/AutoBeConfigConstant.ts +2 -0
- package/src/constants/AutoBeSystemPromptConstant.ts +39 -26
- package/src/context/AutoBeContext.ts +1 -1
- package/src/factory/createAutoBeContext.ts +5 -2
- package/src/orchestrate/analyze/histories/transformAnalyzeReviewHistories.ts +17 -28
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.ts +12 -6
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +62 -61
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +2 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +97 -48
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +3 -16
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +1 -2
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +114 -36
- package/src/orchestrate/common/AutoBePreliminaryController.ts +161 -0
- package/src/orchestrate/common/histories/transformCommonCorrectCastingHistory.ts +32 -0
- package/src/orchestrate/common/histories/transformPreliminaryHistory.ts +383 -0
- package/src/orchestrate/common/histories/{transformPreviousAndLatestCorrectHistories.ts → transformPreviousAndLatestCorrectHistory.ts} +1 -1
- package/src/orchestrate/common/internal/complementPreliminaryCollection.ts +123 -0
- package/src/orchestrate/common/internal/createPreliminaryCollection.ts +32 -0
- package/src/orchestrate/common/internal/validatePreliminary.ts +315 -0
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +8 -15
- package/src/orchestrate/common/orchestratePreliminary.ts +361 -0
- package/src/orchestrate/common/structures/AutoBePreliminaryRequest.ts +18 -0
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +1 -4
- package/src/orchestrate/common/structures/IAutoBeOrchestrateResult.ts +13 -0
- package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +9 -0
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisFiles.ts +29 -0
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +30 -0
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +29 -0
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPrismaSchemas.ts +29 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.ts +77 -0
- package/src/orchestrate/interface/histories/{transformInterfaceCommonHistories.ts → transformInterfaceCommonHistory.ts} +1 -1
- package/src/orchestrate/interface/histories/{transformInterfaceGroupHistories.ts → transformInterfaceComplementHistory.ts} +35 -21
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistory.ts +74 -0
- package/src/orchestrate/interface/histories/transformInterfaceEndpointReviewHistory.ts +40 -0
- package/src/orchestrate/interface/histories/transformInterfaceGroupHistory.ts +72 -0
- package/src/orchestrate/interface/histories/transformInterfaceOperationHistory.ts +79 -0
- package/src/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.ts +43 -0
- package/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.ts +89 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaHistory.ts +105 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.ts +56 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.ts +88 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +115 -51
- package/src/orchestrate/interface/{orchestrateInterfaceAuthorizations.ts → orchestrateInterfaceAuthorization.ts} +91 -67
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +174 -78
- package/src/orchestrate/interface/orchestrateInterfaceEndpoint.ts +207 -0
- package/src/orchestrate/interface/orchestrateInterfaceEndpointReview.ts +139 -0
- package/src/orchestrate/interface/orchestrateInterfaceGroup.ts +153 -0
- package/src/orchestrate/interface/{orchestrateInterfaceOperations.ts → orchestrateInterfaceOperation.ts} +109 -86
- package/src/orchestrate/interface/orchestrateInterfaceOperationReview.ts +186 -0
- package/src/orchestrate/interface/{orchestrateInterfacePrerequisites.ts → orchestrateInterfacePrerequisite.ts} +123 -58
- package/src/orchestrate/interface/{orchestrateInterfaceSchemas.ts → orchestrateInterfaceSchema.ts} +96 -90
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +10 -11
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +127 -60
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationsApplication.ts +63 -5
- package/src/orchestrate/interface/structures/IAutoBeInterfaceComplementApplication.ts +67 -12
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointApplication.ts +63 -10
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +106 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +6 -84
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +65 -13
- package/src/orchestrate/interface/structures/{IAutoBeInterfaceOperationsReviewApplication.ts → IAutoBeInterfaceOperationReviewApplication.ts} +65 -30
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +111 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +65 -15
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.ts +71 -24
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.ts +68 -23
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.ts +69 -21
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +31 -23
- package/src/orchestrate/interface/utils/JsonSchemaNamingConvention.ts +73 -61
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +53 -26
- package/src/orchestrate/interface/utils/OperationValidator.ts +69 -1
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistory.ts +109 -0
- package/src/orchestrate/prisma/histories/{transformPrismaCorrectHistories.ts → transformPrismaCorrectHistory.ts} +13 -22
- package/src/orchestrate/prisma/histories/transformPrismaReviewHistory.ts +42 -0
- package/src/orchestrate/prisma/histories/{transformPrismaSchemaHistories.ts → transformPrismaSchemaHistory.ts} +7 -8
- package/src/orchestrate/prisma/orchestratePrisma.ts +12 -17
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +7 -15
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +129 -64
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +115 -59
- package/src/orchestrate/prisma/{orchestratePrismaSchemas.ts → orchestratePrismaSchema.ts} +92 -60
- package/src/orchestrate/prisma/structures/IAutoBePrismaCorrectApplication.ts +81 -76
- package/src/orchestrate/prisma/structures/IAutoBePrismaReviewApplication.ts +97 -72
- package/src/orchestrate/prisma/structures/IAutoBePrismaSchemaApplication.ts +93 -66
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.ts +89 -0
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.ts +45 -0
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.ts +85 -0
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistory.ts +77 -0
- package/src/orchestrate/realize/histories/transformRealizeWriteHistories.ts +152 -121
- package/src/orchestrate/realize/histories/{transformRealizeWriteAuthorizationsHistories.ts → transformRealizeWriteMembershipHistory.ts} +2 -2
- package/src/orchestrate/realize/orchestrateRealize.ts +4 -3
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +155 -97
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationWrite.ts +241 -0
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +88 -86
- package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +17 -56
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +82 -78
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +85 -22
- package/src/orchestrate/realize/structures/{IAutoBeRealizeAuthorizationApplication.ts → IAutoBeRealizeAuthorizationWriteApplication.ts} +64 -29
- package/src/orchestrate/realize/structures/IAutoBeRealizeCorrectApplication.ts +58 -5
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.ts +6 -19
- package/src/orchestrate/realize/structures/IAutoBeRealizeWriteApplication.ts +58 -6
- package/src/orchestrate/realize/utils/generateRealizeScenario.ts +2 -20
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +30 -30
- package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistory.ts +40 -0
- package/src/orchestrate/test/histories/transformTestScenarioHistory.ts +116 -0
- package/src/orchestrate/test/histories/transformTestScenarioReviewHistory.ts +85 -0
- package/src/orchestrate/test/histories/transformTestWriteHistory.ts +169 -0
- package/src/orchestrate/test/orchestrateTestCorrect.ts +13 -19
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +5 -12
- package/src/orchestrate/test/orchestrateTestScenario.ts +143 -83
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +93 -76
- package/src/orchestrate/test/orchestrateTestWrite.ts +7 -7
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +74 -4
- package/src/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.ts +89 -14
- package/src/structures/IAutoBeOrchestrateHistory.ts +6 -0
- package/src/utils/executeCachedBatch.ts +33 -7
- package/src/utils/validateEmptyCode.ts +2 -2
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.d.ts +0 -8
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +0 -16
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +0 -1
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.d.ts +0 -3
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js +0 -62
- package/lib/orchestrate/interface/histories/transformInterfaceAssetHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +0 -8
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +0 -68
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.d.ts +0 -3
- package/lib/orchestrate/interface/histories/transformInterfaceCommonHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.d.ts +0 -9
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +0 -74
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.d.ts +0 -10
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +0 -61
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.d.ts +0 -4
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +0 -34
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.d.ts +0 -6
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +0 -52
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.d.ts +0 -8
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +0 -71
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.d.ts +0 -5
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +0 -36
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.d.ts +0 -3
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js +0 -102
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +0 -9
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +0 -74
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.d.ts +0 -5
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js +0 -51
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js.map +0 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.d.ts +0 -11
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js +0 -81
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.d.ts +0 -4
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +0 -506
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -4
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +0 -487
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +0 -455
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.d.ts +0 -4
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +0 -916
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.d.ts +0 -60
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.d.ts +0 -52
- package/lib/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.d.ts +0 -6
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +0 -95
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.d.ts +0 -3
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js +0 -41
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.d.ts +0 -8
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +0 -62
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +0 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.d.ts +0 -8
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +0 -78
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +0 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +0 -1678
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +0 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +0 -5
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js +0 -44
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +0 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.d.ts +0 -5
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +0 -82
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +0 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.d.ts +0 -5
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +0 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -13
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +0 -29
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +0 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +0 -3
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +0 -23
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +0 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +0 -707
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +0 -1
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.js.map +0 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.d.ts +0 -4
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +0 -33
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +0 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.d.ts +0 -10
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +0 -101
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +0 -1
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.d.ts +0 -8
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +0 -72
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +0 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +0 -1
- package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +0 -25
- package/src/orchestrate/interface/histories/transformInterfaceAssetHistories.ts +0 -72
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +0 -75
- package/src/orchestrate/interface/histories/transformInterfaceComplementHistories.ts +0 -82
- package/src/orchestrate/interface/histories/transformInterfaceEndpointHistories.ts +0 -72
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +0 -40
- package/src/orchestrate/interface/histories/transformInterfaceOperationHistories.ts +0 -78
- package/src/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.ts +0 -44
- package/src/orchestrate/interface/histories/transformInterfacePrerequisitesHistories.ts +0 -118
- package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +0 -80
- package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.ts +0 -55
- package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.ts +0 -90
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +0 -152
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +0 -98
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +0 -91
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +0 -157
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointsReviewApplication.ts +0 -65
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisitesApplication.ts +0 -58
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +0 -104
- package/src/orchestrate/prisma/histories/transformPrismaReviewHistories.ts +0 -69
- package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +0 -52
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +0 -95
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +0 -30
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +0 -46
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +0 -185
- package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +0 -39
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +0 -125
- package/src/orchestrate/test/histories/transformTestScenarioReviewHistories.ts +0 -89
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +0 -172
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.complementPreliminaryCollection = void 0;
|
|
7
|
+
const utils_1 = require("@autobe/utils");
|
|
8
|
+
const openapi_1 = require("@samchon/openapi");
|
|
9
|
+
const pluralize_1 = __importDefault(require("pluralize"));
|
|
10
|
+
const tstl_1 = require("tstl");
|
|
11
|
+
const NamingConvention_1 = require("typia/lib/utils/NamingConvention");
|
|
12
|
+
const complementPreliminaryCollection = (props) => {
|
|
13
|
+
//----
|
|
14
|
+
// Complement interface operations with prerequisites
|
|
15
|
+
//----
|
|
16
|
+
if (props.kinds.includes("interfaceOperations") === true) {
|
|
17
|
+
const dict = new tstl_1.HashMap(props.all.interfaceOperations.map((op) => new tstl_1.Pair({ method: op.method, path: op.path }, op)), utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals);
|
|
18
|
+
const endpoints = new tstl_1.HashSet(utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals);
|
|
19
|
+
const insert = (op) => {
|
|
20
|
+
var _a;
|
|
21
|
+
if (endpoints.has(op) === true)
|
|
22
|
+
return;
|
|
23
|
+
endpoints.insert({
|
|
24
|
+
method: op.method,
|
|
25
|
+
path: op.path,
|
|
26
|
+
});
|
|
27
|
+
for (const pre of (_a = op.prerequisites) !== null && _a !== void 0 ? _a : []) {
|
|
28
|
+
insert(dict.get(pre.endpoint));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
for (const op of props.local.interfaceOperations)
|
|
32
|
+
insert(op);
|
|
33
|
+
props.local.interfaceOperations.splice(0, props.local.interfaceOperations.length);
|
|
34
|
+
props.local.interfaceOperations.push(...Array.from(endpoints).map((ep) => dict.get(ep)));
|
|
35
|
+
// Add DTO schemas used in operations
|
|
36
|
+
if (props.kinds.includes("interfaceSchemas") === true) {
|
|
37
|
+
const typeNames = new Set();
|
|
38
|
+
for (const op of props.local.interfaceOperations) {
|
|
39
|
+
if (op.requestBody !== null)
|
|
40
|
+
typeNames.add(op.requestBody.typeName);
|
|
41
|
+
if (op.responseBody !== null)
|
|
42
|
+
typeNames.add(op.responseBody.typeName);
|
|
43
|
+
}
|
|
44
|
+
for (const key of typeNames)
|
|
45
|
+
if (props.local.interfaceSchemas[key] === undefined)
|
|
46
|
+
props.local.interfaceSchemas[key] = props.all.interfaceSchemas[key];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//----
|
|
50
|
+
// Complement DTO schemas with iterative references
|
|
51
|
+
//----
|
|
52
|
+
if (props.kinds.includes("interfaceSchemas") === true) {
|
|
53
|
+
const unique = new Set(Object.keys(props.local.interfaceSchemas));
|
|
54
|
+
for (const dto of Object.values(props.local.interfaceSchemas))
|
|
55
|
+
openapi_1.OpenApiTypeChecker.visit({
|
|
56
|
+
components: {
|
|
57
|
+
schemas: props.all.interfaceSchemas,
|
|
58
|
+
},
|
|
59
|
+
schema: dto,
|
|
60
|
+
closure: (next) => {
|
|
61
|
+
if (openapi_1.OpenApiTypeChecker.isReference(next))
|
|
62
|
+
unique.add(next.$ref.split("/").pop());
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
for (const key of unique)
|
|
66
|
+
if (props.local.interfaceSchemas[key] === undefined)
|
|
67
|
+
props.local.interfaceSchemas[key] = props.all.interfaceSchemas[key];
|
|
68
|
+
if (props.kinds.includes("prismaSchemas") === true) {
|
|
69
|
+
const prisma = new Set();
|
|
70
|
+
for (const [key, value] of Object.entries(props.local.interfaceSchemas)) {
|
|
71
|
+
openapi_1.OpenApiTypeChecker.visit({
|
|
72
|
+
components: {
|
|
73
|
+
schemas: props.all.interfaceSchemas,
|
|
74
|
+
},
|
|
75
|
+
schema: value,
|
|
76
|
+
closure: (next) => {
|
|
77
|
+
if (openapi_1.OpenApiTypeChecker.isObject(next) === false)
|
|
78
|
+
return;
|
|
79
|
+
const name = next["x-autobe-prisma-schema"];
|
|
80
|
+
if (name !== null &&
|
|
81
|
+
name !== undefined &&
|
|
82
|
+
props.all.prismaSchemas.find((m) => m.name === name) !== undefined)
|
|
83
|
+
prisma.add(name);
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
const candidate = (0, pluralize_1.default)(NamingConvention_1.NamingConvention.snake(key));
|
|
87
|
+
if (props.all.prismaSchemas.find((m) => m.name === candidate) !==
|
|
88
|
+
undefined)
|
|
89
|
+
prisma.add(candidate);
|
|
90
|
+
}
|
|
91
|
+
for (const name of prisma) {
|
|
92
|
+
if (props.local.prismaSchemas.find((m) => m.name === name) === undefined)
|
|
93
|
+
props.local.prismaSchemas.push(props.all.prismaSchemas.find((m) => m.name === name));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
exports.complementPreliminaryCollection = complementPreliminaryCollection;
|
|
99
|
+
//# sourceMappingURL=complementPreliminaryCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complementPreliminaryCollection.js","sourceRoot":"","sources":["../../../../src/orchestrate/common/internal/complementPreliminaryCollection.ts"],"names":[],"mappings":";;;;;;AACA,yCAAgE;AAChE,8CAAsD;AACtD,0DAAkC;AAClC,+BAA8C;AAC9C,uEAAoE;AAI7D,MAAM,+BAA+B,GAAG,CAAC,KAI/C,EAAQ,EAAE;IACT,MAAM;IACN,qDAAqD;IACrD,MAAM;IACN,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,qBAAqB,CAAC,KAAK,IAAI,EAAE,CAAC;QACzD,MAAM,IAAI,GACR,IAAI,cAAO,CACT,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,GAAG,CAC/B,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,WAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3D,EACD,uCAA+B,CAAC,QAAQ,EACxC,uCAA+B,CAAC,MAAM,CACvC,CAAC;QACJ,MAAM,SAAS,GAAqC,IAAI,cAAO,CAC7D,uCAA+B,CAAC,QAAQ,EACxC,uCAA+B,CAAC,MAAM,CACvC,CAAC;QACF,MAAM,MAAM,GAAG,CAAC,EAA4B,EAAE,EAAE;;YAC9C,IAAI,SAAS,CAAC,GAAG,C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E,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,SAAS;oBAEpE,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAC5B,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAE,CACtD,CAAC;YACN,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAjHW,QAAA,+BAA+B,mCAiH1C"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AutoBeState } from "../../../context/AutoBeState";
|
|
2
|
+
import { IAutoBePreliminaryCollection } from "../structures/IAutoBePreliminaryCollection";
|
|
3
|
+
export declare function createPreliminaryCollection(state: AutoBeState | null, defined?: Partial<IAutoBePreliminaryCollection>): IAutoBePreliminaryCollection;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPreliminaryCollection = createPreliminaryCollection;
|
|
4
|
+
function createPreliminaryCollection(state, defined) {
|
|
5
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
6
|
+
if (state === null)
|
|
7
|
+
return {
|
|
8
|
+
analysisFiles: ((_a = defined === null || defined === void 0 ? void 0 : defined.analysisFiles) !== null && _a !== void 0 ? _a : []).slice(),
|
|
9
|
+
prismaSchemas: ((_b = defined === null || defined === void 0 ? void 0 : defined.prismaSchemas) !== null && _b !== void 0 ? _b : []).slice(),
|
|
10
|
+
interfaceOperations: ((_c = defined === null || defined === void 0 ? void 0 : defined.interfaceOperations) !== null && _c !== void 0 ? _c : []).slice(),
|
|
11
|
+
interfaceSchemas: Object.fromEntries(Object.entries((_d = defined === null || defined === void 0 ? void 0 : defined.interfaceSchemas) !== null && _d !== void 0 ? _d : {})),
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
analysisFiles: (_g = (_e = defined === null || defined === void 0 ? void 0 : defined.analysisFiles) !== null && _e !== void 0 ? _e : (_f = state.analyze) === null || _f === void 0 ? void 0 : _f.files) !== null && _g !== void 0 ? _g : [],
|
|
15
|
+
prismaSchemas: (_k = (_h = defined === null || defined === void 0 ? void 0 : defined.prismaSchemas) !== null && _h !== void 0 ? _h : (_j = state.prisma) === null || _j === void 0 ? void 0 : _j.result.data.files.map((f) => f.models).flat()) !== null && _k !== void 0 ? _k : [],
|
|
16
|
+
interfaceOperations: (_o = (_l = defined === null || defined === void 0 ? void 0 : defined.interfaceOperations) !== null && _l !== void 0 ? _l : (_m = state.interface) === null || _m === void 0 ? void 0 : _m.document.operations) !== null && _o !== void 0 ? _o : [],
|
|
17
|
+
interfaceSchemas: (_r = (_p = defined === null || defined === void 0 ? void 0 : defined.interfaceSchemas) !== null && _p !== void 0 ? _p : (_q = state.interface) === null || _q === void 0 ? void 0 : _q.document.components.schemas) !== null && _r !== void 0 ? _r : {},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=createPreliminaryCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPreliminaryCollection.js","sourceRoot":"","sources":["../../../../src/orchestrate/common/internal/createPreliminaryCollection.ts"],"names":[],"mappings":";;AAGA,kEA4BC;AA5BD,SAAgB,2BAA2B,CACzC,KAAyB,EACzB,OAA+C;;IAE/C,IAAI,KAAK,KAAK,IAAI;QAChB,OAAO;YACL,aAAa,EAAE,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,EAAE,CAAC,CAAC,KAAK,EAAE;YACrD,aAAa,EAAE,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,EAAE,CAAC,CAAC,KAAK,EAAE;YACrD,mBAAmB,EAAE,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,mCAAI,EAAE,CAAC,CAAC,KAAK,EAAE;YACjE,gBAAgB,EAAE,MAAM,CAAC,WAAW,CAClC,MAAM,CAAC,OAAO,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,EAAE,CAAC,CAChD;SACF,CAAC;IACJ,OAAO;QACL,aAAa,EAAE,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,MAAA,KAAK,CAAC,OAAO,0CAAE,KAAK,mCAAI,EAAE;QACnE,aAAa,EACX,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCACtB,MAAA,KAAK,CAAC,MAAM,0CAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,mCAC3D,EAAE;QACJ,mBAAmB,EACjB,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,mCAC5B,MAAA,KAAK,CAAC,SAAS,0CAAE,QAAQ,CAAC,UAAU,mCACpC,EAAE;QACJ,gBAAgB,EACd,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCACzB,MAAA,KAAK,CAAC,SAAS,0CAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,mCAC5C,EAAE;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AutoBePreliminaryKind } from "@autobe/interface";
|
|
2
|
+
import { IValidation } from "typia";
|
|
3
|
+
import { AutoBePreliminaryController } from "../AutoBePreliminaryController";
|
|
4
|
+
import { IAutoBePreliminaryRequest } from "../structures/AutoBePreliminaryRequest";
|
|
5
|
+
export declare const validatePreliminary: <Kind extends AutoBePreliminaryKind>(controller: AutoBePreliminaryController<Kind>, data: IAutoBePreliminaryRequest<Kind>) => IValidation<IAutoBePreliminaryRequest<Kind>>;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.validatePreliminary = void 0;
|
|
7
|
+
const utils_1 = require("@autobe/utils");
|
|
8
|
+
const tstl_1 = require("tstl");
|
|
9
|
+
const typia_1 = __importDefault(require("typia"));
|
|
10
|
+
const validatePreliminary = (controller, data) => {
|
|
11
|
+
const func = PreliminaryApplicationValidator[data.request.type];
|
|
12
|
+
return func(controller, data);
|
|
13
|
+
};
|
|
14
|
+
exports.validatePreliminary = validatePreliminary;
|
|
15
|
+
var PreliminaryApplicationValidator;
|
|
16
|
+
(function (PreliminaryApplicationValidator) {
|
|
17
|
+
PreliminaryApplicationValidator.getAnalysisFiles = (controller, input) => {
|
|
18
|
+
const all = new Set(controller.getAll().analysisFiles.map((f) => f.filename));
|
|
19
|
+
const oldbie = new Set(controller.getLocal().analysisFiles.map((f) => f.filename));
|
|
20
|
+
const newbie = new Set(controller
|
|
21
|
+
.getAll()
|
|
22
|
+
.analysisFiles.filter((f) => oldbie.has(f.filename) === false)
|
|
23
|
+
.map((f) => f.filename));
|
|
24
|
+
const description = utils_1.StringUtil.trim `
|
|
25
|
+
Here are the list of analysis requirement document files you can use.
|
|
26
|
+
|
|
27
|
+
Please select from the below. Never type arbitrary file names.
|
|
28
|
+
|
|
29
|
+
Filename | Document Type
|
|
30
|
+
---------|---------------
|
|
31
|
+
${controller
|
|
32
|
+
.getAll()
|
|
33
|
+
.analysisFiles.filter((f) => newbie.has(f.filename))
|
|
34
|
+
.map((f) => [f.filename, f.documentType].join(" | "))
|
|
35
|
+
.join("\n")}
|
|
36
|
+
|
|
37
|
+
${newbie.size === 0
|
|
38
|
+
? "<!--\nfilename: PRELIMINARY_ANALYSIS_FILE_EXHAUSTED.md\n-->\n> All analysis files have been loaded into memory, so no available analysis files remain.\n>\n> Therefore, never call `process()` with `type: \"getAnalysisFiles\"` again. If you're planning to request more analysis files, it is an absolutely wrong decision. You must proceed to complete your task instead.\n>\n> To reiterate: never call `process()` with `type: \"getAnalysisFiles\"` again." /* AutoBeSystemPromptConstant.PRELIMINARY_ANALYSIS_FILE_EXHAUSTED */
|
|
39
|
+
: ""}
|
|
40
|
+
`;
|
|
41
|
+
const errors = [];
|
|
42
|
+
input.request.fileNames.forEach((key, i) => {
|
|
43
|
+
if (all.has(key) === false)
|
|
44
|
+
errors.push({
|
|
45
|
+
path: `$input.request.fileNames[${i}]`,
|
|
46
|
+
value: key,
|
|
47
|
+
expected: Array.from(newbie)
|
|
48
|
+
.map((x) => JSON.stringify(x))
|
|
49
|
+
.join(" | "),
|
|
50
|
+
description,
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
if (input.request.fileNames.every((k) => oldbie.has(k)))
|
|
54
|
+
errors.push({
|
|
55
|
+
path: `$input.request`,
|
|
56
|
+
value: input.request,
|
|
57
|
+
expected: controller
|
|
58
|
+
.getArgumentTypeNames()
|
|
59
|
+
.filter((k) => k !== "IAutoBePreliminaryGetAnalysisFiles")
|
|
60
|
+
.join(" | "),
|
|
61
|
+
description: "<!--\nfilename: PRELIMINARY_ARGUMENT_ALL_DUPLICATED.md\n-->\n# All Requested Items Already Loaded\n\nYou requested items from `\"{{REQUEST_TYPE}}\"`, but **all of them are already in your conversation history**.\n\nThe type `\"{{REQUEST_TYPE}}\"` has been **removed from the union**. You cannot call it again.\n\n## What You Should Do\n\n**Check the `expected` field in the validation error** - it shows which types are still available.\n\nCall one of those types, or call `type: \"complete\"` to finish your task.\n\n**Important:** The type **name** must be different, not just the parameters.\n\n```typescript\n// \u2705 CORRECT - Different type name\nprocess({\n request: {\n type: \"different-type\", // From 'expected' field\n ...\n }\n})\n\n// \u274C WRONG - Same type name\nprocess({\n request: {\n type: \"{{REQUEST_TYPE}}\", // Removed from union\n ...\n }\n})\n```\n\n## Why Same Type Won't Work\n\nChanging parameters doesn't change the type name:\n\n```typescript\n// All FORBIDDEN - same type name \"{{REQUEST_TYPE}}\":\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [\"a\"] } }) // \u274C\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [\"b\", \"c\"] } }) // \u274C\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [] } }) // \u274C\n```\n\nThe type `\"{{REQUEST_TYPE}}\"` is removed from the union. You must use a different type name.\n\n## Summary\n\n1. All requested items are already loaded\n2. Type `\"{{REQUEST_TYPE}}\"` removed from union\n3. Check `expected` field for available types\n4. Use a different type name (not just different parameters)\n5. Do NOT call `type: \"{{REQUEST_TYPE}}\"` again" /* AutoBeSystemPromptConstant.PRELIMINARY_ARGUMENT_ALL_DUPLICATED */.replaceAll("{{REQUEST_TYPE}}", [
|
|
62
|
+
"getAnalysisFiles"
|
|
63
|
+
][0]),
|
|
64
|
+
});
|
|
65
|
+
return finalize(input, errors);
|
|
66
|
+
};
|
|
67
|
+
PreliminaryApplicationValidator.getPrismaSchemas = (controller, input) => {
|
|
68
|
+
const all = new Set(controller.getAll().prismaSchemas.map((s) => s.name));
|
|
69
|
+
const oldbie = new Set(controller.getLocal().prismaSchemas.map((s) => s.name));
|
|
70
|
+
const newbie = new Set(controller
|
|
71
|
+
.getAll()
|
|
72
|
+
.prismaSchemas.filter((s) => oldbie.has(s.name) === false)
|
|
73
|
+
.map((s) => s.name));
|
|
74
|
+
const quoted = Array.from(newbie).map((x) => JSON.stringify(x));
|
|
75
|
+
const description = utils_1.StringUtil.trim `
|
|
76
|
+
Here are the list of prisma schema models you can use.
|
|
77
|
+
|
|
78
|
+
Please select from the below. Never assume non-existing models.
|
|
79
|
+
|
|
80
|
+
${quoted.map((q) => `- ${q}`).join("\n")}
|
|
81
|
+
|
|
82
|
+
${newbie.size === 0
|
|
83
|
+
? "<!--\nfilename: PRELIMINARY_PRISMA_SCHEMA_EXHAUSTED.md\n-->\n> All Prisma schemas have been loaded into memory, so no available Prisma schemas remain.\n>\n> Therefore, never call `process()` with `type: \"getPrismaSchemas\"` again. If you're planning to request more Prisma schemas, it is an absolutely wrong decision. You must proceed to complete your task instead.\n>\n> To reiterate: never call `process()` with `type: \"getPrismaSchemas\"` again." /* AutoBeSystemPromptConstant.PRELIMINARY_PRISMA_SCHEMA_EXHAUSTED */
|
|
84
|
+
: ""}
|
|
85
|
+
`;
|
|
86
|
+
const errors = [];
|
|
87
|
+
input.request.schemaNames.forEach((key, i) => {
|
|
88
|
+
if (all.has(key) === false)
|
|
89
|
+
errors.push({
|
|
90
|
+
path: `$input.request.schemaNames[${i}]`,
|
|
91
|
+
value: key,
|
|
92
|
+
expected: quoted.join(" | "),
|
|
93
|
+
description,
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
if (input.request.schemaNames.every((k) => oldbie.has(k)))
|
|
97
|
+
errors.push({
|
|
98
|
+
path: `$input.request`,
|
|
99
|
+
value: input.request,
|
|
100
|
+
expected: controller
|
|
101
|
+
.getArgumentTypeNames()
|
|
102
|
+
.filter((k) => k !== "IAutoBePreliminaryGetPrismaSchemas")
|
|
103
|
+
.join(" | "),
|
|
104
|
+
description: "<!--\nfilename: PRELIMINARY_ARGUMENT_ALL_DUPLICATED.md\n-->\n# All Requested Items Already Loaded\n\nYou requested items from `\"{{REQUEST_TYPE}}\"`, but **all of them are already in your conversation history**.\n\nThe type `\"{{REQUEST_TYPE}}\"` has been **removed from the union**. You cannot call it again.\n\n## What You Should Do\n\n**Check the `expected` field in the validation error** - it shows which types are still available.\n\nCall one of those types, or call `type: \"complete\"` to finish your task.\n\n**Important:** The type **name** must be different, not just the parameters.\n\n```typescript\n// \u2705 CORRECT - Different type name\nprocess({\n request: {\n type: \"different-type\", // From 'expected' field\n ...\n }\n})\n\n// \u274C WRONG - Same type name\nprocess({\n request: {\n type: \"{{REQUEST_TYPE}}\", // Removed from union\n ...\n }\n})\n```\n\n## Why Same Type Won't Work\n\nChanging parameters doesn't change the type name:\n\n```typescript\n// All FORBIDDEN - same type name \"{{REQUEST_TYPE}}\":\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [\"a\"] } }) // \u274C\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [\"b\", \"c\"] } }) // \u274C\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [] } }) // \u274C\n```\n\nThe type `\"{{REQUEST_TYPE}}\"` is removed from the union. You must use a different type name.\n\n## Summary\n\n1. All requested items are already loaded\n2. Type `\"{{REQUEST_TYPE}}\"` removed from union\n3. Check `expected` field for available types\n4. Use a different type name (not just different parameters)\n5. Do NOT call `type: \"{{REQUEST_TYPE}}\"` again" /* AutoBeSystemPromptConstant.PRELIMINARY_ARGUMENT_ALL_DUPLICATED */.replaceAll("{{REQUEST_TYPE}}", [
|
|
105
|
+
"getPrismaSchemas"
|
|
106
|
+
][0]),
|
|
107
|
+
});
|
|
108
|
+
return finalize(input, errors);
|
|
109
|
+
};
|
|
110
|
+
PreliminaryApplicationValidator.getInterfaceOperations = (controller, input) => {
|
|
111
|
+
const all = new tstl_1.HashSet(controller.getAll().interfaceOperations.map((o) => ({
|
|
112
|
+
method: o.method,
|
|
113
|
+
path: o.path,
|
|
114
|
+
})), utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals);
|
|
115
|
+
const oldbie = new tstl_1.HashSet(controller.getLocal().interfaceOperations.map((o) => ({
|
|
116
|
+
method: o.method,
|
|
117
|
+
path: o.path,
|
|
118
|
+
})), utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals);
|
|
119
|
+
const newbie = new tstl_1.HashSet(controller
|
|
120
|
+
.getAll()
|
|
121
|
+
.interfaceOperations.map((o) => ({
|
|
122
|
+
method: o.method,
|
|
123
|
+
path: o.path,
|
|
124
|
+
}))
|
|
125
|
+
.filter((e) => oldbie.has(e) === false), utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals);
|
|
126
|
+
const description = utils_1.StringUtil.trim `
|
|
127
|
+
Here are the list of API endpoints you can use.
|
|
128
|
+
|
|
129
|
+
Please select from the below. Never assume non-existing endpoints.
|
|
130
|
+
|
|
131
|
+
Method | Path
|
|
132
|
+
-------|------
|
|
133
|
+
${newbie
|
|
134
|
+
.toJSON()
|
|
135
|
+
.map((o) => [o.method, o.path].join(" | "))
|
|
136
|
+
.join("\n")}
|
|
137
|
+
|
|
138
|
+
${newbie.size() === 0
|
|
139
|
+
? "<!--\nfilename: PRELIMINARY_INTERFACE_OPERATION_EXHAUSTED.md\n-->\n> All API operations have been loaded into memory, so no available API operations remain.\n>\n> Therefore, never call `process()` with `type: \"getInterfaceOperations\"` again. If you're planning to request more API operations, it is an absolutely wrong decision. You must proceed to complete your task instead.\n>\n> To reiterate: never call `process()` with `type: \"getInterfaceOperations\"` again." /* AutoBeSystemPromptConstant.PRELIMINARY_INTERFACE_OPERATION_EXHAUSTED */
|
|
140
|
+
: ""}
|
|
141
|
+
`;
|
|
142
|
+
const errors = [];
|
|
143
|
+
input.request.endpoints.forEach((key, i) => {
|
|
144
|
+
if (all.has(key) === false)
|
|
145
|
+
errors.push({
|
|
146
|
+
path: `$input.request.endpoints[${i}]`,
|
|
147
|
+
value: key,
|
|
148
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
149
|
+
description,
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
if (input.request.endpoints.every((k) => oldbie.has(k)))
|
|
153
|
+
errors.push({
|
|
154
|
+
path: `$input.request`,
|
|
155
|
+
value: input.request,
|
|
156
|
+
expected: controller
|
|
157
|
+
.getArgumentTypeNames()
|
|
158
|
+
.filter((k) => k !== "IAutoBePreliminaryGetInterfaceOperations")
|
|
159
|
+
.join(" | "),
|
|
160
|
+
description: "<!--\nfilename: PRELIMINARY_ARGUMENT_ALL_DUPLICATED.md\n-->\n# All Requested Items Already Loaded\n\nYou requested items from `\"{{REQUEST_TYPE}}\"`, but **all of them are already in your conversation history**.\n\nThe type `\"{{REQUEST_TYPE}}\"` has been **removed from the union**. You cannot call it again.\n\n## What You Should Do\n\n**Check the `expected` field in the validation error** - it shows which types are still available.\n\nCall one of those types, or call `type: \"complete\"` to finish your task.\n\n**Important:** The type **name** must be different, not just the parameters.\n\n```typescript\n// \u2705 CORRECT - Different type name\nprocess({\n request: {\n type: \"different-type\", // From 'expected' field\n ...\n }\n})\n\n// \u274C WRONG - Same type name\nprocess({\n request: {\n type: \"{{REQUEST_TYPE}}\", // Removed from union\n ...\n }\n})\n```\n\n## Why Same Type Won't Work\n\nChanging parameters doesn't change the type name:\n\n```typescript\n// All FORBIDDEN - same type name \"{{REQUEST_TYPE}}\":\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [\"a\"] } }) // \u274C\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [\"b\", \"c\"] } }) // \u274C\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [] } }) // \u274C\n```\n\nThe type `\"{{REQUEST_TYPE}}\"` is removed from the union. You must use a different type name.\n\n## Summary\n\n1. All requested items are already loaded\n2. Type `\"{{REQUEST_TYPE}}\"` removed from union\n3. Check `expected` field for available types\n4. Use a different type name (not just different parameters)\n5. Do NOT call `type: \"{{REQUEST_TYPE}}\"` again" /* AutoBeSystemPromptConstant.PRELIMINARY_ARGUMENT_ALL_DUPLICATED */.replaceAll("{{REQUEST_TYPE}}", [
|
|
161
|
+
"getInterfaceOperations"
|
|
162
|
+
][0]),
|
|
163
|
+
});
|
|
164
|
+
return finalize(input, errors);
|
|
165
|
+
};
|
|
166
|
+
PreliminaryApplicationValidator.getInterfaceSchemas = (controller, input) => {
|
|
167
|
+
const all = new Set(Object.keys(controller.getAll().interfaceSchemas));
|
|
168
|
+
const oldbie = new Set(Object.keys(controller.getLocal().interfaceSchemas));
|
|
169
|
+
const newbie = new Set(Object.keys(controller.getAll().interfaceSchemas).filter((k) => oldbie.has(k) === false));
|
|
170
|
+
const quoted = Array.from(newbie).map((k) => JSON.stringify(k));
|
|
171
|
+
const description = utils_1.StringUtil.trim `
|
|
172
|
+
Here are the list of interface schemas you can use.
|
|
173
|
+
|
|
174
|
+
Please select from the below. Never assume non-existing schemas.
|
|
175
|
+
|
|
176
|
+
${quoted.map((q) => `- ${q}`).join("\n")}
|
|
177
|
+
|
|
178
|
+
${newbie.size === 0
|
|
179
|
+
? "<!--\nfilename: PRELIMINARY_INTERFACE_SCHEMA_EXHAUSTED.md\n-->\n> All TypeScript type schemas have been loaded into memory, so no available type schemas remain.\n>\n> Therefore, never call `process()` with `type: \"getInterfaceSchemas\"` again. If you're planning to request more type schemas, it is an absolutely wrong decision. You must proceed to complete your task instead.\n>\n> To reiterate: never call `process()` with `type: \"getInterfaceSchemas\"` again." /* AutoBeSystemPromptConstant.PRELIMINARY_INTERFACE_SCHEMA_EXHAUSTED */
|
|
180
|
+
: ""}
|
|
181
|
+
`;
|
|
182
|
+
const errors = [];
|
|
183
|
+
input.request.typeNames.forEach((key, i) => {
|
|
184
|
+
if (all.has(key) === false)
|
|
185
|
+
errors.push({
|
|
186
|
+
path: `$input.request.typeNames[${i}]`,
|
|
187
|
+
value: key,
|
|
188
|
+
expected: quoted.join(" | "),
|
|
189
|
+
description,
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
if (input.request.typeNames.every((k) => oldbie.has(k)))
|
|
193
|
+
errors.push({
|
|
194
|
+
path: `$input.request`,
|
|
195
|
+
value: input.request,
|
|
196
|
+
expected: controller
|
|
197
|
+
.getArgumentTypeNames()
|
|
198
|
+
.filter((k) => k !== "IAutoBePreliminaryGetInterfaceSchemas")
|
|
199
|
+
.join(" | "),
|
|
200
|
+
description: "<!--\nfilename: PRELIMINARY_ARGUMENT_ALL_DUPLICATED.md\n-->\n# All Requested Items Already Loaded\n\nYou requested items from `\"{{REQUEST_TYPE}}\"`, but **all of them are already in your conversation history**.\n\nThe type `\"{{REQUEST_TYPE}}\"` has been **removed from the union**. You cannot call it again.\n\n## What You Should Do\n\n**Check the `expected` field in the validation error** - it shows which types are still available.\n\nCall one of those types, or call `type: \"complete\"` to finish your task.\n\n**Important:** The type **name** must be different, not just the parameters.\n\n```typescript\n// \u2705 CORRECT - Different type name\nprocess({\n request: {\n type: \"different-type\", // From 'expected' field\n ...\n }\n})\n\n// \u274C WRONG - Same type name\nprocess({\n request: {\n type: \"{{REQUEST_TYPE}}\", // Removed from union\n ...\n }\n})\n```\n\n## Why Same Type Won't Work\n\nChanging parameters doesn't change the type name:\n\n```typescript\n// All FORBIDDEN - same type name \"{{REQUEST_TYPE}}\":\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [\"a\"] } }) // \u274C\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [\"b\", \"c\"] } }) // \u274C\nprocess({ request: { type: \"{{REQUEST_TYPE}}\", items: [] } }) // \u274C\n```\n\nThe type `\"{{REQUEST_TYPE}}\"` is removed from the union. You must use a different type name.\n\n## Summary\n\n1. All requested items are already loaded\n2. Type `\"{{REQUEST_TYPE}}\"` removed from union\n3. Check `expected` field for available types\n4. Use a different type name (not just different parameters)\n5. Do NOT call `type: \"{{REQUEST_TYPE}}\"` again" /* AutoBeSystemPromptConstant.PRELIMINARY_ARGUMENT_ALL_DUPLICATED */.replaceAll("{{REQUEST_TYPE}}", [
|
|
201
|
+
"getInterfaceSchemas"
|
|
202
|
+
][0]),
|
|
203
|
+
});
|
|
204
|
+
return finalize(input, errors);
|
|
205
|
+
};
|
|
206
|
+
})(PreliminaryApplicationValidator || (PreliminaryApplicationValidator = {}));
|
|
207
|
+
const finalize = (data, errors) => errors.length === 0
|
|
208
|
+
? {
|
|
209
|
+
success: true,
|
|
210
|
+
data,
|
|
211
|
+
}
|
|
212
|
+
: {
|
|
213
|
+
success: false,
|
|
214
|
+
data,
|
|
215
|
+
errors,
|
|
216
|
+
};
|
|
217
|
+
//# sourceMappingURL=validatePreliminary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validatePreliminary.js","sourceRoot":"","sources":["../../../../src/orchestrate/common/internal/validatePreliminary.ts"],"names":[],"mappings":";;;;;;AACA,yCAA4E;AAC5E,+BAA+B;AAC/B,kDAA2C;AAUpC,MAAM,mBAAmB,GAAG,CACjC,UAA6C,EAC7C,IAAqC,EACS,EAAE;IAChD,MAAM,IAAI,GAAG,+BAA+B,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,OAAO,IAAI,CAAC,UAAiB,EAAE,IAAW,CAAQ,CAAC;AACrD,CAAC,CAAC;AANW,QAAA,mBAAmB,uBAM9B;AAEF,IAAU,+BAA+B,CAyRxC;AAzRD,WAAU,+BAA+B;IAC1B,gDAAgB,GAAG,CAC9B,UAAwD,EACxD,KAAiD,EACQ,EAAE;QAC3D,MAAM,GAAG,GAAgB,IAAI,GAAG,CAC9B,UAAU,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CACzD,CAAC;QACF,MAAM,MAAM,GAAgB,IAAI,GAAG,CACjC,UAAU,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAC3D,CAAC;QACF,MAAM,MAAM,GAAgB,IAAI,GAAG,CACjC,UAAU;aACP,MAAM,EAAE;aACR,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;aAC7D,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAC1B,CAAC;QAEF,MAAM,WAAW,GAAW,kBAAU,CAAC,IA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AC,EAAE,EAAE,CACJ,CAAC,4CAAgE,CACpE;qBACA,IAAI,CAAC,KAAK,CAAC;gBACd,WAAW,EACT,stDAA+D,UAAU,CACvE,kBAAkB,EAClB;;kBAEI,CAAC,CAAC,CACP;aACJ,CAAC,CAAC;QACL,OAAO,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC,CAAC;AACJ,CAAC,EAzRS,+BAA+B,KAA/B,+BAA+B,QAyRxC;AAED,MAAM,QAAQ,GAAG,CAAI,IAAO,EAAE,MAA4B,EAAkB,EAAE,CAC5E,MAAM,CAAC,MAAM,KAAK,CAAC;IACjB,CAAC,CAAE;QACC,OAAO,EAAE,IAAI;QACb,IAAI;KAC8B;IACtC,CAAC,CAAE;QACC,OAAO,EAAE,KAAK;QACd,IAAI;QACJ,MAAM;KACyB,CAAC"}
|
|
@@ -48,11 +48,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
48
48
|
exports.orchestrateCommonCorrectCasting = void 0;
|
|
49
49
|
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
50
50
|
const __typia_transform__llmApplicationFinalize = __importStar(require("typia/lib/internal/_llmApplicationFinalize.js"));
|
|
51
|
-
const utils_1 = require("@autobe/utils");
|
|
52
51
|
const typia_1 = __importDefault(require("typia"));
|
|
53
52
|
const assertSchemaModel_1 = require("../../context/assertSchemaModel");
|
|
54
53
|
const validateEmptyCode_1 = require("../../utils/validateEmptyCode");
|
|
55
|
-
const
|
|
54
|
+
const transformCommonCorrectCastingHistory_1 = require("./histories/transformCommonCorrectCastingHistory");
|
|
56
55
|
const orchestrateCommonCorrectCasting = (ctx, factory, script) => __awaiter(void 0, void 0, void 0, function* () {
|
|
57
56
|
const event = yield factory.validate(script);
|
|
58
57
|
return yield predicate(ctx, factory, [], script, event, ctx.retry);
|
|
@@ -74,14 +73,7 @@ const correct = (ctx, factory, failures, script, event, life) => __awaiter(void
|
|
|
74
73
|
const pointer = {
|
|
75
74
|
value: null,
|
|
76
75
|
};
|
|
77
|
-
const { metric, tokenUsage } = yield ctx.conversate({
|
|
78
|
-
source: factory.source,
|
|
79
|
-
histories: (0, transformCommonCorrectCastingHistories_1.transformCommonCorrectCastingHistories)([...failures, event].map((e) => ({
|
|
80
|
-
diagnostics: e.result
|
|
81
|
-
.diagnostics,
|
|
82
|
-
script: factory.script(e),
|
|
83
|
-
}))),
|
|
84
|
-
controller: createController({
|
|
76
|
+
const { metric, tokenUsage } = yield ctx.conversate(Object.assign({ source: factory.source, controller: createController({
|
|
85
77
|
model: ctx.model,
|
|
86
78
|
functionName: factory.functionName,
|
|
87
79
|
then: (next) => {
|
|
@@ -90,15 +82,11 @@ const correct = (ctx, factory, failures, script, event, life) => __awaiter(void
|
|
|
90
82
|
reject: () => {
|
|
91
83
|
pointer.value = false;
|
|
92
84
|
},
|
|
93
|
-
}),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
You don't need to explain me anything, but just fix or give it up
|
|
99
|
-
immediately without any hesitation, explanation, and questions.
|
|
100
|
-
`,
|
|
101
|
-
});
|
|
85
|
+
}), enforceFunctionCall: true }, (0, transformCommonCorrectCastingHistory_1.transformCommonCorrectCastingHistory)([...failures, event].map((e) => ({
|
|
86
|
+
diagnostics: e.result
|
|
87
|
+
.diagnostics,
|
|
88
|
+
script: factory.script(e),
|
|
89
|
+
})))));
|
|
102
90
|
if (pointer.value === null)
|
|
103
91
|
throw new Error("Failed to correct test code.");
|
|
104
92
|
else if (pointer.value === false)
|
|
@@ -216,7 +204,7 @@ const collection = {
|
|
|
216
204
|
{
|
|
217
205
|
name: "rewrite",
|
|
218
206
|
parameters: {
|
|
219
|
-
description: "
|
|
207
|
+
description: " The analysis and correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeCommonCorrectCastingApplication.IProps}",
|
|
220
208
|
type: "object",
|
|
221
209
|
properties: {
|
|
222
210
|
think: {
|
|
@@ -374,7 +362,7 @@ const collection = {
|
|
|
374
362
|
{
|
|
375
363
|
name: "rewrite",
|
|
376
364
|
parameters: {
|
|
377
|
-
description: "
|
|
365
|
+
description: " The analysis and correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeCommonCorrectCastingApplication.IProps}",
|
|
378
366
|
type: "object",
|
|
379
367
|
properties: {
|
|
380
368
|
think: {
|
|
@@ -532,7 +520,7 @@ const collection = {
|
|
|
532
520
|
{
|
|
533
521
|
name: "rewrite",
|
|
534
522
|
parameters: {
|
|
535
|
-
description: "
|
|
523
|
+
description: " The analysis and correction properties\n\n------------------------------\n\nCurrent Type: {@link IAutoBeCommonCorrectCastingApplication.IProps}",
|
|
536
524
|
type: "object",
|
|
537
525
|
properties: {
|
|
538
526
|
think: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateCommonCorrectCasting.js","sourceRoot":"","sources":["../../../src/orchestrate/common/orchestrateCommonCorrectCasting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateCommonCorrectCasting.js","sourceRoot":"","sources":["../../../src/orchestrate/common/orchestrateCommonCorrectCasting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,kDAA0B;AAG1B,uEAAoE;AACpE,qEAAkE;AAClE,2GAAwG;AAsBjG,MAAM,+BAA+B,GAAG,CAK7C,GAAyB,EACzB,OAAmD,EACnD,MAAc,EACU,EAAE;IAC1B,MAAM,KAAK,GAAkB,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5D,OAAO,MAAM,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;AACrE,CAAC,CAAA,CAAC;AAXW,QAAA,+BAA+B,mCAW1C;A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AC0C;YACvE,QAAQ,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACjB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;oBACb,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,SAAS;iBAChB,CAAC;aACH;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAC0C;YACtE,QAAQ,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACjB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;oBACb,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,SAAS;iBAChB,CAAC;aACH;SACF;;QAAC;IACJ,MAAM,EAAE,CAAC,QAAmB,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAC0C;YACtE,QAAQ,EAAE;gBACR,OAAO,EAAE,QAAQ;gBACjB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;oBACb,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,SAAS;iBAChB,CAAC;aACH;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MicroAgenticaHistory } from "@agentica/core";
|
|
2
|
+
import { AutoBeEventSource, AutoBePreliminaryKind } from "@autobe/interface";
|
|
3
|
+
import { ILlmSchema } from "@samchon/openapi";
|
|
4
|
+
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
5
|
+
import { AutoBePreliminaryController } from "./AutoBePreliminaryController";
|
|
6
|
+
export declare const orchestratePreliminary: <Model extends ILlmSchema.Model, Kind extends AutoBePreliminaryKind>(ctx: AutoBeContext<Model>, props: {
|
|
7
|
+
source_id: string;
|
|
8
|
+
source: Exclude<AutoBeEventSource, "facade" | "preliminary">;
|
|
9
|
+
histories: MicroAgenticaHistory<Model>[];
|
|
10
|
+
preliminary: AutoBePreliminaryController<Kind>;
|
|
11
|
+
trial: number;
|
|
12
|
+
}) => Promise<void>;
|