@autobe/agent 0.30.0-dev.20260315 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -661
- package/lib/constants/AutoBeTemplateFileConstant.d.ts +1 -1
- package/lib/factory/consentFunctionCall.js +4 -4
- package/lib/factory/createAutoBeContext.js +24 -24
- package/lib/factory/createAutoBeMessageContent.js +6 -6
- package/lib/index.mjs +41 -41
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistory.js +18 -18
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioReviewHistory.js +13 -13
- package/lib/orchestrate/analyze/histories/transformAnalyzeSectionCrossFileReviewHistory.js +47 -47
- package/lib/orchestrate/analyze/histories/transformAnalyzeSectionReviewHistory.js +66 -66
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteSectionHistory.js +91 -91
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteSectionPatchHistory.js +46 -46
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteUnitHistory.js +72 -72
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.js +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeSectionReview.js +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSection.js +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.js +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWriteUnit.js +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistory.js +5 -5
- package/lib/orchestrate/common/histories/transformPreliminaryHistory.js +44 -44
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.js +44 -44
- package/lib/orchestrate/common/internal/fixPrelminaryApplication.js +22 -22
- package/lib/orchestrate/common/internal/validatePreliminary.js +116 -116
- package/lib/orchestrate/facade/createAutoBeFacadeController.js +3 -3
- package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js +20 -20
- package/lib/orchestrate/interface/histories/transformInterfaceActionEndpointReviewHistory.js +34 -34
- package/lib/orchestrate/interface/histories/transformInterfaceActionEndpointWriteHistory.js +37 -37
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.js +56 -56
- package/lib/orchestrate/interface/histories/transformInterfaceBaseEndpointReviewHistory.js +26 -26
- package/lib/orchestrate/interface/histories/transformInterfaceBaseEndpointWriteHistory.js +28 -28
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointAuthorizationSection.js +11 -11
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistory.js +38 -38
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistory.js +29 -29
- package/lib/orchestrate/interface/histories/transformInterfaceOperationParameterHistory.js +15 -15
- package/lib/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.js +6 -6
- package/lib/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.js +25 -25
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaCastingHistory.js +67 -67
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaComplementHistory.js +60 -60
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRefineHistory.js +83 -83
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.js +29 -29
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.js +74 -74
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaWriteHistory.js +46 -46
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorization.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointReview.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointWrite.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroup.js +9 -9
- package/lib/orchestrate/interface/orchestrateInterfaceOperation.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationReview.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisite.js +4 -4
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaCasting.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaComplement.js +5 -5
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRefine.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaWrite.js +1 -1
- package/lib/orchestrate/interface/programmers/AutoBeInterfaceAuthorizationProgrammer.js +90 -90
- package/lib/orchestrate/interface/programmers/AutoBeInterfaceEndpointProgrammer.js +6 -6
- package/lib/orchestrate/interface/programmers/AutoBeInterfaceEndpointReviewProgrammer.js +25 -25
- package/lib/orchestrate/interface/programmers/AutoBeInterfaceOperationProgrammer.js +71 -71
- package/lib/orchestrate/interface/programmers/AutoBeInterfacePrerequisiteProgrammer.js +162 -162
- package/lib/orchestrate/interface/programmers/AutoBeInterfaceSchemaProgrammer.js +11 -11
- package/lib/orchestrate/interface/programmers/AutoBeInterfaceSchemaPropertyReviseProgrammer.js +73 -73
- package/lib/orchestrate/interface/programmers/AutoBeInterfaceSchemaRefineProgrammer.js +35 -35
- package/lib/orchestrate/interface/programmers/AutoBeInterfaceSchemaReviewProgrammer.js +11 -11
- package/lib/orchestrate/interface/utils/AutoBeJsonSchemaFactory.js +4 -4
- package/lib/orchestrate/interface/utils/AutoBeJsonSchemaValidator.js +283 -283
- package/lib/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.js +76 -76
- package/lib/orchestrate/prisma/histories/transformPrismaAuthorizationHistory.js +76 -76
- package/lib/orchestrate/prisma/histories/transformPrismaAuthorizationReviewHistory.js +51 -51
- package/lib/orchestrate/prisma/histories/transformPrismaComponentReviewHistory.js +54 -54
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistory.js +83 -83
- package/lib/orchestrate/prisma/histories/transformPrismaCorrectHistory.js +6 -6
- package/lib/orchestrate/prisma/histories/transformPrismaGroupHistory.js +22 -22
- package/lib/orchestrate/prisma/histories/transformPrismaGroupReviewHistory.js +41 -41
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistory.js +39 -39
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaReviewHistory.js +41 -41
- package/lib/orchestrate/prisma/orchestratePrismaAuthorization.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaAuthorizationReview.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponentReview.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaGroup.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaGroupReview.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchema.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemaReview.js +1 -1
- package/lib/orchestrate/prisma/programmers/AutoBeDatabaseAuthorizationProgrammer.js +23 -23
- package/lib/orchestrate/prisma/programmers/AutoBeDatabaseAuthorizationReviewProgrammer.js +7 -7
- package/lib/orchestrate/prisma/programmers/AutoBeDatabaseComponentProgrammer.js +5 -5
- package/lib/orchestrate/prisma/programmers/AutoBeDatabaseComponentReviewProgrammer.js +20 -20
- package/lib/orchestrate/prisma/programmers/AutoBeDatabaseGroupProgrammer.js +13 -13
- package/lib/orchestrate/prisma/programmers/AutoBeDatabaseGroupReviewProgrammer.js +51 -51
- package/lib/orchestrate/prisma/programmers/AutoBeDatabaseSchemaProgrammer.js +25 -25
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.js +28 -28
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.js +14 -14
- package/lib/orchestrate/realize/histories/transformRealizeCollectorCorrectHistory.js +42 -42
- package/lib/orchestrate/realize/histories/transformRealizeCollectorPlanHistory.js +27 -27
- package/lib/orchestrate/realize/histories/transformRealizeCollectorWriteHistory.js +57 -57
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.js +35 -35
- package/lib/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.js +14 -14
- package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js +37 -37
- package/lib/orchestrate/realize/histories/transformRealizeOperationWriteHistory.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.js +47 -47
- package/lib/orchestrate/realize/histories/transformRealizeTransformerPlanHistory.js +27 -27
- package/lib/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.js +51 -51
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationWrite.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCollectorCorrectOverall.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCollectorPlan.js +11 -11
- package/lib/orchestrate/realize/orchestrateRealizeCollectorWrite.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeOperationCorrectOverall.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeOperationWrite.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeTransformerCorrectOverall.js +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeTransformerPlan.js +11 -11
- package/lib/orchestrate/realize/orchestrateRealizeTransformerWrite.js +1 -1
- package/lib/orchestrate/realize/programmers/AutoBeRealizeCollectorProgrammer.js +41 -41
- package/lib/orchestrate/realize/programmers/AutoBeRealizeOperationProgrammer.js +21 -21
- package/lib/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.js +57 -57
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js +3 -3
- package/lib/orchestrate/realize/utils/printErrorHints.js +5 -5
- package/lib/orchestrate/test/compile/getTestImportStatements.js +9 -9
- package/lib/orchestrate/test/histories/transformTestAuthorizeWriteHistory.js +38 -38
- package/lib/orchestrate/test/histories/transformTestGenerationWriteHistory.js +79 -79
- package/lib/orchestrate/test/histories/transformTestOperationWriteHistory.js +162 -162
- package/lib/orchestrate/test/histories/transformTestPrepareWriteHistory.js +54 -54
- package/lib/orchestrate/test/histories/transformTestScenarioHistory.js +31 -31
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistory.js +27 -27
- package/lib/orchestrate/test/orchestrateTestScenario.js +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +1 -1
- package/lib/orchestrate/test/programmers/AutoBeTestAuthorizeProgrammer.js +31 -31
- package/lib/orchestrate/test/programmers/AutoBeTestGenerateProgrammer.js +23 -23
- package/lib/orchestrate/test/programmers/AutoBeTestOperationProgrammer.js +6 -6
- package/lib/orchestrate/test/programmers/AutoBeTestPrepareProgrammer.js +34 -34
- package/lib/orchestrate/test/programmers/AutoBeTestScenarioProgrammer.js +39 -39
- package/lib/utils/predicateStateMessage.js +19 -19
- package/lib/utils/validateEmptyCode.js +16 -16
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +374 -374
- package/src/AutoBeAgentBase.ts +126 -126
- package/src/AutoBeMockAgent.ts +254 -254
- package/src/constants/AutoBeConfigConstant.ts +173 -173
- package/src/constants/AutoBeTemplateFileConstant.ts +1 -1
- package/src/context/AutoBeContext.ts +107 -107
- package/src/context/AutoBeState.ts +66 -66
- package/src/context/AutoBeTokenUsage.ts +307 -307
- package/src/context/AutoBeTokenUsageComponent.ts +227 -227
- package/src/describe/describe.ts +47 -47
- package/src/describe/image/histories/transformImageDescribeDraftHistories.ts +16 -16
- package/src/describe/image/orchestrateImageDescribeDraft.ts +200 -200
- package/src/describe/image/structures/IAutoBeImageDescribeDraftApplication.ts +92 -92
- package/src/describe/imageDescribe.ts +64 -64
- package/src/factory/consentFunctionCall.ts +141 -141
- package/src/factory/createAgenticaHistory.ts +71 -71
- package/src/factory/createAutoBeContext.ts +584 -584
- package/src/factory/createAutoBeMessageContent.ts +36 -36
- package/src/factory/createAutoBeState.ts +20 -20
- package/src/factory/getAutoBeGenerated.ts +317 -317
- package/src/factory/getAutoBeRealizeGenerated.ts +31 -31
- package/src/factory/getCriticalCompiler.ts +52 -52
- package/src/factory/index.ts +1 -1
- package/src/factory/mergeSystemMessages.ts +60 -60
- package/src/factory/supportFunctionCallFallback.ts +214 -214
- package/src/factory/supportMistral.ts +138 -138
- package/src/index.ts +16 -16
- package/src/orchestrate/analyze/fillTocDeterministic.ts +280 -280
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioHistory.ts +55 -55
- package/src/orchestrate/analyze/histories/transformAnalyzeScenarioReviewHistory.ts +74 -74
- package/src/orchestrate/analyze/histories/transformAnalyzeSectionCrossFileReviewHistory.ts +179 -179
- package/src/orchestrate/analyze/histories/transformAnalyzeSectionReviewHistory.ts +163 -163
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteSectionHistory.ts +191 -191
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteSectionPatchHistory.ts +122 -122
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteUnitHistory.ts +161 -161
- package/src/orchestrate/analyze/index.ts +7 -7
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +1693 -1693
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +267 -267
- package/src/orchestrate/analyze/orchestrateAnalyzeScenarioReview.ts +122 -122
- package/src/orchestrate/analyze/orchestrateAnalyzeSectionCrossFileReview.ts +146 -146
- package/src/orchestrate/analyze/orchestrateAnalyzeSectionReview.ts +154 -154
- package/src/orchestrate/analyze/orchestrateAnalyzeWriteSection.ts +388 -388
- package/src/orchestrate/analyze/orchestrateAnalyzeWriteSectionPatch.ts +407 -407
- package/src/orchestrate/analyze/orchestrateAnalyzeWriteUnit.ts +348 -348
- package/src/orchestrate/analyze/programmers/AutoBeAnalyzeProgrammer.ts +149 -149
- package/src/orchestrate/analyze/structures/FixedAnalyzeTemplate.ts +961 -961
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +141 -141
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioReviewApplication.ts +96 -96
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionCrossFileReviewApplication.ts +160 -160
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeSectionReviewApplication.ts +192 -192
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteSectionApplication.ts +142 -142
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteUnitApplication.ts +123 -123
- package/src/orchestrate/analyze/utils/buildConstraintConsistencyReport.ts +813 -813
- package/src/orchestrate/analyze/utils/buildErrorCodeRegistry.ts +324 -324
- package/src/orchestrate/analyze/utils/buildHardValidators.ts +88 -88
- package/src/orchestrate/analyze/utils/detectInventedEntities.ts +87 -87
- package/src/orchestrate/analyze/utils/detectProseConstraintConflicts.ts +319 -319
- package/src/orchestrate/analyze/utils/repairSectionReviewUtils.ts +181 -181
- package/src/orchestrate/analyze/utils/repairUtils.ts +60 -60
- package/src/orchestrate/analyze/utils/validateScenarioBasics.ts +104 -104
- package/src/orchestrate/common/AutoBePreliminaryController.ts +400 -400
- package/src/orchestrate/common/histories/transformCommonCorrectCastingHistory.ts +32 -32
- package/src/orchestrate/common/histories/transformPreliminaryHistory.ts +742 -742
- package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistory.ts +77 -77
- package/src/orchestrate/common/internal/complementPreliminaryCollection.ts +263 -263
- package/src/orchestrate/common/internal/convertToSectionEntries.ts +57 -57
- package/src/orchestrate/common/internal/createPreliminaryCollection.ts +76 -76
- package/src/orchestrate/common/internal/fixPrelminaryApplication.ts +346 -346
- package/src/orchestrate/common/internal/validatePreliminary.ts +671 -671
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +223 -223
- package/src/orchestrate/common/orchestratePreliminary.ts +610 -610
- package/src/orchestrate/common/structures/AutoBePreliminaryRequest.ts +42 -42
- package/src/orchestrate/common/structures/IAnalysisSectionEntry.ts +35 -35
- package/src/orchestrate/common/structures/IAutoBeCommonCorrectCastingApplication.ts +72 -72
- package/src/orchestrate/common/structures/IAutoBeOrchestrateResult.ts +28 -28
- package/src/orchestrate/common/structures/IAutoBePreliminaryCollection.ts +52 -52
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetAnalysisSections.ts +34 -34
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetDatabaseSchemas.ts +31 -31
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceOperations.ts +32 -32
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetInterfaceSchemas.ts +31 -31
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousAnalysisSections.ts +28 -28
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousDatabaseSchemas.ts +88 -88
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts +102 -102
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.ts +105 -105
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeCollectors.ts +32 -32
- package/src/orchestrate/common/structures/IAutoBePreliminaryGetRealizeTransformers.ts +32 -32
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +118 -118
- package/src/orchestrate/facade/histories/IAutoBeFacadeApplication.ts +139 -139
- package/src/orchestrate/facade/histories/IAutoBeFacadeApplicationProps.ts +8 -8
- package/src/orchestrate/facade/histories/IAutoBeFacadeApplicationResult.ts +9 -9
- package/src/orchestrate/facade/structures/transformFacadeStateMessage.ts +59 -59
- package/src/orchestrate/index.ts +5 -5
- package/src/orchestrate/interface/histories/transformInterfaceActionEndpointReviewHistory.ts +83 -83
- package/src/orchestrate/interface/histories/transformInterfaceActionEndpointWriteHistory.ts +78 -78
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationHistory.ts +129 -129
- package/src/orchestrate/interface/histories/transformInterfaceBaseEndpointReviewHistory.ts +74 -74
- package/src/orchestrate/interface/histories/transformInterfaceBaseEndpointWriteHistory.ts +68 -68
- package/src/orchestrate/interface/histories/transformInterfaceCommonHistory.ts +64 -64
- package/src/orchestrate/interface/histories/transformInterfaceEndpointAuthorizationSection.ts +42 -42
- package/src/orchestrate/interface/histories/transformInterfaceGroupHistory.ts +103 -103
- package/src/orchestrate/interface/histories/transformInterfaceOperationHistory.ts +81 -81
- package/src/orchestrate/interface/histories/transformInterfaceOperationParameterHistory.ts +53 -53
- package/src/orchestrate/interface/histories/transformInterfaceOperationReviewHistory.ts +49 -49
- package/src/orchestrate/interface/histories/transformInterfacePrerequisiteHistory.ts +94 -94
- package/src/orchestrate/interface/histories/transformInterfaceSchemaCastingHistory.ts +122 -122
- package/src/orchestrate/interface/histories/transformInterfaceSchemaComplementHistory.ts +192 -192
- package/src/orchestrate/interface/histories/transformInterfaceSchemaRefineHistory.ts +189 -189
- package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistory.ts +63 -63
- package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistory.ts +173 -173
- package/src/orchestrate/interface/histories/transformInterfaceSchemaWriteHistory.ts +88 -88
- package/src/orchestrate/interface/index.ts +6 -6
- package/src/orchestrate/interface/orchestrateInterface.ts +118 -118
- package/src/orchestrate/interface/orchestrateInterfaceActionEndpoint.ts +58 -58
- package/src/orchestrate/interface/orchestrateInterfaceAuthorization.ts +208 -208
- package/src/orchestrate/interface/orchestrateInterfaceBaseEndpoint.ts +55 -55
- package/src/orchestrate/interface/orchestrateInterfaceEndpoint.ts +67 -67
- package/src/orchestrate/interface/orchestrateInterfaceEndpointOverall.ts +80 -80
- package/src/orchestrate/interface/orchestrateInterfaceEndpointReview.ts +212 -212
- package/src/orchestrate/interface/orchestrateInterfaceEndpointWrite.ts +236 -236
- package/src/orchestrate/interface/orchestrateInterfaceGroup.ts +166 -166
- package/src/orchestrate/interface/orchestrateInterfaceOperation.ts +322 -322
- package/src/orchestrate/interface/orchestrateInterfaceOperationReview.ts +245 -245
- package/src/orchestrate/interface/orchestrateInterfacePrerequisite.ts +240 -240
- package/src/orchestrate/interface/orchestrateInterfaceSchema.ts +191 -191
- package/src/orchestrate/interface/orchestrateInterfaceSchemaCasting.ts +274 -274
- package/src/orchestrate/interface/orchestrateInterfaceSchemaComplement.ts +329 -329
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRefine.ts +292 -292
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +266 -266
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +310 -310
- package/src/orchestrate/interface/orchestrateInterfaceSchemaWrite.ts +283 -283
- package/src/orchestrate/interface/programmers/AutoBeInterfaceAuthorizationProgrammer.ts +260 -260
- package/src/orchestrate/interface/programmers/AutoBeInterfaceEndpointProgrammer.ts +155 -155
- package/src/orchestrate/interface/programmers/AutoBeInterfaceEndpointReviewProgrammer.ts +139 -139
- package/src/orchestrate/interface/programmers/AutoBeInterfaceOperationProgrammer.ts +277 -277
- package/src/orchestrate/interface/programmers/AutoBeInterfacePrerequisiteProgrammer.ts +259 -259
- package/src/orchestrate/interface/programmers/AutoBeInterfaceSchemaProgrammer.ts +152 -152
- package/src/orchestrate/interface/programmers/AutoBeInterfaceSchemaPropertyReviseProgrammer.ts +347 -347
- package/src/orchestrate/interface/programmers/AutoBeInterfaceSchemaRefineProgrammer.ts +183 -183
- package/src/orchestrate/interface/programmers/AutoBeInterfaceSchemaReviewProgrammer.ts +263 -263
- package/src/orchestrate/interface/structures/IAutoBeInterfaceAuthorizationApplication.ts +135 -135
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointReviewApplication.ts +128 -128
- package/src/orchestrate/interface/structures/IAutoBeInterfaceEndpointWriteApplication.ts +133 -133
- package/src/orchestrate/interface/structures/IAutoBeInterfaceGroupApplication.ts +122 -122
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +178 -178
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationReviewApplication.ts +175 -175
- package/src/orchestrate/interface/structures/IAutoBeInterfacePrerequisiteApplication.ts +130 -130
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaApplication.ts +121 -121
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaCastingApplication.ts +153 -153
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaComplementApplication.ts +123 -123
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRefineApplication.ts +181 -181
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +45 -45
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaReviewApplication.ts +108 -108
- package/src/orchestrate/interface/utils/AutoBeJsonSchemaCollection.ts +42 -42
- package/src/orchestrate/interface/utils/AutoBeJsonSchemaFactory.ts +714 -714
- package/src/orchestrate/interface/utils/AutoBeJsonSchemaNamingConvention.ts +86 -86
- package/src/orchestrate/interface/utils/AutoBeJsonSchemaValidator.ts +725 -725
- package/src/orchestrate/interface/utils/fulfillJsonSchemaErrorMessages.ts +219 -219
- package/src/orchestrate/prisma/histories/transformPrismaAuthorizationHistory.ts +144 -144
- package/src/orchestrate/prisma/histories/transformPrismaAuthorizationReviewHistory.ts +104 -104
- package/src/orchestrate/prisma/histories/transformPrismaComponentReviewHistory.ts +97 -97
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistory.ts +136 -136
- package/src/orchestrate/prisma/histories/transformPrismaCorrectHistory.ts +41 -41
- package/src/orchestrate/prisma/histories/transformPrismaGroupHistory.ts +63 -63
- package/src/orchestrate/prisma/histories/transformPrismaGroupReviewHistory.ts +79 -79
- package/src/orchestrate/prisma/histories/transformPrismaSchemaHistory.ts +97 -97
- package/src/orchestrate/prisma/histories/transformPrismaSchemaReviewHistory.ts +126 -126
- package/src/orchestrate/prisma/index.ts +7 -7
- package/src/orchestrate/prisma/orchestratePrisma.ts +296 -296
- package/src/orchestrate/prisma/orchestratePrismaAuthorization.ts +173 -173
- package/src/orchestrate/prisma/orchestratePrismaAuthorizationReview.ts +183 -183
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +205 -205
- package/src/orchestrate/prisma/orchestratePrismaComponentReview.ts +205 -205
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +265 -265
- package/src/orchestrate/prisma/orchestratePrismaGroup.ts +121 -121
- package/src/orchestrate/prisma/orchestratePrismaGroupReview.ts +141 -141
- package/src/orchestrate/prisma/orchestratePrismaSchema.ts +218 -218
- package/src/orchestrate/prisma/orchestratePrismaSchemaReview.ts +220 -220
- package/src/orchestrate/prisma/programmers/AutoBeDatabaseAuthorizationProgrammer.ts +86 -86
- package/src/orchestrate/prisma/programmers/AutoBeDatabaseAuthorizationReviewProgrammer.ts +103 -103
- package/src/orchestrate/prisma/programmers/AutoBeDatabaseComponentProgrammer.ts +80 -80
- package/src/orchestrate/prisma/programmers/AutoBeDatabaseComponentReviewProgrammer.ts +168 -168
- package/src/orchestrate/prisma/programmers/AutoBeDatabaseGroupProgrammer.ts +63 -63
- package/src/orchestrate/prisma/programmers/AutoBeDatabaseGroupReviewProgrammer.ts +210 -210
- package/src/orchestrate/prisma/programmers/AutoBeDatabaseModelProgrammer.ts +57 -57
- package/src/orchestrate/prisma/programmers/AutoBeDatabaseSchemaProgrammer.ts +92 -92
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationApplication.ts +147 -147
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseAuthorizationReviewApplication.ts +153 -153
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentApplication.ts +142 -142
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseComponentReviewApplication.ts +151 -151
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseCorrectApplication.ts +157 -157
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupApplication.ts +117 -117
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseGroupReviewApplication.ts +154 -154
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaApplication.ts +144 -144
- package/src/orchestrate/prisma/structures/IAutoBeDatabaseSchemaReviewApplication.ts +138 -138
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistory.ts +89 -89
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationWriteHistory.ts +45 -45
- package/src/orchestrate/realize/histories/transformRealizeCollectorCorrectHistory.ts +137 -137
- package/src/orchestrate/realize/histories/transformRealizeCollectorPlanHistory.ts +64 -64
- package/src/orchestrate/realize/histories/transformRealizeCollectorWriteHistory.ts +147 -147
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistory.ts +69 -69
- package/src/orchestrate/realize/histories/transformRealizeOperationCorrectHistory.ts +94 -94
- package/src/orchestrate/realize/histories/transformRealizeOperationWriteHistory.ts +127 -127
- package/src/orchestrate/realize/histories/transformRealizeTransformerCorrectHistory.ts +147 -147
- package/src/orchestrate/realize/histories/transformRealizeTransformerPlanHistory.ts +61 -61
- package/src/orchestrate/realize/histories/transformRealizeTransformerWriteHistory.ts +133 -133
- package/src/orchestrate/realize/histories/transformRealizeWriteMembershipHistory.ts +30 -30
- package/src/orchestrate/realize/index.ts +3 -3
- package/src/orchestrate/realize/internal/orchestrateRealizeCorrectCasting.ts +444 -444
- package/src/orchestrate/realize/internal/orchestrateRealizeCorrectOverall.ts +449 -449
- package/src/orchestrate/realize/orchestrateRealize.ts +143 -143
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +207 -207
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationWrite.ts +209 -209
- package/src/orchestrate/realize/orchestrateRealizeCollector.ts +41 -41
- package/src/orchestrate/realize/orchestrateRealizeCollectorCorrectCasting.ts +43 -43
- package/src/orchestrate/realize/orchestrateRealizeCollectorCorrectOverall.ts +157 -157
- package/src/orchestrate/realize/orchestrateRealizeCollectorPlan.ts +264 -264
- package/src/orchestrate/realize/orchestrateRealizeCollectorWrite.ts +225 -225
- package/src/orchestrate/realize/orchestrateRealizeOperation.ts +48 -48
- package/src/orchestrate/realize/orchestrateRealizeOperationCorrectCasting.ts +69 -69
- package/src/orchestrate/realize/orchestrateRealizeOperationCorrectOverall.ts +173 -173
- package/src/orchestrate/realize/orchestrateRealizeOperationWrite.ts +262 -262
- package/src/orchestrate/realize/orchestrateRealizeTransformer.ts +41 -41
- package/src/orchestrate/realize/orchestrateRealizeTransformerCorrectCasting.ts +38 -38
- package/src/orchestrate/realize/orchestrateRealizeTransformerCorrectOverall.ts +160 -160
- package/src/orchestrate/realize/orchestrateRealizeTransformerPlan.ts +254 -254
- package/src/orchestrate/realize/orchestrateRealizeTransformerWrite.ts +226 -226
- package/src/orchestrate/realize/programmers/AutoBeRealizeCollectorProgrammer.ts +424 -424
- package/src/orchestrate/realize/programmers/AutoBeRealizeOperationProgrammer.ts +409 -409
- package/src/orchestrate/realize/programmers/AutoBeRealizeTransformerProgrammer.ts +451 -451
- package/src/orchestrate/realize/programmers/compileRealizeFiles.ts +65 -65
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationCorrectApplication.ts +119 -119
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationWriteApplication.ts +167 -167
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorCorrectApplication.ts +191 -191
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorPlanApplication.ts +177 -177
- package/src/orchestrate/realize/structures/IAutoBeRealizeCollectorWriteApplication.ts +207 -207
- package/src/orchestrate/realize/structures/IAutoBeRealizeFunctionFailure.ts +11 -11
- package/src/orchestrate/realize/structures/IAutoBeRealizeOperationCorrectApplication.ts +134 -134
- package/src/orchestrate/realize/structures/IAutoBeRealizeOperationWriteApplication.ts +138 -138
- package/src/orchestrate/realize/structures/IAutoBeRealizeScenarioResult.ts +32 -32
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerCorrectApplication.ts +248 -248
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerPlanApplication.ts +150 -150
- package/src/orchestrate/realize/structures/IAutoBeRealizeTransformerWriteApplication.ts +278 -278
- package/src/orchestrate/realize/utils/AuthorizationFileSystem.ts +10 -10
- package/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationFileSystem.ts +9 -9
- package/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.ts +62 -62
- package/src/orchestrate/realize/utils/InternalFileSystem.ts +12 -12
- package/src/orchestrate/realize/utils/ProviderFileSystem.ts +4 -4
- package/src/orchestrate/realize/utils/filterDiagnostics.ts +25 -25
- package/src/orchestrate/realize/utils/generateTS2339Hints.ts +54 -54
- package/src/orchestrate/realize/utils/getRealizeWriteImportStatements.ts +42 -42
- package/src/orchestrate/realize/utils/getRealizeWriteInputType.ts +88 -88
- package/src/orchestrate/realize/utils/printErrorHints.ts +54 -54
- package/src/orchestrate/test/compile/getTestArtifacts.ts +124 -124
- package/src/orchestrate/test/compile/getTestExternalDeclarations.ts +39 -39
- package/src/orchestrate/test/compile/getTestImportStatements.ts +27 -27
- package/src/orchestrate/test/experimental/orchestrateTestCorrect.ast +237 -237
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +322 -322
- package/src/orchestrate/test/experimental/transformTestCorrectHistories.ast +52 -52
- package/src/orchestrate/test/histories/transformTestAuthorizeWriteHistory.ts +80 -80
- package/src/orchestrate/test/histories/transformTestCorrectOverallHistory.ts +116 -116
- package/src/orchestrate/test/histories/transformTestGenerationWriteHistory.ts +118 -118
- package/src/orchestrate/test/histories/transformTestOperationWriteHistory.ts +287 -287
- package/src/orchestrate/test/histories/transformTestPrepareWriteHistory.ts +95 -95
- package/src/orchestrate/test/histories/transformTestScenarioHistory.ts +120 -120
- package/src/orchestrate/test/histories/transformTestScenarioReviewHistory.ts +99 -99
- package/src/orchestrate/test/histories/transformTestValidateEvent.ts +11 -11
- package/src/orchestrate/test/index.ts +5 -5
- package/src/orchestrate/test/internal/orchestrateTestCorrectCasting.ts +96 -96
- package/src/orchestrate/test/internal/orchestrateTestCorrectOverall.ts +219 -219
- package/src/orchestrate/test/internal/orchestrateTestCorrectRequest.ts +206 -206
- package/src/orchestrate/test/orchestrateTest.ts +161 -161
- package/src/orchestrate/test/orchestrateTestAuthorize.ts +125 -125
- package/src/orchestrate/test/orchestrateTestAuthorizeWrite.ts +263 -263
- package/src/orchestrate/test/orchestrateTestGenerate.ts +121 -121
- package/src/orchestrate/test/orchestrateTestGenerateWrite.ts +211 -211
- package/src/orchestrate/test/orchestrateTestOperation.ts +133 -133
- package/src/orchestrate/test/orchestrateTestOperationWrite.ts +221 -221
- package/src/orchestrate/test/orchestrateTestPrepare.ts +117 -117
- package/src/orchestrate/test/orchestrateTestPrepareWrite.ts +264 -264
- package/src/orchestrate/test/orchestrateTestScenario.ts +290 -290
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +262 -262
- package/src/orchestrate/test/programmers/AutoBeTestAuthorizeProgrammer.ts +149 -149
- package/src/orchestrate/test/programmers/AutoBeTestFunctionProgrammer.ts +90 -90
- package/src/orchestrate/test/programmers/AutoBeTestGenerateProgrammer.ts +170 -170
- package/src/orchestrate/test/programmers/AutoBeTestOperationProgrammer.ts +168 -168
- package/src/orchestrate/test/programmers/AutoBeTestPrepareProgrammer.ts +261 -261
- package/src/orchestrate/test/programmers/AutoBeTestScenarioProgrammer.ts +316 -316
- package/src/orchestrate/test/structures/IAutoBeTestArtifacts.ts +8 -8
- package/src/orchestrate/test/structures/IAutoBeTestAuthorizationWriteApplication.ts +113 -113
- package/src/orchestrate/test/structures/IAutoBeTestAuthorizeWriteResult.ts +10 -10
- package/src/orchestrate/test/structures/IAutoBeTestCorrectOverallApplication.ts +134 -134
- package/src/orchestrate/test/structures/IAutoBeTestCorrectRequestApplication.ts +152 -152
- package/src/orchestrate/test/structures/IAutoBeTestFunction.ts +10 -10
- package/src/orchestrate/test/structures/IAutoBeTestFunctionFailure.ts +10 -10
- package/src/orchestrate/test/structures/IAutoBeTestGenerateProcedure.ts +15 -15
- package/src/orchestrate/test/structures/IAutoBeTestGenerationWriteApplication.ts +145 -145
- package/src/orchestrate/test/structures/IAutoBeTestOperationProcedure.ts +17 -17
- package/src/orchestrate/test/structures/IAutoBeTestOperationWriteApplication.ts +162 -162
- package/src/orchestrate/test/structures/IAutoBeTestPrepareCorrectOverallApplication.ts +194 -194
- package/src/orchestrate/test/structures/IAutoBeTestPrepareProcedure.ts +8 -8
- package/src/orchestrate/test/structures/IAutoBeTestPrepareWriteApplication.ts +147 -147
- package/src/orchestrate/test/structures/IAutoBeTestProcedure.ts +10 -10
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +105 -105
- package/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.ts +8 -8
- package/src/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationActor.ts +7 -7
- package/src/orchestrate/test/structures/IAutoBeTestScenarioReviewApplication.ts +133 -133
- package/src/orchestrate/test/utils/getPrerequisites.ts +51 -51
- package/src/orchestrate/test/utils/getReferenceIds.ts +26 -26
- package/src/orchestrate/test/utils/insertScriptToTestResult.ts +14 -14
- package/src/structures/IAutoBeConfig.ts +110 -110
- package/src/structures/IAutoBeOrchestrateHistory.ts +44 -44
- package/src/structures/IAutoBeProps.ts +102 -102
- package/src/structures/IAutoBeVendor.ts +113 -113
- package/src/utils/AutoBePreliminaryExhaustedError.ts +30 -30
- package/src/utils/AutoBeTimeoutError.ts +35 -35
- package/src/utils/EmbeddingProvider.ts +4 -4
- package/src/utils/LocalEmbeddingProvider.ts +145 -145
- package/src/utils/RAGRetrieval.ts +411 -411
- package/src/utils/TimedConversation.ts +125 -125
- package/src/utils/backoffRetry.ts +169 -169
- package/src/utils/divideArray.ts +35 -35
- package/src/utils/emplaceMap.ts +31 -31
- package/src/utils/executeCachedBatch.ts +67 -67
- package/src/utils/forceRetry.ts +15 -15
- package/src/utils/getEmbedder.ts +16 -16
- package/src/utils/parseTextFunctionCall.ts +437 -437
- package/src/utils/predicateStateMessage.ts +131 -131
- package/src/utils/validateEmptyCode.ts +73 -73
- package/src/utils/validateEnglishOnly.ts +224 -224
- package/README.md +0 -261
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const enum AutoBeTemplateFileConstant {
|
|
2
|
-
"realize-of-postgres/src/MyGlobal.ts" = "import { PrismaPg } from \"@prisma/adapter-pg\";\
|
|
2
|
+
"realize-of-postgres/src/MyGlobal.ts" = "import { PrismaPg } from \"@prisma/adapter-pg\";\nimport { PrismaClient } from \"@prisma/sdk\";\nimport dotenv from \"dotenv\";\nimport dotenvExpand from \"dotenv-expand\";\nimport { Singleton } from \"tstl\";\nimport typia from \"typia\";\n\n/* eslint-disable */\nexport class MyGlobal {\n public static testing: boolean = false;\n\n public static get env(): MyGlobal.IEnvironments {\n return environments.get();\n }\n\n public static get prisma(): PrismaClient {\n return prisma.get();\n }\n}\n\nexport namespace MyGlobal {\n export interface IEnvironments {\n API_PORT: `${number}`;\n JWT_SECRET_KEY: string;\n\n POSTGRES_HOST: string;\n POSTGRES_PORT: `${number}`;\n POSTGRES_DATABASE: string;\n POSTGRES_SCHEMA: string;\n POSTGRES_USERNAME: string;\n POSTGRES_PASSWORD: string;\n POSTGRES_URL: string;\n }\n}\nconst environments = new Singleton(() => {\n const env = dotenv.config();\n dotenvExpand.expand(env);\n return typia.assert<MyGlobal.IEnvironments>(process.env);\n});\nconst prisma = new Singleton(\n () =>\n new PrismaClient({\n adapter: new PrismaPg(\n { connectionString: environments.get().POSTGRES_URL },\n { schema: environments.get().POSTGRES_SCHEMA },\n ),\n }),\n);"
|
|
3
3
|
}
|
|
@@ -76,10 +76,10 @@ const consentFunctionCall = (props) => __awaiter(void 0, void 0, void 0, functio
|
|
|
76
76
|
created_at: new Date().toISOString(),
|
|
77
77
|
});
|
|
78
78
|
if (props.assistantMessage.length === 0) {
|
|
79
|
-
const message = utils_1.StringUtil.trim `
|
|
80
|
-
You sent me an empty assistant message.
|
|
81
|
-
|
|
82
|
-
Don't do such foolish thing again, and do the function calling properly.
|
|
79
|
+
const message = utils_1.StringUtil.trim `
|
|
80
|
+
You sent me an empty assistant message.
|
|
81
|
+
|
|
82
|
+
Don't do such foolish thing again, and do the function calling properly.
|
|
83
83
|
`;
|
|
84
84
|
dispatch({
|
|
85
85
|
type: "consent",
|
|
@@ -156,22 +156,22 @@ const createAutoBeContext = (props) => {
|
|
|
156
156
|
closure(agent);
|
|
157
157
|
// DO CONVERSATE
|
|
158
158
|
const message = next.enforceFunctionCall === true
|
|
159
|
-
? utils_1.StringUtil.trim `
|
|
160
|
-
${next.userMessage}
|
|
161
|
-
|
|
162
|
-
> You have to call function(s) of below to accomplish my request.
|
|
163
|
-
>
|
|
164
|
-
> Never hesitate the function calling. Never ask for me permission
|
|
165
|
-
> to execute the function. Never explain me your plan with waiting
|
|
166
|
-
> for my approval.
|
|
167
|
-
>
|
|
168
|
-
> I gave you every information for the function calling, so just
|
|
169
|
-
> call it. I repeat that, never hesitate the function calling.
|
|
170
|
-
> Just do it without any explanation.
|
|
171
|
-
>
|
|
159
|
+
? utils_1.StringUtil.trim `
|
|
160
|
+
${next.userMessage}
|
|
161
|
+
|
|
162
|
+
> You have to call function(s) of below to accomplish my request.
|
|
163
|
+
>
|
|
164
|
+
> Never hesitate the function calling. Never ask for me permission
|
|
165
|
+
> to execute the function. Never explain me your plan with waiting
|
|
166
|
+
> for my approval.
|
|
167
|
+
>
|
|
168
|
+
> I gave you every information for the function calling, so just
|
|
169
|
+
> call it. I repeat that, never hesitate the function calling.
|
|
170
|
+
> Just do it without any explanation.
|
|
171
|
+
>
|
|
172
172
|
${next.controller.application.functions
|
|
173
173
|
.map((f) => `> - ${f.name}`)
|
|
174
|
-
.join("\n")}
|
|
174
|
+
.join("\n")}
|
|
175
175
|
`
|
|
176
176
|
: next.userMessage;
|
|
177
177
|
const result = yield TimedConversation_1.TimedConversation.process({
|
|
@@ -215,16 +215,16 @@ const createAutoBeContext = (props) => {
|
|
|
215
215
|
else if (true === next.enforceFunctionCall &&
|
|
216
216
|
false === result.histories.some((h) => h.type === "execute")) {
|
|
217
217
|
const failure = () => {
|
|
218
|
-
throw new Error(utils_1.StringUtil.trim `
|
|
219
|
-
Failed to function calling in the ${next.source} step.
|
|
220
|
-
|
|
221
|
-
Here is the list of history types that occurred during the conversation:
|
|
222
|
-
|
|
223
|
-
${result.histories.map((h) => `- ${h.type}`).join("\n")}
|
|
224
|
-
|
|
225
|
-
\`\`\`json
|
|
226
|
-
${JSON.stringify(result.histories, null, 2)}
|
|
227
|
-
\`\`\`
|
|
218
|
+
throw new Error(utils_1.StringUtil.trim `
|
|
219
|
+
Failed to function calling in the ${next.source} step.
|
|
220
|
+
|
|
221
|
+
Here is the list of history types that occurred during the conversation:
|
|
222
|
+
|
|
223
|
+
${result.histories.map((h) => `- ${h.type}`).join("\n")}
|
|
224
|
+
|
|
225
|
+
\`\`\`json
|
|
226
|
+
${JSON.stringify(result.histories, null, 2)}
|
|
227
|
+
\`\`\`
|
|
228
228
|
`);
|
|
229
229
|
};
|
|
230
230
|
const last = result.histories.at(-1);
|
|
@@ -8,12 +8,12 @@ function createAutoBeUserMessageContent(props) {
|
|
|
8
8
|
if (description !== undefined) {
|
|
9
9
|
return {
|
|
10
10
|
type: "text",
|
|
11
|
-
text: utils_1.StringUtil.trim `
|
|
12
|
-
image description:
|
|
13
|
-
|
|
14
|
-
\`\`\`text
|
|
15
|
-
${description}
|
|
16
|
-
\`\`\`
|
|
11
|
+
text: utils_1.StringUtil.trim `
|
|
12
|
+
image description:
|
|
13
|
+
|
|
14
|
+
\`\`\`text
|
|
15
|
+
${description}
|
|
16
|
+
\`\`\`
|
|
17
17
|
`,
|
|
18
18
|
};
|
|
19
19
|
}
|
package/lib/index.mjs
CHANGED
|
@@ -3238,7 +3238,7 @@ var PreliminaryTransformer;
|
|
|
3238
3238
|
} ]
|
|
3239
3239
|
}
|
|
3240
3240
|
})["all.prisma"]}
|
|
3241
|
-
\`\`\
|
|
3241
|
+
\`\`\
|
|
3242
3242
|
`,
|
|
3243
3243
|
replace: props.previous ? {
|
|
3244
3244
|
from: "getDatabaseSchemas",
|
|
@@ -5388,7 +5388,7 @@ const orchestrateAnalyzeScenario = async (ctx, props) => {
|
|
|
5388
5388
|
async: false,
|
|
5389
5389
|
parameters: [ {
|
|
5390
5390
|
name: "props",
|
|
5391
|
-
description: " Request containing either preliminary data request or complete\
|
|
5391
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
5392
5392
|
required: true,
|
|
5393
5393
|
schema: {
|
|
5394
5394
|
$ref: "#/components/schemas/IAutoBeAnalyzeScenarioApplication.IProps"
|
|
@@ -6958,7 +6958,7 @@ const orchestrateAnalyzeSectionCrossFileReview = async (ctx, props) => {
|
|
|
6958
6958
|
async: false,
|
|
6959
6959
|
parameters: [ {
|
|
6960
6960
|
name: "props",
|
|
6961
|
-
description: " Request containing either preliminary data request or complete\
|
|
6961
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
6962
6962
|
required: true,
|
|
6963
6963
|
schema: {
|
|
6964
6964
|
$ref: "#/components/schemas/IAutoBeAnalyzeSectionCrossFileReviewApplicationProps"
|
|
@@ -8094,7 +8094,7 @@ const orchestrateAnalyzeSectionReview = async (ctx, props) => {
|
|
|
8094
8094
|
async: false,
|
|
8095
8095
|
parameters: [ {
|
|
8096
8096
|
name: "props",
|
|
8097
|
-
description: " Request containing either preliminary data request or complete\
|
|
8097
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
8098
8098
|
required: true,
|
|
8099
8099
|
schema: {
|
|
8100
8100
|
$ref: "#/components/schemas/IAutoBeAnalyzeSectionReviewApplicationProps"
|
|
@@ -9474,7 +9474,7 @@ const orchestrateAnalyzeWriteSection = async (ctx, props) => {
|
|
|
9474
9474
|
async: false,
|
|
9475
9475
|
parameters: [ {
|
|
9476
9476
|
name: "props",
|
|
9477
|
-
description: " Request containing either preliminary data request or complete\
|
|
9477
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
9478
9478
|
required: true,
|
|
9479
9479
|
schema: {
|
|
9480
9480
|
$ref: "#/components/schemas/IAutoBeAnalyzeWriteSectionApplicationProps"
|
|
@@ -10251,7 +10251,7 @@ const orchestrateAnalyzeWriteSectionPatch = async (ctx, props) => {
|
|
|
10251
10251
|
async: false,
|
|
10252
10252
|
parameters: [ {
|
|
10253
10253
|
name: "props",
|
|
10254
|
-
description: " Request containing either preliminary data request or complete\
|
|
10254
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
10255
10255
|
required: true,
|
|
10256
10256
|
schema: {
|
|
10257
10257
|
$ref: "#/components/schemas/IAutoBeAnalyzeWriteSectionApplicationProps"
|
|
@@ -11068,7 +11068,7 @@ const orchestrateAnalyzeWriteUnit = async (ctx, props) => {
|
|
|
11068
11068
|
async: false,
|
|
11069
11069
|
parameters: [ {
|
|
11070
11070
|
name: "props",
|
|
11071
|
-
description: " Request containing either preliminary data request or complete\
|
|
11071
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
11072
11072
|
required: true,
|
|
11073
11073
|
schema: {
|
|
11074
11074
|
$ref: "#/components/schemas/IAutoBeAnalyzeWriteUnitApplicationProps"
|
|
@@ -14441,7 +14441,7 @@ async function process$t(ctx, props) {
|
|
|
14441
14441
|
async: false,
|
|
14442
14442
|
parameters: [ {
|
|
14443
14443
|
name: "props",
|
|
14444
|
-
description: " Request containing either preliminary data request or complete\
|
|
14444
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
14445
14445
|
required: true,
|
|
14446
14446
|
schema: {
|
|
14447
14447
|
$ref: "#/components/schemas/IAutoBeInterfaceAuthorizationApplication.IProps"
|
|
@@ -16731,7 +16731,7 @@ const orchestrateInterfaceEndpointWrite = async (ctx, props) => {
|
|
|
16731
16731
|
async: false,
|
|
16732
16732
|
parameters: [ {
|
|
16733
16733
|
name: "props",
|
|
16734
|
-
description: " Request containing either preliminary data request or complete\
|
|
16734
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
16735
16735
|
required: true,
|
|
16736
16736
|
schema: {
|
|
16737
16737
|
$ref: "#/components/schemas/IAutoBeInterfaceEndpointWriteApplication.IProps"
|
|
@@ -18058,7 +18058,7 @@ const orchestrateInterfaceEndpointReview = async (ctx, props) => {
|
|
|
18058
18058
|
async: false,
|
|
18059
18059
|
parameters: [ {
|
|
18060
18060
|
name: "props",
|
|
18061
|
-
description: " Request containing either preliminary data request or endpoint\
|
|
18061
|
+
description: " Request containing either preliminary data request or endpoint\nreview completion",
|
|
18062
18062
|
required: true,
|
|
18063
18063
|
schema: {
|
|
18064
18064
|
$ref: "#/components/schemas/IAutoBeInterfaceEndpointReviewApplication.IProps"
|
|
@@ -19689,7 +19689,7 @@ async function orchestrateInterfaceGroup(ctx, props) {
|
|
|
19689
19689
|
async: false,
|
|
19690
19690
|
parameters: [ {
|
|
19691
19691
|
name: "props",
|
|
19692
|
-
description: " Request containing either preliminary data request or complete\
|
|
19692
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
19693
19693
|
required: true,
|
|
19694
19694
|
schema: {
|
|
19695
19695
|
$ref: "#/components/schemas/IAutoBeInterfaceGroupApplication.IProps"
|
|
@@ -20888,7 +20888,7 @@ async function process$s(ctx, props) {
|
|
|
20888
20888
|
async: false,
|
|
20889
20889
|
parameters: [ {
|
|
20890
20890
|
name: "props",
|
|
20891
|
-
description: " Request containing either preliminary data request or complete\
|
|
20891
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
20892
20892
|
required: true,
|
|
20893
20893
|
schema: {
|
|
20894
20894
|
$ref: "#/components/schemas/IAutoBeInterfaceOperationReviewApplication.IProps"
|
|
@@ -22397,7 +22397,7 @@ async function process$r(ctx, props) {
|
|
|
22397
22397
|
async: false,
|
|
22398
22398
|
parameters: [ {
|
|
22399
22399
|
name: "props",
|
|
22400
|
-
description: " Request containing either preliminary data request or complete\
|
|
22400
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
22401
22401
|
required: true,
|
|
22402
22402
|
schema: {
|
|
22403
22403
|
$ref: "#/components/schemas/IAutoBeInterfaceOperationApplication.IProps"
|
|
@@ -24412,7 +24412,7 @@ async function process$q(ctx, props) {
|
|
|
24412
24412
|
async: false,
|
|
24413
24413
|
parameters: [ {
|
|
24414
24414
|
name: "props",
|
|
24415
|
-
description: " Request containing either preliminary data request or complete\
|
|
24415
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
24416
24416
|
required: true,
|
|
24417
24417
|
schema: {
|
|
24418
24418
|
$ref: "#/components/schemas/IAutoBeInterfacePrerequisiteApplication.IProps"
|
|
@@ -26374,7 +26374,7 @@ async function process$p(ctx, props) {
|
|
|
26374
26374
|
async: false,
|
|
26375
26375
|
parameters: [ {
|
|
26376
26376
|
name: "props",
|
|
26377
|
-
description: " Request containing either preliminary data request or\
|
|
26377
|
+
description: " Request containing either preliminary data request or\nrefinement completion",
|
|
26378
26378
|
required: true,
|
|
26379
26379
|
schema: {
|
|
26380
26380
|
$ref: "#/components/schemas/IAutoBeInterfaceSchemaCastingApplication.IProps"
|
|
@@ -29223,7 +29223,7 @@ async function process$o(ctx, props) {
|
|
|
29223
29223
|
async: false,
|
|
29224
29224
|
parameters: [ {
|
|
29225
29225
|
name: "props",
|
|
29226
|
-
description: " Request containing either preliminary data request or complete\
|
|
29226
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
29227
29227
|
required: true,
|
|
29228
29228
|
schema: {
|
|
29229
29229
|
$ref: "#/components/schemas/IAutoBeInterfaceSchemaComplementApplication.IProps"
|
|
@@ -32573,7 +32573,7 @@ async function process$n(ctx, props) {
|
|
|
32573
32573
|
async: false,
|
|
32574
32574
|
parameters: [ {
|
|
32575
32575
|
name: "props",
|
|
32576
|
-
description: " Request containing either preliminary data request or complete\
|
|
32576
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
32577
32577
|
required: true,
|
|
32578
32578
|
schema: {
|
|
32579
32579
|
$ref: "#/components/schemas/IAutoBeInterfaceSchemaRefineApplication.IProps"
|
|
@@ -36412,7 +36412,7 @@ async function process$m(ctx, props) {
|
|
|
36412
36412
|
async: false,
|
|
36413
36413
|
parameters: [ {
|
|
36414
36414
|
name: "props",
|
|
36415
|
-
description: " Request containing either preliminary data request or complete\
|
|
36415
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
36416
36416
|
required: true,
|
|
36417
36417
|
schema: {
|
|
36418
36418
|
$ref: "#/components/schemas/IAutoBeInterfaceSchemaReviewApplication.IProps"
|
|
@@ -39638,7 +39638,7 @@ async function process$l(ctx, props) {
|
|
|
39638
39638
|
async: false,
|
|
39639
39639
|
parameters: [ {
|
|
39640
39640
|
name: "props",
|
|
39641
|
-
description: " Request containing either preliminary data request or complete\
|
|
39641
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
39642
39642
|
required: true,
|
|
39643
39643
|
schema: {
|
|
39644
39644
|
$ref: "#/components/schemas/IAutoBeInterfaceSchemaApplication.IProps"
|
|
@@ -42119,7 +42119,7 @@ async function process$k(ctx, props) {
|
|
|
42119
42119
|
async: false,
|
|
42120
42120
|
parameters: [ {
|
|
42121
42121
|
name: "props",
|
|
42122
|
-
description: " Request containing either preliminary data request or complete\
|
|
42122
|
+
description: " Request containing either preliminary data request or complete\ntable design for all actors",
|
|
42123
42123
|
required: true,
|
|
42124
42124
|
schema: {
|
|
42125
42125
|
$ref: "#/components/schemas/IAutoBeDatabaseAuthorizationApplication.IProps"
|
|
@@ -43198,7 +43198,7 @@ async function process$j(ctx, props) {
|
|
|
43198
43198
|
async: false,
|
|
43199
43199
|
parameters: [ {
|
|
43200
43200
|
name: "props",
|
|
43201
|
-
description: " Request containing either preliminary data request or complete\
|
|
43201
|
+
description: " Request containing either preliminary data request or complete\ntask with table revisions for all actors",
|
|
43202
43202
|
required: true,
|
|
43203
43203
|
schema: {
|
|
43204
43204
|
$ref: "#/components/schemas/IAutoBeDatabaseAuthorizationReviewApplication.IProps"
|
|
@@ -44282,7 +44282,7 @@ async function process$i(ctx, props) {
|
|
|
44282
44282
|
async: false,
|
|
44283
44283
|
parameters: [ {
|
|
44284
44284
|
name: "props",
|
|
44285
|
-
description: " Request containing either preliminary data request or complete\
|
|
44285
|
+
description: " Request containing either preliminary data request or complete\ntable design",
|
|
44286
44286
|
required: true,
|
|
44287
44287
|
schema: {
|
|
44288
44288
|
$ref: "#/components/schemas/IAutoBeDatabaseComponentApplication.IProps"
|
|
@@ -45202,7 +45202,7 @@ async function process$h(ctx, props) {
|
|
|
45202
45202
|
async: false,
|
|
45203
45203
|
parameters: [ {
|
|
45204
45204
|
name: "props",
|
|
45205
|
-
description: " Request containing either preliminary data request or complete\
|
|
45205
|
+
description: " Request containing either preliminary data request or complete\ntask with table revisions",
|
|
45206
45206
|
required: true,
|
|
45207
45207
|
schema: {
|
|
45208
45208
|
$ref: "#/components/schemas/IAutoBeDatabaseComponentReviewApplication.IProps"
|
|
@@ -46489,7 +46489,7 @@ async function execute(ctx, failure) {
|
|
|
46489
46489
|
async: false,
|
|
46490
46490
|
parameters: [ {
|
|
46491
46491
|
name: "props",
|
|
46492
|
-
description: " Request containing either preliminary data request or complete\
|
|
46492
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
46493
46493
|
required: true,
|
|
46494
46494
|
schema: {
|
|
46495
46495
|
$ref: "#/components/schemas/IAutoBeDatabaseCorrectApplication.IProps"
|
|
@@ -48085,7 +48085,7 @@ async function orchestratePrismaGroup(ctx, instruction) {
|
|
|
48085
48085
|
async: false,
|
|
48086
48086
|
parameters: [ {
|
|
48087
48087
|
name: "props",
|
|
48088
|
-
description: " Request containing either preliminary data request or complete\
|
|
48088
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
48089
48089
|
required: true,
|
|
48090
48090
|
schema: {
|
|
48091
48091
|
$ref: "#/components/schemas/IAutoBeDatabaseGroupApplication.IProps"
|
|
@@ -49181,7 +49181,7 @@ async function orchestratePrismaGroupReview(ctx, props) {
|
|
|
49181
49181
|
async: false,
|
|
49182
49182
|
parameters: [ {
|
|
49183
49183
|
name: "props",
|
|
49184
|
-
description: " Request containing either preliminary data request or complete\
|
|
49184
|
+
description: " Request containing either preliminary data request or complete\ntask with group revisions",
|
|
49185
49185
|
required: true,
|
|
49186
49186
|
schema: {
|
|
49187
49187
|
$ref: "#/components/schemas/IAutoBeDatabaseGroupReviewApplication.IProps"
|
|
@@ -50574,7 +50574,7 @@ async function process$f(ctx, props) {
|
|
|
50574
50574
|
async: false,
|
|
50575
50575
|
parameters: [ {
|
|
50576
50576
|
name: "props",
|
|
50577
|
-
description: " Request containing either preliminary data request or complete\
|
|
50577
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
50578
50578
|
required: true,
|
|
50579
50579
|
schema: {
|
|
50580
50580
|
$ref: "#/components/schemas/IAutoBeDatabaseSchemaApplication.IProps"
|
|
@@ -52476,7 +52476,7 @@ async function step(ctx, props) {
|
|
|
52476
52476
|
async: false,
|
|
52477
52477
|
parameters: [ {
|
|
52478
52478
|
name: "props",
|
|
52479
|
-
description: " Request containing either preliminary data request or complete\
|
|
52479
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
52480
52480
|
required: true,
|
|
52481
52481
|
schema: {
|
|
52482
52482
|
$ref: "#/components/schemas/IAutoBeDatabaseSchemaReviewApplication.IProps"
|
|
@@ -54393,7 +54393,7 @@ async function orchestrateRealizeAuthorizationCorrect(ctx, props, life = 4) {
|
|
|
54393
54393
|
async: false,
|
|
54394
54394
|
parameters: [ {
|
|
54395
54395
|
name: "next",
|
|
54396
|
-
description: " Request containing either preliminary data request or complete\
|
|
54396
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
54397
54397
|
required: true,
|
|
54398
54398
|
schema: {
|
|
54399
54399
|
$ref: "#/components/schemas/IAutoBeRealizeAuthorizationCorrectApplication.IProps"
|
|
@@ -55107,7 +55107,7 @@ async function process$e(ctx, props) {
|
|
|
55107
55107
|
async: false,
|
|
55108
55108
|
parameters: [ {
|
|
55109
55109
|
name: "next",
|
|
55110
|
-
description: " Request containing either preliminary data request or complete\
|
|
55110
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
55111
55111
|
required: true,
|
|
55112
55112
|
schema: {
|
|
55113
55113
|
$ref: "#/components/schemas/IAutoBeRealizeAuthorizationWriteApplication.IProps"
|
|
@@ -56676,7 +56676,7 @@ const orchestrateRealizeCollectorCorrectOverall = async (ctx, props) => {
|
|
|
56676
56676
|
async: false,
|
|
56677
56677
|
parameters: [ {
|
|
56678
56678
|
name: "props",
|
|
56679
|
-
description: " Request containing either preliminary data request or complete\
|
|
56679
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
56680
56680
|
required: true,
|
|
56681
56681
|
schema: {
|
|
56682
56682
|
$ref: "#/components/schemas/IAutoBeRealizeCollectorCorrectApplication.IProps"
|
|
@@ -57445,7 +57445,7 @@ async function process$b(ctx, props) {
|
|
|
57445
57445
|
async: false,
|
|
57446
57446
|
parameters: [ {
|
|
57447
57447
|
name: "props",
|
|
57448
|
-
description: " Request containing either preliminary data request or complete\
|
|
57448
|
+
description: " Request containing either preliminary data request or complete\nplan",
|
|
57449
57449
|
required: true,
|
|
57450
57450
|
schema: {
|
|
57451
57451
|
$ref: "#/components/schemas/IAutoBeRealizeCollectorPlanApplication.IProps"
|
|
@@ -58511,7 +58511,7 @@ async function process$a(ctx, props) {
|
|
|
58511
58511
|
async: false,
|
|
58512
58512
|
parameters: [ {
|
|
58513
58513
|
name: "props",
|
|
58514
|
-
description: " Request containing either preliminary data request or complete\
|
|
58514
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
58515
58515
|
required: true,
|
|
58516
58516
|
schema: {
|
|
58517
58517
|
$ref: "#/components/schemas/IAutoBeRealizeCollectorWriteApplication.IProps"
|
|
@@ -59406,7 +59406,7 @@ const transformRealizeOperationWriteHistory = props => {
|
|
|
59406
59406
|
id: v7(),
|
|
59407
59407
|
created_at: (new Date).toISOString(),
|
|
59408
59408
|
type: "systemMessage",
|
|
59409
|
-
text: "\x3c!--\nfilename: REALIZE_OPERATION_WRITE_ARTIFACT.md\n--\x3e\n# Function Props Structure\n\nThe following shows the expected props structure for this function:\n\n```typescript\n{{TEMPLATE}}\n```\n\n**IMPORTANT**: The provider function you will implement must:\n- **If props are defined above**: Accept a **single object parameter** that matches this props structure **exactly**\n- **If no props are shown above**: Accept **no parameters** at all\n- The parameter type must be **identical** to what is shown above - no additions, no modifications\n- This is a mapped type containing only the fields that are actually needed for this specific endpoint\n\nThe props structure is carefully constructed based on:\n- Authentication requirements (role-specific fields like admin, user, member)\n- URL path parameters (e.g., id, boardId, postId)\n- Request body (if applicable)\n\nYour function signature must match one of these patterns:\n```typescript\n// If props are defined above\nexport async function your_function_name(\n props: { /* exactly as shown above */ }\n): Promise<ReturnType> {\n // Implementation\n}\n\n// If no props are shown above (empty)\nexport async function your_function_name(): Promise<ReturnType> {\n // Implementation - no props parameter\n}\n```\n\n---\n\n# Data Transfer Object\n\nWhen importing DTOs, you must **always** use this path structure:\n\n```ts\nimport { Something } from '../api/structures/Something';\n```\n\n* ✅ Use `../api/structures/...`\n* ❌ Never use `../../structures/...` — these paths will not resolve\n* If a type like `string & Format<\"date-time\">` is required, ensure you convert `Date` to a valid ISO string\n* **ALWAYS verify if fields are optional (`?`) or nullable (`| null`) in the DTO!**\n\n```json\n{{DTO}}\n```\n\n---\n\n# MyGlobal\n\n`MyGlobal` is a static utility class available in every provider file without importing. It provides two accessors:\n\n- `MyGlobal.prisma` — The singleton `PrismaClient` instance for all database operations.\n- `MyGlobal.env` — Typed environment variables (e.g., `MyGlobal.env.JWT_SECRET_KEY` for JWT signing).\n\n```typescript\n{{MyGlobal}}\n```".replaceAll(`{{TEMPLATE}}`, getRealizeWriteInputType(operation, props.authorization)).replaceAll(`{{DTO}}`, JSON.stringify(props.dto)).replaceAll("{{MyGlobal}}", 'import { PrismaPg } from "@prisma/adapter-pg";\
|
|
59409
|
+
text: "\x3c!--\nfilename: REALIZE_OPERATION_WRITE_ARTIFACT.md\n--\x3e\n# Function Props Structure\n\nThe following shows the expected props structure for this function:\n\n```typescript\n{{TEMPLATE}}\n```\n\n**IMPORTANT**: The provider function you will implement must:\n- **If props are defined above**: Accept a **single object parameter** that matches this props structure **exactly**\n- **If no props are shown above**: Accept **no parameters** at all\n- The parameter type must be **identical** to what is shown above - no additions, no modifications\n- This is a mapped type containing only the fields that are actually needed for this specific endpoint\n\nThe props structure is carefully constructed based on:\n- Authentication requirements (role-specific fields like admin, user, member)\n- URL path parameters (e.g., id, boardId, postId)\n- Request body (if applicable)\n\nYour function signature must match one of these patterns:\n```typescript\n// If props are defined above\nexport async function your_function_name(\n props: { /* exactly as shown above */ }\n): Promise<ReturnType> {\n // Implementation\n}\n\n// If no props are shown above (empty)\nexport async function your_function_name(): Promise<ReturnType> {\n // Implementation - no props parameter\n}\n```\n\n---\n\n# Data Transfer Object\n\nWhen importing DTOs, you must **always** use this path structure:\n\n```ts\nimport { Something } from '../api/structures/Something';\n```\n\n* ✅ Use `../api/structures/...`\n* ❌ Never use `../../structures/...` — these paths will not resolve\n* If a type like `string & Format<\"date-time\">` is required, ensure you convert `Date` to a valid ISO string\n* **ALWAYS verify if fields are optional (`?`) or nullable (`| null`) in the DTO!**\n\n```json\n{{DTO}}\n```\n\n---\n\n# MyGlobal\n\n`MyGlobal` is a static utility class available in every provider file without importing. It provides two accessors:\n\n- `MyGlobal.prisma` — The singleton `PrismaClient` instance for all database operations.\n- `MyGlobal.env` — Typed environment variables (e.g., `MyGlobal.env.JWT_SECRET_KEY` for JWT signing).\n\n```typescript\n{{MyGlobal}}\n```".replaceAll(`{{TEMPLATE}}`, getRealizeWriteInputType(operation, props.authorization)).replaceAll(`{{DTO}}`, JSON.stringify(props.dto)).replaceAll("{{MyGlobal}}", 'import { PrismaPg } from "@prisma/adapter-pg";\nimport { PrismaClient } from "@prisma/sdk";\nimport dotenv from "dotenv";\nimport dotenvExpand from "dotenv-expand";\nimport { Singleton } from "tstl";\nimport typia from "typia";\n\n/* eslint-disable */\nexport class MyGlobal {\n public static testing: boolean = false;\n\n public static get env(): MyGlobal.IEnvironments {\n return environments.get();\n }\n\n public static get prisma(): PrismaClient {\n return prisma.get();\n }\n}\n\nexport namespace MyGlobal {\n export interface IEnvironments {\n API_PORT: `${number}`;\n JWT_SECRET_KEY: string;\n\n POSTGRES_HOST: string;\n POSTGRES_PORT: `${number}`;\n POSTGRES_DATABASE: string;\n POSTGRES_SCHEMA: string;\n POSTGRES_USERNAME: string;\n POSTGRES_PASSWORD: string;\n POSTGRES_URL: string;\n }\n}\nconst environments = new Singleton(() => {\n const env = dotenv.config();\n dotenvExpand.expand(env);\n return typia.assert<MyGlobal.IEnvironments>(process.env);\n});\nconst prisma = new Singleton(\n () =>\n new PrismaClient({\n adapter: new PrismaPg(\n { connectionString: environments.get().POSTGRES_URL },\n { schema: environments.get().POSTGRES_SCHEMA },\n ),\n }),\n);')
|
|
59410
59410
|
}, {
|
|
59411
59411
|
id: v7(),
|
|
59412
59412
|
type: "systemMessage",
|
|
@@ -59712,7 +59712,7 @@ const orchestrateRealizeOperationCorrectOverall = async (ctx, props) => {
|
|
|
59712
59712
|
async: false,
|
|
59713
59713
|
parameters: [ {
|
|
59714
59714
|
name: "props",
|
|
59715
|
-
description: " Request containing either preliminary data request or complete\
|
|
59715
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
59716
59716
|
required: true,
|
|
59717
59717
|
schema: {
|
|
59718
59718
|
$ref: "#/components/schemas/IAutoBeRealizeOperationCorrectApplication.IProps"
|
|
@@ -60515,7 +60515,7 @@ async function process$9(ctx, props) {
|
|
|
60515
60515
|
async: false,
|
|
60516
60516
|
parameters: [ {
|
|
60517
60517
|
name: "props",
|
|
60518
|
-
description: " Request containing either preliminary data request or complete\
|
|
60518
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
60519
60519
|
required: true,
|
|
60520
60520
|
schema: {
|
|
60521
60521
|
$ref: "#/components/schemas/IAutoBeRealizeOperationWriteApplication.IProps"
|
|
@@ -61495,7 +61495,7 @@ const orchestrateRealizeTransformerCorrectOverall = async (ctx, props) => {
|
|
|
61495
61495
|
async: false,
|
|
61496
61496
|
parameters: [ {
|
|
61497
61497
|
name: "props",
|
|
61498
|
-
description: " Request containing either preliminary data request or complete\
|
|
61498
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
61499
61499
|
required: true,
|
|
61500
61500
|
schema: {
|
|
61501
61501
|
$ref: "#/components/schemas/IAutoBeRealizeTransformerCorrectApplication.IProps"
|
|
@@ -62274,7 +62274,7 @@ async function process$8(ctx, props) {
|
|
|
62274
62274
|
async: false,
|
|
62275
62275
|
parameters: [ {
|
|
62276
62276
|
name: "props",
|
|
62277
|
-
description: " Request containing either preliminary data request or complete\
|
|
62277
|
+
description: " Request containing either preliminary data request or complete\nplan",
|
|
62278
62278
|
required: true,
|
|
62279
62279
|
schema: {
|
|
62280
62280
|
$ref: "#/components/schemas/IAutoBeRealizeTransformerPlanApplication.IProps"
|
|
@@ -63151,7 +63151,7 @@ async function process$7(ctx, props) {
|
|
|
63151
63151
|
async: false,
|
|
63152
63152
|
parameters: [ {
|
|
63153
63153
|
name: "props",
|
|
63154
|
-
description: " Request containing either preliminary data request or complete\
|
|
63154
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
63155
63155
|
required: true,
|
|
63156
63156
|
schema: {
|
|
63157
63157
|
$ref: "#/components/schemas/IAutoBeRealizeTransformerWriteApplication.IProps"
|
|
@@ -68355,7 +68355,7 @@ async function process$2(ctx, props) {
|
|
|
68355
68355
|
async: false,
|
|
68356
68356
|
parameters: [ {
|
|
68357
68357
|
name: "props",
|
|
68358
|
-
description: " Request containing either preliminary data request or complete\
|
|
68358
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
68359
68359
|
required: true,
|
|
68360
68360
|
schema: {
|
|
68361
68361
|
$ref: "#/components/schemas/IAutoBeTestScenarioReviewApplication.IProps"
|
|
@@ -69337,7 +69337,7 @@ async function process$1(ctx, props) {
|
|
|
69337
69337
|
async: false,
|
|
69338
69338
|
parameters: [ {
|
|
69339
69339
|
name: "props",
|
|
69340
|
-
description: " Request containing either preliminary data request or complete\
|
|
69340
|
+
description: " Request containing either preliminary data request or complete\ntask",
|
|
69341
69341
|
required: true,
|
|
69342
69342
|
schema: {
|
|
69343
69343
|
$ref: "#/components/schemas/IAutoBeTestScenarioApplication.IProps"
|
|
@@ -20,30 +20,30 @@ const transformAnalyzeScenarioHistory = (ctx, preliminary, feedback) => ({
|
|
|
20
20
|
{
|
|
21
21
|
id: (0, uuid_1.v7)(),
|
|
22
22
|
type: "assistantMessage",
|
|
23
|
-
text: utils_1.StringUtil.trim `
|
|
24
|
-
## Previous Attempt Feedback
|
|
25
|
-
|
|
26
|
-
Your previous scenario was rejected during review. Please address the following issues:
|
|
27
|
-
|
|
28
|
-
${feedback}
|
|
29
|
-
|
|
30
|
-
Revise your scenario to fix these problems while keeping everything else correct.
|
|
23
|
+
text: utils_1.StringUtil.trim `
|
|
24
|
+
## Previous Attempt Feedback
|
|
25
|
+
|
|
26
|
+
Your previous scenario was rejected during review. Please address the following issues:
|
|
27
|
+
|
|
28
|
+
${feedback}
|
|
29
|
+
|
|
30
|
+
Revise your scenario to fix these problems while keeping everything else correct.
|
|
31
31
|
`,
|
|
32
32
|
created_at: new Date().toISOString(),
|
|
33
33
|
},
|
|
34
34
|
]
|
|
35
35
|
: []),
|
|
36
36
|
],
|
|
37
|
-
userMessage: utils_1.StringUtil.trim `
|
|
38
|
-
You are in the Analyze Scenario stage, which comes BEFORE Analyze Write.
|
|
39
|
-
Your job is to identify actors, entities, and project characteristics — NOT to write documents.
|
|
40
|
-
|
|
41
|
-
The document structure is fixed as 6 SRS files (00-toc through 05-non-functional).
|
|
42
|
-
You do NOT decide file names, file count, or document structure.
|
|
43
|
-
|
|
44
|
-
Identify the project prefix, user actors, core domain entities, and language.
|
|
45
|
-
Define user actors that can authenticate via API.
|
|
46
|
-
Note that the user's locale is in ${ctx.locale}.
|
|
37
|
+
userMessage: utils_1.StringUtil.trim `
|
|
38
|
+
You are in the Analyze Scenario stage, which comes BEFORE Analyze Write.
|
|
39
|
+
Your job is to identify actors, entities, and project characteristics — NOT to write documents.
|
|
40
|
+
|
|
41
|
+
The document structure is fixed as 6 SRS files (00-toc through 05-non-functional).
|
|
42
|
+
You do NOT decide file names, file count, or document structure.
|
|
43
|
+
|
|
44
|
+
Identify the project prefix, user actors, core domain entities, and language.
|
|
45
|
+
Define user actors that can authenticate via API.
|
|
46
|
+
Note that the user's locale is in ${ctx.locale}.
|
|
47
47
|
`,
|
|
48
48
|
});
|
|
49
49
|
exports.transformAnalyzeScenarioHistory = transformAnalyzeScenarioHistory;
|
|
@@ -28,18 +28,18 @@ const transformAnalyzeScenarioReviewHistory = (ctx, props) => {
|
|
|
28
28
|
id: (0, uuid_1.v7)(),
|
|
29
29
|
created_at: new Date().toISOString(),
|
|
30
30
|
type: "assistantMessage",
|
|
31
|
-
text: utils_1.StringUtil.trim `
|
|
32
|
-
## Scenario Result to Review
|
|
33
|
-
|
|
34
|
-
**Prefix**: ${props.scenario.prefix}
|
|
35
|
-
**Language**: ${JSON.stringify((_a = props.scenario.language) !== null && _a !== void 0 ? _a : "en")}
|
|
36
|
-
|
|
37
|
-
**Actors**:
|
|
31
|
+
text: utils_1.StringUtil.trim `
|
|
32
|
+
## Scenario Result to Review
|
|
33
|
+
|
|
34
|
+
**Prefix**: ${props.scenario.prefix}
|
|
35
|
+
**Language**: ${JSON.stringify((_a = props.scenario.language) !== null && _a !== void 0 ? _a : "en")}
|
|
36
|
+
|
|
37
|
+
**Actors**:
|
|
38
38
|
${props.scenario.actors
|
|
39
39
|
.map((a) => `- **${a.name}** (${a.kind}): ${a.description}`)
|
|
40
|
-
.join("\n")}
|
|
41
|
-
|
|
42
|
-
**Entities**:
|
|
40
|
+
.join("\n")}
|
|
41
|
+
|
|
42
|
+
**Entities**:
|
|
43
43
|
${props.scenario.entities
|
|
44
44
|
.map((e) => {
|
|
45
45
|
var _a;
|
|
@@ -47,11 +47,11 @@ const transformAnalyzeScenarioReviewHistory = (ctx, props) => {
|
|
|
47
47
|
? `\n Relationships: ${e.relationships.join("; ")}`
|
|
48
48
|
: ""}`;
|
|
49
49
|
})
|
|
50
|
-
.join("\n")}
|
|
51
|
-
|
|
50
|
+
.join("\n")}
|
|
51
|
+
|
|
52
52
|
**Features**: ${props.scenario.features.length
|
|
53
53
|
? props.scenario.features.map((f) => f.id).join(", ")
|
|
54
|
-
: "None (standard REST CRUD)"}
|
|
54
|
+
: "None (standard REST CRUD)"}
|
|
55
55
|
`,
|
|
56
56
|
},
|
|
57
57
|
],
|