@autobe/agent 0.25.7 → 0.26.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 +3 -0
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +15 -12
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +26 -19
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/factory/consentFunctionCall.js +3 -0
- package/lib/factory/consentFunctionCall.js.map +1 -1
- package/lib/factory/createAutoBeContext.js +4 -1
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/factory/getCommonPrompt.d.ts +2 -0
- package/lib/factory/getCommonPrompt.js +20 -0
- package/lib/factory/getCommonPrompt.js.map +1 -0
- package/lib/index.mjs +2636 -2258
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeReviewHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +2 -2
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js +6 -6
- package/lib/orchestrate/analyze/histories/transformAnalyzeWriteHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +73 -73
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +2 -2
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +9 -9
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +1 -1
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js +2 -17
- package/lib/orchestrate/common/histories/transformCommonCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.d.ts +6 -0
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js +58 -0
- package/lib/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.js.map +1 -0
- package/lib/orchestrate/facade/transformFacadeStateMessage.js +1 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.d.ts +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js +8 -8
- package/lib/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +3 -3
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.d.ts +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +46 -20
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.d.ts +5 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js +51 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.d.ts +11 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js +81 -0
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterface.js +24 -4
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +52 -52
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.d.ts +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +57 -57
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +43 -43
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +4 -4
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.d.ts +7 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +444 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +12 -0
- package/lib/orchestrate/interface/{orchestrateInterfaceSchemasReview.js → orchestrateInterfaceSchemaReview.js} +66 -57
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -0
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +9 -6
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +22 -22
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts +7 -7
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.d.ts +101 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.d.ts +97 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.d.ts +44 -0
- package/lib/orchestrate/interface/structures/{IAutobeInterfaceSchemasReviewApplication.js → IAutoBeInterfaceSchemaRenameApplication.js} +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.js.map +1 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.d.ts +92 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js +3 -0
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.js.map +1 -0
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +42 -1
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +94 -0
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
- package/lib/orchestrate/interface/utils/OperationValidator.d.ts +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js +13 -13
- package/lib/orchestrate/prisma/histories/transformPrismaComponentsHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaReviewHistories.js.map +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js +1 -1
- package/lib/orchestrate/prisma/histories/transformPrismaSchemaHistories.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.d.ts +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.d.ts +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +2 -2
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.d.ts +2 -2
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js +8 -7
- package/lib/orchestrate/realize/histories/transformRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js +4 -4
- package/lib/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.d.ts +4 -7
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js +8 -18
- package/lib/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.d.ts +0 -1
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js +8 -28
- package/lib/orchestrate/realize/histories/transformRealizeCorrectHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.d.ts +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +16 -280
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteHistories.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +2 -2
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +12 -12
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +9 -9
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.d.ts +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +43 -22
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/{orchestRateRealizeCorrectCasting.js → orchestrateRealizeCorrectCasting.js} +58 -46
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -0
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +3 -3
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.d.ts +2 -2
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js +6 -6
- package/lib/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.js.map +1 -1
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js +1 -1
- package/lib/orchestrate/realize/utils/generateRealizeScenario.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js +2 -2
- package/lib/orchestrate/realize/utils/getRealizeWriteCodeTemplate.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteDto.js.map +1 -1
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js +2 -2
- package/lib/orchestrate/realize/utils/getRealizeWriteInputType.js.map +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.js +1 -1
- package/lib/orchestrate/realize/utils/printErrorHints.js.map +1 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js +1 -1
- package/lib/orchestrate/test/compile/getTestScenarioArtifacts.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js +5 -22
- package/lib/orchestrate/test/histories/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js +10 -10
- package/lib/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js +5 -5
- package/lib/orchestrate/test/histories/transformTestScenarioHistories.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js +2 -2
- package/lib/orchestrate/test/histories/transformTestScenarioReviewHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +2 -0
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +1 -0
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +26 -26
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +2 -2
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.d.ts → IAutoBeTestScenarioAuthorizationActor.d.ts} +1 -1
- package/lib/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.js → IAutoBeTestScenarioAuthorizationActor.js} +1 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationActor.js.map +1 -0
- package/package.json +5 -5
- package/src/AutoBeAgent.ts +3 -0
- package/src/AutoBeMockAgent.ts +15 -12
- package/src/constants/AutoBeSystemPromptConstant.ts +26 -19
- package/src/factory/consentFunctionCall.ts +4 -0
- package/src/factory/createAutoBeContext.ts +5 -1
- package/src/factory/getCommonPrompt.ts +25 -0
- package/src/orchestrate/analyze/histories/transformAnalyzeWriteHistories.ts +5 -5
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +1 -1
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +3 -3
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +9 -9
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +1 -1
- package/src/orchestrate/common/histories/transformCommonCorrectCastingHistories.ts +2 -20
- package/src/orchestrate/common/histories/transformPreviousAndLatestCorrectHistories.ts +65 -0
- package/src/orchestrate/interface/histories/transformInterfaceAuthorizationsHistories.ts +9 -9
- package/src/orchestrate/interface/histories/transformInterfaceSchemaHistories.ts +45 -20
- package/src/orchestrate/interface/histories/transformInterfaceSchemaRenameHistories.ts +55 -0
- package/src/orchestrate/interface/histories/transformInterfaceSchemaReviewHistories.ts +90 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +34 -14
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +18 -18
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +4 -4
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +2 -2
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +5 -5
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +23 -23
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +4 -4
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +2 -2
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +269 -0
- package/src/orchestrate/interface/{orchestrateInterfaceSchemasReview.ts → orchestrateInterfaceSchemaReview.ts} +88 -70
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +16 -8
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +26 -22
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.ts +7 -7
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaContentReviewApplication.ts +108 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRelationReviewApplication.ts +104 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaRenameApplication.ts +45 -0
- package/src/orchestrate/interface/structures/IAutoBeInterfaceSchemaSecurityReviewApplication.ts +99 -0
- package/src/orchestrate/interface/utils/JsonSchemaFactory.ts +45 -3
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +110 -0
- package/src/orchestrate/interface/utils/OperationValidator.ts +1 -1
- package/src/orchestrate/prisma/histories/transformPrismaComponentsHistories.ts +12 -12
- package/src/orchestrate/prisma/orchestratePrisma.ts +4 -4
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +4 -4
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +7 -7
- package/src/orchestrate/realize/histories/transformRealizeAuthorization.ts +8 -7
- package/src/orchestrate/realize/histories/transformRealizeAuthorizationCorrectHistories.ts +4 -4
- package/src/orchestrate/realize/histories/transformRealizeCorrectCastingHistories.ts +14 -28
- package/src/orchestrate/realize/histories/transformRealizeCorrectHistories.ts +13 -30
- package/src/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.ts +20 -285
- package/src/orchestrate/realize/orchestrateRealize.ts +1 -1
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +9 -9
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +3 -3
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +74 -60
- package/src/orchestrate/realize/{orchestRateRealizeCorrectCasting.ts → orchestrateRealizeCorrectCasting.ts} +86 -85
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +3 -3
- package/src/orchestrate/realize/utils/AutoBeRealizeAuthorizationReplaceImport.ts +10 -7
- package/src/orchestrate/realize/utils/generateRealizeScenario.ts +1 -1
- package/src/orchestrate/realize/utils/getRealizeWriteCodeTemplate.ts +2 -2
- package/src/orchestrate/realize/utils/getRealizeWriteDto.ts +1 -1
- package/src/orchestrate/realize/utils/getRealizeWriteInputType.ts +2 -2
- package/src/orchestrate/realize/utils/printErrorHints.ts +1 -1
- package/src/orchestrate/test/compile/getTestScenarioArtifacts.ts +1 -1
- package/src/orchestrate/test/histories/transformTestCorrectHistories.ts +6 -24
- package/src/orchestrate/test/histories/transformTestCorrectInvalidRequestHistories.ts +10 -10
- package/src/orchestrate/test/histories/transformTestScenarioHistories.ts +12 -10
- package/src/orchestrate/test/orchestrateTestCorrect.ts +2 -0
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +1 -0
- package/src/orchestrate/test/orchestrateTestScenario.ts +30 -30
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +2 -2
- package/src/orchestrate/test/structures/{IAutoBeTestScenarioAuthorizationRole.ts → IAutoBeTestScenarioAuthorizationActor.ts} +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.d.ts +0 -4
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js +0 -60
- package/lib/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.js.map +0 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.d.ts +0 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +0 -1
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.d.ts +0 -91
- package/lib/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.js.map +0 -1
- package/lib/orchestrate/realize/orchestRateRealizeCorrectCasting.js.map +0 -1
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioAuthorizationRole.js.map +0 -1
- package/src/orchestrate/interface/histories/transformInterfaceSchemasReviewHistories.ts +0 -67
- package/src/orchestrate/interface/structures/IAutobeInterfaceSchemasReviewApplication.ts +0 -96
- /package/lib/orchestrate/realize/{orchestRateRealizeCorrectCasting.d.ts → orchestrateRealizeCorrectCasting.d.ts} +0 -0
|
@@ -45,8 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
45
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
49
|
-
exports.step = step;
|
|
48
|
+
exports.orchestrateInterfaceSchemaReview = orchestrateInterfaceSchemaReview;
|
|
50
49
|
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
|
|
51
50
|
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
52
51
|
const __typia_transform__llmApplicationFinalize = __importStar(require("typia/lib/internal/_llmApplicationFinalize.js"));
|
|
@@ -56,18 +55,16 @@ const uuid_1 = require("uuid");
|
|
|
56
55
|
const assertSchemaModel_1 = require("../../context/assertSchemaModel");
|
|
57
56
|
const divideArray_1 = require("../../utils/divideArray");
|
|
58
57
|
const executeCachedBatch_1 = require("../../utils/executeCachedBatch");
|
|
59
|
-
const
|
|
58
|
+
const transformInterfaceSchemaReviewHistories_1 = require("./histories/transformInterfaceSchemaReviewHistories");
|
|
60
59
|
const JsonSchemaFactory_1 = require("./utils/JsonSchemaFactory");
|
|
61
60
|
const JsonSchemaNamingConvention_1 = require("./utils/JsonSchemaNamingConvention");
|
|
62
61
|
const JsonSchemaValidator_1 = require("./utils/JsonSchemaValidator");
|
|
63
62
|
const fulfillJsonSchemaErrorMessages_1 = require("./utils/fulfillJsonSchemaErrorMessages");
|
|
64
|
-
function
|
|
65
|
-
return __awaiter(this, arguments, void 0, function* (ctx,
|
|
66
|
-
const
|
|
67
|
-
return { [key]: schema };
|
|
68
|
-
});
|
|
63
|
+
function orchestrateInterfaceSchemaReview(ctx_1, config_1, props_1) {
|
|
64
|
+
return __awaiter(this, arguments, void 0, function* (ctx, config, props, capacity = 2 /* AutoBeConfigConstant.INTERFACE_CAPACITY */) {
|
|
65
|
+
const typeNames = Object.keys(props.document.components.schemas);
|
|
69
66
|
const matrix = (0, divideArray_1.divideArray)({
|
|
70
|
-
array:
|
|
67
|
+
array: typeNames,
|
|
71
68
|
capacity,
|
|
72
69
|
});
|
|
73
70
|
const progress = {
|
|
@@ -76,22 +73,28 @@ function orchestrateInterfaceSchemasReview(ctx_1, operations_1, schemas_1) {
|
|
|
76
73
|
};
|
|
77
74
|
const x = {};
|
|
78
75
|
for (const y of yield (0, executeCachedBatch_1.executeCachedBatch)(matrix.map((it) => (promptCacheKey) => __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
const
|
|
76
|
+
const operations = props.document.operations.filter((op) => (op.requestBody && it.includes(op.requestBody.typeName)) ||
|
|
77
|
+
(op.responseBody && it.includes(op.responseBody.typeName)));
|
|
78
|
+
const row = yield divideAndConquer(ctx, config, {
|
|
79
|
+
instruction: props.instruction,
|
|
80
|
+
operations,
|
|
81
|
+
everySchemas: props.document.components.schemas,
|
|
82
|
+
reviewSchemas: it.reduce((acc, cur) => {
|
|
83
|
+
acc[cur] = props.document.components.schemas[cur];
|
|
84
|
+
return acc;
|
|
85
|
+
}, {}),
|
|
86
|
+
progress,
|
|
87
|
+
promptCacheKey,
|
|
88
|
+
});
|
|
80
89
|
return row;
|
|
81
90
|
})))) {
|
|
82
|
-
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.schemas(operations, x, y);
|
|
91
|
+
JsonSchemaNamingConvention_1.JsonSchemaNamingConvention.schemas(props.document.operations, x, y);
|
|
83
92
|
Object.assign(x, y);
|
|
84
93
|
}
|
|
85
94
|
return x;
|
|
86
95
|
});
|
|
87
96
|
}
|
|
88
|
-
function divideAndConquer(ctx,
|
|
89
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
const schema = schemas.reduce((acc, cur) => Object.assign(acc, cur), {});
|
|
91
|
-
return step(ctx, operations, schema, progress, promptCacheKey);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function step(ctx, operations, schemas, progress, promptCacheKey) {
|
|
97
|
+
function divideAndConquer(ctx, config, props) {
|
|
95
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
99
|
var _a, _b, _c;
|
|
97
100
|
try {
|
|
@@ -99,42 +102,47 @@ function step(ctx, operations, schemas, progress, promptCacheKey) {
|
|
|
99
102
|
value: null,
|
|
100
103
|
};
|
|
101
104
|
const { tokenUsage } = yield ctx.conversate({
|
|
102
|
-
source: "
|
|
105
|
+
source: "interfaceSchemaContentReview",
|
|
103
106
|
controller: createController({
|
|
104
107
|
model: ctx.model,
|
|
105
108
|
pointer,
|
|
106
|
-
operations,
|
|
107
|
-
schemas,
|
|
108
109
|
}),
|
|
109
|
-
histories: (0,
|
|
110
|
+
histories: (0, transformInterfaceSchemaReviewHistories_1.transformInterfaceSchemaReviewHistories)({
|
|
111
|
+
state: ctx.state(),
|
|
112
|
+
systemPrompt: config.systemPrompt,
|
|
113
|
+
instruction: props.instruction,
|
|
114
|
+
operations: props.operations,
|
|
115
|
+
everySchemas: props.everySchemas,
|
|
116
|
+
reviewSchemas: props.reviewSchemas,
|
|
117
|
+
}),
|
|
110
118
|
enforceFunctionCall: true,
|
|
111
|
-
promptCacheKey,
|
|
112
|
-
message: "Review
|
|
119
|
+
promptCacheKey: props.promptCacheKey,
|
|
120
|
+
message: "Review DTO content completeness and consistency.",
|
|
113
121
|
});
|
|
114
122
|
if (pointer.value === null) {
|
|
115
|
-
++progress.completed;
|
|
123
|
+
++props.progress.completed;
|
|
116
124
|
return {};
|
|
117
125
|
}
|
|
118
126
|
const content = ((_a = OpenApiV3_1Emender_1.OpenApiV3_1Emender.convertComponents({
|
|
119
127
|
schemas: pointer.value.content,
|
|
120
128
|
}).schemas) !== null && _a !== void 0 ? _a : {});
|
|
121
129
|
ctx.dispatch({
|
|
122
|
-
type:
|
|
130
|
+
type: config.type,
|
|
123
131
|
id: (0, uuid_1.v7)(),
|
|
124
|
-
schemas:
|
|
132
|
+
schemas: props.reviewSchemas,
|
|
125
133
|
review: pointer.value.think.review,
|
|
126
134
|
plan: pointer.value.think.plan,
|
|
127
135
|
content,
|
|
128
136
|
tokenUsage,
|
|
129
137
|
step: (_c = (_b = ctx.state().analyze) === null || _b === void 0 ? void 0 : _b.step) !== null && _c !== void 0 ? _c : 0,
|
|
130
|
-
total: progress.total,
|
|
131
|
-
completed: ++progress.completed,
|
|
138
|
+
total: props.progress.total,
|
|
139
|
+
completed: ++props.progress.completed,
|
|
132
140
|
created_at: new Date().toISOString(),
|
|
133
141
|
});
|
|
134
142
|
return content;
|
|
135
143
|
}
|
|
136
144
|
catch (_d) {
|
|
137
|
-
++progress.completed;
|
|
145
|
+
++props.progress.completed;
|
|
138
146
|
return {};
|
|
139
147
|
}
|
|
140
148
|
});
|
|
@@ -222,11 +230,11 @@ function createController(props) {
|
|
|
222
230
|
return false;
|
|
223
231
|
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
|
|
224
232
|
path: _path + ".think",
|
|
225
|
-
expected: "
|
|
233
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
226
234
|
value: input.think
|
|
227
235
|
})) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
|
|
228
236
|
path: _path + ".think",
|
|
229
|
-
expected: "
|
|
237
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
230
238
|
value: input.think
|
|
231
239
|
}), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || _report(_exceptionable, {
|
|
232
240
|
path: _path + ".content",
|
|
@@ -827,11 +835,11 @@ function createController(props) {
|
|
|
827
835
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
828
836
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
829
837
|
path: _path + "",
|
|
830
|
-
expected: "
|
|
838
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
831
839
|
value: input
|
|
832
840
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
833
841
|
path: _path + "",
|
|
834
|
-
expected: "
|
|
842
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
835
843
|
value: input
|
|
836
844
|
}))(input, "$input", true);
|
|
837
845
|
const success = 0 === errors.length;
|
|
@@ -870,7 +878,7 @@ function createController(props) {
|
|
|
870
878
|
const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"](validate);
|
|
871
879
|
return {
|
|
872
880
|
protocol: "class",
|
|
873
|
-
name: "
|
|
881
|
+
name: "ContentReviewer",
|
|
874
882
|
application,
|
|
875
883
|
execute: {
|
|
876
884
|
review: (input) => {
|
|
@@ -892,11 +900,11 @@ const collection = {
|
|
|
892
900
|
{
|
|
893
901
|
name: "review",
|
|
894
902
|
parameters: {
|
|
895
|
-
description: "
|
|
903
|
+
description: " Content review results including completeness issues found,\nfixes applied, and modified schemas\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceSchemaContentReviewApplication.IProps} type:\n\n> Output structure for the content review function.\n> \n> Contains the content analysis, completeness fixes, and schemas modified for\n> content quality during the validation process.\n\n### Description of {@link think} property:\n\n> Content analysis and completeness planning information.\n\n### Description of {@link content} property:\n\n> Modified schemas resulting from content and completeness fixes.\n> \n> Contains ONLY the schemas that were modified for content reasons during\n> review. This includes both modified existing schemas and newly created\n> variant schemas.\n> \n> Content modifications include:\n> \n> - Adding missing fields from Prisma schema\n> - Correcting data type mappings\n> - Fixing required field arrays\n> - Enhancing or adding descriptions\n> - Creating missing variant types (ISummary, IUpdate, etc.)\n> - Ensuring cross-variant consistency\n> \n> Return empty object {} when all content is already complete and accurate,\n> requiring no modifications.",
|
|
896
904
|
type: "object",
|
|
897
905
|
properties: {
|
|
898
906
|
think: {
|
|
899
|
-
$ref: "#/$defs/
|
|
907
|
+
$ref: "#/$defs/IAutoBeInterfaceSchemaContentReviewApplication.IThink"
|
|
900
908
|
},
|
|
901
909
|
content: {
|
|
902
910
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -908,15 +916,15 @@ const collection = {
|
|
|
908
916
|
],
|
|
909
917
|
additionalProperties: false,
|
|
910
918
|
$defs: {
|
|
911
|
-
"
|
|
919
|
+
"IAutoBeInterfaceSchemaContentReviewApplication.IThink": {
|
|
912
920
|
type: "object",
|
|
913
921
|
properties: {
|
|
914
922
|
review: {
|
|
915
|
-
description: "
|
|
923
|
+
description: "Content completeness and quality findings from the review process.\n\nDocuments all content issues discovered during validation, categorized by\ntype: field completeness, type accuracy, required fields, descriptions,\nvariant consistency, and missing variants. Each issue includes the\naffected schema and specific problem identified.\n\nCommon issues documented:\n\n- Field Completeness: Missing fields that exist in Prisma schema\n- Type Accuracy: Incorrect type mappings (e.g., Decimal as string)\n- Required Fields: Misaligned with Prisma nullable settings\n- Description Quality: Missing or inadequate descriptions\n- Variant Consistency: Same field with different types across variants\n- Missing Variants: Required DTO variants not present\n\nShould state \"No content or completeness issues found.\" when all schemas\nhave complete and accurate content.",
|
|
916
924
|
type: "string"
|
|
917
925
|
},
|
|
918
926
|
plan: {
|
|
919
|
-
description: "
|
|
927
|
+
description: "Content corrections and completeness fixes applied during review.\n\nLists all content modifications implemented, organized by fix type:\nfields added, types corrected, required arrays fixed, descriptions\nenhanced, consistency fixes, and variants created. Documents both field-\nlevel changes and schema-level additions.\n\nTypical fixes documented:\n\n- Fields added to match Prisma schema\n- Type mappings corrected (Int\u2192integer, Decimal\u2192number)\n- Required arrays aligned with nullability\n- Descriptions added or enhanced for clarity\n- Variant consistency issues resolved\n- Missing variants created with appropriate fields\n\nShould state \"No content issues require fixes. All DTOs are complete and\nconsistent.\" when no content modifications were necessary.",
|
|
920
928
|
type: "string"
|
|
921
929
|
}
|
|
922
930
|
},
|
|
@@ -1751,7 +1759,7 @@ const collection = {
|
|
|
1751
1759
|
}
|
|
1752
1760
|
}
|
|
1753
1761
|
},
|
|
1754
|
-
description: "
|
|
1762
|
+
description: "Reviews and validates DTO content completeness and consistency in OpenAPI\nschemas.\n\nThis specialized content review function focuses exclusively on ensuring\nDTOs accurately and completely represent their business entities. It\nvalidates field completeness, type accuracy, required field settings, and\ndocumentation quality.\n\nThe review process validates and corrects:\n\n- Field completeness against Prisma schema\n- Data type accuracy (Prisma to OpenAPI type mappings)\n- Required field arrays matching Prisma nullability\n- Description quality and comprehensiveness\n- Consistency across DTO variants (IEntity, ICreate, IUpdate, ISummary)\n- Missing variant detection and creation",
|
|
1755
1763
|
validate: (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
1756
1764
|
const value = input[key];
|
|
1757
1765
|
if (undefined === value)
|
|
@@ -1831,11 +1839,11 @@ const collection = {
|
|
|
1831
1839
|
return false;
|
|
1832
1840
|
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
|
|
1833
1841
|
path: _path + ".think",
|
|
1834
|
-
expected: "
|
|
1842
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
1835
1843
|
value: input.think
|
|
1836
1844
|
})) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
|
|
1837
1845
|
path: _path + ".think",
|
|
1838
|
-
expected: "
|
|
1846
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
1839
1847
|
value: input.think
|
|
1840
1848
|
}), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || _report(_exceptionable, {
|
|
1841
1849
|
path: _path + ".content",
|
|
@@ -2436,11 +2444,11 @@ const collection = {
|
|
|
2436
2444
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
2437
2445
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
2438
2446
|
path: _path + "",
|
|
2439
|
-
expected: "
|
|
2447
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
2440
2448
|
value: input
|
|
2441
2449
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
2442
2450
|
path: _path + "",
|
|
2443
|
-
expected: "
|
|
2451
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
2444
2452
|
value: input
|
|
2445
2453
|
}))(input, "$input", true);
|
|
2446
2454
|
const success = 0 === errors.length;
|
|
@@ -2479,14 +2487,15 @@ const collection = {
|
|
|
2479
2487
|
{
|
|
2480
2488
|
name: "review",
|
|
2481
2489
|
parameters: {
|
|
2482
|
-
description: "
|
|
2490
|
+
description: " Content review results including completeness issues found,\nfixes applied, and modified schemas\n\n------------------------------\n\nDescription of the current {@link IAutoBeInterfaceSchemaContentReviewApplication.IProps} type:\n\n> Output structure for the content review function.\n> \n> Contains the content analysis, completeness fixes, and schemas modified for\n> content quality during the validation process.",
|
|
2483
2491
|
type: "object",
|
|
2484
2492
|
properties: {
|
|
2485
2493
|
think: {
|
|
2486
|
-
|
|
2494
|
+
description: "Content analysis and completeness planning information.",
|
|
2495
|
+
$ref: "#/$defs/IAutoBeInterfaceSchemaContentReviewApplication.IThink"
|
|
2487
2496
|
},
|
|
2488
2497
|
content: {
|
|
2489
|
-
description: "
|
|
2498
|
+
description: "Modified schemas resulting from content and completeness fixes.\n\nContains ONLY the schemas that were modified for content reasons during\nreview. This includes both modified existing schemas and newly created\nvariant schemas.\n\nContent modifications include:\n\n- Adding missing fields from Prisma schema\n- Correcting data type mappings\n- Fixing required field arrays\n- Enhancing or adding descriptions\n- Creating missing variant types (ISummary, IUpdate, etc.)\n- Ensuring cross-variant consistency\n\nReturn empty object {} when all content is already complete and accurate,\nrequiring no modifications.",
|
|
2490
2499
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
2491
2500
|
}
|
|
2492
2501
|
},
|
|
@@ -2496,15 +2505,15 @@ const collection = {
|
|
|
2496
2505
|
],
|
|
2497
2506
|
additionalProperties: false,
|
|
2498
2507
|
$defs: {
|
|
2499
|
-
"
|
|
2508
|
+
"IAutoBeInterfaceSchemaContentReviewApplication.IThink": {
|
|
2500
2509
|
type: "object",
|
|
2501
2510
|
properties: {
|
|
2502
2511
|
review: {
|
|
2503
|
-
description: "
|
|
2512
|
+
description: "Content completeness and quality findings from the review process.\n\nDocuments all content issues discovered during validation, categorized by\ntype: field completeness, type accuracy, required fields, descriptions,\nvariant consistency, and missing variants. Each issue includes the\naffected schema and specific problem identified.\n\nCommon issues documented:\n\n- Field Completeness: Missing fields that exist in Prisma schema\n- Type Accuracy: Incorrect type mappings (e.g., Decimal as string)\n- Required Fields: Misaligned with Prisma nullable settings\n- Description Quality: Missing or inadequate descriptions\n- Variant Consistency: Same field with different types across variants\n- Missing Variants: Required DTO variants not present\n\nShould state \"No content or completeness issues found.\" when all schemas\nhave complete and accurate content.",
|
|
2504
2513
|
type: "string"
|
|
2505
2514
|
},
|
|
2506
2515
|
plan: {
|
|
2507
|
-
description: "
|
|
2516
|
+
description: "Content corrections and completeness fixes applied during review.\n\nLists all content modifications implemented, organized by fix type:\nfields added, types corrected, required arrays fixed, descriptions\nenhanced, consistency fixes, and variants created. Documents both field-\nlevel changes and schema-level additions.\n\nTypical fixes documented:\n\n- Fields added to match Prisma schema\n- Type mappings corrected (Int\u2192integer, Decimal\u2192number)\n- Required arrays aligned with nullability\n- Descriptions added or enhanced for clarity\n- Variant consistency issues resolved\n- Missing variants created with appropriate fields\n\nShould state \"No content issues require fixes. All DTOs are complete and\nconsistent.\" when no content modifications were necessary.",
|
|
2508
2517
|
type: "string"
|
|
2509
2518
|
}
|
|
2510
2519
|
},
|
|
@@ -3310,7 +3319,7 @@ const collection = {
|
|
|
3310
3319
|
}
|
|
3311
3320
|
}
|
|
3312
3321
|
},
|
|
3313
|
-
description: "
|
|
3322
|
+
description: "Reviews and validates DTO content completeness and consistency in OpenAPI\nschemas.\n\nThis specialized content review function focuses exclusively on ensuring\nDTOs accurately and completely represent their business entities. It\nvalidates field completeness, type accuracy, required field settings, and\ndocumentation quality.\n\nThe review process validates and corrects:\n\n- Field completeness against Prisma schema\n- Data type accuracy (Prisma to OpenAPI type mappings)\n- Required field arrays matching Prisma nullability\n- Description quality and comprehensiveness\n- Consistency across DTO variants (IEntity, ICreate, IUpdate, ISummary)\n- Missing variant detection and creation",
|
|
3314
3323
|
validate: (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
|
|
3315
3324
|
const value = input[key];
|
|
3316
3325
|
if (undefined === value)
|
|
@@ -3390,11 +3399,11 @@ const collection = {
|
|
|
3390
3399
|
return false;
|
|
3391
3400
|
})(); const _vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.think && null !== input.think || _report(_exceptionable, {
|
|
3392
3401
|
path: _path + ".think",
|
|
3393
|
-
expected: "
|
|
3402
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
3394
3403
|
value: input.think
|
|
3395
3404
|
})) && _vo1(input.think, _path + ".think", true && _exceptionable) || _report(_exceptionable, {
|
|
3396
3405
|
path: _path + ".think",
|
|
3397
|
-
expected: "
|
|
3406
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IThink",
|
|
3398
3407
|
value: input.think
|
|
3399
3408
|
}), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || _report(_exceptionable, {
|
|
3400
3409
|
path: _path + ".content",
|
|
@@ -3995,11 +4004,11 @@ const collection = {
|
|
|
3995
4004
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
3996
4005
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
3997
4006
|
path: _path + "",
|
|
3998
|
-
expected: "
|
|
4007
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
3999
4008
|
value: input
|
|
4000
4009
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
4001
4010
|
path: _path + "",
|
|
4002
|
-
expected: "
|
|
4011
|
+
expected: "IAutoBeInterfaceSchemaContentReviewApplication.IProps",
|
|
4003
4012
|
value: input
|
|
4004
4013
|
}))(input, "$input", true);
|
|
4005
4014
|
const success = 0 === errors.length;
|
|
@@ -4028,4 +4037,4 @@ const collection = {
|
|
|
4028
4037
|
return application;
|
|
4029
4038
|
})(),
|
|
4030
4039
|
};
|
|
4031
|
-
//# sourceMappingURL=
|
|
4040
|
+
//# sourceMappingURL=orchestrateInterfaceSchemaReview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrateInterfaceSchemaReview.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,4EAoDC;;;;AA7ED,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,iHAA8G;AAE9G,iEAA8D;AAC9D,mFAAgF;AAChF,qEAAkE;AAClE,2FAAwF;AAUxF,SAAsB,gCAAgC;yDAGpD,GAAyB,EACzB,MAAe,EACf,KAGC,EACD,0DAA0D;QAE1D,MAAM,SAAS,GAAa,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAI5B;YACA,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;aACjB;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -86,12 +86,14 @@ function orchestrateInterfaceSchemas(ctx, props) {
|
|
|
86
86
|
};
|
|
87
87
|
const x = Object.assign({}, presets);
|
|
88
88
|
for (const y of yield (0, executeCachedBatch_1.executeCachedBatch)(matrix.map((it) => (promptCacheKey) => __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const operations = props.operations.filter((op) => (op.requestBody && it.includes(op.requestBody.typeName)) ||
|
|
90
|
+
(op.responseBody && it.includes(op.responseBody.typeName)));
|
|
89
91
|
const row = yield divideAndConquer(ctx, {
|
|
90
|
-
|
|
91
|
-
operations: props.operations,
|
|
92
|
-
typeNames: it,
|
|
92
|
+
operations,
|
|
93
93
|
progress,
|
|
94
94
|
promptCacheKey,
|
|
95
|
+
typeNames: it,
|
|
96
|
+
instruction: props.instruction,
|
|
95
97
|
});
|
|
96
98
|
return row;
|
|
97
99
|
})))) {
|
|
@@ -135,9 +137,10 @@ function process(ctx, props) {
|
|
|
135
137
|
value: null,
|
|
136
138
|
};
|
|
137
139
|
const { tokenUsage } = yield ctx.conversate({
|
|
138
|
-
source: "
|
|
140
|
+
source: "interfaceSchema",
|
|
139
141
|
histories: (0, transformInterfaceSchemaHistories_1.transformInterfaceSchemaHistories)({
|
|
140
142
|
state: ctx.state(),
|
|
143
|
+
typeNames: Array.from(new Set([...props.remained, ...Object.keys(props.oldbie)])),
|
|
141
144
|
operations: props.operations,
|
|
142
145
|
instruction: props.instruction,
|
|
143
146
|
}),
|
|
@@ -161,7 +164,7 @@ function process(ctx, props) {
|
|
|
161
164
|
too.
|
|
162
165
|
|
|
163
166
|
${Array.from(props.remained)
|
|
164
|
-
.map((k) =>
|
|
167
|
+
.map((k) => `- \`${k}\``)
|
|
165
168
|
.join("\n")}${already.length !== 0
|
|
166
169
|
? utils_1.StringUtil.trim `
|
|
167
170
|
|
|
@@ -179,7 +182,7 @@ function process(ctx, props) {
|
|
|
179
182
|
schemas: pointer.value,
|
|
180
183
|
}).schemas) !== null && _a !== void 0 ? _a : {});
|
|
181
184
|
ctx.dispatch({
|
|
182
|
-
type: "
|
|
185
|
+
type: "interfaceSchema",
|
|
183
186
|
id: (0, uuid_1.v7)(),
|
|
184
187
|
schemas,
|
|
185
188
|
tokenUsage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateInterfaceSchemas.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,
|
|
1
|
+
{"version":3,"file":"orchestrateInterfaceSchemas.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceSchemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,kEA2DC;;;;AA9ED,yCAA2C;AAE3C,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAI1B,uEAAoE;AACpE,yDAAsD;AACtD,uEAAoE;AACpE,qGAAkG;AAElG,iEAA8D;AAC9D,mFA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"}
|
|
@@ -84,7 +84,7 @@ export declare namespace IAutoBeInterfaceOperationApplication {
|
|
|
84
84
|
* }
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
|
-
interface IOperation extends AutoBeOpenApi.IEndpoint {
|
|
87
|
+
interface IOperation extends Omit<AutoBeOpenApi.IEndpoint, "authorizationActor" | "prerequisites"> {
|
|
88
88
|
/**
|
|
89
89
|
* Specification of the API operation.
|
|
90
90
|
*
|
|
@@ -332,58 +332,58 @@ export declare namespace IAutoBeInterfaceOperationApplication {
|
|
|
332
332
|
*/
|
|
333
333
|
name: string & CamelCasePattern;
|
|
334
334
|
/**
|
|
335
|
-
* Authorization
|
|
335
|
+
* Authorization actors required to access this API operation.
|
|
336
336
|
*
|
|
337
|
-
* This field specifies which user
|
|
338
|
-
* endpoint. Multiple
|
|
337
|
+
* This field specifies which user actors are allowed to access this
|
|
338
|
+
* endpoint. Multiple actors can be specified to allow different types of
|
|
339
339
|
* users to access the same endpoint.
|
|
340
340
|
*
|
|
341
|
-
* ## ⚠️ CRITICAL:
|
|
341
|
+
* ## ⚠️ CRITICAL: Actor Multiplication Effect
|
|
342
342
|
*
|
|
343
|
-
* **EACH
|
|
343
|
+
* **EACH ACTOR IN THIS ARRAY GENERATES A SEPARATE ENDPOINT**
|
|
344
344
|
*
|
|
345
345
|
* - If you specify `["admin", "moderator", "member"]`, this creates 3
|
|
346
346
|
* separate endpoints
|
|
347
|
-
* - Total generated endpoints = operations × average
|
|
348
|
-
* - Example: 100 operations with 3
|
|
347
|
+
* - Total generated endpoints = operations × average actors.length
|
|
348
|
+
* - Example: 100 operations with 3 actors each = 300 actual endpoints
|
|
349
349
|
*
|
|
350
350
|
* ## 🔴 AVOID OVER-GENERATION
|
|
351
351
|
*
|
|
352
|
-
* **DO NOT create
|
|
352
|
+
* **DO NOT create actor-specific endpoints when a public endpoint would
|
|
353
353
|
* suffice:**
|
|
354
354
|
*
|
|
355
355
|
* - ❌ BAD: Separate GET endpoints for admin, member, moderator to view the
|
|
356
356
|
* same public data
|
|
357
|
-
* - ✅ GOOD: Single public endpoint `[]` with
|
|
357
|
+
* - ✅ GOOD: Single public endpoint `[]` with actor-based filtering in business
|
|
358
358
|
* logic
|
|
359
359
|
*
|
|
360
|
-
* **DO NOT enumerate all possible
|
|
360
|
+
* **DO NOT enumerate all possible actors when the Prisma schema uses a
|
|
361
361
|
* single User table:**
|
|
362
362
|
*
|
|
363
363
|
* - If Prisma has a User table with role/permission fields, you likely only
|
|
364
364
|
* need `["user"]`
|
|
365
365
|
* - Avoid listing `["admin", "seller", "buyer", "moderator", ...]`
|
|
366
366
|
* unnecessarily
|
|
367
|
-
* - The actual
|
|
367
|
+
* - The actual actor checking happens in business logic, not at the endpoint
|
|
368
368
|
* level
|
|
369
369
|
*
|
|
370
370
|
* ## Naming Convention
|
|
371
371
|
*
|
|
372
|
-
* DO: Use camelCase for all
|
|
372
|
+
* DO: Use camelCase for all actor names.
|
|
373
373
|
*
|
|
374
374
|
* ## Important Guidelines
|
|
375
375
|
*
|
|
376
376
|
* - Set to empty array `[]` for public endpoints that require no
|
|
377
377
|
* authentication
|
|
378
|
-
* - Set to array with
|
|
379
|
-
* - **MINIMIZE the number of
|
|
380
|
-
* - Consider if the endpoint can be public with
|
|
381
|
-
* - The
|
|
378
|
+
* - Set to array with actor strings for actor-restricted endpoints
|
|
379
|
+
* - **MINIMIZE the number of actors per endpoint to prevent explosion**
|
|
380
|
+
* - Consider if the endpoint can be public with actor-based filtering instead
|
|
381
|
+
* - The actor names match exactly with the user type/actor defined in the
|
|
382
382
|
* database
|
|
383
383
|
* - This will be used by the Realize Agent to generate appropriate decorator
|
|
384
384
|
* and authorization logic in the provider functions
|
|
385
385
|
* - The controller will apply the corresponding authentication decorator
|
|
386
|
-
* based on these
|
|
386
|
+
* based on these actors
|
|
387
387
|
*
|
|
388
388
|
* ## Examples
|
|
389
389
|
*
|
|
@@ -401,17 +401,17 @@ export declare namespace IAutoBeInterfaceOperationApplication {
|
|
|
401
401
|
*
|
|
402
402
|
* 1. **Start with public `[]` for all read operations** unless sensitive data
|
|
403
403
|
* is involved
|
|
404
|
-
* 2. **Use single
|
|
404
|
+
* 2. **Use single actor `["user"]` for authenticated operations** and handle
|
|
405
405
|
* permissions in business logic
|
|
406
|
-
* 3. **Only use multiple
|
|
406
|
+
* 3. **Only use multiple actors when absolutely necessary** for different
|
|
407
407
|
* business logic paths
|
|
408
|
-
* 4. **Remember: Fewer
|
|
408
|
+
* 4. **Remember: Fewer actors = Fewer endpoints = Better performance and
|
|
409
409
|
* maintainability**
|
|
410
410
|
*
|
|
411
411
|
* Note: The actual authentication/authorization implementation will be
|
|
412
412
|
* handled by decorators at the controller level, and the provider function
|
|
413
413
|
* will receive the authenticated user object with the appropriate type.
|
|
414
414
|
*/
|
|
415
|
-
|
|
415
|
+
authorizationActors: Array<string & CamelCasePattern & tags.MinLength<1>>;
|
|
416
416
|
}
|
|
417
417
|
}
|
package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationsReviewApplication.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export interface IAutoBeInterfaceOperationsReviewApplication {
|
|
|
17
17
|
* process containing review findings and improvement plans, plus the final
|
|
18
18
|
* production-ready operations with all critical issues resolved.
|
|
19
19
|
*
|
|
20
|
-
* @param input Properties containing the thinking process (review & plan)
|
|
21
|
-
*
|
|
20
|
+
* @param input Properties containing the thinking process (review & plan) and
|
|
21
|
+
* the enhanced operations content
|
|
22
22
|
*/
|
|
23
23
|
reviewOperations(input: IAutoBeInterfaceOperationsReviewApplication.IProps): void;
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ export declare namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
|
28
28
|
*
|
|
29
29
|
* Contains both the input operations to be reviewed and the outputs generated
|
|
30
30
|
* by the Interface Operations Review Agent, which will be published as part
|
|
31
|
-
* of the
|
|
31
|
+
* of the AutoBeInterfaceOperationReviewEvent.
|
|
32
32
|
*/
|
|
33
33
|
interface IProps {
|
|
34
34
|
/**
|
|
@@ -64,10 +64,10 @@ export declare namespace IAutoBeInterfaceOperationsReviewApplication {
|
|
|
64
64
|
/**
|
|
65
65
|
* Structured thinking process for comprehensive API operation review.
|
|
66
66
|
*
|
|
67
|
-
* Combines analytical review findings with actionable improvement planning
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
67
|
+
* Combines analytical review findings with actionable improvement planning to
|
|
68
|
+
* guide the systematic enhancement of API operations. This thinking structure
|
|
69
|
+
* ensures all aspects of API quality are evaluated and addressed before
|
|
70
|
+
* producing the final operations.
|
|
71
71
|
*/
|
|
72
72
|
interface IThink {
|
|
73
73
|
/**
|