@autobe/agent 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoBeAgent.d.ts +2 -1
- package/lib/AutoBeAgent.js +27 -7
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/AutoBeMockAgent.js +2 -4
- package/lib/AutoBeMockAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +11 -11
- package/lib/context/AutoBeContext.d.ts +4 -1
- package/lib/context/AutoBeTokenUsage.d.ts +1 -1
- package/lib/context/AutoBeTokenUsage.js.map +1 -1
- package/lib/context/assertSchemaModel.d.ts +1 -1
- package/lib/context/assertSchemaModel.js +4 -7
- package/lib/context/assertSchemaModel.js.map +1 -1
- package/lib/factory/AutoBeFunctionCallingMetricFactory.d.ts +7 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js +35 -0
- package/lib/factory/AutoBeFunctionCallingMetricFactory.js.map +1 -0
- package/lib/factory/AutoBeProcessAggregateFactory.d.ts +13 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js +100 -0
- package/lib/factory/AutoBeProcessAggregateFactory.js.map +1 -0
- package/lib/factory/createAutoBeContext.d.ts +2 -1
- package/lib/factory/createAutoBeContext.js +78 -27
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +24065 -12997
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyze.js +1 -0
- package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +166 -87
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +639 -322
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +146 -76
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +17 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +25 -22
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +7 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +2 -1
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +168 -4
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/{factory/createAutoBeApplication.d.ts → orchestrate/facade/createAutoBeFacadeController.d.ts} +2 -2
- package/lib/orchestrate/facade/createAutoBeFacadeController.js +1308 -0
- package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplication.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationProps.js.map +1 -0
- package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationResult.js.map +1 -0
- package/lib/orchestrate/facade/{transformFacadeStateMessage.d.ts → structures/transformFacadeStateMessage.d.ts} +1 -1
- package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js.map +1 -0
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +2 -2
- package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +3 -2
- package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +1 -1
- 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.js +1 -1
- package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.d.ts +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +15 -8
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +874 -49
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1858 -67
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +251 -133
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -6
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +257 -135
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +341 -227
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +761 -49
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +911 -50
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +207 -4
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +109 -2
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +5 -3
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1904 -77
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1858 -67
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +23 -23
- package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +1 -0
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +391 -197
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1168 -591
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +1186 -600
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +6 -3
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +2 -2
- package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.d.ts +1 -1
- package/lib/orchestrate/realize/orchestrateRealize.js +2 -1
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +362 -180
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +399 -199
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +133 -4
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +171 -7
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +132 -3
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/realize/utils/replaceImportStatements.js +0 -85
- package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTest.d.ts +1 -1
- package/lib/orchestrate/test/orchestrateTest.js +2 -1
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +134 -3
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +169 -4
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +257 -4
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +283 -4
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +141 -3
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/lib/utils/TokenUsageComputer.d.ts +5 -0
- package/lib/utils/TokenUsageComputer.js +29 -0
- package/lib/utils/TokenUsageComputer.js.map +1 -0
- package/package.json +10 -10
- package/src/AutoBeAgent.ts +40 -6
- package/src/AutoBeMockAgent.ts +2 -4
- package/src/constants/AutoBeSystemPromptConstant.ts +11 -11
- package/src/context/AutoBeContext.ts +8 -0
- package/src/context/AutoBeTokenUsage.ts +1 -1
- package/src/context/assertSchemaModel.ts +5 -8
- package/src/factory/AutoBeFunctionCallingMetricFactory.ts +44 -0
- package/src/factory/AutoBeProcessAggregateFactory.ts +141 -0
- package/src/factory/createAutoBeContext.ts +96 -36
- package/src/orchestrate/analyze/orchestrateAnalyze.ts +1 -0
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +9 -10
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +15 -10
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +10 -11
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +19 -54
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +25 -22
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +8 -24
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +20 -3
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +136 -0
- package/src/orchestrate/facade/{transformFacadeStateMessage.ts → structures/transformFacadeStateMessage.ts} +2 -2
- package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +1 -0
- package/src/orchestrate/interface/orchestrateInterface.ts +17 -6
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +16 -11
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +16 -13
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +19 -15
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +16 -2
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +13 -2
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +11 -2
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +24 -16
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +13 -2
- package/src/orchestrate/prisma/orchestratePrisma.ts +2 -1
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +15 -10
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +9 -10
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +9 -11
- package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +2 -1
- package/src/orchestrate/realize/orchestrateRealize.ts +3 -2
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +15 -10
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +15 -10
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +14 -3
- package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +21 -6
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +13 -2
- package/src/orchestrate/realize/utils/replaceImportStatements.ts +0 -90
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +5 -1
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +1 -1
- package/src/orchestrate/test/orchestrateTest.ts +3 -2
- package/src/orchestrate/test/orchestrateTestCorrect.ts +14 -2
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +21 -3
- package/src/orchestrate/test/orchestrateTestScenario.ts +13 -2
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +13 -2
- package/src/orchestrate/test/orchestrateTestWrite.ts +13 -2
- package/src/utils/TokenUsageComputer.ts +35 -0
- package/lib/context/IAutoBeFacadeApplication.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationProps.js.map +0 -1
- package/lib/context/IAutoBeFacadeApplicationResult.js.map +0 -1
- package/lib/factory/createAutoBeApplication.js +0 -942
- package/lib/factory/createAutoBeApplication.js.map +0 -1
- package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
- package/src/factory/createAutoBeApplication.ts +0 -123
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.js +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.d.ts +0 -0
- /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.js +0 -0
- /package/lib/orchestrate/facade/{transformFacadeStateMessage.js → structures/transformFacadeStateMessage.js} +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.ts +0 -0
- /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateInterfaceComplement.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceComplement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,wEAWC;;;;AA3BD,yCAAqD;AAErD,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,6GAA0G;AAE1G,iEAA8D;AAC9D,mFAAgF;AAChF,qEAAkE;AAClE,2FAAwF;AAExF,SAAgB,8BAA8B,CAC5C,GAAyB,EACzB,KAGC;IAED,OAAO,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE;QACtB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,EAAE;KACT,CAAC,CAAC;AACL,CAAC;AAED,SAAe,IAAI,CACjB,GAAyB,EACzB,KAGC,EACD,QAGC;;;QAED,MAAM,MAAM,GAAa,IAAA,4BAAoB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC9D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;aAC7D,IAAI,QAAQ,CAAC,IAAI,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;QAEvE,MAAM,OAAO,GAGD;YACV,KAAK,EAAE,IAAI;SACZ,CAAC;QACF,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"orchestrateInterfaceComplement.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceComplement.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,wEAWC;;;;AA3BD,yCAAqD;AAErD,2FAAwF;AAExF,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,6GAA0G;AAE1G,iEAA8D;AAC9D,mFAAgF;AAChF,qEAAkE;AAClE,2FAAwF;AAExF,SAAgB,8BAA8B,CAC5C,GAAyB,EACzB,KAGC;IAED,OAAO,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE;QACtB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,EAAE;KACT,CAAC,CAAC;AACL,CAAC;AAED,SAAe,IAAI,CACjB,GAAyB,EACzB,KAGC,EACD,QAGC;;;QAED,MAAM,MAAM,GAAa,IAAA,4BAAoB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC9D,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;aAC7D,IAAI,QAAQ,CAAC,IAAI,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;QAEvE,MAAM,OAAO,GAGD;YACV,KAAK,EAAE,IAAI;SACZ,CAAC;QACF,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC,UAAU,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHACyC;YACrE,QAAQ,EAAE;gBACR,oBAAoB,EAAE,QAAQ;aAC/B;SACF;;QAAC;CACL,CAAC"}
|
|
@@ -73,7 +73,7 @@ function orchestrateInterfaceEndpoints(ctx, props) {
|
|
|
73
73
|
});
|
|
74
74
|
}))).flat();
|
|
75
75
|
const deduplicated = new tstl_1.HashSet(endpoints, utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals).toJSON();
|
|
76
|
-
return (0, orchestrateInterfaceEndpointsReview_1.orchestrateInterfaceEndpointsReview)(ctx, deduplicated);
|
|
76
|
+
return yield (0, orchestrateInterfaceEndpointsReview_1.orchestrateInterfaceEndpointsReview)(ctx, deduplicated);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
function process(ctx, props) {
|
|
@@ -83,7 +83,7 @@ function process(ctx, props) {
|
|
|
83
83
|
const pointer = {
|
|
84
84
|
value: null,
|
|
85
85
|
};
|
|
86
|
-
const { tokenUsage } = yield ctx.conversate({
|
|
86
|
+
const { metric, tokenUsage } = yield ctx.conversate({
|
|
87
87
|
source: "interfaceEndpoint",
|
|
88
88
|
histories: (0, transformInterfaceEndpointHistories_1.transformInterfaceEndpointHistories)({
|
|
89
89
|
state: ctx.state(),
|
|
@@ -109,6 +109,7 @@ function process(ctx, props) {
|
|
|
109
109
|
type: "interfaceEndpoint",
|
|
110
110
|
id: (0, uuid_1.v7)(),
|
|
111
111
|
endpoints: new tstl_1.HashSet(pointer.value, utils_1.AutoBeOpenApiEndpointComparator.hashCode, utils_1.AutoBeOpenApiEndpointComparator.equals).toJSON(),
|
|
112
|
+
metric,
|
|
112
113
|
tokenUsage,
|
|
113
114
|
created_at: start.toISOString(),
|
|
114
115
|
step: (_b = (_a = ctx.state().analyze) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
|
|
@@ -121,7 +122,11 @@ function process(ctx, props) {
|
|
|
121
122
|
}
|
|
122
123
|
function createController(props) {
|
|
123
124
|
(0, assertSchemaModel_1.assertSchemaModel)(props.model);
|
|
124
|
-
const application = collection[props.model
|
|
125
|
+
const application = collection[props.model === "chatgpt"
|
|
126
|
+
? "chatgpt"
|
|
127
|
+
: props.model === "gemini"
|
|
128
|
+
? "gemini"
|
|
129
|
+
: "claude"];
|
|
125
130
|
return {
|
|
126
131
|
protocol: "class",
|
|
127
132
|
name: "interface",
|
|
@@ -133,140 +138,257 @@ function createController(props) {
|
|
|
133
138
|
},
|
|
134
139
|
};
|
|
135
140
|
}
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
141
|
+
const collection = {
|
|
142
|
+
chatgpt: {
|
|
143
|
+
model: "chatgpt",
|
|
144
|
+
options: {
|
|
145
|
+
reference: true,
|
|
146
|
+
strict: false,
|
|
147
|
+
separate: null
|
|
148
|
+
},
|
|
149
|
+
functions: [
|
|
150
|
+
{
|
|
151
|
+
name: "makeEndpoints",
|
|
152
|
+
parameters: {
|
|
153
|
+
description: " Properties containing the endpoints\n\n------------------------------\n\nCurrent Type: {@link IAutoBeInterfaceEndpointApplication.IProps}",
|
|
154
|
+
type: "object",
|
|
155
|
+
properties: {
|
|
156
|
+
endpoints: {
|
|
157
|
+
description: "The endpoints to generate.\n\n\n@minItems 1",
|
|
158
|
+
type: "array",
|
|
159
|
+
items: {
|
|
160
|
+
$ref: "#/$defs/AutoBeOpenApi.IEndpoint"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
required: [
|
|
165
|
+
"endpoints"
|
|
166
|
+
],
|
|
167
|
+
additionalProperties: false,
|
|
168
|
+
$defs: {
|
|
169
|
+
"AutoBeOpenApi.IEndpoint": {
|
|
170
|
+
description: "API endpoint information.",
|
|
171
|
+
type: "object",
|
|
172
|
+
properties: {
|
|
173
|
+
path: {
|
|
174
|
+
description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)\n\n\n@pattern ^\\/[a-zA-Z0-9\\/_{}.-]*$",
|
|
175
|
+
type: "string"
|
|
176
|
+
},
|
|
177
|
+
method: {
|
|
178
|
+
description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
|
|
179
|
+
type: "string",
|
|
180
|
+
"enum": [
|
|
181
|
+
"get",
|
|
182
|
+
"post",
|
|
183
|
+
"put",
|
|
184
|
+
"delete",
|
|
185
|
+
"patch"
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
required: [
|
|
190
|
+
"path",
|
|
191
|
+
"method"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
156
194
|
}
|
|
157
195
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
description: "Create Restful API endpoints.\n\nCreate Restful API endpoints referencing the given documents; requirement\nanalysis documents, and Prisma schema files with ERD descriptions. The API\nendpoints must cover every requirements and every entities in the ERD.\n\nAlso, each combination of {@link AutoBeOpenApi.IEndpoint.path} and\n{@link AutoBeOpenApi.IEndpoint.method} must be unique to avoid duplicates.\nPlease don't make any duplicates.",
|
|
197
|
+
validate: (() => { const _io0 = input => Array.isArray(input.endpoints) && (1 <= input.endpoints.length && input.endpoints.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.endpoints) || _report(_exceptionable, {
|
|
198
|
+
path: _path + ".endpoints",
|
|
199
|
+
expected: "(Array<AutoBeOpenApi.IEndpoint> & MinItems<1>)",
|
|
200
|
+
value: input.endpoints
|
|
201
|
+
})) && ((1 <= input.endpoints.length || _report(_exceptionable, {
|
|
202
|
+
path: _path + ".endpoints",
|
|
203
|
+
expected: "Array<> & MinItems<1>",
|
|
204
|
+
value: input.endpoints
|
|
205
|
+
})) && input.endpoints.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
206
|
+
path: _path + ".endpoints[" + _index2 + "]",
|
|
207
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
208
|
+
value: elem
|
|
209
|
+
})) && _vo1(elem, _path + ".endpoints[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
210
|
+
path: _path + ".endpoints[" + _index2 + "]",
|
|
211
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
212
|
+
value: elem
|
|
213
|
+
})).every(flag => flag)) || _report(_exceptionable, {
|
|
214
|
+
path: _path + ".endpoints",
|
|
215
|
+
expected: "(Array<AutoBeOpenApi.IEndpoint> & MinItems<1>)",
|
|
216
|
+
value: input.endpoints
|
|
217
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
218
|
+
path: _path + ".path",
|
|
219
|
+
expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
|
|
220
|
+
value: input.path
|
|
221
|
+
})) || _report(_exceptionable, {
|
|
222
|
+
path: _path + ".path",
|
|
223
|
+
expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
|
|
224
|
+
value: input.path
|
|
225
|
+
}), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
|
|
226
|
+
path: _path + ".method",
|
|
227
|
+
expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
|
|
228
|
+
value: input.method
|
|
229
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
230
|
+
if (false === __is(input)) {
|
|
231
|
+
errors = [];
|
|
232
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
233
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
234
|
+
path: _path + "",
|
|
235
|
+
expected: "IAutoBeInterfaceEndpointApplication.IProps",
|
|
236
|
+
value: input
|
|
237
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
238
|
+
path: _path + "",
|
|
239
|
+
expected: "IAutoBeInterfaceEndpointApplication.IProps",
|
|
240
|
+
value: input
|
|
241
|
+
}))(input, "$input", true);
|
|
242
|
+
const success = 0 === errors.length;
|
|
243
|
+
return success ? {
|
|
244
|
+
success,
|
|
245
|
+
data: input
|
|
246
|
+
} : {
|
|
247
|
+
success,
|
|
248
|
+
errors,
|
|
249
|
+
data: input
|
|
250
|
+
};
|
|
197
251
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
description: "Create Restful API endpoints.\n\nCreate Restful API endpoints referencing the given documents; requirement\nanalysis documents, and Prisma schema files with ERD descriptions. The API\nendpoints must cover every requirements and every entities in the ERD.\n\nAlso, each combination of {@link AutoBeOpenApi.IEndpoint.path} and\n{@link AutoBeOpenApi.IEndpoint.method} must be unique to avoid duplicates.\nPlease don't make any duplicates.",
|
|
201
|
-
validate: (() => { const _io0 = input => Array.isArray(input.endpoints) && (1 <= input.endpoints.length && input.endpoints.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.endpoints) || _report(_exceptionable, {
|
|
202
|
-
path: _path + ".endpoints",
|
|
203
|
-
expected: "(Array<AutoBeOpenApi.IEndpoint> & MinItems<1>)",
|
|
204
|
-
value: input.endpoints
|
|
205
|
-
})) && ((1 <= input.endpoints.length || _report(_exceptionable, {
|
|
206
|
-
path: _path + ".endpoints",
|
|
207
|
-
expected: "Array<> & MinItems<1>",
|
|
208
|
-
value: input.endpoints
|
|
209
|
-
})) && input.endpoints.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
210
|
-
path: _path + ".endpoints[" + _index2 + "]",
|
|
211
|
-
expected: "AutoBeOpenApi.IEndpoint",
|
|
212
|
-
value: elem
|
|
213
|
-
})) && _vo1(elem, _path + ".endpoints[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
214
|
-
path: _path + ".endpoints[" + _index2 + "]",
|
|
215
|
-
expected: "AutoBeOpenApi.IEndpoint",
|
|
216
|
-
value: elem
|
|
217
|
-
})).every(flag => flag)) || _report(_exceptionable, {
|
|
218
|
-
path: _path + ".endpoints",
|
|
219
|
-
expected: "(Array<AutoBeOpenApi.IEndpoint> & MinItems<1>)",
|
|
220
|
-
value: input.endpoints
|
|
221
|
-
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
222
|
-
path: _path + ".path",
|
|
223
|
-
expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
|
|
224
|
-
value: input.path
|
|
225
|
-
})) || _report(_exceptionable, {
|
|
226
|
-
path: _path + ".path",
|
|
227
|
-
expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
|
|
228
|
-
value: input.path
|
|
229
|
-
}), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
|
|
230
|
-
path: _path + ".method",
|
|
231
|
-
expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
|
|
232
|
-
value: input.method
|
|
233
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
234
|
-
if (false === __is(input)) {
|
|
235
|
-
errors = [];
|
|
236
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
237
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
238
|
-
path: _path + "",
|
|
239
|
-
expected: "IAutoBeInterfaceEndpointApplication.IProps",
|
|
240
|
-
value: input
|
|
241
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
242
|
-
path: _path + "",
|
|
243
|
-
expected: "IAutoBeInterfaceEndpointApplication.IProps",
|
|
244
|
-
value: input
|
|
245
|
-
}))(input, "$input", true);
|
|
246
|
-
const success = 0 === errors.length;
|
|
247
|
-
return success ? {
|
|
248
|
-
success,
|
|
252
|
+
return {
|
|
253
|
+
success: true,
|
|
249
254
|
data: input
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
255
|
+
};
|
|
256
|
+
}; })()
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
claude: {
|
|
261
|
+
model: "claude",
|
|
262
|
+
options: {
|
|
263
|
+
reference: true,
|
|
264
|
+
separate: null
|
|
265
|
+
},
|
|
266
|
+
functions: [
|
|
267
|
+
{
|
|
268
|
+
name: "makeEndpoints",
|
|
269
|
+
parameters: {
|
|
270
|
+
description: " Properties containing the endpoints\n\n------------------------------\n\nCurrent Type: {@link IAutoBeInterfaceEndpointApplication.IProps}",
|
|
271
|
+
type: "object",
|
|
272
|
+
properties: {
|
|
273
|
+
endpoints: {
|
|
274
|
+
description: "The endpoints to generate.",
|
|
275
|
+
type: "array",
|
|
276
|
+
items: {
|
|
277
|
+
$ref: "#/$defs/AutoBeOpenApi.IEndpoint"
|
|
278
|
+
},
|
|
279
|
+
minItems: 1
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
required: [
|
|
283
|
+
"endpoints"
|
|
284
|
+
],
|
|
285
|
+
additionalProperties: false,
|
|
286
|
+
$defs: {
|
|
287
|
+
"AutoBeOpenApi.IEndpoint": {
|
|
288
|
+
description: "API endpoint information.",
|
|
289
|
+
type: "object",
|
|
290
|
+
properties: {
|
|
291
|
+
path: {
|
|
292
|
+
description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)",
|
|
293
|
+
type: "string",
|
|
294
|
+
pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
|
|
295
|
+
},
|
|
296
|
+
method: {
|
|
297
|
+
description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
|
|
298
|
+
oneOf: [
|
|
299
|
+
{
|
|
300
|
+
"const": "get"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"const": "post"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"const": "put"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"const": "delete"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"const": "patch"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
required: [
|
|
318
|
+
"path",
|
|
319
|
+
"method"
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
description: "Create Restful API endpoints.\n\nCreate Restful API endpoints referencing the given documents; requirement\nanalysis documents, and Prisma schema files with ERD descriptions. The API\nendpoints must cover every requirements and every entities in the ERD.\n\nAlso, each combination of {@link AutoBeOpenApi.IEndpoint.path} and\n{@link AutoBeOpenApi.IEndpoint.method} must be unique to avoid duplicates.\nPlease don't make any duplicates.",
|
|
325
|
+
validate: (() => { const _io0 = input => Array.isArray(input.endpoints) && (1 <= input.endpoints.length && input.endpoints.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io1 = input => "string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.endpoints) || _report(_exceptionable, {
|
|
326
|
+
path: _path + ".endpoints",
|
|
327
|
+
expected: "(Array<AutoBeOpenApi.IEndpoint> & MinItems<1>)",
|
|
328
|
+
value: input.endpoints
|
|
329
|
+
})) && ((1 <= input.endpoints.length || _report(_exceptionable, {
|
|
330
|
+
path: _path + ".endpoints",
|
|
331
|
+
expected: "Array<> & MinItems<1>",
|
|
332
|
+
value: input.endpoints
|
|
333
|
+
})) && input.endpoints.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
334
|
+
path: _path + ".endpoints[" + _index2 + "]",
|
|
335
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
336
|
+
value: elem
|
|
337
|
+
})) && _vo1(elem, _path + ".endpoints[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
338
|
+
path: _path + ".endpoints[" + _index2 + "]",
|
|
339
|
+
expected: "AutoBeOpenApi.IEndpoint",
|
|
340
|
+
value: elem
|
|
341
|
+
})).every(flag => flag)) || _report(_exceptionable, {
|
|
342
|
+
path: _path + ".endpoints",
|
|
343
|
+
expected: "(Array<AutoBeOpenApi.IEndpoint> & MinItems<1>)",
|
|
344
|
+
value: input.endpoints
|
|
345
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
346
|
+
path: _path + ".path",
|
|
347
|
+
expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
|
|
348
|
+
value: input.path
|
|
349
|
+
})) || _report(_exceptionable, {
|
|
350
|
+
path: _path + ".path",
|
|
351
|
+
expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
|
|
352
|
+
value: input.path
|
|
353
|
+
}), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
|
|
354
|
+
path: _path + ".method",
|
|
355
|
+
expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
|
|
356
|
+
value: input.method
|
|
357
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
358
|
+
if (false === __is(input)) {
|
|
359
|
+
errors = [];
|
|
360
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
361
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
362
|
+
path: _path + "",
|
|
363
|
+
expected: "IAutoBeInterfaceEndpointApplication.IProps",
|
|
364
|
+
value: input
|
|
365
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
366
|
+
path: _path + "",
|
|
367
|
+
expected: "IAutoBeInterfaceEndpointApplication.IProps",
|
|
368
|
+
value: input
|
|
369
|
+
}))(input, "$input", true);
|
|
370
|
+
const success = 0 === errors.length;
|
|
371
|
+
return success ? {
|
|
372
|
+
success,
|
|
373
|
+
data: input
|
|
374
|
+
} : {
|
|
375
|
+
success,
|
|
376
|
+
errors,
|
|
377
|
+
data: input
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
return {
|
|
381
|
+
success: true,
|
|
253
382
|
data: input
|
|
254
383
|
};
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
]
|
|
263
|
-
};
|
|
264
|
-
const collection = {
|
|
265
|
-
chatgpt: {
|
|
266
|
-
model: "chatgpt",
|
|
384
|
+
}; })()
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
gemini: {
|
|
389
|
+
model: "gemini",
|
|
267
390
|
options: {
|
|
268
391
|
reference: true,
|
|
269
|
-
strict: false,
|
|
270
392
|
separate: null
|
|
271
393
|
},
|
|
272
394
|
functions: [
|
|
@@ -380,9 +502,5 @@ const collection = {
|
|
|
380
502
|
}
|
|
381
503
|
]
|
|
382
504
|
},
|
|
383
|
-
claude,
|
|
384
|
-
llama: claude,
|
|
385
|
-
deepseek: claude,
|
|
386
|
-
"3.1": claude,
|
|
387
505
|
};
|
|
388
506
|
//# sourceMappingURL=orchestrateInterfaceEndpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateInterfaceEndpoints.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceEndpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,sEAoCC;;AAjDD,yCAAgE;AAEhE,+BAAyC;AACzC,kDAA0B;AAC1B,+BAA0B;AAG1B,uEAAoE;AACpE,uEAAoE;AACpE,yGAAsG;AACtG,+FAA4F;AAG5F,SAAsB,6BAA6B,CAGjD,GAAyB,EACzB,KAKC;;QAED,MAAM,QAAQ,GAA4B;YACxC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;YAC1B,SAAS,EAAE,CAAC;SACb,CAAC;QACF,MAAM,SAAS,GAA8B,CAC3C,MAAM,IAAA,uCAAkB,EACtB,KAAK,CAAC,MAAM,CAAC,GAAG,CACd,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,cAAc,EAAE,EAAE;;YAC5B,OAAA,OAAO,CAAC,GAAG,EAAE;gBACX,KAAK;gBACL,cAAc,EAAE,KAAK,CAAC,cAAc;gBACpC,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,mCAAI,sCAAsC;gBAChE,QAAQ;gBACR,cAAc;aACf,CAAC,CAAA;SAAA,CACL,CACF,CACF,CAAC,IAAI,EAAE,CAAC;QACT,MAAM,YAAY,GAA8B,IAAI,cAAO,CACzD,SAAS,EACT,uCAA+B,CAAC,QAAQ,EACxC,uCAA+B,CAAC,MAAM,CACvC,CAAC,MAAM,EAAE,CAAC;QACX,OAAO,IAAA,yEAAmC,EAAC,GAAG,EAAE,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"orchestrateInterfaceEndpoints.js","sourceRoot":"","sources":["../../../src/orchestrate/interface/orchestrateInterfaceEndpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,sEAoCC;;AAjDD,yCAA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AAA;AAED,SAAS,gBAAgB,CAAiC,KAGzD;IACC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,KAAK,SAAS;QACvB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,KAAK,CAAC,KAAK,KAAK,QAAQ;YACxB,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,QAAQ,CACqD,CAAC;IACtE,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,WAAW;QACjB,WAAW;QACX,OAAO,EAAE;YACP,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE;gBACtB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC9B,CAAC;SAC4C;KAChD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGJ;IACH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGH;IACH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGH;CACJ,CAAC"}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { IAgenticaController } from "@agentica/core";
|
|
2
1
|
import { AutoBeOpenApi } from "@autobe/interface";
|
|
3
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
4
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
5
|
-
import { IAutoBeInterfaceEndpointsReviewApplication } from "./structures/IAutoBeInterfaceEndpointsReviewApplication";
|
|
6
4
|
export declare function orchestrateInterfaceEndpointsReview<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>, endpoints: AutoBeOpenApi.IEndpoint[], message?: string): Promise<AutoBeOpenApi.IEndpoint[]>;
|
|
7
|
-
export declare function createController<Model extends ILlmSchema.Model>(props: {
|
|
8
|
-
model: Model;
|
|
9
|
-
build: (props: IAutoBeInterfaceEndpointsReviewApplication.IProps) => void;
|
|
10
|
-
}): IAgenticaController.IClass<Model>;
|